12 |
- /*! For license information please see ZwCloud2D.js.LICENSE.txt */
- (()=>{var t={9282:(t,e,n)=>{"use strict";var i=n(4155),r=n(5108);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}var o,s,l=n(2136).codes,c=l.ERR_AMBIGUOUS_ARGUMENT,h=l.ERR_INVALID_ARG_TYPE,d=l.ERR_INVALID_ARG_VALUE,u=l.ERR_INVALID_RETURN_VALUE,m=l.ERR_MISSING_ARGS,p=n(5961),g=n(9539).inspect,f=n(9539).types,b=f.isPromise,y=f.isRegExp,v=Object.assign?Object.assign:n(8091).assign,w=Object.is?Object.is:n(609);new Map;function x(){var t=n(9158);o=t.isDeepEqual,s=t.isDeepStrictEqual}var C=!1,k=t.exports=M,S={};function P(t){if(t.message instanceof Error)throw t.message;throw new p(t)}function _(t,e,n,i){if(!n){var r=!1;if(0===e)r=!0,i="No value argument passed to `assert.ok()`";else if(i instanceof Error)throw i;var a=new p({actual:n,expected:!0,message:i,operator:"==",stackStartFn:t});throw a.generatedMessage=r,a}}function M(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];_.apply(void 0,[M,e.length].concat(e))}k.fail=function t(e,n,a,o,s){var l,c=arguments.length;if(0===c)l="Failed";else if(1===c)a=e,e=void 0;else{if(!1===C){C=!0;var h=i.emitWarning?i.emitWarning:r.warn.bind(r);h("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}2===c&&(o="!=")}if(a instanceof Error)throw a;var d={actual:e,expected:n,operator:void 0===o?"fail":o,stackStartFn:s||t};void 0!==a&&(d.message=a);var u=new p(d);throw l&&(u.message=l,u.generatedMessage=!0),u},k.AssertionError=p,k.ok=M,k.equal=function t(e,n,i){if(arguments.length<2)throw new m("actual","expected");e!=n&&P({actual:e,expected:n,message:i,operator:"==",stackStartFn:t})},k.notEqual=function t(e,n,i){if(arguments.length<2)throw new m("actual","expected");e==n&&P({actual:e,expected:n,message:i,operator:"!=",stackStartFn:t})},k.deepEqual=function t(e,n,i){if(arguments.length<2)throw new m("actual","expected");void 0===o&&x(),o(e,n)||P({actual:e,expected:n,message:i,operator:"deepEqual",stackStartFn:t})},k.notDeepEqual=function t(e,n,i){if(arguments.length<2)throw new m("actual","expected");void 0===o&&x(),o(e,n)&&P({actual:e,expected:n,message:i,operator:"notDeepEqual",stackStartFn:t})},k.deepStrictEqual=function t(e,n,i){if(arguments.length<2)throw new m("actual","expected");void 0===o&&x(),s(e,n)||P({actual:e,expected:n,message:i,operator:"deepStrictEqual",stackStartFn:t})},k.notDeepStrictEqual=function t(e,n,i){if(arguments.length<2)throw new m("actual","expected");void 0===o&&x();s(e,n)&&P({actual:e,expected:n,message:i,operator:"notDeepStrictEqual",stackStartFn:t})},k.strictEqual=function t(e,n,i){if(arguments.length<2)throw new m("actual","expected");w(e,n)||P({actual:e,expected:n,message:i,operator:"strictEqual",stackStartFn:t})},k.notStrictEqual=function t(e,n,i){if(arguments.length<2)throw new m("actual","expected");w(e,n)&&P({actual:e,expected:n,message:i,operator:"notStrictEqual",stackStartFn:t})};var D=function t(e,n,i){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),n.forEach((function(t){t in e&&(void 0!==i&&"string"==typeof i[t]&&y(e[t])&&e[t].test(i[t])?r[t]=i[t]:r[t]=e[t])}))};function E(t,e,n,i,r,a){if(!(n in t)||!s(t[n],e[n])){if(!i){var o=new D(t,r),l=new D(e,r,t),c=new p({actual:o,expected:l,operator:"deepStrictEqual",stackStartFn:a});throw c.actual=t,c.expected=e,c.operator=a.name,c}P({actual:t,expected:e,message:i,operator:a.name,stackStartFn:a})}}function O(t,e,n,i){if("function"!=typeof e){if(y(e))return e.test(t);if(2===arguments.length)throw new h("expected",["Function","RegExp"],e);if("object"!==a(t)||null===t){var r=new p({actual:t,expected:e,message:n,operator:"deepStrictEqual",stackStartFn:i});throw r.operator=i.name,r}var s=Object.keys(e);if(e instanceof Error)s.push("name","message");else if(0===s.length)throw new d("error",e,"may not be an empty object");return void 0===o&&x(),s.forEach((function(r){"string"==typeof t[r]&&y(e[r])&&e[r].test(t[r])||E(t,e,r,n,s,i)})),!0}return void 0!==e.prototype&&t instanceof e||!Error.isPrototypeOf(e)&&!0===e.call({},t)}function A(t){if("function"!=typeof t)throw new h("fn","Function",t);try{t()}catch(t){return t}return S}function T(t){return b(t)||null!==t&&"object"===a(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function I(t){return Promise.resolve().then((function(){var e;if("function"==typeof t){if(!T(e=t()))throw new u("instance of Promise","promiseFn",e)}else{if(!T(t))throw new h("promiseFn",["Function","Promise"],t);e=t}return Promise.resolve().then((function(){return e})).then((function(){return S})).catch((function(t){return t}))}))}function L(t,e,n,i){if("string"==typeof n){if(4===arguments.length)throw new h("error",["Object","Error","Function","RegExp"],n);if("object"===a(e)&&null!==e){if(e.message===n)throw new c("error/message",'The error message "'.concat(e.message,'" is identical to the message.'))}else if(e===n)throw new c("error/message",'The error "'.concat(e,'" is identical to the message.'));i=n,n=void 0}else if(null!=n&&"object"!==a(n)&&"function"!=typeof n)throw new h("error",["Object","Error","Function","RegExp"],n);if(e===S){var r="";n&&n.name&&(r+=" (".concat(n.name,")")),r+=i?": ".concat(i):".";var o="rejects"===t.name?"rejection":"exception";P({actual:void 0,expected:n,operator:t.name,message:"Missing expected ".concat(o).concat(r),stackStartFn:t})}if(n&&!O(e,n,i,t))throw e}function z(t,e,n,i){if(e!==S){if("string"==typeof n&&(i=n,n=void 0),!n||O(e,n)){var r=i?": ".concat(i):".",a="doesNotReject"===t.name?"rejection":"exception";P({actual:e,expected:n,operator:t.name,message:"Got unwanted ".concat(a).concat(r,"\n")+'Actual message: "'.concat(e&&e.message,'"'),stackStartFn:t})}throw e}}function R(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];_.apply(void 0,[R,e.length].concat(e))}k.throws=function t(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];L.apply(void 0,[t,A(e)].concat(i))},k.rejects=function t(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return I(e).then((function(e){return L.apply(void 0,[t,e].concat(i))}))},k.doesNotThrow=function t(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];z.apply(void 0,[t,A(e)].concat(i))},k.doesNotReject=function t(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return I(e).then((function(e){return z.apply(void 0,[t,e].concat(i))}))},k.ifError=function t(e){if(null!=e){var n="ifError got unwanted exception: ";"object"===a(e)&&"string"==typeof e.message?0===e.message.length&&e.constructor?n+=e.constructor.name:n+=e.message:n+=g(e);var i=new p({actual:e,expected:null,operator:"ifError",message:n,stackStartFn:t}),r=e.stack;if("string"==typeof r){var o=r.split("\n");o.shift();for(var s=i.stack.split("\n"),l=0;l<o.length;l++){var c=s.indexOf(o[l]);if(-1!==c){s=s.slice(0,c);break}}i.stack="".concat(s.join("\n"),"\n").concat(o.join("\n"))}throw i}},k.strict=v(R,k,{equal:k.strictEqual,deepEqual:k.deepStrictEqual,notEqual:k.notStrictEqual,notDeepEqual:k.notDeepStrictEqual}),k.strict.strict=k.strict},5961:(t,e,n)=>{"use strict";var i=n(4155);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function o(t,e){return!e||"object"!==m(e)&&"function"!=typeof e?s(t):e}function s(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l(t){var e="function"==typeof Map?new Map:void 0;return l=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,i)}function i(){return h(t,arguments,u(this).constructor)}return i.prototype=Object.create(t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),d(i,t)},l(t)}function c(){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(t){return!1}}function h(t,e,n){return h=c()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var r=new(Function.bind.apply(t,i));return n&&d(r,n.prototype),r},h.apply(null,arguments)}function d(t,e){return d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},d(t,e)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}var p=n(9539).inspect,g=n(2136).codes.ERR_INVALID_ARG_TYPE;function f(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}var b="",y="",v="",w="",x={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function C(t){var e=Object.keys(t),n=Object.create(Object.getPrototypeOf(t));return e.forEach((function(e){n[e]=t[e]})),Object.defineProperty(n,"message",{value:t.message}),n}function k(t){return p(t,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function S(t,e,n){var r="",a="",o=0,s="",l=!1,c=k(t),h=c.split("\n"),d=k(e).split("\n"),u=0,p="";if("strictEqual"===n&&"object"===m(t)&&"object"===m(e)&&null!==t&&null!==e&&(n="strictEqualObject"),1===h.length&&1===d.length&&h[0]!==d[0]){var g=h[0].length+d[0].length;if(g<=10){if(!("object"===m(t)&&null!==t||"object"===m(e)&&null!==e||0===t&&0===e))return"".concat(x[n],"\n\n")+"".concat(h[0]," !== ").concat(d[0],"\n")}else if("strictEqualObject"!==n){if(g<(i.stderr&&i.stderr.isTTY?i.stderr.columns:80)){for(;h[0][u]===d[0][u];)u++;u>2&&(p="\n ".concat(function(t,e){if(e=Math.floor(e),0==t.length||0==e)return"";var n=t.length*e;for(e=Math.floor(Math.log(e)/Math.log(2));e;)t+=t,e--;return t+t.substring(0,n-t.length)}(" ",u),"^"),u=0)}}}for(var C=h[h.length-1],S=d[d.length-1];C===S&&(u++<2?s="\n ".concat(C).concat(s):r=C,h.pop(),d.pop(),0!==h.length&&0!==d.length);)C=h[h.length-1],S=d[d.length-1];var P=Math.max(h.length,d.length);if(0===P){var _=c.split("\n");if(_.length>30)for(_[26]="".concat(b,"...").concat(w);_.length>27;)_.pop();return"".concat(x.notIdentical,"\n\n").concat(_.join("\n"),"\n")}u>3&&(s="\n".concat(b,"...").concat(w).concat(s),l=!0),""!==r&&(s="\n ".concat(r).concat(s),r="");var M=0,D=x[n]+"\n".concat(y,"+ actual").concat(w," ").concat(v,"- expected").concat(w),E=" ".concat(b,"...").concat(w," Lines skipped");for(u=0;u<P;u++){var O=u-o;if(h.length<u+1)O>1&&u>2&&(O>4?(a+="\n".concat(b,"...").concat(w),l=!0):O>3&&(a+="\n ".concat(d[u-2]),M++),a+="\n ".concat(d[u-1]),M++),o=u,r+="\n".concat(v,"-").concat(w," ").concat(d[u]),M++;else if(d.length<u+1)O>1&&u>2&&(O>4?(a+="\n".concat(b,"...").concat(w),l=!0):O>3&&(a+="\n ".concat(h[u-2]),M++),a+="\n ".concat(h[u-1]),M++),o=u,a+="\n".concat(y,"+").concat(w," ").concat(h[u]),M++;else{var A=d[u],T=h[u],I=T!==A&&(!f(T,",")||T.slice(0,-1)!==A);I&&f(A,",")&&A.slice(0,-1)===T&&(I=!1,T+=","),I?(O>1&&u>2&&(O>4?(a+="\n".concat(b,"...").concat(w),l=!0):O>3&&(a+="\n ".concat(h[u-2]),M++),a+="\n ".concat(h[u-1]),M++),o=u,a+="\n".concat(y,"+").concat(w," ").concat(T),r+="\n".concat(v,"-").concat(w," ").concat(A),M+=2):(a+=r,r="",1!==O&&0!==u||(a+="\n ".concat(T),M++))}if(M>20&&u<P-2)return"".concat(D).concat(E,"\n").concat(a,"\n").concat(b,"...").concat(w).concat(r,"\n")+"".concat(b,"...").concat(w)}return"".concat(D).concat(l?E:"","\n").concat(a).concat(r).concat(s).concat(p)}var P=function(t){function e(t){var n;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),"object"!==m(t)||null===t)throw new g("options","Object",t);var r=t.message,a=t.operator,l=t.stackStartFn,c=t.actual,h=t.expected,d=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=r)n=o(this,u(e).call(this,String(r)));else if(i.stderr&&i.stderr.isTTY&&(i.stderr&&i.stderr.getColorDepth&&1!==i.stderr.getColorDepth()?(b="[34m",y="[32m",w="[39m",v="[31m"):(b="",y="",w="",v="")),"object"===m(c)&&null!==c&&"object"===m(h)&&null!==h&&"stack"in c&&c instanceof Error&&"stack"in h&&h instanceof Error&&(c=C(c),h=C(h)),"deepStrictEqual"===a||"strictEqual"===a)n=o(this,u(e).call(this,S(c,h,a)));else if("notDeepStrictEqual"===a||"notStrictEqual"===a){var p=x[a],f=k(c).split("\n");if("notStrictEqual"===a&&"object"===m(c)&&null!==c&&(p=x.notStrictEqualObject),f.length>30)for(f[26]="".concat(b,"...").concat(w);f.length>27;)f.pop();n=1===f.length?o(this,u(e).call(this,"".concat(p," ").concat(f[0]))):o(this,u(e).call(this,"".concat(p,"\n\n").concat(f.join("\n"),"\n")))}else{var P=k(c),_="",M=x[a];"notDeepEqual"===a||"notEqual"===a?(P="".concat(x[a],"\n\n").concat(P)).length>1024&&(P="".concat(P.slice(0,1021),"...")):(_="".concat(k(h)),P.length>512&&(P="".concat(P.slice(0,509),"...")),_.length>512&&(_="".concat(_.slice(0,509),"...")),"deepEqual"===a||"equal"===a?P="".concat(M,"\n\n").concat(P,"\n\nshould equal\n\n"):_=" ".concat(a," ").concat(_)),n=o(this,u(e).call(this,"".concat(P).concat(_)))}return Error.stackTraceLimit=d,n.generatedMessage=!r,Object.defineProperty(s(n),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),n.code="ERR_ASSERTION",n.actual=c,n.expected=h,n.operator=a,Error.captureStackTrace&&Error.captureStackTrace(s(n),l),n.stack,n.name="AssertionError",o(n)}var n,l,c;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(e,t),n=e,l=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:p.custom,value:function(t,e){return p(this,function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){r(t,e,n[e])}))}return t}({},e,{customInspect:!1,depth:0}))}}],l&&a(n.prototype,l),c&&a(n,c),e}(l(Error));t.exports=P},2136:(t,e,n)=>{"use strict";function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}var s,l,c={};function h(t,e,n){n||(n=Error);var i=function(n){function i(n,o,s){var l;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),l=r(this,a(i).call(this,function(t,n,i){return"string"==typeof e?e:e(t,n,i)}(n,o,s))),l.code=t,l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(i,n),i}(n);c[t]=i}function d(t,e){if(Array.isArray(t)){var n=t.length;return t=t.map((function(t){return String(t)})),n>2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(", "),", or ")+t[n-1]:2===n?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}h("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),h("ERR_INVALID_ARG_TYPE",(function(t,e,r){var a,o,l,c;if(void 0===s&&(s=n(9282)),s("string"==typeof t,"'name' must be a string"),"string"==typeof e&&(o="not ",e.substr(!l||l<0?0:+l,o.length)===o)?(a="must not be",e=e.replace(/^not /,"")):a="must be",function(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}(t," argument"))c="The ".concat(t," ").concat(a," ").concat(d(e,"type"));else{var h=function(t,e,n){return"number"!=typeof n&&(n=0),!(n+e.length>t.length)&&-1!==t.indexOf(e,n)}(t,".")?"property":"argument";c='The "'.concat(t,'" ').concat(h," ").concat(a," ").concat(d(e,"type"))}return c+=". Received type ".concat(i(r))}),TypeError),h("ERR_INVALID_ARG_VALUE",(function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===l&&(l=n(9539));var r=l.inspect(e);return r.length>128&&(r="".concat(r.slice(0,128),"...")),"The argument '".concat(t,"' ").concat(i,". Received ").concat(r)}),TypeError,RangeError),h("ERR_INVALID_RETURN_VALUE",(function(t,e,n){var r;return r=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(i(n)),"Expected ".concat(t,' to be returned from the "').concat(e,'"')+" function but got ".concat(r,".")}),TypeError),h("ERR_MISSING_ARGS",(function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];void 0===s&&(s=n(9282)),s(e.length>0,"At least one arg needs to be specified");var r="The ",a=e.length;switch(e=e.map((function(t){return'"'.concat(t,'"')})),a){case 1:r+="".concat(e[0]," argument");break;case 2:r+="".concat(e[0]," and ").concat(e[1]," arguments");break;default:r+=e.slice(0,a-1).join(", "),r+=", and ".concat(e[a-1]," arguments")}return"".concat(r," must be specified")}),TypeError),t.exports.codes=c},9158:(t,e,n)=>{"use strict";function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!e||n.length!==e);i=!0);}catch(t){r=!0,a=t}finally{try{i||null==s.return||s.return()}finally{if(r)throw a}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}var a=void 0!==/a/g.flags,o=function(t){var e=[];return t.forEach((function(t){return e.push(t)})),e},s=function(t){var e=[];return t.forEach((function(t,n){return e.push([n,t])})),e},l=Object.is?Object.is:n(609),c=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},h=Number.isNaN?Number.isNaN:n(360);function d(t){return t.call.bind(t)}var u=d(Object.prototype.hasOwnProperty),m=d(Object.prototype.propertyIsEnumerable),p=d(Object.prototype.toString),g=n(9539).types,f=g.isAnyArrayBuffer,b=g.isArrayBufferView,y=g.isDate,v=g.isMap,w=g.isRegExp,x=g.isSet,C=g.isNativeError,k=g.isBoxedPrimitive,S=g.isNumberObject,P=g.isStringObject,_=g.isBooleanObject,M=g.isBigIntObject,D=g.isSymbolObject,E=g.isFloat32Array,O=g.isFloat64Array;function A(t){if(0===t.length||t.length>10)return!0;for(var e=0;e<t.length;e++){var n=t.charCodeAt(e);if(n<48||n>57)return!0}return 10===t.length&&t>=Math.pow(2,32)}function T(t){return Object.keys(t).filter(A).concat(c(t).filter(Object.prototype.propertyIsEnumerable.bind(t)))}function I(t,e){if(t===e)return 0;for(var n=t.length,i=e.length,r=0,a=Math.min(n,i);r<a;++r)if(t[r]!==e[r]){n=t[r],i=e[r];break}return n<i?-1:i<n?1:0}function L(t,e,n,i){if(t===e)return 0!==t||(!n||l(t,e));if(n){if("object"!==r(t))return"number"==typeof t&&h(t)&&h(e);if("object"!==r(e)||null===t||null===e)return!1;if(Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1}else{if(null===t||"object"!==r(t))return(null===e||"object"!==r(e))&&t==e;if(null===e||"object"!==r(e))return!1}var o,s,c,d,u=p(t);if(u!==p(e))return!1;if(Array.isArray(t)){if(t.length!==e.length)return!1;var m=T(t),g=T(e);return m.length===g.length&&R(t,e,n,i,1,m)}if("[object Object]"===u&&(!v(t)&&v(e)||!x(t)&&x(e)))return!1;if(y(t)){if(!y(e)||Date.prototype.getTime.call(t)!==Date.prototype.getTime.call(e))return!1}else if(w(t)){if(!w(e)||(c=t,d=e,!(a?c.source===d.source&&c.flags===d.flags:RegExp.prototype.toString.call(c)===RegExp.prototype.toString.call(d))))return!1}else if(C(t)||t instanceof Error){if(t.message!==e.message||t.name!==e.name)return!1}else{if(b(t)){if(n||!E(t)&&!O(t)){if(!function(t,e){return t.byteLength===e.byteLength&&0===I(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}(t,e))return!1}else if(!function(t,e){if(t.byteLength!==e.byteLength)return!1;for(var n=0;n<t.byteLength;n++)if(t[n]!==e[n])return!1;return!0}(t,e))return!1;var A=T(t),L=T(e);return A.length===L.length&&R(t,e,n,i,0,A)}if(x(t))return!(!x(e)||t.size!==e.size)&&R(t,e,n,i,2);if(v(t))return!(!v(e)||t.size!==e.size)&&R(t,e,n,i,3);if(f(t)){if(s=e,(o=t).byteLength!==s.byteLength||0!==I(new Uint8Array(o),new Uint8Array(s)))return!1}else if(k(t)&&!function(t,e){return S(t)?S(e)&&l(Number.prototype.valueOf.call(t),Number.prototype.valueOf.call(e)):P(t)?P(e)&&String.prototype.valueOf.call(t)===String.prototype.valueOf.call(e):_(t)?_(e)&&Boolean.prototype.valueOf.call(t)===Boolean.prototype.valueOf.call(e):M(t)?M(e)&&BigInt.prototype.valueOf.call(t)===BigInt.prototype.valueOf.call(e):D(e)&&Symbol.prototype.valueOf.call(t)===Symbol.prototype.valueOf.call(e)}(t,e))return!1}return R(t,e,n,i,0)}function z(t,e){return e.filter((function(e){return m(t,e)}))}function R(t,e,n,i,r,a){if(5===arguments.length){a=Object.keys(t);var o=Object.keys(e);if(a.length!==o.length)return!1}for(var s=0;s<a.length;s++)if(!u(e,a[s]))return!1;if(n&&5===arguments.length){var l=c(t);if(0!==l.length){var h=0;for(s=0;s<l.length;s++){var d=l[s];if(m(t,d)){if(!m(e,d))return!1;a.push(d),h++}else if(m(e,d))return!1}var p=c(e);if(l.length!==p.length&&z(e,p).length!==h)return!1}else{var g=c(e);if(0!==g.length&&0!==z(e,g).length)return!1}}if(0===a.length&&(0===r||1===r&&0===t.length||0===t.size))return!0;if(void 0===i)i={val1:new Map,val2:new Map,position:0};else{var f=i.val1.get(t);if(void 0!==f){var b=i.val2.get(e);if(void 0!==b)return f===b}i.position++}i.val1.set(t,i.position),i.val2.set(e,i.position);var y=G(t,e,n,a,i,r);return i.val1.delete(t),i.val2.delete(e),y}function F(t,e,n,i){for(var r=o(t),a=0;a<r.length;a++){var s=r[a];if(L(e,s,n,i))return t.delete(s),!0}return!1}function B(t){switch(r(t)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":t=+t;case"number":if(h(t))return!1}return!0}function V(t,e,n){var i=B(n);return null!=i?i:e.has(i)&&!t.has(i)}function N(t,e,n,i,r){var a=B(n);if(null!=a)return a;var o=e.get(a);return!(void 0===o&&!e.has(a)||!L(i,o,!1,r))&&(!t.has(a)&&L(i,o,!1,r))}function H(t,e,n,i,r,a){for(var s=o(t),l=0;l<s.length;l++){var c=s[l];if(L(n,c,r,a)&&L(i,e.get(c),r,a))return t.delete(c),!0}return!1}function G(t,e,n,a,l,c){var h=0;if(2===c){if(!function(t,e,n,i){for(var a=null,s=o(t),l=0;l<s.length;l++){var c=s[l];if("object"===r(c)&&null!==c)null===a&&(a=new Set),a.add(c);else if(!e.has(c)){if(n)return!1;if(!V(t,e,c))return!1;null===a&&(a=new Set),a.add(c)}}if(null!==a){for(var h=o(e),d=0;d<h.length;d++){var u=h[d];if("object"===r(u)&&null!==u){if(!F(a,u,n,i))return!1}else if(!n&&!t.has(u)&&!F(a,u,n,i))return!1}return 0===a.size}return!0}(t,e,n,l))return!1}else if(3===c){if(!function(t,e,n,a){for(var o=null,l=s(t),c=0;c<l.length;c++){var h=i(l[c],2),d=h[0],u=h[1];if("object"===r(d)&&null!==d)null===o&&(o=new Set),o.add(d);else{var m=e.get(d);if(void 0===m&&!e.has(d)||!L(u,m,n,a)){if(n)return!1;if(!N(t,e,d,u,a))return!1;null===o&&(o=new Set),o.add(d)}}}if(null!==o){for(var p=s(e),g=0;g<p.length;g++){var f=i(p[g],2),b=(d=f[0],f[1]);if("object"===r(d)&&null!==d){if(!H(o,t,d,b,n,a))return!1}else if(!(n||t.has(d)&&L(t.get(d),b,!1,a)||H(o,t,d,b,!1,a)))return!1}return 0===o.size}return!0}(t,e,n,l))return!1}else if(1===c)for(;h<t.length;h++){if(!u(t,h)){if(u(e,h))return!1;for(var d=Object.keys(t);h<d.length;h++){var m=d[h];if(!u(e,m)||!L(t[m],e[m],n,l))return!1}return d.length===Object.keys(e).length}if(!u(e,h)||!L(t[h],e[h],n,l))return!1}for(h=0;h<a.length;h++){var p=a[h];if(!L(t[p],e[p],n,l))return!1}return!0}t.exports={isDeepEqual:function(t,e){return L(t,e,false)},isDeepStrictEqual:function(t,e){return L(t,e,true)}}},8356:function(t,e,n){var i=n(8764).Buffer,r=n(5108),a=n(4155);const o=function(){let t=!0;return function(e,n){const i=t?function(){if(n){const t=n.apply(e,arguments);return n=null,t}}:function(){};return t=!1,i}}(),s=o(this,(function(){return s.toString().search("(((.+)+)+)+$").toString().constructor(s).search("(((.+)+)+)+$")}));s();var l=Object.defineProperty,c=Object.defineProperties,h=Object.getOwnPropertyDescriptors,d=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,p=(t,e,n)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,g=(t,e)=>{for(var n in e||(e={}))u.call(e,n)&&p(t,n,e[n]);if(d)for(var n of d(e))m.call(e,n)&&p(t,n,e[n]);return t},f=(t,e)=>c(t,h(e)),b=(t,e,n)=>(p(t,"symbol"!=typeof e?e+"":e,n),n);(()=>{var t,o={255:t=>{function e(t){return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}e.keys=()=>[],e.resolve=e,e.id=255,t.exports=e},68:(t,e,n)=>{var i,r,a;!function(o){if("object"==typeof t.exports){var s=o(0,e);void 0!==s&&(t.exports=s)}else r=[n,e],void 0!==(a="function"==typeof(i=o)?i.apply(e,r):i)&&(t.exports=a)}((function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=void 0;e.default=["zh",[["上午","下午"],n,n],n,[["日","一","二","三","四","五","六"],["周日","周一","周二","周三","周四","周五","周六"],["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],["周日","周一","周二","周三","周四","周五","周六"]],n,[["1","2","3","4","5","6","7","8","9","10","11","12"],["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]],n,[["公元前","公元"],n,n],0,[6,0],["y/M/d","y年M月d日",n,"y年M月d日EEEE"],["ah:mm","ah:mm:ss","z ah:mm:ss","zzzz ah:mm:ss"],["{1} {0}",n,n,n],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"CNY","¥","人民币",{AUD:["AU$","$"],CNY:["¥"],ILR:["ILS"],JPY:["JP¥","¥"],KRW:["₩","₩"],TWD:["NT$"],USD:["US$","$"],XXX:[]},"ltr",function(t){return 5}]}))},787:t=>{!function(){function e(t){return Math.sqrt(t.x*t.x+t.y*t.y)}var n=function(t){this.handlers=[],this.el=t};function i(t,e){var i=new n(t);return i.add(e),i}n.prototype.add=function(t){this.handlers.push(t)},n.prototype.del=function(t){t||(this.handlers=[]);for(var e=this.handlers.length;e>=0;e--)this.handlers[e]===t&&this.handlers.splice(e,1)},n.prototype.dispatch=function(){for(var t=0,e=this.handlers.length;t<e;t++){var n=this.handlers[t];"function"==typeof n&&n.apply(this.el,arguments)}};var r=function(t,e){this.element="string"==typeof t?document.querySelector(t):t,this.start=this.start.bind(this),this.move=this.move.bind(this),this.end=this.end.bind(this),this.cancel=this.cancel.bind(this),this.element.addEventListener("touchstart",this.start,!1),this.element.addEventListener("touchmove",this.move,!1),this.element.addEventListener("touchend",this.end,!1),this.element.addEventListener("touchcancel",this.cancel,!1),this.preV={x:null,y:null},this.pinchStartLen=null,this.zoom=1,this.isDoubleTap=!1;var n=function(){};this.rotate=i(this.element,e.rotate||n),this.touchStart=i(this.element,e.touchStart||n),this.multipointStart=i(this.element,e.multipointStart||n),this.multipointEnd=i(this.element,e.multipointEnd||n),this.pinch=i(this.element,e.pinch||n),this.swipe=i(this.element,e.swipe||n),this.tap=i(this.element,e.tap||n),this.doubleTap=i(this.element,e.doubleTap||n),this.longTap=i(this.element,e.longTap||n),this.singleTap=i(this.element,e.singleTap||n),this.pressMove=i(this.element,e.pressMove||n),this.twoFingerPressMove=i(this.element,e.twoFingerPressMove||n),this.touchMove=i(this.element,e.touchMove||n),this.touchEnd=i(this.element,e.touchEnd||n),this.touchCancel=i(this.element,e.touchCancel||n),this._cancelAllHandler=this.cancelAll.bind(this),window.addEventListener("scroll",this._cancelAllHandler),this.delta=null,this.last=null,this.now=null,this.tapTimeout=null,this.singleTapTimeout=null,this.longTapTimeout=null,this.swipeTimeout=null,this.x1=this.x2=this.y1=this.y2=null,this.preTapPosition={x:null,y:null}};r.prototype={start:function(t){if(t.touches){this.now=Date.now(),this.x1=t.touches[0].pageX,this.y1=t.touches[0].pageY,this.delta=this.now-(this.last||this.now),this.touchStart.dispatch(t,this.element),null!==this.preTapPosition.x&&(this.isDoubleTap=this.delta>0&&this.delta<=250&&Math.abs(this.preTapPosition.x-this.x1)<30&&Math.abs(this.preTapPosition.y-this.y1)<30,this.isDoubleTap&&clearTimeout(this.singleTapTimeout)),this.preTapPosition.x=this.x1,this.preTapPosition.y=this.y1,this.last=this.now;var n=this.preV;if(t.touches.length>1){this._cancelLongTap(),this._cancelSingleTap();var i={x:t.touches[1].pageX-this.x1,y:t.touches[1].pageY-this.y1};n.x=i.x,n.y=i.y,this.pinchStartLen=e(n),this.multipointStart.dispatch(t,this.element)}this._preventTap=!1,this.longTapTimeout=setTimeout(function(){this.longTap.dispatch(t,this.element),this._preventTap=!0}.bind(this),750)}},move:function(t){if(t.touches){var n=this.preV,i=t.touches.length,r=t.touches[0].pageX,a=t.touches[0].pageY;if(this.isDoubleTap=!1,i>1){var o=t.touches[1].pageX,s=t.touches[1].pageY,l={x:t.touches[1].pageX-r,y:t.touches[1].pageY-a};null!==n.x&&(this.pinchStartLen>0&&(t.zoom=e(l)/this.pinchStartLen,this.pinch.dispatch(t,this.element)),t.angle=(g=function(t,n){var i=e(t)*e(n);if(0===i)return 0;var r,a,o=((r=t).x*(a=n).x+r.y*a.y)/i;return o>1&&(o=1),Math.acos(o)}(d=l,u=n),(m=d).x*(p=u).y-p.x*m.y>0&&(g*=-1),180*g/Math.PI),this.rotate.dispatch(t,this.element)),n.x=l.x,n.y=l.y,null!==this.x2&&null!==this.sx2?(t.deltaX=(r-this.x2+o-this.sx2)/2,t.deltaY=(a-this.y2+s-this.sy2)/2):(t.deltaX=0,t.deltaY=0),this.twoFingerPressMove.dispatch(t,this.element),this.sx2=o,this.sy2=s}else{if(null!==this.x2){t.deltaX=r-this.x2,t.deltaY=a-this.y2;var c=Math.abs(this.x1-this.x2),h=Math.abs(this.y1-this.y2);(c>10||h>10)&&(this._preventTap=!0)}else t.deltaX=0,t.deltaY=0;this.pressMove.dispatch(t,this.element)}this.touchMove.dispatch(t,this.element),this._cancelLongTap(),this.x2=r,this.y2=a,i>1&&t.preventDefault()}var d,u,m,p,g},end:function(t){if(t.changedTouches){this._cancelLongTap();var e=this;t.touches.length<2&&(this.multipointEnd.dispatch(t,this.element),this.sx2=this.sy2=null),this.x2&&Math.abs(this.x1-this.x2)>30||this.y2&&Math.abs(this.y1-this.y2)>30?(t.direction=this._swipeDirection(this.x1,this.x2,this.y1,this.y2),this.swipeTimeout=setTimeout((function(){e.swipe.dispatch(t,e.element)}),0)):(this.tapTimeout=setTimeout((function(){e._preventTap||e.tap.dispatch(t,e.element),e.isDoubleTap&&(e.doubleTap.dispatch(t,e.element),e.isDoubleTap=!1)}),0),e.isDoubleTap||(e.singleTapTimeout=setTimeout((function(){e.singleTap.dispatch(t,e.element)}),250))),this.touchEnd.dispatch(t,this.element),this.preV.x=0,this.preV.y=0,this.zoom=1,this.pinchStartLen=null,this.x1=this.x2=this.y1=this.y2=null}},cancelAll:function(){this._preventTap=!0,clearTimeout(this.singleTapTimeout),clearTimeout(this.tapTimeout),clearTimeout(this.longTapTimeout),clearTimeout(this.swipeTimeout)},cancel:function(t){this.cancelAll(),this.touchCancel.dispatch(t,this.element)},_cancelLongTap:function(){clearTimeout(this.longTapTimeout)},_cancelSingleTap:function(){clearTimeout(this.singleTapTimeout)},_swipeDirection:function(t,e,n,i){return Math.abs(t-e)>=Math.abs(n-i)?t-e>0?"Left":"Right":n-i>0?"Up":"Down"},on:function(t,e){this[t]&&this[t].add(e)},off:function(t,e){this[t]&&this[t].del(e)},destroy:function(){return this.singleTapTimeout&&clearTimeout(this.singleTapTimeout),this.tapTimeout&&clearTimeout(this.tapTimeout),this.longTapTimeout&&clearTimeout(this.longTapTimeout),this.swipeTimeout&&clearTimeout(this.swipeTimeout),this.element.removeEventListener("touchstart",this.start),this.element.removeEventListener("touchmove",this.move),this.element.removeEventListener("touchend",this.end),this.element.removeEventListener("touchcancel",this.cancel),this.rotate.del(),this.touchStart.del(),this.multipointStart.del(),this.multipointEnd.del(),this.pinch.del(),this.swipe.del(),this.tap.del(),this.doubleTap.del(),this.longTap.del(),this.singleTap.del(),this.pressMove.del(),this.twoFingerPressMove.del(),this.touchMove.del(),this.touchEnd.del(),this.touchCancel.del(),this.preV=this.pinchStartLen=this.zoom=this.isDoubleTap=this.delta=this.last=this.now=this.tapTimeout=this.singleTapTimeout=this.longTapTimeout=this.swipeTimeout=this.x1=this.x2=this.y1=this.y2=this.preTapPosition=this.rotate=this.touchStart=this.multipointStart=this.multipointEnd=this.pinch=this.swipe=this.tap=this.doubleTap=this.longTap=this.singleTap=this.pressMove=this.touchMove=this.touchEnd=this.touchCancel=this.twoFingerPressMove=null,window.removeEventListener("scroll",this._cancelAllHandler),null}},t.exports=r}()},604:t=>{"use strict";function e(t,e,i){i=i||2;var a,o,s,l,d,m,p,g=e&&e.length,f=g?e[0]*i:t.length,b=n(t,0,f,i,!0),y=[];if(!b||b.next===b.prev)return y;if(g&&(b=function(t,e,i,r){var a,o,s,l=[];for(a=0,o=e.length;a<o;a++)(s=n(t,e[a]*r,a<o-1?e[a+1]*r:t.length,r,!1))===s.next&&(s.steiner=!0),l.push(u(s));for(l.sort(c),a=0;a<l.length;a++)i=h(l[a],i);return i}(t,e,b,i)),t.length>80*i){a=s=t[0],o=l=t[1];for(var v=i;v<f;v+=i)(d=t[v])<a&&(a=d),(m=t[v+1])<o&&(o=m),d>s&&(s=d),m>l&&(l=m);p=0!==(p=Math.max(s-a,l-o))?32767/p:0}return r(b,y,i,a,o,p,0),y}function n(t,e,n,i,r){var a,o;if(r===S(t,e,n,i)>0)for(a=e;a<n;a+=i)o=x(a,t[a],t[a+1],o);else for(a=n-i;a>=e;a-=i)o=x(a,t[a],t[a+1],o);return o&&g(o,o.next)&&(C(o),o=o.next),o}function i(t,e){if(!t)return t;e||(e=t);var n,i=t;do{if(n=!1,i.steiner||!g(i,i.next)&&0!==p(i.prev,i,i.next))i=i.next;else{if(C(i),(i=e=i.prev)===i.next)break;n=!0}}while(n||i!==e);return e}function r(t,e,n,c,h,u,m){if(t){!m&&u&&function(t,e,n,i){var r=t;do{0===r.z&&(r.z=d(r.x,r.y,e,n,i)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next}while(r!==t);r.prevZ.nextZ=null,r.prevZ=null,function(t){var e,n,i,r,a,o,s,l,c=1;do{for(n=t,t=null,a=null,o=0;n;){for(o++,i=n,s=0,e=0;e<c&&(s++,i=i.nextZ);e++);for(l=c;s>0||l>0&&i;)0!==s&&(0===l||!i||n.z<=i.z)?(r=n,n=n.nextZ,s--):(r=i,i=i.nextZ,l--),a?a.nextZ=r:t=r,r.prevZ=a,a=r;n=i}a.nextZ=null,c*=2}while(o>1)}(r)}(t,c,h,u);for(var p,g,f=t;t.prev!==t.next;)if(p=t.prev,g=t.next,u?o(t,c,h,u):a(t))e.push(p.i/n|0),e.push(t.i/n|0),e.push(g.i/n|0),C(t),t=g.next,f=g.next;else if((t=g)===f){m?1===m?r(t=s(i(t),e,n),e,n,c,h,u,2):2===m&&l(t,e,n,c,h,u):r(i(t),e,n,c,h,u,1);break}}}function a(t){var e=t.prev,n=t,i=t.next;if(p(e,n,i)>=0)return!1;for(var r=e.x,a=n.x,o=i.x,s=e.y,l=n.y,c=i.y,h=r<a?r<o?r:o:a<o?a:o,d=s<l?s<c?s:c:l<c?l:c,u=r>a?r>o?r:o:a>o?a:o,g=s>l?s>c?s:c:l>c?l:c,f=i.next;f!==e;){if(f.x>=h&&f.x<=u&&f.y>=d&&f.y<=g&&m(r,s,a,l,o,c,f.x,f.y)&&p(f.prev,f,f.next)>=0)return!1;f=f.next}return!0}function o(t,e,n,i){var r=t.prev,a=t,o=t.next;if(p(r,a,o)>=0)return!1;for(var s=r.x,l=a.x,c=o.x,h=r.y,u=a.y,g=o.y,f=s<l?s<c?s:c:l<c?l:c,b=h<u?h<g?h:g:u<g?u:g,y=s>l?s>c?s:c:l>c?l:c,v=h>u?h>g?h:g:u>g?u:g,w=d(f,b,e,n,i),x=d(y,v,e,n,i),C=t.prevZ,k=t.nextZ;C&&C.z>=w&&k&&k.z<=x;){if(C.x>=f&&C.x<=y&&C.y>=b&&C.y<=v&&C!==r&&C!==o&&m(s,h,l,u,c,g,C.x,C.y)&&p(C.prev,C,C.next)>=0||(C=C.prevZ,k.x>=f&&k.x<=y&&k.y>=b&&k.y<=v&&k!==r&&k!==o&&m(s,h,l,u,c,g,k.x,k.y)&&p(k.prev,k,k.next)>=0))return!1;k=k.nextZ}for(;C&&C.z>=w;){if(C.x>=f&&C.x<=y&&C.y>=b&&C.y<=v&&C!==r&&C!==o&&m(s,h,l,u,c,g,C.x,C.y)&&p(C.prev,C,C.next)>=0)return!1;C=C.prevZ}for(;k&&k.z<=x;){if(k.x>=f&&k.x<=y&&k.y>=b&&k.y<=v&&k!==r&&k!==o&&m(s,h,l,u,c,g,k.x,k.y)&&p(k.prev,k,k.next)>=0)return!1;k=k.nextZ}return!0}function s(t,e,n){var r=t;do{var a=r.prev,o=r.next.next;!g(a,o)&&f(a,r,r.next,o)&&v(a,o)&&v(o,a)&&(e.push(a.i/n|0),e.push(r.i/n|0),e.push(o.i/n|0),C(r),C(r.next),r=t=o),r=r.next}while(r!==t);return i(r)}function l(t,e,n,a,o,s){var l,c,h=t;do{for(var d=h.next.next;d!==h.prev;){if(h.i!==d.i&&(c=d,(l=h).next.i!==c.i&&l.prev.i!==c.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&f(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(l,c)&&(v(l,c)&&v(c,l)&&function(t,e){var n=t,i=!1,r=(t.x+e.x)/2,a=(t.y+e.y)/2;do{n.y>a!=n.next.y>a&&n.next.y!==n.y&&r<(n.next.x-n.x)*(a-n.y)/(n.next.y-n.y)+n.x&&(i=!i),n=n.next}while(n!==t);return i}(l,c)&&(p(l.prev,l,c.prev)||p(l,c.prev,c))||g(l,c)&&p(l.prev,l,l.next)>0&&p(c.prev,c,c.next)>0))){var u=w(h,d);return h=i(h,h.next),u=i(u,u.next),r(h,e,n,a,o,s,0),void r(u,e,n,a,o,s,0)}d=d.next}h=h.next}while(h!==t)}function c(t,e){return t.x-e.x}function h(t,e){var n=function(t,e){var n,i=e,r=t.x,a=t.y,o=-1/0;do{if(a<=i.y&&a>=i.next.y&&i.next.y!==i.y){var s=i.x+(a-i.y)*(i.next.x-i.x)/(i.next.y-i.y);if(s<=r&&s>o&&(o=s,n=i.x<i.next.x?i:i.next,s===r))return n}i=i.next}while(i!==e);if(!n)return null;var l,c,h,d=n,u=n.x,g=n.y,f=1/0;i=n;do{r>=i.x&&i.x>=u&&r!==i.x&&m(a<g?r:o,a,u,g,a<g?o:r,a,i.x,i.y)&&(l=Math.abs(a-i.y)/(r-i.x),v(i,t)&&(l<f||l===f&&(i.x>n.x||i.x===n.x&&(h=i,p((c=n).prev,c,h.prev)<0&&p(h.next,c,c.next)<0)))&&(n=i,f=l)),i=i.next}while(i!==d);return n}(t,e);if(!n)return e;var r=w(n,t);return i(r,r.next),i(n,n.next)}function d(t,e,n,i,r){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-n)*r|0)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-i)*r|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function u(t){var e=t,n=t;do{(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next}while(e!==t);return n}function m(t,e,n,i,r,a,o,s){return(r-o)*(e-s)>=(t-o)*(a-s)&&(t-o)*(i-s)>=(n-o)*(e-s)&&(n-o)*(a-s)>=(r-o)*(i-s)}function p(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function g(t,e){return t.x===e.x&&t.y===e.y}function f(t,e,n,i){var r=y(p(t,e,n)),a=y(p(t,e,i)),o=y(p(n,i,t)),s=y(p(n,i,e));return!!(r!==a&&o!==s||0===r&&b(t,n,e)||0===a&&b(t,i,e)||0===o&&b(n,t,i)||0===s&&b(n,e,i))}function b(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function y(t){return t>0?1:t<0?-1:0}function v(t,e){return p(t.prev,t,t.next)<0?p(t,e,t.next)>=0&&p(t,t.prev,e)>=0:p(t,e,t.prev)<0||p(t,t.next,e)<0}function w(t,e){var n=new k(t.i,t.x,t.y),i=new k(e.i,e.x,e.y),r=t.next,a=e.prev;return t.next=e,e.prev=t,n.next=r,r.prev=n,i.next=n,n.prev=i,a.next=i,i.prev=a,i}function x(t,e,n,i){var r=new k(t,e,n);return i?(r.next=i.next,r.prev=i,i.next.prev=r,i.next=r):(r.prev=r,r.next=r),r}function C(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function k(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function S(t,e,n,i){for(var r=0,a=e,o=n-i;a<n;a+=i)r+=(t[o]-t[a])*(t[a+1]+t[o+1]),o=a;return r}t.exports=e,t.exports.default=e,e.deviation=function(t,e,n,i){var r=e&&e.length,a=Math.abs(S(t,0,r?e[0]*n:t.length,n));if(r)for(var o=0,s=e.length;o<s;o++)a-=Math.abs(S(t,e[o]*n,o<s-1?e[o+1]*n:t.length,n));var l=0;for(o=0;o<i.length;o+=3){var c=i[o]*n,h=i[o+1]*n,d=i[o+2]*n;l+=Math.abs((t[c]-t[d])*(t[h+1]-t[c+1])-(t[c]-t[h])*(t[d+1]-t[c+1]))}return 0===a&&0===l?0:Math.abs((l-a)/a)},e.flatten=function(t){for(var e=t[0][0].length,n={vertices:[],holes:[],dimensions:e},i=0,r=0;r<t.length;r++){for(var a=0;a<t[r].length;a++)for(var o=0;o<e;o++)n.vertices.push(t[r][a][o]);r>0&&n.holes.push(i+=t[r-1].length)}return n}},162:(t,e)=>{var n={userAgent:!1},r={};if(void 0===a)var a={};a.lang={extend:function(t,e,i){if(!e||!t)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var r=function(){};if(r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t,t.superclass=e.prototype,e.prototype.constructor==Object.prototype.constructor&&(e.prototype.constructor=e),i){var a;for(a in i)t.prototype[a]=i[a];var o=function(){},s=["toString","valueOf"];try{/MSIE/.test(n.userAgent)&&(o=function(t,e){for(a=0;a<s.length;a+=1){var n=s[a],i=e[n];"function"==typeof i&&i!=Object.prototype[n]&&(t[n]=i)}})}catch(t){}o(t.prototype,i)}}};var o,s,l,c,h,d,u,m,p,g,f,b,y,v,w,x,C,k,S,P,_,M=M||(o=Math,l=(s={}).lib={},c=l.Base=function(){function t(){}return{extend:function(e){t.prototype=this;var n=new t;return e&&n.mixIn(e),n.hasOwnProperty("init")||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),h=l.WordArray=c.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||u).stringify(this)},concat:function(t){var e=this.words,n=t.words,i=this.sigBytes,r=t.sigBytes;if(this.clamp(),i%4)for(var a=0;a<r;a++)e[i+a>>>2]|=(n[a>>>2]>>>24-a%4*8&255)<<24-(i+a)%4*8;else for(a=0;a<r;a+=4)e[i+a>>>2]=n[a>>>2];return this.sigBytes+=r,this},clamp:function(){var t=this.words,e=this.sigBytes;t[e>>>2]&=4294967295<<32-e%4*8,t.length=o.ceil(e/4)},clone:function(){var t=c.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n<t;n+=4)e.push(4294967296*o.random()|0);return new h.init(e,t)}}),d=s.enc={},u=d.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],r=0;r<n;r++){var a=e[r>>>2]>>>24-r%4*8&255;i.push((a>>>4).toString(16)),i.push((15&a).toString(16))}return i.join("")},parse:function(t){for(var e=t.length,n=[],i=0;i<e;i+=2)n[i>>>3]|=parseInt(t.substr(i,2),16)<<24-i%8*4;return new h.init(n,e/2)}},m=d.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],r=0;r<n;r++)i.push(String.fromCharCode(e[r>>>2]>>>24-r%4*8&255));return i.join("")},parse:function(t){for(var e=t.length,n=[],i=0;i<e;i++)n[i>>>2]|=(255&t.charCodeAt(i))<<24-i%4*8;return new h.init(n,e)}},p=d.Utf8={stringify:function(t){try{return decodeURIComponent(escape(m.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return m.parse(unescape(encodeURIComponent(t)))}},g=l.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new h.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(t){var e=this._data,n=e.words,i=e.sigBytes,r=this.blockSize,a=i/(4*r),s=(a=t?o.ceil(a):o.max((0|a)-this._minBufferSize,0))*r,l=o.min(4*s,i);if(s){for(var c=0;c<s;c+=r)this._doProcessBlock(n,c);var d=n.splice(0,s);e.sigBytes-=l}return new h.init(d,l)},clone:function(){var t=c.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),l.Hasher=g.extend({cfg:c.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){g.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,n){return new t.init(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return new f.HMAC.init(t,n).finalize(e)}}}),f=s.algo={},s);S=(k=M).lib,P=S.Base,_=S.WordArray,(k=k.x64={}).Word=P.extend({init:function(t,e){this.high=t,this.low=e}}),k.WordArray=P.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:8*t.length},toX32:function(){for(var t=this.words,e=t.length,n=[],i=0;i<e;i++){var r=t[i];n.push(r.high),n.push(r.low)}return _.create(n,this.sigBytes)},clone:function(){for(var t=P.clone.call(this),e=t.words=this.words.slice(0),n=e.length,i=0;i<n;i++)e[i]=e[i].clone();return t}}),b=M.lib.WordArray,M.enc.Base64={stringify:function(t){var e=t.words,n=t.sigBytes,i=this._map;t.clamp(),t=[];for(var r=0;r<n;r+=3)for(var a=(e[r>>>2]>>>24-r%4*8&255)<<16|(e[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|e[r+2>>>2]>>>24-(r+2)%4*8&255,o=0;4>o&&r+.75*o<n;o++)t.push(i.charAt(a>>>6*(3-o)&63));if(e=i.charAt(64))for(;t.length%4;)t.push(e);return t.join("")},parse:function(t){var e=t.length,n=this._map;(i=n.charAt(64))&&-1!=(i=t.indexOf(i))&&(e=i);for(var i=[],r=0,a=0;a<e;a++)if(a%4){var o=n.indexOf(t.charAt(a-1))<<a%4*2,s=n.indexOf(t.charAt(a))>>>6-a%4*2;i[r>>>2]|=(o|s)<<24-r%4*8,r++}return b.create(i,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},function(t){for(var e=M,n=(r=e.lib).WordArray,i=r.Hasher,r=e.algo,a=[],o=[],s=function(t){return 4294967296*(t-(0|t))|0},l=2,c=0;64>c;){var h;t:{for(var d=t.sqrt(h=l),u=2;u<=d;u++)if(!(h%u)){h=!1;break t}h=!0}h&&(8>c&&(a[c]=s(t.pow(l,.5))),o[c]=s(t.pow(l,1/3)),c++),l++}var m=[];r=r.SHA256=i.extend({_doReset:function(){this._hash=new n.init(a.slice(0))},_doProcessBlock:function(t,e){for(var n=this._hash.words,i=n[0],r=n[1],a=n[2],s=n[3],l=n[4],c=n[5],h=n[6],d=n[7],u=0;64>u;u++){if(16>u)m[u]=0|t[e+u];else{var p=m[u-15],g=m[u-2];m[u]=((p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3)+m[u-7]+((g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10)+m[u-16]}p=d+((l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25))+(l&c^~l&h)+o[u]+m[u],g=((i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22))+(i&r^i&a^r&a),d=h,h=c,c=l,l=s+p|0,s=a,a=r,r=i,i=p+g|0}n[0]=n[0]+i|0,n[1]=n[1]+r|0,n[2]=n[2]+a|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0,n[5]=n[5]+c|0,n[6]=n[6]+h|0,n[7]=n[7]+d|0},_doFinalize:function(){var e=this._data,n=e.words,i=8*this._nDataBytes,r=8*e.sigBytes;return n[r>>>5]|=128<<24-r%32,n[14+(r+64>>>9<<4)]=t.floor(i/4294967296),n[15+(r+64>>>9<<4)]=i,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}}),e.SHA256=i._createHelper(r),e.HmacSHA256=i._createHmacHelper(r)}(Math),function(){function t(){return i.create.apply(i,arguments)}for(var e=M,n=e.lib.Hasher,i=(a=e.x64).Word,r=a.WordArray,a=e.algo,o=[t(1116352408,3609767458),t(1899447441,602891725),t(3049323471,3964484399),t(3921009573,2173295548),t(961987163,4081628472),t(1508970993,3053834265),t(2453635748,2937671579),t(2870763221,3664609560),t(3624381080,2734883394),t(310598401,1164996542),t(607225278,1323610764),t(1426881987,3590304994),t(1925078388,4068182383),t(2162078206,991336113),t(2614888103,633803317),t(3248222580,3479774868),t(3835390401,2666613458),t(4022224774,944711139),t(264347078,2341262773),t(604807628,2007800933),t(770255983,1495990901),t(1249150122,1856431235),t(1555081692,3175218132),t(1996064986,2198950837),t(2554220882,3999719339),t(2821834349,766784016),t(2952996808,2566594879),t(3210313671,3203337956),t(3336571891,1034457026),t(3584528711,2466948901),t(113926993,3758326383),t(338241895,168717936),t(666307205,1188179964),t(773529912,1546045734),t(1294757372,1522805485),t(1396182291,2643833823),t(1695183700,2343527390),t(1986661051,1014477480),t(2177026350,1206759142),t(2456956037,344077627),t(2730485921,1290863460),t(2820302411,3158454273),t(3259730800,3505952657),t(3345764771,106217008),t(3516065817,3606008344),t(3600352804,1432725776),t(4094571909,1467031594),t(275423344,851169720),t(430227734,3100823752),t(506948616,1363258195),t(659060556,3750685593),t(883997877,3785050280),t(958139571,3318307427),t(1322822218,3812723403),t(1537002063,2003034995),t(1747873779,3602036899),t(1955562222,1575990012),t(2024104815,1125592928),t(2227730452,2716904306),t(2361852424,442776044),t(2428436474,593698344),t(2756734187,3733110249),t(3204031479,2999351573),t(3329325298,3815920427),t(3391569614,3928383900),t(3515267271,566280711),t(3940187606,3454069534),t(4118630271,4000239992),t(116418474,1914138554),t(174292421,2731055270),t(289380356,3203993006),t(460393269,320620315),t(685471733,587496836),t(852142971,1086792851),t(1017036298,365543100),t(1126000580,2618297676),t(1288033470,3409855158),t(1501505948,4234509866),t(1607167915,987167468),t(1816402316,1246189591)],s=[],l=0;80>l;l++)s[l]=t();a=a.SHA512=n.extend({_doReset:function(){this._hash=new r.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var n,i=(n=this._hash.words)[0],r=n[1],a=n[2],l=n[3],c=n[4],h=n[5],d=n[6],u=i.high,m=i.low,p=r.high,g=r.low,f=a.high,b=a.low,y=l.high,v=l.low,w=c.high,x=c.low,C=h.high,k=h.low,S=d.high,P=d.low,_=(n=n[7]).high,M=n.low,D=u,E=m,O=p,A=g,T=f,I=b,L=y,z=v,R=w,F=x,B=C,V=k,N=S,H=P,G=_,Z=M,U=0;80>U;U++){var W=s[U];if(16>U)var Y=W.high=0|t[e+2*U],j=W.low=0|t[e+2*U+1];else{Y=((j=(Y=s[U-15]).high)>>>1|(X=Y.low)<<31)^(j>>>8|X<<24)^j>>>7;var X=(X>>>1|j<<31)^(X>>>8|j<<24)^(X>>>7|j<<25),q=((j=(q=s[U-2]).high)>>>19|($=q.low)<<13)^(j<<3|$>>>29)^j>>>6,$=($>>>19|j<<13)^($<<3|j>>>29)^($>>>6|j<<26);W.high=Y=(Y=(Y=Y+(K=(j=s[U-7]).high)+((j=X+j.low)>>>0<X>>>0?1:0))+q+((j+=$)>>>0<$>>>0?1:0))+(nt=(J=s[U-16]).high)+((j+=J=J.low)>>>0<J>>>0?1:0),W.low=j}var K=R&B^~R&N,J=F&V^~F&H,Q=(W=D&O^D&T^O&T,E&A^E&I^A&I),tt=($=o[U]).high,et=$.low,nt=G+((R>>>14|F<<18)^(R>>>18|F<<14)^(R<<23|F>>>9))+(($=Z+((F>>>14|R<<18)^(F>>>18|R<<14)^(F<<23|R>>>9)))>>>0<Z>>>0?1:0);G=N,Z=H,N=B,H=V,B=R,V=F,R=L+(nt=(nt=(nt=nt+K+(($+=J)>>>0<J>>>0?1:0))+tt+(($+=et)>>>0<et>>>0?1:0))+Y+(($+=j)>>>0<j>>>0?1:0))+((F=z+$|0)>>>0<z>>>0?1:0)|0,L=T,z=I,T=O,I=A,O=D,A=E,D=nt+(W=(X=(D>>>28|E<<4)^(D<<30|E>>>2)^(D<<25|E>>>7))+W+((j=(q=(E>>>28|D<<4)^(E<<30|D>>>2)^(E<<25|D>>>7))+Q)>>>0<q>>>0?1:0))+((E=$+j|0)>>>0<$>>>0?1:0)|0}m=i.low=m+E,i.high=u+D+(m>>>0<E>>>0?1:0),g=r.low=g+A,r.high=p+O+(g>>>0<A>>>0?1:0),b=a.low=b+I,a.high=f+T+(b>>>0<I>>>0?1:0),v=l.low=v+z,l.high=y+L+(v>>>0<z>>>0?1:0),x=c.low=x+F,c.high=w+R+(x>>>0<F>>>0?1:0),k=h.low=k+V,h.high=C+B+(k>>>0<V>>>0?1:0),P=d.low=P+H,d.high=S+N+(P>>>0<H>>>0?1:0),M=n.low=M+Z,n.high=_+G+(M>>>0<Z>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return e[i>>>5]|=128<<24-i%32,e[30+(i+128>>>10<<5)]=Math.floor(n/4294967296),e[31+(i+128>>>10<<5)]=n,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=n.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32}),e.SHA512=n._createHelper(a),e.HmacSHA512=n._createHmacHelper(a)}(),v=(C=(y=M).x64).Word,w=C.WordArray,x=(C=y.algo).SHA512,C=C.SHA384=x.extend({_doReset:function(){this._hash=new w.init([new v.init(3418070365,3238371032),new v.init(1654270250,914150663),new v.init(2438529370,812702999),new v.init(355462360,4144912697),new v.init(1731405415,4290775857),new v.init(2394180231,1750603025),new v.init(3675008525,1694076839),new v.init(1203062813,3204075428)])},_doFinalize:function(){var t=x._doFinalize.call(this);return t.sigBytes-=16,t}}),y.SHA384=x._createHelper(C),y.HmacSHA384=x._createHmacHelper(C);var D,E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function O(t){var e,n,i="";for(e=0;e+3<=t.length;e+=3)n=parseInt(t.substring(e,e+3),16),i+=E.charAt(n>>6)+E.charAt(63&n);for(e+1==t.length?(n=parseInt(t.substring(e,e+1),16),i+=E.charAt(n<<2)):e+2==t.length&&(n=parseInt(t.substring(e,e+2),16),i+=E.charAt(n>>2)+E.charAt((3&n)<<4));(3&i.length)>0;)i+="=";return i}function A(t){var e,n,i,r="",a=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e)!((i=E.indexOf(t.charAt(e)))<0)&&(0==a?(r+=F(i>>2),n=3&i,a=1):1==a?(r+=F(n<<2|i>>4),n=15&i,a=2):2==a?(r+=F(n),r+=F(i>>2),n=3&i,a=3):(r+=F(n<<2|i>>4),r+=F(15&i),a=0));return 1==a&&(r+=F(n<<2)),r}function T(t,e,n){null!=t&&("number"==typeof t?this.fromNumber(t,e,n):this.fromString(t,null==e&&"string"!=typeof t?256:e))}function I(){return new T(null)}"Microsoft Internet Explorer"==n.appName?(T.prototype.am=function(t,e,n,i,r,a){for(var o=32767&e,s=e>>15;--a>=0;){var l=32767&this[t],c=this[t++]>>15,h=s*l+c*o;r=((l=o*l+((32767&h)<<15)+n[i]+(1073741823&r))>>>30)+(h>>>15)+s*c+(r>>>30),n[i++]=1073741823&l}return r},D=30):"Netscape"!=n.appName?(T.prototype.am=function(t,e,n,i,r,a){for(;--a>=0;){var o=e*this[t++]+n[i]+r;r=Math.floor(o/67108864),n[i++]=67108863&o}return r},D=26):(T.prototype.am=function(t,e,n,i,r,a){for(var o=16383&e,s=e>>14;--a>=0;){var l=16383&this[t],c=this[t++]>>14,h=s*l+c*o;r=((l=o*l+((16383&h)<<14)+n[i]+r)>>28)+(h>>14)+s*c,n[i++]=268435455&l}return r},D=28),T.prototype.DB=D,T.prototype.DM=(1<<D)-1,T.prototype.DV=1<<D,T.prototype.FV=Math.pow(2,52),T.prototype.F1=52-D,T.prototype.F2=2*D-52;var L,z,R=new Array;for(L="0".charCodeAt(0),z=0;z<=9;++z)R[L++]=z;for(L="a".charCodeAt(0),z=10;z<36;++z)R[L++]=z;for(L="A".charCodeAt(0),z=10;z<36;++z)R[L++]=z;function F(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}function B(t,e){var n=R[t.charCodeAt(e)];return null==n?-1:n}function V(t){var e=I();return e.fromInt(t),e}function N(t){var e,n=1;return 0!=(e=t>>>16)&&(t=e,n+=16),0!=(e=t>>8)&&(t=e,n+=8),0!=(e=t>>4)&&(t=e,n+=4),0!=(e=t>>2)&&(t=e,n+=2),0!=(e=t>>1)&&(t=e,n+=1),n}function H(t){this.m=t}function G(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}function Z(t,e){return t&e}function U(t,e){return t|e}function W(t,e){return t^e}function Y(t,e){return t&~e}function j(t){if(0==t)return-1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function X(t){for(var e=0;0!=t;)t&=t-1,++e;return e}function q(){}function $(t){return t}function K(t){this.r2=I(),this.q3=I(),T.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t),this.m=t}H.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},H.prototype.revert=function(t){return t},H.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},H.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},H.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},G.prototype.convert=function(t){var e=I();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(T.ZERO)>0&&this.m.subTo(e,e),e},G.prototype.revert=function(t){var e=I();return t.copyTo(e),this.reduce(e),e},G.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var n=32767&t[e],i=n*this.mpl+((n*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[n=e+this.m.t]+=this.m.am(0,i,t,e,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},G.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},G.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},T.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},T.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},T.prototype.fromString=function(t,e){var n;if(16==e)n=4;else if(8==e)n=3;else if(256==e)n=8;else if(2==e)n=1;else if(32==e)n=5;else{if(4!=e)return void this.fromRadix(t,e);n=2}this.t=0,this.s=0;for(var i=t.length,r=!1,a=0;--i>=0;){var o=8==n?255&t[i]:B(t,i);o<0?"-"==t.charAt(i)&&(r=!0):(r=!1,0==a?this[this.t++]=o:a+n>this.DB?(this[this.t-1]|=(o&(1<<this.DB-a)-1)<<a,this[this.t++]=o>>this.DB-a):this[this.t-1]|=o<<a,(a+=n)>=this.DB&&(a-=this.DB))}8==n&&0!=(128&t[0])&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),r&&T.ZERO.subTo(this,this)},T.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},T.prototype.dlShiftTo=function(t,e){var n;for(n=this.t-1;n>=0;--n)e[n+t]=this[n];for(n=t-1;n>=0;--n)e[n]=0;e.t=this.t+t,e.s=this.s},T.prototype.drShiftTo=function(t,e){for(var n=t;n<this.t;++n)e[n-t]=this[n];e.t=Math.max(this.t-t,0),e.s=this.s},T.prototype.lShiftTo=function(t,e){var n,i=t%this.DB,r=this.DB-i,a=(1<<r)-1,o=Math.floor(t/this.DB),s=this.s<<i&this.DM;for(n=this.t-1;n>=0;--n)e[n+o+1]=this[n]>>r|s,s=(this[n]&a)<<i;for(n=o-1;n>=0;--n)e[n]=0;e[o]=s,e.t=this.t+o+1,e.s=this.s,e.clamp()},T.prototype.rShiftTo=function(t,e){e.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t)e.t=0;else{var i=t%this.DB,r=this.DB-i,a=(1<<i)-1;e[0]=this[n]>>i;for(var o=n+1;o<this.t;++o)e[o-n-1]|=(this[o]&a)<<r,e[o-n]=this[o]>>i;i>0&&(e[this.t-n-1]|=(this.s&a)<<r),e.t=this.t-n,e.clamp()}},T.prototype.subTo=function(t,e){for(var n=0,i=0,r=Math.min(t.t,this.t);n<r;)i+=this[n]-t[n],e[n++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i-=t.s;n<this.t;)i+=this[n],e[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<t.t;)i-=t[n],e[n++]=i&this.DM,i>>=this.DB;i-=t.s}e.s=i<0?-1:0,i<-1?e[n++]=this.DV+i:i>0&&(e[n++]=i),e.t=n,e.clamp()},T.prototype.multiplyTo=function(t,e){var n=this.abs(),i=t.abs(),r=n.t;for(e.t=r+i.t;--r>=0;)e[r]=0;for(r=0;r<i.t;++r)e[r+n.t]=n.am(0,i[r],e,r,0,n.t);e.s=0,e.clamp(),this.s!=t.s&&T.ZERO.subTo(e,e)},T.prototype.squareTo=function(t){for(var e=this.abs(),n=t.t=2*e.t;--n>=0;)t[n]=0;for(n=0;n<e.t-1;++n){var i=e.am(n,e[n],t,2*n,0,1);(t[n+e.t]+=e.am(n+1,2*e[n],t,2*n+1,i,e.t-n-1))>=e.DV&&(t[n+e.t]-=e.DV,t[n+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(n,e[n],t,2*n,0,1)),t.s=0,t.clamp()},T.prototype.divRemTo=function(t,e,n){var i=t.abs();if(!(i.t<=0)){var r=this.abs();if(r.t<i.t)return null!=e&&e.fromInt(0),void(null!=n&&this.copyTo(n));null==n&&(n=I());var a=I(),o=this.s,s=t.s,l=this.DB-N(i[i.t-1]);l>0?(i.lShiftTo(l,a),r.lShiftTo(l,n)):(i.copyTo(a),r.copyTo(n));var c=a.t,h=a[c-1];if(0!=h){var d=h*(1<<this.F1)+(c>1?a[c-2]>>this.F2:0),u=this.FV/d,m=(1<<this.F1)/d,p=1<<this.F2,g=n.t,f=g-c,b=null==e?I():e;for(a.dlShiftTo(f,b),n.compareTo(b)>=0&&(n[n.t++]=1,n.subTo(b,n)),T.ONE.dlShiftTo(c,b),b.subTo(a,a);a.t<c;)a[a.t++]=0;for(;--f>=0;){var y=n[--g]==h?this.DM:Math.floor(n[g]*u+(n[g-1]+p)*m);if((n[g]+=a.am(0,y,n,f,0,c))<y)for(a.dlShiftTo(f,b),n.subTo(b,n);n[g]<--y;)n.subTo(b,n)}null!=e&&(n.drShiftTo(c,e),o!=s&&T.ZERO.subTo(e,e)),n.t=c,n.clamp(),l>0&&n.rShiftTo(l,n),o<0&&T.ZERO.subTo(n,n)}}},T.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},T.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},T.prototype.exp=function(t,e){if(t>4294967295||t<1)return T.ONE;var n=I(),i=I(),r=e.convert(this),a=N(t)-1;for(r.copyTo(n);--a>=0;)if(e.sqrTo(n,i),(t&1<<a)>0)e.mulTo(i,r,n);else{var o=n;n=i,i=o}return e.revert(n)},T.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var n,i=(1<<e)-1,r=!1,a="",o=this.t,s=this.DB-o*this.DB%e;if(o-- >0)for(s<this.DB&&(n=this[o]>>s)>0&&(r=!0,a=F(n));o>=0;)s<e?(n=(this[o]&(1<<s)-1)<<e-s,n|=this[--o]>>(s+=this.DB-e)):(n=this[o]>>(s-=e)&i,s<=0&&(s+=this.DB,--o)),n>0&&(r=!0),r&&(a+=F(n));return r?a:"0"},T.prototype.negate=function(){var t=I();return T.ZERO.subTo(this,t),t},T.prototype.abs=function(){return this.s<0?this.negate():this},T.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var n=this.t;if(0!=(e=n-t.t))return this.s<0?-e:e;for(;--n>=0;)if(0!=(e=this[n]-t[n]))return e;return 0},T.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+N(this[this.t-1]^this.s&this.DM)},T.prototype.mod=function(t){var e=I();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(T.ZERO)>0&&t.subTo(e,e),e},T.prototype.modPowInt=function(t,e){var n;return n=t<256||e.isEven()?new H(e):new G(e),this.exp(t,n)},T.ZERO=V(0),T.ONE=V(1),q.prototype.convert=$,q.prototype.revert=$,q.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n)},q.prototype.sqrTo=function(t,e){t.squareTo(e)},K.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=I();return t.copyTo(e),this.reduce(e),e},K.prototype.revert=function(t){return t},K.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},K.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},K.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)};var J,Q,tt,et=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],nt=(1<<26)/et[et.length-1];function it(){this.i=0,this.j=0,this.S=new Array}function rt(){var t;t=(new Date).getTime(),Q[tt++]^=255&t,Q[tt++]^=t>>8&255,Q[tt++]^=t>>16&255,Q[tt++]^=t>>24&255,tt>=256&&(tt-=256)}if(T.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},T.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),n=Math.pow(t,e),i=V(n),r=I(),a=I(),o="";for(this.divRemTo(i,r,a);r.signum()>0;)o=(n+a.intValue()).toString(t).substr(1)+o,r.divRemTo(i,r,a);return a.intValue().toString(t)+o},T.prototype.fromRadix=function(t,e){this.fromInt(0),null==e&&(e=10);for(var n=this.chunkSize(e),i=Math.pow(e,n),r=!1,a=0,o=0,s=0;s<t.length;++s){var l=B(t,s);l<0?"-"==t.charAt(s)&&0==this.signum()&&(r=!0):(o=e*o+l,++a>=n&&(this.dMultiply(i),this.dAddOffset(o,0),a=0,o=0))}a>0&&(this.dMultiply(Math.pow(e,a)),this.dAddOffset(o,0)),r&&T.ZERO.subTo(this,this)},T.prototype.fromNumber=function(t,e,n){if("number"==typeof e)if(t<2)this.fromInt(1);else for(this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(T.ONE.shiftLeft(t-1),U,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(T.ONE.shiftLeft(t-1),this);else{var i=new Array,r=7&t;i.length=1+(t>>3),e.nextBytes(i),r>0?i[0]&=(1<<r)-1:i[0]=0,this.fromString(i,256)}},T.prototype.bitwiseTo=function(t,e,n){var i,r,a=Math.min(t.t,this.t);for(i=0;i<a;++i)n[i]=e(this[i],t[i]);if(t.t<this.t){for(r=t.s&this.DM,i=a;i<this.t;++i)n[i]=e(this[i],r);n.t=this.t}else{for(r=this.s&this.DM,i=a;i<t.t;++i)n[i]=e(r,t[i]);n.t=t.t}n.s=e(this.s,t.s),n.clamp()},T.prototype.changeBit=function(t,e){var n=T.ONE.shiftLeft(t);return this.bitwiseTo(n,e,n),n},T.prototype.addTo=function(t,e){for(var n=0,i=0,r=Math.min(t.t,this.t);n<r;)i+=this[n]+t[n],e[n++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i+=t.s;n<this.t;)i+=this[n],e[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<t.t;)i+=t[n],e[n++]=i&this.DM,i>>=this.DB;i+=t.s}e.s=i<0?-1:0,i>0?e[n++]=i:i<-1&&(e[n++]=this.DV+i),e.t=n,e.clamp()},T.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},T.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},T.prototype.multiplyLowerTo=function(t,e,n){var i,r=Math.min(this.t+t.t,e);for(n.s=0,n.t=r;r>0;)n[--r]=0;for(i=n.t-this.t;r<i;++r)n[r+this.t]=this.am(0,t[r],n,r,0,this.t);for(i=Math.min(t.t,e);r<i;++r)this.am(0,t[r],n,r,0,e-r);n.clamp()},T.prototype.multiplyUpperTo=function(t,e,n){--e;var i=n.t=this.t+t.t-e;for(n.s=0;--i>=0;)n[i]=0;for(i=Math.max(e-this.t,0);i<t.t;++i)n[this.t+i-e]=this.am(e-i,t[i],n,0,0,this.t+i-e);n.clamp(),n.drShiftTo(1,n)},T.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(0==e)n=this[0]%t;else for(var i=this.t-1;i>=0;--i)n=(e*n+this[i])%t;return n},T.prototype.millerRabin=function(t){var e=this.subtract(T.ONE),n=e.getLowestSetBit();if(n<=0)return!1;var i=e.shiftRight(n);(t=t+1>>1)>et.length&&(t=et.length);for(var r=I(),a=0;a<t;++a){r.fromInt(et[Math.floor(Math.random()*et.length)]);var o=r.modPow(i,this);if(0!=o.compareTo(T.ONE)&&0!=o.compareTo(e)){for(var s=1;s++<n&&0!=o.compareTo(e);)if(0==(o=o.modPowInt(2,this)).compareTo(T.ONE))return!1;if(0!=o.compareTo(e))return!1}}return!0},T.prototype.clone=function(){var t=I();return this.copyTo(t),t},T.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},T.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},T.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},T.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},T.prototype.toByteArray=function(){var t=this.t,e=new Array;e[0]=this.s;var n,i=this.DB-t*this.DB%8,r=0;if(t-- >0)for(i<this.DB&&(n=this[t]>>i)!=(this.s&this.DM)>>i&&(e[r++]=n|this.s<<this.DB-i);t>=0;)i<8?(n=(this[t]&(1<<i)-1)<<8-i,n|=this[--t]>>(i+=this.DB-8)):(n=this[t]>>(i-=8)&255,i<=0&&(i+=this.DB,--t)),0!=(128&n)&&(n|=-256),0==r&&(128&this.s)!=(128&n)&&++r,(r>0||n!=this.s)&&(e[r++]=n);return e},T.prototype.equals=function(t){return 0==this.compareTo(t)},T.prototype.min=function(t){return this.compareTo(t)<0?this:t},T.prototype.max=function(t){return this.compareTo(t)>0?this:t},T.prototype.and=function(t){var e=I();return this.bitwiseTo(t,Z,e),e},T.prototype.or=function(t){var e=I();return this.bitwiseTo(t,U,e),e},T.prototype.xor=function(t){var e=I();return this.bitwiseTo(t,W,e),e},T.prototype.andNot=function(t){var e=I();return this.bitwiseTo(t,Y,e),e},T.prototype.not=function(){for(var t=I(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},T.prototype.shiftLeft=function(t){var e=I();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},T.prototype.shiftRight=function(t){var e=I();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},T.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+j(this[t]);return this.s<0?this.t*this.DB:-1},T.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,n=0;n<this.t;++n)t+=X(this[n]^e);return t},T.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:0!=(this[e]&1<<t%this.DB)},T.prototype.setBit=function(t){return this.changeBit(t,U)},T.prototype.clearBit=function(t){return this.changeBit(t,Y)},T.prototype.flipBit=function(t){return this.changeBit(t,W)},T.prototype.add=function(t){var e=I();return this.addTo(t,e),e},T.prototype.subtract=function(t){var e=I();return this.subTo(t,e),e},T.prototype.multiply=function(t){var e=I();return this.multiplyTo(t,e),e},T.prototype.divide=function(t){var e=I();return this.divRemTo(t,e,null),e},T.prototype.remainder=function(t){var e=I();return this.divRemTo(t,null,e),e},T.prototype.divideAndRemainder=function(t){var e=I(),n=I();return this.divRemTo(t,e,n),new Array(e,n)},T.prototype.modPow=function(t,e){var n,i,r=t.bitLength(),a=V(1);if(r<=0)return a;n=r<18?1:r<48?3:r<144?4:r<768?5:6,i=r<8?new H(e):e.isEven()?new K(e):new G(e);var o=new Array,s=3,l=n-1,c=(1<<n)-1;if(o[1]=i.convert(this),n>1){var h=I();for(i.sqrTo(o[1],h);s<=c;)o[s]=I(),i.mulTo(h,o[s-2],o[s]),s+=2}var d,u,m=t.t-1,p=!0,g=I();for(r=N(t[m])-1;m>=0;){for(r>=l?d=t[m]>>r-l&c:(d=(t[m]&(1<<r+1)-1)<<l-r,m>0&&(d|=t[m-1]>>this.DB+r-l)),s=n;0==(1&d);)d>>=1,--s;if((r-=s)<0&&(r+=this.DB,--m),p)o[d].copyTo(a),p=!1;else{for(;s>1;)i.sqrTo(a,g),i.sqrTo(g,a),s-=2;s>0?i.sqrTo(a,g):(u=a,a=g,g=u),i.mulTo(g,o[d],a)}for(;m>=0&&0==(t[m]&1<<r);)i.sqrTo(a,g),u=a,a=g,g=u,--r<0&&(r=this.DB-1,--m)}return i.revert(a)},T.prototype.modInverse=function(t){var e=t.isEven();if(this.isEven()&&e||0==t.signum())return T.ZERO;for(var n=t.clone(),i=this.clone(),r=V(1),a=V(0),o=V(0),s=V(1);0!=n.signum();){for(;n.isEven();)n.rShiftTo(1,n),e?((!r.isEven()||!a.isEven())&&(r.addTo(this,r),a.subTo(t,a)),r.rShiftTo(1,r)):a.isEven()||a.subTo(t,a),a.rShiftTo(1,a);for(;i.isEven();)i.rShiftTo(1,i),e?((!o.isEven()||!s.isEven())&&(o.addTo(this,o),s.subTo(t,s)),o.rShiftTo(1,o)):s.isEven()||s.subTo(t,s),s.rShiftTo(1,s);n.compareTo(i)>=0?(n.subTo(i,n),e&&r.subTo(o,r),a.subTo(s,a)):(i.subTo(n,i),e&&o.subTo(r,o),s.subTo(a,s))}return 0!=i.compareTo(T.ONE)?T.ZERO:s.compareTo(t)>=0?s.subtract(t):s.signum()<0?(s.addTo(t,s),s.signum()<0?s.add(t):s):s},T.prototype.pow=function(t){return this.exp(t,new q)},T.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(e.compareTo(n)<0){var i=e;e=n,n=i}var r=e.getLowestSetBit(),a=n.getLowestSetBit();if(a<0)return e;for(r<a&&(a=r),a>0&&(e.rShiftTo(a,e),n.rShiftTo(a,n));e.signum()>0;)(r=e.getLowestSetBit())>0&&e.rShiftTo(r,e),(r=n.getLowestSetBit())>0&&n.rShiftTo(r,n),e.compareTo(n)>=0?(e.subTo(n,e),e.rShiftTo(1,e)):(n.subTo(e,n),n.rShiftTo(1,n));return a>0&&n.lShiftTo(a,n),n},T.prototype.isProbablePrime=function(t){var e,n=this.abs();if(1==n.t&&n[0]<=et[et.length-1]){for(e=0;e<et.length;++e)if(n[0]==et[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<et.length;){for(var i=et[e],r=e+1;r<et.length&&i<nt;)i*=et[r++];for(i=n.modInt(i);e<r;)if(i%et[e++]==0)return!1}return n.millerRabin(t)},T.prototype.square=function(){var t=I();return this.squareTo(t),t},it.prototype.init=function(t){var e,n,i;for(e=0;e<256;++e)this.S[e]=e;for(n=0,e=0;e<256;++e)i=this.S[e],this.S[e]=this.S[n=n+this.S[e]+t[e%t.length]&255],this.S[n]=i;this.i=0,this.j=0},it.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},null==Q){var at;if(Q=new Array,tt=0,void 0!==r&&(void 0!==r.crypto||void 0!==r.msCrypto)){var ot=r.crypto||r.msCrypto;if(ot.getRandomValues){var st=new Uint8Array(32);for(ot.getRandomValues(st),at=0;at<32;++at)Q[tt++]=st[at]}else if("Netscape"==n.appName&&n.appVersion<"5"){var lt=r.crypto.random(32);for(at=0;at<lt.length;++at)Q[tt++]=255<.charCodeAt(at)}}for(;tt<256;)at=Math.floor(65536*Math.random()),Q[tt++]=at>>>8,Q[tt++]=255&at;tt=0,rt()}function ct(){if(null==J){for(rt(),(J=new it).init(Q),tt=0;tt<Q.length;++tt)Q[tt]=0;tt=0}return J.next()}function ht(){}function dt(t,e){return new T(t,e)}function ut(t,e,n){for(var i="",r=0;i.length<e;)i+=n(String.fromCharCode.apply(String,t.concat([(4278190080&r)>>24,(16711680&r)>>16,(65280&r)>>8,255&r]))),r+=1;return i}function mt(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}function pt(t,e){this.x=e,this.q=t}function gt(t,e,n,i){this.curve=t,this.x=e,this.y=n,this.z=null==i?T.ONE:i,this.zinv=null}function ft(t,e,n){this.q=t,this.a=this.fromBigInteger(e),this.b=this.fromBigInteger(n),this.infinity=new gt(this,null,null)}ht.prototype.nextBytes=function(t){var e;for(e=0;e<t.length;++e)t[e]=ct()},mt.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},mt.prototype.setPublic=function(t,e){if(this.isPublic=!0,this.isPrivate=!1,"string"!=typeof t)this.n=t,this.e=e;else{if(!(null!=t&&null!=e&&t.length>0&&e.length>0))throw"Invalid RSA public key";this.n=dt(t,16),this.e=parseInt(e,16)}},mt.prototype.encrypt=function(t){var e=function(t,e){if(e<t.length+11)throw"Message too long for RSA";for(var n=new Array,i=t.length-1;i>=0&&e>0;){var r=t.charCodeAt(i--);r<128?n[--e]=r:r>127&&r<2048?(n[--e]=63&r|128,n[--e]=r>>6|192):(n[--e]=63&r|128,n[--e]=r>>6&63|128,n[--e]=r>>12|224)}n[--e]=0;for(var a=new ht,o=new Array;e>2;){for(o[0]=0;0==o[0];)a.nextBytes(o);n[--e]=o[0]}return n[--e]=2,n[--e]=0,new T(n)}(t,this.n.bitLength()+7>>3);if(null==e)return null;var n=this.doPublic(e);if(null==n)return null;var i=n.toString(16);return 0==(1&i.length)?i:"0"+i},mt.prototype.encryptOAEP=function(t,e,n){var i=function(t,e,n,i){var r=yt.crypto.MessageDigest,a=yt.crypto.Util,o=null;if(n||(n="sha1"),"string"==typeof n&&(o=r.getCanonicalAlgName(n),i=r.getHashLength(o),n=function(t){return Ot(a.hashHex(At(t),o))}),t.length+2*i+2>e)throw"Message too long for RSA";var s,l="";for(s=0;s<e-t.length-2*i-2;s+=1)l+="\0";var c=n("")+l+""+t,h=new Array(i);(new ht).nextBytes(h);var d=ut(h,c.length,n),u=[];for(s=0;s<c.length;s+=1)u[s]=c.charCodeAt(s)^d.charCodeAt(s);var m=ut(u,h.length,n),p=[0];for(s=0;s<h.length;s+=1)p[s+1]=h[s]^m.charCodeAt(s);return new T(p.concat(u))}(t,this.n.bitLength()+7>>3,e,n);if(null==i)return null;var r=this.doPublic(i);if(null==r)return null;var a=r.toString(16);return 0==(1&a.length)?a:"0"+a},mt.prototype.type="RSA",pt.prototype.equals=function(t){return t==this||this.q.equals(t.q)&&this.x.equals(t.x)},pt.prototype.toBigInteger=function(){return this.x},pt.prototype.negate=function(){return new pt(this.q,this.x.negate().mod(this.q))},pt.prototype.add=function(t){return new pt(this.q,this.x.add(t.toBigInteger()).mod(this.q))},pt.prototype.subtract=function(t){return new pt(this.q,this.x.subtract(t.toBigInteger()).mod(this.q))},pt.prototype.multiply=function(t){return new pt(this.q,this.x.multiply(t.toBigInteger()).mod(this.q))},pt.prototype.square=function(){return new pt(this.q,this.x.square().mod(this.q))},pt.prototype.divide=function(t){return new pt(this.q,this.x.multiply(t.toBigInteger().modInverse(this.q)).mod(this.q))},gt.prototype.getX=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))},gt.prototype.getY=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))},gt.prototype.equals=function(t){return t==this||(this.isInfinity()?t.isInfinity():t.isInfinity()?this.isInfinity():!!t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(T.ZERO)&&t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(T.ZERO))},gt.prototype.isInfinity=function(){return null==this.x&&null==this.y||this.z.equals(T.ZERO)&&!this.y.toBigInteger().equals(T.ZERO)},gt.prototype.negate=function(){return new gt(this.curve,this.x,this.y.negate(),this.z)},gt.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q),n=t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q);if(T.ZERO.equals(n))return T.ZERO.equals(e)?this.twice():this.curve.getInfinity();var i=new T("3"),r=this.x.toBigInteger(),a=this.y.toBigInteger(),o=(t.x.toBigInteger(),t.y.toBigInteger(),n.square()),s=o.multiply(n),l=r.multiply(o),c=e.square().multiply(this.z),h=c.subtract(l.shiftLeft(1)).multiply(t.z).subtract(s).multiply(n).mod(this.curve.q),d=l.multiply(i).multiply(e).subtract(a.multiply(s)).subtract(c.multiply(e)).multiply(t.z).add(e.multiply(s)).mod(this.curve.q),u=s.multiply(this.z).multiply(t.z).mod(this.curve.q);return new gt(this.curve,this.curve.fromBigInteger(h),this.curve.fromBigInteger(d),u)},gt.prototype.twice=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var t=new T("3"),e=this.x.toBigInteger(),n=this.y.toBigInteger(),i=n.multiply(this.z),r=i.multiply(n).mod(this.curve.q),a=this.curve.a.toBigInteger(),o=e.square().multiply(t);T.ZERO.equals(a)||(o=o.add(this.z.square().multiply(a)));var s=(o=o.mod(this.curve.q)).square().subtract(e.shiftLeft(3).multiply(r)).shiftLeft(1).multiply(i).mod(this.curve.q),l=o.multiply(t).multiply(e).subtract(r.shiftLeft(1)).shiftLeft(2).multiply(r).subtract(o.square().multiply(o)).mod(this.curve.q),c=i.square().multiply(i).shiftLeft(3).mod(this.curve.q);return new gt(this.curve,this.curve.fromBigInteger(s),this.curve.fromBigInteger(l),c)},gt.prototype.multiply=function(t){if(this.isInfinity())return this;if(0==t.signum())return this.curve.getInfinity();var e,n=t,i=n.multiply(new T("3")),r=this.negate(),a=this,o=this.curve.q.subtract(t),s=o.multiply(new T("3")),l=new gt(this.curve,this.x,this.y),c=l.negate();for(e=i.bitLength()-2;e>0;--e){a=a.twice();var h=i.testBit(e);h!=n.testBit(e)&&(a=a.add(h?this:r))}for(e=s.bitLength()-2;e>0;--e){l=l.twice();var d=s.testBit(e);d!=o.testBit(e)&&(l=l.add(d?l:c))}return a},gt.prototype.multiplyTwo=function(t,e,n){var i;i=t.bitLength()>n.bitLength()?t.bitLength()-1:n.bitLength()-1;for(var r=this.curve.getInfinity(),a=this.add(e);i>=0;)r=r.twice(),t.testBit(i)?r=n.testBit(i)?r.add(a):r.add(this):n.testBit(i)&&(r=r.add(e)),--i;return r},ft.prototype.getQ=function(){return this.q},ft.prototype.getA=function(){return this.a},ft.prototype.getB=function(){return this.b},ft.prototype.equals=function(t){return t==this||this.q.equals(t.q)&&this.a.equals(t.a)&&this.b.equals(t.b)},ft.prototype.getInfinity=function(){return this.infinity},ft.prototype.fromBigInteger=function(t){return new pt(this.q,t)},ft.prototype.decodePointHex=function(t){switch(parseInt(t.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:default:return null;case 4:case 6:case 7:var e=(t.length-2)/2,n=t.substr(2,e),i=t.substr(e+2,e);return new gt(this,this.fromBigInteger(new T(n,16)),this.fromBigInteger(new T(i,16)))}},pt.prototype.getByteLength=function(){return Math.floor((this.toBigInteger().bitLength()+7)/8)},gt.prototype.getEncoded=function(t){var e=function(t,e){var n=t.toByteArrayUnsigned();if(e<n.length)n=n.slice(n.length-e);else for(;e>n.length;)n.unshift(0);return n},n=this.getX().toBigInteger(),i=this.getY().toBigInteger(),r=e(n,32);return t?i.isEven()?r.unshift(2):r.unshift(3):(r.unshift(4),r=r.concat(e(i,32))),r},gt.decodeFrom=function(t,e){var n=e.length-1,i=e.slice(1,1+n/2),r=e.slice(1+n/2,1+n);i.unshift(0),r.unshift(0);var a=new T(i),o=new T(r);return new gt(t,t.fromBigInteger(a),t.fromBigInteger(o))},gt.decodeFromHex=function(t,e){e.substr(0,2);var n=e.length-2,i=e.substr(2,n/2),r=e.substr(2+n/2,n/2),a=new T(i,16),o=new T(r,16);return new gt(t,t.fromBigInteger(a),t.fromBigInteger(o))},gt.prototype.add2D=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;if(this.x.equals(t.x))return this.y.equals(t.y)?this.twice():this.curve.getInfinity();var e=t.x.subtract(this.x),n=t.y.subtract(this.y).divide(e),i=n.square().subtract(this.x).subtract(t.x),r=n.multiply(this.x.subtract(i)).subtract(this.y);return new gt(this.curve,i,r)},gt.prototype.twice2D=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var t=this.curve.fromBigInteger(T.valueOf(2)),e=this.curve.fromBigInteger(T.valueOf(3)),n=this.x.square().multiply(e).add(this.curve.a).divide(this.y.multiply(t)),i=n.square().subtract(this.x.multiply(t)),r=n.multiply(this.x.subtract(i)).subtract(this.y);return new gt(this.curve,i,r)},gt.prototype.multiply2D=function(t){if(this.isInfinity())return this;if(0==t.signum())return this.curve.getInfinity();var e,n=t,i=n.multiply(new T("3")),r=this.negate(),a=this;for(e=i.bitLength()-2;e>0;--e){a=a.twice();var o=i.testBit(e);o!=n.testBit(e)&&(a=a.add2D(o?this:r))}return a},gt.prototype.isOnCurve=function(){var t=this.getX().toBigInteger(),e=this.getY().toBigInteger(),n=this.curve.getA().toBigInteger(),i=this.curve.getB().toBigInteger(),r=this.curve.getQ(),a=e.multiply(e).mod(r),o=t.multiply(t).multiply(t).add(n.multiply(t)).add(i).mod(r);return a.equals(o)},gt.prototype.toString=function(){return"("+this.getX().toBigInteger().toString()+","+this.getY().toBigInteger().toString()+")"},gt.prototype.validate=function(){var t=this.curve.getQ();if(this.isInfinity())throw new Error("Point is at infinity.");var e=this.getX().toBigInteger(),n=this.getY().toBigInteger();if(e.compareTo(T.ONE)<0||e.compareTo(t.subtract(T.ONE))>0)throw new Error("x coordinate out of bounds");if(n.compareTo(T.ONE)<0||n.compareTo(t.subtract(T.ONE))>0)throw new Error("y coordinate out of bounds");if(!this.isOnCurve())throw new Error("Point is not on the curve.");if(this.multiply(t).isInfinity())throw new Error("Point is not a scalar multiple of G.");return!0};var bt=function(){var t=new RegExp('(?:false|true|null|[\\{\\}\\[\\]]|(?:-?\\b(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\\b)|(?:"(?:[^\\0-\\x08\\x0a-\\x1f"\\\\]|\\\\(?:["/\\\\bfnrt]|u[0-9A-Fa-f]{4}))*"))',"g"),e=new RegExp("\\\\(?:([^u])|u(.{4}))","g"),n={'"':'"',"/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function i(t,e,i){return e?n[e]:String.fromCharCode(parseInt(i,16))}var r=new String(""),a=Object.hasOwnProperty;return function(n,o){var s,l=n.match(t),c=l[0],h=!1;"{"===c?s={}:"["===c?s=[]:(s=[],h=!0);for(var d,u=[s],m=1-h,p=l.length;m<p;++m){var g;switch((c=l[m]).charCodeAt(0)){default:(g=u[0])[d||g.length]=+c,d=void 0;break;case 34:if(-1!==(c=c.substring(1,c.length-1)).indexOf("\\")&&(c=c.replace(e,i)),g=u[0],!d){if(!(g instanceof Array)){d=c||r;break}d=g.length}g[d]=c,d=void 0;break;case 91:u.unshift((g=u[0])[d||g.length]=[]),d=void 0;break;case 93:case 125:u.shift();break;case 102:(g=u[0])[d||g.length]=!1,d=void 0;break;case 110:(g=u[0])[d||g.length]=null,d=void 0;break;case 116:(g=u[0])[d||g.length]=!0,d=void 0;break;case 123:u.unshift((g=u[0])[d||g.length]={}),d=void 0}}if(h){if(1!==u.length)throw new Error;s=s[0]}else if(u.length)throw new Error;if(o){var f=function(t,e){var n=t[e];if(n&&"object"==typeof n){var i=null;for(var r in n)if(a.call(n,r)&&n!==t){var s=f(n,r);void 0!==s?n[r]=s:(i||(i=[]),i.push(r))}if(i)for(var l=i.length;--l>=0;)delete n[i[l]]}return o.call(t,e,n)};s=f({"":s},"")}return s}}();(void 0===yt||!yt)&&(yt={}),(void 0===yt.asn1||!yt.asn1)&&(yt.asn1={}),yt.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var n=e.substr(1).length;n%2==1?n+=1:e.match(/^[0-7]/)||(n+=2);for(var i="",r=0;r<n;r++)i+="f";e=new T(i,16).xor(t).add(T.ONE).toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return Tt(t,e)},this.newObject=function(t){var e=yt.asn1,n=e.DERBoolean,i=e.DERInteger,r=e.DERBitString,a=e.DEROctetString,o=e.DERNull,s=e.DERObjectIdentifier,l=e.DEREnumerated,c=e.DERUTF8String,h=e.DERNumericString,d=e.DERPrintableString,u=e.DERTeletexString,m=e.DERIA5String,p=e.DERUTCTime,g=e.DERGeneralizedTime,f=e.DERSequence,b=e.DERSet,y=e.DERTaggedObject,v=e.ASN1Util.newObject,w=Object.keys(t);if(1!=w.length)throw"key of param shall be only one.";var x=w[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+x+":"))throw"undefined key: "+x;if("bool"==x)return new n(t[x]);if("int"==x)return new i(t[x]);if("bitstr"==x)return new r(t[x]);if("octstr"==x)return new a(t[x]);if("null"==x)return new o(t[x]);if("oid"==x)return new s(t[x]);if("enum"==x)return new l(t[x]);if("utf8str"==x)return new c(t[x]);if("numstr"==x)return new h(t[x]);if("prnstr"==x)return new d(t[x]);if("telstr"==x)return new u(t[x]);if("ia5str"==x)return new m(t[x]);if("utctime"==x)return new p(t[x]);if("gentime"==x)return new g(t[x]);if("seq"==x){for(var C=t[x],k=[],S=0;S<C.length;S++){var P=v(C[S]);k.push(P)}return new f({array:k})}if("set"==x){for(C=t[x],k=[],S=0;S<C.length;S++)P=v(C[S]),k.push(P);return new b({array:k})}if("tag"==x){var _=t[x];if("[object Array]"===Object.prototype.toString.call(_)&&3==_.length){var M=v(_[2]);return new y({tag:_[0],explicit:_[1],obj:M})}var D={};if(void 0!==_.explicit&&(D.explicit=_.explicit),void 0!==_.tag&&(D.tag=_.tag),void 0===_.obj)throw"obj shall be specified for 'tag'.";return D.obj=v(_.obj),new y(D)}},this.jsonToASN1HEX=function(t){return this.newObject(t).getEncodedHex()}},yt.asn1.ASN1Util.oidHexToInt=function(t){for(var e="",n=parseInt(t.substr(0,2),16),i=(e=Math.floor(n/40)+"."+n%40,""),r=2;r<t.length;r+=2){var a=("00000000"+parseInt(t.substr(r,2),16).toString(2)).slice(-8);i+=a.substr(1,7),"0"==a.substr(0,1)&&(e=e+"."+new T(i,2).toString(10),i="")}return e},yt.asn1.ASN1Util.oidIntToHex=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},n=function(t){var n="",i=new T(t,10).toString(2),r=7-i.length%7;7==r&&(r=0);for(var a="",o=0;o<r;o++)a+="0";for(i=a+i,o=0;o<i.length-1;o+=7){var s=i.substr(o,7);o!=i.length-7&&(s="1"+s),n+=e(parseInt(s,2))}return n};if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var i="",r=t.split("."),a=40*parseInt(r[0])+parseInt(r[1]);i+=e(a),r.splice(0,2);for(var o=0;o<r.length;o++)i+=n(r[o]);return i},yt.asn1.ASN1Object=function(){this.getLengthHexFromValue=function(){if(void 0===this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+"".length+",v="+this.hV;var t=this.hV.length/2,e=t.toString(16);if(e.length%2==1&&(e="0"+e),t<128)return e;var n=e.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);return(128+n).toString(16)+e},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},yt.asn1.DERAbstractString=function(t){yt.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=Dt(this.s).toLowerCase()},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?this.setString(t):void 0!==t.str?this.setString(t.str):void 0!==t.hex&&this.setStringHex(t.hex))},a.lang.extend(yt.asn1.DERAbstractString,yt.asn1.ASN1Object),yt.asn1.DERAbstractTime=function(t){yt.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){var e=t.getTime()+6e4*t.getTimezoneOffset();return new Date(e)},this.formatDate=function(t,e,n){var i=this.zeroPadding,r=this.localDateToUTC(t),a=String(r.getFullYear());"utc"==e&&(a=a.substr(2,2));var o=a+i(String(r.getMonth()+1),2)+i(String(r.getDate()),2)+i(String(r.getHours()),2)+i(String(r.getMinutes()),2)+i(String(r.getSeconds()),2);if(!0===n){var s=r.getMilliseconds();if(0!=s){var l=i(String(s),3);o=o+"."+(l=l.replace(/[0]+$/,""))}}return o+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=kt(t)},this.setByDateValue=function(t,e,n,i,r,a){var o=new Date(Date.UTC(t,e-1,n,i,r,a,0));this.setByDate(o)},this.getFreshValueHex=function(){return this.hV}},a.lang.extend(yt.asn1.DERAbstractTime,yt.asn1.ASN1Object),yt.asn1.DERAbstractStructured=function(t){yt.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,void 0!==t&&void 0!==t.array&&(this.asn1Array=t.array)},a.lang.extend(yt.asn1.DERAbstractStructured,yt.asn1.ASN1Object),yt.asn1.DERBoolean=function(){yt.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},a.lang.extend(yt.asn1.DERBoolean,yt.asn1.ASN1Object),yt.asn1.DERInteger=function(t){yt.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=yt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new T(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.bigint?this.setByBigInteger(t.bigint):void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},a.lang.extend(yt.asn1.DERInteger,yt.asn1.ASN1Object),yt.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=yt.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}yt.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var n="0"+t;this.hTLV=null,this.isModified=!0,this.hV=n+e},this.setByBinaryString=function(t){var e=8-(t=t.replace(/0+$/,"")).length%8;8==e&&(e=0);for(var n=0;n<=e;n++)t+="0";var i="";for(n=0;n<t.length-1;n+=8){var r=t.substr(n,8),a=parseInt(r,2).toString(16);1==a.length&&(a="0"+a),i+=a}this.hTLV=null,this.isModified=!0,this.hV="0"+e+i},this.setByBooleanArray=function(t){for(var e="",n=0;n<t.length;n++)e+=1==t[n]?"1":"0";this.setByBinaryString(e)},this.newFalseArray=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=!1;return e},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t&&t.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(t):void 0!==t.hex?this.setHexValueIncludingUnusedBits(t.hex):void 0!==t.bin?this.setByBinaryString(t.bin):void 0!==t.array&&this.setByBooleanArray(t.array))},a.lang.extend(yt.asn1.DERBitString,yt.asn1.ASN1Object),yt.asn1.DEROctetString=function(t){if(void 0!==t&&void 0!==t.obj){var e=yt.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}yt.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},a.lang.extend(yt.asn1.DEROctetString,yt.asn1.DERAbstractString),yt.asn1.DERNull=function(){yt.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},a.lang.extend(yt.asn1.DERNull,yt.asn1.ASN1Object),yt.asn1.DERObjectIdentifier=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},n=function(t){var n="",i=new T(t,10).toString(2),r=7-i.length%7;7==r&&(r=0);for(var a="",o=0;o<r;o++)a+="0";for(i=a+i,o=0;o<i.length-1;o+=7){var s=i.substr(o,7);o!=i.length-7&&(s="1"+s),n+=e(parseInt(s,2))}return n};yt.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.setValueOidString=function(t){if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var i="",r=t.split("."),a=40*parseInt(r[0])+parseInt(r[1]);i+=e(a),r.splice(0,2);for(var o=0;o<r.length;o++)i+=n(r[o]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(t){var e=yt.asn1.x509.OID.name2oid(t);if(""===e)throw"DERObjectIdentifier oidName undefined: "+t;this.setValueOidString(e)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?t.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(t):this.setValueName(t):void 0!==t.oid?this.setValueOidString(t.oid):void 0!==t.hex?this.setValueHex(t.hex):void 0!==t.name&&this.setValueName(t.name))},a.lang.extend(yt.asn1.DERObjectIdentifier,yt.asn1.ASN1Object),yt.asn1.DEREnumerated=function(t){yt.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=yt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new T(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},a.lang.extend(yt.asn1.DEREnumerated,yt.asn1.ASN1Object),yt.asn1.DERUTF8String=function(t){yt.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},a.lang.extend(yt.asn1.DERUTF8String,yt.asn1.DERAbstractString),yt.asn1.DERNumericString=function(t){yt.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},a.lang.extend(yt.asn1.DERNumericString,yt.asn1.DERAbstractString),yt.asn1.DERPrintableString=function(t){yt.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},a.lang.extend(yt.asn1.DERPrintableString,yt.asn1.DERAbstractString),yt.asn1.DERTeletexString=function(t){yt.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},a.lang.extend(yt.asn1.DERTeletexString,yt.asn1.DERAbstractString),yt.asn1.DERIA5String=function(t){yt.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},a.lang.extend(yt.asn1.DERIA5String,yt.asn1.DERAbstractString),yt.asn1.DERUTCTime=function(t){yt.asn1.DERUTCTime.superclass.constructor.call(this,t),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=kt(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=kt(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{12}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date))},a.lang.extend(yt.asn1.DERUTCTime,yt.asn1.DERAbstractTime),yt.asn1.DERGeneralizedTime=function(t){yt.asn1.DERGeneralizedTime.superclass.constructor.call(this,t),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=kt(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=kt(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{14}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date),!0===t.millis&&(this.withMillis=!0))},a.lang.extend(yt.asn1.DERGeneralizedTime,yt.asn1.DERAbstractTime),yt.asn1.DERSequence=function(t){yt.asn1.DERSequence.superclass.constructor.call(this,t),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++)t+=this.asn1Array[e].getEncodedHex();return this.hV=t,this.hV}},a.lang.extend(yt.asn1.DERSequence,yt.asn1.DERAbstractStructured),yt.asn1.DERSet=function(t){yt.asn1.DERSet.superclass.constructor.call(this,t),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++)t.push(this.asn1Array[e].getEncodedHex());return 1==this.sortFlag&&t.sort(),this.hV=t.join(""),this.hV},void 0!==t&&void 0!==t.sortflag&&0==t.sortflag&&(this.sortFlag=!1)},a.lang.extend(yt.asn1.DERSet,yt.asn1.DERAbstractStructured),yt.asn1.DERTaggedObject=function(t){yt.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,n){this.hT=e,this.isExplicit=t,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.tag&&(this.hT=t.tag),void 0!==t.explicit&&(this.isExplicit=t.explicit),void 0!==t.obj&&(this.asn1Object=t.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},a.lang.extend(yt.asn1.DERTaggedObject,yt.asn1.ASN1Object);var yt,vt,wt,xt=new function(){};function Ct(t){for(var e="",n=0;n<t.length;n++){var i=t[n].toString(16);1==i.length&&(i="0"+i),e+=i}return e}function kt(t){return Ct(function(t){for(var e=new Array,n=0;n<t.length;n++)e[n]=t.charCodeAt(n);return e}(t))}function St(t){return(t=(t=t.replace(/\=/g,"")).replace(/\+/g,"-")).replace(/\//g,"_")}function Pt(t){return t.length%4==2?t+="==":t.length%4==3&&(t+="="),(t=t.replace(/-/g,"+")).replace(/_/g,"/")}function _t(t){return t.length%2==1&&(t="0"+t),St(O(t))}function Mt(t){return A(Pt(t))}function Dt(t){return Lt(Ft(t))}function Et(t){return decodeURIComponent(zt(t))}function Ot(t){for(var e="",n=0;n<t.length-1;n+=2)e+=String.fromCharCode(parseInt(t.substr(n,2),16));return e}function At(t){for(var e="",n=0;n<t.length;n++)e+=("0"+t.charCodeAt(n).toString(16)).slice(-2);return e}function Tt(t,e){return"-----BEGIN "+e+"-----\r\n"+((n=t,O(n)).replace(/(.{64})/g,"$1\r\n").replace(/\r\n$/,"")+"\r\n-----END ")+e+"-----\r\n";var n}function It(t,e){if(-1==t.indexOf("-----BEGIN "))throw"can't find PEM header: "+e;return A((t=void 0!==e?(t=t.replace(new RegExp("^[^]*-----BEGIN "+e+"-----"),"")).replace(new RegExp("-----END "+e+"-----[^]*$"),""):(t=t.replace(/^[^]*-----BEGIN [^-]+-----/,"")).replace(/-----END [^-]+-----[^]*$/,"")).replace(/[^0-9A-Za-z\/+=]*/g,""))}function Lt(t){return t.replace(/%/g,"")}function zt(t){return t.replace(/(..)/g,"%$1")}function Rt(t){var e="malformed hex value";if(!t.match(/^([0-9A-Fa-f][0-9A-Fa-f]){1,}$/))throw e;if(8!=t.length)return 32==t.length?function(t){if(!t.match(/^[0-9A-Fa-f]{32}$/))throw"malformed IPv6 address octet";for(var e=(t=t.toLowerCase()).match(/.{1,4}/g),n=0;n<8;n++)e[n]=e[n].replace(/^0+/,""),""==e[n]&&(e[n]="0");var i=(t=":"+e.join(":")+":").match(/:(0:){2,}/g);if(null===i)return t.slice(1,-1);var r="";for(n=0;n<i.length;n++)i[n].length>r.length&&(r=i[n]);return(t=t.replace(r,"::")).slice(1,-1)}(t):t;try{return parseInt(t.substr(0,2),16)+"."+parseInt(t.substr(2,2),16)+"."+parseInt(t.substr(4,2),16)+"."+parseInt(t.substr(6,2),16)}catch(t){throw e}}function Ft(t){for(var e=encodeURIComponent(t),n="",i=0;i<e.length;i++)"%"==e[i]?(n+=e.substr(i,3),i+=2):n=n+"%"+kt(e[i]);return n}function Bt(t){return t.length%2==1?"0"+t:t.substr(0,1)>"7"?"00"+t:t}xt.getLblen=function(t,e){if("8"!=t.substr(e+2,1))return 1;var n=parseInt(t.substr(e+3,1));return 0==n?-1:0<n&&n<10?n+1:-2},xt.getL=function(t,e){var n=xt.getLblen(t,e);return n<1?"":t.substr(e+2,2*n)},xt.getVblen=function(t,e){var n;return""==(n=xt.getL(t,e))?-1:("8"===n.substr(0,1)?new T(n.substr(2),16):new T(n,16)).intValue()},xt.getVidx=function(t,e){var n=xt.getLblen(t,e);return n<0?n:e+2*(n+1)},xt.getV=function(t,e){var n=xt.getVidx(t,e),i=xt.getVblen(t,e);return t.substr(n,2*i)},xt.getTLV=function(t,e){return t.substr(e,2)+xt.getL(t,e)+xt.getV(t,e)},xt.getNextSiblingIdx=function(t,e){return xt.getVidx(t,e)+2*xt.getVblen(t,e)},xt.getChildIdx=function(t,e){var n=xt,i=new Array,r=n.getVidx(t,e);"03"==t.substr(e,2)?i.push(r+2):i.push(r);for(var a=n.getVblen(t,e),o=r,s=0;;){var l=n.getNextSiblingIdx(t,o);if(null==l||l-r>=2*a||s>=200)break;i.push(l),o=l,s++}return i},xt.getNthChildIdx=function(t,e,n){return xt.getChildIdx(t,e)[n]},xt.getIdxbyList=function(t,e,n,i){var r,a,o=xt;if(0==n.length){if(void 0!==i&&t.substr(e,2)!==i)throw"checking tag doesn't match: "+t.substr(e,2)+"!="+i;return e}return r=n.shift(),a=o.getChildIdx(t,e),o.getIdxbyList(t,a[r],n,i)},xt.getTLVbyList=function(t,e,n,i){var r=xt,a=r.getIdxbyList(t,e,n);if(void 0===a)throw"can't find nthList object";if(void 0!==i&&t.substr(a,2)!=i)throw"checking tag doesn't match: "+t.substr(a,2)+"!="+i;return r.getTLV(t,a)},xt.getVbyList=function(t,e,n,i,r){var a,o,s=xt;if(void 0===(a=s.getIdxbyList(t,e,n,i)))throw"can't find nthList object";return o=s.getV(t,a),!0===r&&(o=o.substr(2)),o},xt.hextooidstr=function(t){var e=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},n=[],i=t.substr(0,2),r=parseInt(i,16);n[0]=new String(Math.floor(r/40)),n[1]=new String(r%40);for(var a=t.substr(2),o=[],s=0;s<a.length/2;s++)o.push(parseInt(a.substr(2*s,2),16));var l=[],c="";for(s=0;s<o.length;s++)128&o[s]?c+=e((127&o[s]).toString(2),7):(c+=e((127&o[s]).toString(2),7),l.push(new String(parseInt(c,2))),c="");var h=n.join(".");return l.length>0&&(h=h+"."+l.join(".")),h},xt.dump=function(t,e,n,i){var r=xt,a=r.getV,o=r.dump,s=r.getChildIdx,l=t;t instanceof yt.asn1.ASN1Object&&(l=t.getEncodedHex());var c=function(t,e){return t.length<=2*e?t:t.substr(0,e)+"..(total "+t.length/2+"bytes).."+t.substr(t.length-e,e)};void 0===e&&(e={ommit_long_octet:32}),void 0===n&&(n=0),void 0===i&&(i="");var h=e.ommit_long_octet;if("01"==l.substr(n,2))return"00"==(d=a(l,n))?i+"BOOLEAN FALSE\n":i+"BOOLEAN TRUE\n";if("02"==l.substr(n,2))return i+"INTEGER "+c(d=a(l,n),h)+"\n";if("03"==l.substr(n,2))return i+"BITSTRING "+c(d=a(l,n),h)+"\n";if("04"==l.substr(n,2)){var d=a(l,n);return r.isASN1HEX(d)?(C=i+"OCTETSTRING, encapsulates\n")+o(d,e,0,i+" "):i+"OCTETSTRING "+c(d,h)+"\n"}if("05"==l.substr(n,2))return i+"NULL\n";if("06"==l.substr(n,2)){var u=a(l,n),m=yt.asn1.ASN1Util.oidHexToInt(u),p=yt.asn1.x509.OID.oid2name(m),g=m.replace(/\./g," ");return""!=p?i+"ObjectIdentifier "+p+" ("+g+")\n":i+"ObjectIdentifier ("+g+")\n"}if("0c"==l.substr(n,2))return i+"UTF8String '"+Et(a(l,n))+"'\n";if("13"==l.substr(n,2))return i+"PrintableString '"+Et(a(l,n))+"'\n";if("14"==l.substr(n,2))return i+"TeletexString '"+Et(a(l,n))+"'\n";if("16"==l.substr(n,2))return i+"IA5String '"+Et(a(l,n))+"'\n";if("17"==l.substr(n,2))return i+"UTCTime "+Et(a(l,n))+"\n";if("18"==l.substr(n,2))return i+"GeneralizedTime "+Et(a(l,n))+"\n";if("30"==l.substr(n,2)){if("3000"==l.substr(n,4))return i+"SEQUENCE {}\n";C=i+"SEQUENCE\n";var f=e;if((2==(v=s(l,n)).length||3==v.length)&&"06"==l.substr(v[0],2)&&"04"==l.substr(v[v.length-1],2)){p=r.oidname(a(l,v[0]));var b=JSON.parse(JSON.stringify(e));b.x509ExtName=p,f=b}for(var y=0;y<v.length;y++)C+=o(l,f,v[y],i+" ");return C}if("31"==l.substr(n,2)){C=i+"SET\n";var v=s(l,n);for(y=0;y<v.length;y++)C+=o(l,e,v[y],i+" ");return C}var w=parseInt(l.substr(n,2),16);if(0!=(128&w)){var x=31&w;if(0!=(32&w)){var C=i+"["+x+"]\n";for(v=s(l,n),y=0;y<v.length;y++)C+=o(l,e,v[y],i+" ");return C}return"68747470"==(d=a(l,n)).substr(0,8)&&(d=Et(d)),"subjectAltName"===e.x509ExtName&&2==x&&(d=Et(d)),i+"["+x+"] "+d+"\n"}return i+"UNKNOWN("+l.substr(n,2)+") "+a(l,n)+"\n"},xt.isASN1HEX=function(t){var e=xt;if(t.length%2==1)return!1;var n=e.getVblen(t,0),i=t.substr(0,2),r=e.getL(t,0);return t.length-i.length-r.length==2*n},xt.oidname=function(t){var e=yt.asn1;yt.lang.String.isHex(t)&&(t=e.ASN1Util.oidHexToInt(t));var n=e.x509.OID.oid2name(t);return""===n&&(n=t),n},(void 0===yt||!yt)&&(yt={}),(void 0===yt.lang||!yt.lang)&&(yt.lang={}),yt.lang.String=function(){},"function"==typeof i?(vt=function(t){return St(new i(t,"utf8").toString("base64"))},wt=function(t){return new i(Pt(t),"base64").toString("utf8")}):(vt=function(t){return _t(Lt(Ft(t)))},wt=function(t){return decodeURIComponent(zt(Mt(t)))}),yt.lang.String.isInteger=function(t){return!!t.match(/^[0-9]+$/)||!!t.match(/^-[0-9]+$/)},yt.lang.String.isHex=function(t){return!(t.length%2!=0||!t.match(/^[0-9a-f]+$/)&&!t.match(/^[0-9A-F]+$/))},yt.lang.String.isBase64=function(t){return!(!(t=t.replace(/\s+/g,"")).match(/^[0-9A-Za-z+\/]+={0,3}$/)||t.length%4!=0)},yt.lang.String.isBase64URL=function(t){return!t.match(/[+/=]/)&&(t=Pt(t),yt.lang.String.isBase64(t))},yt.lang.String.isIntegerArray=function(t){return!!(t=t.replace(/\s+/g,"")).match(/^\[[0-9,]+\]$/)},(void 0===yt||!yt)&&(yt={}),(void 0===yt.crypto||!yt.crypto)&&(yt.crypto={}),yt.crypto.Util=new function(){this.DIGESTINFOHEAD={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},this.DEFAULTPROVIDER={md5:"cryptojs",sha1:"cryptojs",sha224:"cryptojs",sha256:"cryptojs",sha384:"cryptojs",sha512:"cryptojs",ripemd160:"cryptojs",hmacmd5:"cryptojs",hmacsha1:"cryptojs",hmacsha224:"cryptojs",hmacsha256:"cryptojs",hmacsha384:"cryptojs",hmacsha512:"cryptojs",hmacripemd160:"cryptojs",MD5withRSA:"cryptojs/jsrsa",SHA1withRSA:"cryptojs/jsrsa",SHA224withRSA:"cryptojs/jsrsa",SHA256withRSA:"cryptojs/jsrsa",SHA384withRSA:"cryptojs/jsrsa",SHA512withRSA:"cryptojs/jsrsa",RIPEMD160withRSA:"cryptojs/jsrsa",MD5withECDSA:"cryptojs/jsrsa",SHA1withECDSA:"cryptojs/jsrsa",SHA224withECDSA:"cryptojs/jsrsa",SHA256withECDSA:"cryptojs/jsrsa",SHA384withECDSA:"cryptojs/jsrsa",SHA512withECDSA:"cryptojs/jsrsa",RIPEMD160withECDSA:"cryptojs/jsrsa",SHA1withDSA:"cryptojs/jsrsa",SHA224withDSA:"cryptojs/jsrsa",SHA256withDSA:"cryptojs/jsrsa",MD5withRSAandMGF1:"cryptojs/jsrsa",SHA1withRSAandMGF1:"cryptojs/jsrsa",SHA224withRSAandMGF1:"cryptojs/jsrsa",SHA256withRSAandMGF1:"cryptojs/jsrsa",SHA384withRSAandMGF1:"cryptojs/jsrsa",SHA512withRSAandMGF1:"cryptojs/jsrsa",RIPEMD160withRSAandMGF1:"cryptojs/jsrsa"},this.CRYPTOJSMESSAGEDIGESTNAME={md5:M.algo.MD5,sha1:M.algo.SHA1,sha224:M.algo.SHA224,sha256:M.algo.SHA256,sha384:M.algo.SHA384,sha512:M.algo.SHA512,ripemd160:M.algo.RIPEMD160},this.getDigestInfoHex=function(t,e){if(void 0===this.DIGESTINFOHEAD[e])throw"alg not supported in Util.DIGESTINFOHEAD: "+e;return this.DIGESTINFOHEAD[e]+t},this.getPaddedDigestInfoHex=function(t,e,n){var i=this.getDigestInfoHex(t,e),r=n/4;if(i.length+22>r)throw"key is too short for SigAlg: keylen="+n+","+e;for(var a="0001",o="00"+i,s="",l=r-a.length-o.length,c=0;c<l;c+=2)s+="ff";return a+s+o},this.hashString=function(t,e){return new yt.crypto.MessageDigest({alg:e}).digestString(t)},this.hashHex=function(t,e){return new yt.crypto.MessageDigest({alg:e}).digestHex(t)},this.sha1=function(t){return new yt.crypto.MessageDigest({alg:"sha1",prov:"cryptojs"}).digestString(t)},this.sha256=function(t){return new yt.crypto.MessageDigest({alg:"sha256",prov:"cryptojs"}).digestString(t)},this.sha256Hex=function(t){return new yt.crypto.MessageDigest({alg:"sha256",prov:"cryptojs"}).digestHex(t)},this.sha512=function(t){return new yt.crypto.MessageDigest({alg:"sha512",prov:"cryptojs"}).digestString(t)},this.sha512Hex=function(t){return new yt.crypto.MessageDigest({alg:"sha512",prov:"cryptojs"}).digestHex(t)}},yt.crypto.Util.md5=function(t){return new yt.crypto.MessageDigest({alg:"md5",prov:"cryptojs"}).digestString(t)},yt.crypto.Util.ripemd160=function(t){return new yt.crypto.MessageDigest({alg:"ripemd160",prov:"cryptojs"}).digestString(t)},yt.crypto.Util.SECURERANDOMGEN=new ht,yt.crypto.Util.getRandomHexOfNbytes=function(t){var e=new Array(t);return yt.crypto.Util.SECURERANDOMGEN.nextBytes(e),Ct(e)},yt.crypto.Util.getRandomBigIntegerOfNbytes=function(t){return new T(yt.crypto.Util.getRandomHexOfNbytes(t),16)},yt.crypto.Util.getRandomHexOfNbits=function(t){var e=t%8,n=new Array((t-e)/8+1);return yt.crypto.Util.SECURERANDOMGEN.nextBytes(n),n[0]=(255<<e&255^255)&n[0],Ct(n)},yt.crypto.Util.getRandomBigIntegerOfNbits=function(t){return new T(yt.crypto.Util.getRandomHexOfNbits(t),16)},yt.crypto.Util.getRandomBigIntegerZeroToMax=function(t){for(var e=t.bitLength();;){var n=yt.crypto.Util.getRandomBigIntegerOfNbits(e);if(-1!=t.compareTo(n))return n}},yt.crypto.Util.getRandomBigIntegerMinToMax=function(t,e){var n=t.compareTo(e);if(1==n)throw"biMin is greater than biMax";if(0==n)return t;var i=e.subtract(t);return yt.crypto.Util.getRandomBigIntegerZeroToMax(i).add(t)},yt.crypto.MessageDigest=function(t){this.setAlgAndProvider=function(t,e){if(null!==(t=yt.crypto.MessageDigest.getCanonicalAlgName(t))&&void 0===e&&(e=yt.crypto.Util.DEFAULTPROVIDER[t]),-1!=":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:".indexOf(t)&&"cryptojs"==e){try{this.md=yt.crypto.Util.CRYPTOJSMESSAGEDIGESTNAME[t].create()}catch(e){throw"setAlgAndProvider hash alg set fail alg="+t+"/"+e}this.updateString=function(t){this.md.update(t)},this.updateHex=function(t){var e=M.enc.Hex.parse(t);this.md.update(e)},this.digest=function(){return this.md.finalize().toString(M.enc.Hex)},this.digestString=function(t){return this.updateString(t),this.digest()},this.digestHex=function(t){return this.updateHex(t),this.digest()}}if(-1!=":sha256:".indexOf(t)&&"sjcl"==e){try{this.md=new sjcl.hash.sha256}catch(e){throw"setAlgAndProvider hash alg set fail alg="+t+"/"+e}this.updateString=function(t){this.md.update(t)},this.updateHex=function(t){var e=sjcl.codec.hex.toBits(t);this.md.update(e)},this.digest=function(){var t=this.md.finalize();return sjcl.codec.hex.fromBits(t)},this.digestString=function(t){return this.updateString(t),this.digest()},this.digestHex=function(t){return this.updateHex(t),this.digest()}}},this.updateString=function(t){throw"updateString(str) not supported for this alg/prov: "+this.algName+"/"+this.provName},this.updateHex=function(t){throw"updateHex(hex) not supported for this alg/prov: "+this.algName+"/"+this.provName},this.digest=function(){throw"digest() not supported for this alg/prov: "+this.algName+"/"+this.provName},this.digestString=function(t){throw"digestString(str) not supported for this alg/prov: "+this.algName+"/"+this.provName},this.digestHex=function(t){throw"digestHex(hex) not supported for this alg/prov: "+this.algName+"/"+this.provName},void 0!==t&&void 0!==t.alg&&(this.algName=t.alg,void 0===t.prov&&(this.provName=yt.crypto.Util.DEFAULTPROVIDER[this.algName]),this.setAlgAndProvider(this.algName,this.provName))},yt.crypto.MessageDigest.getCanonicalAlgName=function(t){return"string"==typeof t&&(t=(t=t.toLowerCase()).replace(/-/,"")),t},yt.crypto.MessageDigest.getHashLength=function(t){var e=yt.crypto.MessageDigest,n=e.getCanonicalAlgName(t);if(void 0===e.HASHLENGTH[n])throw"not supported algorithm: "+t;return e.HASHLENGTH[n]},yt.crypto.MessageDigest.HASHLENGTH={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,ripemd160:20},yt.crypto.Mac=function(t){this.setAlgAndProvider=function(t,e){if(null==(t=t.toLowerCase())&&(t="hmacsha1"),"hmac"!=(t=t.toLowerCase()).substr(0,4))throw"setAlgAndProvider unsupported HMAC alg: "+t;void 0===e&&(e=yt.crypto.Util.DEFAULTPROVIDER[t]),this.algProv=t+"/"+e;var n=t.substr(4);if(-1!=":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:".indexOf(n)&&"cryptojs"==e){try{this.mac=M.algo.HMAC.create(yt.crypto.Util.CRYPTOJSMESSAGEDIGESTNAME[n],this.pass)}catch(t){throw"setAlgAndProvider hash alg set fail hashAlg="+n+"/"+t}this.updateString=function(t){this.mac.update(t)},this.updateHex=function(t){var e=M.enc.Hex.parse(t);this.mac.update(e)},this.doFinal=function(){return this.mac.finalize().toString(M.enc.Hex)},this.doFinalString=function(t){return this.updateString(t),this.doFinal()},this.doFinalHex=function(t){return this.updateHex(t),this.doFinal()}}},this.updateString=function(t){throw"updateString(str) not supported for this alg/prov: "+this.algProv},this.updateHex=function(t){throw"updateHex(hex) not supported for this alg/prov: "+this.algProv},this.doFinal=function(){throw"digest() not supported for this alg/prov: "+this.algProv},this.doFinalString=function(t){throw"digestString(str) not supported for this alg/prov: "+this.algProv},this.doFinalHex=function(t){throw"digestHex(hex) not supported for this alg/prov: "+this.algProv},this.setPassword=function(t){if("string"==typeof t){var e=t;return(t.length%2==1||!t.match(/^[0-9A-Fa-f]+$/))&&(e=At(t)),void(this.pass=M.enc.Hex.parse(e))}if("object"!=typeof t)throw"KJUR.crypto.Mac unsupported password type: "+t;if(e=null,void 0!==t.hex){if(t.hex.length%2!=0||!t.hex.match(/^[0-9A-Fa-f]+$/))throw"Mac: wrong hex password: "+t.hex;e=t.hex}if(void 0!==t.utf8&&(e=Dt(t.utf8)),void 0!==t.rstr&&(e=At(t.rstr)),void 0!==t.b64&&(e=A(t.b64)),void 0!==t.b64u&&(e=Mt(t.b64u)),null==e)throw"KJUR.crypto.Mac unsupported password type: "+t;this.pass=M.enc.Hex.parse(e)},void 0!==t&&(void 0!==t.pass&&this.setPassword(t.pass),void 0!==t.alg&&(this.algName=t.alg,void 0===t.prov&&(this.provName=yt.crypto.Util.DEFAULTPROVIDER[this.algName]),this.setAlgAndProvider(this.algName,this.provName)))},yt.crypto.Signature=function(t){var e=null;if(this._setAlgNames=function(){var t=this.algName.match(/^(.+)with(.+)$/);t&&(this.mdAlgName=t[1].toLowerCase(),this.pubkeyAlgName=t[2].toLowerCase())},this._zeroPaddingOfSignature=function(t,e){for(var n="",i=e/4-t.length,r=0;r<i;r++)n+="0";return n+t},this.setAlgAndProvider=function(t,e){if(this._setAlgNames(),"cryptojs/jsrsa"!=e)throw"provider not supported: "+e;if(-1!=":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:".indexOf(this.mdAlgName)){try{this.md=new yt.crypto.MessageDigest({alg:this.mdAlgName})}catch(t){throw"setAlgAndProvider hash alg set fail alg="+this.mdAlgName+"/"+t}this.init=function(t,e){var n=null;try{n=void 0===e?jt.getKey(t):jt.getKey(t,e)}catch(t){throw"init failed:"+t}if(!0===n.isPrivate)this.prvKey=n,this.state="SIGN";else{if(!0!==n.isPublic)throw"init failed.:"+n;this.pubKey=n,this.state="VERIFY"}},this.updateString=function(t){this.md.updateString(t)},this.updateHex=function(t){this.md.updateHex(t)},this.sign=function(){if(this.sHashHex=this.md.digest(),void 0!==this.ecprvhex&&void 0!==this.eccurvename){var t=new yt.crypto.ECDSA({curve:this.eccurvename});this.hSign=t.signHex(this.sHashHex,this.ecprvhex)}else if(this.prvKey instanceof mt&&"rsaandmgf1"===this.pubkeyAlgName)this.hSign=this.prvKey.signWithMessageHashPSS(this.sHashHex,this.mdAlgName,this.pssSaltLen);else if(this.prvKey instanceof mt&&"rsa"===this.pubkeyAlgName)this.hSign=this.prvKey.signWithMessageHash(this.sHashHex,this.mdAlgName);else if(this.prvKey instanceof yt.crypto.ECDSA)this.hSign=this.prvKey.signWithMessageHash(this.sHashHex);else{if(!(this.prvKey instanceof yt.crypto.DSA))throw"Signature: unsupported private key alg: "+this.pubkeyAlgName;this.hSign=this.prvKey.signWithMessageHash(this.sHashHex)}return this.hSign},this.signString=function(t){return this.updateString(t),this.sign()},this.signHex=function(t){return this.updateHex(t),this.sign()},this.verify=function(t){if(this.sHashHex=this.md.digest(),void 0!==this.ecpubhex&&void 0!==this.eccurvename)return new yt.crypto.ECDSA({curve:this.eccurvename}).verifyHex(this.sHashHex,t,this.ecpubhex);if(this.pubKey instanceof mt&&"rsaandmgf1"===this.pubkeyAlgName)return this.pubKey.verifyWithMessageHashPSS(this.sHashHex,t,this.mdAlgName,this.pssSaltLen);if(this.pubKey instanceof mt&&"rsa"===this.pubkeyAlgName)return this.pubKey.verifyWithMessageHash(this.sHashHex,t);if(void 0!==yt.crypto.ECDSA&&this.pubKey instanceof yt.crypto.ECDSA)return this.pubKey.verifyWithMessageHash(this.sHashHex,t);if(void 0!==yt.crypto.DSA&&this.pubKey instanceof yt.crypto.DSA)return this.pubKey.verifyWithMessageHash(this.sHashHex,t);throw"Signature: unsupported public key alg: "+this.pubkeyAlgName}}},this.init=function(t,e){throw"init(key, pass) not supported for this alg:prov="+this.algProvName},this.updateString=function(t){throw"updateString(str) not supported for this alg:prov="+this.algProvName},this.updateHex=function(t){throw"updateHex(hex) not supported for this alg:prov="+this.algProvName},this.sign=function(){throw"sign() not supported for this alg:prov="+this.algProvName},this.signString=function(t){throw"digestString(str) not supported for this alg:prov="+this.algProvName},this.signHex=function(t){throw"digestHex(hex) not supported for this alg:prov="+this.algProvName},this.verify=function(t){throw"verify(hSigVal) not supported for this alg:prov="+this.algProvName},this.initParams=t,void 0!==t&&(void 0!==t.alg&&(this.algName=t.alg,this.provName=void 0===t.prov?yt.crypto.Util.DEFAULTPROVIDER[this.algName]:t.prov,this.algProvName=this.algName+":"+this.provName,this.setAlgAndProvider(this.algName,this.provName),this._setAlgNames()),void 0!==t.psssaltlen&&(this.pssSaltLen=t.psssaltlen),void 0!==t.prvkeypem)){if(void 0!==t.prvkeypas)throw"both prvkeypem and prvkeypas parameters not supported";try{e=jt.getKey(t.prvkeypem),this.init(e)}catch(t){throw"fatal error to load pem private key: "+t}}},yt.crypto.Cipher=function(t){},yt.crypto.Cipher.encrypt=function(t,e,n){if(e instanceof mt&&e.isPublic){var i=yt.crypto.Cipher.getAlgByKeyAndName(e,n);if("RSA"===i)return e.encrypt(t);if("RSAOAEP"===i)return e.encryptOAEP(t,"sha1");var r=i.match(/^RSAOAEP(\d+)$/);if(null!==r)return e.encryptOAEP(t,"sha"+r[1]);throw"Cipher.encrypt: unsupported algorithm for RSAKey: "+n}throw"Cipher.encrypt: unsupported key or algorithm"},yt.crypto.Cipher.decrypt=function(t,e,n){if(e instanceof mt&&e.isPrivate){var i=yt.crypto.Cipher.getAlgByKeyAndName(e,n);if("RSA"===i)return e.decrypt(t);if("RSAOAEP"===i)return e.decryptOAEP(t,"sha1");var r=i.match(/^RSAOAEP(\d+)$/);if(null!==r)return e.decryptOAEP(t,"sha"+r[1]);throw"Cipher.decrypt: unsupported algorithm for RSAKey: "+n}throw"Cipher.decrypt: unsupported key or algorithm"},yt.crypto.Cipher.getAlgByKeyAndName=function(t,e){if(t instanceof mt){if(-1!=":RSA:RSAOAEP:RSAOAEP224:RSAOAEP256:RSAOAEP384:RSAOAEP512:".indexOf(e))return e;if(null==e)return"RSA";throw"getAlgByKeyAndName: not supported algorithm name for RSAKey: "+e}throw"getAlgByKeyAndName: not supported algorithm name: "+e},yt.crypto.OID=new function(){this.oidhex2name={"2a864886f70d010101":"rsaEncryption","2a8648ce3d0201":"ecPublicKey","2a8648ce380401":"dsa","2a8648ce3d030107":"secp256r1","2b8104001f":"secp192k1","2b81040021":"secp224r1","2b8104000a":"secp256k1","2b81040023":"secp521r1","2b81040022":"secp384r1","2a8648ce380403":"SHA1withDSA","608648016503040301":"SHA224withDSA","608648016503040302":"SHA256withDSA"}},(void 0===yt||!yt)&&(yt={}),(void 0===yt.crypto||!yt.crypto)&&(yt.crypto={}),yt.crypto.ECDSA=function(t){var e=T,n=gt,i=yt.crypto.ECDSA,r=yt.crypto.ECParameterDB,a=new ht;this.type="EC",this.isPrivate=!1,this.isPublic=!1,this.getBigRandom=function(t){return new e(t.bitLength(),a).mod(t.subtract(e.ONE)).add(e.ONE)},this.setNamedCurve=function(t){this.ecparams=r.getByName(t),this.prvKeyHex=null,this.pubKeyHex=null,this.curveName=t},this.setPrivateKeyHex=function(t){this.isPrivate=!0,this.prvKeyHex=t},this.setPublicKeyHex=function(t){this.isPublic=!0,this.pubKeyHex=t},this.getPublicKeyXYHex=function(){var t=this.pubKeyHex;if("04"!==t.substr(0,2))throw"this method supports uncompressed format(04) only";var e=this.ecparams.keylen/4;if(t.length!==2+2*e)throw"malformed public key hex length";var n={};return n.x=t.substr(2,e),n.y=t.substr(2+e),n},this.getShortNISTPCurveName=function(){var t=this.curveName;return"secp256r1"===t||"NIST P-256"===t||"P-256"===t||"prime256v1"===t?"P-256":"secp384r1"===t||"NIST P-384"===t||"P-384"===t?"P-384":null},this.generateKeyPairHex=function(){var t=this.getBigRandom(this.ecparams.n),e=this.ecparams.G.multiply(t),n=e.getX().toBigInteger(),i=e.getY().toBigInteger(),r=this.ecparams.keylen/4,a=("0000000000"+t.toString(16)).slice(-r),o="04"+("0000000000"+n.toString(16)).slice(-r)+("0000000000"+i.toString(16)).slice(-r);return this.setPrivateKeyHex(a),this.setPublicKeyHex(o),{ecprvhex:a,ecpubhex:o}},this.signWithMessageHash=function(t){return this.signHex(t,this.prvKeyHex)},this.signHex=function(t,n){var r=new e(n,16),a=this.ecparams.n,o=new e(t.substring(0,this.ecparams.keylen/4),16);do{var s=this.getBigRandom(a),l=this.ecparams.G.multiply(s).getX().toBigInteger().mod(a)}while(l.compareTo(e.ZERO)<=0);var c=s.modInverse(a).multiply(o.add(r.multiply(l))).mod(a);return i.biRSSigToASN1Sig(l,c)},this.sign=function(t,n){var i=n,r=this.ecparams.n,a=e.fromByteArrayUnsigned(t);do{var o=this.getBigRandom(r),s=this.ecparams.G.multiply(o).getX().toBigInteger().mod(r)}while(s.compareTo(T.ZERO)<=0);var l=o.modInverse(r).multiply(a.add(i.multiply(s))).mod(r);return this.serializeSig(s,l)},this.verifyWithMessageHash=function(t,e){return this.verifyHex(t,e,this.pubKeyHex)},this.verifyHex=function(t,r,a){var o,s,l=i.parseSigHex(r);o=l.r,s=l.s;var c=n.decodeFromHex(this.ecparams.curve,a),h=new e(t.substring(0,this.ecparams.keylen/4),16);return this.verifyRaw(h,o,s,c)},this.verify=function(t,i,r){var a,o,s;if(Bitcoin.Util.isArray(i)){var l=this.parseSig(i);a=l.r,o=l.s}else{if("object"!=typeof i||!i.r||!i.s)throw"Invalid value for signature";a=i.r,o=i.s}if(r instanceof gt)s=r;else{if(!Bitcoin.Util.isArray(r))throw"Invalid format for pubkey value, must be byte array or ECPointFp";s=n.decodeFrom(this.ecparams.curve,r)}var c=e.fromByteArrayUnsigned(t);return this.verifyRaw(c,a,o,s)},this.verifyRaw=function(t,n,i,r){var a=this.ecparams.n,o=this.ecparams.G;if(n.compareTo(e.ONE)<0||n.compareTo(a)>=0||i.compareTo(e.ONE)<0||i.compareTo(a)>=0)return!1;var s=i.modInverse(a),l=t.multiply(s).mod(a),c=n.multiply(s).mod(a);return o.multiply(l).add(r.multiply(c)).getX().toBigInteger().mod(a).equals(n)},this.serializeSig=function(t,e){var n=t.toByteArraySigned(),i=e.toByteArraySigned(),r=[];return r.push(2),r.push(n.length),(r=r.concat(n)).push(2),r.push(i.length),(r=r.concat(i)).unshift(r.length),r.unshift(48),r},this.parseSig=function(t){var n;if(48!=t[0])throw new Error("Signature not a valid DERSequence");if(2!=t[n=2])throw new Error("First element in signature must be a DERInteger");var i=t.slice(n+2,n+2+t[n+1]);if(2!=t[n+=2+t[n+1]])throw new Error("Second element in signature must be a DERInteger");var r=t.slice(n+2,n+2+t[n+1]);return n+=2+t[n+1],{r:e.fromByteArrayUnsigned(i),s:e.fromByteArrayUnsigned(r)}},this.parseSigCompact=function(t){if(65!==t.length)throw"Signature has the wrong length";var n=t[0]-27;if(n<0||n>7)throw"Invalid signature type";var i=this.ecparams.n;return{r:e.fromByteArrayUnsigned(t.slice(1,33)).mod(i),s:e.fromByteArrayUnsigned(t.slice(33,65)).mod(i),i:n}},this.readPKCS5PrvKeyHex=function(t){var e,n,r,a=i.getName,o=xt.getVbyList;if(!1===xt.isASN1HEX(t))throw"not ASN.1 hex string";try{e=o(t,0,[2,0],"06"),n=o(t,0,[1],"04");try{r=o(t,0,[3,0],"03").substr(2)}catch(t){}}catch(t){throw"malformed PKCS#1/5 plain ECC private key"}if(this.curveName=a(e),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(r),this.setPrivateKeyHex(n),this.isPublic=!1},this.readPKCS8PrvKeyHex=function(t){var e,n,i,r=yt.crypto.ECDSA.getName,a=xt.getVbyList;if(!1===xt.isASN1HEX(t))throw"not ASN.1 hex string";try{a(t,0,[1,0],"06"),e=a(t,0,[1,1],"06"),n=a(t,0,[2,0,1],"04");try{i=a(t,0,[2,0,2,0],"03").substr(2)}catch(t){}}catch(t){throw"malformed PKCS#8 plain ECC private key"}if(this.curveName=r(e),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(i),this.setPrivateKeyHex(n),this.isPublic=!1},this.readPKCS8PubKeyHex=function(t){var e,n,i=yt.crypto.ECDSA.getName,r=xt.getVbyList;if(!1===xt.isASN1HEX(t))throw"not ASN.1 hex string";try{r(t,0,[0,0],"06"),e=r(t,0,[0,1],"06"),n=r(t,0,[1],"03").substr(2)}catch(t){throw"malformed PKCS#8 ECC public key"}if(this.curveName=i(e),null===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(n)},this.readCertPubKeyHex=function(t,e){5!==e&&(e=6);var n,r,a=i.getName,o=xt.getVbyList;if(!1===xt.isASN1HEX(t))throw"not ASN.1 hex string";try{n=o(t,0,[0,e,0,1],"06"),r=o(t,0,[0,e,1],"03").substr(2)}catch(t){throw"malformed X.509 certificate ECC public key"}if(this.curveName=a(n),null===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(r)},void 0!==t&&void 0!==t.curve&&(this.curveName=t.curve),void 0===this.curveName&&(this.curveName="secp256r1"),this.setNamedCurve(this.curveName),void 0!==t&&(void 0!==t.prv&&this.setPrivateKeyHex(t.prv),void 0!==t.pub&&this.setPublicKeyHex(t.pub))},yt.crypto.ECDSA.parseSigHex=function(t){var e=yt.crypto.ECDSA.parseSigHexInHexRS(t);return{r:new T(e.r,16),s:new T(e.s,16)}},yt.crypto.ECDSA.parseSigHexInHexRS=function(t){var e=xt.getChildIdx,n=xt.getV;if("30"!=t.substr(0,2))throw"signature is not a ASN.1 sequence";var i=e(t,0);if(2!=i.length)throw"number of signature ASN.1 sequence elements seem wrong";var r=i[0],a=i[1];if("02"!=t.substr(r,2))throw"1st item of sequene of signature is not ASN.1 integer";if("02"!=t.substr(a,2))throw"2nd item of sequene of signature is not ASN.1 integer";return{r:n(t,r),s:n(t,a)}},yt.crypto.ECDSA.asn1SigToConcatSig=function(t){var e=yt.crypto.ECDSA.parseSigHexInHexRS(t),n=e.r,i=e.s;if("00"==n.substr(0,2)&&n.length%32==2&&(n=n.substr(2)),"00"==i.substr(0,2)&&i.length%32==2&&(i=i.substr(2)),n.length%32==30&&(n="00"+n),i.length%32==30&&(i="00"+i),n.length%32!=0)throw"unknown ECDSA sig r length error";if(i.length%32!=0)throw"unknown ECDSA sig s length error";return n+i},yt.crypto.ECDSA.concatSigToASN1Sig=function(t){if(t.length/2*8%128!=0)throw"unknown ECDSA concatinated r-s sig length error";var e=t.substr(0,t.length/2),n=t.substr(t.length/2);return yt.crypto.ECDSA.hexRSSigToASN1Sig(e,n)},yt.crypto.ECDSA.hexRSSigToASN1Sig=function(t,e){var n=new T(t,16),i=new T(e,16);return yt.crypto.ECDSA.biRSSigToASN1Sig(n,i)},yt.crypto.ECDSA.biRSSigToASN1Sig=function(t,e){var n=yt.asn1,i=new n.DERInteger({bigint:t}),r=new n.DERInteger({bigint:e});return new n.DERSequence({array:[i,r]}).getEncodedHex()},yt.crypto.ECDSA.getName=function(t){return"2b8104001f"===t?"secp192k1":"2a8648ce3d030107"===t?"secp256r1":"2b8104000a"===t?"secp256k1":"2b81040021"===t?"secp224r1":"2b81040022"===t?"secp384r1":-1!=="|secp256r1|NIST P-256|P-256|prime256v1|".indexOf(t)?"secp256r1":-1!=="|secp256k1|".indexOf(t)?"secp256k1":-1!=="|secp224r1|NIST P-224|P-224|".indexOf(t)?"secp224r1":-1!=="|secp384r1|NIST P-384|P-384|".indexOf(t)?"secp384r1":null},(void 0===yt||!yt)&&(yt={}),(void 0===yt.crypto||!yt.crypto)&&(yt.crypto={}),yt.crypto.ECParameterDB=new function(){var t={},e={};function n(t){return new T(t,16)}this.getByName=function(n){var i=n;if(void 0!==e[i]&&(i=e[n]),void 0!==t[i])return t[i];throw"unregistered EC curve name: "+i},this.regist=function(i,r,a,o,s,l,c,h,d,u,m,p){t[i]={};var g=n(a),f=n(o),b=n(s),y=n(l),v=n(c),w=new ft(g,f,b),x=w.decodePointHex("04"+h+d);t[i].name=i,t[i].keylen=r,t[i].curve=w,t[i].G=x,t[i].n=y,t[i].h=v,t[i].oid=m,t[i].info=p;for(var C=0;C<u.length;C++)e[u[C]]=i}},yt.crypto.ECParameterDB.regist("secp128r1",128,"FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFF","FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFC","E87579C11079F43DD824993C2CEE5ED3","FFFFFFFE0000000075A30D1B9038A115","1","161FF7528B899B2D0C28607CA52C5B86","CF5AC8395BAFEB13C02DA292DDED7A83",[],"","secp128r1 : SECG curve over a 128 bit prime field"),yt.crypto.ECParameterDB.regist("secp160k1",160,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC73","0","7","0100000000000000000001B8FA16DFAB9ACA16B6B3","1","3B4C382CE37AA192A4019E763036F4F5DD4D7EBB","938CF935318FDCED6BC28286531733C3F03C4FEE",[],"","secp160k1 : SECG curve over a 160 bit prime field"),yt.crypto.ECParameterDB.regist("secp160r1",160,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFC","1C97BEFC54BD7A8B65ACF89F81D4D4ADC565FA45","0100000000000000000001F4C8F927AED3CA752257","1","4A96B5688EF573284664698968C38BB913CBFC82","23A628553168947D59DCC912042351377AC5FB32",[],"","secp160r1 : SECG curve over a 160 bit prime field"),yt.crypto.ECParameterDB.regist("secp192k1",192,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFEE37","0","3","FFFFFFFFFFFFFFFFFFFFFFFE26F2FC170F69466A74DEFD8D","1","DB4FF10EC057E9AE26B07D0280B7F4341DA5D1B1EAE06C7D","9B2F2F6D9C5628A7844163D015BE86344082AA88D95E2F9D",[]),yt.crypto.ECParameterDB.regist("secp192r1",192,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFC","64210519E59C80E70FA7E9AB72243049FEB8DEECC146B9B1","FFFFFFFFFFFFFFFFFFFFFFFF99DEF836146BC9B1B4D22831","1","188DA80EB03090F67CBF20EB43A18800F4FF0AFD82FF1012","07192B95FFC8DA78631011ED6B24CDD573F977A11E794811",[]),yt.crypto.ECParameterDB.regist("secp224r1",224,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000001","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFE","B4050A850C04B3ABF54132565044B0B7D7BFD8BA270B39432355FFB4","FFFFFFFFFFFFFFFFFFFFFFFFFFFF16A2E0B8F03E13DD29455C5C2A3D","1","B70E0CBD6BB4BF7F321390B94A03C1D356C21122343280D6115C1D21","BD376388B5F723FB4C22DFE6CD4375A05A07476444D5819985007E34",[]),yt.crypto.ECParameterDB.regist("secp256k1",256,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F","0","7","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141","1","79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798","483ADA7726A3C4655DA4FBFC0E1108A8FD17B448A68554199C47D08FFB10D4B8",[]),yt.crypto.ECParameterDB.regist("secp256r1",256,"FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF","FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFC","5AC635D8AA3A93E7B3EBBD55769886BC651D06B0CC53B0F63BCE3C3E27D2604B","FFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551","1","6B17D1F2E12C4247F8BCE6E563A440F277037D812DEB33A0F4A13945D898C296","4FE342E2FE1A7F9B8EE7EB4A7C0F9E162BCE33576B315ECECBB6406837BF51F5",["NIST P-256","P-256","prime256v1"]),yt.crypto.ECParameterDB.regist("secp384r1",384,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFC","B3312FA7E23EE7E4988E056BE3F82D19181D9C6EFE8141120314088F5013875AC656398D8A2ED19D2A85C8EDD3EC2AEF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC7634D81F4372DDF581A0DB248B0A77AECEC196ACCC52973","1","AA87CA22BE8B05378EB1C71EF320AD746E1D3B628BA79B9859F741E082542A385502F25DBF55296C3A545E3872760AB7","3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f",["NIST P-384","P-384"]),yt.crypto.ECParameterDB.regist("secp521r1",521,"1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF","1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC","051953EB9618E1C9A1F929A21A0B68540EEA2DA725B99B315F3B8B489918EF109E156193951EC7E937B1652C0BD3BB1BF073573DF883D2C34F1EF451FD46B503F00","1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA51868783BF2F966B7FCC0148F709A5D03BB5C9B8899C47AEBB6FB71E91386409","1","C6858E06B70404E9CD9E3ECB662395B4429C648139053FB521F828AF606B4D3DBAA14B5E77EFE75928FE1DC127A2FFA8DE3348B3C1856A429BF97E7E31C2E5BD66","011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650",["NIST P-521","P-521"]);var Vt,Nt,Ht,Gt,Zt,Ut,Wt,Yt,jt=(Vt=function(t,e,n){return Nt(M.AES,t,e,n)},Nt=function(t,e,n,i){var r=M.enc.Hex.parse(e),a=M.enc.Hex.parse(n),o=M.enc.Hex.parse(i),s={};s.key=a,s.iv=o,s.ciphertext=r;var l=t.decrypt(s,a,{iv:o});return M.enc.Hex.stringify(l)},Ht=function(t,e,n){return Gt(M.AES,t,e,n)},Gt=function(t,e,n,i){var r=M.enc.Hex.parse(e),a=M.enc.Hex.parse(n),o=M.enc.Hex.parse(i),s=t.encrypt(r,a,{iv:o}),l=M.enc.Hex.parse(s.toString());return M.enc.Base64.stringify(l)},Zt={"AES-256-CBC":{proc:Vt,eproc:Ht,keylen:32,ivlen:16},"AES-192-CBC":{proc:Vt,eproc:Ht,keylen:24,ivlen:16},"AES-128-CBC":{proc:Vt,eproc:Ht,keylen:16,ivlen:16},"DES-EDE3-CBC":{proc:function(t,e,n){return Nt(M.TripleDES,t,e,n)},eproc:function(t,e,n){return Gt(M.TripleDES,t,e,n)},keylen:24,ivlen:8},"DES-CBC":{proc:function(t,e,n){return Nt(M.DES,t,e,n)},eproc:function(t,e,n){return Gt(M.DES,t,e,n)},keylen:8,ivlen:8}},Ut=function(t){var e={},n=t.match(new RegExp("DEK-Info: ([^,]+),([0-9A-Fa-f]+)","m"));n&&(e.cipher=n[1],e.ivsalt=n[2]);var i=t.match(new RegExp("-----BEGIN ([A-Z]+) PRIVATE KEY-----"));i&&(e.type=i[1]);var r=-1,a=0;-1!=t.indexOf("\r\n\r\n")&&(r=t.indexOf("\r\n\r\n"),a=2),-1!=t.indexOf("\n\n")&&(r=t.indexOf("\n\n"),a=1);var o=t.indexOf("-----END");if(-1!=r&&-1!=o){var s=t.substring(r+2*a,o-a);s=s.replace(/\s+/g,""),e.data=s}return e},Wt=function(t,e,n){for(var i=n.substring(0,16),r=M.enc.Hex.parse(i),a=M.enc.Utf8.parse(e),o=Zt[t].keylen+Zt[t].ivlen,s="",l=null;;){var c=M.algo.MD5.create();if(null!=l&&c.update(l),c.update(a),c.update(r),l=c.finalize(),(s+=M.enc.Hex.stringify(l)).length>=2*o)break}var h={};return h.keyhex=s.substr(0,2*Zt[t].keylen),h.ivhex=s.substr(2*Zt[t].keylen,2*Zt[t].ivlen),h},Yt=function(t,e,n,i){var r=M.enc.Base64.parse(t),a=M.enc.Hex.stringify(r);return(0,Zt[e].proc)(a,n,i)},{version:"1.0.0",parsePKCS5PEM:function(t){return Ut(t)},getKeyAndUnusedIvByPasscodeAndIvsalt:function(t,e,n){return Wt(t,e,n)},decryptKeyB64:function(t,e,n,i){return Yt(t,e,n,i)},getDecryptedKeyHex:function(t,e){var n=Ut(t),i=n.cipher,r=n.ivsalt,a=n.data,o=Wt(i,e,r);return Yt(a,i,o.keyhex,r)},getEncryptedPKCS5PEMFromPrvKeyHex:function(t,e,n,i,r){var a,o,s,l,c,h,d="";if((void 0===i||null==i)&&(i="AES-256-CBC"),void 0===Zt[i])throw"KEYUTIL unsupported algorithm: "+i;return void 0!==r&&null!=r||(r=(a=Zt[i].ivlen,o=M.lib.WordArray.random(a),M.enc.Hex.stringify(o)).toUpperCase()),d="-----BEGIN "+t+" PRIVATE KEY-----\r\n",d+="Proc-Type: 4,ENCRYPTED\r\n",d+="DEK-Info: "+i+","+r+"\r\n",d+="\r\n",(d+=(s=e,l=i,c=Wt(i,n,r).keyhex,h=r,(0,Zt[l].eproc)(s,c,h)).replace(/(.{64})/g,"$1\r\n"))+"\r\n-----END "+t+" PRIVATE KEY-----\r\n"},parseHexOfEncryptedPKCS8:function(t){var e=xt.getChildIdx,n=xt.getV,i={},r=e(t,0);if(2!=r.length)throw"malformed format: SEQUENCE(0).items != 2: "+r.length;i.ciphertext=n(t,r[1]);var a=e(t,r[0]);if(2!=a.length)throw"malformed format: SEQUENCE(0.0).items != 2: "+a.length;if("2a864886f70d01050d"!=n(t,a[0]))throw"this only supports pkcs5PBES2";var o=e(t,a[1]);if(2!=a.length)throw"malformed format: SEQUENCE(0.0.1).items != 2: "+o.length;var s=e(t,o[1]);if(2!=s.length)throw"malformed format: SEQUENCE(0.0.1.1).items != 2: "+s.length;if("2a864886f70d0307"!=n(t,s[0]))throw"this only supports TripleDES";i.encryptionSchemeAlg="TripleDES",i.encryptionSchemeIV=n(t,s[1]);var l=e(t,o[0]);if(2!=l.length)throw"malformed format: SEQUENCE(0.0.1.0).items != 2: "+l.length;if("2a864886f70d01050c"!=n(t,l[0]))throw"this only supports pkcs5PBKDF2";var c=e(t,l[1]);if(c.length<2)throw"malformed format: SEQUENCE(0.0.1.0.1).items < 2: "+c.length;i.pbkdf2Salt=n(t,c[0]);var h=n(t,c[1]);try{i.pbkdf2Iter=parseInt(h,16)}catch(t){throw"malformed format pbkdf2Iter: "+h}return i},getPBKDF2KeyHexFromParam:function(t,e){var n=M.enc.Hex.parse(t.pbkdf2Salt),i=M.PBKDF2(e,n,{keySize:6,iterations:t.pbkdf2Iter});return M.enc.Hex.stringify(i)},_getPlainPKCS8HexFromEncryptedPKCS8PEM:function(t,e){var n=It(t,"ENCRYPTED PRIVATE KEY"),i=this.parseHexOfEncryptedPKCS8(n),r=jt.getPBKDF2KeyHexFromParam(i,e),a={};a.ciphertext=M.enc.Hex.parse(i.ciphertext);var o=M.enc.Hex.parse(r),s=M.enc.Hex.parse(i.encryptionSchemeIV),l=M.TripleDES.decrypt(a,o,{iv:s});return M.enc.Hex.stringify(l)},getKeyFromEncryptedPKCS8PEM:function(t,e){var n=this._getPlainPKCS8HexFromEncryptedPKCS8PEM(t,e);return this.getKeyFromPlainPrivatePKCS8Hex(n)},parsePlainPrivatePKCS8Hex:function(t){var e=xt,n=e.getChildIdx,i=e.getV,r={algparam:null};if("30"!=t.substr(0,2))throw"malformed plain PKCS8 private key(code:001)";var a=n(t,0);if(3!=a.length)throw"malformed plain PKCS8 private key(code:002)";if("30"!=t.substr(a[1],2))throw"malformed PKCS8 private key(code:003)";var o=n(t,a[1]);if(2!=o.length)throw"malformed PKCS8 private key(code:004)";if("06"!=t.substr(o[0],2))throw"malformed PKCS8 private key(code:005)";if(r.algoid=i(t,o[0]),"06"==t.substr(o[1],2)&&(r.algparam=i(t,o[1])),"04"!=t.substr(a[2],2))throw"malformed PKCS8 private key(code:006)";return r.keyidx=e.getVidx(t,a[2]),r},getKeyFromPlainPrivatePKCS8PEM:function(t){var e=It(t,"PRIVATE KEY");return this.getKeyFromPlainPrivatePKCS8Hex(e)},getKeyFromPlainPrivatePKCS8Hex:function(t){var e,n=this.parsePlainPrivatePKCS8Hex(t);if("2a864886f70d010101"==n.algoid)e=new mt;else if("2a8648ce380401"==n.algoid)e=new yt.crypto.DSA;else{if("2a8648ce3d0201"!=n.algoid)throw"unsupported private key algorithm";e=new yt.crypto.ECDSA}return e.readPKCS8PrvKeyHex(t),e},_getKeyFromPublicPKCS8Hex:function(t){var e,n=xt.getVbyList(t,0,[0,0],"06");if("2a864886f70d010101"===n)e=new mt;else if("2a8648ce380401"===n)e=new yt.crypto.DSA;else{if("2a8648ce3d0201"!==n)throw"unsupported PKCS#8 public key hex";e=new yt.crypto.ECDSA}return e.readPKCS8PubKeyHex(t),e},parsePublicRawRSAKeyHex:function(t){var e=xt.getChildIdx,n=xt.getV,i={};if("30"!=t.substr(0,2))throw"malformed RSA key(code:001)";var r=e(t,0);if(2!=r.length)throw"malformed RSA key(code:002)";if("02"!=t.substr(r[0],2))throw"malformed RSA key(code:003)";if(i.n=n(t,r[0]),"02"!=t.substr(r[1],2))throw"malformed RSA key(code:004)";return i.e=n(t,r[1]),i},parsePublicPKCS8Hex:function(t){var e=xt,n=e.getChildIdx,i=e.getV,r={algparam:null},a=n(t,0);if(2!=a.length)throw"outer DERSequence shall have 2 elements: "+a.length;var o=a[0];if("30"!=t.substr(o,2))throw"malformed PKCS8 public key(code:001)";var s=n(t,o);if(2!=s.length)throw"malformed PKCS8 public key(code:002)";if("06"!=t.substr(s[0],2))throw"malformed PKCS8 public key(code:003)";if(r.algoid=i(t,s[0]),"06"==t.substr(s[1],2)?r.algparam=i(t,s[1]):"30"==t.substr(s[1],2)&&(r.algparam={},r.algparam.p=e.getVbyList(t,s[1],[0],"02"),r.algparam.q=e.getVbyList(t,s[1],[1],"02"),r.algparam.g=e.getVbyList(t,s[1],[2],"02")),"03"!=t.substr(a[1],2))throw"malformed PKCS8 public key(code:004)";return r.key=i(t,a[1]).substr(2),r}});jt.getKey=function(t,e,n){var i,r=(v=xt).getChildIdx,a=v.getVbyList,o=yt.crypto,s=o.ECDSA,l=o.DSA,c=mt,h=It,d=jt;if(void 0!==c&&t instanceof c||void 0!==s&&t instanceof s||void 0!==l&&t instanceof l)return t;if(void 0!==t.curve&&void 0!==t.xy&&void 0===t.d)return new s({pub:t.xy,curve:t.curve});if(void 0!==t.curve&&void 0!==t.d)return new s({prv:t.d,curve:t.curve});if(void 0===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0===t.d)return(O=new c).setPublic(t.n,t.e),O;if(void 0===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d&&void 0!==t.p&&void 0!==t.q&&void 0!==t.dp&&void 0!==t.dq&&void 0!==t.co&&void 0===t.qi)return(O=new c).setPrivateEx(t.n,t.e,t.d,t.p,t.q,t.dp,t.dq,t.co),O;if(void 0===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d&&void 0===t.p)return(O=new c).setPrivate(t.n,t.e,t.d),O;if(void 0!==t.p&&void 0!==t.q&&void 0!==t.g&&void 0!==t.y&&void 0===t.x)return(O=new l).setPublic(t.p,t.q,t.g,t.y),O;if(void 0!==t.p&&void 0!==t.q&&void 0!==t.g&&void 0!==t.y&&void 0!==t.x)return(O=new l).setPrivate(t.p,t.q,t.g,t.y,t.x),O;if("RSA"===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0===t.d)return(O=new c).setPublic(Mt(t.n),Mt(t.e)),O;if("RSA"===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d&&void 0!==t.p&&void 0!==t.q&&void 0!==t.dp&&void 0!==t.dq&&void 0!==t.qi)return(O=new c).setPrivateEx(Mt(t.n),Mt(t.e),Mt(t.d),Mt(t.p),Mt(t.q),Mt(t.dp),Mt(t.dq),Mt(t.qi)),O;if("RSA"===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d)return(O=new c).setPrivate(Mt(t.n),Mt(t.e),Mt(t.d)),O;if("EC"===t.kty&&void 0!==t.crv&&void 0!==t.x&&void 0!==t.y&&void 0===t.d){var u=(E=new s({curve:t.crv})).ecparams.keylen/4,m=("0000000000"+Mt(t.x)).slice(-u),p=("0000000000"+Mt(t.y)).slice(-u);return E.setPublicKeyHex(g="04"+m+p),E}if("EC"===t.kty&&void 0!==t.crv&&void 0!==t.x&&void 0!==t.y&&void 0!==t.d){u=(E=new s({curve:t.crv})).ecparams.keylen/4;var g="04"+(m=("0000000000"+Mt(t.x)).slice(-u))+(p=("0000000000"+Mt(t.y)).slice(-u)),f=("0000000000"+Mt(t.d)).slice(-u);return E.setPublicKeyHex(g),E.setPrivateKeyHex(f),E}if("pkcs5prv"===n){var b,y=t,v=xt;if(9===(b=r(y,0)).length)(O=new c).readPKCS5PrvKeyHex(y);else if(6===b.length)(O=new l).readPKCS5PrvKeyHex(y);else{if(!(b.length>2&&"04"===y.substr(b[1],2)))throw"unsupported PKCS#1/5 hexadecimal key";(O=new s).readPKCS5PrvKeyHex(y)}return O}if("pkcs8prv"===n)return d.getKeyFromPlainPrivatePKCS8Hex(t);if("pkcs8pub"===n)return d._getKeyFromPublicPKCS8Hex(t);if("x509pub"===n)return Jt.getPublicKeyFromCertHex(t);if(-1!=t.indexOf("-END CERTIFICATE-",0)||-1!=t.indexOf("-END X509 CERTIFICATE-",0)||-1!=t.indexOf("-END TRUSTED CERTIFICATE-",0))return Jt.getPublicKeyFromCertPEM(t);if(-1!=t.indexOf("-END PUBLIC KEY-")){var w=It(t,"PUBLIC KEY");return d._getKeyFromPublicPKCS8Hex(w)}if(-1!=t.indexOf("-END RSA PRIVATE KEY-")&&-1==t.indexOf("4,ENCRYPTED")){var x=h(t,"RSA PRIVATE KEY");return d.getKey(x,null,"pkcs5prv")}if(-1!=t.indexOf("-END DSA PRIVATE KEY-")&&-1==t.indexOf("4,ENCRYPTED")){var C=a(i=h(t,"DSA PRIVATE KEY"),0,[1],"02"),k=a(i,0,[2],"02"),S=a(i,0,[3],"02"),P=a(i,0,[4],"02"),_=a(i,0,[5],"02");return(O=new l).setPrivate(new T(C,16),new T(k,16),new T(S,16),new T(P,16),new T(_,16)),O}if(-1!=t.indexOf("-END EC PRIVATE KEY-")&&-1==t.indexOf("4,ENCRYPTED"))return x=h(t,"EC PRIVATE KEY"),d.getKey(x,null,"pkcs5prv");if(-1!=t.indexOf("-END PRIVATE KEY-"))return d.getKeyFromPlainPrivatePKCS8PEM(t);if(-1!=t.indexOf("-END RSA PRIVATE KEY-")&&-1!=t.indexOf("4,ENCRYPTED")){var M=d.getDecryptedKeyHex(t,e),D=new mt;return D.readPKCS5PrvKeyHex(M),D}if(-1!=t.indexOf("-END EC PRIVATE KEY-")&&-1!=t.indexOf("4,ENCRYPTED")){var E,O=a(i=d.getDecryptedKeyHex(t,e),0,[1],"04"),A=a(i,0,[2,0],"06"),I=a(i,0,[3,0],"03").substr(2);if(void 0===yt.crypto.OID.oidhex2name[A])throw"undefined OID(hex) in KJUR.crypto.OID: "+A;return(E=new s({curve:yt.crypto.OID.oidhex2name[A]})).setPublicKeyHex(I),E.setPrivateKeyHex(O),E.isPublic=!1,E}if(-1!=t.indexOf("-END DSA PRIVATE KEY-")&&-1!=t.indexOf("4,ENCRYPTED"))return C=a(i=d.getDecryptedKeyHex(t,e),0,[1],"02"),k=a(i,0,[2],"02"),S=a(i,0,[3],"02"),P=a(i,0,[4],"02"),_=a(i,0,[5],"02"),(O=new l).setPrivate(new T(C,16),new T(k,16),new T(S,16),new T(P,16),new T(_,16)),O;if(-1!=t.indexOf("-END ENCRYPTED PRIVATE KEY-"))return d.getKeyFromEncryptedPKCS8PEM(t,e);throw"not supported argument"},jt.generateKeypair=function(t,e){if("RSA"==t){var n=e;(o=new mt).generate(n,"10001"),o.isPrivate=!0,o.isPublic=!0;var i=new mt,r=o.n.toString(16),a=o.e.toString(16);return i.setPublic(r,a),i.isPrivate=!1,i.isPublic=!0,(s={}).prvKeyObj=o,s.pubKeyObj=i,s}if("EC"==t){var o,s,l=e,c=new yt.crypto.ECDSA({curve:l}).generateKeyPairHex();return(o=new yt.crypto.ECDSA({curve:l})).setPublicKeyHex(c.ecpubhex),o.setPrivateKeyHex(c.ecprvhex),o.isPrivate=!0,o.isPublic=!1,(i=new yt.crypto.ECDSA({curve:l})).setPublicKeyHex(c.ecpubhex),i.isPrivate=!1,i.isPublic=!0,(s={}).prvKeyObj=o,s.pubKeyObj=i,s}throw"unknown algorithm: "+t},jt.getPEM=function(t,e,n,i,r,a){var o=yt.asn1,s=o.DERObjectIdentifier,l=o.DERInteger,c=o.ASN1Util.newObject,h=yt.crypto,d=h.DSA,u=h.ECDSA,m=mt;function p(t){return c({seq:[{int:0},{int:{bigint:t.n}},{int:t.e},{int:{bigint:t.d}},{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.dmp1}},{int:{bigint:t.dmq1}},{int:{bigint:t.coeff}}]})}function g(t){return c({seq:[{int:1},{octstr:{hex:t.prvKeyHex}},{tag:["a0",!0,{oid:{name:t.curveName}}]},{tag:["a1",!0,{bitstr:{hex:"00"+t.pubKeyHex}}]}]})}function f(t){return c({seq:[{int:0},{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.g}},{int:{bigint:t.y}},{int:{bigint:t.x}}]})}if((void 0!==m&&t instanceof m||void 0!==d&&t instanceof d||void 0!==u&&t instanceof u)&&1==t.isPublic&&(void 0===e||"PKCS8PUB"==e))return Tt(w=new(0,o.x509.SubjectPublicKeyInfo)(t).getEncodedHex(),"PUBLIC KEY");if("PKCS1PRV"==e&&void 0!==m&&t instanceof m&&(void 0===n||null==n)&&1==t.isPrivate)return Tt(w=p(t).getEncodedHex(),"RSA PRIVATE KEY");if("PKCS1PRV"==e&&void 0!==u&&t instanceof u&&(void 0===n||null==n)&&1==t.isPrivate){var b=new s({name:t.curveName}).getEncodedHex(),y=g(t).getEncodedHex(),v="";return(v+=Tt(b,"EC PARAMETERS"))+Tt(y,"EC PRIVATE KEY")}if("PKCS1PRV"==e&&void 0!==d&&t instanceof d&&(void 0===n||null==n)&&1==t.isPrivate)return Tt(w=f(t).getEncodedHex(),"DSA PRIVATE KEY");if("PKCS5PRV"==e&&void 0!==m&&t instanceof m&&void 0!==n&&null!=n&&1==t.isPrivate){var w=p(t).getEncodedHex();return void 0===i&&(i="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("RSA",w,n,i,a)}if("PKCS5PRV"==e&&void 0!==u&&t instanceof u&&void 0!==n&&null!=n&&1==t.isPrivate)return w=g(t).getEncodedHex(),void 0===i&&(i="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("EC",w,n,i,a);if("PKCS5PRV"==e&&void 0!==d&&t instanceof d&&void 0!==n&&null!=n&&1==t.isPrivate)return w=f(t).getEncodedHex(),void 0===i&&(i="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("DSA",w,n,i,a);var x=function(t,e){var n=C(t,e);return new c({seq:[{seq:[{oid:{name:"pkcs5PBES2"}},{seq:[{seq:[{oid:{name:"pkcs5PBKDF2"}},{seq:[{octstr:{hex:n.pbkdf2Salt}},{int:n.pbkdf2Iter}]}]},{seq:[{oid:{name:"des-EDE3-CBC"}},{octstr:{hex:n.encryptionSchemeIV}}]}]}]},{octstr:{hex:n.ciphertext}}]}).getEncodedHex()},C=function(t,e){var n=M.lib.WordArray.random(8),i=M.lib.WordArray.random(8),r=M.PBKDF2(e,n,{keySize:6,iterations:100}),a=M.enc.Hex.parse(t),o=M.TripleDES.encrypt(a,r,{iv:i})+"",s={};return s.ciphertext=o,s.pbkdf2Salt=M.enc.Hex.stringify(n),s.pbkdf2Iter=100,s.encryptionSchemeAlg="DES-EDE3-CBC",s.encryptionSchemeIV=M.enc.Hex.stringify(i),s};if("PKCS8PRV"==e&&null!=m&&t instanceof m&&1==t.isPrivate){var k=p(t).getEncodedHex();return w=c({seq:[{int:0},{seq:[{oid:{name:"rsaEncryption"}},{null:!0}]},{octstr:{hex:k}}]}).getEncodedHex(),void 0===n||null==n?Tt(w,"PRIVATE KEY"):Tt(y=x(w,n),"ENCRYPTED PRIVATE KEY")}if("PKCS8PRV"==e&&void 0!==u&&t instanceof u&&1==t.isPrivate)return k=new c({seq:[{int:1},{octstr:{hex:t.prvKeyHex}},{tag:["a1",!0,{bitstr:{hex:"00"+t.pubKeyHex}}]}]}).getEncodedHex(),w=c({seq:[{int:0},{seq:[{oid:{name:"ecPublicKey"}},{oid:{name:t.curveName}}]},{octstr:{hex:k}}]}).getEncodedHex(),void 0===n||null==n?Tt(w,"PRIVATE KEY"):Tt(y=x(w,n),"ENCRYPTED PRIVATE KEY");if("PKCS8PRV"==e&&void 0!==d&&t instanceof d&&1==t.isPrivate)return k=new l({bigint:t.x}).getEncodedHex(),w=c({seq:[{int:0},{seq:[{oid:{name:"dsa"}},{seq:[{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.g}}]}]},{octstr:{hex:k}}]}).getEncodedHex(),void 0===n||null==n?Tt(w,"PRIVATE KEY"):Tt(y=x(w,n),"ENCRYPTED PRIVATE KEY");throw"unsupported object nor format"},jt.getKeyFromCSRPEM=function(t){var e=It(t,"CERTIFICATE REQUEST");return jt.getKeyFromCSRHex(e)},jt.getKeyFromCSRHex=function(t){var e=jt.parseCSRHex(t);return jt.getKey(e.p8pubkeyhex,null,"pkcs8pub")},jt.parseCSRHex=function(t){var e=xt.getChildIdx,n=xt.getTLV,i={},r=t;if("30"!=r.substr(0,2))throw"malformed CSR(code:001)";var a=e(r,0);if(a.length<1)throw"malformed CSR(code:002)";if("30"!=r.substr(a[0],2))throw"malformed CSR(code:003)";var o=e(r,a[0]);if(o.length<3)throw"malformed CSR(code:004)";return i.p8pubkeyhex=n(r,o[2]),i},jt.getJWKFromKey=function(t){var e={};if(t instanceof mt&&t.isPrivate)return e.kty="RSA",e.n=_t(t.n.toString(16)),e.e=_t(t.e.toString(16)),e.d=_t(t.d.toString(16)),e.p=_t(t.p.toString(16)),e.q=_t(t.q.toString(16)),e.dp=_t(t.dmp1.toString(16)),e.dq=_t(t.dmq1.toString(16)),e.qi=_t(t.coeff.toString(16)),e;if(t instanceof mt&&t.isPublic)return e.kty="RSA",e.n=_t(t.n.toString(16)),e.e=_t(t.e.toString(16)),e;if(t instanceof yt.crypto.ECDSA&&t.isPrivate){if("P-256"!==(i=t.getShortNISTPCurveName())&&"P-384"!==i)throw"unsupported curve name for JWT: "+i;var n=t.getPublicKeyXYHex();return e.kty="EC",e.crv=i,e.x=_t(n.x),e.y=_t(n.y),e.d=_t(t.prvKeyHex),e}if(t instanceof yt.crypto.ECDSA&&t.isPublic){var i;if("P-256"!==(i=t.getShortNISTPCurveName())&&"P-384"!==i)throw"unsupported curve name for JWT: "+i;return n=t.getPublicKeyXYHex(),e.kty="EC",e.crv=i,e.x=_t(n.x),e.y=_t(n.y),e}throw"not supported key object"},mt.getPosArrayOfChildrenFromHex=function(t){return xt.getChildIdx(t,0)},mt.getHexValueArrayOfChildrenFromHex=function(t){var e,n=xt.getV,i=n(t,(e=mt.getPosArrayOfChildrenFromHex(t))[0]),r=n(t,e[1]),a=n(t,e[2]),o=n(t,e[3]),s=n(t,e[4]),l=n(t,e[5]),c=n(t,e[6]),h=n(t,e[7]),d=n(t,e[8]);return(e=new Array).push(i,r,a,o,s,l,c,h,d),e},mt.prototype.readPrivateKeyFromPEMString=function(t){var e=It(t),n=mt.getHexValueArrayOfChildrenFromHex(e);this.setPrivateEx(n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8])},mt.prototype.readPKCS5PrvKeyHex=function(t){var e=mt.getHexValueArrayOfChildrenFromHex(t);this.setPrivateEx(e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8])},mt.prototype.readPKCS8PrvKeyHex=function(t){var e,n,i,r,a,o,s,l,c=xt.getVbyList;if(!1===xt.isASN1HEX(t))throw"not ASN.1 hex string";try{e=c(t,0,[2,0,1],"02"),n=c(t,0,[2,0,2],"02"),i=c(t,0,[2,0,3],"02"),r=c(t,0,[2,0,4],"02"),a=c(t,0,[2,0,5],"02"),o=c(t,0,[2,0,6],"02"),s=c(t,0,[2,0,7],"02"),l=c(t,0,[2,0,8],"02")}catch(t){throw"malformed PKCS#8 plain RSA private key"}this.setPrivateEx(e,n,i,r,a,o,s,l)},mt.prototype.readPKCS5PubKeyHex=function(t){var e=xt,n=e.getV;if(!1===e.isASN1HEX(t))throw"keyHex is not ASN.1 hex string";var i=e.getChildIdx(t,0);if(2!==i.length||"02"!==t.substr(i[0],2)||"02"!==t.substr(i[1],2))throw"wrong hex for PKCS#5 public key";var r=n(t,i[0]),a=n(t,i[1]);this.setPublic(r,a)},mt.prototype.readPKCS8PubKeyHex=function(t){var e=xt;if(!1===e.isASN1HEX(t))throw"not ASN.1 hex string";if("06092a864886f70d010101"!==e.getTLVbyList(t,0,[0,0]))throw"not PKCS8 RSA public key";var n=e.getTLVbyList(t,0,[1,0]);this.readPKCS5PubKeyHex(n)},mt.prototype.readCertPubKeyHex=function(t,e){var n,i;(n=new Jt).readCertHex(t),i=n.getPublicKeyHex(),this.readPKCS8PubKeyHex(i)};var Xt=new RegExp("[^0-9a-f]","gi");function qt(t,e){for(var n="",i=e/4-t.length,r=0;r<i;r++)n+="0";return n+t}function $t(t,e,n){for(var i="",r=0;i.length<e;)i+=Ot(n(At(t+String.fromCharCode.apply(String,[(4278190080&r)>>24,(16711680&r)>>16,(65280&r)>>8,255&r])))),r+=1;return i}function Kt(t){for(var e in yt.crypto.Util.DIGESTINFOHEAD){var n=yt.crypto.Util.DIGESTINFOHEAD[e],i=n.length;if(t.substring(0,i)==n)return[e,t.substring(i)]}return[]}function Jt(){var t=xt,e=t.getChildIdx,n=t.getV,i=t.getTLV,r=t.getVbyList,a=t.getTLVbyList,o=t.getIdxbyList,s=t.getVidx,l=t.oidname,c=Jt,h=It;this.hex=null,this.version=0,this.foffset=0,this.aExtInfo=null,this.getVersion=function(){return null===this.hex||0!==this.version?this.version:"a003020102"!==a(this.hex,0,[0,0])?(this.version=1,this.foffset=-1,1):(this.version=3,3)},this.getSerialNumberHex=function(){return r(this.hex,0,[0,1+this.foffset],"02")},this.getSignatureAlgorithmField=function(){return l(r(this.hex,0,[0,2+this.foffset,0],"06"))},this.getIssuerHex=function(){return a(this.hex,0,[0,3+this.foffset],"30")},this.getIssuerString=function(){return c.hex2dn(this.getIssuerHex())},this.getSubjectHex=function(){return a(this.hex,0,[0,5+this.foffset],"30")},this.getSubjectString=function(){return c.hex2dn(this.getSubjectHex())},this.getNotBefore=function(){var t=r(this.hex,0,[0,4+this.foffset,0]);return t=t.replace(/(..)/g,"%$1"),decodeURIComponent(t)},this.getNotAfter=function(){var t=r(this.hex,0,[0,4+this.foffset,1]);return t=t.replace(/(..)/g,"%$1"),decodeURIComponent(t)},this.getPublicKeyHex=function(){return t.getTLVbyList(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyIdx=function(){return o(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyContentIdx=function(){var t=this.getPublicKeyIdx();return o(this.hex,t,[1,0],"30")},this.getPublicKey=function(){return jt.getKey(this.getPublicKeyHex(),null,"pkcs8pub")},this.getSignatureAlgorithmName=function(){return l(r(this.hex,0,[1,0],"06"))},this.getSignatureValueHex=function(){return r(this.hex,0,[2],"03",!0)},this.verifySignature=function(t){var e=this.getSignatureAlgorithmName(),n=this.getSignatureValueHex(),i=a(this.hex,0,[0],"30"),r=new yt.crypto.Signature({alg:e});return r.init(t),r.updateHex(i),r.verify(n)},this.parseExt=function(){if(3!==this.version)return-1;var n=o(this.hex,0,[0,7,0],"30"),i=e(this.hex,n);this.aExtInfo=new Array;for(var a=0;a<i.length;a++){var l={critical:!1},c=0;3===e(this.hex,i[a]).length&&(l.critical=!0,c=1),l.oid=t.hextooidstr(r(this.hex,i[a],[0],"06"));var h=o(this.hex,i[a],[1+c]);l.vidx=s(this.hex,h),this.aExtInfo.push(l)}},this.getExtInfo=function(t){var e=this.aExtInfo,n=t;if(t.match(/^[0-9.]+$/)||(n=yt.asn1.x509.OID.name2oid(t)),""!==n)for(var i=0;i<e.length;i++)if(e[i].oid===n)return e[i]},this.getExtBasicConstraints=function(){var t=this.getExtInfo("basicConstraints");if(void 0===t)return t;var e=n(this.hex,t.vidx);if(""===e)return{};if("0101ff"===e)return{cA:!0};if("0101ff02"===e.substr(0,8)){var i=n(e,6);return{cA:!0,pathLen:parseInt(i,16)}}throw"basicConstraints parse error"},this.getExtKeyUsageBin=function(){var t=this.getExtInfo("keyUsage");if(void 0===t)return"";var e=n(this.hex,t.vidx);if(e.length%2!=0||e.length<=2)throw"malformed key usage value";var i=parseInt(e.substr(0,2)),r=parseInt(e.substr(2),16).toString(2);return r.substr(0,r.length-i)},this.getExtKeyUsageString=function(){for(var t=this.getExtKeyUsageBin(),e=new Array,n=0;n<t.length;n++)"1"==t.substr(n,1)&&e.push(Jt.KEYUSAGE_NAME[n]);return e.join(",")},this.getExtSubjectKeyIdentifier=function(){var t=this.getExtInfo("subjectKeyIdentifier");return void 0===t?t:n(this.hex,t.vidx)},this.getExtAuthorityKeyIdentifier=function(){var t=this.getExtInfo("authorityKeyIdentifier");if(void 0===t)return t;for(var r={},a=i(this.hex,t.vidx),o=e(a,0),s=0;s<o.length;s++)"80"===a.substr(o[s],2)&&(r.kid=n(a,o[s]));return r},this.getExtExtKeyUsageName=function(){var t=this.getExtInfo("extKeyUsage");if(void 0===t)return t;var r=new Array,a=i(this.hex,t.vidx);if(""===a)return r;for(var o=e(a,0),s=0;s<o.length;s++)r.push(l(n(a,o[s])));return r},this.getExtSubjectAltName=function(){for(var t=this.getExtSubjectAltName2(),e=new Array,n=0;n<t.length;n++)"DNS"===t[n][0]&&e.push(t[n][1]);return e},this.getExtSubjectAltName2=function(){var t,r,a,o=this.getExtInfo("subjectAltName");if(void 0===o)return o;for(var s=new Array,l=i(this.hex,o.vidx),c=e(l,0),h=0;h<c.length;h++)a=l.substr(c[h],2),t=n(l,c[h]),"81"===a&&(r=Et(t),s.push(["MAIL",r])),"82"===a&&(r=Et(t),s.push(["DNS",r])),"84"===a&&(r=Jt.hex2dn(t,0),s.push(["DN",r])),"86"===a&&(r=Et(t),s.push(["URI",r])),"87"===a&&(r=Rt(t),s.push(["IP",r]));return s},this.getExtCRLDistributionPointsURI=function(){var t=this.getExtInfo("cRLDistributionPoints");if(void 0===t)return t;for(var n=new Array,i=e(this.hex,t.vidx),a=0;a<i.length;a++)try{var o=Et(r(this.hex,i[a],[0,0,0],"86"));n.push(o)}catch(t){}return n},this.getExtAIAInfo=function(){var t=this.getExtInfo("authorityInfoAccess");if(void 0===t)return t;for(var n={ocsp:[],caissuer:[]},i=e(this.hex,t.vidx),a=0;a<i.length;a++){var o=r(this.hex,i[a],[0],"06"),s=r(this.hex,i[a],[1],"86");"2b06010505073001"===o&&n.ocsp.push(Et(s)),"2b06010505073002"===o&&n.caissuer.push(Et(s))}return n},this.getExtCertificatePolicies=function(){var t=this.getExtInfo("certificatePolicies");if(void 0===t)return t;for(var a=i(this.hex,t.vidx),o=[],s=e(a,0),c=0;c<s.length;c++){var h={},d=e(a,s[c]);if(h.id=l(n(a,d[0])),2===d.length)for(var u=e(a,d[1]),m=0;m<u.length;m++){var p=r(a,u[m],[0],"06");"2b06010505070201"===p?h.cps=Et(r(a,u[m],[1])):"2b06010505070202"===p&&(h.unotice=Et(r(a,u[m],[1,0])))}o.push(h)}return o},this.readCertPEM=function(t){this.readCertHex(h(t))},this.readCertHex=function(t){this.hex=t,this.getVersion();try{o(this.hex,0,[0,7],"a3"),this.parseExt()}catch(t){}},this.getInfo=function(){var t,e,n;if(t="Basic Fields\n",t+=" serial number: "+this.getSerialNumberHex()+"\n",t+=" signature algorithm: "+this.getSignatureAlgorithmField()+"\n",t+=" issuer: "+this.getIssuerString()+"\n",t+=" notBefore: "+this.getNotBefore()+"\n",t+=" notAfter: "+this.getNotAfter()+"\n",t+=" subject: "+this.getSubjectString()+"\n",t+=" subject public key info: \n",t+=" key algorithm: "+(e=this.getPublicKey()).type+"\n","RSA"===e.type&&(t+=" n="+Bt(e.n.toString(16)).substr(0,16)+"...\n",t+=" e="+Bt(e.e.toString(16))+"\n"),null!=(n=this.aExtInfo)){t+="X509v3 Extensions:\n";for(var i=0;i<n.length;i++){var r=n[i],a=yt.asn1.x509.OID.oid2name(r.oid);""===a&&(a=r.oid);var o="";if(!0===r.critical&&(o="CRITICAL"),t+=" "+a+" "+o+":\n","basicConstraints"===a){var s=this.getExtBasicConstraints();void 0===s.cA?t+=" {}\n":(t+=" cA=true",void 0!==s.pathLen&&(t+=", pathLen="+s.pathLen),t+="\n")}else if("keyUsage"===a)t+=" "+this.getExtKeyUsageString()+"\n";else if("subjectKeyIdentifier"===a)t+=" "+this.getExtSubjectKeyIdentifier()+"\n";else if("authorityKeyIdentifier"===a){var l=this.getExtAuthorityKeyIdentifier();void 0!==l.kid&&(t+=" kid="+l.kid+"\n")}else if("extKeyUsage"===a)t+=" "+this.getExtExtKeyUsageName().join(", ")+"\n";else if("subjectAltName"===a)t+=" "+this.getExtSubjectAltName2()+"\n";else if("cRLDistributionPoints"===a)t+=" "+this.getExtCRLDistributionPointsURI()+"\n";else if("authorityInfoAccess"===a){var c=this.getExtAIAInfo();void 0!==c.ocsp&&(t+=" ocsp: "+c.ocsp.join(",")+"\n"),void 0!==c.caissuer&&(t+=" caissuer: "+c.caissuer.join(",")+"\n")}else if("certificatePolicies"===a)for(var h=this.getExtCertificatePolicies(),d=0;d<h.length;d++)void 0!==h[d].id&&(t+=" policy oid: "+h[d].id+"\n"),void 0!==h[d].cps&&(t+=" cps: "+h[d].cps+"\n")}}return(t+="signature algorithm: "+this.getSignatureAlgorithmName()+"\n")+"signature: "+this.getSignatureValueHex().substr(0,16)+"...\n"}}mt.prototype.sign=function(t,e){var n,i=(n=t,yt.crypto.Util.hashString(n,e));return this.signWithMessageHash(i,e)},mt.prototype.signWithMessageHash=function(t,e){var n=dt(yt.crypto.Util.getPaddedDigestInfoHex(t,e,this.n.bitLength()),16);return qt(this.doPrivate(n).toString(16),this.n.bitLength())},mt.prototype.signPSS=function(t,e,n){var i,r=(i=At(t),yt.crypto.Util.hashHex(i,e));return void 0===n&&(n=-1),this.signWithMessageHashPSS(r,e,n)},mt.prototype.signWithMessageHashPSS=function(t,e,n){var i,r=Ot(t),a=r.length,o=this.n.bitLength()-1,s=Math.ceil(o/8),l=function(t){return yt.crypto.Util.hashHex(t,e)};if(-1===n||void 0===n)n=a;else if(-2===n)n=s-a-2;else if(n<-2)throw"invalid salt length";if(s<a+n+2)throw"data too long";var c="";n>0&&(c=new Array(n),(new ht).nextBytes(c),c=String.fromCharCode.apply(String,c));var h=Ot(l(At("\0\0\0\0\0\0\0\0"+r+c))),d=[];for(i=0;i<s-n-a-2;i+=1)d[i]=0;var u=String.fromCharCode.apply(String,d)+""+c,m=$t(h,u.length,l),p=[];for(i=0;i<u.length;i+=1)p[i]=u.charCodeAt(i)^m.charCodeAt(i);for(p[0]&=~(65280>>8*s-o&255),i=0;i<a;i++)p.push(h.charCodeAt(i));return p.push(188),qt(this.doPrivate(new T(p)).toString(16),this.n.bitLength())},mt.prototype.verify=function(t,e){var n=dt(e=(e=e.replace(Xt,"")).replace(/[ \n]+/g,""),16);if(n.bitLength()>this.n.bitLength())return 0;var i=Kt(this.doPublic(n).toString(16).replace(/^1f+00/,""));if(0==i.length)return!1;var r,a=i[0];return i[1]==(r=t,yt.crypto.Util.hashString(r,a))},mt.prototype.verifyWithMessageHash=function(t,e){var n=dt(e=(e=e.replace(Xt,"")).replace(/[ \n]+/g,""),16);if(n.bitLength()>this.n.bitLength())return 0;var i=Kt(this.doPublic(n).toString(16).replace(/^1f+00/,""));return 0!=i.length&&i[1]==t},mt.prototype.verifyPSS=function(t,e,n,i){var r,a=(r=At(t),yt.crypto.Util.hashHex(r,n));return void 0===i&&(i=-1),this.verifyWithMessageHashPSS(a,e,n,i)},mt.prototype.verifyWithMessageHashPSS=function(t,e,n,i){var r=new T(e,16);if(r.bitLength()>this.n.bitLength())return!1;var a,o=function(t){return yt.crypto.Util.hashHex(t,n)},s=Ot(t),l=s.length,c=this.n.bitLength()-1,h=Math.ceil(c/8);if(-1===i||void 0===i)i=l;else if(-2===i)i=h-l-2;else if(i<-2)throw"invalid salt length";if(h<l+i+2)throw"data too long";var d=this.doPublic(r).toByteArray();for(a=0;a<d.length;a+=1)d[a]&=255;for(;d.length<h;)d.unshift(0);if(188!==d[h-1])throw"encoded message does not end in 0xbc";var u=(d=String.fromCharCode.apply(String,d)).substr(0,h-l-1),m=d.substr(u.length,l),p=65280>>8*h-c&255;if(0!=(u.charCodeAt(0)&p))throw"bits beyond keysize not zero";var g=$t(m,u.length,o),f=[];for(a=0;a<u.length;a+=1)f[a]=u.charCodeAt(a)^g.charCodeAt(a);f[0]&=~p;var b=h-l-i-2;for(a=0;a<b;a+=1)if(0!==f[a])throw"leftmost octets not zero";if(1!==f[b])throw"0x01 marker not found";return m===Ot(o(At("\0\0\0\0\0\0\0\0"+s+String.fromCharCode.apply(String,f.slice(-i)))))},mt.SALT_LEN_HLEN=-1,mt.SALT_LEN_MAX=-2,mt.SALT_LEN_RECOVER=-2,Jt.hex2dn=function(t,e){if(void 0===e&&(e=0),"30"!==t.substr(e,2))throw"malformed DN";for(var n=new Array,i=xt.getChildIdx(t,e),r=0;r<i.length;r++)n.push(Jt.hex2rdn(t,i[r]));return"/"+(n=n.map((function(t){return t.replace("/","\\/")}))).join("/")},Jt.hex2rdn=function(t,e){if(void 0===e&&(e=0),"31"!==t.substr(e,2))throw"malformed RDN";for(var n=new Array,i=xt.getChildIdx(t,e),r=0;r<i.length;r++)n.push(Jt.hex2attrTypeValue(t,i[r]));return(n=n.map((function(t){return t.replace("+","\\+")}))).join("+")},Jt.hex2attrTypeValue=function(t,e){var n=xt,i=n.getV;if(void 0===e&&(e=0),"30"!==t.substr(e,2))throw"malformed attribute type and value";var r=n.getChildIdx(t,e);2!==r.length||t.substr(r[0],2);var a=i(t,r[0]),o=yt.asn1.ASN1Util.oidHexToInt(a);return yt.asn1.x509.OID.oid2atype(o)+"="+Ot(i(t,r[1]))},Jt.getPublicKeyFromCertHex=function(t){var e=new Jt;return e.readCertHex(t),e.getPublicKey()},Jt.getPublicKeyFromCertPEM=function(t){var e=new Jt;return e.readCertPEM(t),e.getPublicKey()},Jt.getPublicKeyInfoPropOfCertPEM=function(t){var e,n,i=xt.getVbyList,r={algparam:null};return(e=new Jt).readCertPEM(t),n=e.getPublicKeyHex(),r.keyhex=i(n,0,[1],"03").substr(2),r.algoid=i(n,0,[0,0],"06"),"2a8648ce3d0201"===r.algoid&&(r.algparam=i(n,0,[0,1],"06")),r},Jt.KEYUSAGE_NAME=["digitalSignature","nonRepudiation","keyEncipherment","dataEncipherment","keyAgreement","keyCertSign","cRLSign","encipherOnly","decipherOnly"],(void 0===yt||!yt)&&(yt={}),(void 0===yt.jws||!yt.jws)&&(yt.jws={}),yt.jws.JWS=function(){var t=yt.jws.JWS.isSafeJSONString;this.parseJWS=function(e,n){if(void 0===this.parsedJWS||!n&&void 0===this.parsedJWS.sigvalH){var i=e.match(/^([^.]+)\.([^.]+)\.([^.]+)$/);if(null==i)throw"JWS signature is not a form of 'Head.Payload.SigValue'.";var r=i[1],a=i[2],o=i[3],s=r+"."+a;if(this.parsedJWS={},this.parsedJWS.headB64U=r,this.parsedJWS.payloadB64U=a,this.parsedJWS.sigvalB64U=o,this.parsedJWS.si=s,!n){var l=Mt(o),c=dt(l,16);this.parsedJWS.sigvalH=l,this.parsedJWS.sigvalBI=c}var h=wt(r),d=wt(a);if(this.parsedJWS.headS=h,this.parsedJWS.payloadS=d,!t(h,this.parsedJWS,"headP"))throw"malformed JSON string for JWS Head: "+h}}},yt.jws.JWS.sign=function(t,e,n,i,r){var a,o,s,l=yt.jws.JWS,c=l.readSafeJSONString,h=l.isSafeJSONString,d=yt.crypto,u=d.Mac,m=d.Signature,p=JSON;if("string"!=typeof e&&"object"!=typeof e)throw"spHeader must be JSON string or object: "+e;if("object"==typeof e&&(a=p.stringify(o=e)),"string"==typeof e){if(!h(a=e))throw"JWS Head is not safe JSON string: "+a;o=c(a)}if(s=n,"object"==typeof n&&(s=p.stringify(n)),(""==t||null==t)&&void 0!==o.alg&&(t=o.alg),""!=t&&null!=t&&void 0===o.alg&&(o.alg=t,a=p.stringify(o)),t!==o.alg)throw"alg and sHeader.alg doesn't match: "+t+"!="+o.alg;var g=null;if(void 0===l.jwsalg2sigalg[t])throw"unsupported alg name: "+t;g=l.jwsalg2sigalg[t];var f=vt(a)+"."+vt(s),b="";if("Hmac"==g.substr(0,4)){if(void 0===i)throw"mac key shall be specified for HS* alg";var y=new u({alg:g,prov:"cryptojs",pass:i});y.updateString(f),b=y.doFinal()}else if(-1!=g.indexOf("withECDSA"))(v=new m({alg:g})).init(i,r),v.updateString(f),hASN1Sig=v.sign(),b=yt.crypto.ECDSA.asn1SigToConcatSig(hASN1Sig);else if("none"!=g){var v;(v=new m({alg:g})).init(i,r),v.updateString(f),b=v.sign()}return f+"."+_t(b)},yt.jws.JWS.verify=function(t,e,n){var i,r=yt.jws.JWS,a=r.readSafeJSONString,o=yt.crypto,s=o.ECDSA,l=o.Mac,c=o.Signature;i=mt;var h=t.split(".");if(3!==h.length)return!1;var d,u=h[0]+"."+h[1],m=Mt(h[2]),p=a(wt(h[0])),g=null;if(void 0===p.alg)throw"algorithm not specified in header";if(d=(g=p.alg).substr(0,2),null!=n&&"[object Array]"===Object.prototype.toString.call(n)&&n.length>0&&-1==(":"+n.join(":")+":").indexOf(":"+g+":"))throw"algorithm '"+g+"' not accepted in the list";if("none"!=g&&null===e)throw"key shall be specified to verify.";if("string"==typeof e&&-1!=e.indexOf("-----BEGIN ")&&(e=jt.getKey(e)),!("RS"!=d&&"PS"!=d||e instanceof i))throw"key shall be a RSAKey obj for RS* and PS* algs";if("ES"==d&&!(e instanceof s))throw"key shall be a ECDSA obj for ES* algs";var f=null;if(void 0===r.jwsalg2sigalg[p.alg])throw"unsupported alg name: "+g;if("none"==(f=r.jwsalg2sigalg[g]))throw"not supported";if("Hmac"==f.substr(0,4)){if(void 0===e)throw"hexadecimal key shall be specified for HMAC";var b=new l({alg:f,pass:e});return b.updateString(u),m==b.doFinal()}if(-1!=f.indexOf("withECDSA")){var y,v=null;try{v=s.concatSigToASN1Sig(m)}catch(t){return!1}return(y=new c({alg:f})).init(e),y.updateString(u),y.verify(v)}return(y=new c({alg:f})).init(e),y.updateString(u),y.verify(m)},yt.jws.JWS.parse=function(t){var e,n,i=t.split("."),r={};if(2!=i.length&&3!=i.length)throw"malformed sJWS: wrong number of '.' splitted elements";return e=i[1],3==i.length&&(n=i[2]),r.headerObj=yt.jws.JWS.readSafeJSONString(wt(i[0])),r.payloadObj=yt.jws.JWS.readSafeJSONString(wt(e)),r.headerPP=JSON.stringify(r.headerObj,null," "),r.payloadPP=null==r.payloadObj?wt(e):JSON.stringify(r.payloadObj,null," "),void 0!==n&&(r.sigHex=Mt(n)),r},yt.jws.JWS.verifyJWT=function(t,e,n){var i=yt.jws,r=i.JWS,a=r.readSafeJSONString,o=r.inArray,s=r.includedArray,l=t.split("."),c=l[0],h=l[1],d=(Mt(l[2]),a(wt(c))),u=a(wt(h));if(void 0===d.alg)return!1;if(void 0===n.alg)throw"acceptField.alg shall be specified";if(!o(d.alg,n.alg)||void 0!==u.iss&&"object"==typeof n.iss&&!o(u.iss,n.iss)||void 0!==u.sub&&"object"==typeof n.sub&&!o(u.sub,n.sub))return!1;if(void 0!==u.aud&&"object"==typeof n.aud)if("string"==typeof u.aud){if(!o(u.aud,n.aud))return!1}else if("object"==typeof u.aud&&!s(u.aud,n.aud))return!1;var m=i.IntDate.getNow();return void 0!==n.verifyAt&&"number"==typeof n.verifyAt&&(m=n.verifyAt),(void 0===n.gracePeriod||"number"!=typeof n.gracePeriod)&&(n.gracePeriod=0),!(void 0!==u.exp&&"number"==typeof u.exp&&u.exp+n.gracePeriod<m||void 0!==u.nbf&&"number"==typeof u.nbf&&m<u.nbf-n.gracePeriod||void 0!==u.iat&&"number"==typeof u.iat&&m<u.iat-n.gracePeriod||void 0!==u.jti&&void 0!==n.jti&&u.jti!==n.jti||!r.verify(t,e,n.alg))},yt.jws.JWS.includedArray=function(t,e){var n=yt.jws.JWS.inArray;if(null===t||"object"!=typeof t||"number"!=typeof t.length)return!1;for(var i=0;i<t.length;i++)if(!n(t[i],e))return!1;return!0},yt.jws.JWS.inArray=function(t,e){if(null===e||"object"!=typeof e||"number"!=typeof e.length)return!1;for(var n=0;n<e.length;n++)if(e[n]==t)return!0;return!1},yt.jws.JWS.jwsalg2sigalg={HS256:"HmacSHA256",HS384:"HmacSHA384",HS512:"HmacSHA512",RS256:"SHA256withRSA",RS384:"SHA384withRSA",RS512:"SHA512withRSA",ES256:"SHA256withECDSA",ES384:"SHA384withECDSA",PS256:"SHA256withRSAandMGF1",PS384:"SHA384withRSAandMGF1",PS512:"SHA512withRSAandMGF1",none:"none"},yt.jws.JWS.isSafeJSONString=function(t,e,n){var i=null;try{return"object"!=typeof(i=bt(t))||i.constructor===Array?0:(e&&(e[n]=i),1)}catch(t){return 0}},yt.jws.JWS.readSafeJSONString=function(t){var e=null;try{return"object"!=typeof(e=bt(t))||e.constructor===Array?null:e}catch(t){return null}},yt.jws.JWS.getEncodedSignatureValueFromJWS=function(t){var e=t.match(/^[^.]+\.[^.]+\.([^.]+)$/);if(null==e)throw"JWS signature is not a form of 'Head.Payload.SigValue'.";return e[1]},yt.jws.JWS.getJWKthumbprint=function(t){if("RSA"!==t.kty&&"EC"!==t.kty&&"oct"!==t.kty)throw"unsupported algorithm for JWK Thumprint";var e="{";if("RSA"===t.kty){if("string"!=typeof t.n||"string"!=typeof t.e)throw"wrong n and e value for RSA key";e+='"e":"'+t.e+'",',e+='"kty":"'+t.kty+'",',e+='"n":"'+t.n+'"}'}else if("EC"===t.kty){if("string"!=typeof t.crv||"string"!=typeof t.x||"string"!=typeof t.y)throw"wrong crv, x and y value for EC key";e+='"crv":"'+t.crv+'",',e+='"kty":"'+t.kty+'",',e+='"x":"'+t.x+'",',e+='"y":"'+t.y+'"}'}else if("oct"===t.kty){if("string"!=typeof t.k)throw"wrong k value for oct(symmetric) key";e+='"kty":"'+t.kty+'",',e+='"k":"'+t.k+'"}'}var n=At(e);return _t(yt.crypto.Util.hashHex(n,"sha256"))},yt.jws.IntDate={},yt.jws.IntDate.get=function(t){var e=yt.jws.IntDate,n=e.getNow,i=e.getZulu;if("now"==t)return n();if("now + 1hour"==t)return n()+3600;if("now + 1day"==t)return n()+86400;if("now + 1month"==t)return n()+2592e3;if("now + 1year"==t)return n()+31536e3;if(t.match(/Z$/))return i(t);if(t.match(/^[0-9]+$/))return parseInt(t);throw"unsupported format: "+t},yt.jws.IntDate.getZulu=function(t){return~~(function(t){var e,n,i,r,a,o,s,l,c,h,d;if(d=t.match(/^(\d{2}|\d{4})(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)(|\.\d+)Z$/))return l=d[1],e=parseInt(l),2===l.length&&(50<=e&&e<100?e=1900+e:0<=e&&e<50&&(e=2e3+e)),n=parseInt(d[2])-1,i=parseInt(d[3]),r=parseInt(d[4]),a=parseInt(d[5]),o=parseInt(d[6]),s=0,""!==(c=d[7])&&(h=(c.substr(1)+"00").substr(0,3),s=parseInt(h)),Date.UTC(e,n,i,r,a,o,s);throw"unsupported zulu format: "+t}(t)/1e3)},yt.jws.IntDate.getNow=function(){return~~(new Date/1e3)},yt.jws.IntDate.intDate2UTCString=function(t){return new Date(1e3*t).toUTCString()},yt.jws.IntDate.intDate2Zulu=function(t){var e=new Date(1e3*t);return("0000"+e.getUTCFullYear()).slice(-4)+("00"+(e.getUTCMonth()+1)).slice(-2)+("00"+e.getUTCDate()).slice(-2)+("00"+e.getUTCHours()).slice(-2)+("00"+e.getUTCMinutes()).slice(-2)+("00"+e.getUTCSeconds()).slice(-2)+"Z"},e.KZ=jt,e.MS=_t,e.fs=yt},940:function(t){t.exports=function(){"use strict";var t=function(){return t=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},t.apply(this,arguments)};function e(){var t,e,n=((t=document.createElement("div")).style.cssText="position: fixed; top: 0; height: 100vh; pointer-events: none;",document.documentElement.insertBefore(t,document.documentElement.firstChild),t),i=window.innerHeight,r=n.offsetHeight,a=r-i;return e=n,document.documentElement.removeChild(e),{vh:r,windowHeight:i,offset:a,isNeeded:0!==a,value:0}}function n(){}function i(){var t=e();return t.value=t.offset,t}var r=Object.freeze({noop:n,computeDifference:i,redefineVhUnit:function(){var t=e();return t.value=.01*t.windowHeight,t}});function a(t){return"string"==typeof t&&t.length>0}var o=Object.freeze({cssVarName:"vh-offset",redefineVh:!1,method:i,force:!1,bind:!0,updateOnTouch:!1,onUpdate:n}),s=!1,l=[];try{var c=Object.defineProperty({},"passive",{get:function(){s=!0}});window.addEventListener("test",c,c),window.removeEventListener("test",c,c)}catch(t){s=!1}function h(t,e){l.push({eventName:t,callback:e}),window.addEventListener(t,e,!!s&&{passive:!0})}function d(){l.forEach((function(t){window.removeEventListener(t.eventName,t.callback)})),l=[]}function u(t,e){document.documentElement.style.setProperty("--"+t,e.value+"px")}function m(e,n){return t({},e,{unbind:d,recompute:n.method})}return function(e){var i=Object.freeze(function(e){if(a(e))return t({},o,{cssVarName:e});if("object"!=typeof e)return o;var i,s={force:!0===e.force,bind:!1!==e.bind,updateOnTouch:!0===e.updateOnTouch,onUpdate:(i=e.onUpdate,"function"==typeof i?e.onUpdate:n)},l=!0===e.redefineVh;return s.method=r[l?"redefineVhUnit":"computeDifference"],s.cssVarName=a(e.cssVarName)?e.cssVarName:l?"vh":o.cssVarName,s}(e)),s=m(i.method(),i);if(!s.isNeeded&&!i.force||(u(i.cssVarName,s),i.onUpdate(s),!i.bind))return s;function l(){window.requestAnimationFrame((function(){var t=i.method();u(i.cssVarName,t),i.onUpdate(m(t,i))}))}return s.unbind(),h("orientationchange",l),i.updateOnTouch&&h("touchmove",l),s}}()},161:t=>{"use strict";t.exports=JSON.parse('{"unknownCommand":"Unknown command","getHelp":"Please see help documentation","command":"Command","firstPoint":"Specify the first point","nextPoint":"Specify the next point","lineCmdDesc":"Specify the next point or [Angle(A)/Length(L)/Undo(U)]","angle":"Angle(A)","length":"Length(L)","giveUp":"Undo(U)","set":"Set(S)","manyTimes":"Multiple(M)","locatingPoint":"Locating point","oppositeCorner":"Specify opposite corner","locatingPointS":"locating point or [Setting(S)]","locatingPointSM":"locating point or [Setting(S)/Multiple(M)]","setAngle":"set angle","setLength":"set length","errMsgCommon":"Please enter a keyword or point!","errMsgAngle":"Please enter a valid value angle or a point","errMsgLength":"Please enter a valid value length or a point","errMsgLineFirst":"Please enter a point","errPolyLine":"All PolyLine have been revoked","pointStyle":"point style","pointSize":"point size(S)","relativeSize":"Set size relative to screen(R)","absoluteSize":"Set size relative to absolute unit(A)","cmdWin":"Cmd window","classic":"ZWCAD Classic","draft":"2D Drafting & Annotation","closeGrid":"Grid off","openGrid":"Grid on","gridOn":"[Open(ON)/Aspect(A)]","gridOnE":"[Open(ON)/Equal(E)]","gridOffE":"[Close(OFF)/Equal(E)]","gridOff":"[Close(OFF)/Aspect(A)]","gridAttribute":"Attributes(A)","gridSpace":"Grid spacing","gridSnap":"<Grid spacing(Synchronous capture)>","horizonSpace":"Horizontal spacing","verticalSpace":"Vertical spacing","KeywordInvalid":"Invalid keyword","gridErrorMsg":"Please enter a keyword or distance","gridSetNextPt":"Please specify the second point to get the distance","escEnterTip":"Press ESC of ENTER to exit","errSelect":"Invalid selection!","notAchieved":"Not implemented yet.","needInt":"Require integer.","zoomTip1":"Specify the corner of the window","zoomTip2":"Enter scale factor (nX or nXP)","zoomTip3":"[ All(A) / Center(C) / Extents(E) ] <real time>","zoomTip4":"Need distance (or numbers X)","zoomTip5":"Specify the center point","zoomTip6":"Please enter a point!","zoomTip7":"Enter scale or height","zoomTip8":"Zoom All","zoomTip9":"Zoom Extents","zoomTip10":"Zoom Center","zoomTip11":"Need keyword.","SwitchTo":"Switch to","revCloud1":"Specify the starting point or[Arc length(A)/Rectangle(R)/Freeform Drawing(F)]","revCloud2":"Guide the crosshair along the cloud path...","revCloud3":"Specify arc length","revCloud4":"Revision cloud line completed","revCloudError":"Please enter a valid value","revCloudUnable":"Unable to create cloud due to small shape.","mldHeadFirst":"Specify leader arrowhead location or [Content first/leader Landing first/Options] <leader arrowHead first>: ","mldContentFirst":"Specify text location or [leader arrowHead first/leader Landing first/Options] <Content first>: ","mldLineFirst":"Specify leader landing location or [leader arrowHead first/Content first/Options] <leader Landing first>: ","mldOptions":"Enter an option [Leader type/leader lAnding/Maxpoints/eXit options] <Leader type>: ","mldLinePosition":"Specify leader landing location: ","mldLeaderType":"Select a leader type [Straight/None] <Straight>: ","mldDogleg":"Use baseline [Yes(Y)/No(N)] <Yes>","mldDoglegDist":"Specify baseline distance","mldMaxNodeNumber":"Maximum node of input lead","mldHeadPosition":"Specify leader arrowhead location: ","textCmd1":"Specify text height","textCmd2":"Specify the starting point of the text","textCmdCentent":"Text Content","textHeightExceededLimit":"Text height exceeds maximum","leader1":"Specify lead start:","mldText":"Enter comment text:","leader3":"Specify lead arrow position or [Content priority(C)/Lead baseline priority(L)/Options(O)] <Lead arrow priority>:","leader4":"Input options [Lead baseline priority(L)/Maximum number of nodes(M)/Exit option(X)] <Lead baseline priority>:","leaderNextPt":"Specify the next point or [Annotation/Format/Undo] <Annotation>: ","leaderText1":"Enter the first line of annotation text or <options>: ","leaderText2":"Enter the next line of annotation text: ","leaderText3":"Enter an option [Arrow/None/STraight] <Exit>: ","needAPoint":"Please input a point! ","plineFirstPoint":"Specify the starting point of polyline: ","plineNextPoint":"Specify the next point or [Arc]: ","pline2d":"Please input a 2D point.","plinePointOrKey":"Please input a 2D point or a keyword.","circleCenterRadius":"Specify the center point of circle or [3P/2P]: ","circleRadius":"Specify circle radius or [Diameter]: ","circleRadiusOnly":"Specify circle radius","circleDiameter":"Specify circle diameter","circlePt1":"Specify the first point on circle: ","circlePt2":"Specify the second point on circle: ","circlePt3":"Specify the third point on circle: ","circleDiameterPt1":"Specify the first endpoint of circle diameter: ","circleDiameterPt2":"Specify the second endpoint of circle diameter: ","positiveNumber":"Value must be positive and non-zero.","invalid":"Invalid","needPoint":"Need point.","nextDtPoint":"Specify the second point to get distance:","rectFirstPt":"Specify the first corner or [Chamfe/Fillet]: ","rectFirstPtOnly":"Specify the first corner: ","rectAnotherPt":"Specify the other corner: ","rectRadius":"Specify the fillet distance to use for all rectangles","rectPtOrValue":"Requires numeric distance or two points.","rectChamferDt1":"Specify the first chamfer distance for all rectangles","rectChamferDt2":"Specify the second chamfer distance for all rectangles","areaFirstPt":"Specify the first point or [Object]<Object>: ","areaObject":"Select object for area calculation: ","areaNextPt":"Specify the next point or [Arc]: ","areaEndPt":"Specify the next point or [Arc/Total]<Total>: ","areaCount":"Area = ","areaLength":"Perimeter = ","wrongArea":"The selected object cannot be used. Please select again。","vpSyncErr":"Viewport information synchronization failed. Cannot regen.","regenFail":"Regen failed。","noSelfIntersecting":"not support for SelfIntersecting entity","areaArcPt2":"[Line]","distMnextPt":"Specify the next point or [Arc/Length/Total]<Total>","distMnextpoint":"Specify the next point or [Arc/Close/Length/Undo/Total]<Total>","totalDistance":"distance = ","angleXY":"Angle in XY plane = ","angleWith":"Angle with XY plane = ","xAdd":"X Increment = ","yAdd":"Y Increment = ","zAdd":"Z Increment = ","sectionLength":"Specify the segment distance: ","distNextPt":"Specify the second point or [Multiple]: ","inputInvalid":"Invalid input.","ptOrKeyword":"Please enter a point or a keyword!","command_directionTop":"Top","command_directionBottom":"Bottom","command_directionLeft":"Left","command_directionRight":"Right","command_directionFront":"Front","command_directionBack":"Back","command_directionSwiso":"Southwest","command_directionSeiso":"Southeast","command_directionNeiso":"Northeast","command_directionNwiso":"Northwest","command_inputOptins":"Enter an option ","command_selectViewport":"Select Viewport of view","command_invalid_keywords":"Invalid keyword","command_directionTip1":"[? / Layer state / Orthographic / Delete / Restore / Save / Ucs / Window]","command_directionTip2":"[Top / Bottom / Front / Back / Left / Right] <Top>","command_unfinished":"to be finished","command_permissionLimited":"Permission limited, you cannot activate small viewport in paperspace. Command failure.","arcFirstPt":"Specify the starting point of arc or [Center]: ","arcSecondPt":"Specify the second point of arc or [Center/End]: ","arcCenter":"Specify the center point of arc: ","arcStartPt":"Specify the starting point of arc: ","arcEndPt":"Specify the endpoint of arc: ","arcEndPt1":"Specify the endpoint of arc or [Angle/chord Length]: ","arcChord":"Specify the length of chord: ","arcAngle":"Specify the included angle: ","arcEndCenter":"Specify the center point of arc: ","arcEndCenter1":"Specify the center point of arc or [Angle/Direction/Radius]:","arcRadius":"Specify arc radius: ","measuregeomMain":"Specify the option[Angle] <Angle>: ","angleResult":"Angle = ","angleMain":"Select straight line、circle、arc <Vertex>: ","anglePoint0":"Specify the angle vertex","anglePoint1":"Specify the first angle endpoint","anglePoint2":"Specify the second angle endpoint","angleNeedLCA":"Need straight line、circle、arc.","angleNeedL":"Need straight line.","angleChoseL2":"Specify the second straight line: ","measureWrong":"Invalid keyword","insertPoint":"Specify the insertion point <0,0>:","scaleFactor":"Specify the scale factor <1>:","insertImage":"Select Image File","getImageError":"Get image source fail","selectImage":"Please select a picture","enterPointTip":"Please enter a point!","enterKeyOrPointTip":"Please enter a key or point!","print":"Plot","Window_print":"Window","Direct_print":"Display","Extension_print":"Extension","specifyPrintWin":"Specify the print Window","specifyFirst":"Specify the first corner of window","specifySecond":"Specify the second corner of window","invalidWin":"Invalid window","print_area":"Plot area","extent_what":"What to plot:","Protrait":"Protrait","Landscape":"Landscape","plotCenter":"Center in paper","plotUpside":"Plot upside-down","milimeter":"Milimeter","pageSet":"Page Setup","plotName":"Name:","plotType":"Plot Type","plotoffset":"Plot offset","plotOrientation":"Drawing orientation","plotpreview":"Preview","plot_fail":"Plot Fail","plot_ing":"Doing Plot...","millimeter":"MM","inches":"Inches","pixels":"Pixels","plot_paper":"Paper:","plot_paper_size":"Paper Size:","drawingName":"Drawing name","deviceName":"Device name","layoutName":"Layout name","paperSize":"Paper size","dateAndTime":"Date and time","loginName":"Login name","batchPlot":"Batch plot","blockAndLayer":"Block and Layer","layerName":"Layer name","plotOptions":"Plot options","plotStampOn":"Plot stamp on","plotLinewidthOn":"Plot linewidth on","plotStamp":"Plot stamp","plotStampFields":"Plot stamp fields","ElectronicSignatureOn":"Electronic Signature On","ElectronicStampOn":"Electronic Signature On","MachineSianatureOpen":"Machine Sianature On","userDefinedFields":"User Defined fields","advancedOption":"Advanced option","locationAndOffset":"Location and offset","location":"Location","orientation":"Orientation","stampUpsideDown":"Stamp upside-down","offset":"offset","offsetRelativeToPrintableArea":"Offset relative to printable area","offsetRelativeToPaperBorder":"Offset relative to paper border","bottomLeft":"Bottom left","topLeft":"Top left","topRight":"Top right","bottomRight":"Bottom right","horizortal":"Horizontal","vertical":"Vertical","advanced":"Advanced","textProperties":"Text Properties","font":"Font","height":"Height","plotStampUnit":"Units","plotStampUnits":"Plot stamp units","singleLinePlotStamp":"Single line plot stamp","selectLayer":"Select Layer","listOfLayer":"List of layer name(multi-choice)","plotScale":"Print Scale Settings","fullScale":"Scale To Fit","customScale":"Custom Scale 1:","ucs":"User coordinate system","origin":"Origin","xAxis":"XAxis","yAxis":"YAxis","zAxis":"ZAxis","relative":"Be relative to:","world":"World","inputSystemVal":"Input new value of ${} ","systemValErrorTip":"Requires valid values.","angleDirTip":"Only 0 or 1 is required。","Orbit":"3DOrbit","_3dorbitTip":"Press ESC to exit"}')},253:t=>{"use strict";t.exports=JSON.parse('{"Me":"Me","chinese":"中文","english":"English","cancel":"Cancel","ok":"OK","or":"Or","help":"Help(H)","open":"on","shutdown":"off","yes":"yes","no":"no","recentCommands":"Recent Commands","cut":"Cut","copy":"Copy","copyHistory":"Copy History","paste":"Paste","pasteToCmd":"Paste to CommandLine","option":"Options","coordinate":"Coords","snap":"Snap","grid":"Grid","ortho":"Ortho Model","polar":"Polar Nodel","oSnap":"Object Snap","oTrack":"Object Snap Tracking","dynamicUCS":"Dynamic UCS","dynamicInput":"Dynamic input","lineWidth":"Lineweight","transparency":"Transparency","cycleSelect":"Cycle select","fullScreen":"FullScreen","setWorkspace":"Set workspace","menuRecentView":"Recent View","menuMyFile":"My File","menuRecycle":"Recycle","menuView":"View","menuOptions":"Options","menuHelp":"Help","menuAbout":"About","details":"Details","and":" and ","switchLanguageSuccess":"Switch language successfully","switchLanguageFaile":"Failed to switch language","commit":"Commit","reply":"Reply","ZWCAD":"Cloud2D","professional":" V3.0","versionNum":"Version number","copyrightMsg1":"© 1998-","copyrightMsg2":" ZWSOFT CO., LTD.(Guangzhou). All rights reserved.","AboutMsg1":"All use of this Software is subject to the terms and conditions of the End User License Agreement accepted upon installation of this Software. This software is based on the kernel developed by ZWSOFT CO., LTD.(Guangzhou) and based in part on the works of the third-party companies as follows: ","AboutMsg2":"Teigha® is a trademark of Open Design Alliance.","AboutMsg3":"ACIS Geometric Modeler is the registered trademark of SPATIAL TECHNOLOGY, INC. All Rights Reserved.","AboutMsg4":"JPEG image compression library is owned by Independent JPEG Group.","AboutMsg5":"Portions use the ERDAS ECW JPEG2000 SDK Read-Only License.","AboutMsg6":"Portions use Zlib library, owned by the Open Source Initiative.","AboutMsg7":"Portions use XZip, by permission of Hans Dietrich.","AboutMsg8":"Portions use XLISP, by permission of David Michael Betz.","AboutMsg9":"Portions use CXimage, by permission of Davide Pizzolato.","AboutMsg10":"Portions use Hunspell, distributed under the terms of a GPL, LGPL and MPL tri-license.","AboutMsg11":"Portions copyright Render Plus Systems, Inc. Render Plus Systems, Inc. is the copyright owner of the Render and its related documentation.","AboutMsg12":"Foxit PDF SDK Copyright © 2002-2015, Foxit Software Company, All rights reserved.","AboutMsg13":"TinyXml original code (2.0 and earlier ) copyright © 2000-2006 Lee Thomason.","AboutMsg14":"ExcelFormat copyright © 2009, 2010, 2011 Martin Fuchs.","AboutMsg15":"Portions use CGridListCtrlEx, by permission of Rolf Kristensen.","AboutMsg16":"RapiJSON Copyright © 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved.","AboutMsg17":"Portions copyright IntelliCAD. IntelliCAD and the IntelliCAD logo are either registered trademarks or trademarks of The IntelliCAD Technology Consortium in the United States and/or other countries. Copyright © 1999-2016 IntelliCAD Technology Consortium.","AboutMsg18":"DWG is the native file format for Autodesk® AutoCAD® software and is a trademark of Autodesk, Inc.","AboutMsg19":"All other trademarks, trade names or company names and logos referenced herein are used for identification only and are the property of their respective owners.","AboutMsgAdd1":"Portions use webuploader , distributed under the BSD-3-Clause license. Copyright (c) 2014, FEX@Baidu Inc. All rights reserved.","AboutMsgAdd2":"Portions use jQuery JavaScript Library, distributed under the MIT License. Copyright OpenJS Foundation and other contributors","AboutMsgQt":"Protions copyright Qt. <br/> Copyright(C) 2014 Digia Plc and/or its subsidiary(-ies) and other contributors. <br/> Qt and the Qt Logo are the trademarks of Digia Plc and/or its subsidiary(-ies).","optUseWebGL":"Rendering with webGL","optTextBorder":"Show text border only","optCannotSeeText":"Displays as boxes when text is indistinguishable","optZoomBreak":"Break rendering when zooming","optZoomHatch":"Do not show hatch when zooming","optCursorNotShow":"Do not show crosshair","optCursorSize":"Crosshair Size","optZoomLevel":"Zoom Level","mouseSetting":"Mouse Settings","commentSetting":"Comment Settings","commentsPageSize":"Quantity: ","continuousDraw":"Continuous drawing","file_setting":"File settings","file_saveFormat":"Save Format","default_open_bg":"Editor BG","theme_light":"Light","theme_dark":"Dark","apply":"Apply","displayPerformance":"Display Performance","display":"Display","objectSnapModes":"Object Snap Modes","failedOpenDrawing":"Failed to open drawing.","failedOpenDrawingErrorTips":"Please re-convert or re-upload, then open the drawing again","failedOpenDrawingBackText":"Back to project file list","alternateFont1":"Replacing font ","alternateFont2":" with font ","missingBigFont":"Missing BigFont ","deleteEntity":"The current entity cannot be deleted, only the entity drawn on the annotation layer can be deleted","editModeWait":"Entering edit mode, please be patient","editModeSuccessfully":"Successfully entered edit mode","editModeExit":"Exited edit mode","editModeFail":"Failed to enter edit mode, please refresh the page later and try again","editModeBusy":"The current document is being edited, and collaborative operations are not supported for the time being.","editModeTip1":"Does not enter edit mode, cannot use edit commands","editModeTip2":"Save successfully","editModeTip3":"Delete successfully","editModeTip4":"Failed to save","editModeTip5":"Failed to detele","editModeTip6":"Edit command is running, the layer cannot be closed","editModeTip7":"Please enter edit mode before switching layout","editModeTip8":"Start editing","editModeTip9":"Quit editing","failToActiveViewport":"Failed to activate the current viewport. Please try agian or refresh the page.","failToSwitchLayout":"Failed to switch the layout. Please try agian or refresh the page.","bussyToSwitchLayout":"The current layout cannot be switched now. Please try again later.","operateFrequently":"Editing mode switching, please wait……","cmdExecuting":"Please end the current command before operating","CannotZoomIn":"Can\'t keep zooming in. Please try to regen.","CannotZoomOut":"Can\'t keep zooming out. Please try to regen.","regenDone":"Regen completed.","regening":"Doing Regen...","DwgEditor_getFileInfo_error":"Failed to get file details","DwgEditor_getDocInfo_error":"Failed to get document details","DwgEditor_switchLayout_error":"Failed to get layout imfid","DwgEditor_retransfer_success":"retransfer successfully","DwgEditor_retransfer_fail":"Failed to retransfer,about to exit","ZWCADTitle":"Cloud2D","model":"MODEL","noSupportTitle":"Reminder","noSupport":"The drawing is too large. Please view the drawing in ZWCAD.","know":"I know","viewDrawing":"View","docIsBussy":"Someone else is editing this file","docIsBussyMsg":" is editing this file. You can only open the file as viewed.","savingDwg":"This file is saving","savingDwgMsg":" is saving this file. You need to wait for the file to be saved before viewing it. Please try again later.","readonly":"Readonly","lastsaved":"Last saved: ","inactiveMsg":"Inactive Message","reminder":"You have been inactive for 15 minutes and have automatically exit editing mode.","continueEdit":"Continue Editing","invalidRequest":"Invalid request","userAuthorizationFailed":"Current user authorization failed","unableToEnterEditMode":"Unable to enter edit mode","noResourceAvailable":"No Resource Available","noResourceAvailableMsg":"There are no available resources at present. You cannot enter the edit mode. Please try again later.","editMode":"EditMode","viewMode":"ViewMode","vip":"This is VIP function. Please upgrade your membership first.","configPermission":"Please contact the administrator to configure editing permissions.","OpenDwgPhaseInit":"Initialize","OpenDwgPhaseGetData":"Getting data","OpenDwgPhaseReadData":"Reading entity data","OpenDwgPhaseGetXrefData":"Getting Xref data","OpenDwgPhaseReadXrefData":"Reading Xref data","OpenDwgPhaseDrawData":"Preparing to draw","OpenDwgPhaseDrawDataEnd":"Coming soon.","OpenDwgPhaseEnd":"Loading complete","circleTool":"Circle Tool","rectangleTool":"Rectangle Tool","polylineTool":"Polyline Tool","insertPin":"Drawing pin","hideBubble":"Hide Bubble","showBubble":"Show Bubble","filterComment":"Select Comment","noComment":"No comments yet","commentTip":"Provide feedback, ask questions, or start a discussion in the comments","commentDisabled":"The operation is not supported in the current viewport.","moreComments":"More Comments","commentContentLimit":"Comments cannot exceed 1000 words.","commandBusy":"Busy now. Please finish the current operation first.","isCommenting":"The current comment has not been submitted. Please submit or cancel the comment first.","savingComment":"Updating comment data……","revcloudTool":"Revcloud","leaderTool":"Arrow","imageTool":"Image","exportComment":"Export Comment","reviewer":"Reviewer","noData":"No Data","inputComment":"Write a comment……","totalComments":" Comments","unlimitedTime":"Unlimited Time","unlimited":"Unlimited","oneDay":"One Day","oneWeek":"A Week","oneMonth":"A Month","oneYear":"A Year","custom":"Custom","from":"From","to":"To","foldFilter":"Fold Filter","clearFilter":"Clear Filter","versionPrompt":"Due to new features, the system has been upgraded to version {}. To experience it, please go back to the list and regenerate it.","copyright":" All rights reserved. ","commentSpecialChar":"Special characters in comment content just contain @ and punctuation mark.","anonymous_transfer_fail":"Drawing conversion failed, please upload again","commentMobile_comment":"Comment","commentMobile_commentTool":"Comment Tool","commentMobile_replyComment":"Reply Comment...","commentMobile_editComment":"Edit Comment","commentMobile_reply":"Reply","commentMobile_finish":"Finish","commentMobile_lastUpdateTime":"Last UpdateTime","commentMobile_clickToConfirmCircleCenter":"Please click to confirm the center point of the circle on the drawing","commentMobile_clickToSetCircleRadius":"Please click on another point on the drawing to determine the radius of the circle","commentMobile_clickToSetRectangleStartPoint":"Please click to determine the first corner point of the rectangle on the drawing","commentMobile_clickToSetRectangleEndPoint":"Please click on another point on the drawing to determine the second corner point of the rectangle","commentMobile_clickToSetCloudStartPoint":"Please click to determine the first corner point of the cloud line on the drawing","commentMobile_clickToSetCloudEndPoint":"Please click on another point on the drawing to determine the second corner point of the cloud line","commentMobile_clickToSetPolylineFirstPoint":"Please click to determine the first point of the polyline on the drawing","commentMobile_clickToSetPolylineNextPoint":"Please click to determine the next point of the polyline on the drawing","commentMobile_clickToSetLeaderLineStartPoint":"Please click to determine the start point of the leader line on the drawing","commentMobile_clickToSetLeaderLineNextPoint":"Please click to determine the next point of the leader line on the drawing","commentMobile_chooseImage":"Please choose an image","commentMobile_clickToSelectImageInsertPoint":"Please click to select the start point where the image will be inserted on the drawing","commentMobile_clickToSetImageEndPoint":"Please click on another point on the drawing to determine the end point where the image will be inserted","commentMobile_clickToSetStampPoint":"Please click to determine the point where the stamp will be placed on the drawing","commentMobile_chooseCommentToolAndSetColor":"Please choose a comment tool and set its color","commentMobile_writeComment":"Write Comment...","commentMobile_noCommentData":"No comment data.","commentMobile_publishSuccess":"Publish success","commentMobile_publishFailed":"Publish failed","commentMobile_replySuccess":"Reply success","commentMobile_replyFailed":"Reply failed","commentMobile_deleteSuccess":"Delete success","commentMobile_deleteFailed":"Delete failed","commentMobile_editSuccess":"Edit success","commentMobile_editFailed":"Edit failed","version_list":"Version and History","version_fresh_local":"Update version","version_fresh_cloud":"Update version from cloud","version_modal_edit":"Version Edit","version_tip":"Tip","version_all":"All","version_list_nothing":"Nothing","sign_input_plotMsg":"Please input plot message","sign_upload_seal":"Please upload seal","sign_upload_cert":"Please upload CA cert","sign_input_cert_key":"Please input CA cert key","sign_upload_dwg":"Please upload dwg","sign_demo_btn":"Electronic Signature","sign_locate":"Locate","sign_blockData_title":"Electronic Signature - Import Information","sign_blockData_save_success":"Save successfully","sign_blockData_save_fail":"Save fail","sign_blockData_saving":"Saving, wait please","sign_upload_typeError":"File type error","sign_upload_sizeExceed":"File exceed limit","options_format_tip":"Cannot switch in editing mode","options_format_select1":"Original file format","options_version_select1":"Original file version"}')},230:t=>{"use strict";t.exports=JSON.parse('{"editor_File":"File","editor_Empty":"Nothing","editor_View":"View","editor_form":"Form","editor_Window":"Window","editor_RecentFileList":"Recently Open Files","editor_Tool":"Tool","editor_Help":"Help","editor_commentPanel":"Comment","editor_commentSign":"Sign","editor_follow":"Follow","editor_unfollow":"Unfollow","editor_bubble":"Bubble","editor_About":"About","editor_commandPanel":"Command Line","editor_layout":"Layout","editor_layerPanel":"Layer","editor_ZWsoftWebsite":"ZWSOFT Website","editor_ZWCADTechCommunity":"ZWCAD Technology Community","editor_name":"Name","editor_perpendicular":"Perpendicular","editor_move":"Move","editor_preference":"Preference","header_download":"Download","header_uploadWait":"Wait for the upload","header_uploading":"Uploading","header_uploadComplete":"Upload Complete","header_uploadingList":"Upload List","header_msgList":"Message List","header_manageAccount":"Manage Account","header_myShare":"My Share","header_subscription":"Subscription","header_logOut":"Log Out","header_toAdmin":"Management","header_toHome":"Home","header_uploadTips":"Show only this upload task","userInfo_account":"User Account","userInfo_setting":"Setting","userInfo_myShare":"My Share","userInfo_tips":"Tip: Link records with a valid period of more than one month will be automatically cleaned up","userInfo_shareLoading":"Loading...","userInfo_hideInvalidShareLink":"Hide invalid Links","userInfo_cancelShare":"Cancel Share","userInfo_edit":"Edit","userInfo_avatar":"avatar","userInfo_name":"Name","userInfo_bindPhone":"Phone","userInfo_email":"Email","userInfo_editName":"Edit Your Name","userInfo_editPhone":"Edit Your Phone Number","userInfo_editEmail":"Edit Your Email Address","userInfo_back":"back","header_emptyRecord":"Record Is Empty","editor_zoom":"Zoom","editor_translate":"Pan","editor_options":"Options","editor_tool_layer":"Layer","editor_tool_move":"Pan","editor_tool_zoomWindow":"Zoom Window","editor_tool_ZoomDynamic":"Zoom Dynamic","editor_tool_ZoomScale":"Zoom Scale","editor_tool_ZoomObject":"Zoom Object","editor_tool_ZoomCenter":"Zoom Center","editor_tool_ZoomIn":"Zoom In","editor_tool_ZoomOut":"Zoom Out","editor_tool_ZoomAll":"Zoom All","editor_tool_ZoomRange":"Zoom Extents","editor_tool_Polyline":"Polyline","editor_tool_rectangle":"Rectangle","editor_tool_Circle":"Circle","editor_tool_CircleRadius":"Center, Radius","editor_tool_CircleDiameter":"Center, Diameter","editor_tool_Circle2p":"2 Points","editor_tool_Circle3p":"3 Points","editor_tool_Arc":"Arc","editor_tool_Arc3p":"3 Points","editor_tool_ArcSCE":"Start, Center, End","editor_tool_ArcSEC":"Start, End, Center","editor_tool_ArcCSE":"Center, Start, End","editor_tool_Measure":"Measure","editor_tool_Dist":"Distance","editor_tool_Angle":"Angle","editor_tool_Area":"Area","editor_tool_Sign":"Sign","editor_tool_Signature":"Electronic Signature","editor_tool_Stamp":"Electronic Stamp","message_read":"Read","message_unRead":"Unread","message_signRead":"Sign as read","message_signReadAll":"Sign all as read","message_clearUp":"Clear up","editor_byLayer":"ByLayer","editor_byBlock":"ByBlock","editor_default":"Default","editor_layerColor":"Color","editor_layerViewportColor":"Viewport Color","editor_viewportLineWeight":"Viewport LineWeight","editor_layerName":"Name","editor_layerVis":"Visible","editor_layerFreeze":"Freeze","editor_layerLock":"Lock","editor_layerType":"Type","editor_layerLineWeight":"Line Weight","editor_layerOpacity":"Opacity","editor_loading":"Loading……","editor_cancelLoading":"Cancel the loading","editor_save":"Save","editor_xrefPanel":"XRef","editor_opmPanel":"OPM","editor_signPanel":"SIGN","xref_name":"Reference Name","xref_status":"Status","xref_size":"Size","xref_type":"Type","xref_savePath":"Saved Path","xref_date":"Date","xref_foundPath":"Found Path","xref_detail":"Detail","xref_preview":"Preview","xref_notfound":"Not Found","xref_loaded":"Loaded","xref_unloaded":"Unloaded","xref_opened":"Opened","xref_notref":"Not Ref","xref_current":"Current","xref_cannot_preview":"Preview is not available","xref_manager":"Xref Manager","rollRightToEnd":"Slide to end","rollRight":"Slide right","rollLeftToStart":"Slide to start","rollToLeft":"Slide left","draftingSettings":"Drafting Settings","objectSnapOn":"Object Snap On(F3)","objectSnapMode":"Object Snap modes","endpoint":"Endpoint","midpoint":"Midpoint","center":"Center","geometricCenter":"Geometric Center","node":"Node","quadrant":"Quadrant","extension":"Extension","insertion":"Insertion","perpendicular":"Perpendicular","tangent":"Tangent","nearest":"Nearest","parallel":"Parallel","intersection":"Intersection","defaultInter":"Default","apparentIntersect":"Apparent Intersect","selectAll":"Select All","clearAll":"Clear All","editor_versionPanel":"Version","_Closed":"Closed filled","_ClosedBlank":"Closed blank","_Dot":"Dot","_ArchTick":"Architectural tick","_Oblique":"Oblique","_Open":"Open","_Origin":"Origin","_Origin2":"Origin 2","_Open90":"Open 90","_Open30":"Open 30","_DotSmall":"Dot small","_DotBlank":"Dot blank","_DotSmallBlank":"Dot small blank","_BoxBlank":"Box","_BoxFilled":"Box filled","_DatumBlank":"Datum triangle","_DatumFilled":"Datum triangle filled","_Integral":"Integral","_None":"None","dimensionStyle":"Dimension Style","dimensionLines":"Dimension Lines","baselineSpacing":"Baseline spacing:","extensionLinesOffsetFrom":"Extension Lines Offset From","origin":"Origin:","dimensionLine":"Dimension line","arrowHeads":"ArrowHeads","startingArrowHead":"Starting ArrowHead","arrowSize":"Arrow size","textAppearance":"Text Appearance","textStyle":"Text style","textHeight":"Text height","scaleForDimensionFeatures":"Scale for dimension features","overallScale":"Overall scale","linearDimension":"Linear Dimension","precision":"precision","allDimStyles":"All DimStyles","lines":"Lines","symbolsAndArrows":"Symbols and Arrows","text":"Text","fit":"Fit","primaryUnits":"Primary Units","dim_back":"Back","dim_help":"Help","dim_angular":"Angular","dim_diameter":"Diameter","dim_leader":"Leader","dim_linear":"Linear","dim_ordinate":"Ordinate","dim_radial":"Radial","text_style":"Text Style","styleName":"Style Name","textMeasurements":"Text Measurements","widthFactor":"Width Factor","textFont":"Text Font","text_name":"Name","fontNotFound":"(not found)","readingDwg":"Reading drawing information...","layout_switching":"Layout Switching...","theme_dark_tips":"Switch to light","theme_light_tips":"Switch to dark","viewInWeChat":"WeChatView","qr_code_tips_one":"Scan code to follow","qr_code_tips_two":"View drawings","exit":"Exit","repeat":"Repeat ","pan":"Pan","zoom":"Zoom","zoomIn":"Zoom In","zoomOut":"Zoom Out","zoomAll":"Zoom All","zoomCenter":"Zoom Center","zoomExtents":"Zoom Extents","regen":"Regen","3DOrbit":"3DOrbit","lastInput":"Last Input"}')},218:t=>{"use strict";t.exports=JSON.parse('{"replaceFont":"Missing Font Replacement Solution Config","selectNoUpload":"Selected file status does not allow uploading files","searchNoUpload":"Query status does not allow uploading files","uploadBegin":"Added upload task","uploadFileSize":"File size cannot exceed","uploadFileNum":"A single upload operation cannot exceed 10 files","uploadFileErr":"Upload error! Please check and upload again! BigInt","uploadErrorMsg1":"Upload exception,currently exists ","uploadErrorMsg2":"file size exceeds the limit (","uploadErrorMsg3":"file format error","uploadFileSuccess":"Upload successful","uploadFileFinish":"Upload finished","uploadFileFinishMsg1":" files uploaded successfully","uploadFileFinishMsg2":" files failed to upload","fontReplaceAttention":"Note: If you have installed the ZWCAD client, reference path: #\\\\zwcad 2024\\\\UserDataCache\\\\Support\\\\zwcad.fmp, and follow the client text alternate rule. Or ","setAndUpload":", set font alternate rules and upload.","fontReplaceRule":"Alternatively, you can manually set replacement rules, ensuring that the original font and the file name suffix of the replace font are consistent. Bigfonts can only be replaced with bigfonts. Unifonts can only be replaced with unifonts. ShapesFonts are only used for drawing display and cannot be used to replace other fonts.","fontIndex":"Number","sourceFont":"Original font","targetFont":"Replace font","uploadConfig":"Upload File","downloadFmp":"Download .fmp template","exportFontConfig":"Export Font Config","srcPlaceholder":"Please enter a font name, for example, txt.shx","targetPlaceholder":"Please enter a font name, for example, simplex.shx","replaceRules":"Replacement rules","add":"Add","ReplaceFontErrorMsg1":"There is a blank item","ReplaceFontErrorMsg2":"The original font and the target font cannot be the same","ReplaceFontErrorMsg3":"Font name too long","ReplaceFontErrorMsg4":"Cannot contain special characters\\n\\\\ / : * ? \\" < > |","fileSuffixError":"The suffix name of the original font or the targe font file does not comply with the rules. Currently, only .ttf and .shx is supported.","shapesFontTip":"Shapesfont cannot be used to config missing font replacement solution","typeMismatch":"The font type do not match","nullRecentView":"There are no files recently opened","createInvite":"you can build projects immediately and create together","nullOtherMember":"There are no other members in this project","nullNotJoinRes":"There are no members invited but not joined","workspaceRemove":"Remove","showProject":"ShowProject","setting_rename_null":"Project name cannot be empty","setting_rename_over50":"Item description cannot exceed 50 characters","setting_reDesc_over200":"Item description cannot exceed 200 characters","setting_rename_success":"Modify project name successfully","setting_reDesc_success":"Modify project description successfully","setting_reColor_success":"Modify project color successfully","membersAndPermissions_removeMember":"Remove","membersAndPermissions_memberRemoved":"This member has been removed","membersAndPermissions_nullSearchRes":"No search results","membersAndPermissions_inviteConfirm":"Invite","membersAndPermissions_memberAlreadyExists":"This member already exists in the project","RecentlyEdited":"updateTime","ProjectMembers":"MemberCount","Creator":"Creator","inviteSuccess":"Invitation successful","nullRole":"No user persona is currently selected","pleaseSelectRolr":"Please select user persona","project":"project","inviteMemberTo":"Invite members to join","selectRole":"Please select a role","InputMemberDesc":"Add new members through name、phone number or email, you can enter multiple members, separated by carriage return","notJoinedMember":"Invited unjoined members","ReInvite":"Reinvite","cancelInvite":"Cancel","ReInviteSuccess":"Reinvite successfully","cancelInviteSuccess":"Cancel invitation successfully","ChangePermission":"Project access rights have been modified","leaveProjectConfrim":"Are you sure you want to leave the project?","leaveProjectDesc":"After leaving the project, the files you create in this project will be automatically forwarded to the project owner","inviteMember":"Invite","editMember":"Setting","notJoined":"NotJoined","leaveProject":"Leave","searchInput":"Please enter a keyword","memberName":"MemberName","email":"Email","phone":"Phone","lastTime":"LastTime","roleName":"RoleName","deleteTitle":"Are you sure you want to delete the item","inputProjectName":"Please enter a name for the project","transfer":"Transfer","labelColor":"Label Color","deleteProjectConfirm":"After deleting the project, all files in the project will be permanently deleted immediately. This operation is irreversible. Please enter the project name to confirm","deleteProjectDesc":"Permanently delete all files of the project and cannot be recovered","deleteProject":"Delete Project","editDesc":"Edit","projectDescInput":"Project name should be less than 200 characters","projectDescConfirm":"Input within 200 characters","projectDesc":"Description","projectRename":"Rename","projectNameDesc":"Project name should be less than 50 characters","projectSetting":"Project Setting","searchMembersDesc":"There is only one owner per item, you will become the viewer after the transfer","searchMembers":"Search Members","transferProject":"Transfer Project","transferProjectNullTarget":"Please select the member you want to transfer","people":"","softwareName":"ZWCAD Professional","softwareNameLinux":"ZWCAD Linux","softwareDesc":"Powerful editing function, unified account can be synchronized with the cloud after login","softwareSize":"software size","environment":"software environment","download32bit":"Download 32bit","download64bit":"Download 64bit","clickToDownload":"Click to download","moreType":"For more application types, please click to enter the download platform","greeting":"Hi","iCreated":"project created by me","allProjectNum":"All project number","joinProjectNum":"Join project number","myAllProjectMembers":"All project members","RecentView":"RecentView","membersAndPermissions":"Members","ProjectInformation":"Information","MyFiles":"MyFiles","RoleManage":"RoleManage","Recycle":"Recycle","MyFonts":"MyFonts","upload":"Upload","share":"Share","share_onlyOne":"Only one file can be shared at a time","share_image":"Picture do not support sharing","share_folder":"Folder do not support sharing","newFolder":"NewFolder","download":"Download","downloadFailTips_deleted":"Download failed, file has been deleted","downloadFailTips_permissionNull":"No permission for download font","delete":"Delete","edit":"Edit","deleteComplete":"Delete Complete","rename":"Rename","config":"config","copy":"Copy","move":"Move","name":"Name","editTime":"EditTime","fontVersion":"Version","size":"Size","creator":"Owner","defaultFont":"Default Font","systemFont":"System comes with","bigFont":"Bigfont","unifont":"Unifont","shapesfont":"Linetypefont","setDefaultFont":"Set As Default Alternate Font","setDefaultFontTip":"Missing fonts in the drawing will be presented using the configured alternate fonts first. When there is no configured alternate font, the default font will be used for rendering.<br/>Please confirm whether to set the font ({}) as the default font?","setDefaultFontSuccessful":"Set alternate font successfully.","setDefaultFontFail":"Fail to set alternate font.","directory":"Position","goback":"Back to previous","allFiles":"AllFiles","allFonts":"All Font Files","fontsTip":"Friendly reminder: After uploading the project file, if you have performed operations such as uploading a font file, deleting a font file, configuring a missing font replacement solution, or modifying the default replacement font, please go to the project file list to regenerate the drawing file. You can view the latest content of the drawing with text effects.","filesLoaded":"Documents are fully loaded,","total":"total","unit":"","images":"images","docOpen":"Open","docDetail":"Detail","lastModified":"Last Modified","createTime":"CreateTime","fileFormat":"File Format","searchDocs":"Search your files","pasteTo":"Paste to","moveTo":"Move to","copyHere":"Copy here","moveHere":"Move here","duplicateFileTips":"duplicate file","confirm":"Confirm","cancel":"Cancel","selectAll":"Select All","selected":" is selected","folder":"Folder","isEmpty":" is empty","space":"Space","click":"Click","button":"button","cannot_get_data":"Can not get data","cannot_find_search_value":"Can not find the value you are searching for in your documents","sortByTime":"By editTime","sortByName":"By filename","sortByShareDate":"By ShareDate","sortByEditDate":"By EditDate","sortByshareTime":"By ShareDate","sortBybelongProject":"By belongProject","pasteOperTip":"If DUPLICATE,the copied file will be saved by adding a time string to the name.Default SKIP.","existingFiles":"The existing files","copyingFiles":"The copying files","movingFiles":"The moving files","skip":"SKIP","cover":"COVER","duplicate":"DUPLICATE","skipAll":"Skip All","duplicateAll":"Duplicate All","success":"Success","fail":"Fail ","joinUploadTask":"Have joined in upload tasks","waiting":"Waiting...","getRecentFiles":"Recent Files get","getRecycleDoc":"Recycle docs get","fileRestore":"File Restore","fileRemoveCompletely":"File Remove Completely","regen":"Regen","restore":"Restore","remove":"Remove","reviewTime":"ReviewTime","path":"Path","clear":"Clear","notEdit":"Name is not edited","selectNull":"No Selected","uploadExceed":"File Exceed Limit, Maxium is 10M","uploadFileType":"Upload Files has","wrongType":"wrong types","uploadTypeErr":"The upload file\'s format is incorrect","empty_recycle":"Recycle is empty","recycle_empty_tip":"The recycle bin save deleted files for 30 days","recent_empty_tip":"Recent Files Is Empty ","more-operation":"More","getDetail":"Get Detail","clearTip":"Clear all recycle files<br/>You can not restore them after clearing,do you want to go on?","inputExceed":"Charaters exceed,range is 0~256","transfering":"Transfering,waiting...","empty_name":"Name is empty","start_download":"Joined download lists","search":"Search","deleteTime":"DeleteTime","home_title":"New generation CAD collaboration platform","home_content_first":"Reliable 2D design, open 2D ecology","home_content_second":"Flexible collaborative management of drawings and projects","login":"Login","loginExpiredMsg":"Login expired, please log in again ","newFolder_selectedFiles":"Can not create new folder when select docs","rename_multipleDocs":"Cannot rename when multiple documents selected","font_rename":"Font rename is not supported","download_folder":"Folders do not support downloads so far","replicate":"Folders do not support replication so far","regen_folder":"Folders do not support regeneration","regen_image":"Images do not support regeneration","doc":"document ","rename_tip":"This location already contains a file with the same name","delete_free_tip":"Deleted files can be restored via Recycle Bin within 15 days","delete_tip":"Deleted files can be restored via Recycle Bin ","rename_tip_title":"Rename Document","delete_tip_title":"Delete Tip","docs":" documents ","confirm_select_delete":"Confirm that the selected ","confirm_delete":"Confirm to delete the selected","confirm_rename":"Confirm that rename","put_in_recycle":" put in recycle bin","renamed":" to ","?":"","restore_selected_docs":"Confirm that restore the selected docs?","remove_tip":"Unrecoverable after clearing, please confirm whether to continue","checkbox":" ","operate":" ","name_Error_haveSC":"Name cannot contain a special string:\\n\\\\ / : * ? \\" < > |","guide_reject_text":"Your account is not approved","guide_reivew_text":"Your account is being reviewed, please wait patiently","guide_reivew_tips":"The platform will Complete the audit within 24 hours. You can login in to Cloud ZWCAD only after approval.","guide_notAvailable_text":"The number of seats for the day has been used up. Please come back tomorrow","guide_welcome":"Welcome to Cloud2D","guide_welcome_tips":"In order to ensure that the account passes the audit as soon as possible, let us know more about you","guide_form_phone":"Input your phone number","guide_form_trade":"Industry","guide_form_business":"Enterprise or organization","guide_form_occupation":"Your career","guide_form_save":"Improve information","guide_complete_text":"Please complete the account information","guide_forbidden_text":"Your account is disabled","guide_forbidden_tips":"The account is disabled due to suspected dissemination of sensitive information or violations","transferFail_open":"Drawing not successfully converted cannot be opened,please try local opening","transferFail_open_mobile":"Drawing not successfully converted cannot be opened,please be patient","saving":"Saving","editing":"is editing","belongProject":"Affiliated Project","shareDate":"Share Date","shareTime":"Share Date","expireTime":"Expiration Date","visitCount":"Vistis Count","ScanToView":"Scan To View","shareDetail_belongProject":"Affiliated project","shareDetail_owner":"Owner","shareDetail_createTime":"Creation time","shareDetail_recentEdit":"Recent Editors","shareDetail_shareDate":"Share date","shareDetail_expirationDate":"Expiration date","shareDetail_accessPassword":"Access password","shareDetail_shareScope":"Sharing Scope","shareDetail_visitNumber":"Number of visits","shareDetail_fileSize":"File size","shareDetail_fileFormat":"File format","shareDetail_belongDirectory":"Directory","shareDetail_noPerm1":"You do not currently have permission to share this drawing","shareDetail_noPerm2":"This link can be operated after restoring permissions","shareDetail_projectDelete":"Project deleted","shareDetail_fileDelete":"Original file deleted","shareDetail_permissionError":"no operation permission","shareDetail_searchNameTooLong":"The length of the searched keyword exceeds the limit: 256","shareDetail_searchNameResNull":"No List Result","applyAK":"applyAK","checkAK":"checkAK","copyAK":"copyAK","checkSK":"checkSK","copySK":"copySK","whiteListSetting":"WhiteList Setting","isTrusted":"isTrusted","refererEnable":"refererEnable","cacheEnable":"cacheEnable","save":"save","trusted":"trusted","notTrusted":"notTrusted","enable":"enable","notEnable":"notEnable","applySuccess":"Apply AK succeeded","akNotAvailable":"No AK available, please apply first!","skNotAvailable":"No SK available, please apply first!","copySuccess":"copy succeeded","saveSuccess":"save succeeded","whiteList_Placeholder":"Please enter the whitelist address and enter the Enter key to wrap","localOpening":"LocalOpening","picNotAllowed":"The picture does not support local opening","folderNotAllowed":"The folder does not support local opening","multiSelectNotAllowed":"Local opening does not support multiple selections","check_plugin_content":"Calling up, please wait...","check_plugin_tip":"Local open prompt","check_plugin_tip1":"You are about to use cloud collaboration to launch the ZWCAD client and open drawings locally.","check_plugin_tip2":"Please ensure that the cloud collaboration plugin and ZWCAD client are installed.","check_plugin_tip3":"If the ZWCLOUD2D plugin is not installed, please","check_plugin_tip4":"If the ZWCAD client is not installed, please","check_plugin_tip5":"click here to download","openClient":"Open Client","calling":"Calling Up","currentSdkVersion":"The SDK version you are currently subscribed to is","trailVersion":"trial version","stanVersion":"standard version","profVersion":"professional version","fullVersion":"full version","editModeNotSupported":"editing function is not supported","noSelection":"No selection","view":"View","centerX":"Center X","centerY":"Center Y","centerZ":"Center Z","viewHeight":"Heigth","viewWidth":"Width","general":"General","handle":"Handle","layer":"Layer","varies":"*VARIES*","OpenAPITips":"**After successfully applying for AK for the first time, please contact the system administrator to apply for OpenAPI version**","chromeVersionLow":"version 95 or below may have compatibility problems. Please upgrade to version 95 or above.","safariVersionLow":"Safari version 15.4 or below may have compatibility problems. Please upgrade to version 15.4 or above.","service_degradedTip":"Service has degraded,please try again later","service_unavailable":"Service is unavailable,please try again later","pluginTitle":"End Cloud Collaboration","pluginTips":"Connect the CAD client to the Coud2D cloud, assist in opening cloud drawings locally with one click, keeping drawings locally edited and synchronized to the cloud with one click, and sharing cloud drawings locally with one click","pluginDownload":"Download plugins","pluginUse":"View Usage","dwgTransfering":"Drawing is being converted...","quickView":"Quick View","loginTips":"Quick View only supports drawings that do not exceed 10MB. If you need to view larger drawings online, please log in first!","selectLocal":"Select Local Drawing","agreeTip1":"Agree to ","agreeTip2":"the privacy statement","agreeTip3":"and ","agreeTip4":"service agreement","agreeTip5":"Please read and click \'Agree\' to the relevant agreement!","clickToSelect":"Click here to select","sampleDrawing":"Sample Drawings","please":"Please ","login1":"Login","functionLimited":"You are not currently logged in. You can use this function after logging in","entryEdit":"Enter Edit","selectDrawing":"Select Drawing","loginAndRegister":"Log in / register","formatConversion":"Conversion","convertFormat":"Convert format","conversion_not_available":"The conversion task already exists. Please try again later","conversion_unAvailable_doc":"Some doc do not support format conversion","conversion_image":"Images do not support format conversion","conversion_folder":"Folders do not support format conversion","conversion_limited":"Supports batch conversion of up to 10 files, please reselect","conversion_confirm":"Confirm","conversion_export":"Export ","conversion_list":"Files to be converted","conversion_failed":"Format conversion failed","conversion_succeed":"File exported successfully!","conversion_timed_out":"Request timed out, file format conversion failed.","version_open":"Open","version_compare":"Compare","version_restore":"Restore","version_edit":"Edit","version_create":"Create","version_delete":"Delete","version_name":"Name","version_description":"Description","version_500_limit":"500 words limit","version_create_condition":"Can not create version without editing status","version_delete_tip":"Can not delete the current","version_restore_tip1":"If modified, please create version by the workspace, and then restore to that version. Otherwise, the modifications made in the current workspace will be lost.","version_btn_restore":"Continue Recovery","version_btn_create":"Create Version","version_delete_tip1":"After deleting the version, it cannot be restored! Please confirm whether to delete it?","version_enter":"Enter...","version_not_null":"It can not be empty","version_restore_tip2":"Confirm to restore to the version?","version_btn_restore1":"Restore","version_header_tip":"Created","version_success_create":"Create success","version_success_edit":"Edit success","version_success_delete":"Delete success","version_success_restore":"Restore success","version_insufficient_permissions":"Insufficient permissions","version_success_update":"Update success","version_loading_update":"Version updating...","version_typeError_update":"Type error","version_progress_update":"Version Update","version_loading_switch":"Version Switching...","watermark":"File Watermark","watermarkDesc":"After opening, the watermark will be displayed when members view the file. The watermark is displayed as the member\'s username/phone tail number/date when viewing the drawing. After the drawing is shared, the watermark will be displayed when others view the shared drawing. The watermark is displayed as the sharer\'s user/phone tail number/date","watermarkEnabled":"File watermark turned on","watermarkOff":"File watermark turned off","save_to_cloud":"Save","save_success":"The drawing is saved successfully","import_from_wechat":"Import drawings from WeChat with one click","import_tips":" ","import_drawings_to":"Import drawings to save to","import_no_folder_available":"There are no optional folders under the current path","import_not_available":"You do not have upload permission in the current project, please contact the project administrator","agreement_title":"Please confirm","agreement_i_agree":"I agree ","agreement_privacy":"privacy statement ","agreement_and":"and ","agreement_service_agreement":"service agreement","agreement_please_agree":"Please tick to agree to the agreement","project_no_project":"There are no projects in the current account","LY_seat_assign":"Seats Assign","LY_seat_tip":"Dear administrator, hello! You can grant the team designer access to the ZWCloud2d product by assigning them a seat in the Centaur Cloud2d product’s Advanced Team version. Once assigned, you can cancel or reassign it at any time. Please confirm if you would like to proceed with the assignment immediately.","upload_folder":"Folder Upload","folder_max_accounts":"The total number of files exceeds the limit","upload_size_exceed":"Size Exceed","upload_ext_error":"Ext Error","upload_size_zero":"Content NUll","upload_modal_total":"Total","upload_modal_success":"Success","upload_modal_fail":"Fail","upload_modal_ing":"Uploading","dwg_saving":"Saving..."}')},232:t=>{"use strict";t.exports=JSON.parse('{"workspace":"Home","viewAllProject":"view all project","createNewProject":"create new project","print":"Print","share_setting":"Share Setting","share_fileShare":"Share","share_validPeriod":"Valid Period","share_ValidForever":"Forever","share_30Days":"30 days","share_7Days":"7 days","share_1Day":"1 day","share_scope":"Scope","share_everyoneCanView":"Everyone Can View","share_copyLink":"Copy Link","share_copyLinkAndPassword":"Copy Link And Password","share_usePassword":"Use Password","share_ScanToView":"Scan to view","share_cancel":"Cancel","share_createAndShare":"Create","share_resetLink":"Reset Link","share_cancelSharing":"Cancel Sharing","share_copySharing":"Copy Link","share_copySharingAndPassword":"Copy Link And Password","share_resetLinkSuccessfully":"The link has been reset","share_linkCopySuccess":"The link is copied successfully, everyone can view it","share_linkAndPasswordCopySuccess":"The link and password were copied successfully, and everyone can view them","share_resetLinkAndPasswordSuccessfully":"Link and password reset","share_cancelShareSuccessfully":"The cancellation of sharing was successful, the previous link has expired","share_extractionPassword":"Password","share_passwordTrue":"Yes","share_passwordFalse":"No","share_passwordInputError":"Please enter 4 digit letters or numbers","share_setPasswordSuccessfully":"Set password successfully","share_updatePasswordSuccessfully":"Update password successfully","share_cancelPasswordSuccessfully":"Cancel password successfully","share_generateShareLinkSuccessfully":"create share link successfully","share_link":"link","share_password":"password","share_passwordNull":"no password","share_timeLimitValidForever":"Valid Forever","share_timeLimitExpired":"Expired","share_convertFailedCannotShare":"Dwg that failed to convert cannot be shared,please re-convert or re-upload,and try to share after the conversion is successful ","share_to":"Share to","share_wechat_friend":"WeChat friends","share_copy_link":"Copy the link","share_qr_code":"QR code","share_qr_code_modal":"Share the QR code","benefits_compare":"Benefits Compare","header_complain":"Complain","header_advice":"Advice"}')},70:t=>{"use strict";t.exports=JSON.parse('{"status":"Status","msgContent":"Message Content","projectName":"Project Name","project":"Project","system":"System","receiveTime":"Receive Time","inputPlaceHolder":"Please Input","selectPlaceHolder":"Please Select","refuse":"Refuse","accept":"Accept","newProjectMessage":"New Project Message","newSystemMessage":"New System Message","MessageHistory":"History","Message":"Message"}')},360:t=>{"use strict";t.exports=JSON.parse('{"header_projectAttribution":"ProjectAttribution","header_allItems":"All Items","header_myCreatedProject":"Created","header_myParticipatedProject":"Participated","header_createProject":"Create Project","search_nullSearchRes":"No search results","emptyPage_nullProjectDesc":"There are no items in the current account, you can","card_content_updateOn":"update on","card_content_own":"own","list_header_projectName":"ProjectName","list_header_memberCount":"MemberCount","MyRoleName":"MyRole","ownerName":"Owner","CreationTime":"createTime","projectOperate":"Operate","list_header_setting":"Setting","add_namePlaceholder":"Please enter less than 256 letters","add_dsecPlaceholder":"Please enter less than 500 letters","add_pleaseInputProjectName":"Please enter a project name","add_color":"Color","add_title":"Create Project","add_projectName":"Name","delete_nullNameMsg":"Please enter the project name","roleManage_rolePermissionNotEmpty":"Role permission cannot be empty","roleManage_noChange":"No change","roleManage_modifyPermissionSuccess":"Modify permission successfully","roleManage_modifyPermissionFail":"Modify permission failed, please try again","roleManage_projectRole":"Project Role","roleManage_systemRole":"System Role","roleManage_operationObject":"Type","roleManage_permission":"Permission","roleManage_selectAll":"Select all","roleManage_save":"Save","roleManage_nullDocDetailPermission":"No permission to view file details","roleManage_menuRecycleOperate":"manage","roleManage_nullDwgToPagePermission":"No read permission or edit permission","roleManage_nullRoleManagePermission":"You do not have permission to manage roles in the project","roleManage_nullRecyclePermission":"You do not have permission to manage recycle in the project"}')},401:t=>{"use strict";t.exports=JSON.parse('{"sub_upgrade_member":"Upgrade","sub_renewal_member":"Renewal","sub_expire_left":"Left","sub_expire_days":"days","sub_expire_day":"day","sub_expire_valid":"Valid until","sub_cloud_storage":"Cloud Storage","sub_full_storage":"Cloud Storage Space is full","sub_trail_expire_title":"Trial expiration reminder","sub_sub_expire_title":"Subscription expiration reminder","sub_upgrade_confirm_title":"Confirm purchase of member","sub_renewal_confirm_title":"Confirm renewal member","sub_storage_confirm_title":"Confirm purchase of cloud storage space","sub_full_storage_content1":"Your file could not be saved because there is not enough cloud storage space available. Upgrade members to continue your operation","sub_full_storage_content2":"Your file could not be saved because there is not enough cloud storage space available. Please clean up unnecessary files to continue your operation","sub_upgrade_confirm_content":"Have you successfully purchased a member? After purchasing, I will get advanced function experience and more storage space","sub_renewal_confirm_content":"Have you successfully renewed your membership? After renewal, I will get advanced function experience and more storage space","sub_storage_confirm_content":"I have upgraded my cloud storage space","sub_later":"Later","sub_known":"Got it","sub_trail_expire_content1":"Your personal trial has ","sub_trail_expire_content2":" days left. Please upgrade users as soon as possible to avoid being unable to obtain advanced experience","sub_sub_expire_content1":"Your personal subscription will expire on ","sub_sub_expire_content2":" Please renew it as soon as possible so as not to lose the advanced function experience. After the expiration, the cloud storage space will be restored to 100M, which will affect your file storage, and the data will remain for you for 15 days","sub_invalid_Btn":"No permission, please upgrade your membership to experience","turnManager_space_not_enough":"Operation failed, the other party does not have enough space!"}')},282:t=>{"use strict";t.exports=JSON.parse('{"unknownCommand":"未知命令","getHelp":"请查看帮助。","command":"命令","firstPoint":"指定第一个点","nextPoint":"指定下一点","lineCmdDesc":"指定下一点","angle":"角度(A)","length":"长度(L)","giveUp":"放弃(U)","set":"设置(S)","manyTimes":"多次(M)","locatingPoint":"指定点定位","oppositeCorner":"指定对角点","locatingPointS":"指定点定位或 [设置(S)]","locatingPointSM":"指定点定位或 [设置(S)/多次(M)]","setAngle":"指定角度","setLength":"指定长度","errMsgCommon":"请输入关键字或点!","errMsgAngle":"请输入有效数值角度或一个点","errMsgLength":"请输入有效数值长度或一个点","errMsgLineFirst":"请输入一个点","errPolyLine":"所有线段已被撤消。","pointStyle":"点样式","pointSize":"点大小(S)","relativeSize":"相对于屏幕设置大小(R)","absoluteSize":"按绝对单位设置大小(A)","cmdWin":"命令窗口","classic":"ZWCAD 经典","draft":"二维草图与注释","closeGrid":"栅格关闭","openGrid":"栅格打开","gridOn":"[打开(ON)/特征(A)]","gridOnE":"[打开(ON)/相等(E)]","gridOffE":"[关闭(OFF)/相等(E)]","gridOff":"[关闭(OFF)/特征(A)]","gridAttribute":"属性(A)","gridSpace":"栅格间距","gridSnap":"<栅格间距(同步捕捉)>","horizonSpace":"水平间距","verticalSpace":"竖直间距","KeywordInvalid":"关键字无效","gridErrorMsg":"请输入关键字或距离。","gridSetNextPt":"请指定第二点获取距离","escEnterTip":"按 ESC 或 ENTER 键退出。","errSelect":"无效选择!","notAchieved":"暂未实现。","needInt":"需要整数值。","zoomTip1":"指定窗口的角点","zoomTip2":"输入比例因子 (nX 或 nXP)","zoomTip3":"[全部(A)/中心(C)/范围(E)] <实时>","zoomTip4":"需要距离 (或数字 X)","zoomTip5":"指定中心点","zoomTip6":"请输入一点","zoomTip7":"输入比例或高度","zoomTip8":"全部","zoomTip9":"范围","zoomTip10":"中心点","zoomTip11":"需要选项关键字。","SwitchTo":"切换到","revCloud1":"指定起点或[弧长(A)/矩形(R)/自由绘制(F)] ","revCloud2":"沿云线路径引导十字光标... ","revCloud3":"指定弧长 ","revCloud4":"修订云线完成 ","revCloudError":"请输入有效数值 ","revCloudUnable":"无法创建云线,对于云线的圆弧来说形状太小。","mldHeadFirst":"指定引线箭头的位置或 [内容优先(C)/引线基线优先(L)/选项(O)] <引线箭头优先>: ","mldContentFirst":"指定文字起点或 [引线箭头优先(H)/引线基线优先(L)/选项(O)] <内容优先>: ","mldLineFirst":"指定引线基线的位置或 [引线箭头优先(H)/内容优先(C)/选项(O)] <引线基线优先>: ","mldOptions":"输入选项 [引线类型(L)/引线基线(A)/最大节点数(M)/退出选项(X)] <引线类型>: ","mldLinePosition":"指定引线基线的位置: ","mldLeaderType":"选择引线类型 [直线(S)/无(N)] <直线>: ","mldDogleg":"使用基线 [是(Y)/否(N)] <是>: ","mldDoglegDist":"指定基线距离","mldMaxNodeNumber":"输入引线的最大节点数","mldHeadPosition":"指定引线箭头的位置:","textCmd1":"指定文字高度","textCmd2":"指定文字起点","textCmdCentent":"文本内容","textHeightExceededLimit":"文字高度超出最大值","leader1":"指定引线起点:","mldText":"输入注释文字: ","leader3":"指定引线箭头的位置或 [内容优先(C)/引线基线优先(L)/选项(O)] <引线箭头优先>:","leader4":"输入选项 [引线基线(L)/最大节点数(M)/退出选项(X)] <引线基线>:","leaderNextPt":"指定下一点或 [注释(A)/格式(F)/撤消(U)] <注释>: ","leaderText1":"输入注释文字的第一行: ","leaderText2":"输入注释文字的下一行: ","leaderText3":"输入选项 [箭头(A)/无(N)/平直(ST)] <退出(E)>: ","needAPoint":"请输入一点!","plineFirstPoint":"指定多段线的起点:","plineNextPoint":"指定下一点或 [圆弧(A)]: ","pline2d":"请输入二维点","plinePointOrKey":"请输入二维点或选项关键字。","circleCenterRadius":"指定圆的圆心或 [三点(3P)/两点(2P)]","circleRadius":"指定圆的半径或 [直径(D)]","circleRadiusOnly":"指定圆的半径","circleDiameter":"指定圆的直径","circlePt1":"指定圆上的第一个点: ","circlePt2":"指定圆上的第二个点: ","circlePt3":"指定圆上的第三个点: ","circleDiameterPt1":"指定圆的直径的第一个端点","circleDiameterPt2":"指定圆的直径的第二个端点","positiveNumber":"值必须为正且非零。","invalid":"无效","needPoint":"需要点。","nextDtPoint":"请指定第二点获取距离: ","rectFirstPt":"指定第一个角点或 [倒角(C)/圆角(F)]: ","rectFirstPtOnly":"指定第一个角点: ","rectAnotherPt":"指定其他的角点: ","rectRadius":"指定所有矩形的圆角距离","rectPtOrValue":"需要数值距离或两点。","rectChamferDt1":"指定所有矩形的第一个倒角距离","rectChamferDt2":"指定所有矩形的第二个倒角距离","areaFirstPt":"指定第一点或 [对象(O)] <对象>: ","areaObject":"选取对象进行面积计算: ","areaNextPt":"指定下一个点或 [圆弧(A)]: ","areaEndPt":"指定下一个点或 [圆弧(A)/总计(T)] <总计>: ","areaCount":"面积 = ","areaLength":"周长 = ","wrongArea":"不能使用选中的对象,请重新选择。","vpSyncErr":"视口信息同步失败,无法重生成。","regenFail":"重生成失败。","noSelfIntersecting":"图形存在自交,暂不支持面积运算。","areaArcPt1":"指定圆弧的端点或 ","areaArcPt2":"[直线(L)]: ","distNextPt":"指定第二个点或 [多个点(M)]: ","ptOrKeyword":"需要点或选项关键字。","distMnextPt":"指定下一个点或 [圆弧(A)/长度(L)/总计(T)] <总计> ","distMnextpoint":"指定下一个点或 [圆弧(A)/闭合(C)/长度(L)/放弃(U)/总计(T)] <总计> ","totalDistance":"距离等于 = ","angleXY":"XY面上角 = ","angleWith":"与XY面夹角 = ","xAdd":"X增量 = ","yAdd":"Y增量 = ","zAdd":"Z增量 = ","sectionLength":"指定分段距离: ","inputInvalid":"输入无效。","command_directionTop":"俯视","command_directionBottom":"仰视","command_directionLeft":"左视","command_directionRight":"右视","command_directionFront":"前视","command_directionBack":"后视","command_directionSwiso":"西南等轴测","command_directionSeiso":"东南等轴测","command_directionNeiso":"东北等轴测","command_directionNwiso":"西北等轴测","command_inputOptins":"输入选项 ","command_selectViewport":"选择视图的视口","command_invalid_keywords":"关键字无效","command_directionTip1":"[?/图层状态(LA)/正交图形(O)/删除(D)/还原(R)/保存(S)/用户坐标系(U)/窗口(W)]","command_directionTip2":"[俯视(T)/仰视(B)/前视(F)/后视(BA)/左视(L)/右视(R)] <俯视>","command_unfinished":"命令未实现","command_permissionLimited":"权限受限,无法激活布局空间小视口,该命令失效。","arcFirstPt":"指定圆弧的起点或 [圆心(C)]: ","arcSecondPt":"指定圆弧的第二个点或 [圆心(C)/端点(E)]: ","arcCenter":"指定圆弧的圆心: ","arcStartPt":"指定圆弧的起点: ","arcEndPt":"指定圆弧的端点: ","arcEndPt1":"指定圆弧的端点或 [角度(A)/弦长(L)]","arcChord":"指定弦长: ","arcAngle":"指定包含角: ","arcEndCenter":"指定圆弧的圆心: ","arcEndCenter1":"指定圆弧的圆心或 [角度(A)/方向(D)/半径(R)]: ","arcRadius":"指定圆弧的半径: ","measuregeomMain":"输入选项[角度(A)] <角度>: ","angleResult":"角度 = ","angleMain":"选择直线、圆、圆弧或 <指定顶点>:","anglePoint0":"指定角的顶点","anglePoint1":"指定角的第一个端点","anglePoint2":"指定角的第二个端点","angleNeedLCA":"需要直线、圆或圆弧。","angleNeedL":"需要直线。","angleChoseL2":"选择第二条直线:","measureWrong":"无效关键字","insertPoint":"指定插入点 <0,0>:","scaleFactor":"指定缩放比例因子 <1>:","insertImage":"选择图像文件","getImageError":"获取图片资源失败","selectImage":"请选择一张图片","enterPointTip":"请输入一点!","enterKeyOrPointTip":"请输入关键字或点!","print":"打印","Window_print":"窗口","Direct_print":"显示","Extension_print":"范围","specifyPrintWin":"指定打印窗口","specifyFirst":"指定窗口第一个点:","specifySecond":"指定窗口第二个点:","invalidWin":"窗口无效","print_area":"打印区域","extent_what":"打印范围:","Protrait":"纵向","Landscape":"横向","plotCenter":"居中打印","plotUpside":"反向打印","milimeter":"英寸","pageSet":"页面设置","plotName":"名称:","plotType":"打印类型","plotoffset":"打印偏移","plotOrientation":"图形方向","plotpreview":"预览","plot_fail":"打印失败","plot_ing":"正在打印...","millimeter":"毫米","inches":"英寸","pixels":"像素","plot_paper":"纸张:","plot_paper_size":"纸张大小:","drawingName":"图形名","deviceName":"设备名","layoutName":"布局名称","paperSize":"图纸尺寸","dateAndTime":"日期和时间","loginName":"登录名","batchPlot":"批量打印","blockAndLayer":"图块与图层","layerName":"图层名","plotOptions":"打印选项","plotStampOn":"打开打印戳记","plotLinewidthOn":"打印对象线宽","plotStamp":"打印戳记","plotStampFields":"打印戳记字段","ElectronicSignatureOn":"携带电子签名","ElectronicStampOn":"携带电子签名签章","MachineSianatureOpen":"携带机打签名","userDefinedFields":"用户自定义字段","advancedOption":"高级选项","locationAndOffset":"位置和偏移","location":"位置","orientation":"方向","stampUpsideDown":"戳记倒置","offset":"偏移","offsetRelativeToPrintableArea":"偏移相对于可打印区域","offsetRelativeToPaperBorder":"偏移相对于图纸边界","bottomLeft":"左下","topLeft":"左上","topRight":"右上","bottomRight":"右下","horizortal":"水平","vertical":"垂直","advanced":"高级","textProperties":"文字特性","font":"字体","height":"高度","plotStampUnit":"单位","plotStampUnits":"打印戳记单位","singleLinePlotStamp":"单行打印戳记","selectLayer":"选择图层名","listOfLayer":"图层名列表(可多选)","plotScale":"打印比例设置","fullScale":"布满图纸","customScale":"自定义比例1:","ucs":"用户坐标系","origin":"原点","xAxis":"X轴","yAxis":"Y轴","zAxis":"Z轴","relative":"相对于:","world":"世界","inputSystemVal":"输入 ${} 的新值","systemValErrorTip":"需要有效的数值。","angleDirTip":"仅需要 0 或 1。","Orbit":"3D动态观察","_3dorbitTip":"按 ESC 键退出。"}')},329:t=>{"use strict";t.exports=JSON.parse('{"Me":"我","chinese":"中文","english":"English","cancel":"取消","ok":"确定","or":"或","help":"帮助","open":"开","shutdown":"关","yes":"是","no":"否","recentCommands":"近期使用的命令","cut":"剪切","copy":"复制","copyHistory":"拷贝历史","paste":"粘贴","pasteToCmd":"粘贴到命令行","option":"选项","coordinate":"坐标","snap":"捕捉","grid":"栅格","ortho":"正交","polar":"极轴","oSnap":"对象捕捉","oTrack":"对象捕捉追踪","dynamicUCS":"动态UCS","dynamicInput":"动态输入","lineWidth":"线宽","transparency":"透明度","cycleSelect":"选择循环","fullScreen":"全屏显示","setWorkspace":"设置工作空间","menuRecentView":"最近查看","menuMyFile":"项目文件","menuRecycle":"回收站","menuView":"视图","menuOptions":"选项","menuHelp":"帮助","menuAbout":"关于","details":"详情","and":"和","switchLanguageSuccess":"切换语言成功","switchLanguageFaile":"切换语言失败","commit":"提交","reply":"回复","ZWCAD":"Cloud2D","professional":" V3.0","versionNum":"版本号(VERNUM)","copyrightMsg1":"© 1998-","copyrightMsg2":" 广州中望龙腾软件股份有限公司版权所有","AboutMsg1":"使用本软件须依据安装软件时接受的最终用户许可协议条款的规定,该软件拥有广州中望龙腾软件股份有限公司自主研发的内核,部分功能基于以下第三方的工作成果:","AboutMsg2":"Teigha® is a trademark of Open Design Alliance.","AboutMsg3":"","AboutMsg4":"JPEG image compression library is owned by Independent JPEG Group.","AboutMsg5":"Portions use the ERDAS ECW JPEG2000 SDK Read-Only License.","AboutMsg6":"Portions use Zlib library, owned by the Open Source Initiative.","AboutMsg7":"Portions use XZip, by permission of Hans Dietrich.","AboutMsg8":"Portions use XLISP, by permission of David Michael Betz.","AboutMsg9":"Portions use CXimage, by permission of Davide Pizzolato.","AboutMsg10":"Portions use Hunspell, distributed under the terms of a GPL, LGPL and MPL tri-license.","AboutMsg11":"","AboutMsg12":"Foxit PDF SDK Copyright © 2002-2015, Foxit Software Company, All rights reserved.","AboutMsg13":"TinyXml original code (2.0 and earlier ) copyright © 2000-2006 Lee Thomason.","AboutMsg14":"","AboutMsg15":"","AboutMsg16":"","AboutMsg17":"","AboutMsg18":"DWG is the native file format for Autodesk® AutoCAD® software and is a trademark of Autodesk, Inc.","AboutMsg19":"All other trademarks, trade names or company names and logos referenced herein are used for identification only and are the property of their respective owners.","AboutMsgAdd1":"Portions use webuploader , distributed under the BSD-3-Clause license. Copyright (c) 2014, FEX@Baidu Inc. All rights reserved.","AboutMsgAdd2":"Portions use jQuery JavaScript Library, distributed under the MIT License. Copyright OpenJS Foundation and other contributors","AboutMsgQt":"Protions copyright Qt. <br/> Copyright(C) 2014 Digia Plc and/or its subsidiary(-ies) and other contributors. <br/> Qt and the Qt Logo are the trademarks of Digia Plc and/or its subsidiary(-ies).","optUseWebGL":"使用webGL进行渲染","optTextBorder":"仅显示文字边框","optCannotSeeText":"文字无法分辨时显示为框","optZoomBreak":"连续缩放时进行打断","optZoomHatch":"缩放时不显示填充","optCursorNotShow":"不显示十字光标","optCursorSize":"十字光标大小","optZoomLevel":"缩放因子","mouseSetting":"鼠标设置","commentSetting":"评论面板","commentsPageSize":"显示评论数:","continuousDraw":"连续绘制气泡","file_setting":"文件相关","file_saveFormat":"保存格式","default_open_bg":"默认打开背景","theme_light":"明","theme_dark":"暗","apply":"应用","displayPerformance":"显示性能","display":"显示","objectSnapModes":"对象捕捉模式","failedOpenDrawing":"打开图纸失败。","failedOpenDrawingErrorTips":"请您重新转换或重新上传,然后再尝试打开","failedOpenDrawingBackText":"返回项目文件列表","alternateFont1":"正在用字型","alternateFont2":"替代字型","missingBigFont":"缺失大字体","deleteEntity":"当前实体无法删除,只能删除绘制在标注图层上的实体。","editModeWait":"正在进入编辑模式,请耐心等待……","editModeSuccessfully":"已成功进入编辑模式。","editModeExit":"已退出编辑模式。","editModeFail":"进入编辑模式失败,请稍后刷新页面重试。","editModeBusy":"当前文档正在编辑中,暂不支持协同操作。","editModeTip1":"未进入编辑模式,无法使用编辑命令。","editModeTip2":"保存成功。","editModeTip3":"删除成功。","editModeTip4":"保存失败。","editModeTip5":"删除失败。","editModeTip6":"正在执行编辑命令,无法关闭该图层","editModeTip7":"请进入编辑模式后再切换布局。","editModeTip8":"开始编辑","editModeTip9":"退出编辑","failToActiveViewport":"当前视口激活失败,请重试或刷新页面。","failToSwitchLayout":"切换布局操作失败,请重试或刷新页面。","bussyToSwitchLayout":"暂无法切换布局,请稍后重试。","operateFrequently":"编辑模式切换中,请稍后……","cmdExecuting":"请结束当前命令后再进行操作。","CannotZoomIn":"无法继续放大,请尝试重生成。","CannotZoomOut":"无法继续缩小,请尝试重生成。","regenDone":"已完成重生成操作。","regening":"正在进行重生成","DwgEditor_getFileInfo_error":"获取文件详细信息失败","DwgEditor_getDocInfo_error":"获取文档详细信息失败","DwgEditor_switchLayout_error":"获取布局的lmfId","DwgEditor_retransfer_success":"重生成成功","DwgEditor_retransfer_fail":"重生成失败,即将退出","ZWCADTitle":"Cloud2D","model":"模型","noSupportTitle":"温馨提示","noSupport":"图纸过大,请在中望CAD客户端中查看。","know":"知道了","viewDrawing":"查看","docIsBussy":"其他用户正在编辑此文件","docIsBussyMsg":"正在编辑此文件,您只能以看图模式打开此文件。","savingDwg":"正在保存此文件","savingDwgMsg":"正在保存此文件,您需要等待文件保存后再进行查看,请稍后重试。","readonly":"仅可查看","lastsaved":"最近保存:","inactiveMsg":"非活动消息","reminder":"您的非活动状态已持续15分钟,已自动退出编辑状态。","continueEdit":"继续编辑","invalidRequest":"无效的请求","userAuthorizationFailed":"当前用户授权失败","unableToEnterEditMode":"无法进入编辑模式","noResourceAvailable":"当前无可用资源","noResourceAvailableMsg":"当前无可用资源,不能进入编辑模式,请稍后重试。","editMode":"编辑模式","viewMode":"看图模式","vip":"VIP功能,请先升级会员","configPermission":"请联系管理员配置编辑权限","OpenDwgPhaseInit":"进行初始化","OpenDwgPhaseGetData":"获取数据中","OpenDwgPhaseReadData":"正在读取实体","OpenDwgPhaseGetXrefData":"获取外部参照中","OpenDwgPhaseReadXrefData":"正在读取外部参照","OpenDwgPhaseDrawData":"准备绘制中","OpenDwgPhaseDrawDataEnd":"即将完成","OpenDwgPhaseEnd":"加载完毕","circleTool":"圆形工具","rectangleTool":"矩形工具","polylineTool":"自定义形状工具","insertPin":"置入图钉","hideBubble":"隐藏气泡","showBubble":"显示气泡","filterComment":"筛选评论","noComment":"还没有任何评论","commentTip":"在评论中提供反馈,提问或开始讨论","commentDisabled":"当前视口不支持该操作。","moreComments":"更多评论","commentContentLimit":"评论内容不能超过1000字。","commandBusy":"忙碌中,请先结束当前操作。","isCommenting":"当前评论未提交,请先提交或取消评论。","savingComment":"正在更新评论数据……","revcloudTool":"云线","leaderTool":"箭头","imageTool":"图片","exportComment":"导出评论","keyword":"关键字","reviewer":"评论人","noData":"暂无数据","inputComment":"编写评论……","totalComments":"条评论","unlimitedTime":"时间不限","unlimited":"不限","oneDay":"一天内","oneWeek":"一周内","oneMonth":"一月内","OneYear":"一年内","custom":"自定义","from":"从","to":"到","foldFilter":"收起筛选工具","clearFilter":"清除筛选","versionPrompt":"因新特性,系统升级了模型版本{},如需体验,请点击文件列表的重生成。","copyright":"版权所有","commentSpecialChar":"评论内容中的特殊字符仅包含@和标点符号。","anonymous_transfer_fail":"图纸转换失败,请重新上传","commentMobile_comment":"评论","commentMobile_commentTool":"评论工具","commentMobile_replyComment":"回复评论...","commentMobile_editComment":"编辑评论","commentMobile_reply":"回复","commentMobile_finish":"结束","commentMobile_lastUpdateTime":"上次更新时间","commentMobile_clickToConfirmCircleCenter":"请在图纸中点击确定圆的中心点","commentMobile_clickToSetCircleRadius":"请在图纸上点击另一点,确定圆的半径","commentMobile_clickToSetRectangleStartPoint":"请在图纸上点击确定矩形的第一个角点","commentMobile_clickToSetRectangleEndPoint":"请在图纸上点击另一点,确定矩形的第二个角点","commentMobile_clickToSetCloudStartPoint":"请在图纸上点击确定云线的第一个角点","commentMobile_clickToSetCloudEndPoint":"请在图纸上点击另一点,确定云线的第二个角点","commentMobile_clickToSetPolylineFirstPoint":"请在图纸上点击确定多段线的第一点","commentMobile_clickToSetPolylineNextPoint":"请在图纸上点击确定多段线的下一点","commentMobile_clickToSetLeaderLineStartPoint":"请在图纸上点击确定引线的起点","commentMobile_clickToSetLeaderLineNextPoint":"请在图纸上点击确定引线的下一点","commentMobile_chooseImage":"请选择图片。","commentMobile_clickToSelectImageInsertPoint":"请在图纸上点击选择图片插入的第一点","commentMobile_clickToSetImageEndPoint":"请在图纸上点击另一点,确定图片插入的结束点","commentMobile_clickToSetStampPoint":"请在图纸上点击确定置入戳记的点","commentMobile_chooseCommentToolAndSetColor":"请选择评论工具,并设置评论工具颜色","commentMobile_writeComment":"编写评论...","commentMobile_noCommentData":"无评论数据","commentMobile_publishSuccess":"发表成功","commentMobile_publishFailed":"发表失败","commentMobile_replySuccess":"回复成功","commentMobile_replyFailed":"回复失败","commentMobile_deleteSuccess":"删除成功","commentMobile_deleteFailed":"删除失败","commentMobile_editSuccess":"编辑成功","commentMobile_editFailed":"编辑失败","version_list":"版本和历史记录","version_fresh_local":"更新版本","version_fresh_cloud":"从云端更新版本","version_modal_edit":"编辑版本","version_tip":"提示","version_all":"查看全部","version_list_nothing":"暂无版本历史记录","sign_input_plotMsg":"请输入对应机打信息","sign_upload_seal":"请上传对应签章图","sign_upload_cert":"请上传对应CA证书文件","sign_input_cert_key":"请输入对应CA证书密钥","sign_upload_dwg":"请上传对应dwg","sign_demo_btn":"电子签章演示","sign_locate":"定位","sign_blockData_title":"电子签章 - 导入信息","sign_blockData_save_success":"保存成功","sign_blockData_save_fail":"保存失败","sign_blockData_saving":"保存中,请稍候","sign_upload_typeError":"文件类型错误","sign_upload_sizeExceed":"文件超出最大限制","options_format_tip":"编辑模式下不可切换","options_format_select1":"原文件格式","options_version_select1":"原文件版本"}')},794:t=>{"use strict";t.exports=JSON.parse('{"editor_File":"文件","editor_Empty":"空","editor_View":"视图","editor_form":"格式","editor_Window":"窗口","editor_RecentFileList":"最近打开文件","editor_Tool":"工具","editor_Help":"帮助","editor_commentPanel":"评论","editor_commentSign":"添加标记","editor_follow":"关注","editor_unfollow":"取消关注","editor_bubble":"气泡","editor_About":"关于","editor_commandPanel":"命令行","editor_layout":"布局","editor_layerPanel":"图层","editor_ZWsoftWebsite":"中望网站","editor_ZWCADTechCommunity":"ZWCAD技术社区","editor_name":"命名","editor_perpendicular":"正交","editor_move":"移动","editor_preference":"首选项","header_download":"下载","header_uploadWait":"等待上传","header_uploading":"正在上传","header_uploadComplete":"上传完成","header_uploadingList":"上传列表","header_msgList":"消息列表","header_manageAccount":"个人设置","header_subscription":"我的订阅","header_myShare":"我的分享","header_logOut":"退出","header_toAdmin":"后台管理","header_toHome":"前往工作台","header_uploadTips":"仅展示本次上传任务","userInfo_account":"账号信息","userInfo_setting":"系统设置","userInfo_myShare":"我的分享","userInfo_tips":"提示:分享链接有效期失效超过一个月的链接记录将被自动清理","userInfo_shareLoading":"正在加载中...","userInfo_hideInvalidShareLink":"隐藏失效链接","userInfo_cancelShare":"取消分享","userInfo_edit":"编辑","userInfo_avatar":"头像","userInfo_name":"用户名","userInfo_bindPhone":"绑定手机","userInfo_email":"邮箱","userInfo_editName":"修改用户名","userInfo_editPhone":"修改手机","userInfo_editEmail":"修改邮箱","userInfo_back":"返回","header_emptyRecord":"暂无记录","editor_zoom":"缩放","editor_translate":"平移","editor_options":"设置","editor_tool_layer":"图层","editor_tool_move":"移动","editor_tool_zoomWindow":"窗口缩放","editor_tool_ZoomDynamic":"动态缩放","editor_tool_ZoomScale":"比例缩放","editor_tool_ZoomObject":"对象缩放","editor_tool_ZoomCenter":"中心缩放","editor_tool_ZoomIn":"放大","editor_tool_ZoomOut":"缩小","editor_tool_ZoomAll":"全部缩放","editor_tool_ZoomRange":"范围缩放","editor_tool_Polyline":"多段线","editor_tool_rectangle":"矩形","editor_tool_Circle":"圆","editor_tool_CircleRadius":"圆心,半径","editor_tool_CircleDiameter":"圆心,直径","editor_tool_Circle2p":"两点","editor_tool_Circle3p":"三点","editor_tool_Arc":"圆弧","editor_tool_Arc3p":"三点","editor_tool_ArcSCE":"起点,圆心,端点","editor_tool_ArcSEC":"起点,端点,圆心","editor_tool_ArcCSE":"圆心,起点,端点","editor_tool_Measure":"测量","editor_tool_Dist":"测量长度","editor_tool_Angle":"测量角度","editor_tool_Area":"测量面积","editor_tool_Sign":"签章","editor_tool_Signature":"电子签名","editor_tool_Stamp":"电子签章","message_read":"已读","message_unRead":"未读","message_signRead":"标记已读","message_signReadAll":"全部标为已读","message_clearUp":"清空全部","editor_byLayer":"随层","editor_byBlock":"随块","editor_default":"默认","editor_layerColor":"颜色","editor_layerViewportColor":"视口颜色","editor_viewportLineWeight":"视口线宽","editor_layerName":"名称","editor_layerVis":"开关","editor_layerFreeze":"冻结","editor_layerLock":"锁定","editor_layerType":"线型","editor_layerLineWeight":"线宽","editor_layerOpacity":"透明度","editor_loading":"图纸加载中……","editor_cancelLoading":"取消加载","editor_save":"保存","editor_xrefPanel":"外部参照","editor_opmPanel":"特性","editor_signPanel":"签章","xref_name":"参照名","xref_status":"状态","xref_size":"大小","xref_type":"类型","xref_savePath":"保存路径","xref_date":"日期","xref_foundPath":"找到位置","xref_detail":"详细信息","xref_preview":"预览","xref_notfound":"未找到","xref_loaded":"已加载","xref_unloaded":"已卸载","xref_opened":"已打开","xref_notref":"未参照","xref_current":"当前","xref_cannot_preview":"预览不可用","xref_manager":"外部参照","rollRightToEnd":"向右滚动到末尾","rollRight":"向右滚动","rollLeftToStart":"向左滚动到起始","rollToLeft":"向左滚动","draftingSettings":"草图设置","objectSnapOn":"启动对象捕捉(F3)(O)","objectSnapMode":"对象捕捉模式","endpoint":"端点(E)","midpoint":"中点(M)","center":"圆心(C)","geometricCenter":"几何中心(G)","node":"节点(D)","quadrant":"象限点(Q)","extension":"延长线(X)","insertion":"插入点(S)","perpendicular":"垂足(U)","tangent":"切点(N)","nearest":"最近点(R)","parallel":"平行线(L)","intersection":"交点(I)","defaultInter":"默认(F)","apparentIntersect":"外观交点(A)","selectAll":"全部选择","clearAll":"全部清除","editor_versionPanel":"版本记录","_Closed":"闭合","_ClosedBlank":"实心闭合","_Dot":"点","_ArchTick":"建筑标记","_Oblique":"倾斜","_Open":"打开","_Origin":"指示原点","_Origin2":"指示原点2","_Open90":"直角","_Open30":"30度角","_DotSmall":"小点","_DotBlank":"空心点","_DotSmallBlank":"空心小点","_BoxBlank":"方框","_BoxFilled":"实心方框","_DatumBlank":"基准三角形","_DatumFilled":"实心基准三角形","_Integral":"积分","_None":"无","dimensionStyle":"标注样式","dimensionLines":"尺寸线","baselineSpacing":"基线间距 (W):","extensionLinesOffsetFrom":"尺寸界限偏移","origin":"原点 (O):","dimensionLine":"尺寸线 (S):","arrowHeads":"箭头","startingArrowHead":"起始箭头 (S):","arrowSize":"箭头大小 (I):","textAppearance":"文字外观","textStyle":"文字样式 (Y):","textHeight":"文字高度 (T):","scaleForDimensionFeatures":"标注特征比例","overallScale":"全局比例 (V):","linearDimension":"线性标注","precision":"精度 (P):","allDimStyles":"所有标注样式 (S): ","lines":"标注线","symbolsAndArrows":"箭头","text":"文字","fit":"调整","primaryUnits":"主单位","dim_back":"返回","dim_help":"帮助","dim_angular":"角度","dim_diameter":"直径","dim_leader":"引线","dim_linear":"线性","dim_ordinate":"坐标","dim_radial":"半径","text_style":"文字样式","styleName":"样式名","textMeasurements":"文字度量","widthFactor":"宽度因子 (W):","textFont":"文本字体","text_name":"名称 (M):","fontNotFound":"(未找到)","readingDwg":"正在读取图纸信息...","layout_switching":"布局切换中...","theme_dark_tips":"切换背景色为明","theme_light_tips":"切换背景色为暗","viewInWeChat":"小程序看图","qr_code_tips_one":"微信扫码关注小程序","qr_code_tips_two":"看图无忧","exit":"退出","repeat":"重复","pan":"实时平移","zoom":"缩放","zoomIn":"放大","zoomOut":"缩小","zoomAll":"全部缩放","zoomCenter":"中心点缩放","zoomExtents":"范围缩放","regen":"重生成","3DOrbit":"3D动态观察","lastInput":"最近操作"}')},277:t=>{"use strict";t.exports=JSON.parse('{"replaceFont":"缺失字体替换方案配置","selectNoUpload":"选中文件状态下不允许上传","searchNoUpload":"查询文件状态下不允许上传","uploadBegin":"已加入上传任务","uploadFileSize":"文件大小不能超过","uploadFileNum":"单次上传操作不能超过10个文件","uploadFileErr":"上传出错!请检查后重新上传!错误代码","uploadErrorMsg1":"上传异常,当前存在","uploadErrorMsg2":"个文件超出大小限制 (","uploadErrorMsg3":"个文件格式错误","uploadFileSuccess":"上传成功","uploadFileFail":"上传失败","uploadFileFinish":"上传完成","uploadFileFinishMsg1":"个文件上传成功","uploadFileFinishMsg2":"个文件上传失败","fontReplaceAttention":"注意 : 如您已安装ZWCAD客户端,可参考路径:#\\\\zwcad 2024\\\\UserDataCache\\\\Support\\\\zwcad.fmp获取fmp文件,沿用客户端文字替换规则。或","setAndUpload":",设置替换规则后上传。","fontReplaceRule":"或者您也可以手动设置替换规则,原字体与替换字体文件名后缀请保持一致。大字体只能用大字体替换,小字体只能用小字体替换,符号形仅用于图纸显示不能用于替换其他字体。","fontIndex":"序号","sourceFont":"原字体","targetFont":"替换字体","uploadConfig":"上传配置文件","downloadFmp":"下载fmp文件模板","exportFontConfig":"导出字体配置","srcPlaceholder":"请输入字体文件名,如txt.shx","targetPlaceholder":"请输入字体文件名,如simplex.shx","replaceRules":"替换规则","add":"新增","ReplaceFontErrorMsg1":"存在空白项","ReplaceFontErrorMsg2":"原文字和替换字体不能相同","ReplaceFontErrorMsg3":"字体名过长","ReplaceFontErrorMsg4":"不能包含特殊字符\\n\\\\ / : * ? \\" < > |","fileSuffixError":"原字体或替换字体文件名后缀不符合要求,目前仅支持.ttf和.shx。","shapesFontTip":"符号形不能用于配置缺失字体替换方案","typeMismatch":"类型不匹配","nullRecentView":"暂无最近打开的文件","createInvite":"马上开始创建项目,一起创作","nullOtherMember":"当前项目无其他成员","nullNotJoinRes":"暂无已邀请未加入的成员","workspaceRemove":"移出工作台","showProject":"在项目中显示","setting_rename_null":"项目名称不能为空","setting_rename_over50":"项目名称不能超过50个字符","setting_reDesc_over200":"项目描述不能超过200个字符","setting_rename_success":"修改项目名称成功","setting_reDesc_success":"修改项目描述成功","setting_reColor_success":"修改项目颜色成功","membersAndPermissions_removeMember":"移除","membersAndPermissions_memberRemoved":"这个成员已经被移除","membersAndPermissions_nullSearchRes":"暂无搜索结果","membersAndPermissions_inviteConfirm":"邀请","membersAndPermissions_memberAlreadyExists":"该成员已经在项目中","RecentlyEdited":"最近编辑","ProjectMembers":"项目成员","Creator":"创建者","inviteSuccess":"邀请成功","nullRole":"当前未选择任何用户","pleaseSelectRolr":"请选择用户角色","project":"项目","inviteMemberTo":"邀请成员加入","selectRole":"请选择角色","InputMemberDesc":"通过姓名、手机号、邮箱添加新成员,可输入多个,按回车确认","notJoinedMember":"已邀请未加入成员","ReInvite":"重新发送邀请","cancelInvite":"取消邀请","ReInviteSuccess":"重新邀请成功","cancelInviteSuccess":"取消邀请成功","ChangePermission":"项目访问权限已修改","leaveProjectConfrim":"你确定要离开项目吗","leaveProjectDesc":"离开项目后,你在此项目中创建的文件将自动转交给项目所有者","inviteMember":"邀请成员","editMember":"设置角色","notJoined":"已邀请未加入","leaveProject":"离开项目","searchInput":"请输入关键字","memberName":"成员","email":"邮箱","phone":"电话","lastTime":"加入时间","roleName":"角色","deleteTitle":"你确定要删除项目吗","inputProjectName":"请输入项目的名称","transfer":"转让","labelColor":"标志颜色","deleteProjectConfirm":"删除项目后,项目内所有文件将立即被永久删除,此操作不可撒销,请输入项目名称以确认。","deleteProjectDesc":"永久删除项目所有文件,且不可恢复","deleteProject":"删除项目","editDesc":"编辑描述","projectDescInput":"项目描述请少于200字符","projectDescConfirm":"输入,200个字符以内","projectDesc":"项目描述","projectRename":"编辑名称","projectNameDesc":"项目名称请少于50字符","projectSetting":"项目设置","searchMembersDesc":"每个项目只有一位所有者,转让后你将变为查看者","searchMembers":"搜索成员","transferProject":"转让项目","transferProjectNullTarget":"请选择要转让的成员","people":"人","softwareName":"ZWCAD 专业版","softwareNameLinux":"ZWCAD Linux","softwareDesc":"强大的编辑功能,同一账号登录后图纸可以同步云端","softwareSize":"软件大小","environment":"运行环境","download32bit":"32位下载","download64bit":"64位下载","clickToDownload":"点击下载","moreType":"更多应用类型请点击进入下载平台","greeting":"您好","iCreated":"我的项目","allProjectNum":"全部项目","joinProjectNum":"参与项目","myAllProjectMembers":"项目总成员数","RecentView":"最近打开的文件","membersAndPermissions":"成员与权限","ProjectInformation":"项目信息","MyFiles":"项目文件","RoleManage":"角色管理","Recycle":"回收站","MyFonts":"字体文件","upload":"上传","newFolder":"新建文件夹","share":"分享","share_onlyOne":"每次只能分享一个文件","share_image":"图片不支持分享","share_folder":"文件夹不支持分享","download":"下载","downloadFailTips_deleted":"下载失败, 文件已被删除","downloadFailTips_permissionNull":"没有下载字体的权限","delete":"删除","edit":"编辑","deleteComplete":"彻底删除","rename":"重命名","config":"配置","copy":"复制","move":"移动","name":"文件名","editTime":"编辑日期","fontVersion":"版本","size":"大小","creator":"所有者","defaultFont":"默认替换字体","systemFont":"系统自带,不占空间","bigFont":"大字体","unifont":"小字体","shapesfont":"符号形","setDefaultFont":"置为默认替换字体","setDefaultFontTip":"图纸中的缺失字体将优先使用配置的替换字体呈现。当无配置的替换字体时,将使用设置的默认字体呈现。<br/>请确认是否将该字体({})置为默认替换字体?","setDefaultFontSuccessful":"替换字体设置成功。","setDefaultFontFail":"替换字体设置失败。","directory":"所在目录","goback":"返回上一级","allFiles":"全部文件","allFonts":"全部字体文件","fontsTip":"友情提示:上传项目文件后,如进行了上传字体文件、删除字体文件、配置缺失字体替换方案、修改默认替换字体操作,请前往项目文件列表重生成图纸文件,可查看最新的、带有文字效果的图纸内容。","filesLoaded":"已全部加载,","total":"共","unit":"个","images":"个图片","docOpen":"打开","docDetail":"详细信息","lastModified":"最近编辑","createTime":"创建时间","fileFormat":"文件格式","searchDocs":"搜索您的文件","pasteTo":"复制到","moveTo":"移动到","copyHere":"复制到此","moveHere":"移动到此","duplicateFileTips":"重复文件提示","confirm":"确定","cancel":"取消","selectAll":"全选","selected":"个已选中","folder":"文件夹","isEmpty":"空空如也","space":"空间","click":"点击","button":"按钮","cannot_get_data":"无法成功获取数据","cannot_find_search_value":"您的文件中,没有找到相应的内容","sortByTime":"按编辑日期","sortByName":"按文件名","sortByShareDate":"按分享日期","sortByEditDate":"按编辑日期","sortByshareTime":"按分享日期","sortBybelongProject":"按所属项目","pasteOperTip":"如选择生成副本,复制的文件将在复制的名称中加一个编号的方式保存;默认处理方式的文件,将自动被跳过。","existingFiles":"已有的文件","copyingFiles":"正在复制的文件","movingFiles":"正在移动的文件","skip":"跳过该文件","cover":"覆盖文件","duplicate":"生成副本","skipAll":"全部跳过","duplicateAll":"全部生成副本","success":"成功","fail":"失败","joinUploadTask":"已加入上传任务","waiting":"请稍候...","getRecentFiles":"获取最近文件","getRecycleDoc":"获取回收站文档","fileRestore":"文件恢复","fileRemoveCompletely":"文件彻底删除","regen":"重生成","restore":"还原","remove":"彻底删除","reviewTime":"最近浏览","path":"路径","clear":"清空回收站","notEdit":"名称未修改","selectNull":"未选中任何文档","uploadExceed":"上传文件超过限制,最大为10M","uploadFileType":"上传的文件中存在","wrongType":"个文件格式不对","uploadTypeErr":"上传的文件格式不对","empty_recycle":"你的回收站为空噢~","recycle_empty_tip":"回收站为你保存 15天 删除的文件","recent_empty_tip":"最近浏览为空","more-operation":"更多","getDetail":"获取详情","clearTip":"清空回收站将清除回收站内所有文件/文件夹<br/>清除后不可恢复,请确定是否继续?","inputExceed":"输入字符范围0~256","transfering":"转换中,请稍候","empty_name":"名称不能为空","start_download":"已加入下载列表","search":"搜索","deleteTime":"删除日期","home_title":"新一代云CAD设计协同平台","home_content_first":"可靠的二维设计、开放的生态拓展","home_content_second":"灵活的图纸与项目协同管理","login":"立即登录","loginExpiredMsg":"登录过期,请重新登录","newFolder_selectedFiles":"选中文档状态下,不能新建文件夹","rename_multipleDocs":"多文档选中下不能重命名","font_rename":"暂不支持字体重命名","download_folder":"目前文件夹不支持下载","replicate":"目前文件不支持复制","regen_folder":"文件夹不支持重生成","regen_image":"图片不支持重生成","doc":"文档","rename_tip":"此位置已包含同名文件","delete_free_tip":"删除的文件可在15天内通过回收站还原","delete_tip":"删除的文件可通过回收站还原","rename_tip_title":"重命名文件","delete_tip_title":"删除提示","docs":"个文件","confirm_select_delete":"确认要把所选的","confirm_delete":"确认要删除所选的","confirm_rename":"确定将","put_in_recycle":"放入回收站","renamed":"重命名为","?":"吗","restore_selected_docs":"确认恢复所选文档吗?","remove_tip":"清除后不可恢复,请确定是否继续?","checkbox":" ","operate":" ","name_Error_haveSC":"名字不能包含下列字符:\\n\\\\ / : * ? \\" < > |","guide_reject_text":"您的账户审核不通过","guide_reivew_text":"您的账户正在审核,请耐心等待","guide_reivew_tips":"平台将在24小时之内为您审核,审核通过之后,方可登录Cloud ZWCAD","guide_notAvailable_text":"当日体验名额已经用完,请您明天再来","guide_welcome":"欢迎来到Cloud2D","guide_welcome_tips":"为保证账户尽快通过审核, 让我们进一步了解您","guide_form_phone":"请输入您的手机号","guide_form_trade":"从事行业","guide_form_business":"企业或组织","guide_form_occupation":"你的职业","guide_form_save":"完善信息","guide_complete_text":"请完善账号信息...","guide_forbidden_text":"你的账号被禁用","guide_forbidden_tips":"该账号因涉嫌传播敏感信息或违规行为被禁用","transferFail_open":"未转换成功的图纸不能打开,请尝试本地打开","transferFail_open_mobile":"未转换成功的图纸不能打开,请耐心等待","saving":"保存中","belongProject":"所属项目","shareDate":"分享日期","shareTime":"分享日期","expireTime":"失效日期","visitCount":"浏览次数","ScanToView":"扫一扫查看","shareDetail_belongProject":"所属项目","shareDetail_owner":"所有者","shareDetail_createTime":"创建时间","shareDetail_recentEdit":"最近编辑","shareDetail_shareDate":"分享日期","shareDetail_expirationDate":"失效日期","shareDetail_accessPassword":"访问密码","shareDetail_shareScope":"分享范围","shareDetail_visitNumber":"浏览次数","shareDetail_fileSize":"文件大小","shareDetail_fileFormat":"文件格式","shareDetail_belongDirectory":"所在目录","shareDetail_noPerm1":"您目前没有本图纸的分享权限","shareDetail_noPerm2":"恢复权限后可操作本链接","shareDetail_projectDelete":"项目已被删除","shareDetail_fileDelete":"文件已被删除","shareDetail_permissionError":"没有操作权限","shareDetail_searchNameTooLong":"搜索的关键词长度超出最大限制: 256","shareDetail_searchNameResNull":"列表为空","editing":"正在编辑","applyAK":"申请AK","checkAK":"查看AK","copyAK":"复制AK","checkSK":"查看SK","copySK":"复制SK","whiteListSetting":"白名单设置","isTrusted":"可信状态","refererEnable":"白名单启用状态","cacheEnable":"缓存启用状态","save":"保存","trusted":"可信","notTrusted":"不可信","enable":"启用","notEnable":"不启用","applySuccess":"申请AK成功","akNotAvailable":"无可用AK,请先申请!","skNotAvailable":"无可用SK,请先申请!","copySuccess":"复制成功","saveSuccess":"保存成功","whiteList_Placeholder":"请输入白名单地址, 输入回车键换行","localOpening":"本地打开","picNotAllowed":"图片不支持本地打开","folderNotAllowed":"文件夹不支持本地打开","multiSelectNotAllowed":"本地打开不支持多选","check_plugin_content":"正在唤起中,请稍后...","check_plugin_tip":"本地打开提示","check_plugin_tip1":"您即将使用端云协同启动ZWCAD客户端在本地打开图纸。","check_plugin_tip2":"请确保已安装端云协同插件和ZWCAD客户端。","check_plugin_tip3":"若未安装ZWCLOUD2D插件, 请点击","check_plugin_tip4":"若未安装ZWCAD客户端, 请点击","check_plugin_tip5":"此处下载","openClient":"打开客户端","calling":"正在唤起","currentSdkVersion":"您当前订阅的sdk版本为","trailVersion":"试用版","stanVersion":"基础版","profVersion":"专业版","fullVersion":"完全版","editModeNotSupported":"不支持编辑功能","noSelection":"无选择","view":"视图","centerX":"中心点 X","centerY":"中心点 Y","centerZ":"中心点 Z","viewHeight":"高度","viewWidth":"宽度","general":"基本","handle":"句柄","layer":"图层","varies":"*多种*","OpenAPITips":"**第一次申请AK成功之后, 请联系系统管理员申请OpenAPI版本**","chromeVersionLow":"95以下版本可能存在兼容性问题,请升级至95或以上版本。","safariVersionLow":"safari 15.4以下版本可能存在兼容性问题,请升级至15.4或以上版本。","service_degradedTip":"服务已被降级,请稍后再试","service_unavailable":"服务不可用,请稍后再试","pluginTitle":"端云协同","pluginTips":"连接CAD客户端与Cloud2D云端,助力一键在本地打开云端图纸、图纸本地编辑保存后一键同步至云端、在本地一键分享云端图纸等","pluginDownload":"下载插件","pluginUse":"查看用法","dwgTransfering":"图纸转换中...","quickView":"快速看图","loginTips":"快速看图仅支持不超过10MB的图纸, 如需在线查看更大图纸请先登录!","selectLocal":"选择本地图纸","agreeTip1":"同意","agreeTip2":"隐私声明","agreeTip3":"和","agreeTip4":"服务协议","agreeTip5":"请您阅读并点击\'同意\'相关协议!","clickToSelect":"点此选择","sampleDrawing":"样例图纸","please":"请","login1":"登录","functionLimited":"您当前还没有登录, 登录后可使用该功能","entryEdit":"进入编辑","selectDrawing":"选择图纸","loginAndRegister":"登录/注册","formatConversion":"格式转换","convertFormat":"转换格式","conversion_not_available":"当前已存在转换任务,请稍后再试","conversion_unAvailable_doc":"存在不支持格式转换的文档","conversion_image":"图片不支持格式转换","conversion_folder":"文件夹不支持格式转换","conversion_limited":"最多支持10个文件的批量转换, 请重新选择","conversion_confirm":"确认","conversion_export":"导出","conversion_list":"待转换文件","conversion_failed":"格式转换失败","conversion_succeed":"文件导出成功!","conversion_timed_out":"请求超时,文件格式转换失败","version_open":"打开","version_compare":"版本对比","version_restore":"恢复到此版本","version_edit":"编辑版本信息","version_create":"从此处创建版本","version_delete":"删除","version_name":"版本名称","version_description":"描述","version_500_limit":"请输入,500字以内","version_create_condition":"非编辑状态下,不能创建版本","version_delete_tip":"当前显示的版本不可删除","version_restore_tip1":"如有修改,请先以当前工作区创建版本,再恢复到此版本,否则将丢失在当前工作区的修改。","version_btn_restore":"继续恢复","version_btn_create":"创建版本","version_delete_tip1":"版本删除后,将无法恢复!请确认是否删除?","version_enter":"请输入","version_not_null":"必填字段,不得为空","version_restore_tip2":"确认恢复到此版本?","version_btn_restore1":"恢复","version_header_tip":"创建该版本","version_success_create":"创建成功","version_success_edit":"编辑成功","version_success_delete":"删除成功","version_success_restore":"恢复成功","version_insufficient_permissions":"权限不足","version_success_update":"版本更新成功","version_loading_update":"正在更新版本","version_typeError_update":"文件类型错误","version_progress_update":"版本更新","version_loading_switch":"版本切换中","watermark":"文件水印","watermarkDesc":"开启后,成员查看文件时会显示水印,水印显示为查看图纸成员用户名/手机尾号/日期。图纸被分享后,他人查看被分享图纸时会显示水印,水印显示为分享者用户名/手机尾号/日期","watermarkEnabled":"文件水印已开启","watermarkOff":"文件水印已关闭","save_to_cloud":"存至云盘","save_success":"图纸保存成功","import_from_wechat":"一键从微信导入dwg图纸","import_tips":"防止文件被清除","import_drawings_to":"导入图纸存至","import_no_folder_available":"当前路径下无可选文件夹","import_not_available":"您在当前项目中无上传权限,请联系项目管理员","agreement_title":"请确认是否同意","agreement_i_agree":"我同意","agreement_privacy":"隐私声明","agreement_and":"和","agreement_service_agreement":"服务协议","agreement_please_agree":"请勾选同意协议","project_no_project":"当前账户没有项目","LY_seat_assign":"分配坐席","LY_seat_tip":"尊敬的管理员,您好!您可通过分配中望Cloud2d产品坐席给团队设计师使其拥有中望Cloud2d产品羚羊云高级团队版本权限。分配后,您可随时取消、重新分配。请确认是否立即前往分配?","upload_folder":"文件夹上传","folder_max_accounts":"总文件数超出限制","upload_size_exceed":"文件过大","upload_ext_error":"格式不对","upload_size_zero":"内容为空","upload_modal_total":"总共","upload_modal_success":"上传成功","upload_modal_fail":"上传失败","upload_modal_ing":"上传中","dwg_saving":"正在保存..."}')},462:t=>{"use strict";t.exports=JSON.parse('{"workspace":"工作台","viewAllProject":"查看全部项目","createNewProject":"创建新的项目","print":"打印","share_setting":"分享设置","share_fileShare":"文件分享","share_validPeriod":"分享有效期","share_ValidForever":"永久有效","share_30Days":"30天","share_7Days":"7天","share_1Day":"1天","share_scope":"分享范围","share_everyoneCanView":"所有人可查看","share_copyLink":"复制链接","share_copyLinkAndPassword":"复制链接及\\n密码","share_usePassword":"访问密码","share_ScanToView":"扫一扫查看","share_cancel":"取消","share_createAndShare":"创建并分享","share_resetLink":"重置链接","share_cancelSharing":"取消分享","share_copySharing":"复制链接","share_copySharingAndPassword":"复制链接和密码","share_resetLinkSuccessfully":"链接已重置","share_linkCopySuccess":"链接复制成功, 所有人可查看","share_linkAndPasswordCopySuccess":"链接及密码复制成功,所有人可查看","share_resetLinkAndPasswordSuccessfully":"链接及密码已重置","share_cancelShareSuccessfully":"取消分享成功,既往链接已失效","share_extractionPassword":"提取密码","share_passwordTrue":"有","share_passwordFalse":"无","share_passwordInputError":"请输入4位字母或数字","share_setPasswordSuccessfully":"设置密码成功","share_updatePasswordSuccessfully":"更新密码成功","share_cancelPasswordSuccessfully":"取消密码成功","share_generateShareLinkSuccessfully":"创建分享链接成功","share_link":"链接","share_password":"密码","share_passwordNull":"无","share_timeLimitValidForever":"永久有效","share_timeLimitExpired":"已过期","share_convertFailedCannotShare":"未转换成功的图纸不能分享,请重新转换或重新上传,待转换成功后再进行该操作","share_to":"分享到","share_wechat_friend":"微信好友","share_copy_link":"复制链接","share_qr_code":"二维码","share_qr_code_modal":"分享二维码","benefits_compare":"权益对比","header_complain":"我要吐槽","header_advice":"咨询"}')},879:t=>{"use strict";t.exports=JSON.parse('{"status":"状态","msgContent":"消息内容","projectName":"项目名称","receiveTime":"接收时间","project":"项目","system":"系统","inputPlaceHolder":"请输入关键字","selectPlaceHolder":"请选择项目","refuse":"拒绝","accept":"接受","newProjectMessage":"新增一条项目信息","newSystemMessage":"新增一条系统信息","MessageHistory":"消息历史","Message":"消息"}')},951:t=>{"use strict";t.exports=JSON.parse('{"header_projectAttribution":"项目归属","header_allItems":"全部项目","header_myCreatedProject":"我创建的","header_myParticipatedProject":"我参与的","header_createProject":"创建项目","search_nullSearchRes":"暂无搜索结果","emptyPage_nullProjectDesc":"当前账户没有项目,您可以","card_content_updateOn":"更新于","card_content_own":"所有","list_header_projectName":"项目名称","list_header_memberCount":"项目总人数","MyRoleName":"我的角色","ownerName":"所有者","CreationTime":"创建时间","projectOperate":"操作","list_header_setting":"设置","add_namePlaceholder":"请输入50个字符以内","add_dsecPlaceholder":"请输入200个字符以内","add_pleaseInputProjectName":"请输入项目名称","add_color":"颜色","add_title":"创建项目","add_projectName":"项目名称","delete_nullNameMsg":"请输入项目名称","roleManage_rolePermissionNotEmpty":"角色权限不可为空","roleManage_noChange":"没有修改","roleManage_modifyPermissionSuccess":"修改权限成功","roleManage_modifyPermissionFail":"修改权限失败,请重试","roleManage_projectRole":"项目角色","roleManage_systemRole":"系统角色","roleManage_operationObject":"操作对象","roleManage_permission":"权限","roleManage_selectAll":"全选","roleManage_save":"保存","roleManage_nullDocDetailPermission":"没有查看文件详细信息的权限","roleManage_menuRecycleOperate":"管理","roleManage_nullDwgToPagePermission":"没有看图模式权限或编辑模式权限","roleManage_nullRoleManagePermission":"您在当前项目中没有管理角色的权限","roleManage_nullRecyclePermission":"您在当前项目中没有管理回收站的权限"}')},720:t=>{"use strict";t.exports=JSON.parse('{"sub_upgrade_member":"升级会员","sub_renewal_member":"续费会员","sub_expire_left":"剩余","sub_expire_days":"天","sub_expire_day":"天","sub_expire_valid":"有效期至","sub_cloud_storage":"云存储","sub_full_storage":"云存储空间已满","sub_trail_expire_title":"试用过期提醒","sub_sub_expire_title":"订阅到期提醒","sub_upgrade_confirm_title":"确认购买会员","sub_renewal_confirm_title":"确认续费会员","sub_storage_confirm_title":"确认购买云存储空间","sub_full_storage_content1":"无法保存您的文件,因为可用的云存储空间不足。升级会员,以继续您的操作。","sub_full_storage_content2":"无法保存您的文件,因为可用的云存储空间不足。请清理不需要的文件,以继续您的操作。","sub_upgrade_confirm_content":"您是否已成功购买会员?购买后将获得高级功能体验以及更大的存储空间。","sub_renewal_confirm_content":"您是否已成功续费会员?续费后将继续获得高级功能体验以及大容量的存储空间。","sub_storage_confirm_content":"我已购买云存储空间。","sub_later":"以后再说","sub_known":"知道了","sub_trail_expire_content1":"您的个人试用剩余","sub_trail_expire_content2":"天,请尽快升级用户,以免将无法获得高级功能体验。","sub_sub_expire_content1":"您的个人订阅版将于","sub_sub_expire_content2":"到期,请尽快续费,以免将无法获得高级功能体验,到期后,云存储空间将恢复至100M,将影响您的文件储存,期间数据仍为您保留15天。","sub_invalid_Btn":"暂无权限,请升级会员后体验","turnManager_space_not_enough":"操作失败,对方没有足够空间!"}')}},s={};function l(t){var e=s[t];if(void 0!==e)return e.exports;var n=s[t]={exports:{}};return o[t].call(n.exports,n,n.exports,l),n.exports}l.m=o,l.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return l.d(e,{a:e}),e},l.d=(t,e)=>{for(var n in e)l.o(e,n)&&!l.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},l.u=t=>t+".js",l.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),l.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},l.tu=e=>(void 0===t&&(t={createScriptURL:t=>t},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(t=trustedTypes.createPolicy("angular#bundler",t))),t.createScriptURL(e)),l.p="",l.b=document.baseURI||self.location.href,(()=>{"use strict";var t={};function o(t){return"function"==typeof t}l.r(t),l.d(t,{ZcDbCircle:()=>K6,ZcDbHatch:()=>J6,ZcDbLine:()=>SJ,ZcDbPolyline:()=>q6,ZcDbText:()=>$6});let s=!1;const c={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;r.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else s&&r.log("RxJS: Back to a better error behavior. Thank you. <3");s=t},get useDeprecatedSynchronousErrorHandling(){return s}};function h(t){setTimeout((()=>{throw t}),0)}const d={closed:!0,next(t){},error(t){if(c.useDeprecatedSynchronousErrorHandling)throw t;h(t)},complete(){}},u=Array.isArray||(t=>t&&"number"==typeof t.length);function m(t){return null!==t&&"object"==typeof t}const p=(()=>{function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(((t,e)=>e+1+") "+t.toString())).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();class y{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:n,_unsubscribe:i,_subscriptions:r}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof y)e.remove(this);else if(null!==e)for(let t=0;t<e.length;++t)e[t].remove(this);if(o(i)){n&&(this._unsubscribe=void 0);try{i.call(this)}catch(e){t=e instanceof p?w(e.errors):[e]}}if(u(r)){let e=-1,n=r.length;for(;++e<n;){const n=r[e];if(m(n))try{n.unsubscribe()}catch(e){t=t||[],e instanceof p?t=t.concat(w(e.errors)):t.push(e)}}}if(t)throw new p(t)}add(t){let e=t;if(!t)return y.EMPTY;switch(typeof t){case"function":e=new y(t);case"object":if(e===this||e.closed||"function"!=typeof e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if(!(e instanceof y)){const t=e;e=new y,e._subscriptions=[t]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:n}=e;if(null===n)e._parentOrParents=this;else if(n instanceof y){if(n===this)return e;e._parentOrParents=[n,this]}else{if(-1!==n.indexOf(this))return e;n.push(this)}const i=this._subscriptions;return null===i?this._subscriptions=[e]:i.push(e),e}remove(t){const e=this._subscriptions;if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}var v;function w(t){return t.reduce(((t,e)=>t.concat(e instanceof p?e.errors:e)),[])}y.EMPTY=((v=new y).closed=!0,v);const x="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class C extends y{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=d;break;case 1:if(!t){this.destination=d;break}if("object"==typeof t){t instanceof C?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new k(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new k(this,t,e,n)}}[x](){return this}static create(t,e,n){const i=new C(t,e,n);return i.syncErrorThrowable=!1,i}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class k extends C{constructor(t,e,n,i){super(),this._parentSubscriber=t;let r,a=this;o(e)?r=e:e&&(r=e.next,n=e.error,i=e.complete,e!==d&&(a=Object.create(e),o(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=r,this._error=n,this._complete=i}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;c.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=c;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):h(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;h(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);c.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),c.useDeprecatedSynchronousErrorHandling)throw t;h(t)}}__tryOrSetError(t,e,n){if(!c.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return c.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(h(e),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const S="function"==typeof Symbol&&Symbol.observable||"@@observable";function P(t){return t}let _=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:i}=this,r=function(t,e,n){if(t){if(t instanceof C)return t;if(t[x])return t[x]()}return t||e||n?new C(t,e,n):new C(d)}(t,e,n);if(r.add(i?i.call(r,this.source):this.source||c.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),c.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}_trySubscribe(t){try{return this._subscribe(t)}catch(e){c.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:i}=t;if(e||i)return!1;t=n&&n instanceof C?n:null}return!0}(t)?t.error(e):r.warn(e)}}forEach(t,e){return new(e=M(e))(((e,n)=>{let i;i=this.subscribe((e=>{try{t(e)}catch(t){n(t),i&&i.unsubscribe()}}),n,e)}))}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[S](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?P:1===e.length?e[0]:function(t){return e.reduce(((t,e)=>e(t)),t)})(this);var e}toPromise(t){return new(t=M(t))(((t,e)=>{let n;this.subscribe((t=>n=t),(t=>e(t)),(()=>t(n)))}))}}return t.create=e=>new t(e),t})();function M(t){if(t||(t=c.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const D=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class E extends y{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class O extends C{constructor(t){super(t),this.destination=t}}let A=(()=>{class t extends _{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[x](){return new O(this)}lift(t){const e=new T(this,this);return e.operator=t,e}next(t){if(this.closed)throw new D;if(!this.isStopped){const{observers:e}=this,n=e.length,i=e.slice();for(let e=0;e<n;e++)i[e].next(t)}}error(t){if(this.closed)throw new D;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,n=e.length,i=e.slice();for(let e=0;e<n;e++)i[e].error(t);this.observers.length=0}complete(){if(this.closed)throw new D;this.isStopped=!0;const{observers:t}=this,e=t.length,n=t.slice();for(let t=0;t<e;t++)n[t].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new D;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new D;return this.hasError?(t.error(this.thrownError),y.EMPTY):this.isStopped?(t.complete(),y.EMPTY):(this.observers.push(t),new E(this,t))}asObservable(){const t=new _;return t.source=this,t}}return t.create=(t,e)=>new T(t,e),t})();class T extends A{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):y.EMPTY}}function I(t){return t&&"function"==typeof t.schedule}function L(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new z(t,e))}}class z{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new R(t,this.project,this.thisArg))}}class R extends C{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)}}const F=t=>e=>{for(let n=0,i=t.length;n<i&&!e.closed;n++)e.next(t[n]);e.complete()},B="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator",V=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function N(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const H=t=>{if(t&&"function"==typeof t[S])return e=t,t=>{const n=e[S]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)};var e,n,i;if(V(t))return F(t);if(N(t))return n=t,t=>(n.then((e=>{t.closed||(t.next(e),t.complete())}),(e=>t.error(e))).then(null,h),t);if(t&&"function"==typeof t[B])return i=t,t=>{const e=i[B]();for(;;){let n;try{n=e.next()}catch(e){return t.error(e),t}if(n.done){t.complete();break}if(t.next(n.value),t.closed)break}return"function"==typeof e.return&&t.add((()=>{e.return&&e.return()})),t};{const e="You provided "+(m(t)?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(e)}};function G(t,e){return new _((n=>{const i=new y;let r=0;return i.add(e.schedule((function(){r!==t.length?(n.next(t[r++]),n.closed||i.add(this.schedule())):n.complete()}))),i}))}function Z(t,e){return e?function(t,e){if(null!=t){if((s=t)&&"function"==typeof s[S])return a=t,o=e,new _((t=>{const e=new y;return e.add(o.schedule((()=>{const n=a[S]();e.add(n.subscribe({next(n){e.add(o.schedule((()=>t.next(n))))},error(n){e.add(o.schedule((()=>t.error(n))))},complete(){e.add(o.schedule((()=>t.complete())))}}))}))),e}));if(N(t))return i=t,r=e,new _((t=>{const e=new y;return e.add(r.schedule((()=>i.then((n=>{e.add(r.schedule((()=>{t.next(n),e.add(r.schedule((()=>t.complete())))})))}),(n=>{e.add(r.schedule((()=>t.error(n))))}))))),e}));if(V(t))return G(t,e);if((n=t)&&"function"==typeof n[B]||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new _((n=>{const i=new y;let r;return i.add((()=>{r&&"function"==typeof r.return&&r.return()})),i.add(e.schedule((()=>{r=t[B](),i.add(e.schedule((function(){if(n.closed)return;let t,e;try{const n=r.next();t=n.value,e=n.done}catch(t){return void n.error(t)}e?n.complete():(n.next(t),this.schedule())})))}))),i}))}(t,e)}var n,i,r,a,o,s;throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof _?t:new _(H(t))}class U extends C{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class W extends C{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function Y(t,e){if(e.closed)return;if(t instanceof _)return t.subscribe(e);let n;try{n=H(t)(e)}catch(t){e.error(t)}return n}function j(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(j(((n,i)=>Z(t(n,i)).pipe(L(((t,r)=>e(n,t,i,r))))),n)):("number"==typeof e&&(n=e),e=>e.lift(new X(t,n)))}class X{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new q(t,this.project,this.concurrent))}}class q extends W{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e)}_innerSub(t){const e=new U(this),n=this.destination;n.add(e);const i=Y(t,e);i!==e&&n.add(i)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyComplete(){const t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function $(t=Number.POSITIVE_INFINITY){return j(P,t)}function K(t,e){return e?G(t,e):new _(F(t))}function J(...t){let e=Number.POSITIVE_INFINITY,n=null,i=t[t.length-1];return I(i)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof i&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof _?t[0]:$(e)(K(t,n))}function Q(){return function(t){return t.lift(new tt(t))}}class tt{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const i=new et(t,n),r=e.subscribe(i);return i.closed||(i.connection=n.connect()),r}}class et extends C{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,i=t._connection;this.connection=null,i&&(!n||i===n)&&i.unsubscribe()}}class nt extends _{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new y,t.add(this.source.subscribe(new rt(this.getSubject(),this))),t.closed&&(this._connection=null,t=y.EMPTY)),t}refCount(){return Q()(this)}}const it=(()=>{const t=nt.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class rt extends O{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function at(){return new A}function ot(){return t=>{return Q()((e=at,function(t){let n;n="function"==typeof e?e:function(){return e};const i=Object.create(t,it);return i.source=t,i.subjectFactory=n,i})(t));var e}}function st(t){for(let e in t)if(t[e]===st)return e;throw Error("Could not find renamed property on target object.")}function lt(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function ct(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(ct).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function ht(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const dt=st({__forward_ref__:st});function ut(t){return t.__forward_ref__=ut,t.toString=function(){return ct(this())},t}function mt(t){return pt(t)?t():t}function pt(t){return"function"==typeof t&&t.hasOwnProperty(dt)&&t.__forward_ref__===ut}class gt extends Error{constructor(t,e){var n;super(((n=t)?"NG0"+n+": ":"")+e),this.code=t}}function ft(t){return"string"==typeof t?t:null==t?"":String(t)}function bt(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():ft(t)}function yt(t,e){const n=e?" in "+e:"";throw new gt("201","No provider for "+bt(t)+" found"+n)}function vt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function wt(t){return{providers:t.providers||[],imports:t.imports||[]}}function xt(t){return Ct(t,St)||Ct(t,_t)}function Ct(t,e){return t.hasOwnProperty(e)?t[e]:null}function kt(t){return t&&(t.hasOwnProperty(Pt)||t.hasOwnProperty(Mt))?t[Pt]:null}const St=st({ɵprov:st}),Pt=st({ɵinj:st}),_t=st({ngInjectableDef:st}),Mt=st({ngInjectorDef:st});var Dt=((Dt=Dt||{})[Dt.Default=0]="Default",Dt[Dt.Host=1]="Host",Dt[Dt.Self=2]="Self",Dt[Dt.SkipSelf=4]="SkipSelf",Dt[Dt.Optional=8]="Optional",Dt);let Et;function Ot(t){const e=Et;return Et=t,e}function At(t,e,n){const i=xt(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&Dt.Optional?null:void 0!==e?e:void yt(ct(t),"Injector")}function Tt(t){return{toString:t}.toString()}var It=((It=It||{})[It.OnPush=0]="OnPush",It[It.Default=1]="Default",It),Lt=((Lt=Lt||{})[Lt.Emulated=0]="Emulated",Lt[Lt.None=2]="None",Lt[Lt.ShadowDom=3]="ShadowDom",Lt);const zt="undefined"!=typeof globalThis&&globalThis,Rt="undefined"!=typeof window&&window,Ft="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Bt=zt||void 0!==n.g&&n.g||Rt||Ft,Vt={},Nt=[],Ht=st({ɵcmp:st}),Gt=st({ɵdir:st}),Zt=st({ɵpipe:st}),Ut=st({ɵmod:st}),Wt=st({ɵloc:st}),Yt=st({ɵfac:st}),jt=st({__NG_ELEMENT_ID__:st});let Xt=0;function qt(t){return Tt((()=>{const e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===It.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Nt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Lt.Emulated,id:"c",styles:t.styles||Nt,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,r=t.features,a=t.pipes;return n.id+=Xt++,n.inputs=ee(t.inputs,e),n.outputs=ee(t.outputs),r&&r.forEach((t=>t(n))),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(Kt):null,n.pipeDefs=a?()=>("function"==typeof a?a():a).map(Jt):null,n}))}function $t(t,e,n){const i=t["ɵcmp"];i.directiveDefs=()=>e.map(Kt),i.pipeDefs=()=>n.map(Jt)}function Kt(t){return re(t)||(t[Gt]||null)}function Jt(t){return t[Zt]||null}const Qt={};function te(t){return Tt((()=>{const e={type:t.type,bootstrap:t.bootstrap||Nt,declarations:t.declarations||Nt,imports:t.imports||Nt,exports:t.exports||Nt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(Qt[t.id]=t.type),e}))}function ee(t,e){if(null==t)return Vt;const n={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],a=r;Array.isArray(r)&&(a=r[1],r=r[0]),n[r]=i,e&&(e[r]=a)}return n}const ne=qt;function ie(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function re(t){return t[Ht]||null}function ae(t,e){const n=t[Ut]||null;if(!n&&!0===e)throw new Error("Type "+ct(t)+" does not have 'ɵmod' property.");return n}function oe(t){return Array.isArray(t)&&"object"==typeof t[1]}function se(t){return Array.isArray(t)&&!0===t[1]}function le(t){return 0!=(8&t.flags)}function ce(t){return 2==(2&t.flags)}function he(t){return 1==(1&t.flags)}function de(t){return null!==t.template}function ue(t,e){return t.hasOwnProperty(Yt)?t[Yt]:null}class me{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function pe(){return ge}function ge(t){return t.type.prototype.ngOnChanges&&(t.setInput=be),fe}function fe(){const t=ve(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===Vt)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function be(t,e,n,i){const r=ve(t)||(c={previous:Vt,current:null},t[ye]=c),a=r.current||(r.current={}),o=r.previous,s=this.declaredInputs[n],l=o[s];var c;a[s]=new me(l&&l.currentValue,e,o===Vt),t[i]=e}pe.ngInherit=!0;const ye="__ngSimpleChanges__";function ve(t){return t[ye]||null}const we="http://www.w3.org/2000/svg";let xe;function Ce(){return void 0!==xe?xe:"undefined"!=typeof document?document:void 0}function ke(t){return!!t.listen}const Se={createRenderer:(t,e)=>Ce()};function Pe(t){for(;Array.isArray(t);)t=t[0];return t}function _e(t,e){return Pe(e[t])}function Me(t,e){return Pe(e[t.index])}function De(t,e){return t.data[e]}function Ee(t,e){return t[e]}function Oe(t,e){const n=e[t];return oe(n)?n:n[0]}function Ae(t){return 4==(4&t[2])}function Te(t){return 128==(128&t[2])}function Ie(t,e){return null==e?null:t[e]}function Le(t){t[18]=0}function ze(t,e){t[5]+=e;let n=t,i=t[3];for(;null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}const Re={lFrame:ln(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Fe(){return Re.bindingsEnabled}function Be(){return Re.lFrame.lView}function Ve(){return Re.lFrame.tView}function Ne(t){return Re.lFrame.contextLView=t,t[8]}function He(){let t=Ge();for(;null!==t&&64===t.type;)t=t.parent;return t}function Ge(){return Re.lFrame.currentTNode}function Ze(t,e){const n=Re.lFrame;n.currentTNode=t,n.isParent=e}function Ue(){return Re.lFrame.isParent}function We(){Re.lFrame.isParent=!1}function Ye(){return Re.isInCheckNoChangesMode}function je(t){Re.isInCheckNoChangesMode=t}function Xe(){const t=Re.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function qe(){return Re.lFrame.bindingIndex}function $e(){return Re.lFrame.bindingIndex++}function Ke(t){const e=Re.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function Je(t,e){const n=Re.lFrame;n.bindingIndex=n.bindingRootIndex=t,Qe(e)}function Qe(t){Re.lFrame.currentDirectiveIndex=t}function tn(t){const e=Re.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function en(){return Re.lFrame.currentQueryIndex}function nn(t){Re.lFrame.currentQueryIndex=t}function rn(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function an(t,e,n){if(n&Dt.SkipSelf){let i=e,r=t;for(;i=i.parent,!(null!==i||n&Dt.Host||(i=rn(r),null===i||(r=r[15],10&i.type))););if(null===i)return!1;e=i,t=r}const i=Re.lFrame=sn();return i.currentTNode=e,i.lView=t,!0}function on(t){const e=sn(),n=t[1];Re.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function sn(){const t=Re.lFrame,e=null===t?null:t.child;return null===e?ln(t):e}function ln(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function cn(){const t=Re.lFrame;return Re.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const hn=cn;function dn(){const t=cn();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function un(){return Re.lFrame.selectedIndex}function mn(t){Re.lFrame.selectedIndex=t}function pn(){const t=Re.lFrame;return De(t.tView,t.selectedIndex)}function gn(){Re.lFrame.currentNamespace=we}function fn(){Re.lFrame.currentNamespace=null}function bn(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n<i;n++){const e=t.data[n].type.prototype,{ngAfterContentInit:i,ngAfterContentChecked:r,ngAfterViewInit:a,ngAfterViewChecked:o,ngOnDestroy:s}=e;i&&(t.contentHooks||(t.contentHooks=[])).push(-n,i),r&&((t.contentHooks||(t.contentHooks=[])).push(n,r),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,r)),a&&(t.viewHooks||(t.viewHooks=[])).push(-n,a),o&&((t.viewHooks||(t.viewHooks=[])).push(n,o),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,o)),null!=s&&(t.destroyHooks||(t.destroyHooks=[])).push(n,s)}}function yn(t,e,n){xn(t,e,3,n)}function vn(t,e,n,i){(3&t[2])===n&&xn(t,e,n,i)}function wn(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function xn(t,e,n,i){const r=null!=i?i:-1,a=e.length-1;let o=0;for(let s=void 0!==i?65535&t[18]:0;s<a;s++)if("number"==typeof e[s+1]){if(o=e[s],null!=i&&o>=i)break}else e[s]<0&&(t[18]+=65536),(o<r||-1==r)&&(Cn(t,n,e,s),t[18]=(4294901760&t[18])+s+2),s++}function Cn(t,e,n,i){const r=n[i]<0,a=n[i+1],o=t[r?-n[i]:n[i]];if(r){if(t[2]>>11<t[18]>>16&&(3&t[2])===e){t[2]+=2048;try{a.call(o)}finally{}}}else try{a.call(o)}finally{}}class kn{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Sn(t,e,n){const i=ke(t);let r=0;for(;r<n.length;){const a=n[r];if("number"==typeof a){if(0!==a)break;r++;const o=n[r++],s=n[r++],l=n[r++];i?t.setAttribute(e,s,l,o):e.setAttributeNS(o,s,l)}else{const o=a,s=n[++r];_n(o)?i&&t.setProperty(e,o,s):i?t.setAttribute(e,o,s):e.setAttribute(o,s),r++}}return r}function Pn(t){return 3===t||4===t||6===t}function _n(t){return 64===t.charCodeAt(0)}function Mn(t,e){if(null!==e&&0!==e.length)if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let i=0;i<e.length;i++){const r=e[i];"number"==typeof r?n=r:0===n||Dn(t,n,r,null,-1===n||2===n?e[++i]:null)}}return t}function Dn(t,e,n,i,r){let a=0,o=t.length;if(-1===e)o=-1;else for(;a<t.length;){const n=t[a++];if("number"==typeof n){if(n===e){o=-1;break}if(n>e){o=a-1;break}}}for(;a<t.length;){const e=t[a];if("number"==typeof e)break;if(e===n){if(null===i)return void(null!==r&&(t[a+1]=r));if(i===t[a+1])return void(t[a+2]=r)}a++,null!==i&&a++,null!==r&&a++}-1!==o&&(t.splice(o,0,e),a=o+1),t.splice(a++,0,n),null!==i&&t.splice(a++,0,i),null!==r&&t.splice(a++,0,r)}function En(t){return-1!==t}function On(t){return 32767&t}function An(t,e){let n=t>>16,i=e;for(;n>0;)i=i[15],n--;return i}let Tn=!0;function In(t){const e=Tn;return Tn=t,e}let Ln=0;function zn(t,e){const n=Fn(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,Rn(i.data,t),Rn(e,null),Rn(i.blueprint,null));const r=Bn(t,e),a=t.injectorIndex;if(En(r)){const t=On(r),n=An(r,e),i=n[1].data;for(let r=0;r<8;r++)e[a+r]=n[t+r]|i[t+r]}return e[a+8]=r,a}function Rn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Fn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Bn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,i=null,r=e;for(;null!==r;){const t=r[1],e=t.type;if(i=2===e?t.declTNode:1===e?r[6]:null,null===i)return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function Vn(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(jt)&&(i=n[jt]),null==i&&(i=n[jt]=Ln++);const r=255&i;e.data[t+(r>>5)]|=1<<r}(t,e,n)}function Nn(t,e,n){if(n&Dt.Optional)return t;yt(e,"NodeInjector")}function Hn(t,e,n,i){if(n&Dt.Optional&&void 0===i&&(i=null),0==(n&(Dt.Self|Dt.Host))){const r=t[9],a=Ot(void 0);try{return r?r.get(e,i,n&Dt.Optional):At(e,i,n&Dt.Optional)}finally{Ot(a)}}return Nn(i,e,n)}function Gn(t,e,n,i=Dt.Default,r){if(null!==t){const a=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(jt)?t[jt]:void 0;return"number"==typeof e?e>=0?255&e:Un:e}(n);if("function"==typeof a){if(!an(e,t,i))return i&Dt.Host?Nn(r,n,i):Hn(e,n,i,r);try{const t=a(i);if(null!=t||i&Dt.Optional)return t;yt(n)}finally{hn()}}else if("number"==typeof a){let r=null,o=Fn(t,e),s=-1,l=i&Dt.Host?e[16][6]:null;for((-1===o||i&Dt.SkipSelf)&&(s=-1===o?Bn(t,e):e[o+8],-1!==s&&qn(i,!1)?(r=e[1],o=On(s),e=An(s,e)):o=-1);-1!==o;){const t=e[1];if(Xn(a,o,t.data)){const t=Wn(o,e,n,r,i,l);if(t!==Zn)return t}s=e[o+8],-1!==s&&qn(i,e[1].data[o+8]===l)&&Xn(a,o,e)?(r=t,o=On(s),e=An(s,e)):o=-1}}}return Hn(e,n,i,r)}const Zn={};function Un(){return new $n(He(),Be())}function Wn(t,e,n,i,r,a){const o=e[1],s=o.data[t+8],l=Yn(s,o,n,null==i?ce(s)&&Tn:i!=o&&0!=(3&s.type),r&Dt.Host&&a===s);return null!==l?jn(e,o,l,s):Zn}function Yn(t,e,n,i,r){const a=t.providerIndexes,o=e.data,s=1048575&a,l=t.directiveStart,c=a>>20,h=r?s+c:t.directiveEnd;for(let t=i?s:s+c;t<h;t++){const e=o[t];if(t<l&&n===e||t>=l&&e.type===n)return t}if(r){const t=o[l];if(t&&de(t)&&t.type===n)return l}return null}function jn(t,e,n,i){let r=t[n];const a=e.data;if(r instanceof kn){const o=r;o.resolving&&function(t,e){throw new gt("200","Circular dependency in DI detected for "+t)}(bt(a[n]));const s=In(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?Ot(o.injectImpl):null;an(t,i,Dt.Default);try{r=t[n]=o.factory(void 0,a,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:a}=e.type.prototype;if(i){const i=ge(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,r),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,a))}(n,a[n],e)}finally{null!==l&&Ot(l),In(s),o.resolving=!1,hn()}}return r}function Xn(t,e,n){return!!(n[e+(t>>5)]&1<<t)}function qn(t,e){return!(t&Dt.Self||t&Dt.Host&&e)}class $n{constructor(t,e){this._tNode=t,this._lView=e}get(t,e,n){return Gn(this._tNode,this._lView,t,n,e)}}function Kn(t){return Tt((()=>{const e=t.prototype.constructor,n=e[Yt]||Jn(e),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const t=r[Yt]||Jn(r);if(t&&t!==n)return t;r=Object.getPrototypeOf(r)}return t=>new t}))}function Jn(t){return pt(t)?()=>{const e=Jn(mt(t));return e&&e()}:ue(t)}function Qn(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const t=n.length;let i=0;for(;i<t;){const r=n[i];if(Pn(r))break;if(0===r)i+=2;else if("number"==typeof r)for(i++;i<t&&"string"==typeof n[i];)i++;else{if(r===e)return n[i+1];i+=2}}}return null}(He(),t)}const ti="__parameters__";function ei(t,e,n){return Tt((()=>{const i=(r=e,function(...t){if(r){const e=r(...t);for(const t in e)this[t]=e[t]}});var r;function a(...t){if(this instanceof a)return i.apply(this,t),this;const e=new a(...t);return n.annotation=e,n;function n(t,n,i){const r=t.hasOwnProperty(ti)?t[ti]:Object.defineProperty(t,ti,{value:[]})[ti];for(;r.length<=i;)r.push(null);return(r[i]=r[i]||[]).push(e),t}}return n&&(a.prototype=Object.create(n.prototype)),a.prototype.ngMetadataName=t,a.annotationCls=a,a}))}class ni{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this["ɵprov"]=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this["ɵprov"]=vt({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const ii=Function;function ri(t,e){void 0===e&&(e=t);for(let n=0;n<t.length;n++){let i=t[n];Array.isArray(i)?(e===t&&(e=t.slice(0,n)),ri(i,e)):e!==t&&e.push(i)}return e}function ai(t,e){t.forEach((t=>Array.isArray(t)?ai(t,e):e(t)))}function oi(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function si(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function li(t,e){const n=[];for(let i=0;i<t;i++)n.push(e);return n}function ci(t,e,n){let i=di(t,e);return i>=0?t[1|i]=n:(i=~i,function(t,e,n,i){let r=t.length;if(r==e)t.push(n,i);else if(1===r)t.push(i,t[0]),t[0]=n;else{for(r--,t.push(t[r-1],t[r]);r>e;)t[r]=t[r-2],r--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function hi(t,e){const n=di(t,e);if(n>=0)return t[1|n]}function di(t,e){return function(t,e,n){let i=0,r=t.length>>1;for(;r!==i;){const n=i+(r-i>>1),a=t[n<<1];if(e===a)return n<<1;a>e?r=n:i=n+1}return~(r<<1)}(t,e)}const ui={},mi="__NG_DI_FLAG__",pi="ngTempTokenPath",gi=/\n/gm,fi=st({provide:String,useValue:st});let bi;function yi(t){const e=bi;return bi=t,e}function vi(t,e=Dt.Default){if(void 0===bi)throw new Error("inject() must be called from an injection context");return null===bi?At(t,void 0,e):bi.get(t,e&Dt.Optional?null:void 0,e)}function wi(t,e=Dt.Default){return(Et||vi)(mt(t),e)}const xi=wi;function Ci(t){const e=[];for(let n=0;n<t.length;n++){const i=mt(t[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");let t,n=Dt.Default;for(let e=0;e<i.length;e++){const r=i[e],a=r[mi];"number"==typeof a?-1===a?t=r.token:n|=a:t=r}e.push(wi(t,n))}else e.push(wi(i))}return e}function ki(t,e){return t[mi]=e,t.prototype[mi]=e,t}const Si=ki(ei("Inject",(t=>({token:t}))),-1),Pi=ki(ei("Optional"),8),_i=ki(ei("SkipSelf"),4);var Mi=((Mi=Mi||{})[Mi.Important=1]="Important",Mi[Mi.DashCase=2]="DashCase",Mi);const Di="__ngContext__";function Ei(t,e){t[Di]=e}function Oi(t){const e=t[Di]||null;return e?Array.isArray(e)?e:e.lView:null}function Ai(t,e){return(void 0)(t,e)}function Ti(t){const e=t[3];return se(e)?e[3]:e}function Ii(t){return zi(t[13])}function Li(t){return zi(t[4])}function zi(t){for(;null!==t&&!se(t);)t=t[4];return t}function Ri(t,e,n,i,r){if(null!=i){let a,o=!1;se(i)?a=i:oe(i)&&(o=!0,i=i[0]);const s=Pe(i);0===t&&null!==n?null==r?Ui(e,n,s):Zi(e,n,s,r||null,!0):1===t&&null!==n?Zi(e,n,s,r||null,!0):2===t?function(t,e,n){const i=Yi(t,e);var r,a,o,s;i&&(a=i,o=e,s=n,ke(r=t)?r.removeChild(a,o,s):a.removeChild(o))}(e,s,o):3===t&&e.destroyNode(s),null!=a&&function(t,e,n,i,r){const a=n[7];a!==Pe(n)&&Ri(e,t,i,a,r);for(let r=10;r<n.length;r++){const o=n[r];nr(o[1],o,t,e,i,a)}}(e,t,a,n,r)}}function Fi(t,e,n){return ke(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function Bi(t,e){const n=t[9],i=n.indexOf(e),r=e[3];1024&e[2]&&(e[2]&=-1025,ze(r,-1)),n.splice(i,1)}function Vi(t,e){if(t.length<=10)return;const n=10+e,i=t[n];if(i){const a=i[17];null!==a&&a!==t&&Bi(a,i),e>0&&(t[n-1][4]=i[4]);const o=si(t,10+e);nr(i[1],r=i,r[11],2,null,null),r[0]=null,r[6]=null;const s=o[19];null!==s&&s.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}var r;return i}function Ni(t,e){if(!(256&e[2])){const n=e[11];ke(n)&&n.destroyNode&&nr(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Hi(t[1],t);for(;e;){let n=null;if(oe(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)oe(e)&&Hi(e[1],e),e=e[3];null===e&&(e=t),oe(e)&&Hi(e[1],e),n=e&&e[4]}e=n}}(e)}}function Hi(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let t=0;t<n.length;t+=2){const i=e[n[t]];if(!(i instanceof kn)){const e=n[t+1];if(Array.isArray(e))for(let t=0;t<e.length;t+=2){const n=i[e[t]],r=e[t+1];try{r.call(n)}finally{}}else try{e.call(i)}finally{}}}}(t,e),function(t,e){const n=t.cleanup,i=e[7];let r=-1;if(null!==n)for(let t=0;t<n.length-1;t+=2)if("string"==typeof n[t]){const a=n[t+1],o="function"==typeof a?a(e):Pe(e[a]),s=i[r=n[t+2]],l=n[t+3];"boolean"==typeof l?o.removeEventListener(n[t],s,l):l>=0?i[r=l]():i[r=-l].unsubscribe(),t+=2}else{const e=i[r=n[t+1]];n[t].call(e)}if(null!==i){for(let t=r+1;t<i.length;t++)i[t]();e[7]=null}}(t,e),1===e[1].type&&ke(e[11])&&e[11].destroy();const n=e[17];if(null!==n&&se(e[3])){n!==e[3]&&Bi(n,e);const i=e[19];null!==i&&i.detachView(t)}}}function Gi(t,e,n){return function(t,e,n){let i=e;for(;null!==i&&40&i.type;)i=(e=i).parent;if(null===i)return n[0];if(2&i.flags){const e=t.data[i.directiveStart].encapsulation;if(e===Lt.None||e===Lt.Emulated)return null}return Me(i,n)}(t,e.parent,n)}function Zi(t,e,n,i,r){ke(t)?t.insertBefore(e,n,i,r):e.insertBefore(n,i,r)}function Ui(t,e,n){ke(t)?t.appendChild(e,n):e.appendChild(n)}function Wi(t,e,n,i,r){null!==i?Zi(t,e,n,i,r):Ui(t,e,n)}function Yi(t,e){return ke(t)?t.parentNode(e):e.parentNode}function ji(t,e,n){return $i(t,e,n)}let Xi,qi,$i=function(t,e,n){return 40&t.type?Me(t,n):null};function Ki(t,e,n,i){const r=Gi(t,i,e),a=e[11],o=ji(i.parent||e[6],i,e);if(null!=r)if(Array.isArray(n))for(let t=0;t<n.length;t++)Wi(a,r,n[t],o,!1);else Wi(a,r,n,o,!1)}function Ji(t,e){if(null!==e){const n=e.type;if(3&n)return Me(e,t);if(4&n)return tr(-1,t[e.index]);if(8&n){const n=e.child;if(null!==n)return Ji(t,n);{const n=t[e.index];return se(n)?tr(-1,n):Pe(n)}}if(32&n)return Ai(e,t)()||Pe(t[e.index]);{const n=Qi(t,e);return null!==n?Array.isArray(n)?n[0]:Ji(Ti(t[16]),n):Ji(t,e.next)}}return null}function Qi(t,e){return null!==e?t[16][6].projection[e.projection]:null}function tr(t,e){const n=10+t+1;if(n<e.length){const t=e[n],i=t[1].firstChild;if(null!==i)return Ji(t,i)}return e[7]}function er(t,e,n,i,r,a,o){for(;null!=n;){const s=i[n.index],l=n.type;if(o&&0===e&&(s&&Ei(Pe(s),i),n.flags|=4),64!=(64&n.flags))if(8&l)er(t,e,n.child,i,r,a,!1),Ri(e,t,r,s,a);else if(32&l){const o=Ai(n,i);let l;for(;l=o();)Ri(e,t,r,l,a);Ri(e,t,r,s,a)}else 16&l?ir(t,e,i,n,r,a):Ri(e,t,r,s,a);n=o?n.projectionNext:n.next}}function nr(t,e,n,i,r,a){er(n,i,t.firstChild,e,r,a,!1)}function ir(t,e,n,i,r,a){const o=n[16],s=o[6].projection[i.projection];if(Array.isArray(s))for(let n=0;n<s.length;n++)Ri(e,t,r,s[n],a);else er(t,e,s,o[3],r,a,!0)}function rr(t,e,n){ke(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function ar(t,e,n){ke(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}function or(t){var e;return(null===(e=function(){if(void 0===Xi&&(Xi=null,Bt.trustedTypes))try{Xi=Bt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Xi}())||void 0===e?void 0:e.createHTML(t))||t}function sr(t){var e;return(null===(e=function(){if(void 0===qi&&(qi=null,Bt.trustedTypes))try{qi=Bt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return qi}())||void 0===e?void 0:e.createHTML(t))||t}class lr{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see https://g.co/ng/security#xss)"}}class cr extends lr{getTypeName(){return"HTML"}}class hr extends lr{getTypeName(){return"Style"}}class dr extends lr{getTypeName(){return"Script"}}class ur extends lr{getTypeName(){return"URL"}}class mr extends lr{getTypeName(){return"ResourceURL"}}function pr(t){return t instanceof lr?t.changingThisBreaksApplicationSecurity:t}function gr(t,e){const n=fr(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error("Required a safe "+e+", got a "+n+" (see https://g.co/ng/security#xss)")}return n===e}function fr(t){return t instanceof lr&&t.getTypeName()||null}class br{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(or(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(t){return null}}}class yr{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=or(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=or(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let n=e.length-1;0<n;n--){const i=e.item(n).name;("xmlns:ns1"===i||0===i.indexOf("ns1:"))&&t.removeAttribute(i)}let n=t.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const vr=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,wr=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function xr(t){return(t=String(t)).match(vr)||t.match(wr)?t:"unsafe:"+t}function Cr(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function kr(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const Sr=Cr("area,br,col,hr,img,wbr"),Pr=Cr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),_r=Cr("rp,rt"),Mr=kr(Sr,kr(Pr,Cr("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),kr(_r,Cr("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),kr(_r,Pr)),Dr=Cr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Er=Cr("srcset"),Or=kr(Dr,Er,Cr("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Cr("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Ar=Cr("script,style,template");class Tr{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let t=this.checkClobberedElement(e,e.nextSibling);if(t){e=t;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!Mr.hasOwnProperty(e))return this.sanitizedSomething=!0,!Ar.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=t.attributes;for(let t=0;t<n.length;t++){const e=n.item(t),r=e.name,a=r.toLowerCase();if(!Or.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let o=e.value;Dr[a]&&(o=xr(o)),Er[a]&&(i=o,o=(i=String(i)).split(",").map((t=>xr(t.trim()))).join(", ")),this.buf.push(" ",r,'="',zr(o),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Mr.hasOwnProperty(e)&&!Sr.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(zr(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e}}const Ir=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Lr=/([^\#-~ |!])/g;function zr(t){return t.replace(/&/g,"&").replace(Ir,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(Lr,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(/</g,"<").replace(/>/g,">")}let Rr;function Fr(t,e){let n=null;try{Rr=Rr||function(t){const e=new yr(t);return function(){try{return!!(new window.DOMParser).parseFromString(or(""),"text/html")}catch(t){return!1}}()?new br(e):e}(t);let i=e?String(e):"";n=Rr.getInertBodyElement(i);let r=5,a=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=a,a=n.innerHTML,n=Rr.getInertBodyElement(i)}while(i!==a);return or((new Tr).sanitizeChildren(Br(n)||n))}finally{if(n){const t=Br(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function Br(t){return"content"in t&&((e=t).nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName)?t.content:null;var e}var Vr=((Vr=Vr||{})[Vr.NONE=0]="NONE",Vr[Vr.HTML=1]="HTML",Vr[Vr.STYLE=2]="STYLE",Vr[Vr.SCRIPT=3]="SCRIPT",Vr[Vr.URL=4]="URL",Vr[Vr.RESOURCE_URL=5]="RESOURCE_URL",Vr);function Nr(t){const e=Gr();return e?sr(e.sanitize(Vr.HTML,t)||""):gr(t,"HTML")?sr(pr(t)):Fr(Ce(),ft(t))}function Hr(t){const e=Gr();return e?e.sanitize(Vr.URL,t)||"":gr(t,"URL")?pr(t):xr(ft(t))}function Gr(){const t=Be();return t&&t[12]}function Zr(t){return t.ngOriginalError}function Ur(t,...e){t.error(...e)}class Wr{constructor(){this._console=r}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=(r=t)&&r.ngErrorLogger||Ur;var r;i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?t.ngDebugContext||this._findContext(Zr(t)):null}_findOriginalError(t){let e=t&&Zr(t);for(;e&&Zr(e);)e=Zr(e);return e||null}}const Yr=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Bt);function jr(t){return t.ownerDocument}function Xr(t){return t instanceof Function?t():t}function qr(t,e,n){let i=t.length;for(;;){const r=t.indexOf(e,n);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const n=e.length;if(r+n===i||t.charCodeAt(r+n)<=32)return r}n=r+1}}const $r="ng-template";function Kr(t,e,n){let i=0;for(;i<t.length;){let r=t[i++];if(n&&"class"===r){if(r=t[i],-1!==qr(r.toLowerCase(),e,0))return!0}else if(1===r){for(;i<t.length&&"string"==typeof(r=t[i++]);)if(r.toLowerCase()===e)return!0;return!1}}return!1}function Jr(t){return 4===t.type&&t.value!==$r}function Qr(t,e,n){let i=4;const r=t.attrs||[],a=function(t){for(let e=0;e<t.length;e++)if(Pn(t[e]))return e;return t.length}(r);let o=!1;for(let c=0;c<e.length;c++){const h=e[c];if("number"!=typeof h){if(!o)if(4&i){if(i=2|1&i,""!==h&&(l=n,h!==(4!==(s=t).type||l?s.value:$r))||""===h&&1===e.length){if(ta(i))return!1;o=!0}}else{const s=8&i?h:e[++c];if(8&i&&null!==t.attrs){if(!Kr(t.attrs,s,n)){if(ta(i))return!1;o=!0}continue}const l=ea(8&i?"class":h,r,Jr(t),n);if(-1===l){if(ta(i))return!1;o=!0;continue}if(""!==s){let t;t=l>a?"":r[l+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==qr(e,s,0)||2&i&&s!==t){if(ta(i))return!1;o=!0}}}}else{if(!o&&!ta(i)&&!ta(h))return!1;if(o&&ta(h))continue;o=!1,i=h|1&i}}var s,l;return ta(i)||o}function ta(t){return 0==(1&t)}function ea(t,e,n,i){if(null===e)return-1;let r=0;if(i||!n){let n=!1;for(;r<e.length;){const i=e[r];if(i===t)return r;if(3===i||6===i)n=!0;else{if(1===i||2===i){let t=e[++r];for(;"string"==typeof t;)t=e[++r];continue}if(4===i)break;if(0===i){r+=4;continue}}r+=n?1:2}return-1}return function(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){const i=t[n];if("number"==typeof i)return-1;if(i===e)return n;n++}return-1}(e,t)}function na(t,e,n=!1){for(let i=0;i<e.length;i++)if(Qr(t,e[i],n))return!0;return!1}function ia(t,e){t:for(let n=0;n<e.length;n++){const i=e[n];if(t.length===i.length){for(let e=0;e<t.length;e++)if(t[e]!==i[e])continue t;return!0}}return!1}function ra(t,e){return t?":not("+e.trim()+")":e}function aa(t){let e=t[0],n=1,i=2,r="",a=!1;for(;n<t.length;){let o=t[n];if("string"==typeof o)if(2&i){const e=t[++n];r+="["+o+(e.length>0?'="'+e+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""!==r&&!ta(o)&&(e+=ra(a,r),r=""),i=o,a=a||!ta(i);n++}return""!==r&&(e+=ra(a,r)),e}const oa={};function sa(t){la(Ve(),Be(),un()+t,Ye())}function la(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&yn(e,i,n)}else{const i=t.preOrderHooks;null!==i&&vn(e,i,0,n)}mn(n)}function ca(t,e){return t<<17|e<<2}function ha(t){return t>>17&32767}function da(t){return 2|t}function ua(t){return(131068&t)>>2}function ma(t,e){return-131069&t|e<<2}function pa(t){return 1|t}function ga(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;i<n.length;i+=2){const r=n[i],a=n[i+1];if(-1!==a){const n=t.data[a];nn(r),n.contentQueries(2,e[a],a)}}}function fa(t,e,n,i,r,a,o,s,l,c){const h=e.blueprint.slice();return h[0]=r,h[2]=140|i,Le(h),h[3]=h[15]=t,h[8]=n,h[10]=o||t&&t[10],h[11]=s||t&&t[11],h[12]=l||t&&t[12]||null,h[9]=c||t&&t[9]||null,h[6]=a,h[16]=2==e.type?t[16]:h,h}function ba(t,e,n,i,r){let a=t.data[e];if(null===a)a=function(t,e,n,i,r){const a=Ge(),o=Ue(),s=t.data[e]=(l=o?a:a&&a.parent,c=i,h=r,{type:n,index:e,insertBeforeIndex:null,injectorIndex:l?l.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:c,attrs:h,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:l,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0});var l,c,h;return null===t.firstChild&&(t.firstChild=s),null!==a&&(o?null==a.child&&null!==s.parent&&(a.child=s):null===a.next&&(a.next=s)),s}(t,e,n,i,r),Re.lFrame.inI18n&&(a.flags|=64);else if(64&a.type){a.type=n,a.value=i,a.attrs=r;const t=function(){const t=Re.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}();a.injectorIndex=null===t?-1:t.injectorIndex}return Ze(a,!0),a}function ya(t,e,n,i){if(0===n)return-1;const r=e.length;for(let r=0;r<n;r++)e.push(i),t.blueprint.push(i),t.data.push(null);return r}function va(t,e,n){on(e);try{const i=t.viewQuery;null!==i&&qa(1,i,n);const r=t.template;null!==r&&Ca(t,e,r,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&ga(t,e),t.staticViewQueries&&qa(2,t.viewQuery,n);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)Ua(t,e[n])}(e,a)}catch(e){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),e}finally{e[2]&=-5,dn()}}function wa(t,e,n,i){const r=e[2];if(256==(256&r))return;on(e);const a=Ye();try{Le(e),o=t.bindingStartIndex,Re.lFrame.bindingIndex=o,null!==n&&Ca(t,e,n,2,i);const s=3==(3&r);if(!a)if(s){const n=t.preOrderCheckHooks;null!==n&&yn(e,n,null)}else{const n=t.preOrderHooks;null!==n&&vn(e,n,0,null),wn(e,0)}if(function(t){for(let e=Ii(t);null!==e;e=Li(e)){if(!e[2])continue;const t=e[9];for(let e=0;e<t.length;e++){const n=t[e],i=n[3];0==(1024&n[2])&&ze(i,1),n[2]|=1024}}}(e),function(t){for(let e=Ii(t);null!==e;e=Li(e))for(let t=10;t<e.length;t++){const n=e[t],i=n[1];Te(n)&&wa(i,n,i.template,n[8])}}(e),null!==t.contentQueries&&ga(t,e),!a)if(s){const n=t.contentCheckHooks;null!==n&&yn(e,n)}else{const n=t.contentHooks;null!==n&&vn(e,n,1),wn(e,1)}!function(t,e){const n=t.hostBindingOpCodes;if(null!==n)try{for(let t=0;t<n.length;t++){const i=n[t];if(i<0)mn(~i);else{const r=i,a=n[++t],o=n[++t];Je(a,r),o(2,e[r])}}}finally{mn(-1)}}(t,e);const l=t.components;null!==l&&function(t,e){for(let n=0;n<e.length;n++)Ga(t,e[n])}(e,l);const c=t.viewQuery;if(null!==c&&qa(2,c,i),!a)if(s){const n=t.viewCheckHooks;null!==n&&yn(e,n)}else{const n=t.viewHooks;null!==n&&vn(e,n,2),wn(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),a||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,ze(e[3],-1))}finally{dn()}var o}function xa(t,e,n,i){const r=e[10],a=!Ye(),o=Ae(e);try{a&&!o&&r.begin&&r.begin(),o&&va(t,e,i),wa(t,e,n,i)}finally{a&&!o&&r.end&&r.end()}}function Ca(t,e,n,i,r){const a=un(),o=2&i;try{mn(-1),o&&e.length>20&&la(t,e,20,Ye()),n(i,r)}finally{mn(a)}}function ka(t,e,n){if(le(e)){const i=e.directiveEnd;for(let r=e.directiveStart;r<i;r++){const e=t.data[r];e.contentQueries&&e.contentQueries(1,n[r],r)}}}function Sa(t,e,n){!Fe()||(function(t,e,n,i){const r=n.directiveStart,a=n.directiveEnd;t.firstCreatePass||zn(n,e),Ei(i,e);const o=n.initialInputs;for(let i=r;i<a;i++){const a=t.data[i],s=de(a);s&&Ba(e,n,a);const l=jn(e,t,i,n);Ei(l,e),null!==o&&Va(0,i-r,l,a,0,o),s&&(Oe(n.index,e)[8]=l)}}(t,e,n,Me(n,e)),128==(128&n.flags)&&function(t,e,n){const i=n.directiveStart,r=n.directiveEnd,a=n.index,o=Re.lFrame.currentDirectiveIndex;try{mn(a);for(let n=i;n<r;n++){const i=t.data[n],r=e[n];Qe(n),(null!==i.hostBindings||0!==i.hostVars||null!==i.hostAttrs)&&Ia(i,r)}}finally{mn(-1),Qe(o)}}(t,e,n))}function Pa(t,e,n=Me){const i=e.localNames;if(null!==i){let r=e.index+1;for(let a=0;a<i.length;a+=2){const o=i[a+1],s=-1===o?n(e,t):t[o];t[r++]=s}}}function _a(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=Ma(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function Ma(t,e,n,i,r,a,o,s,l,c){const h=20+i,d=h+r,u=function(t,e){const n=[];for(let i=0;i<e;i++)n.push(i<t?null:oa);return n}(h,d),m="function"==typeof c?c():c;return u[1]={type:t,blueprint:u,template:n,queries:null,viewQuery:s,declTNode:e,data:u.slice().fill(null,h),bindingStartIndex:h,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof a?a():a,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:m,incompleteFirstPass:!1}}function Da(t,e,n,i){const r=Ka(e);null===n?r.push(i):(r.push(n),t.firstCreatePass&&Ja(t).push(i,r.length-1))}function Ea(t,e,n){for(let i in t)if(t.hasOwnProperty(i)){const r=t[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(e,r):n[i]=[e,r]}return n}function Oa(t,e,n,i,r,a,o,s){const l=Me(e,n);let c,h=e.inputs;var d;!s&&null!=h&&(c=h[i])?(eo(t,n,c,i,r),ce(e)&&function(t,e){const n=Oe(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3&e.type&&(i="class"===(d=i)?"className":"for"===d?"htmlFor":"formaction"===d?"formAction":"innerHtml"===d?"innerHTML":"readonly"===d?"readOnly":"tabindex"===d?"tabIndex":d,r=null!=o?o(r,e.value||"",i):r,ke(a)?a.setProperty(l,i,r):_n(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}function Aa(t,e,n,i){let r=!1;if(Fe()){const a=function(t,e,n){const i=t.directiveRegistry;let r=null;if(i)for(let a=0;a<i.length;a++){const o=i[a];na(n,o.selectors,!1)&&(r||(r=[]),Vn(zn(n,e),t,o.type),de(o)?(La(t,n),r.unshift(o)):r.push(o))}return r}(t,e,n),o=null===i?null:{"":-1};if(null!==a){r=!0,Ra(n,t.data.length,a.length);for(let t=0;t<a.length;t++){const e=a[t];e.providersResolver&&e.providersResolver(e)}let i=!1,s=!1,l=ya(t,e,a.length,null);for(let r=0;r<a.length;r++){const c=a[r];n.mergedAttrs=Mn(n.mergedAttrs,c.hostAttrs),Fa(t,n,e,l,c),za(l,c,o),null!==c.contentQueries&&(n.flags|=8),(null!==c.hostBindings||null!==c.hostAttrs||0!==c.hostVars)&&(n.flags|=128);const h=c.type.prototype;!i&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index),i=!0),!s&&(h.ngOnChanges||h.ngDoCheck)&&((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index),s=!0),l++}!function(t,e){const n=e.directiveEnd,i=t.data,r=e.attrs,a=[];let o=null,s=null;for(let t=e.directiveStart;t<n;t++){const n=i[t],l=n.inputs,c=null===r||Jr(e)?null:Na(l,r);a.push(c),o=Ea(l,t,o),s=Ea(n.outputs,t,s)}null!==o&&(o.hasOwnProperty("class")&&(e.flags|=16),o.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=a,e.inputs=o,e.outputs=s}(t,n)}o&&function(t,e,n){if(e){const i=t.localNames=[];for(let t=0;t<e.length;t+=2){const r=n[e[t+1]];if(null==r)throw new gt("301","Export of name '"+e[t+1]+"' not found!");i.push(e[t],r)}}}(n,i,o)}return n.mergedAttrs=Mn(n.mergedAttrs,n.attrs),r}function Ta(t,e,n,i,r,a){const o=a.hostBindings;if(o){let n=t.hostBindingOpCodes;null===n&&(n=t.hostBindingOpCodes=[]);const a=~e.index;(function(t){let e=t.length;for(;e>0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(n)!=a&&n.push(a),n.push(i,r,o)}}function Ia(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function La(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function za(t,e,n){if(n){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)n[e.exportAs[i]]=t;de(e)&&(n[""]=t)}}function Ra(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function Fa(t,e,n,i,r){t.data[i]=r;const a=r.factory||(r.factory=ue(r.type)),o=new kn(a,de(r),null);t.blueprint[i]=o,n[i]=o,Ta(t,e,0,i,ya(t,n,r.hostVars,oa),r)}function Ba(t,e,n){const i=Me(e,t),r=_a(n),a=t[10],o=Wa(t,fa(t,r,null,n.onPush?64:16,i,e,a,a.createRenderer(i,n),null,null));t[e.index]=o}function Va(t,e,n,i,r,a){const o=a[e];if(null!==o){const t=i.setInput;for(let e=0;e<o.length;){const r=o[e++],a=o[e++],s=o[e++];null!==t?i.setInput(n,s,r,a):n[a]=s}}}function Na(t,e){let n=null,i=0;for(;i<e.length;){const r=e[i];if(0!==r)if(5!==r){if("number"==typeof r)break;t.hasOwnProperty(r)&&(null===n&&(n=[]),n.push(r,t[r],e[i+1])),i+=2}else i+=2;else i+=4}return n}function Ha(t,e,n,i){return new Array(t,!0,!1,e,null,0,i,n,null,null)}function Ga(t,e){const n=Oe(e,t);if(Te(n)){const t=n[1];80&n[2]?wa(t,n,t.template,n[8]):n[5]>0&&Za(n)}}function Za(t){for(let e=Ii(t);null!==e;e=Li(e))for(let t=10;t<e.length;t++){const n=e[t];if(1024&n[2]){const t=n[1];wa(t,n,t.template,n[8])}else n[5]>0&&Za(n)}const e=t[1].components;if(null!==e)for(let n=0;n<e.length;n++){const i=Oe(e[n],t);Te(i)&&i[5]>0&&Za(i)}}function Ua(t,e){const n=Oe(e,t),i=n[1];(function(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])})(i,n),va(i,n,n[8])}function Wa(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function Ya(t){for(;t;){t[2]|=64;const e=Ti(t);if(0!=(512&t[2])&&!e)return t;t=e}return null}function ja(t,e,n){const i=e[10];i.begin&&i.begin();try{wa(t,e,t.template,n)}catch(t){throw to(e,t),t}finally{i.end&&i.end()}}function Xa(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],i=Oi(n),r=i[1];xa(r,i,r.template,n)}}(t[8])}function qa(t,e,n){nn(0),e(t,n)}const $a=Promise.resolve(null);function Ka(t){return t[7]||(t[7]=[])}function Ja(t){return t.cleanup||(t.cleanup=[])}function Qa(t,e,n){return(null===t||de(t))&&(n=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(n[e.index])),n[11]}function to(t,e){const n=t[9],i=n?n.get(Wr,null):null;i&&i.handleError(e)}function eo(t,e,n,i,r){for(let a=0;a<n.length;){const o=n[a++],s=n[a++],l=e[o],c=t.data[o];null!==c.setInput?c.setInput(l,r,i,s):l[s]=r}}function no(t,e,n){const i=_e(e,t);var r,a,o;r=t[11],a=i,o=n,ke(r)?r.setValue(a,o):a.textContent=o}function io(t,e,n){let i=n?t.styles:null,r=n?t.classes:null,a=0;if(null!==e)for(let t=0;t<e.length;t++){const n=e[t];"number"==typeof n?a=n:1==a?r=ht(r,n):2==a&&(i=ht(i,n+": "+e[++t]+";"))}n?t.styles=i:t.stylesWithoutHost=i,n?t.classes=r:t.classesWithoutHost=r}const ro=new ni("INJECTOR",-1);class ao{get(t,e=ui){if(e===ui){const e=new Error("NullInjectorError: No provider for "+ct(t)+"!");throw e.name="NullInjectorError",e}return e}}const oo=new ni("Set Injector scope."),so={},lo={};let co;function ho(){return void 0===co&&(co=new ao),co}function uo(t,e=null,n=null,i){return new mo(t,n,e||ho(),i)}class mo{constructor(t,e,n,i=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const r=[];e&&ai(e,(n=>this.processProvider(n,t,e))),ai([t],(t=>this.processInjectorType(t,[],r))),this.records.set(ro,fo(void 0,this));const a=this.records.get(oo);this.scope=null!=a?a.value:null,this.source=i||("object"==typeof t?null:ct(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach((t=>t.ngOnDestroy()))}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=ui,n=Dt.Default){this.assertNotDestroyed();const i=yi(this),r=Ot(void 0);try{if(!(n&Dt.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(a=t)||"object"==typeof a&&a instanceof ni)&&xt(t);e=n&&this.injectableDefInScope(n)?fo(po(t),so):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&Dt.Self?ho():this.parent).get(t,e=n&Dt.Optional&&e===ui?null:e)}catch(e){if("NullInjectorError"===e.name){if((e[pi]=e[pi]||[]).unshift(ct(t)),i)throw e;return function(t,e,n,i){const r=t[pi];throw e.__source&&r.unshift(e.__source),t.message=function(t,e,n,i=null){t=t&&"\n"===t.charAt(0)&&"ɵ"==t.charAt(1)?t.substr(2):t;let r=ct(e);if(Array.isArray(e))r=e.map(ct).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];t.push(n+":"+("string"==typeof i?JSON.stringify(i):ct(i)))}r="{"+t.join(", ")+"}"}return n+(i?"("+i+")":"")+"["+r+"]: "+t.replace(gi,"\n ")}("\n"+t.message,r,n,i),t.ngTokenPath=r,t[pi]=null,t}(e,t,"R3InjectorError",this.source)}throw e}finally{Ot(r),yi(i)}var a}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach((t=>this.get(t)))}toString(){const t=[];return this.records.forEach(((e,n)=>t.push(ct(n)))),"R3Injector["+t.join(", ")+"]"}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=mt(t)))return!1;let i=kt(t);const r=null==i&&t.ngModule||void 0,a=void 0===r?t:r,o=-1!==n.indexOf(a);if(void 0!==r&&(i=kt(r)),null==i)return!1;if(null!=i.imports&&!o){let t;n.push(a);try{ai(i.imports,(i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))}))}finally{}if(void 0!==t)for(let e=0;e<t.length;e++){const{ngModule:n,providers:i}=t[e];ai(i,(t=>this.processProvider(t,n,i||Nt)))}}this.injectorDefTypes.add(a);const s=ue(a)||(()=>new a);this.records.set(a,fo(s,so));const l=i.providers;if(null!=l&&!o){const e=t;ai(l,(t=>this.processProvider(t,e,l)))}return void 0!==r&&void 0!==t.providers}processProvider(t,e,n){let i=yo(t=mt(t))?t:mt(t&&t.provide);const r=bo(a=t)?fo(void 0,a.useValue):fo(go(a),so);var a;if(yo(t)||!0!==t.multi)this.records.get(i);else{let e=this.records.get(i);e||(e=fo(void 0,so,!0),e.factory=()=>Ci(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,r)}hydrate(t,e){return e.value===so&&(e.value=lo,e.value=e.factory()),"object"==typeof e.value&&e.value&&(null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy)&&this.onDestroy.add(e.value),e.value;var n}injectableDefInScope(t){if(!t.providedIn)return!1;const e=mt(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function po(t){const e=xt(t),n=null!==e?e.factory:ue(t);if(null!==n)return n;if(t instanceof ni)throw new Error("Token "+ct(t)+" is missing a ɵprov definition.");if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=li(e,"?");throw new Error("Can't resolve all parameters for "+ct(t)+": ("+n.join(", ")+").")}const n=function(t){const e=t&&(t[St]||t[_t]);if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return r.warn('DEPRECATED: DI is instantiating a token "'+n+'" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "'+n+'" class.'),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function go(t,e,n){let i;if(yo(t)){const e=mt(t);return ue(e)||po(e)}if(bo(t))i=()=>mt(t.useValue);else if((a=t)&&a.useFactory)i=()=>t.useFactory(...Ci(t.deps||[]));else if((r=t)&&r.useExisting)i=()=>wi(mt(t.useExisting));else{const e=mt(t&&(t.useClass||t.provide));if(!t.deps)return ue(e)||po(e);i=()=>new e(...Ci(t.deps))}var r,a;return i}function fo(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function bo(t){return null!==t&&"object"==typeof t&&fi in t}function yo(t){return"function"==typeof t}const vo=function(t,e,n){return function(t,e=null,n=null,i){const r=uo(t,e,n,i);return r._resolveInjectorDefTypes(),r}({name:n},e,t,n)};let wo=(()=>{class t{static create(t,e){return Array.isArray(t)?vo(t,e,""):vo(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=ui,t.NULL=new ao,t["ɵprov"]=vt({token:t,providedIn:"any",factory:()=>wi(ro)}),t.__NG_ELEMENT_ID__=-1,t})();function xo(t,e){bn(Oi(t)[1],He())}function Co(t){let e=(i=t.type,Object.getPrototypeOf(i.prototype).constructor),n=!0;var i;const r=[t];for(;e;){let i;if(de(t))i=e["ɵcmp"]||e["ɵdir"];else{if(e["ɵcmp"])throw new Error("Directives cannot inherit Components");i=e["ɵdir"]}if(i){if(n){r.push(i);const e=t;e.inputs=ko(t.inputs),e.declaredInputs=ko(t.declaredInputs),e.outputs=ko(t.outputs);const n=i.hostBindings;n&&_o(t,n);const a=i.viewQuery,o=i.contentQueries;if(a&&So(t,a),o&&Po(t,o),lt(t.inputs,i.inputs),lt(t.declaredInputs,i.declaredInputs),lt(t.outputs,i.outputs),de(i)&&i.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(i.data.animation)}}const e=i.features;if(e)for(let i=0;i<e.length;i++){const r=e[i];r&&r.ngInherit&&r(t),r===Co&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){let e=0,n=null;for(let i=t.length-1;i>=0;i--){const r=t[i];r.hostVars=e+=r.hostVars,r.hostAttrs=Mn(r.hostAttrs,n=Mn(n,r.hostAttrs))}}(r)}function ko(t){return t===Vt?{}:t===Nt?[]:t}function So(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function Po(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,r)=>{e(t,i,r),n(t,i,r)}:e}function _o(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}let Mo=null;function Do(){if(!Mo){const t=Bt.Symbol;if(t&&t.iterator)Mo=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const n=t[e];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(Mo=n)}}}return Mo}class Eo{constructor(t){this.wrapped=t}static wrap(t){return new Eo(t)}static unwrap(t){return Eo.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof Eo}}function Oo(t){return!!Ao(t)&&(Array.isArray(t)||!(t instanceof Map)&&Do()in t)}function Ao(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function To(t,e,n){return t[e]=n}function Io(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function Lo(t,e,n,i){const r=Io(t,e,n);return Io(t,e+1,i)||r}function zo(t,e,n,i,r){const a=Lo(t,e,n,i);return Io(t,e+2,r)||a}function Ro(t,e,n,i,r,a){const o=Lo(t,e,n,i);return Lo(t,e+2,r,a)||o}function Fo(t,e,n,i){const r=Be();return Io(r,$e(),e)&&(Ve(),function(t,e,n,i,r,a){const o=Me(t,e);!function(t,e,n,i,r,a,o){if(null==a)ke(t)?t.removeAttribute(e,r,n):e.removeAttribute(r);else{const s=null==o?ft(a):o(a,i||"",r);ke(t)?t.setAttribute(e,r,s,n):n?e.setAttributeNS(n,r,s):e.setAttribute(r,s)}}(e[11],o,a,t.value,n,i,r)}(pn(),r,t,e,n,i)),Fo}function Bo(t,e,n,i){return Io(t,$e(),n)?e+ft(n)+i:oa}function Vo(t,e,n,i,r,a){const o=Lo(t,qe(),n,r);return Ke(2),o?e+ft(n)+i+ft(r)+a:oa}function No(t,e,n,i,r,a,o,s,l,c){const h=Ro(t,qe(),n,r,o,l);return Ke(4),h?e+ft(n)+i+ft(r)+a+ft(o)+s+ft(l)+c:oa}function Ho(t,e,n,i,r,a,o,s){const l=Be(),c=Ve(),h=t+20,d=c.firstCreatePass?function(t,e,n,i,r,a,o,s,l){const c=e.consts,h=ba(e,t,4,o||null,Ie(c,s));Aa(e,n,h,Ie(c,l)),bn(e,h);const d=h.tViews=Ma(2,h,i,r,a,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c);return null!==e.queries&&(e.queries.template(e,h),d.queries=e.queries.embeddedTView(h)),h}(h,c,l,e,n,i,r,a,o):c.data[h];Ze(d,!1);const u=l[11].createComment("");Ki(c,l,u,d),Ei(u,l),Wa(l,l[h]=Ha(u,l,u,d)),he(d)&&Sa(c,l,d),null!=o&&Pa(l,d,s)}function Go(t){return Ee(Re.lFrame.contextLView,20+t)}function Zo(t,e=Dt.Default){const n=Be();return null===n?wi(t,e):Gn(He(),n,mt(t),e)}function Uo(t,e,n){const i=Be();return Io(i,$e(),e)&&Oa(Ve(),pn(),i,t,e,i[11],n,!1),Uo}function Wo(t,e,n,i,r){const a=r?"class":"style";eo(t,n,e.inputs[a],a,i)}function Yo(t,e,n,i){const r=Be(),a=Ve(),o=20+t,s=r[11],l=r[o]=Fi(s,e,Re.lFrame.currentNamespace),c=a.firstCreatePass?function(t,e,n,i,r,a,o){const s=e.consts,l=ba(e,t,2,r,Ie(s,a));return Aa(e,n,l,Ie(s,o)),null!==l.attrs&&io(l,l.attrs,!1),null!==l.mergedAttrs&&io(l,l.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,l),l}(o,a,r,0,e,n,i):a.data[o];Ze(c,!0);const h=c.mergedAttrs;null!==h&&Sn(s,l,h);const d=c.classes;null!==d&&ar(s,l,d);const u=c.styles;null!==u&&rr(s,l,u),64!=(64&c.flags)&&Ki(a,r,l,c),0===Re.lFrame.elementDepthCount&&Ei(l,r),Re.lFrame.elementDepthCount++,he(c)&&(Sa(a,r,c),ka(a,c,r)),null!==i&&Pa(r,c)}function jo(){let t=He();Ue()?We():(t=t.parent,Ze(t,!1));const e=t;Re.lFrame.elementDepthCount--;const n=Ve();n.firstCreatePass&&(bn(n,t),le(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&0!=(16&e.flags)&&Wo(n,e,Be(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&0!=(32&e.flags)&&Wo(n,e,Be(),e.stylesWithoutHost,!1)}function Xo(t,e,n,i){Yo(t,e,n,i),jo()}function qo(t,e,n){const i=Be(),r=Ve(),a=t+20,o=r.firstCreatePass?function(t,e,n,i,r){const a=e.consts,o=Ie(a,i),s=ba(e,t,8,"ng-container",o);return null!==o&&io(s,o,!0),Aa(e,n,s,Ie(a,r)),null!==e.queries&&e.queries.elementStart(e,s),s}(a,r,i,e,n):r.data[a];Ze(o,!0);const s=i[a]=i[11].createComment("");Ki(r,i,s,o),Ei(s,i),he(o)&&(Sa(r,i,o),ka(r,o,i)),null!=n&&Pa(i,o)}function $o(){let t=He();const e=Ve();Ue()?We():(t=t.parent,Ze(t,!1)),e.firstCreatePass&&(bn(e,t),le(t)&&e.queries.elementEnd(t))}function Ko(t,e,n){qo(t,e,n),$o()}function Jo(){return Be()}function Qo(t){return!!t&&"function"==typeof t.then}const ts=function(t){return!!t&&"function"==typeof t.subscribe};function es(t,e,n,i){const r=Be(),a=Ve(),o=He();return is(a,r,r[11],o,t,e,!!n,i),es}function ns(t,e){const n=He(),i=Be(),r=Ve();return is(r,i,Qa(tn(r.data),n,i),n,t,e,!1),ns}function is(t,e,n,i,r,a,o,s){const l=he(i),c=t.firstCreatePass&&Ja(t),h=e[8],d=Ka(e);let u=!0;if(3&i.type||s){const m=Me(i,e),p=s?s(m):m,g=d.length,f=s?t=>s(Pe(t[i.index])):i.index;if(ke(n)){let o=null;if(!s&&l&&(o=function(t,e,n,i){const r=t.cleanup;if(null!=r)for(let t=0;t<r.length-1;t+=2){const a=r[t];if(a===n&&r[t+1]===i){const n=e[7],i=r[t+2];return n.length>i?n[i]:null}"string"==typeof a&&(t+=2)}return null}(t,e,r,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=a,o.__ngLastListenerFn__=a,u=!1;else{a=as(i,e,h,a,!1);const t=n.listen(p,r,a);d.push(a,t),c&&c.push(r,f,g,g+1)}}else a=as(i,e,h,a,!0),p.addEventListener(r,a,o),d.push(a),c&&c.push(r,f,g,o)}else a=as(i,e,h,a,!1);const m=i.outputs;let p;if(u&&null!==m&&(p=m[r])){const t=p.length;if(t)for(let n=0;n<t;n+=2){const t=e[p[n]][p[n+1]].subscribe(a),o=d.length;d.push(a,t),c&&c.push(r,i.index,o,-(o+1))}}}function rs(t,e,n,i){try{return!1!==n(i)}catch(e){return to(t,e),!1}}function as(t,e,n,i,r){return function n(a){if(a===Function)return i;const o=2&t.flags?Oe(t.index,e):e;0==(32&e[2])&&Ya(o);let s=rs(e,0,i,a),l=n.__ngNextListenerFn__;for(;l;)s=rs(e,0,l,a)&&s,l=l.__ngNextListenerFn__;return r&&!1===s&&(a.preventDefault(),a.returnValue=!1),s}}function os(t=1){return e=t,(Re.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(e,Re.lFrame.contextLView))[8];var e}function ss(t,e){let n=null;const i=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let r=0;r<e.length;r++){const a=e[r];if("*"!==a){if(null===i?na(t,a,!0):ia(i,a))return r}else n=r}return n}function ls(t){const e=Be()[16][6];if(!e.projection){const n=e.projection=li(t?t.length:1,null),i=n.slice();let r=e.child;for(;null!==r;){const e=t?ss(r,t):0;null!==e&&(i[e]?i[e].projectionNext=r:n[e]=r,i[e]=r),r=r.next}}}function cs(t,e=0,n){const i=Be(),r=Ve(),a=ba(r,20+t,16,null,n||null);var o,s,l;null===a.projection&&(a.projection=e),We(),64!=(64&a.flags)&&(o=r,l=a,ir((s=i)[11],0,s,l,Gi(o,l,s),ji(l.parent||s[6],l,s)))}function hs(t,e,n){return ds(t,"",e,"",n),hs}function ds(t,e,n,i,r){const a=Be(),o=Bo(a,e,n,i);return o!==oa&&Oa(Ve(),pn(),a,t,o,a[11],r,!1),ds}function us(t,e,n,i,r){const a=t[n+1],o=null===e;let s=i?ha(a):ua(a),l=!1;for(;0!==s&&(!1===l||o);){const n=t[s+1];c=t[s],h=e,(null===c||null==h||(Array.isArray(c)?c[1]:c)===h||!(!Array.isArray(c)||"string"!=typeof h)&&di(c,h)>=0)&&(l=!0,t[s+1]=i?pa(n):da(n)),s=i?ha(n):ua(n)}var c,h;l&&(t[n+1]=i?da(a):pa(a))}const ms={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ps(t){return t.substring(ms.key,ms.keyEnd)}function gs(t,e){const n=ms.textEnd;return n===e?-1:ys(t,e=ms.keyEnd=function(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}(t,ms.key=e,n),n)}function fs(t,e){const n=ms.textEnd;let i=ms.key=ys(t,e,n);return n===i?-1:(i=ms.keyEnd=function(t,e,n){let i;for(;e<n&&(45===(i=t.charCodeAt(e))||95===i||(-33&i)>=65&&(-33&i)<=90||i>=48&&i<=57);)e++;return e}(t,i,n),i=vs(t,i,n),i=ms.value=ys(t,i,n),i=ms.valueEnd=function(t,e,n){let i=-1,r=-1,a=-1,o=e,s=o;for(;o<n;){const l=t.charCodeAt(o++);if(59===l)return s;34===l||39===l?s=o=ws(t,l,o,n):e===o-4&&85===a&&82===r&&76===i&&40===l?s=o=ws(t,41,o,n):l>32&&(s=o),a=r,r=i,i=-33&l}return s}(t,i,n),vs(t,i,n))}function bs(t){ms.key=0,ms.keyEnd=0,ms.value=0,ms.valueEnd=0,ms.textEnd=t.length}function ys(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function vs(t,e,n,i){return(e=ys(t,e,n))<n&&e++,e}function ws(t,e,n,i){let r=-1,a=n;for(;a<i;){const n=t.charCodeAt(a++);if(n==e&&92!==r)return a;r=92==n&&92===r?0:n}throw new Error}function xs(t,e,n){return Ms(t,e,n,!1),xs}function Cs(t,e){return Ms(t,e,null,!0),Cs}function ks(t){Ds(Is,Ss,t,!1)}function Ss(t,e){for(let i=(bs(n=e),fs(n,ys(n,0,ms.textEnd)));i>=0;i=fs(e,i))Is(t,ps(e),e.substring(ms.value,ms.valueEnd));var n}function Ps(t){Ds(ci,_s,t,!0)}function _s(t,e){for(let i=(bs(n=e),gs(n,ys(n,0,ms.textEnd)));i>=0;i=gs(e,i))ci(t,ps(e),!0);var n}function Ms(t,e,n,i){const r=Be(),a=Ve(),o=Ke(2);var s,l;a.firstUpdatePass&&Os(a,t,o,i),e!==oa&&Io(r,o,e)&&Ls(a,a.data[un()],r,r[11],t,r[o+1]=(l=n,null==(s=e)||("string"==typeof l?s+=l:"object"==typeof s&&(s=ct(pr(s)))),s),i,o)}function Ds(t,e,n,i){const r=Ve(),a=Ke(2);r.firstUpdatePass&&Os(r,null,a,i);const o=Be();if(n!==oa&&Io(o,a,n)){const s=r.data[un()];if(Fs(s,i)&&!Es(r,a)){let t=i?s.classesWithoutHost:s.stylesWithoutHost;null!==t&&(n=ht(t,n||"")),Wo(r,s,o,n,i)}else!function(t,e,n,i,r,a,o,s){r===oa&&(r=Nt);let l=0,c=0,h=0<r.length?r[0]:null,d=0<a.length?a[0]:null;for(;null!==h||null!==d;){const u=l<r.length?r[l+1]:void 0,m=c<a.length?a[c+1]:void 0;let p,g=null;h===d?(l+=2,c+=2,u!==m&&(g=d,p=m)):null===d||null!==h&&h<d?(l+=2,g=h):(c+=2,g=d,p=m),null!==g&&Ls(t,e,n,i,g,p,o,s),h=l<r.length?r[l]:null,d=c<a.length?a[c]:null}}(r,s,o,o[11],o[a+1],o[a+1]=function(t,e,n){if(null==n||""===n)return Nt;const i=[],r=pr(n);if(Array.isArray(r))for(let e=0;e<r.length;e++)t(i,r[e],!0);else if("object"==typeof r)for(const e in r)r.hasOwnProperty(e)&&t(i,e,r[e]);else"string"==typeof r&&e(i,r);return i}(t,e,n),i,a)}}function Es(t,e){return e>=t.expandoStartIndex}function Os(t,e,n,i){const r=t.data;if(null===r[n+1]){const a=r[un()],o=Es(t,n);Fs(a,i)&&null===e&&!o&&(e=!1),function(t,e,n,i,r,a){let o=a?e.classBindings:e.styleBindings,s=ha(o),l=ua(o);t[i]=n;let c,h=!1;if(Array.isArray(n)){const t=n;c=t[1],(null===c||di(t,c)>0)&&(h=!0)}else c=n;if(r)if(0!==l){const e=ha(t[s+1]);t[i+1]=ca(e,s),0!==e&&(t[e+1]=ma(t[e+1],i)),t[s+1]=131071&t[s+1]|i<<17}else t[i+1]=ca(s,0),0!==s&&(t[s+1]=ma(t[s+1],i)),s=i;else t[i+1]=ca(l,0),0===s?s=i:t[l+1]=ma(t[l+1],i),l=i;h&&(t[i+1]=da(t[i+1])),us(t,c,i,!0),us(t,c,i,!1),function(t,e,n,i,r){const a=r?t.residualClasses:t.residualStyles;null!=a&&"string"==typeof e&&di(a,e)>=0&&(n[i+1]=pa(n[i+1]))}(e,c,t,i,a),o=ca(s,l),a?e.classBindings=o:e.styleBindings=o}(r,a,e=function(t,e,n,i){const r=tn(t);let a=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(n=Ts(n=As(null,t,e,n,i),e.attrs,i),a=null);else{const l=e.directiveStylingLast;if(-1===l||t[l]!==r)if(n=As(r,t,e,n,i),null===a){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==ua(i))return t[ha(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=As(null,t,e,n[1],i),n=Ts(n,e.attrs,i),o=e,s=n,t[ha(i?o.classBindings:o.styleBindings)]=s)}else a=function(t,e,n){let i;const r=e.directiveEnd;for(let a=1+e.directiveStylingLast;a<r;a++)i=Ts(i,t[a].hostAttrs,n);return Ts(i,e.attrs,n)}(t,e,i)}var o,s;return void 0!==a&&(i?e.residualClasses=a:e.residualStyles=a),n}(r,a,e,i),n,o,i)}}function As(t,e,n,i,r){let a=null;const o=n.directiveEnd;let s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s<o&&(a=e[s],i=Ts(i,a.hostAttrs,r),a!==t);)s++;return null!==t&&(n.directiveStylingLast=s),i}function Ts(t,e,n){const i=n?1:2;let r=-1;if(null!==e)for(let a=0;a<e.length;a++){const o=e[a];"number"==typeof o?r=o:r===i&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),ci(t,o,!!n||e[++a]))}return void 0===t?null:t}function Is(t,e,n){ci(t,e,pr(n))}function Ls(t,e,n,i,r,a,o,s){if(!(3&e.type))return;const l=t.data,c=l[s+1];Rs(1==(1&c)?zs(l,e,n,r,ua(c),o):void 0)||(Rs(a)||2==(2&c)&&(a=zs(l,null,n,r,s,o)),function(t,e,n,i,r){const a=ke(t);if(e)r?a?t.addClass(n,i):n.classList.add(i):a?t.removeClass(n,i):n.classList.remove(i);else{let e=-1===i.indexOf("-")?void 0:Mi.DashCase;if(null==r)a?t.removeStyle(n,i,e):n.style.removeProperty(i);else{const o="string"==typeof r&&r.endsWith("!important");o&&(r=r.slice(0,-10),e|=Mi.Important),a?t.setStyle(n,i,r,e):n.style.setProperty(i,r,o?"important":"")}}}(i,o,_e(un(),n),r,a))}function zs(t,e,n,i,r,a){const o=null===e;let s;for(;r>0;){const e=t[r],a=Array.isArray(e),l=a?e[1]:e,c=null===l;let h=n[r+1];h===oa&&(h=c?Nt:void 0);let d=c?hi(h,i):l===i?h:void 0;if(a&&!Rs(d)&&(d=hi(e,i)),Rs(d)&&(s=d,o))return s;const u=t[r+1];r=o?ha(u):ua(u)}if(null!==e){let t=a?e.residualClasses:e.residualStyles;null!=t&&(s=hi(t,i))}return s}function Rs(t){return void 0!==t}function Fs(t,e){return 0!=(t.flags&(e?16:32))}function Bs(t,e=""){const n=Be(),i=Ve(),r=t+20,a=i.firstCreatePass?ba(i,r,1,e,null):i.data[r],o=n[r]=(s=n[11],l=e,ke(s)?s.createText(l):s.createTextNode(l));var s,l;Ki(i,n,o,a),Ze(a,!1)}function Vs(t){return Ns("",t,""),Vs}function Ns(t,e,n){const i=Be(),r=Bo(i,t,e,n);return r!==oa&&no(i,un(),r),Ns}function Hs(t,e,n,i,r){const a=Be(),o=Vo(a,t,e,n,i,r);return o!==oa&&no(a,un(),o),Hs}function Gs(t,e,n,i,r,a,o){const s=Be(),l=function(t,e,n,i,r,a,o,s){const l=zo(t,qe(),n,r,o);return Ke(3),l?e+ft(n)+i+ft(r)+a+ft(o)+s:oa}(s,t,e,n,i,r,a,o);return l!==oa&&no(s,un(),l),Gs}function Zs(t,e,n,i,r,a,o,s,l){const c=Be(),h=No(c,t,e,n,i,r,a,o,s,l);return h!==oa&&no(c,un(),h),Zs}function Us(t,e,n){Ds(ci,_s,Bo(Be(),t,e,n),!0)}function Ws(t,e,n,i,r){Ds(ci,_s,Vo(Be(),t,e,n,i,r),!0)}function Ys(t,e,n){const i=Be();return Io(i,$e(),e)&&Oa(Ve(),pn(),i,t,e,i[11],n,!0),Ys}function js(t,e,n){const i=Be();if(Io(i,$e(),e)){const r=Ve(),a=pn();Oa(r,a,i,t,e,Qa(tn(r.data),a,i),n,!0)}return js}const Xs=void 0;var qs=["en",[["a","p"],["AM","PM"],Xs],[["AM","PM"],Xs,Xs],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Xs,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Xs,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Xs,"{1} 'at' {0}",Xs],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){const e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let $s={};function Ks(t){const e=t.toLowerCase().replace(/_/g,"-");let n=Js(e);if(n)return n;const i=e.split("-")[0];if(n=Js(i),n)return n;if("en"===i)return qs;throw new Error('Missing locale data for the locale "'+t+'".')}function Js(t){return t in $s||($s[t]=Bt.ng&&Bt.ng.common&&Bt.ng.common.locales&&Bt.ng.common.locales[t]),$s[t]}var Qs=((Qs=Qs||{})[Qs.LocaleId=0]="LocaleId",Qs[Qs.DayPeriodsFormat=1]="DayPeriodsFormat",Qs[Qs.DayPeriodsStandalone=2]="DayPeriodsStandalone",Qs[Qs.DaysFormat=3]="DaysFormat",Qs[Qs.DaysStandalone=4]="DaysStandalone",Qs[Qs.MonthsFormat=5]="MonthsFormat",Qs[Qs.MonthsStandalone=6]="MonthsStandalone",Qs[Qs.Eras=7]="Eras",Qs[Qs.FirstDayOfWeek=8]="FirstDayOfWeek",Qs[Qs.WeekendRange=9]="WeekendRange",Qs[Qs.DateFormat=10]="DateFormat",Qs[Qs.TimeFormat=11]="TimeFormat",Qs[Qs.DateTimeFormat=12]="DateTimeFormat",Qs[Qs.NumberSymbols=13]="NumberSymbols",Qs[Qs.NumberFormats=14]="NumberFormats",Qs[Qs.CurrencyCode=15]="CurrencyCode",Qs[Qs.CurrencySymbol=16]="CurrencySymbol",Qs[Qs.CurrencyName=17]="CurrencyName",Qs[Qs.Currencies=18]="Currencies",Qs[Qs.Directionality=19]="Directionality",Qs[Qs.PluralCase=20]="PluralCase",Qs[Qs.ExtraData=21]="ExtraData",Qs);const tl="en-US";let el=tl;function nl(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,i){throw new Error("ASSERTION ERROR: "+t+" [Expected=> null != "+e+" <=Actual]")}(n,e),"string"==typeof t&&(el=t.toLowerCase().replace(/_/g,"-"))}function il(t,e,n,i,r){if(t=mt(t),Array.isArray(t))for(let a=0;a<t.length;a++)il(t[a],e,n,i,r);else{const a=Ve(),o=Be();let s=yo(t)?t:mt(t.provide),l=go(t);const c=He(),h=1048575&c.providerIndexes,d=c.directiveStart,u=c.providerIndexes>>20;if(yo(t)||!t.multi){const i=new kn(l,r,Zo),m=ol(s,e,r?h:h+u,d);-1===m?(Vn(zn(c,o),a,s),rl(a,t,e.length),e.push(s),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(i),o.push(i)):(n[m]=i,o[m]=i)}else{const m=ol(s,e,h+u,d),p=ol(s,e,h,h+u),g=m>=0&&n[m],f=p>=0&&n[p];if(r&&!f||!r&&!g){Vn(zn(c,o),a,s);const h=function(t,e,n,i,r){const a=new kn(t,n,Zo);return a.multi=[],a.index=e,a.componentProviders=0,al(a,r,i&&!n),a}(r?ll:sl,n.length,r,i,l);!r&&f&&(n[p].providerFactory=h),rl(a,t,e.length,0),e.push(s),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(h),o.push(h)}else rl(a,t,m>-1?m:p,al(n[r?p:m],l,!r&&i));!r&&i&&f&&n[p].componentProviders++}}}function rl(t,e,n,i){const r=yo(e);if(r||e.useClass){const a=(e.useClass||e).prototype.ngOnDestroy;if(a){const o=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[i,a]):o[t+1].push(i,a)}else o.push(n,a)}}}function al(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function ol(t,e,n,i){for(let r=n;r<i;r++)if(e[r]===t)return r;return-1}function sl(t,e,n,i){return cl(this.multi,[])}function ll(t,e,n,i){const r=this.multi;let a;if(this.providerFactory){const t=this.providerFactory.componentProviders,e=jn(n,n[1],this.providerFactory.index,i);a=e.slice(0,t),cl(r,a);for(let n=t;n<e.length;n++)a.push(e[n])}else a=[],cl(r,a);return a}function cl(t,e){for(let n=0;n<t.length;n++)e.push((0,t[n])());return e}function hl(t,e=[]){return n=>{n.providersResolver=(n,i)=>function(t,e,n){const i=Ve();if(i.firstCreatePass){const r=de(t);il(n,i.data,i.blueprint,r,!0),il(e,i.data,i.blueprint,r,!1)}}(n,i?i(t):t,e)}}class dl{}class ul{resolveComponentFactory(t){throw function(t){const e=Error("No component factory found for "+ct(t)+". Did you add it to @NgModule.entryComponents?");return e.ngComponent=t,e}(t)}}let ml=(()=>{class t{}return t.NULL=new ul,t})();function pl(...t){}function gl(t,e){return new bl(Me(t,e))}const fl=function(){return gl(He(),Be())};let bl=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=fl,t})();function yl(t){return t instanceof bl?t.nativeElement:t}class vl{}let wl=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>xl(),t})();const xl=function(){const t=Be(),e=Oe(He().index,t);return(oe(e)?e:t)[11]};let Cl=(()=>{class t{}return t["ɵprov"]=vt({token:t,providedIn:"root",factory:()=>null}),t})();const kl=new class{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}("12.2.17");class Sl{constructor(){}supports(t){return Oo(t)}create(t){return new _l(t)}}const Pl=(t,e)=>e;class _l{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Pl}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,r=null;for(;e||n;){const a=!n||e&&e.currentIndex<Ol(n,i,r)?e:n,o=Ol(a,i,r),s=a.currentIndex;if(a===n)i--,n=n._nextRemoved;else if(e=e._next,null==a.previousIndex)i++;else{r||(r=[]);const t=o-i,e=s-i;if(t!=e){for(let n=0;n<t;n++){const i=n<r.length?r[n]:r[n]=0,a=i+n;e<=a&&a<t&&(r[n]=i+1)}r[a.previousIndex]=e-t}}o!==s&&t(a,o,s)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!Oo(t))throw new Error("Error trying to diff '"+ct(t)+"'. Only arrays and iterables are allowed");return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,n,i,r=this._itHead,a=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)n=t[e],i=this._trackByFn(e,n),null!==r&&Object.is(r.trackById,i)?(a&&(r=this._verifyReinsertion(r,n,i,e)),Object.is(r.item,n)||this._addIdentityChange(r,n)):(r=this._mismatch(r,n,i,e),a=!0),r=r._next}else e=0,function(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{const n=t[Do()]();let i;for(;!(i=n.next()).done;)e(i.value)}}(t,(t=>{i=this._trackByFn(e,t),null!==r&&Object.is(r.trackById,i)?(a&&(r=this._verifyReinsertion(r,t,i,e)),Object.is(r.item,t)||this._addIdentityChange(r,t)):(r=this._mismatch(r,t,i,e),a=!0),r=r._next,e++})),this.length=e;return this._truncate(r),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,i){let r;return null===t?r=this._itTail:(r=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,r,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,r,i)):t=this._addAfter(new Ml(e,n),r,i),t}_verifyReinsertion(t,e,n,i){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?t=this._reinsertAfter(r,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,r=t._nextRemoved;return null===i?this._removalsHead=r:i._nextRemoved=r,null===r?this._removalsTail=i:r._prevRemoved=i,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new El),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new El),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Ml{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Dl{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class El{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Dl,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Ol(t,e,n){const i=t.previousIndex;if(null===i)return i;let r=0;return n&&i<n.length&&(r=n[i]),i+e+r}class Al{constructor(){}supports(t){return t instanceof Map||Ao(t)}create(){return new Tl}}class Tl{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||Ao(t)))throw new Error("Error trying to diff '"+ct(t)+"'. Only maps and objects are allowed")}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,((t,n)=>{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}})),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const i=n._prev,r=n._next;return i&&(i._next=r),r&&(r._prev=i),n._next=null,n._prev=null,n}const n=new Il(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach((n=>e(t[n],n)))}}class Il{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Ll(){return new zl([new Sl])}let zl=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||Ll()),deps:[[t,new _i,new Pi]]}}find(t){const e=this.factories.find((e=>e.supports(t)));if(null!=e)return e;throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+(((n=t).name||typeof n)+"'"));var n}}return t["ɵprov"]=vt({token:t,providedIn:"root",factory:Ll}),t})();function Rl(){return new Fl([new Al])}let Fl=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||Rl()),deps:[[t,new _i,new Pi]]}}find(t){const e=this.factories.find((e=>e.supports(t)));if(e)return e;throw new Error("Cannot find a differ supporting object '"+t+"'")}}return t["ɵprov"]=vt({token:t,providedIn:"root",factory:Rl}),t})();function Bl(t,e,n,i,r=!1){for(;null!==n;){const a=e[n.index];if(null!==a&&i.push(Pe(a)),se(a))for(let t=10;t<a.length;t++){const e=a[t],n=e[1].firstChild;null!==n&&Bl(e[1],e,n,i)}const o=n.type;if(8&o)Bl(t,e,n.child,i);else if(32&o){const t=Ai(n,e);let r;for(;r=t();)i.push(r)}else if(16&o){const t=Qi(e,n);if(Array.isArray(t))i.push(...t);else{const n=Ti(e[16]);Bl(n[1],n,t,i,!0)}}n=r?n.projectionNext:n.next}return i}class Vl{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,e=t[1];return Bl(e,t,e.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(se(t)){const e=t[8],n=e?e.indexOf(this):-1;n>-1&&(Vi(t,n),si(e,n))}this._attachedToViewContainer=!1}Ni(this._lView[1],this._lView)}onDestroy(t){Da(this._lView[1],this._lView,null,t)}markForCheck(){Ya(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){ja(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){je(!0);try{ja(t,e,n)}finally{je(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t,e;this._appRef=null,t=this._lView[1],e=this._lView,nr(t,e,e[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Nl extends Vl{constructor(t){super(t),this._view=t}detectChanges(){Xa(this._view)}checkNoChanges(){!function(t){je(!0);try{Xa(t)}finally{je(!1)}}(this._view)}get context(){return null}}const Hl=function(t){return function(t,e,n){if(ce(t)&&!n){const n=Oe(t.index,e);return new Vl(n,n)}return 47&t.type?new Vl(e[16],e):null}(He(),Be(),16==(16&t))};let Gl=(()=>{class t{}return t.__NG_ELEMENT_ID__=Hl,t})();const Zl=[new Al],Ul=new zl([new Sl]),Wl=new Fl(Zl),Yl=function(){return $l(He(),Be())};let jl=(()=>{class t{}return t.__NG_ELEMENT_ID__=Yl,t})();const Xl=jl,ql=class extends Xl{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=fa(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),va(e,n,t),new Vl(n)}};function $l(t,e){return 4&t.type?new ql(e,t,gl(t,e)):null}class Kl{}class Jl{}const Ql=function(){return ac(He(),Be())};let tc=(()=>{class t{}return t.__NG_ELEMENT_ID__=Ql,t})();const ec=tc,nc=class extends ec{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return gl(this._hostTNode,this._hostLView)}get injector(){return new $n(this._hostTNode,this._hostLView)}get parentInjector(){const t=Bn(this._hostTNode,this._hostLView);if(En(t)){const e=An(t,this._hostLView),n=On(t);return new $n(e[1].data[n+8],e)}return new $n(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=ic(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,r){const a=n||this.parentInjector;if(!r&&null==t.ngModule&&a){const t=a.get(Kl,null);t&&(r=t)}const o=t.create(a,i,void 0,r);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,i=n[1];if(se(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new nc(e,e[6],e[3]);i.detach(i.indexOf(t))}}const r=this._adjustIndex(e),a=this._lContainer;!function(t,e,n,i){const r=10+i,a=n.length;i>0&&(n[r-1][4]=e),i<a-10?(e[4]=n[r],oi(n,10+i,e)):(n.push(e),e[4]=null),e[3]=n;const o=e[17];null!==o&&n!==o&&function(t,e){const n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(o,e);const s=e[19];null!==s&&s.insertView(t),e[2]|=128}(i,n,a,r);const o=tr(r,a),s=n[11],l=Yi(s,a[7]);return null!==l&&(c=i,h=a[6],d=s,m=l,p=o,(u=n)[0]=m,u[6]=h,nr(c,u,d,1,m,p)),t.attachToViewContainerRef(),oi(rc(a),r,t),t;var c,h,d,u,m,p}move(t,e){return this.insert(t,e)}indexOf(t){const e=ic(this._lContainer);return null!==e?e.indexOf(t):-1}remove(t){const e=this._adjustIndex(t,-1),n=Vi(this._lContainer,e);n&&(si(rc(this._lContainer),e),Ni(n[1],n))}detach(t){const e=this._adjustIndex(t,-1),n=Vi(this._lContainer,e);return n&&null!=si(rc(this._lContainer),e)?new Vl(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}};function ic(t){return t[8]}function rc(t){return t[8]||(t[8]=[])}function ac(t,e){let n;const i=e[t.index];if(se(i))n=i;else{let o;if(8&t.type)o=Pe(i);else{const n=e[11];o=n.createComment("");const i=Me(t,e);Zi(n,Yi(n,i),o,(a=i,ke(r=n)?r.nextSibling(a):a.nextSibling),!1)}e[t.index]=n=Ha(i,e,o,t),Wa(e,n)}var r,a;return new nc(n,t,e)}const oc={};class sc extends ml{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=re(t);return new hc(e,this.ngModule)}}function lc(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const cc=new ni("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Yr});class hc extends dl{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(aa).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return lc(this.componentDef.inputs)}get outputs(){return lc(this.componentDef.outputs)}create(t,e,n,i){const r=(i=i||this.ngModule)?(p=t,g=i.injector,{get:(t,e,n)=>{const i=p.get(t,oc,n);return i!==oc||e===oc?i:g.get(t,e,n)}}):t,a=r.get(vl,Se),o=r.get(Cl,null),s=a.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(ke(t))return t.selectRootElement(e,n===Lt.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(s,n,this.componentDef.encapsulation):Fi(a.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?we:"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),h=this.componentDef.onPush?576:528,d={components:[],scheduler:Yr,clean:$a,playerHandler:null,flags:0},u=Ma(0,null,null,1,0,null,null,null,null,null),m=fa(null,u,d,h,null,null,a,s,o,r);var p,g;let f,b;on(m);try{const t=function(t,e,n,i,r,a){const o=n[1];n[20]=t;const s=ba(o,20,2,"#host",null),l=s.mergedAttrs=e.hostAttrs;null!==l&&(io(s,l,!0),null!==t&&(Sn(r,t,l),null!==s.classes&&ar(r,t,s.classes),null!==s.styles&&rr(r,t,s.styles)));const c=i.createRenderer(t,e),h=fa(n,_a(e),null,e.onPush?64:16,n[20],s,i,c,null,null);return o.firstCreatePass&&(Vn(zn(s,n),o,e.type),La(o,s),Ra(s,n.length,1)),Wa(n,h),n[20]=h}(c,this.componentDef,m,a,s);if(c)if(n)Sn(s,c,["ng-version",kl.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,r=2;for(;i<t.length;){let a=t[i];if("string"==typeof a)2===r?""!==a&&e.push(a,t[++i]):8===r&&n.push(a);else{if(!ta(r))break;r=a}i++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&Sn(s,c,t),e&&e.length>0&&ar(s,c,e.join(" "))}if(b=De(u,20),void 0!==e){const t=b.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const i=e[n];t.push(null!=i?Array.from(i):null)}}f=function(t,e,n,i,r){const a=n[1],o=function(t,e,n){const i=He();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Fa(t,i,e,ya(t,e,1,null),n));const r=jn(e,t,i.directiveStart,i);Ei(r,e);const a=Me(i,e);return a&&Ei(a,e),r}(a,n,e);if(i.components.push(o),t[8]=o,r&&r.forEach((t=>t(o,e))),e.contentQueries){const t=He();e.contentQueries(1,o,t.directiveStart)}const s=He();return!a.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(mn(s.index),Ta(n[1],s,0,s.directiveStart,s.directiveEnd,e),Ia(e,o)),o}(t,this.componentDef,m,d,[xo]),va(u,m,null)}finally{dn()}return new dc(this.componentType,f,gl(b,m),m,b)}}class dc extends class{}{constructor(t,e,n,i,r){super(),this.location=n,this._rootLView=i,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new Nl(i),this.componentType=t}get injector(){return new $n(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const uc=new Map;class mc extends Kl{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new sc(this);const n=ae(t),i=t[Wt]||null;i&&nl(i),this._bootstrapComponents=Xr(n.bootstrap),this._r3Injector=uo(t,e,[{provide:Kl,useValue:this},{provide:ml,useValue:this.componentFactoryResolver}],ct(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=wo.THROW_IF_NOT_FOUND,n=Dt.Default){return t===wo||t===Kl||t===ro?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach((t=>t())),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class pc extends Jl{constructor(t){super(),this.moduleType=t,null!==ae(t)&&function(t){const e=new Set;!function t(n){const i=ae(n,!0),r=i.id;null!==r&&(function(t,e,n){if(e&&e!==n)throw new Error("Duplicate module registered for "+t+" - "+ct(e)+" vs "+ct(e.name))}(r,uc.get(r),n),uc.set(r,n));const a=Xr(i.imports);for(const n of a)e.has(n)||(e.add(n),t(n))}(t)}(t)}create(t){return new mc(this.moduleType,t)}}function gc(t,e,n){const i=Xe()+t,r=Be();return r[i]===oa?To(r,i,n?e.call(n):e()):r[i]}function fc(t,e,n,i){return wc(Be(),Xe(),t,e,n,i)}function bc(t,e,n,i,r){return xc(Be(),Xe(),t,e,n,i,r)}function yc(t,e,n,i,r,a){return function(t,e,n,i,r,a,o,s){const l=e+n;return zo(t,l,r,a,o)?To(t,l+3,s?i.call(s,r,a,o):i(r,a,o)):vc(t,l+3)}(Be(),Xe(),t,e,n,i,r,a)}function vc(t,e){const n=t[e];return n===oa?void 0:n}function wc(t,e,n,i,r,a){const o=e+n;return Io(t,o,r)?To(t,o+1,a?i.call(a,r):i(r)):vc(t,o+1)}function xc(t,e,n,i,r,a,o){const s=e+n;return Lo(t,s,r,a)?To(t,s+2,o?i.call(o,r,a):i(r,a)):vc(t,s+2)}function Cc(t,e){const n=Ve();let i;const r=t+20;n.firstCreatePass?(i=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const i=e[n];if(t===i.name)return i}throw new gt("302","The pipe '"+t+"' could not be found!")}(e,n.pipeRegistry),n.data[r]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(r,i.onDestroy)):i=n.data[r];const a=i.factory||(i.factory=ue(i.type)),o=Ot(Zo);try{const t=In(!1),e=a();return In(t),s=n,l=Be(),h=e,(c=r)>=s.data.length&&(s.data[c]=null,s.blueprint[c]=null),l[c]=h,e}finally{Ot(o)}var s,l,c,h}function kc(t,e,n){const i=t+20,r=Be(),a=Ee(r,i);return _c(r,Pc(r,i)?wc(r,Xe(),e,a.transform,n,a):a.transform(n))}function Sc(t,e,n,i){const r=t+20,a=Be(),o=Ee(a,r);return _c(a,Pc(a,r)?xc(a,Xe(),e,o.transform,n,i,o):o.transform(n,i))}function Pc(t,e){return t[1].data[e].pure}function _c(t,e){return Eo.isWrapped(e)&&(e=Eo.unwrap(e),t[qe()]=oa),e}function Mc(t){return e=>{setTimeout(t,void 0,e)}}const Dc=class extends A{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){var i,r,a;let o=t,s=e||(()=>null),l=n;if(t&&"object"==typeof t){const e=t;o=null===(i=e.next)||void 0===i?void 0:i.bind(e),s=null===(r=e.error)||void 0===r?void 0:r.bind(e),l=null===(a=e.complete)||void 0===a?void 0:a.bind(e)}this.__isAsync&&(s=Mc(s),o&&(o=Mc(o)),l&&(l=Mc(l)));const c=super.subscribe({next:o,error:s,complete:l});return t instanceof y&&t.add(c),c}};function Ec(){return this._results[Do()]()}class Oc{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Do(),n=Oc.prototype;n[e]||(n[e]=Ec)}get changes(){return this._changes||(this._changes=new Dc)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const n=this;n.dirty=!1;const i=ri(t);(this._changesDetected=!function(t,e,n){if(t.length!==e.length)return!1;for(let i=0;i<t.length;i++){let r=t[i],a=e[i];if(n&&(r=n(r),a=n(a)),a!==r)return!1}return!0}(n._results,i,e))&&(n._results=i,n.length=i.length,n.last=i[this.length-1],n.first=i[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;class Ac{constructor(t){this.queryList=t,this.matches=null}clone(){return new Ac(this.queryList)}setDirty(){this.queryList.setDirty()}}class Tc{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,i=[];for(let t=0;t<n;t++){const n=e.getByIndex(t);i.push(this.queries[n.indexInDeclarationView].clone())}return new Tc(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==Wc(t,e).matches&&this.queries[e].setDirty()}}class Ic{constructor(t,e,n=null){this.predicate=t,this.flags=e,this.read=n}}class Lc{constructor(t=[]){this.queries=t}elementStart(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let n=0;n<this.length;n++){const i=null!==e?e.length:0,r=this.getByIndex(n).embeddedTView(t,i);r&&(r.indexInDeclarationView=n,null!==e?e.push(r):e=[r])}return null!==e?new Lc(e):null}template(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class zc{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new zc(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let n=t.parent;for(;null!==n&&8&n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const n=this.metadata.predicate;if(Array.isArray(n))for(let i=0;i<n.length;i++){const r=n[i];this.matchTNodeWithReadOption(t,e,Rc(e,r)),this.matchTNodeWithReadOption(t,e,Yn(e,t,r,!1,!1))}else n===jl?4&e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,Yn(e,t,n,!1,!1))}matchTNodeWithReadOption(t,e,n){if(null!==n){const i=this.metadata.read;if(null!==i)if(i===bl||i===tc||i===jl&&4&e.type)this.addMatch(e.index,-2);else{const n=Yn(e,t,i,!1,!1);null!==n&&this.addMatch(e.index,n)}else this.addMatch(e.index,n)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function Rc(t,e){const n=t.localNames;if(null!==n)for(let t=0;t<n.length;t+=2)if(n[t]===e)return n[t+1];return null}function Fc(t,e,n,i){const r=e[19].queries[i];if(null===r.matches){const i=t.data,p=n.matches,g=[];for(let t=0;t<p.length;t+=2){const r=p[t];g.push(r<0?null:(a=e,o=i[r],s=p[t+1],l=n.metadata.read,c=void 0,h=void 0,d=void 0,u=void 0,m=void 0,-1===s?(m=a,11&(u=o).type?gl(u,m):4&u.type?$l(u,m):null):-2===s?(c=a,h=o,(d=l)===bl?gl(h,c):d===jl?$l(h,c):d===tc?ac(h,c):void 0):jn(a,a[1],s,o)))}r.matches=g}var a,o,s,l,c,h,d,u,m;return r.matches}function Bc(t,e,n,i){const r=t.queries.getByIndex(n),a=r.matches;if(null!==a){const o=Fc(t,e,r,n);for(let t=0;t<a.length;t+=2){const n=a[t];if(n>0)i.push(o[t/2]);else{const r=a[t+1],o=e[-n];for(let t=10;t<o.length;t++){const e=o[t];e[17]===e[3]&&Bc(e[1],e,r,i)}if(null!==o[9]){const t=o[9];for(let e=0;e<t.length;e++){const n=t[e];Bc(n[1],n,r,i)}}}}}return i}function Vc(t){const e=Be(),n=Ve(),i=en();nn(i+1);const r=Wc(n,i);if(t.dirty&&Ae(e)===(2==(2&r.metadata.flags))){if(null===r.matches)t.reset([]);else{const a=r.crossesNgTemplate?Bc(n,e,i,[]):Fc(n,e,r,i);t.reset(a,yl),t.notifyOnChanges()}return!0}return!1}function Nc(t,e,n){const i=Ve();i.firstCreatePass&&(Uc(i,new Ic(t,e,n),-1),2==(2&e)&&(i.staticViewQueries=!0)),Zc(i,Be(),e)}function Hc(t,e,n,i){const r=Ve();if(r.firstCreatePass){const a=He();Uc(r,new Ic(e,n,i),a.index),function(t,e){const n=t.contentQueries||(t.contentQueries=[]);e!==(n.length?n[n.length-1]:-1)&&n.push(t.queries.length-1,e)}(r,t),2==(2&n)&&(r.staticContentQueries=!0)}Zc(r,Be(),n)}function Gc(){return t=Be(),e=en(),t[19].queries[e].queryList;var t,e}function Zc(t,e,n){const i=new Oc(4==(4&n));Da(t,e,i,i.destroy),null===e[19]&&(e[19]=new Tc),e[19].queries.push(new Ac(i))}function Uc(t,e,n){null===t.queries&&(t.queries=new Lc),t.queries.track(new zc(e,n))}function Wc(t,e){return t.queries.getByIndex(e)}function Yc(t,e){return $l(t,e)}const jc=new ni("Application Initializer");let Xc=(()=>{class t{constructor(t){this.appInits=t,this.resolve=pl,this.reject=pl,this.initialized=!1,this.done=!1,this.donePromise=new Promise(((t,e)=>{this.resolve=t,this.reject=e}))}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let e=0;e<this.appInits.length;e++){const n=this.appInits[e]();if(Qo(n))t.push(n);else if(ts(n)){const e=new Promise(((t,e)=>{n.subscribe({complete:t,error:e})}));t.push(e)}}Promise.all(t).then((()=>{e()})).catch((t=>{this.reject(t)})),0===t.length&&e(),this.initialized=!0}}return t["ɵfac"]=function(e){return new(e||t)(wi(jc,8))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})();const qc=new ni("AppId"),$c={provide:qc,useFactory:function(){return""+Kc()+Kc()+Kc()},deps:[]};function Kc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Jc=new ni("Platform Initializer"),Qc=new ni("Platform ID"),th=new ni("appBootstrapListener");let eh=(()=>{class t{log(t){r.log(t)}warn(t){r.warn(t)}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})();const nh=new ni("LocaleId"),ih=new ni("DefaultCurrencyCode");class rh{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const ah=function(t){return new pc(t)},oh=ah,sh=function(t){return Promise.resolve(ah(t))},lh=function(t){const e=ah(t),n=Xr(ae(t).declarations).reduce(((t,e)=>{const n=re(e);return n&&t.push(new hc(n)),t}),[]);return new rh(e,n)},ch=lh,hh=function(t){return Promise.resolve(lh(t))};let dh=(()=>{class t{constructor(){this.compileModuleSync=oh,this.compileModuleAsync=sh,this.compileModuleAndAllComponentsSync=ch,this.compileModuleAndAllComponentsAsync=hh}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})();const uh=Promise.resolve(0);function mh(t){"undefined"==typeof Zone?uh.then((()=>{t&&t.apply(null,null)})):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class ph{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Dc(!1),this.onMicrotaskEmpty=new Dc(!1),this.onStable=new Dc(!1),this.onError=new Dc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&e,i.shouldCoalesceRunChangeDetection=n,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function(){let t=Bt.requestAnimationFrame,e=Bt.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{var e;(e=t).isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Bt,(()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",(()=>{e.lastRequestAnimationFrameId=-1,bh(e),e.isCheckStableRunning=!0,fh(e),e.isCheckStableRunning=!1}),void 0,(()=>{}),(()=>{}))),e.fakeTopEventTask.invoke()})),bh(e))};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,r,a,o,s)=>{try{return yh(t),n.invokeTask(r,a,o,s)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===a.type||t.shouldCoalesceRunChangeDetection)&&e(),vh(t)}},onInvoke:(n,i,r,a,o,s,l)=>{try{return yh(t),n.invoke(r,a,o,s,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),vh(t)}},onHasTask:(e,n,i,r)=>{e.hasTask(i,r),n===i&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,bh(t),fh(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,n,i,r)=>(e.handleError(i,r),t.runOutsideAngular((()=>t.onError.emit(r))),!1)})}(i)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ph.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(ph.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,i){const r=this._inner,a=r.scheduleEventTask("NgZoneEvent: "+i,t,gh,pl,pl);try{return r.runTask(a,e,n)}finally{r.cancelTask(a)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const gh={};function fh(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular((()=>t.onStable.emit(null)))}finally{t.isStable=!0}}}function bh(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function yh(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function vh(t){t._nesting--,fh(t)}class wh{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Dc,this.onMicrotaskEmpty=new Dc,this.onStable=new Dc,this.onError=new Dc}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,i){return t.apply(e,n)}}let xh=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run((()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")}))}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular((()=>{this._ngZone.onStable.subscribe({next:()=>{ph.assertNotInAngularZone(),mh((()=>{this._isZoneStable=!0,this._runCallbacksIfReady()}))}})}))}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())mh((()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1}));else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter((e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1))),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map((t=>({source:t.source,creationLocation:t.creationLocation,data:t.data}))):[]}addCallback(t,e,n){let i=-1;e&&e>0&&(i=setTimeout((()=>{this._callbacks=this._callbacks.filter((t=>t.timeoutId!==i)),t(this._didWork,this.getPendingTasks())}),e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t["ɵfac"]=function(e){return new(e||t)(wi(ph))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),Ch=(()=>{class t{constructor(){this._applications=new Map,Sh.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Sh.findTestabilityInTree(this,t,e)}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})();let kh,Sh=new class{addToWindow(t){}findTestabilityInTree(t,e,n){return null}},Ph=!0,_h=!1;function Mh(){return _h=!0,Ph}const Dh=new ni("AllowMultipleToken");function Eh(t,e,n=[]){const i="Platform: "+e,r=new ni(i);return(e=[])=>{let a=Oh();if(!a||a.injector.get(Dh,!1))if(t)t(n.concat(e).concat({provide:r,useValue:!0}));else{const t=n.concat(e).concat({provide:r,useValue:!0},{provide:oo,useValue:"platform"});!function(t){if(kh&&!kh.destroyed&&!kh.injector.get(Dh,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");kh=t.get(Ah);const e=t.get(Jc,null);e&&e.forEach((t=>t()))}(wo.create({providers:t,name:i}))}return function(t){const e=Oh();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(r)}}function Oh(){return kh&&!kh.destroyed?kh:null}let Ah=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new wh:("zone.js"===t?void 0:t)||new ph({enableLongStackTrace:Mh(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),i=[{provide:ph,useValue:n}];return n.run((()=>{const e=wo.create({providers:i,parent:this.injector,name:t.moduleType.name}),r=t.create(e),a=r.injector.get(Wr,null);if(!a)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular((()=>{const t=n.onError.subscribe({next:t=>{a.handleError(t)}});r.onDestroy((()=>{Lh(this._modules,r),t.unsubscribe()}))})),function(t,e,n){try{const i=n();return Qo(i)?i.catch((n=>{throw e.runOutsideAngular((()=>t.handleError(n))),n})):i}catch(n){throw e.runOutsideAngular((()=>t.handleError(n))),n}}(a,n,(()=>{const t=r.injector.get(Xc);return t.runInitializers(),t.donePromise.then((()=>(nl(r.injector.get(nh,tl)||tl),this._moduleDoBootstrap(r),r)))}))}))}bootstrapModule(t,e=[]){const n=Th({},e);return function(t,e,n){const i=new pc(n);return Promise.resolve(i)}(0,0,t).then((t=>this.bootstrapModuleFactory(t,n)))}_moduleDoBootstrap(t){const e=t.injector.get(Ih);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach((t=>e.bootstrap(t)));else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+ct(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach((t=>t.destroy())),this._destroyListeners.forEach((t=>t())),this._destroyed=!0}get destroyed(){return this._destroyed}}return t["ɵfac"]=function(e){return new(e||t)(wi(wo))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})();function Th(t,e){return Array.isArray(e)?e.reduce(Th,t):Object.assign(Object.assign({},t),e)}let Ih=(()=>{class t{constructor(t,e,n,i,r){this._zone=t,this._injector=e,this._exceptionHandler=n,this._componentFactoryResolver=i,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run((()=>{this.tick()}))}});const a=new _((t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular((()=>{t.next(this._stable),t.complete()}))})),o=new _((t=>{let e;this._zone.runOutsideAngular((()=>{e=this._zone.onStable.subscribe((()=>{ph.assertNotInAngularZone(),mh((()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,t.next(!0))}))}))}));const n=this._zone.onUnstable.subscribe((()=>{ph.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular((()=>{t.next(!1)})))}));return()=>{e.unsubscribe(),n.unsubscribe()}}));this.isStable=J(a,o.pipe(ot()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof dl?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(Kl),r=n.create(wo.NULL,[],e||n.selector,i),a=r.location.nativeElement,o=r.injector.get(xh,null),s=o&&r.injector.get(Ch);return o&&s&&s.registerApplication(a,o),r.onDestroy((()=>{this.detachView(r.hostView),Lh(this.components,r),s&&s.unregisterApplication(a)})),this._loadComponent(r),r}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular((()=>this._exceptionHandler.handleError(t)))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Lh(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(th,[]).concat(this._bootstrapListeners).forEach((e=>e(t)))}ngOnDestroy(){this._views.slice().forEach((t=>t.destroy())),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t["ɵfac"]=function(e){return new(e||t)(wi(ph),wi(wo),wi(Wr),wi(ml),wi(Xc))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})();function Lh(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class zh{}const Rh=Eh(null,"core",[{provide:Qc,useValue:"unknown"},{provide:Ah,deps:[wo]},{provide:Ch,deps:[]},{provide:eh,deps:[]}]),Fh=[{provide:Ih,useClass:Ih,deps:[ph,wo,Wr,ml,Xc]},{provide:cc,deps:[ph],useFactory:function(t){let e=[];return t.onStable.subscribe((()=>{for(;e.length;)e.pop()()})),function(t){e.push(t)}}},{provide:Xc,useClass:Xc,deps:[[new Pi,jc]]},{provide:dh,useClass:dh,deps:[]},$c,{provide:zl,useFactory:function(){return Ul},deps:[]},{provide:Fl,useFactory:function(){return Wl},deps:[]},{provide:nh,useFactory:function(t){return nl(t=t||"undefined"!=typeof $localize&&$localize.locale||tl),t},deps:[[new Si(nh),new Pi,new _i]]},{provide:ih,useValue:"USD"}];let Bh=(()=>{class t{constructor(t){}}return t["ɵfac"]=function(e){return new(e||t)(wi(Ih))},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({providers:Fh}),t})(),Vh=null;function Nh(){return Vh}const Hh=new ni("DocumentToken");let Gh=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵprov"]=vt({factory:Zh,token:t,providedIn:"platform"}),t})();function Zh(){return wi(Uh)}let Uh=(()=>{class t extends Gh{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Nh().getBaseHref(this._doc)}onPopState(t){const e=Nh().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),()=>e.removeEventListener("popstate",t)}onHashChange(t){const e=Nh().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),()=>e.removeEventListener("hashchange",t)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){Wh()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){Wh()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return t["ɵfac"]=function(e){return new(e||t)(wi(Hh))},t["ɵprov"]=vt({factory:Yh,token:t,providedIn:"platform"}),t})();function Wh(){return!!window.history.pushState}function Yh(){return new Uh(wi(Hh))}function jh(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function Xh(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function qh(t){return t&&"?"!==t[0]?"?"+t:t}let $h=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵprov"]=vt({factory:Kh,token:t,providedIn:"root"}),t})();function Kh(t){const e=wi(Hh).location;return new Qh(wi(Gh),e&&e.origin||"")}const Jh=new ni("appBaseHref");let Qh=(()=>{class t extends $h{constructor(t,e){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return jh(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+qh(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e}pushState(t,e,n,i){const r=this.prepareExternalUrl(n+qh(i));this._platformLocation.pushState(t,e,r)}replaceState(t,e,n,i){const r=this.prepareExternalUrl(n+qh(i));this._platformLocation.replaceState(t,e,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t["ɵfac"]=function(e){return new(e||t)(wi(Gh),wi(Jh,8))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),td=(()=>{class t{constructor(t,e){this._subject=new Dc,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=Xh(nd(n)),this._platformStrategy.onPopState((t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})}))}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+qh(e))}normalize(e){return t.stripTrailingSlash((n=this._baseHref,i=nd(e),n&&i.startsWith(n)?i.substring(n.length):i));var n,i}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+qh(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+qh(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformStrategy).historyGo)||void 0===n||n.call(e,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe((t=>{this._notifyUrlChangeListeners(t.url,t.state)})))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach((n=>n(t,e)))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t["ɵfac"]=function(e){return new(e||t)(wi($h),wi(Gh))},t.normalizeQueryParams=qh,t.joinWithSlash=jh,t.stripTrailingSlash=Xh,t["ɵprov"]=vt({factory:ed,token:t,providedIn:"root"}),t})();function ed(){return new td(wi($h),wi(Gh))}function nd(t){return t.replace(/\/index.html$/,"")}var id=((id=id||{})[id.Decimal=0]="Decimal",id[id.Percent=1]="Percent",id[id.Currency=2]="Currency",id[id.Scientific=3]="Scientific",id),rd=((rd=rd||{})[rd.Zero=0]="Zero",rd[rd.One=1]="One",rd[rd.Two=2]="Two",rd[rd.Few=3]="Few",rd[rd.Many=4]="Many",rd[rd.Other=5]="Other",rd),ad=((ad=ad||{})[ad.Format=0]="Format",ad[ad.Standalone=1]="Standalone",ad),od=((od=od||{})[od.Narrow=0]="Narrow",od[od.Abbreviated=1]="Abbreviated",od[od.Wide=2]="Wide",od[od.Short=3]="Short",od),sd=((sd=sd||{})[sd.Short=0]="Short",sd[sd.Medium=1]="Medium",sd[sd.Long=2]="Long",sd[sd.Full=3]="Full",sd),ld=((ld=ld||{})[ld.Decimal=0]="Decimal",ld[ld.Group=1]="Group",ld[ld.List=2]="List",ld[ld.PercentSign=3]="PercentSign",ld[ld.PlusSign=4]="PlusSign",ld[ld.MinusSign=5]="MinusSign",ld[ld.Exponential=6]="Exponential",ld[ld.SuperscriptingExponent=7]="SuperscriptingExponent",ld[ld.PerMille=8]="PerMille",ld[ld[1/0]=9]="Infinity",ld[ld.NaN=10]="NaN",ld[ld.TimeSeparator=11]="TimeSeparator",ld[ld.CurrencyDecimal=12]="CurrencyDecimal",ld[ld.CurrencyGroup=13]="CurrencyGroup",ld);function cd(t,e,n){const i=Ks(t),r=gd([i[Qs.DayPeriodsFormat],i[Qs.DayPeriodsStandalone]],e);return gd(r,n)}function hd(t,e){return gd(Ks(t)[Qs.DateFormat],e)}function dd(t,e){return gd(Ks(t)[Qs.TimeFormat],e)}function ud(t,e){return gd(Ks(t)[Qs.DateTimeFormat],e)}function md(t,e){const n=Ks(t),i=n[Qs.NumberSymbols][e];if(void 0===i){if(e===ld.CurrencyDecimal)return n[Qs.NumberSymbols][ld.Decimal];if(e===ld.CurrencyGroup)return n[Qs.NumberSymbols][ld.Group]}return i}function pd(t){if(!t[Qs.ExtraData])throw new Error('Missing extra locale data for the locale "'+t[Qs.LocaleId]+'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.')}function gd(t,e){for(let n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function fd(t){const[e,n]=t.split(":");return{hours:+e,minutes:+n}}const bd=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,yd={},vd=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var wd=((wd=wd||{})[wd.Short=0]="Short",wd[wd.ShortGMT=1]="ShortGMT",wd[wd.Long=2]="Long",wd[wd.Extended=3]="Extended",wd),xd=((xd=xd||{})[xd.FullYear=0]="FullYear",xd[xd.Month=1]="Month",xd[xd.Date=2]="Date",xd[xd.Hours=3]="Hours",xd[xd.Minutes=4]="Minutes",xd[xd.Seconds=5]="Seconds",xd[xd.FractionalSeconds=6]="FractionalSeconds",xd[xd.Day=7]="Day",xd),Cd=((Cd=Cd||{})[Cd.DayPeriods=0]="DayPeriods",Cd[Cd.Days=1]="Days",Cd[Cd.Months=2]="Months",Cd[Cd.Eras=3]="Eras",Cd);function kd(t,e,n,i){let r=function(t){if(Rd(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[e,n=1,i=1]=t.split("-").map((t=>+t));return Sd(e,n-1,i)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let n;if(n=t.match(bd))return function(t){const e=new Date(0);let n=0,i=0;const r=t[8]?e.setUTCFullYear:e.setFullYear,a=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),i=Number(t[9]+t[11])),r.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const o=Number(t[4]||0)-n,s=Number(t[5]||0)-i,l=Number(t[6]||0),c=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return a.call(e,o,s,l,c),e}(n)}const e=new Date(t);if(!Rd(e))throw new Error('Unable to convert "'+t+'" into a date');return e}(t);e=Pd(n,e)||e;let a,o=[];for(;e;){if(a=vd.exec(e),!a){o.push(e);break}{o=o.concat(a.slice(1));const t=o.pop();if(!t)break;e=t}}let s=r.getTimezoneOffset();i&&(s=zd(i,s),r=function(t,e,n){const i=t.getTimezoneOffset();return r=t,a=-1*(zd(e,i)-i),(r=new Date(r.getTime())).setMinutes(r.getMinutes()+a),r;var r,a}(r,i));let l="";return o.forEach((t=>{const e=function(t){if(Ld[t])return Ld[t];let e;switch(t){case"G":case"GG":case"GGG":e=Ed(Cd.Eras,od.Abbreviated);break;case"GGGG":e=Ed(Cd.Eras,od.Wide);break;case"GGGGG":e=Ed(Cd.Eras,od.Narrow);break;case"y":e=Dd(xd.FullYear,1,0,!1,!0);break;case"yy":e=Dd(xd.FullYear,2,0,!0,!0);break;case"yyy":e=Dd(xd.FullYear,3,0,!1,!0);break;case"yyyy":e=Dd(xd.FullYear,4,0,!1,!0);break;case"Y":e=Id(1);break;case"YY":e=Id(2,!0);break;case"YYY":e=Id(3);break;case"YYYY":e=Id(4);break;case"M":case"L":e=Dd(xd.Month,1,1);break;case"MM":case"LL":e=Dd(xd.Month,2,1);break;case"MMM":e=Ed(Cd.Months,od.Abbreviated);break;case"MMMM":e=Ed(Cd.Months,od.Wide);break;case"MMMMM":e=Ed(Cd.Months,od.Narrow);break;case"LLL":e=Ed(Cd.Months,od.Abbreviated,ad.Standalone);break;case"LLLL":e=Ed(Cd.Months,od.Wide,ad.Standalone);break;case"LLLLL":e=Ed(Cd.Months,od.Narrow,ad.Standalone);break;case"w":e=Td(1);break;case"ww":e=Td(2);break;case"W":e=Td(1,!0);break;case"d":e=Dd(xd.Date,1);break;case"dd":e=Dd(xd.Date,2);break;case"c":case"cc":e=Dd(xd.Day,1);break;case"ccc":e=Ed(Cd.Days,od.Abbreviated,ad.Standalone);break;case"cccc":e=Ed(Cd.Days,od.Wide,ad.Standalone);break;case"ccccc":e=Ed(Cd.Days,od.Narrow,ad.Standalone);break;case"cccccc":e=Ed(Cd.Days,od.Short,ad.Standalone);break;case"E":case"EE":case"EEE":e=Ed(Cd.Days,od.Abbreviated);break;case"EEEE":e=Ed(Cd.Days,od.Wide);break;case"EEEEE":e=Ed(Cd.Days,od.Narrow);break;case"EEEEEE":e=Ed(Cd.Days,od.Short);break;case"a":case"aa":case"aaa":e=Ed(Cd.DayPeriods,od.Abbreviated);break;case"aaaa":e=Ed(Cd.DayPeriods,od.Wide);break;case"aaaaa":e=Ed(Cd.DayPeriods,od.Narrow);break;case"b":case"bb":case"bbb":e=Ed(Cd.DayPeriods,od.Abbreviated,ad.Standalone,!0);break;case"bbbb":e=Ed(Cd.DayPeriods,od.Wide,ad.Standalone,!0);break;case"bbbbb":e=Ed(Cd.DayPeriods,od.Narrow,ad.Standalone,!0);break;case"B":case"BB":case"BBB":e=Ed(Cd.DayPeriods,od.Abbreviated,ad.Format,!0);break;case"BBBB":e=Ed(Cd.DayPeriods,od.Wide,ad.Format,!0);break;case"BBBBB":e=Ed(Cd.DayPeriods,od.Narrow,ad.Format,!0);break;case"h":e=Dd(xd.Hours,1,-12);break;case"hh":e=Dd(xd.Hours,2,-12);break;case"H":e=Dd(xd.Hours,1);break;case"HH":e=Dd(xd.Hours,2);break;case"m":e=Dd(xd.Minutes,1);break;case"mm":e=Dd(xd.Minutes,2);break;case"s":e=Dd(xd.Seconds,1);break;case"ss":e=Dd(xd.Seconds,2);break;case"S":e=Dd(xd.FractionalSeconds,1);break;case"SS":e=Dd(xd.FractionalSeconds,2);break;case"SSS":e=Dd(xd.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Od(wd.Short);break;case"ZZZZZ":e=Od(wd.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Od(wd.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Od(wd.Long);break;default:return null}return Ld[t]=e,e}(t);l+=e?e(r,n,s):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")})),l}function Sd(t,e,n){const i=new Date(0);return i.setFullYear(t,e,n),i.setHours(0,0,0),i}function Pd(t,e){const n=Ks(t)[Qs.LocaleId];if(yd[n]=yd[n]||{},yd[n][e])return yd[n][e];let i="";switch(e){case"shortDate":i=hd(t,sd.Short);break;case"mediumDate":i=hd(t,sd.Medium);break;case"longDate":i=hd(t,sd.Long);break;case"fullDate":i=hd(t,sd.Full);break;case"shortTime":i=dd(t,sd.Short);break;case"mediumTime":i=dd(t,sd.Medium);break;case"longTime":i=dd(t,sd.Long);break;case"fullTime":i=dd(t,sd.Full);break;case"short":const e=Pd(t,"shortTime"),n=Pd(t,"shortDate");i=_d(ud(t,sd.Short),[e,n]);break;case"medium":const r=Pd(t,"mediumTime"),a=Pd(t,"mediumDate");i=_d(ud(t,sd.Medium),[r,a]);break;case"long":const o=Pd(t,"longTime"),s=Pd(t,"longDate");i=_d(ud(t,sd.Long),[o,s]);break;case"full":const l=Pd(t,"fullTime"),c=Pd(t,"fullDate");i=_d(ud(t,sd.Full),[l,c])}return i&&(yd[n][e]=i),i}function _d(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,(function(t,n){return null!=e&&n in e?e[n]:t}))),t}function Md(t,e,n="-",i,r){let a="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,a=n));let o=String(t);for(;o.length<e;)o="0"+o;return i&&(o=o.substr(o.length-e)),a+o}function Dd(t,e,n=0,i=!1,r=!1){return function(a,o){let s=function(t,e){switch(t){case xd.FullYear:return e.getFullYear();case xd.Month:return e.getMonth();case xd.Date:return e.getDate();case xd.Hours:return e.getHours();case xd.Minutes:return e.getMinutes();case xd.Seconds:return e.getSeconds();case xd.FractionalSeconds:return e.getMilliseconds();case xd.Day:return e.getDay();default:throw new Error('Unknown DateType value "'+t+'".')}}(t,a);if((n>0||s>-n)&&(s+=n),t===xd.Hours)0===s&&-12===n&&(s=12);else if(t===xd.FractionalSeconds)return l=e,Md(s,3).substr(0,l);var l;const c=md(o,ld.MinusSign);return Md(s,e,c,i,r)}}function Ed(t,e,n=ad.Format,i=!1){return function(r,a){return function(t,e,n,i,r,a){switch(n){case Cd.Months:return function(t,e,n){const i=Ks(t),r=gd([i[Qs.MonthsFormat],i[Qs.MonthsStandalone]],e);return gd(r,n)}(e,r,i)[t.getMonth()];case Cd.Days:return function(t,e,n){const i=Ks(t),r=gd([i[Qs.DaysFormat],i[Qs.DaysStandalone]],e);return gd(r,n)}(e,r,i)[t.getDay()];case Cd.DayPeriods:const l=t.getHours(),c=t.getMinutes();if(a){const t=function(t){const e=Ks(t);return pd(e),(e[Qs.ExtraData][2]||[]).map((t=>"string"==typeof t?fd(t):[fd(t[0]),fd(t[1])]))}(e),n=function(t,e,n){const i=Ks(t);pd(i);const r=gd([i[Qs.ExtraData][0],i[Qs.ExtraData][1]],e)||[];return gd(r,n)||[]}(e,r,i),a=t.findIndex((t=>{if(Array.isArray(t)){const[e,n]=t,i=l>=e.hours&&c>=e.minutes,r=l<n.hours||l===n.hours&&c<n.minutes;if(e.hours<n.hours){if(i&&r)return!0}else if(i||r)return!0}else if(t.hours===l&&t.minutes===c)return!0;return!1}));if(-1!==a)return n[a]}return cd(e,r,i)[l<12?0:1];case Cd.Eras:return(o=e,s=i,gd(Ks(o)[Qs.Eras],s))[t.getFullYear()<=0?0:1];default:throw new Error("unexpected translation type "+n)}var o,s}(r,a,t,e,n,i)}}function Od(t){return function(e,n,i){const r=-1*i,a=md(n,ld.MinusSign),o=r>0?Math.floor(r/60):Math.ceil(r/60);switch(t){case wd.Short:return(r>=0?"+":"")+Md(o,2,a)+Md(Math.abs(r%60),2,a);case wd.ShortGMT:return"GMT"+(r>=0?"+":"")+Md(o,1,a);case wd.Long:return"GMT"+(r>=0?"+":"")+Md(o,2,a)+":"+Md(Math.abs(r%60),2,a);case wd.Extended:return 0===i?"Z":(r>=0?"+":"")+Md(o,2,a)+":"+Md(Math.abs(r%60),2,a);default:throw new Error('Unknown zone width "'+t+'"')}}}function Ad(t){return Sd(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function Td(t,e=!1){return function(n,i){let r;if(e){const t=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,e=n.getDate();r=1+Math.floor((e+t)/7)}else{const t=Ad(n),e=function(t){const e=Sd(t,0,1).getDay();return Sd(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),i=t.getTime()-e.getTime();r=1+Math.round(i/6048e5)}return Md(r,t,md(i,ld.MinusSign))}}function Id(t,e=!1){return function(n,i){return Md(Ad(n).getFullYear(),t,md(i,ld.MinusSign),e)}}const Ld={};function zd(t,e){t=t.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function Rd(t){return t instanceof Date&&!isNaN(t.valueOf())}const Fd=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Bd(t){const e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}class Vd{}let Nd=(()=>{class t extends Vd{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(Ks(e||this.locale)[Qs.PluralCase](t)){case rd.Zero:return"zero";case rd.One:return"one";case rd.Two:return"two";case rd.Few:return"few";case rd.Many:return"many";default:return"other"}}}return t["ɵfac"]=function(e){return new(e||t)(wi(nh))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})();function Hd(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,r]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(r)}return null}let Gd=(()=>{class t{constructor(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Oo(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem((t=>this._toggleClass(t.key,t.currentValue))),t.forEachChangedItem((t=>this._toggleClass(t.key,t.currentValue))),t.forEachRemovedItem((t=>{t.previousValue&&this._toggleClass(t.key,!1)}))}_applyIterableChanges(t){t.forEachAddedItem((t=>{if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+ct(t.item));this._toggleClass(t.item,!0)})),t.forEachRemovedItem((t=>this._toggleClass(t.item,!1)))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach((t=>this._toggleClass(t,!0))):Object.keys(t).forEach((e=>this._toggleClass(e,!!t[e]))))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach((t=>this._toggleClass(t,!1))):Object.keys(t).forEach((t=>this._toggleClass(t,!1))))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach((t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)}))}}return t["ɵfac"]=function(e){return new(e||t)(Zo(zl),Zo(Fl),Zo(bl),Zo(wl))},t["ɵdir"]=ne({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class Zd{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Ud=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(n){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+(((t=e).name||typeof t)+"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation(((t,n,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new Zd(null,this._ngForOf,-1,-1),null===i?void 0:i),r=new Wd(t,n);e.push(r)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const r=this._viewContainer.get(n);this._viewContainer.move(r,i);const a=new Wd(t,r);e.push(a)}}));for(let t=0;t<e.length;t++)this._perViewChange(e[t].view,e[t].record);for(let t=0,e=this._viewContainer.length;t<e;t++){const n=this._viewContainer.get(t);n.context.index=t,n.context.count=e,n.context.ngForOf=this._ngForOf}t.forEachIdentityChange((t=>{this._viewContainer.get(t.currentIndex).context.$implicit=t.item}))}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t["ɵfac"]=function(e){return new(e||t)(Zo(tc),Zo(jl),Zo(zl))},t["ɵdir"]=ne({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class Wd{constructor(t,e){this.record=t,this.view=e}}let Yd=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new jd,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Xd("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Xd("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t["ɵfac"]=function(e){return new(e||t)(Zo(tc),Zo(jl))},t["ɵdir"]=ne({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class jd{constructor(){this.$implicit=null,this.ngIf=null}}function Xd(t,e){if(e&&!e.createEmbeddedView)throw new Error(t+" must be a TemplateRef, but received '"+ct(e)+"'.")}class qd{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let $d=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e<this._defaultViews.length;e++)this._defaultViews[e].enforceState(t)}}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵdir"]=ne({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),t})(),Kd=(()=>{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new qd(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t["ɵfac"]=function(e){return new(e||t)(Zo(tc),Zo(jl),Zo($d,9))},t["ɵdir"]=ne({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),Jd=(()=>{class t{constructor(t,e,n){n._addDefault(new qd(t,e))}}return t["ɵfac"]=function(e){return new(e||t)(Zo(tc),Zo(jl),Zo($d,9))},t["ɵdir"]=ne({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),Qd=(()=>{class t{constructor(t,e,n){this._ngEl=t,this._differs=e,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[n,i]=t.split(".");null!=(e=null!=e&&i?""+e+i:e)?this._renderer.setStyle(this._ngEl.nativeElement,n,e):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(t){t.forEachRemovedItem((t=>this._setStyle(t.key,null))),t.forEachAddedItem((t=>this._setStyle(t.key,t.currentValue))),t.forEachChangedItem((t=>this._setStyle(t.key,t.currentValue)))}}return t["ɵfac"]=function(e){return new(e||t)(Zo(bl),Zo(Fl),Zo(wl))},t["ɵdir"]=ne({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),tu=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(t.ngTemplateOutlet){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t["ɵfac"]=function(e){return new(e||t)(Zo(tc))},t["ɵdir"]=ne({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[pe]}),t})(),eu=(()=>{class t{constructor(t){this._locale=t}transform(e,n,i){if(null==(r=e)||""===r||r!=r)return null;var r,a,o,s,l,c,h,d;i=i||this._locale;try{return s=function(t){if("string"==typeof t&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if("number"!=typeof t)throw new Error(t+" is not a number");return t}(e),c=n,function(t,e,n,i,r,a,o=!1){let s="",l=!1;if(isFinite(t)){let c=function(t){let e,n,i,r,a,o=Math.abs(t)+"",s=0;for((n=o.indexOf("."))>-1&&(o=o.replace(".","")),(i=o.search(/e/i))>0?(n<0&&(n=i),n+=+o.slice(i+1),o=o.substring(0,i)):n<0&&(n=o.length),i=0;"0"===o.charAt(i);i++);if(i===(a=o.length))e=[0],n=1;else{for(a--;"0"===o.charAt(a);)a--;for(n-=i,e=[],r=0;i<=a;i++,r++)e[r]=Number(o.charAt(i))}return n>22&&(e=e.splice(0,21),s=n-1,n=1),{digits:e,exponent:s,integerLen:n}}(t);o&&(c=function(t){if(0===t.digits[0])return t;const e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}(c));let h=e.minInt,d=e.minFrac,u=e.maxFrac;if(a){const t=a.match(Fd);if(null===t)throw new Error(a+" is not a valid digit info");const e=t[1],n=t[3],i=t[5];null!=e&&(h=Bd(e)),null!=n&&(d=Bd(n)),null!=i?u=Bd(i):null!=n&&d>u&&(u=d)}!function(t,e,n){if(e>n)throw new Error("The minimum number of digits after fraction ("+e+") is higher than the maximum ("+n+").");let i=t.digits,r=i.length-t.integerLen;const a=Math.min(Math.max(e,r),n);let o=a+t.integerLen,s=i[o];if(o>0){i.splice(Math.max(t.integerLen,o));for(let t=o;t<i.length;t++)i[t]=0}else{r=Math.max(0,r),t.integerLen=1,i.length=Math.max(1,o=a+1),i[0]=0;for(let t=1;t<o;t++)i[t]=0}if(s>=5)if(o-1<0){for(let e=0;e>o;e--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[o-1]++;for(;r<Math.max(0,a);r++)i.push(0);let l=0!==a;const c=e+t.integerLen,h=i.reduceRight((function(t,e,n,i){return i[n]=(e+=t)<10?e:e-10,l&&(0===i[n]&&n>=c?i.pop():l=!1),e>=10?1:0}),0);h&&(i.unshift(h),t.integerLen++)}(c,d,u);let m=c.digits,p=c.integerLen;const g=c.exponent;let f=[];for(l=m.every((t=>!t));p<h;p++)m.unshift(0);for(;p<0;p++)m.unshift(0);p>0?f=m.splice(p,m.length):(f=m,m=[0]);const b=[];for(m.length>=e.lgSize&&b.unshift(m.splice(-e.lgSize,m.length).join(""));m.length>e.gSize;)b.unshift(m.splice(-e.gSize,m.length).join(""));m.length&&b.unshift(m.join("")),s=b.join(md(n,i)),f.length&&(s+=md(n,r)+f.join("")),g&&(s+=md(n,ld.Exponential)+"+"+g)}else s=md(n,ld[1/0]);return s=t<0&&!l?e.negPre+s+e.negSuf:e.posPre+s+e.posSuf,s}(s,function(t,e="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(";"),r=i[0],a=i[1],o=-1!==r.indexOf(".")?r.split("."):[r.substring(0,r.lastIndexOf("0")+1),r.substring(r.lastIndexOf("0")+1)],s=o[0],l=o[1]||"";n.posPre=s.substr(0,s.indexOf("#"));for(let t=0;t<l.length;t++){const e=l.charAt(t);"0"===e?n.minFrac=n.maxFrac=t+1:"#"===e?n.maxFrac=t+1:n.posSuf+=e}const c=s.split(",");if(n.gSize=c[1]?c[1].length:0,n.lgSize=c[2]||c[1]?(c[2]||c[1]).length:0,a){const t=r.length-n.posPre.length-n.posSuf.length,e=a.indexOf("#");n.negPre=a.substr(0,e).replace(/'/g,""),n.negSuf=a.substr(e+t).replace(/'/g,"")}else n.negPre=e+n.posPre,n.negSuf=n.posSuf;return n}((h=l=i,d=id.Decimal,Ks(h)[Qs.NumberFormats][d]),md(l,ld.MinusSign)),l,ld.Group,ld.Decimal,c)}catch(e){throw a=t,o=e.message,Error("InvalidPipeArgument: '"+o+"' for pipe '"+ct(a)+"'")}}}return t["ɵfac"]=function(e){return new(e||t)(Zo(nh,16))},t["ɵpipe"]=ie({name:"number",type:t,pure:!0}),t})(),nu=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({providers:[{provide:Vd,useClass:Nd}]}),t})();const iu="browser";class ru{}class au extends class extends class{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){var t;t=new au,Vh||(Vh=t)}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=(su=su||document.querySelector("base"),su?su.getAttribute("href"):null);return null==e?null:function(t){ou=ou||document.createElement("a"),ou.setAttribute("href",t);const e=ou.pathname;return"/"===e.charAt(0)?e:"/"+e}(e)}resetBaseElement(){su=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Hd(document.cookie,t)}}let ou,su=null;const lu=new ni("TRANSITION_ID"),cu=[{provide:jc,useFactory:function(t,e,n){return()=>{n.get(Xc).donePromise.then((()=>{const n=Nh(),i=e.querySelectorAll('style[ng-transition="'+t+'"]');for(let t=0;t<i.length;t++)n.remove(i[t])}))}},deps:[lu,Hh,wo],multi:!0}];class hu{static init(){var t;t=new hu,Sh=t}addToWindow(t){Bt.getAngularTestability=(e,n=!0)=>{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},Bt.getAllAngularTestabilities=()=>t.getAllTestabilities(),Bt.getAllAngularRootElements=()=>t.getAllRootElements(),Bt.frameworkStabilizers||(Bt.frameworkStabilizers=[]),Bt.frameworkStabilizers.push((t=>{const e=Bt.getAllAngularTestabilities();let n=e.length,i=!1;const r=function(e){i=i||e,n--,0==n&&t(i)};e.forEach((function(t){t.whenStable(r)}))}))}findTestabilityInTree(t,e,n){if(null==e)return null;const i=t.getTestability(e);return null!=i?i:n?Nh().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let du=(()=>{class t{build(){return new XMLHttpRequest}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})();const uu=new ni("EventManagerPlugins");let mu=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach((t=>t.manager=this)),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let e=0;e<n.length;e++){const i=n[e];if(i.supports(t))return this._eventNameToPlugin.set(t,i),i}throw new Error("No event manager plugin found for event "+t)}}return t["ɵfac"]=function(e){return new(e||t)(wi(uu),wi(ph))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})();class pu{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const i=Nh().getGlobalEventTarget(this._doc,t);if(!i)throw new Error("Unsupported event target "+i+" for event "+e);return this.addEventListener(i,e,n)}}let gu=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach((t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))})),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),fu=(()=>{class t extends gu{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,n){t.forEach((t=>{const i=this._doc.createElement("style");i.textContent=t,n.push(e.appendChild(i))}))}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(bu),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(((e,n)=>{this._addStylesToHost(t,n,e)}))}ngOnDestroy(){this._hostNodes.forEach((t=>t.forEach(bu)))}}return t["ɵfac"]=function(e){return new(e||t)(wi(Hh))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})();function bu(t){Nh().remove(t)}const yu={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},vu=/%COMP%/g;function wu(t,e,n){for(let i=0;i<e.length;i++){let r=e[i];Array.isArray(r)?wu(t,r,n):(r=r.replace(vu,t),n.push(r))}return n}function xu(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let Cu=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new ku(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case Lt.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new Su(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case Lt.ShadowDom:return new Pu(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=wu(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t["ɵfac"]=function(e){return new(e||t)(wi(mu),wi(fu),wi(qc))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})();class ku{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(yu[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error('The selector "'+t+'" did not match any elements');return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,i){if(i){e=i+":"+e;const r=yu[i];r?t.setAttributeNS(r,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=yu[n];i?t.removeAttributeNS(i,e):t.removeAttribute(n+":"+e)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,i){i&(Mi.DashCase|Mi.Important)?t.style.setProperty(e,n,i&Mi.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&Mi.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,xu(n)):this.eventManager.addEventListener(t,e,xu(n))}}class Su extends ku{constructor(t,e,n,i){super(t),this.component=n;const r=wu(i+"-"+n.id,n.styles,[]);var a,o;e.addStyles(r),this.contentAttr=(o=i+"-"+n.id,"_ngcontent-%COMP%".replace(vu,o)),this.hostAttr=(a=i+"-"+n.id,"_nghost-%COMP%".replace(vu,a))}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class Pu extends ku{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=wu(i.id,i.styles,[]);for(let t=0;t<r.length;t++){const e=document.createElement("style");e.textContent=r[t],this.shadowRoot.appendChild(e)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let _u=(()=>{class t extends pu{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t["ɵfac"]=function(e){return new(e||t)(wi(Hh))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})();const Mu=["alt","control","meta","shift"],Du={"\b":"Backspace","\t":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Eu={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","":"NumLock"},Ou={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Au=(()=>{class t extends pu{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,i){const r=t.parseEventName(n),a=t.eventCallback(r.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular((()=>Nh().onAndCancel(e,r.domEventName,a)))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const r=t._normalizeKey(n.pop());let a="";if(Mu.forEach((t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),a+=t+".")})),a+=r,0!=n.length||0===r.length)return null;const o={};return o.domEventName=i,o.fullKey=a,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&Eu.hasOwnProperty(e)&&(e=Eu[e]))}return Du[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Mu.forEach((i=>{i!=n&&Ou[i](t)&&(e+=i+".")})),e+=n,e}static eventCallback(e,n,i){return r=>{t.getEventFullKey(r)===e&&i.runGuarded((()=>n(r)))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return t["ɵfac"]=function(e){return new(e||t)(wi(Hh))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),Tu=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵprov"]=vt({factory:function(){return wi(Iu)},token:t,providedIn:"root"}),t})(),Iu=(()=>{class t extends Tu{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case Vr.NONE:return e;case Vr.HTML:return gr(e,"HTML")?pr(e):Fr(this._doc,String(e)).toString();case Vr.STYLE:return gr(e,"Style")?pr(e):e;case Vr.SCRIPT:if(gr(e,"Script"))return pr(e);throw new Error("unsafe value used in a script context");case Vr.URL:return fr(e),gr(e,"URL")?pr(e):xr(String(e));case Vr.RESOURCE_URL:if(gr(e,"ResourceURL"))return pr(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+t+" (see https://g.co/ng/security#xss)")}}bypassSecurityTrustHtml(t){return new cr(t)}bypassSecurityTrustStyle(t){return new hr(t)}bypassSecurityTrustScript(t){return new dr(t)}bypassSecurityTrustUrl(t){return new ur(t)}bypassSecurityTrustResourceUrl(t){return new mr(t)}}return t["ɵfac"]=function(e){return new(e||t)(wi(Hh))},t["ɵprov"]=vt({factory:function(){return t=wi(ro),new Iu(t.get(Hh));var t},token:t,providedIn:"root"}),t})();const Lu=Eh(Rh,"browser",[{provide:Qc,useValue:iu},{provide:Jc,useValue:function(){au.makeCurrent(),hu.init()},multi:!0},{provide:Hh,useFactory:function(){return t=document,xe=t,document;var t},deps:[]}]),zu=[[],{provide:oo,useValue:"root"},{provide:Wr,useFactory:function(){return new Wr},deps:[]},{provide:uu,useClass:_u,multi:!0,deps:[Hh,ph,Qc]},{provide:uu,useClass:Au,multi:!0,deps:[Hh]},[],{provide:Cu,useClass:Cu,deps:[mu,fu,qc]},{provide:vl,useExisting:Cu},{provide:gu,useExisting:fu},{provide:fu,useClass:fu,deps:[Hh]},{provide:xh,useClass:xh,deps:[ph]},{provide:mu,useClass:mu,deps:[uu,ph]},{provide:ru,useClass:du,deps:[]},[]];let Ru=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:qc,useValue:e.appId},{provide:lu,useExisting:qc},cu]}}}return t["ɵfac"]=function(e){return new(e||t)(wi(t,12))},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({providers:zu,imports:[nu,Bh]}),t})();"undefined"!=typeof window&&window;class Fu extends y{constructor(t,e){super()}schedule(t,e=0){return this}}class Bu extends Fu{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n,i=!1;try{this.work(t)}catch(t){i=!0,n=!!t&&t||new Error(t)}if(i)return this.unsubscribe(),n}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let Vu=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class Nu extends Vu{constructor(t,e=Vu.now){super(t,(()=>Nu.delegate&&Nu.delegate!==this?Nu.delegate.now():e())),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return Nu.delegate&&Nu.delegate!==this?Nu.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}const Hu=new class extends Nu{}(class extends Bu{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}}),Gu=new _((t=>t.complete()));function Zu(t){return t?(e=t,new _((t=>e.schedule((()=>t.complete()))))):Gu;var e}function Uu(...t){let e=t[t.length-1];return I(e)?(t.pop(),G(t,e)):K(t)}function Wu(t,e){return new _(e?n=>e.schedule(Yu,0,{error:t,subscriber:n}):e=>e.error(t))}function Yu({error:t,subscriber:e}){e.error(t)}class ju{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return Uu(this.value);case"E":return Wu(this.error);case"C":return Zu()}throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new ju("N",t):ju.undefinedValueNotification}static createError(t){return new ju("E",void 0,t)}static createComplete(){return ju.completeNotification}}ju.completeNotification=new ju("C"),ju.undefinedValueNotification=new ju("N",void 0);class Xu extends C{constructor(t,e,n=0){super(t),this.scheduler=e,this.delay=n}static dispatch(t){const{notification:e,destination:n}=t;e.observe(n),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(Xu.dispatch,this.delay,new qu(t,this.destination)))}_next(t){this.scheduleMessage(ju.createNext(t))}_error(t){this.scheduleMessage(ju.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(ju.createComplete()),this.unsubscribe()}}class qu{constructor(t,e){this.notification=t,this.destination=e}}class $u extends A{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){if(!this.isStopped){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift()}super.next(t)}nextTimeWindow(t){this.isStopped||(this._events.push(new Ku(this._getNow(),t)),this._trimBufferThenGetEvents()),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,r=n.length;let a;if(this.closed)throw new D;if(this.isStopped||this.hasError?a=y.EMPTY:(this.observers.push(t),a=new E(this,t)),i&&t.add(t=new Xu(t,i)),e)for(let e=0;e<r&&!t.closed;e++)t.next(n[e]);else for(let e=0;e<r&&!t.closed;e++)t.next(n[e].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),a}_getNow(){return(this.scheduler||Hu).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,n=this._windowTime,i=this._events,r=i.length;let a=0;for(;a<r&&!(t-i[a].time<n);)a++;return r>e&&(a=Math.max(a,r-e)),a>0&&i.splice(0,a),i}}class Ku{constructor(t,e){this.time=t,this.value=e}}function Ju(t,e){return"function"==typeof e?n=>n.pipe(Ju(((n,i)=>Z(t(n,i)).pipe(L(((t,r)=>e(n,t,i,r))))))):e=>e.lift(new Qu(t))}class Qu{constructor(t){this.project=t}call(t,e){return e.subscribe(new tm(t,this.project))}}class tm extends W{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new U(this),i=this.destination;i.add(n),this.innerSubscription=Y(t,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;(!t||t.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}const em={schedule(t,e){const n=setTimeout(t,e);return()=>clearTimeout(n)},scheduleBeforeRender(t){if("undefined"==typeof window)return em.schedule(t,0);if(void 0===window.requestAnimationFrame)return em.schedule(t,16);const e=window.requestAnimationFrame(t);return()=>window.cancelAnimationFrame(e)}};let nm;function im(t,e,n){let i=n;return!!(r=t)&&r.nodeType===Node.ELEMENT_NODE&&e.some(((e,n)=>!("*"===e||!function(t,e){if(!nm){const t=Element.prototype;nm=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}return t.nodeType===Node.ELEMENT_NODE&&nm.call(t,e)}(t,e)||(i=n,0)))),i;var r}class rm{constructor(t,e){this.componentFactory=e.get(ml).resolveComponentFactory(t)}create(t){return new am(this.componentFactory,t)}}class am{constructor(t,e){this.componentFactory=t,this.injector=e,this.eventEmitters=new $u(1),this.events=this.eventEmitters.pipe(Ju((t=>J(...t)))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map((({propName:t})=>t))),this.ngZone=this.injector.get(ph),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run((()=>Zone.current))}connect(t){this.runInZone((()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)}))}disconnect(){this.runInZone((()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=em.schedule((()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)}),10))}))}getInputValue(t){return this.runInZone((()=>null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t]))}setInputValue(t,e){this.runInZone((()=>{var n,i;null!==this.componentRef?(n=e,i=this.getInputValue(t),(n===i||n!=n&&i!=i)&&(void 0!==e||!this.unchangedInputs.has(t))||(this.recordInputChange(t,e),this.unchangedInputs.delete(t),this.hasInputChanges=!0,this.componentRef.instance[t]=e,this.scheduleDetectChanges())):this.initialInputValues.set(t,e)}))}initializeComponent(t){const e=wo.create({providers:[],parent:this.injector}),n=function(t,e){const n=t.childNodes,i=e.map((()=>[]));let r=-1;e.some(((t,e)=>"*"===t&&(r=e,!0)));for(let t=0,a=n.length;t<a;++t){const a=n[t],o=im(a,e,r);-1!==o&&i[o].push(a)}return i}(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,n,t),this.viewChangeDetectorRef=this.componentRef.injector.get(Gl),this.implementsOnChanges="function"==typeof this.componentRef.instance.ngOnChanges,this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(Ih).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach((({propName:t})=>{this.initialInputValues.has(t)&&this.setInputValue(t,this.initialInputValues.get(t))})),this.initialInputValues.clear()}initializeOutputs(t){const e=this.componentFactory.outputs.map((({propName:e,templateName:n})=>t.instance[e].pipe(L((t=>({name:n,value:t}))))));this.eventEmitters.next(e)}callNgOnChanges(t){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(e)}markViewForCheck(t){this.hasInputChanges&&(this.hasInputChanges=!1,t.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=em.scheduleBeforeRender((()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()})))}recordInputChange(t,e){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const n=this.inputChanges[t];if(n)return void(n.currentValue=e);const i=this.unchangedInputs.has(t),r=i?void 0:this.getInputValue(t);this.inputChanges[t]=new me(r,e,i)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}}class om extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function sm(t,e){return j(t,e,1)}function lm(t,e){return function(n){return n.lift(new cm(t,e))}}class cm{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new hm(t,this.predicate,this.thisArg))}}class hm extends C{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)}}class dm{}class um{}class mm{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach((t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),i=n.toLowerCase(),r=t.slice(e+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(r):this.headers.set(i,[r])}}))}:()=>{this.headers=new Map,Object.keys(t).forEach((e=>{let n=t[e];const i=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(e,i))}))}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof mm?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach((t=>this.applyUpdate(t))),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach((e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))}))}clone(t){const e=new mm;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof mm?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":const r=t.value;if(r){let t=this.headers.get(e);if(!t)return;t=t.filter((t=>-1===r.indexOf(t))),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach((e=>t(this.normalizedNames.get(e),this.headers.get(e))))}}class pm{encodeKey(t){return bm(t)}encodeValue(t){return bm(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const gm=/%(\d[a-f0-9])/gi,fm={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function bm(t){return encodeURIComponent(t).replace(gm,((t,e)=>{var n;return null!==(n=fm[e])&&void 0!==n?n:t}))}function ym(t){return""+t}class vm{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new pm,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach((t=>{const i=t.indexOf("="),[r,a]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],o=n.get(r)||[];o.push(a),n.set(r,o)})),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach((e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])}))):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach((n=>{const i=t[n];Array.isArray(i)?i.forEach((t=>{e.push({param:n,value:t,op:"a"})})):e.push({param:n,value:i,op:"a"})})),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map((t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map((t=>e+"="+this.encoder.encodeValue(t))).join("&")})).filter((t=>""!==t)).join("&")}clone(t){const e=new vm({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach((t=>this.map.set(t,this.cloneFrom.map.get(t)))),this.updates.forEach((t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(ym(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(ym(t.value));-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}})),this.cloneFrom=this.updates=null)}}class wm{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}keys(){return this.map.keys()}}function xm(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Cm(t){return"undefined"!=typeof Blob&&t instanceof Blob}function km(t){return"undefined"!=typeof FormData&&t instanceof FormData}class Sm{constructor(t,e,n,i){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,r=i):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params)),this.headers||(this.headers=new mm),this.context||(this.context=new wm),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":n<e.length-1?"&":"")+t}}else this.params=new vm,this.urlWithParams=e}serializeBody(){return null===this.body?null:xm(this.body)||Cm(this.body)||km(this.body)||(t=this.body,"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams)||"string"==typeof this.body?this.body:this.body instanceof vm?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString();var t}detectContentTypeHeader(){return null===this.body||km(this.body)?null:Cm(this.body)?this.body.type||null:xm(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof vm?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(t={}){var e;const n=t.method||this.method,i=t.url||this.url,r=t.responseType||this.responseType,a=void 0!==t.body?t.body:this.body,o=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,s=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let l=t.headers||this.headers,c=t.params||this.params;const h=null!==(e=t.context)&&void 0!==e?e:this.context;return void 0!==t.setHeaders&&(l=Object.keys(t.setHeaders).reduce(((e,n)=>e.set(n,t.setHeaders[n])),l)),t.setParams&&(c=Object.keys(t.setParams).reduce(((e,n)=>e.set(n,t.setParams[n])),c)),new Sm(n,i,a,{params:c,headers:l,context:h,reportProgress:s,responseType:r,withCredentials:o})}}var Pm=((Pm=Pm||{})[Pm.Sent=0]="Sent",Pm[Pm.UploadProgress=1]="UploadProgress",Pm[Pm.ResponseHeader=2]="ResponseHeader",Pm[Pm.DownloadProgress=3]="DownloadProgress",Pm[Pm.Response=4]="Response",Pm[Pm.User=5]="User",Pm);class _m{constructor(t,e=200,n="OK"){this.headers=t.headers||new mm,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Mm extends _m{constructor(t={}){super(t),this.type=Pm.ResponseHeader}clone(t={}){return new Mm({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Dm extends _m{constructor(t={}){super(t),this.type=Pm.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Dm({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Em extends _m{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?"Http failure during parsing for "+(t.url||"(unknown url)"):"Http failure response for "+(t.url||"(unknown url)")+": "+t.status+" "+t.statusText,this.error=t.error||null}}function Om(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Am=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof Sm)i=t;else{let r,a;r=n.headers instanceof mm?n.headers:new mm(n.headers),n.params&&(a=n.params instanceof vm?n.params:new vm({fromObject:n.params})),i=new Sm(t,e,void 0!==n.body?n.body:null,{headers:r,context:n.context,params:a,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const r=Uu(i).pipe(sm((t=>this.handler.handle(t))));if(t instanceof Sm||"events"===n.observe)return r;const a=r.pipe(lm((t=>t instanceof Dm)));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(L((t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body})));case"blob":return a.pipe(L((t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body})));case"text":return a.pipe(L((t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body})));default:return a.pipe(L((t=>t.body)))}case"response":return a;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new vm).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,Om(n,e))}post(t,e,n={}){return this.request("POST",t,Om(n,e))}put(t,e,n={}){return this.request("PUT",t,Om(n,e))}}return t["ɵfac"]=function(e){return new(e||t)(wi(dm))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})();class Tm{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const Im=new ni("HTTP_INTERCEPTORS");let Lm=(()=>{class t{intercept(t,e){return e.handle(t)}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})();const zm=/^\)\]\}',?\n/;let Rm=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new _((e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach(((t,e)=>n.setRequestHeader(t,e.join(",")))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const i=t.serializeBody();let r=null;const a=()=>{if(null!==r)return r;const e=1223===n.status?204:n.status,i=n.statusText||"OK",a=new mm(n.getAllResponseHeaders()),o=("responseURL"in(s=n)&&s.responseURL?s.responseURL:/^X-Request-URL:/m.test(s.getAllResponseHeaders())?s.getResponseHeader("X-Request-URL"):null)||t.url;var s;return r=new Mm({headers:a,status:e,statusText:i,url:o}),r},o=()=>{let{headers:i,status:r,statusText:o,url:s}=a(),l=null;204!==r&&(l=void 0===n.response?n.responseText:n.response),0===r&&(r=l?200:0);let c=r>=200&&r<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(zm,"");try{l=""!==l?JSON.parse(l):null}catch(e){l=t,c&&(c=!1,l={error:e,text:l})}}c?(e.next(new Dm({body:l,headers:i,status:r,statusText:o,url:s||void 0})),e.complete()):e.error(new Em({error:l,headers:i,status:r,statusText:o,url:s||void 0}))},s=t=>{const{url:i}=a(),r=new Em({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(r)};let l=!1;const c=i=>{l||(e.next(a()),l=!0);let r={type:Pm.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(r.total=i.total),"text"===t.responseType&&!!n.responseText&&(r.partialText=n.responseText),e.next(r)},h=t=>{let n={type:Pm.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",s),n.addEventListener("timeout",s),n.addEventListener("abort",s),t.reportProgress&&(n.addEventListener("progress",c),null!==i&&n.upload&&n.upload.addEventListener("progress",h)),n.send(i),e.next({type:Pm.Sent}),()=>{n.removeEventListener("error",s),n.removeEventListener("abort",s),n.removeEventListener("load",o),n.removeEventListener("timeout",s),t.reportProgress&&(n.removeEventListener("progress",c),null!==i&&n.upload&&n.upload.removeEventListener("progress",h)),n.readyState!==n.DONE&&n.abort()}}))}}return t["ɵfac"]=function(e){return new(e||t)(wi(ru))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})();const Fm=new ni("XSRF_COOKIE_NAME"),Bm=new ni("XSRF_HEADER_NAME");class Vm{}let Nm=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Hd(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t["ɵfac"]=function(e){return new(e||t)(wi(Hh),wi(Qc),wi(Fm))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),Hm=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const i=this.tokenService.getToken();return null!==i&&!t.headers.has(this.headerName)&&(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}return t["ɵfac"]=function(e){return new(e||t)(wi(Vm),wi(Bm))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),Gm=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(Im,[]);this.chain=t.reduceRight(((t,e)=>new Tm(t,e)),this.backend)}return this.chain.handle(t)}}return t["ɵfac"]=function(e){return new(e||t)(wi(um),wi(wo))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),Zm=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:Hm,useClass:Lm}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:Fm,useValue:e.cookieName}:[],e.headerName?{provide:Bm,useValue:e.headerName}:[]]}}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({providers:[Hm,{provide:Im,useExisting:Hm,multi:!0},{provide:Vm,useClass:Nm},{provide:Fm,useValue:"XSRF-TOKEN"},{provide:Bm,useValue:"X-XSRF-TOKEN"}]}),t})(),Um=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({providers:[Am,{provide:dm,useClass:Gm},Rm,{provide:um,useExisting:Rm}],imports:[[Zm.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();var Wm=l(68),Ym=l.n(Wm);function jm(...t){if(1===t.length){const e=t[0];if(u(e))return Xm(e,null);if(m(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return Xm(t.map((t=>e[t])),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return Xm(t=1===t.length&&u(t[0])?t[0]:t,null).pipe(L((t=>e(...t))))}return Xm(t,null)}function Xm(t,e){return new _((n=>{const i=t.length;if(0===i)return void n.complete();const r=new Array(i);let a=0,o=0;for(let s=0;s<i;s++){const l=Z(t[s]);let c=!1;n.add(l.subscribe({next:t=>{c||(c=!0,o++),r[s]=t},error:t=>n.error(t),complete:()=>{a++,(a===i||!c)&&(o===i&&n.next(e?e.reduce(((t,e,n)=>(t[e]=r[n],t)),{}):r),n.complete())}}))}}))}let qm=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}setProperty(t,e){this._renderer.setProperty(this._elementRef.nativeElement,t,e)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return t["ɵfac"]=function(e){return new(e||t)(Zo(wl),Zo(bl))},t["ɵdir"]=ne({type:t}),t})(),$m=(()=>{class t extends qm{}return t["ɵfac"]=function(){let e;return function(n){return(e||(e=Kn(t)))(n||t)}}(),t["ɵdir"]=ne({type:t,features:[Co]}),t})();const Km=new ni("NgValueAccessor"),Jm={provide:Km,useExisting:ut((()=>Qm)),multi:!0};let Qm=(()=>{class t extends $m{writeValue(t){this.setProperty("checked",t)}}return t["ɵfac"]=function(){let e;return function(n){return(e||(e=Kn(t)))(n||t)}}(),t["ɵdir"]=ne({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&es("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(){return e.onTouched()}))},features:[hl([Jm]),Co]}),t})();const tp={provide:Km,useExisting:ut((()=>np)),multi:!0},ep=new ni("CompositionEventMode");let np=(()=>{class t extends qm{constructor(t,e,n){super(t,e),this._compositionMode=n,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Nh()?Nh().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t["ɵfac"]=function(e){return new(e||t)(Zo(wl),Zo(bl),Zo(ep,8))},t["ɵdir"]=ne({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&es("input",(function(t){return e._handleInput(t.target.value)}))("blur",(function(){return e.onTouched()}))("compositionstart",(function(){return e._compositionStart()}))("compositionend",(function(t){return e._compositionEnd(t.target.value)}))},features:[hl([tp]),Co]}),t})();const ip=new ni("NgValidators"),rp=new ni("NgAsyncValidators");function ap(t){return null}function op(t){return null!=t}function sp(t){const e=Qo(t)?Z(t):t;return ts(e),e}function lp(t){let e={};return t.forEach((t=>{e=null!=t?Object.assign(Object.assign({},e),t):e})),0===Object.keys(e).length?null:e}function cp(t,e){return e.map((e=>e(t)))}function hp(t){return t.map((t=>t.validate?e=>t.validate(e):t))}function dp(t){return null!=t?function(t){if(!t)return null;const e=t.filter(op);return 0==e.length?null:function(t){return lp(cp(t,e))}}(hp(t)):null}function up(t){return null!=t?function(t){if(!t)return null;const e=t.filter(op);return 0==e.length?null:function(t){return jm(cp(t,e).map(sp)).pipe(L(lp))}}(hp(t)):null}function mp(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function pp(t){return t?Array.isArray(t)?t:[t]:[]}function gp(t,e){return Array.isArray(t)?t.includes(e):t===e}function fp(t,e){const n=pp(e);return pp(t).forEach((t=>{gp(n,t)||n.push(t)})),n}function bp(t,e){return pp(e).filter((e=>!gp(t,e)))}let yp=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=dp(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=up(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach((t=>t())),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵdir"]=ne({type:t}),t})(),vp=(()=>{class t extends yp{get formDirective(){return null}get path(){return null}}return t["ɵfac"]=function(){let e;return function(n){return(e||(e=Kn(t)))(n||t)}}(),t["ɵdir"]=ne({type:t,features:[Co]}),t})();class wp extends yp{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let xp=(()=>{class t extends class{constructor(t){this._cd=t}is(t){var e,n,i;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(i=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===i?void 0:i[t])}}{constructor(t){super(t)}}return t["ɵfac"]=function(e){return new(e||t)(Zo(wp,2))},t["ɵdir"]=ne({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&Cs("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[Co]}),t})();function Cp(t,e){t.forEach((t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)}))}function kp(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Sp(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const Pp="VALID",_p="INVALID",Mp="PENDING",Dp="DISABLED";function Ep(t){return(Ip(t)?t.validators:t)||null}function Op(t){return Array.isArray(t)?dp(t):t||null}function Ap(t,e){return(Ip(e)?e.asyncValidators:t)||null}function Tp(t){return Array.isArray(t)?up(t):t||null}function Ip(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class Lp{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=Op(this._rawValidators),this._composedAsyncValidatorFn=Tp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Pp}get invalid(){return this.status===_p}get pending(){return this.status==Mp}get disabled(){return this.status===Dp}get enabled(){return this.status!==Dp}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=Op(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=Tp(t)}addValidators(t){this.setValidators(fp(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(fp(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(bp(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(bp(t,this._rawAsyncValidators))}hasValidator(t){return gp(this._rawValidators,t)}hasAsyncValidator(t){return gp(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild((t=>t.markAllAsTouched()))}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild((t=>{t.markAsUntouched({onlySelf:!0})})),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild((t=>{t.markAsPristine({onlySelf:!0})})),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=Mp,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Dp,this.errors=null,this._forEachChild((e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))})),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach((t=>t(!0)))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Pp,this._forEachChild((e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))})),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach((t=>t(!1)))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Pp||this.status===Mp)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild((e=>e._updateTreeValidity(t))),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Dp:Pp}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Mp,this._hasOwnPendingAsyncValidator=!0;const e=sp(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe((e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})}))}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e||(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length))return null;let i=t;return e.forEach((t=>{i=i instanceof Rp?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof Fp&&i.at(t)||null})),i}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Dc,this.statusChanges=new Dc}_calculateStatus(){return this._allControlsDisabled()?Dp:this.errors?_p:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Mp)?Mp:this._anyControlsHaveStatus(_p)?_p:Pp}_anyControlsHaveStatus(t){return this._anyControls((e=>e.status===t))}_anyControlsDirty(){return this._anyControls((t=>t.dirty))}_anyControlsTouched(){return this._anyControls((t=>t.touched))}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Ip(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class zp extends Lp{constructor(t=null,e,n){super(Ep(e),Ap(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach((t=>t(this.value,!1!==e.emitViewToModelChange))),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Sp(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Sp(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class Rp extends Lp{constructor(t,e,n){super(Ep(e),Ap(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,n={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange((()=>{})),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange((()=>{})),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach((n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})})),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach((n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})})),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild(((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})})),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},((t,e,n)=>(t[n]=e instanceof zp?e.value:e.getRawValue(),t)))}_syncPendingControls(){let t=this._reduceChildren(!1,((t,e)=>!!e._syncPendingControls()||t));return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error("Cannot find form control with name: "+t+".")}_forEachChild(t){Object.keys(this.controls).forEach((e=>{const n=this.controls[e];n&&t(n,e)}))}_setUpControls(){this._forEachChild((t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}))}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},((t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t)))}_reduceChildren(t,e){let n=t;return this._forEachChild(((t,i)=>{n=e(n,t,i)})),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild(((e,n)=>{if(void 0===t[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")}))}}class Fp extends Lp{constructor(t,e,n){super(Ep(e),Ap(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,n={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange((()=>{})),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange((()=>{})),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach(((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})})),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach(((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})})),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild(((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})})),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map((t=>t instanceof zp?t.value:t.getRawValue()))}clear(t={}){this.controls.length<1||(this._forEachChild((t=>t._registerOnCollectionChange((()=>{})))),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce(((t,e)=>!!e._syncPendingControls()||t),!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)}_forEachChild(t){this.controls.forEach(((e,n)=>{t(e,n)}))}_updateValue(){this.value=this.controls.filter((t=>t.enabled||this.disabled)).map((t=>t.value))}_anyControls(t){return this.controls.some((e=>e.enabled&&t(e)))}_setUpControls(){this._forEachChild((t=>this._registerControl(t)))}_checkAllValuesPresent(t){this._forEachChild(((e,n)=>{if(void 0===t[n])throw new Error("Must supply a value for form control at index: "+n+".")}))}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const Bp={provide:wp,useExisting:ut((()=>Np))},Vp=Promise.resolve(null);let Np=(()=>{class t extends wp{constructor(t,e,n,i){super(),this.control=new zp,this._registered=!1,this.update=new Dc,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=function(t,e){if(!e)return null;let n,i,r;return Array.isArray(e),e.forEach((t=>{var e;t.constructor===np?n=t:(e=t,Object.getPrototypeOf(e.constructor)===$m?i=t:r=t)})),r||i||n||null}(0,i)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?(t=this.name,[...this._parent.path,t]):[this.name];var t}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){var t,e,n,i,r,a;(function(t,e){const n=t._rawValidators;null!==e.validator?t.setValidators(mp(n,e.validator)):"function"==typeof n&&t.setValidators([n]);const i=t._rawAsyncValidators;null!==e.asyncValidator?t.setAsyncValidators(mp(i,e.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const r=()=>t.updateValueAndValidity();Cp(e._rawValidators,r),Cp(e._rawAsyncValidators,r)})(t=this.control,e=this),e.valueAccessor.writeValue(t.value),r=t,(a=e).valueAccessor.registerOnChange((t=>{r._pendingValue=t,r._pendingChange=!0,r._pendingDirty=!0,"change"===r.updateOn&&kp(r,a)})),function(t,e){const n=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy((()=>{t._unregisterOnChange(n)}))}(t,e),n=t,(i=e).valueAccessor.registerOnTouched((()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&kp(n,i),"submit"!==n.updateOn&&n.markAsTouched()})),function(t,e){if(e.valueAccessor.setDisabledState){const n=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy((()=>{t._unregisterOnDisabledChange(n)}))}}(t,e),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){Vp.then((()=>{this.control.setValue(t,{emitViewToModelChange:!1})}))}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;Vp.then((()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()}))}}return t["ɵfac"]=function(e){return new(e||t)(Zo(vp,9),Zo(ip,10),Zo(rp,10),Zo(Km,10))},t["ɵdir"]=ne({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[hl([Bp]),Co,pe]}),t})(),Hp=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({}),t})();const Gp={provide:ip,useExisting:ut((()=>Zp)),multi:!0};let Zp=(()=>{class t{constructor(){this._validator=ap}ngOnChanges(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return this.enabled()?this._validator(t):null}registerOnValidatorChange(t){this._onChange=t}_createValidator(){var t,e;this._validator=this.enabled()?(e=this.maxlength,t="number"==typeof e?e:parseInt(e,10),e=>{return null!=(n=e.value)&&"number"==typeof n.length&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null;var n}):ap}enabled(){return null!=this.maxlength}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵdir"]=ne({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&Fo("maxlength",e.enabled()?e.maxlength:null)},inputs:{maxlength:"maxlength"},features:[hl([Gp]),pe]}),t})(),Up=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({imports:[[Hp]]}),t})(),Wp=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({imports:[Up]}),t})();class Yp{}const jp="*";function Xp(t,e){return{type:7,name:t,definitions:e,options:{}}}function qp(t,e=null){return{type:4,styles:e,timings:t}}function $p(t,e=null){return{type:2,steps:t,options:e}}function Kp(t){return{type:6,styles:t,offset:null}}function Jp(t,e,n){return{type:0,name:t,styles:e,options:n}}function Qp(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function tg(t,e,n=null){return{type:11,selector:t,animation:e,options:n}}function eg(t,e){return{type:12,timings:t,animation:e}}function ng(t){Promise.resolve(null).then(t)}class ig{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach((t=>t())),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){ng((()=>this._onFinish()))}_onStart(){this._onStartFns.forEach((t=>t())),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach((t=>t())),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((t=>t())),e.length=0}}class rg{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,i=0;const r=this.players.length;0==r?ng((()=>this._onFinish())):this.players.forEach((t=>{t.onDone((()=>{++e==r&&this._onFinish()})),t.onDestroy((()=>{++n==r&&this._onDestroy()})),t.onStart((()=>{++i==r&&this._onStart()}))})),this.totalTime=this.players.reduce(((t,e)=>Math.max(t,e.totalTime)),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach((t=>t())),this._onDoneFns=[])}init(){this.players.forEach((t=>t.init()))}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach((t=>t())),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach((t=>t.play()))}pause(){this.players.forEach((t=>t.pause()))}restart(){this.players.forEach((t=>t.restart()))}finish(){this._onFinish(),this.players.forEach((t=>t.finish()))}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach((t=>t.destroy())),this._onDestroyFns.forEach((t=>t())),this._onDestroyFns=[])}reset(){this.players.forEach((t=>t.reset())),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach((t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)}))}getPosition(){const t=this.players.reduce(((t,e)=>null===t||e.totalTime>t.totalTime?e:t),null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach((t=>{t.beforeDestroy&&t.beforeDestroy()}))}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((t=>t())),e.length=0}}function ag(){return"undefined"!=typeof window&&void 0!==window.document}function og(){return void 0!==a&&"[object process]"==={}.toString.call(a)}function sg(t){switch(t.length){case 0:return new ig;case 1:return t[0];default:return new rg(t)}}function lg(t,e,n,i,r={},a={}){const o=[],s=[];let l=-1,c=null;if(i.forEach((t=>{const n=t.offset,i=n==l,h=i&&c||{};Object.keys(t).forEach((n=>{let i=n,s=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,o),s){case"!":s=r[n];break;case jp:s=a[n];break;default:s=e.normalizeStyleValue(n,i,s,o)}h[i]=s})),i||s.push(h),c=h,l=n})),o.length){const t="\n - ";throw new Error("Unable to animate due to the following errors:"+t+o.join(t))}return s}function cg(t,e,n,i){switch(e){case"start":t.onStart((()=>i(n&&hg(n,"start",t))));break;case"done":t.onDone((()=>i(n&&hg(n,"done",t))));break;case"destroy":t.onDestroy((()=>i(n&&hg(n,"destroy",t))))}}function hg(t,e,n){const i=n.totalTime,r=dg(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),a=t._data;return null!=a&&(r._data=a),r}function dg(t,e,n,i,r="",a=0,o){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:r,totalTime:a,disabled:!!o}}function ug(t,e,n){let i;return t instanceof Map?(i=t.get(e),i||t.set(e,i=n)):(i=t[e],i||(i=t[e]=n)),i}function mg(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let pg=(t,e)=>!1,gg=(t,e)=>!1,fg=(t,e,n)=>[];const bg=og();(bg||"undefined"!=typeof Element)&&(pg=ag()?(t,e)=>{for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:(t,e)=>t.contains(e),gg=(()=>{if(bg||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):gg}})(),fg=(t,e,n)=>{let i=[];if(n){const n=t.querySelectorAll(e);for(let t=0;t<n.length;t++)i.push(n[t])}else{const n=t.querySelector(e);n&&i.push(n)}return i});let yg=null,vg=!1;function wg(t){yg||(yg=("undefined"!=typeof document?document.body:null)||{},vg=!!yg.style&&"WebkitAppearance"in yg.style);let e=!0;return yg.style&&!("ebkit"==t.substring(1,6))&&(e=t in yg.style,!e&&vg&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in yg.style)),e}const xg=gg,Cg=pg,kg=fg;function Sg(t){const e={};return Object.keys(t).forEach((n=>{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]})),e}let Pg=(()=>{class t{validateStyleProperty(t){return wg(t)}matchesElement(t,e){return xg(t,e)}containsElement(t,e){return Cg(t,e)}query(t,e,n){return kg(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,i,r,a=[],o){return new ig(n,i)}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),_g=(()=>{class t{}return t.NOOP=new Pg,t})();const Mg="ng-enter",Dg="ng-leave",Eg="ng-trigger",Og=".ng-trigger",Ag="ng-animating",Tg=".ng-animating";function Ig(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Lg(parseFloat(e[1]),e[2])}function Lg(t,e){return"s"===e?1e3*t:t}function zg(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let i,r=0,a="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push('The provided timing value "'+t+'" is invalid.'),{duration:0,delay:0,easing:""};i=Lg(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(r=Lg(parseFloat(o),n[4]));const s=n[5];s&&(a=s)}else i=t;if(!n){let n=!1,a=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),r<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(a,0,'The provided timing value "'+t+'" is invalid.')}return{duration:i,delay:r,easing:a}}(t,e,n)}function Rg(t,e={}){return Object.keys(t).forEach((n=>{e[n]=t[n]})),e}function Fg(t,e,n={}){if(e)for(let e in t)n[e]=t[e];else Rg(t,n);return n}function Bg(t,e,n){return n?e+":"+n+";":""}function Vg(t){let e="";for(let n=0;n<t.style.length;n++){const i=t.style.item(n);e+=Bg(0,i,t.style.getPropertyValue(i))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=Bg(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[n]));t.setAttribute("style",e)}function Ng(t,e,n){t.style&&(Object.keys(e).forEach((i=>{const r=Xg(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[r]),t.style[r]=e[i]})),og()&&Vg(t))}function Hg(t,e){t.style&&(Object.keys(e).forEach((e=>{const n=Xg(e);t.style[n]=""})),og()&&Vg(t))}function Gg(t){return Array.isArray(t)?1==t.length?t[0]:$p(t):t}const Zg=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ug(t){let e=[];if("string"==typeof t){let n;for(;n=Zg.exec(t);)e.push(n[1]);Zg.lastIndex=0}return e}function Wg(t,e,n){const i=t.toString(),r=i.replace(Zg,((t,i)=>{let r=e[i];return e.hasOwnProperty(i)||(n.push("Please provide a value for the animation param "+i),r=""),r.toString()}));return r==i?t:r}function Yg(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const jg=/-+([a-z0-9])/g;function Xg(t){return t.replace(jg,((...t)=>t[1].toUpperCase()))}function qg(t,e){return 0===t||0===e}function $g(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let a=e[0],o=[];if(i.forEach((t=>{a.hasOwnProperty(t)||o.push(t),a[t]=n[t]})),o.length)for(var r=1;r<e.length;r++){let n=e[r];o.forEach((function(e){n[e]=Jg(t,e)}))}}return e}function Kg(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw new Error("Unable to resolve animation metadata node #"+e.type)}}function Jg(t,e){return window.getComputedStyle(t)[e]}function Qg(t,e){const n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach((t=>function(t,e,n){if(":"==t[0]){const i=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e)<parseFloat(t);default:return e.push('The transition alias value "'+t+'" is not supported'),"* => *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}const i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push('The provided transition expression "'+t+'" is not supported'),e;const r=i[1],a=i[2],o=i[3];e.push(nf(r,o)),"<"==a[0]&&("*"!=r||"*"!=o)&&e.push(nf(o,r))}(t,n,e))):n.push(t),n}const tf=new Set(["true","1"]),ef=new Set(["false","0"]);function nf(t,e){const n=tf.has(t)||ef.has(t),i=tf.has(e)||ef.has(e);return(r,a)=>{let o="*"==t||t==r,s="*"==e||e==a;return!o&&n&&"boolean"==typeof r&&(o=r?tf.has(t):ef.has(t)),!s&&i&&"boolean"==typeof a&&(s=a?tf.has(e):ef.has(e)),o&&s}}const rf=new RegExp("s*:selfs*,?","g");function af(t,e,n){return new of(t).build(e,n)}class of{constructor(t){this._driver=t}build(t,e){const n=new sf(e);return this._resetContextStyleTimingState(n),Kg(this,Gg(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,i=e.depCount=0;const r=[],a=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach((t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,i=n.name;i.toString().split(/\s*,\s*/).forEach((t=>{n.name=t,r.push(this.visitState(n,e))})),n.name=i}else if(1==t.type){const r=this.visitTransition(t,e);n+=r.queryCount,i+=r.depCount,a.push(r)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")})),{type:7,name:t.name,states:r,transitions:a,queryCount:n,depCount:i,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){const r=new Set,a=i||{};if(n.styles.forEach((t=>{if(lf(t)){const e=t;Object.keys(e).forEach((t=>{Ug(e[t]).forEach((t=>{a.hasOwnProperty(t)||r.add(t)}))}))}})),r.size){const n=Yg(r.values());e.errors.push('state("'+t.name+'", ...) must define default values for all the following style substitutions: '+n.join(", "))}}return{type:0,name:t.name,style:n,options:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=Kg(this,Gg(t.animation),e);return{type:1,matchers:Qg(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:cf(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map((t=>Kg(this,t,e))),options:cf(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const r=t.steps.map((t=>{e.currentTime=n;const r=Kg(this,t,e);return i=Math.max(i,e.currentTime),r}));return e.currentTime=i,{type:3,steps:r,options:cf(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return hf(zg(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some((t=>"{"==t.charAt(0)&&"{"==t.charAt(1)))){const t=hf(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||zg(i,e),hf(n.duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=n;let i,r=t.styles?t.styles:Kp({});if(5==r.type)i=this.visitKeyframes(r,e);else{let r=t.styles,a=!1;if(!r){a=!0;const t={};n.easing&&(t.easing=n.easing),r=Kp(t)}e.currentTime+=n.duration+n.delay;const o=this.visitStyle(r,e);o.isEmptyStep=a,i=o}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach((t=>{"string"==typeof t?t==jp?n.push(t):e.errors.push("The provided style string value "+t+" is not allowed."):n.push(t)})):n.push(t.styles);let i=!1,r=null;return n.forEach((t=>{if(lf(t)){const e=t,n=e.easing;if(n&&(r=n,delete e.easing),!i)for(let t in e)if(e[t].toString().indexOf("{{")>=0){i=!0;break}}})),{type:6,styles:n,easing:r,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let i=e.currentTime,r=e.currentTime;n&&r>0&&(r-=n.duration+n.delay),t.styles.forEach((t=>{"string"!=typeof t&&Object.keys(t).forEach((n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push('The provided animation property "'+n+'" is not a supported CSS property for animations');const a=e.collectedStyles[e.currentQuerySelector],o=a[n];let s=!0;o&&(r!=i&&r>=o.startTime&&i<=o.endTime&&(e.errors.push('The CSS property "'+n+'" that exists between the times of "'+o.startTime+'ms" and "'+o.endTime+'ms" is also being animated in a parallel animation between the times of "'+r+'ms" and "'+i+'ms"'),s=!1),r=o.startTime),s&&(a[n]={startTime:r,endTime:i}),e.options&&function(t,e,n){const i=e.params||{},r=Ug(t);r.length&&r.forEach((t=>{i.hasOwnProperty(t)||n.push("Unable to resolve the local animation param "+t+" in the given list of values")}))}(t[n],e.options,e.errors)}))}))}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let i=0;const r=[];let a=!1,o=!1,s=0;const l=t.steps.map((t=>{const n=this._makeStyleAst(t,e);let l=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach((t=>{if(lf(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}}));else if(lf(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(i++,c=n.offset=l),o=o||c<0||c>1,a=a||c<s,s=c,r.push(c),n}));o&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),a&&e.errors.push("Please ensure that all keyframe offsets are in order");const c=t.steps.length;let h=0;i>0&&i<c?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(h=1/(c-1));const d=c-1,u=e.currentTime,m=e.currentAnimateTimings,p=m.duration;return l.forEach(((t,i)=>{const a=h>0?i==d?1:h*i:r[i],o=a*p;e.currentTime=u+m.delay+o,m.duration=o,this._validateStyleAst(t,e),t.offset=a,n.styles.push(t)})),n}visitReference(t,e){return{type:8,animation:Kg(this,Gg(t.animation),e),options:cf(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:cf(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:cf(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[r,a]=function(t){const e=!!t.split(/\s*,\s*/).find((t=>":self"==t));return e&&(t=t.replace(rf,"")),[t=t.replace(/@\*/g,Og).replace(/@\w+/g,(t=>Og+"-"+t.substr(1))).replace(/:animating/g,Tg),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+r:r,ug(e.collectedStyles,e.currentQuerySelector,{});const o=Kg(this,Gg(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:o,originalSelector:t.selector,options:cf(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:zg(t.timings,e.errors,!0);return{type:12,animation:Kg(this,Gg(t.animation),e),timings:n,options:null}}}class sf{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function lf(t){return!Array.isArray(t)&&"object"==typeof t}function cf(t){return t?(t=Rg(t)).params&&(t.params=(e=t.params)?Rg(e):null):t={},t;var e}function hf(t,e,n){return{duration:t,delay:e,easing:n}}function df(t,e,n,i,r,a,o=null,s=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:r,delay:a,totalTime:r+a,easing:o,subTimeline:s}}class uf{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const mf=new RegExp(":enter","g"),pf=new RegExp(":leave","g");function gf(t,e,n,i,r,a={},o={},s,l,c=[]){return(new ff).buildKeyframes(t,e,n,i,r,a,o,s,l,c)}class ff{buildKeyframes(t,e,n,i,r,a,o,s,l,c=[]){l=l||new uf;const h=new yf(t,e,l,i,r,c,[]);h.options=s,h.currentTimeline.setStyles([a],null,h.errors,s),Kg(this,n,h);const d=h.timelines.filter((t=>t.containsAnimation()));if(d.length&&Object.keys(o).length){const t=d[d.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,h.errors,s)}return d.length?d.map((t=>t.buildKeyframes())):[df(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const i=e.createSubContext(t.options),r=e.currentTimeline.currentTime,a=this._visitSubInstructions(n,i,i.options);r!=a&&e.transformIntoNewTimeline(a)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let i=e.currentTimeline.currentTime;const r=null!=n.duration?Ig(n.duration):null,a=null!=n.delay?Ig(n.delay):null;return 0!==r&&t.forEach((t=>{const n=e.appendInstructionToTimeline(t,r,a);i=Math.max(i,n.duration+n.delay)})),i}visitReference(t,e){e.updateOptions(t.options,!0),Kg(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let i=e;const r=t.options;if(r&&(r.params||r.delay)&&(i=e.createSubContext(r),i.transformIntoNewTimeline(),null!=r.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=bf);const t=Ig(r.delay);i.delayNextStep(t)}t.steps.length&&(t.steps.forEach((t=>Kg(this,t,i))),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let i=e.currentTimeline.currentTime;const r=t.options&&t.options.delay?Ig(t.options.delay):0;t.steps.forEach((a=>{const o=e.createSubContext(t.options);r&&o.delayNextStep(r),Kg(this,a,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline)})),n.forEach((t=>e.currentTimeline.mergeTimelineCollectedStyles(t))),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return zg(e.params?Wg(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());const r=t.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const r=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(r):n.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,i=e.currentTimeline.duration,r=n.duration,a=e.createSubContext().currentTimeline;a.easing=n.easing,t.styles.forEach((t=>{a.forwardTime((t.offset||0)*r),a.setStyles(t.styles,t.easing,e.errors,e.options),a.applyStylesToKeyframe()})),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(i+r),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,i=t.options||{},r=i.delay?Ig(i.delay):0;r&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=bf);let a=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=o.length;let s=null;o.forEach(((n,i)=>{e.currentQueryIndex=i;const o=e.createSubContext(t.options,n);r&&o.delayNextStep(r),n===e.element&&(s=o.currentTimeline),Kg(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,o.currentTimeline.currentTime)})),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),s&&(e.currentTimeline.mergeTimelineCollectedStyles(s),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,i=e.currentTimeline,r=t.timings,a=Math.abs(r.duration),o=a*(e.currentQueryTotal-1);let s=a*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=o-s;break;case"full":s=n.currentStaggerTime}const l=e.currentTimeline;s&&l.delayNextStep(s);const c=l.currentTime;Kg(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}const bf={};class yf{constructor(t,e,n,i,r,a,o,s){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=r,this.errors=a,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=bf,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=s||new vf(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let i=this.options;null!=n.duration&&(i.duration=Ig(n.duration)),null!=n.delay&&(i.delay=Ig(n.delay));const r=n.params;if(r){let t=i.params;t||(t=this.options.params={}),Object.keys(r).forEach((n=>{(!e||!t.hasOwnProperty(n))&&(t[n]=Wg(r[n],t,this.errors))}))}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach((t=>{n[t]=e[t]}))}}return t}createSubContext(t=null,e,n){const i=e||this.element,r=new yf(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(t),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(t){return this.previousNode=bf,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},r=new wf(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,i,r,a){let o=[];if(i&&o.push(this.element),t.length>0){t=(t=t.replace(mf,"."+this._enterClassName)).replace(pf,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),o.push(...e)}return!r&&0==o.length&&a.push('`query("'+e+'")` returned zero elements. (Use `query("'+e+'", { optional: true })` if you wish to allow this.)'),o}}class vf{constructor(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new vf(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach((t=>{this._backFill[t]=this._globalTimelineStyles[t]||jp,this._currentKeyframe[t]=jp})),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,i){e&&(this._previousKeyframe.easing=e);const r=i&&i.params||{},a=function(t,e){const n={};let i;return t.forEach((t=>{"*"===t?(i=i||Object.keys(e),i.forEach((t=>{n[t]=jp}))):Fg(t,!1,n)})),n}(t,this._globalTimelineStyles);Object.keys(a).forEach((t=>{const e=Wg(a[t],r,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:jp),this._updateStyle(t,e)}))}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach((e=>{this._currentKeyframe[e]=t[e]})),Object.keys(this._localTimelineStyles).forEach((t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])})))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach((t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)}))}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach((e=>{const n=this._styleSummary[e],i=t._styleSummary[e];(!n||i.time>n.time)&&this._updateStyle(e,i.value)}))}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach(((r,a)=>{const o=Fg(r,!0);Object.keys(o).forEach((n=>{const i=o[n];"!"==i?t.add(n):i==jp&&e.add(n)})),n||(o.offset=a/this.duration),i.push(o)}));const r=t.size?Yg(t.values()):[],a=e.size?Yg(e.values()):[];if(n){const t=i[0],e=Rg(t);t.offset=0,e.offset=1,i=[t,e]}return df(this.element,i,r,a,this.duration,this.startTime,this.easing,!1)}}class wf extends vf{constructor(t,e,n,i,r,a,o=!1){super(t,e,a.delay),this.keyframes=n,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],a=n+e,o=e/a,s=Fg(t[0],!1);s.offset=0,r.push(s);const l=Fg(t[0],!1);l.offset=xf(o),r.push(l);const c=t.length-1;for(let i=1;i<=c;i++){let o=Fg(t[i],!1);o.offset=xf((e+o.offset*n)/a),r.push(o)}n=a,e=0,i="",t=r}return df(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function xf(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class Cf{}class kf extends Cf{normalizePropertyName(t,e){return Xg(t)}normalizeStyleValue(t,e,n,i){let r="";const a=n.toString().trim();if(Sf[e]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&i.push("Please provide a CSS unit value for "+t+":"+n)}return a+r}}const Sf=function(t){const e={};return t.forEach((t=>e[t]=!0)),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","));function Pf(t,e,n,i,r,a,o,s,l,c,h,d,u){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:n,fromStyles:a,toState:i,toStyles:o,timelines:s,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:d,errors:u}}const _f={};class Mf{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,i){return r=this.ast.matchers,a=t,o=e,s=n,l=i,r.some((t=>t(a,o,s,l)));var r,a,o,s,l}buildStyles(t,e,n){const i=this._stateStyles["*"],r=this._stateStyles[t],a=i?i.buildStyles(e,n):{};return r?r.buildStyles(e,n):a}build(t,e,n,i,r,a,o,s,l,c){const h=[],d=this.ast.options&&this.ast.options.params||_f,u=this.buildStyles(n,o&&o.params||_f,h),m=s&&s.params||_f,p=this.buildStyles(i,m,h),g=new Set,f=new Map,b=new Map,y="void"===i,v={params:Object.assign(Object.assign({},d),m)},w=c?[]:gf(t,e,this.ast.animation,r,a,u,p,v,l,h);let x=0;if(w.forEach((t=>{x=Math.max(t.duration+t.delay,x)})),h.length)return Pf(e,this._triggerName,n,i,y,u,p,[],[],f,b,x,h);w.forEach((t=>{const n=t.element,i=ug(f,n,{});t.preStyleProps.forEach((t=>i[t]=!0));const r=ug(b,n,{});t.postStyleProps.forEach((t=>r[t]=!0)),n!==e&&g.add(n)}));const C=Yg(g.values());return Pf(e,this._triggerName,n,i,y,u,p,w,C,f,b,x)}}class Df{constructor(t,e,n){this.styles=t,this.defaultParams=e,this.normalizer=n}buildStyles(t,e){const n={},i=Rg(this.defaultParams);return Object.keys(t).forEach((e=>{const n=t[e];null!=n&&(i[e]=n)})),this.styles.styles.forEach((t=>{if("string"!=typeof t){const r=t;Object.keys(r).forEach((t=>{let a=r[t];a.length>1&&(a=Wg(a,i,e));const o=this.normalizer.normalizePropertyName(t,e);a=this.normalizer.normalizeStyleValue(t,o,a,e),n[o]=a}))}})),n}}class Ef{constructor(t,e,n){var i,r;this.name=t,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states={},e.states.forEach((t=>{this.states[t.name]=new Df(t.style,t.options&&t.options.params||{},n)})),Of(this.states,"true","1"),Of(this.states,"false","0"),e.transitions.forEach((e=>{this.transitionFactories.push(new Mf(t,e,this.states))})),this.fallbackTransition=(i=t,r=this.states,new Mf(i,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},r))}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,i){return this.transitionFactories.find((r=>r.match(t,e,n,i)))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function Of(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const Af=new uf;class Tf{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],i=af(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=i}_buildPlayer(t,e,n){const i=t.element,r=lg(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,r,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const i=[],r=this._animations[t];let a;const o=new Map;if(r?(a=gf(this._driver,e,r,Mg,Dg,{},{},n,Af,i),a.forEach((t=>{const e=ug(o,t.element,{});t.postStyleProps.forEach((t=>e[t]=null))}))):(i.push("The requested animation doesn't exist or has already been destroyed"),a=[]),i.length)throw new Error("Unable to create the animation due to the following errors: "+i.join("\n"));o.forEach(((t,e)=>{Object.keys(t).forEach((n=>{t[n]=this._driver.computeStyle(e,n,jp)}))}));const s=sg(a.map((t=>{const e=o.get(t.element);return this._buildPlayer(t,{},e)})));return this._playersById[t]=s,s.onDestroy((()=>this.destroy(t))),this.players.push(s),s}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e}listen(t,e,n,i){const r=dg(e,"","","");return cg(this._getPlayer(t),n,r,i),()=>{}}command(t,e,n,i){if("register"==n)return void this.register(t,i[0]);if("create"==n)return void this.create(t,e,i[0]||{});const r=this._getPlayer(t);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}}const If="ng-animate-queued",Lf="ng-animate-disabled",zf=".ng-animate-disabled",Rf=[],Ff={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Bf={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Vf="__ng_removed";class Nf{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(i=n?t.value:t)?i:null,n){const e=Rg(t);delete e.value,this.options=e}else this.options={};var i;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach((n=>{null==t[n]&&(t[n]=e[n])}))}}}const Hf="void",Gf=new Nf(Hf);class Zf{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,$f(e,this._hostClassName)}listen(t,e,n,i){if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+e+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+e+'" because the provided event is undefined!');if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+e+'" is not supported!');var r;const a=ug(this._elementListeners,t,[]),o={name:e,phase:n,callback:i};a.push(o);const s=ug(this._engine.statesByElement,t,{});return s.hasOwnProperty(e)||($f(t,Eg),$f(t,"ng-trigger-"+e),s[e]=Gf),()=>{this._engine.afterFlush((()=>{const t=a.indexOf(o);t>=0&&a.splice(t,1),this._triggers[e]||delete s[e]}))}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'+t+'" has not been registered!');return e}trigger(t,e,n,i=!0){const r=this._getTrigger(e),a=new Wf(this.id,e,t);let o=this._engine.statesByElement.get(t);o||($f(t,Eg),$f(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let s=o[e];const l=new Nf(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&s&&l.absorbOptions(s.options),o[e]=l,s||(s=Gf),l.value!==Hf&&s.value===l.value){if(!function(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(let i=0;i<n.length;i++){const r=n[i];if(!e.hasOwnProperty(r)||t[r]!==e[r])return!1}return!0}(s.params,l.params)){const e=[],n=r.matchStyles(s.value,s.params,e),i=r.matchStyles(l.value,l.params,e);e.length?this._engine.reportError(e):this._engine.afterFlush((()=>{Hg(t,n),Ng(t,i)}))}return}const c=ug(this._engine.playersByElement,t,[]);c.forEach((t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()}));let h=r.matchTransition(s.value,l.value,t,l.params),d=!1;if(!h){if(!i)return;h=r.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:s,toState:l,player:a,isFallbackTransition:d}),d||($f(t,If),a.onStart((()=>{Kf(t,If)}))),a.onDone((()=>{let e=this.players.indexOf(a);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(a);t>=0&&n.splice(t,1)}})),this.players.push(a),c.push(a),a}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach(((e,n)=>{delete e[t]})),this._elementListeners.forEach(((e,n)=>{this._elementListeners.set(n,e.filter((e=>e.name!=t)))}))}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach((t=>t.destroy())),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,Og,!0);n.forEach((t=>{if(t[Vf])return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach((n=>n.triggerLeaveAnimation(t,e,!1,!0))):this.clearElementCache(t)})),this._engine.afterFlushAnimationsDone((()=>n.forEach((t=>this.clearElementCache(t)))))}triggerLeaveAnimation(t,e,n,i){const r=this._engine.statesByElement.get(t);if(r){const a=[];if(Object.keys(r).forEach((e=>{if(this._triggers[e]){const n=this.trigger(t,e,Hf,i);n&&a.push(n)}})),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&sg(a).onDone((()=>this._engine.processLeaveNode(t))),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),n=this._engine.statesByElement.get(t);if(e&&n){const i=new Set;e.forEach((e=>{const r=e.name;if(i.has(r))return;i.add(r);const a=this._triggers[r].fallbackTransition,o=n[r]||Gf,s=new Nf(Hf),l=new Wf(this.id,r,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:r,transition:a,fromState:o,toState:s,player:l,isFallbackTransition:!0})}))}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)i=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)n.markElementAsRemoved(this.id,t,!1,e);else{const i=t[Vf];(!i||i===Ff)&&(n.afterFlush((()=>this.clearElementCache(t))),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){$f(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach((n=>{const i=n.player;if(i.destroyed)return;const r=n.element,a=this._elementListeners.get(r);a&&a.forEach((e=>{if(e.name==n.triggerName){const i=dg(r,n.triggerName,n.fromState.value,n.toState.value);i._data=t,cg(n.player,e.phase,i,e.callback)}})),i.markedForDestroy?this._engine.afterFlush((()=>{i.destroy()})):e.push(n)})),this._queue=[],e.sort(((t,e)=>{const n=t.transition.ast.depCount,i=e.transition.ast.depCount;return 0==n||0==i?n-i:this._engine.driver.containsElement(t.element,e.element)?1:-1}))}destroy(t){this.players.forEach((t=>t.destroy())),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find((e=>e.element===t))||e,e}}class Uf{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach((e=>{e.players.forEach((e=>{e.queued&&t.push(e)}))})),t}createNamespace(t,e){const n=new Zf(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let i=!1;for(let r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,e)){this._namespaceList.splice(r+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush((()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)})),this.afterFlushAnimationsDone((()=>n.destroy(e)))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let i=0;i<t.length;i++){const r=n[t[i]].namespaceId;if(r){const t=this._fetchNamespace(r);t&&e.add(t)}}}return e}trigger(t,e,n,i){if(Yf(e)){const r=this._fetchNamespace(t);if(r)return r.trigger(e,n,i),!0}return!1}insertNode(t,e,n,i){if(!Yf(e))return;const r=e[Vf];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const t=this.collectedLeaveElements.indexOf(e);t>=0&&this.collectedLeaveElements.splice(t,1)}if(t){const i=this._fetchNamespace(t);i&&i.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),$f(t,Lf)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Kf(t,Lf))}removeNode(t,e,n,i){if(Yf(e)){const r=t?this._fetchNamespace(t):null;if(r?r.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,n,i){this.collectedLeaveElements.push(e),e[Vf]={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,i,r){return Yf(e)?this._fetchNamespace(t).listen(e,n,i,r):()=>{}}_buildInstruction(t,e,n,i,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,r)}destroyInnerAnimations(t){let e=this.driver.query(t,Og,!0);e.forEach((t=>this.destroyActiveAnimationsForElement(t))),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,Tg,!0),e.forEach((t=>this.finishActiveQueriedAnimationOnElement(t))))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach((t=>{t.queued?t.markedForDestroy=!0:t.destroy()}))}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach((t=>t.finish()))}whenRenderingDone(){return new Promise((t=>{if(this.players.length)return sg(this.players).onDone((()=>t()));t()}))}processLeaveNode(t){const e=t[Vf];if(e&&e.setForRemoval){if(t[Vf]=Ff,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,zf)&&this.markElementAsDisabled(t,!1),this.driver.query(t,zf,!0).forEach((t=>{this.markElementAsDisabled(t,!1)}))}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach(((t,e)=>this._balanceNamespaceList(t,e))),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;t<this.collectedEnterElements.length;t++)$f(this.collectedEnterElements[t],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{e=this._flushAnimations(n,t)}finally{for(let t=0;t<n.length;t++)n[t]()}}else for(let t=0;t<this.collectedLeaveElements.length;t++)this.processLeaveNode(this.collectedLeaveElements[t]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach((t=>t())),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?sg(e).onDone((()=>{t.forEach((t=>t()))})):t.forEach((t=>t()))}}reportError(t){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+t.join("\n"))}_flushAnimations(t,e){const n=new uf,i=[],r=new Map,a=[],o=new Map,s=new Map,l=new Map,c=new Set;this.disabledNodes.forEach((t=>{c.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let t=0;t<e.length;t++)c.add(e[t])}));const h=this.bodyNode,d=Array.from(this.statesByElement.keys()),u=qf(d,this.collectedEnterElements),m=new Map;let p=0;u.forEach(((t,e)=>{const n=Mg+p++;m.set(e,n),t.forEach((t=>$f(t,n)))}));const g=[],f=new Set,b=new Set;for(let t=0;t<this.collectedLeaveElements.length;t++){const e=this.collectedLeaveElements[t],n=e[Vf];n&&n.setForRemoval&&(g.push(e),f.add(e),n.hasAnimation?this.driver.query(e,".ng-star-inserted",!0).forEach((t=>f.add(t))):b.add(e))}const y=new Map,v=qf(d,Array.from(f));v.forEach(((t,e)=>{const n=Dg+p++;y.set(e,n),t.forEach((t=>$f(t,n)))})),t.push((()=>{u.forEach(((t,e)=>{const n=m.get(e);t.forEach((t=>Kf(t,n)))})),v.forEach(((t,e)=>{const n=y.get(e);t.forEach((t=>Kf(t,n)))})),g.forEach((t=>{this.processLeaveNode(t)}))}));const w=[],x=[];for(let t=this._namespaceList.length-1;t>=0;t--)this._namespaceList[t].drainQueuedTransitions(e).forEach((t=>{const e=t.player,r=t.element;if(w.push(e),this.collectedEnterElements.length){const t=r[Vf];if(t&&t.setForMove)return void e.destroy()}const c=!h||!this.driver.containsElement(h,r),d=y.get(r),u=m.get(r),p=this._buildInstruction(t,n,u,d,c);if(p.errors&&p.errors.length)x.push(p);else{if(c)return e.onStart((()=>Hg(r,p.fromStyles))),e.onDestroy((()=>Ng(r,p.toStyles))),void i.push(e);if(t.isFallbackTransition)return e.onStart((()=>Hg(r,p.fromStyles))),e.onDestroy((()=>Ng(r,p.toStyles))),void i.push(e);p.timelines.forEach((t=>t.stretchStartingKeyframe=!0)),n.append(r,p.timelines),a.push({instruction:p,player:e,element:r}),p.queriedElements.forEach((t=>ug(o,t,[]).push(e))),p.preStyleProps.forEach(((t,e)=>{const n=Object.keys(t);if(n.length){let t=s.get(e);t||s.set(e,t=new Set),n.forEach((e=>t.add(e)))}})),p.postStyleProps.forEach(((t,e)=>{const n=Object.keys(t);let i=l.get(e);i||l.set(e,i=new Set),n.forEach((t=>i.add(t)))}))}}));if(x.length){const t=[];x.forEach((e=>{t.push("@"+e.triggerName+" has failed due to:\n"),e.errors.forEach((e=>t.push("- "+e+"\n")))})),w.forEach((t=>t.destroy())),this.reportError(t)}const C=new Map,k=new Map;a.forEach((t=>{const e=t.element;n.has(e)&&(k.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,C))})),i.forEach((t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach((t=>{ug(C,e,[]).push(t),t.destroy()}))}));const S=g.filter((t=>tb(t,s,l))),P=new Map;Xf(P,this.driver,b,l,jp).forEach((t=>{tb(t,s,l)&&S.push(t)}));const _=new Map;u.forEach(((t,e)=>{Xf(_,this.driver,new Set(t),s,"!")})),S.forEach((t=>{const e=P.get(t),n=_.get(t);P.set(t,Object.assign(Object.assign({},e),n))}));const M=[],D=[],E={};a.forEach((t=>{const{element:e,player:a,instruction:o}=t;if(n.has(e)){if(c.has(e))return a.onDestroy((()=>Ng(e,o.toStyles))),a.disabled=!0,a.overrideTotalTime(o.totalTime),void i.push(a);let t=E;if(k.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=k.get(n);if(e){t=e;break}i.push(n)}i.forEach((e=>k.set(e,t)))}const n=this._buildAnimation(a.namespaceId,o,C,r,_,P);if(a.setRealPlayer(n),t===E)M.push(a);else{const e=this.playersByElement.get(t);e&&e.length&&(a.parentPlayer=sg(e)),i.push(a)}}else Hg(e,o.fromStyles),a.onDestroy((()=>Ng(e,o.toStyles))),D.push(a),c.has(e)&&i.push(a)})),D.forEach((t=>{const e=r.get(t.element);if(e&&e.length){const n=sg(e);t.setRealPlayer(n)}})),i.forEach((t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()}));for(let t=0;t<g.length;t++){const e=g[t],n=e[Vf];if(Kf(e,Dg),n&&n.hasAnimation)continue;let i=[];if(o.size){let t=o.get(e);t&&t.length&&i.push(...t);let n=this.driver.query(e,Tg,!0);for(let t=0;t<n.length;t++){let e=o.get(n[t]);e&&e.length&&i.push(...e)}}const r=i.filter((t=>!t.destroyed));r.length?Jf(this,e,r):this.processLeaveNode(e)}return g.length=0,M.forEach((t=>{this.players.push(t),t.onDone((()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)})),t.play()})),M}elementContainsData(t,e){let n=!1;const i=e[Vf];return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,i,r){let a=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(a=e)}else{const e=this.playersByElement.get(t);if(e){const t=!r||r==Hf;e.forEach((e=>{e.queued||!t&&e.triggerName!=i||a.push(e)}))}}return(n||i)&&(a=a.filter((t=>!(n&&n!=t.namespaceId||i&&i!=t.triggerName)))),a}_beforeAnimationBuild(t,e,n){const i=e.element,r=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const t of e.timelines){const o=t.element,s=o!==i,l=ug(n,o,[]);this._getPreviousPlayers(o,s,r,a,e.toState).forEach((t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)}))}Hg(i,e.fromStyles)}_buildAnimation(t,e,n,i,r,a){const o=e.triggerName,s=e.element,l=[],c=new Set,h=new Set,d=e.timelines.map((e=>{const d=e.element;c.add(d);const u=d[Vf];if(u&&u.removedBeforeQueried)return new ig(e.duration,e.delay);const m=d!==s,p=function(t){const e=[];return Qf(t,e),e}((n.get(d)||Rf).map((t=>t.getRealPlayer()))).filter((t=>!!t.element&&t.element===d)),g=r.get(d),f=a.get(d),b=lg(0,this._normalizer,0,e.keyframes,g,f),y=this._buildPlayer(e,b,p);if(e.subTimeline&&i&&h.add(d),m){const e=new Wf(t,o,d);e.setRealPlayer(y),l.push(e)}return y}));l.forEach((t=>{ug(this.playersByQueriedElement,t.element,[]).push(t),t.onDone((()=>function(t,e,n){let i;if(t instanceof Map){if(i=t.get(e),i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&t.delete(e)}}else if(i=t[e],i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&delete t[e]}return i}(this.playersByQueriedElement,t.element,t)))})),c.forEach((t=>$f(t,Ag)));const u=sg(d);return u.onDestroy((()=>{c.forEach((t=>Kf(t,Ag))),Ng(s,e.toStyles)})),h.forEach((t=>{ug(i,t,[]).push(u)})),u}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new ig(t.duration,t.delay)}}class Wf{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new ig,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach((e=>{this._queuedCallbacks[e].forEach((n=>cg(t,e,void 0,n)))})),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart((()=>e.triggerCallback("start"))),t.onDone((()=>this.finish())),t.onDestroy((()=>this.destroy()))}_queueEvent(t,e){ug(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Yf(t){return t&&1===t.nodeType}function jf(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function Xf(t,e,n,i,r){const a=[];n.forEach((t=>a.push(jf(t))));const o=[];i.forEach(((n,i)=>{const a={};n.forEach((t=>{const n=a[t]=e.computeStyle(i,t,r);(!n||0==n.length)&&(i[Vf]=Bf,o.push(i))})),t.set(i,a)}));let s=0;return n.forEach((t=>jf(t,a[s++]))),o}function qf(t,e){const n=new Map;if(t.forEach((t=>n.set(t,[]))),0==e.length)return n;const i=new Set(e),r=new Map;function a(t){if(!t)return 1;let e=r.get(t);if(e)return e;const o=t.parentNode;return e=n.has(o)?o:i.has(o)?1:a(o),r.set(t,e),e}return e.forEach((t=>{const e=a(t);1!==e&&n.get(e).push(t)})),n}function $f(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Kf(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function Jf(t,e,n){sg(n).onDone((()=>t.processLeaveNode(e)))}function Qf(t,e){for(let n=0;n<t.length;n++){const i=t[n];i instanceof rg?Qf(i.players,e):e.push(i)}}function tb(t,e,n){const i=n.get(t);if(!i)return!1;let r=e.get(t);return r?i.forEach((t=>r.add(t))):e.set(t,i),n.delete(t),!0}class eb{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Uf(t,e,n),this._timelineEngine=new Tf(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,i,r){const a=t+"-"+i;let o=this._triggerCache[a];if(!o){const t=[],e=af(this._driver,r,t);if(t.length)throw new Error('The animation trigger "'+i+'" has failed to build due to the following errors:\n - '+t.join("\n - "));s=i,l=e,c=this._normalizer,o=new Ef(s,l,c),this._triggerCache[a]=o}var s,l,c;this._transitionEngine.registerTrigger(e,i,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}onRemove(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,i){if("@"==n.charAt(0)){const[t,r]=mg(n);this._timelineEngine.command(t,e,r,i)}else this._transitionEngine.trigger(t,e,n,i)}listen(t,e,n,i,r){if("@"==n.charAt(0)){const[t,i]=mg(n);return this._timelineEngine.listen(t,e,i,r)}return this._transitionEngine.listen(t,e,n,i,r)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function nb(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=rb(e[0]),e.length>1&&(i=rb(e[e.length-1]))):e&&(n=rb(e)),n||i?new ib(t,n,i):null}let ib=(()=>{class t{constructor(e,n,i){this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;let r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Ng(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ng(this._element,this._initialStyles),this._endStyles&&(Ng(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Hg(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Hg(this._element,this._endStyles),this._endStyles=null),Ng(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function rb(t){let e=null;const n=Object.keys(t);for(let r=0;r<n.length;r++){const a=n[r];("display"===(i=a)||"position"===i)&&(e=e||{},e[a]=t[a])}var i;return e}const ab="animation",ob="animationend";class sb{constructor(t,e,n,i,r,a,o){this._element=t,this._name=e,this._duration=n,this._delay=i,this._easing=r,this._fillMode=a,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=t=>this._handleCallback(t)}apply(){(function(t,e){const n=mb(t,"").trim();n.length&&(function(t,e){let n=0;for(let e=0;e<t.length;e++)","===t.charAt(e)&&n++}(n),e=n+", "+e),ub(t,"",e)})(this._element,this._duration+"ms "+this._easing+" "+this._delay+"ms 1 normal "+this._fillMode+" "+this._name),db(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){lb(this._element,this._name,"paused")}resume(){lb(this._element,this._name,"running")}setPosition(t){const e=cb(this._element,this._name);this._position=t*this._duration,ub(this._element,"Delay","-"+this._position+"ms",e)}getPosition(){return this._position}_handleCallback(t){const e=t._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(t.elapsedTime.toFixed(3));t.animationName==this._name&&Math.max(e-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),db(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=mb(t,"").split(","),i=hb(n,e);i>=0&&(n.splice(i,1),ub(t,"",n.join(",")))}(this._element,this._name))}}function lb(t,e,n){ub(t,"PlayState",n,cb(t,e))}function cb(t,e){const n=mb(t,"");return n.indexOf(",")>0?hb(n.split(","),e):hb([n],e)}function hb(t,e){for(let n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function db(t,e,n){n?t.removeEventListener(ob,e):t.addEventListener(ob,e)}function ub(t,e,n,i){const r=ab+e;if(null!=i){const e=t.style[r];if(e.length){const t=e.split(",");t[i]=n,n=t.join(",")}}t.style[r]=n}function mb(t,e){return t.style[ab+e]||""}class pb{constructor(t,e,n,i,r,a,o,s){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=r,this._finalStyles=o,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=i+r,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((t=>t())),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach((t=>t())),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach((t=>t())),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new sb(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",(()=>this.finish()))}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((t=>t())),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach((n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:Jg(this.element,n))}))}this.currentSnapshot=t}}class gb extends ig{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=Sg(e)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach((t=>{this._startingStyles[t]=this.element.style[t]})),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach((t=>this.element.style.setProperty(t,this._styles[t]))),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach((t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)})),this._startingStyles=null,super.destroy())}}class fb{constructor(){this._count=0}validateStyleProperty(t){return wg(t)}matchesElement(t,e){return xg(t,e)}containsElement(t,e){return Cg(t,e)}query(t,e,n){return kg(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map((t=>Sg(t)));let i="@keyframes "+e+" {\n",r="";n.forEach((t=>{r=" ";const e=parseFloat(t.offset);i+=""+r+100*e+"% {\n",r+=" ",Object.keys(t).forEach((e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=r+"animation-timing-function: "+n+";\n"));default:return void(i+=""+r+e+": "+n+";\n")}})),i+=r+"}\n"})),i+="}\n";const a=document.createElement("style");return a.textContent=i,a}animate(t,e,n,i,r,a=[],o){const s=a.filter((t=>t instanceof pb)),l={};qg(n,i)&&s.forEach((t=>{let e=t.currentSnapshot;Object.keys(e).forEach((t=>l[t]=e[t]))}));const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach((t=>{Object.keys(t).forEach((n=>{"offset"==n||"easing"==n||(e[n]=t[n])}))})),e}(e=$g(t,e,l));if(0==n)return new gb(t,c);const h="gen_css_kf_"+this._count++,d=this.buildKeyframeElement(t,h,e);(function(t){var e;const n=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head})(t).appendChild(d);const u=nb(t,e),m=new pb(t,e,h,n,i,r,c,u);return m.onDestroy((()=>{var t;(t=d).parentNode.removeChild(t)})),m}}class bb{constructor(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach((t=>t())),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",(()=>this._onFinish()))}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach((t=>t())),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((t=>t())),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach((e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:Jg(this.element,e))})),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((t=>t())),e.length=0}}class yb{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(vb().toString()),this._cssKeyframesDriver=new fb}validateStyleProperty(t){return wg(t)}matchesElement(t,e){return xg(t,e)}containsElement(t,e){return Cg(t,e)}query(t,e,n){return kg(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,i,r,a=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,r,a);const s={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(s.easing=r);const l={},c=a.filter((t=>t instanceof bb));qg(n,i)&&c.forEach((t=>{let e=t.currentSnapshot;Object.keys(e).forEach((t=>l[t]=e[t]))}));const h=nb(t,e=$g(t,e=e.map((t=>Fg(t,!1))),l));return new bb(t,e,s,h)}}function vb(){return ag()&&Element.prototype.animate||{}}let wb=(()=>{class t extends Yp{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:Lt.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?$p(t):t;return kb(this._renderer,null,e,"register",[n]),new xb(e,this._renderer)}}return t["ɵfac"]=function(e){return new(e||t)(wi(vl),wi(Hh))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})();class xb extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Cb(this._id,t,e||{},this._renderer)}}class Cb{constructor(t,e,n,i){this.id=t,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,"@@"+this.id+":"+t,e)}_command(t,...e){return kb(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function kb(t,e,n,i,r){return t.setProperty(e,"@@"+n+":"+i,r)}const Sb="@.disabled";let Pb=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new _b("",n,this.engine),this._rendererCache.set(n,t)),t}const i=e.id,r=e.id+"-"+this._currentId;this._currentId++,this.engine.register(r,t);const a=e=>{Array.isArray(e)?e.forEach(a):this.engine.registerTrigger(i,r,t,e.name,e)};return e.data.animation.forEach(a),new Mb(this,r,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then((()=>{this._microtaskId++}))}scheduleListenerCallback(t,e,n){t>=0&&t<this._microtaskId?this._zone.run((()=>e(n))):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then((()=>{this._zone.run((()=>{this._animationCallbacksBuffer.forEach((t=>{const[e,n]=t;e(n)})),this._animationCallbacksBuffer=[]}))})),this._animationCallbacksBuffer.push([e,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular((()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)})),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t["ɵfac"]=function(e){return new(e||t)(wi(vl),wi(eb),wi(ph))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})();class _b{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n,i=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,i)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,i){this.delegate.setAttribute(t,e,n,i)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,i){this.delegate.setStyle(t,e,n,i)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){"@"==e.charAt(0)&&e==Sb?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class Mb extends _b{constructor(t,e,n,i){super(e,n,i),this.factory=t,this.namespaceId=e}setProperty(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&e==Sb?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if("@"==e.charAt(0)){const i=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let r=e.substr(1),a="";return"@"!=r.charAt(0)&&([r,a]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(r)),this.engine.listen(this.namespaceId,i,r,a,(t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)}))}return this.delegate.listen(t,e,n)}}let Db=(()=>{class t extends eb{constructor(t,e,n){super(t.body,e,n)}ngOnDestroy(){this.flush()}}return t["ɵfac"]=function(e){return new(e||t)(wi(Hh),wi(_g),wi(Cf))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})();const Eb=new ni("AnimationModuleType"),Ob=[{provide:Yp,useClass:wb},{provide:Cf,useFactory:function(){return new kf}},{provide:eb,useClass:Db},{provide:vl,useFactory:function(t,e,n){return new Pb(t,e,n)},deps:[Cu,eb,ph]}],Ab=[{provide:_g,useFactory:function(){return"function"==typeof vb()?new yb:new fb}},{provide:Eb,useValue:"BrowserAnimations"},...Ob],Tb=[{provide:_g,useClass:Pg},{provide:Eb,useValue:"NoopAnimations"},...Ob];let Ib=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?Tb:Ab}}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({providers:Ab,imports:[Ru]}),t})();class Lb extends A{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new D;return this._value}next(t){super.next(this._value=t)}}const zb={},Rb="[NG-ZORRO]:";function Fb(t,...e){Mh()&&function(...t){const e=t.reduce(((t,e)=>t+e.toString()),"");return!zb[e]&&(zb[e]=!0,!0)}(...e)&&t(...e)}const Bb=(...t)=>Fb(((...t)=>r.warn(Rb,...t)),...t);function Vb(t){return(Vb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Nb(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function Hb(t){Nb(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===Vb(t)&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):(("string"==typeof t||"[object String]"===e)&&void 0!==r&&(r.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),r.warn((new Error).stack)),new Date(NaN))}function Gb(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}var Zb={};function Ub(){return Zb}function Wb(t,e){var n,i,r,a,o,s,l,c;Nb(1,arguments);var h=Ub(),d=Gb(null!==(n=null!==(i=null!==(r=null!==(a=null==e?void 0:e.weekStartsOn)&&void 0!==a?a:null==e||null===(o=e.locale)||void 0===o||null===(s=o.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==r?r:h.weekStartsOn)&&void 0!==i?i:null===(l=h.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=Hb(t),m=u.getDay(),p=(m<d?7:0)+m-d;return u.setDate(u.getDate()-p),u.setHours(0,0,0,0),u}function Yb(t){return Nb(1,arguments),Wb(t,{weekStartsOn:1})}function jb(t){Nb(1,arguments);var e=Hb(t),n=e.getFullYear(),i=new Date(0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);var r=Yb(i),a=new Date(0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);var o=Yb(a);return e.getTime()>=r.getTime()?n+1:e.getTime()>=o.getTime()?n:n-1}function Xb(t){Nb(1,arguments);var e=jb(t),n=new Date(0);n.setFullYear(e,0,4),n.setHours(0,0,0,0);var i=Yb(n);return i}function qb(t){return Nb(1,arguments),t instanceof Date||"object"===Vb(t)&&"[object Date]"===Object.prototype.toString.call(t)}function $b(t){if(Nb(1,arguments),!qb(t)&&"number"!=typeof t)return!1;var e=Hb(t);return!isNaN(Number(e))}function Kb(t,e){Nb(2,arguments);var n=Hb(t).getTime(),i=Gb(e);return new Date(n+i)}function Jb(t,e){Nb(2,arguments);var n=Gb(e);return Kb(t,-n)}function Qb(t){Nb(1,arguments);var e=1,n=Hb(t),i=n.getUTCDay(),r=(i<e?7:0)+i-e;return n.setUTCDate(n.getUTCDate()-r),n.setUTCHours(0,0,0,0),n}function ty(t){Nb(1,arguments);var e=Hb(t),n=e.getUTCFullYear(),i=new Date(0);i.setUTCFullYear(n+1,0,4),i.setUTCHours(0,0,0,0);var r=Qb(i),a=new Date(0);a.setUTCFullYear(n,0,4),a.setUTCHours(0,0,0,0);var o=Qb(a);return e.getTime()>=r.getTime()?n+1:e.getTime()>=o.getTime()?n:n-1}function ey(t){Nb(1,arguments);var e=ty(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var i=Qb(n);return i}function ny(t){Nb(1,arguments);var e=Hb(t),n=Qb(e).getTime()-ey(e).getTime();return Math.round(n/6048e5)+1}function iy(t,e){var n,i,r,a,o,s,l,c;Nb(1,arguments);var h=Ub(),d=Gb(null!==(n=null!==(i=null!==(r=null!==(a=null==e?void 0:e.weekStartsOn)&&void 0!==a?a:null==e||null===(o=e.locale)||void 0===o||null===(s=o.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==r?r:h.weekStartsOn)&&void 0!==i?i:null===(l=h.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=Hb(t),m=u.getUTCDay(),p=(m<d?7:0)+m-d;return u.setUTCDate(u.getUTCDate()-p),u.setUTCHours(0,0,0,0),u}function ry(t,e){var n,i,r,a,o,s,l,c;Nb(1,arguments);var h=Hb(t),d=h.getUTCFullYear(),u=Ub(),m=Gb(null!==(n=null!==(i=null!==(r=null!==(a=null==e?void 0:e.firstWeekContainsDate)&&void 0!==a?a:null==e||null===(o=e.locale)||void 0===o||null===(s=o.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==r?r:u.firstWeekContainsDate)&&void 0!==i?i:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(d+1,0,m),p.setUTCHours(0,0,0,0);var g=iy(p,e),f=new Date(0);f.setUTCFullYear(d,0,m),f.setUTCHours(0,0,0,0);var b=iy(f,e);return h.getTime()>=g.getTime()?d+1:h.getTime()>=b.getTime()?d:d-1}function ay(t,e){var n,i,r,a,o,s,l,c;Nb(1,arguments);var h=Ub(),d=Gb(null!==(n=null!==(i=null!==(r=null!==(a=null==e?void 0:e.firstWeekContainsDate)&&void 0!==a?a:null==e||null===(o=e.locale)||void 0===o||null===(s=o.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==r?r:h.firstWeekContainsDate)&&void 0!==i?i:null===(l=h.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1),u=ry(t,e),m=new Date(0);m.setUTCFullYear(u,0,d),m.setUTCHours(0,0,0,0);var p=iy(m,e);return p}function oy(t,e){Nb(1,arguments);var n=Hb(t),i=iy(n,e).getTime()-ay(n,e).getTime();return Math.round(i/6048e5)+1}function sy(t,e){for(var n=t<0?"-":"",i=Math.abs(t).toString();i.length<e;)i="0"+i;return n+i}var ly={G:function(t,e,n){var i=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});default:return n.era(i,{width:"wide"})}},y:function(t,e,n){if("yo"===e){var i=t.getUTCFullYear();return n.ordinalNumber(i>0?i:1-i,{unit:"year"})}return r=e,a=t.getUTCFullYear(),o=a>0?a:1-a,sy("yy"===r?o%100:o,r.length);var r,a,o},Y:function(t,e,n,i){var r=ry(t,i),a=r>0?r:1-r;return"YY"===e?sy(a%100,2):"Yo"===e?n.ordinalNumber(a,{unit:"year"}):sy(a,e.length)},R:function(t,e){return sy(ty(t),e.length)},u:function(t,e){return sy(t.getUTCFullYear(),e.length)},Q:function(t,e,n){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(i);case"QQ":return sy(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,e,n){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(i);case"qq":return sy(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,e,n){var i,r,a=t.getUTCMonth();switch(e){case"M":case"MM":return i=e,r=t.getUTCMonth(),"M"===i?String(r+1):sy(r+1,2);case"Mo":return n.ordinalNumber(a+1,{unit:"month"});case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});default:return n.month(a,{width:"wide",context:"formatting"})}},L:function(t,e,n){var i=t.getUTCMonth();switch(e){case"L":return String(i+1);case"LL":return sy(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(t,e,n,i){var r=oy(t,i);return"wo"===e?n.ordinalNumber(r,{unit:"week"}):sy(r,e.length)},I:function(t,e,n){var i=ny(t);return"Io"===e?n.ordinalNumber(i,{unit:"week"}):sy(i,e.length)},d:function(t,e,n){return"do"===e?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):(i=e,sy(t.getUTCDate(),i.length));var i},D:function(t,e,n){var i=function(t){Nb(1,arguments);var e=Hb(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var i=e.getTime();return Math.floor((n-i)/864e5)+1}(t);return"Do"===e?n.ordinalNumber(i,{unit:"dayOfYear"}):sy(i,e.length)},E:function(t,e,n){var i=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(t,e,n,i){var r=t.getUTCDay(),a=(r-i.weekStartsOn+8)%7||7;switch(e){case"e":return String(a);case"ee":return sy(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(t,e,n,i){var r=t.getUTCDay(),a=(r-i.weekStartsOn+8)%7||7;switch(e){case"c":return String(a);case"cc":return sy(a,e.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(t,e,n){var i=t.getUTCDay(),r=0===i?7:i;switch(e){case"i":return String(r);case"ii":return sy(r,e.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(t,e,n){var i=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,e,n){var i,r=t.getUTCHours();switch(i=12===r?"noon":0===r?"midnight":r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,e,n){var i,r=t.getUTCHours();switch(i=r>=17?"evening":r>=12?"afternoon":r>=4?"morning":"night",e){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,e,n){if("ho"===e){var i=t.getUTCHours()%12;return 0===i&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return r=e,sy(t.getUTCHours()%12||12,r.length);var r},H:function(t,e,n){return"Ho"===e?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):(i=e,sy(t.getUTCHours(),i.length));var i},K:function(t,e,n){var i=t.getUTCHours()%12;return"Ko"===e?n.ordinalNumber(i,{unit:"hour"}):sy(i,e.length)},k:function(t,e,n){var i=t.getUTCHours();return 0===i&&(i=24),"ko"===e?n.ordinalNumber(i,{unit:"hour"}):sy(i,e.length)},m:function(t,e,n){return"mo"===e?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):(i=e,sy(t.getUTCMinutes(),i.length));var i},s:function(t,e,n){return"so"===e?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):(i=e,sy(t.getUTCSeconds(),i.length));var i},S:function(t,e){return n=t,r=(i=e).length,a=n.getUTCMilliseconds(),sy(Math.floor(a*Math.pow(10,r-3)),i.length);var n,i,r,a},X:function(t,e,n,i){var r=(i._originalDate||t).getTimezoneOffset();if(0===r)return"Z";switch(e){case"X":return hy(r);case"XXXX":case"XX":return dy(r);default:return dy(r,":")}},x:function(t,e,n,i){var r=(i._originalDate||t).getTimezoneOffset();switch(e){case"x":return hy(r);case"xxxx":case"xx":return dy(r);default:return dy(r,":")}},O:function(t,e,n,i){var r=(i._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+cy(r,":");default:return"GMT"+dy(r,":")}},z:function(t,e,n,i){var r=(i._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+cy(r,":");default:return"GMT"+dy(r,":")}},t:function(t,e,n,i){return sy(Math.floor((i._originalDate||t).getTime()/1e3),e.length)},T:function(t,e,n,i){return sy((i._originalDate||t).getTime(),e.length)}};function cy(t,e){var n=t>0?"-":"+",i=Math.abs(t),r=Math.floor(i/60),a=i%60;if(0===a)return n+String(r);var o=e||"";return n+String(r)+o+sy(a,2)}function hy(t,e){return t%60==0?(t>0?"-":"+")+sy(Math.abs(t)/60,2):dy(t,e)}function dy(t,e){var n=e||"",i=t>0?"-":"+",r=Math.abs(t);return i+sy(Math.floor(r/60),2)+n+sy(r%60,2)}const uy=ly;var my=function(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},py=function(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}};const gy={p:py,P:function(t,e){var n,i=t.match(/(P+)(p+)?/)||[],r=i[1],a=i[2];if(!a)return my(t,e);switch(r){case"P":n=e.dateTime({width:"short"});break;case"PP":n=e.dateTime({width:"medium"});break;case"PPP":n=e.dateTime({width:"long"});break;default:n=e.dateTime({width:"full"})}return n.replace("{{date}}",my(r,e)).replace("{{time}}",py(a,e))}};function fy(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}var by=["D","DD"],yy=["YY","YYYY"];function vy(t){return-1!==by.indexOf(t)}function wy(t){return-1!==yy.indexOf(t)}function xy(t,e,n){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Cy={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function ky(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth,i=t.formats[n]||t.formats[t.defaultWidth];return i}}const Sy={date:ky({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:ky({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:ky({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var Py={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function _y(t){return function(e,n){var i;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&t.formattingValues){var r=t.defaultFormattingWidth||t.defaultWidth,a=null!=n&&n.width?String(n.width):r;i=t.formattingValues[a]||t.formattingValues[r]}else{var o=t.defaultWidth,s=null!=n&&n.width?String(n.width):t.defaultWidth;i=t.values[s]||t.values[o]}return i[t.argumentCallback?t.argumentCallback(e):e]}}const My={ordinalNumber:function(t,e){var n=Number(t),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:_y({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:_y({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:_y({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:_y({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:_y({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function Dy(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.width,r=i&&t.matchPatterns[i]||t.matchPatterns[t.defaultMatchWidth],a=e.match(r);if(!a)return null;var o,s=a[0],l=i&&t.parsePatterns[i]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(l)?Oy(l,(function(t){return t.test(s)})):Ey(l,(function(t){return t.test(s)}));o=t.valueCallback?t.valueCallback(c):c,o=n.valueCallback?n.valueCallback(o):o;var h=e.slice(s.length);return{value:o,rest:h}}}function Ey(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function Oy(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}var Ay,Ty={ordinalNumber:(Ay={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.match(Ay.matchPattern);if(!n)return null;var i=n[0],r=t.match(Ay.parsePattern);if(!r)return null;var a=Ay.valueCallback?Ay.valueCallback(r[0]):r[0];a=e.valueCallback?e.valueCallback(a):a;var o=t.slice(i.length);return{value:a,rest:o}}),era:Dy({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Dy({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Dy({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Dy({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Dy({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const Iy={code:"en-US",formatDistance:function(t,e,n){var i,r=Cy[t];return i="string"==typeof r?r:1===e?r.one:r.other.replace("{{count}}",e.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i},formatLong:Sy,formatRelative:function(t,e,n,i){return Py[t]},localize:My,match:Ty,options:{weekStartsOn:0,firstWeekContainsDate:1}};var Ly=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,zy=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ry=/^'([^]*?)'?$/,Fy=/''/g,By=/[a-zA-Z]/;function Vy(t){var e=t.match(Ry);return e?e[1].replace(Fy,"'"):t}function Ny(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Hy(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Ny(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ny(t,e)}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f: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.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{!o&&null!=n.return&&n.return()}finally{if(s)throw a}}}}function Gy(t,e){if(null==t)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function Zy(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Uy(t,e){return(Uy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Wy(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Uy(t,e)}function Yy(t){return(Yy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function jy(t,e){if(e&&("object"===Vb(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Zy(t)}function Xy(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=Yy(t);if(e){var r=Yy(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return jy(this,n)}}function qy(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $y(t){var e=function(t,e){if("object"!==Vb(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==Vb(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Vb(e)?e:String(e)}function Ky(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,$y(i.key),i)}}function Jy(t,e,n){return e&&Ky(t.prototype,e),n&&Ky(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Qy(t,e,n){return(e=$y(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var tv=function(){function t(){qy(this,t),Qy(this,"priority",void 0),Qy(this,"subPriority",0)}return Jy(t,[{key:"validate",value:function(t,e){return!0}}]),t}(),ev=function(t){Wy(n,t);var e=Xy(n);function n(t,i,r,a,o){var s;return qy(this,n),(s=e.call(this)).value=t,s.validateValue=i,s.setValue=r,s.priority=a,o&&(s.subPriority=o),s}return Jy(n,[{key:"validate",value:function(t,e){return this.validateValue(t,this.value,e)}},{key:"set",value:function(t,e,n){return this.setValue(t,e,this.value,n)}}]),n}(tv),nv=function(t){Wy(n,t);var e=Xy(n);function n(){var t;qy(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return Qy(Zy(t=e.call.apply(e,[this].concat(r))),"priority",10),Qy(Zy(t),"subPriority",-1),t}return Jy(n,[{key:"set",value:function(t,e){if(e.timestampIsSet)return t;var n=new Date(0);return n.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),n.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),n}}]),n}(tv),iv=function(){function t(){qy(this,t),Qy(this,"incompatibleTokens",void 0),Qy(this,"priority",void 0),Qy(this,"subPriority",void 0)}return Jy(t,[{key:"run",value:function(t,e,n,i){var r=this.parse(t,e,n,i);return r?{setter:new ev(r.value,this.validate,this.set,this.priority,this.subPriority),rest:r.rest}:null}},{key:"validate",value:function(t,e,n){return!0}}]),t}(),rv=function(t){Wy(n,t);var e=Xy(n);function n(){var t;qy(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return Qy(Zy(t=e.call.apply(e,[this].concat(r))),"priority",140),Qy(Zy(t),"incompatibleTokens",["R","u","t","T"]),t}return Jy(n,[{key:"parse",value:function(t,e,n){switch(e){case"G":case"GG":case"GGG":return n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"});case"GGGGG":return n.era(t,{width:"narrow"});default:return n.era(t,{width:"wide"})||n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"})}}},{key:"set",value:function(t,e,n){return e.era=n,t.setUTCFullYear(n,0,1),t.setUTCHours(0,0,0,0),t}}]),n}(iv),av=(Math.pow(10,8),36e5),ov=/^(1[0-2]|0?\d)/,sv=/^(3[0-1]|[0-2]?\d)/,lv=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,cv=/^(5[0-3]|[0-4]?\d)/,hv=/^(2[0-3]|[0-1]?\d)/,dv=/^(2[0-4]|[0-1]?\d)/,uv=/^(1[0-1]|0?\d)/,mv=/^(1[0-2]|0?\d)/,pv=/^[0-5]?\d/,gv=/^[0-5]?\d/,fv=/^\d/,bv=/^\d{1,2}/,yv=/^\d{1,3}/,vv=/^\d{1,4}/,wv=/^-?\d+/,xv=/^-?\d/,Cv=/^-?\d{1,2}/,kv=/^-?\d{1,3}/,Sv=/^-?\d{1,4}/,Pv=/^([+-])(\d{2})(\d{2})?|Z/,_v=/^([+-])(\d{2})(\d{2})|Z/,Mv=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Dv=/^([+-])(\d{2}):(\d{2})|Z/,Ev=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function Ov(t,e){return t&&{value:e(t.value),rest:t.rest}}function Av(t,e){var n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function Tv(t,e){var n=e.match(t);if(!n)return null;if("Z"===n[0])return{value:0,rest:e.slice(1)};var i="+"===n[1]?1:-1,r=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:i*(r*av+6e4*a+1e3*o),rest:e.slice(n[0].length)}}function Iv(t){return Av(wv,t)}function Lv(t,e){switch(t){case 1:return Av(fv,e);case 2:return Av(bv,e);case 3:return Av(yv,e);case 4:return Av(vv,e);default:return Av(new RegExp("^\\d{1,"+t+"}"),e)}}function zv(t,e){switch(t){case 1:return Av(xv,e);case 2:return Av(Cv,e);case 3:return Av(kv,e);case 4:return Av(Sv,e);default:return Av(new RegExp("^-?\\d{1,"+t+"}"),e)}}function Rv(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Fv(t,e){var n,i=e>0,r=i?e:1-e;if(r<=50)n=t||100;else{var a=r+50;n=t+100*Math.floor(a/100)-(t>=a%100?100:0)}return i?n:1-n}function Bv(t){return t%400==0||t%4==0&&t%100!=0}var Vv=function(t){Wy(n,t);var e=Xy(n);function n(){var t;qy(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return Qy(Zy(t=e.call.apply(e,[this].concat(r))),"priority",130),Qy(Zy(t),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),t}return Jy(n,[{key:"parse",value:function(t,e,n){var i=function(t){return{year:t,isTwoDigitYear:"yy"===e}};switch(e){case"y":return Ov(Lv(4,t),i);case"yo":return Ov(n.ordinalNumber(t,{unit:"year"}),i);default:return Ov(Lv(e.length,t),i)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,n){var i=t.getUTCFullYear();if(n.isTwoDigitYear){var r=Fv(n.year,i);return t.setUTCFullYear(r,0,1),t.setUTCHours(0,0,0,0),t}return t.setUTCFullYear("era"in e&&1!==e.era?1-n.year:n.year,0,1),t.setUTCHours(0,0,0,0),t}}]),n}(iv),Nv=function(t){Wy(n,t);var e=Xy(n);function n(){var t;qy(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return Qy(Zy(t=e.call.apply(e,[this].concat(r))),"priority",130),Qy(Zy(t),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),t}return Jy(n,[{key:"parse",value:function(t,e,n){var i=function(t){return{year:t,isTwoDigitYear:"YY"===e}};switch(e){case"Y":return Ov(Lv(4,t),i);case"Yo":return Ov(n.ordinalNumber(t,{unit:"year"}),i);default:return Ov(Lv(e.length,t),i)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,n,i){var r=ry(t,i);if(n.isTwoDigitYear){var a=Fv(n.year,r);return t.setUTCFullYear(a,0,i.firstWeekContainsDate),t.setUTCHours(0,0,0,0),iy(t,i)}return t.setUTCFullYear("era"in e&&1!==e.era?1-n.year:n.year,0,i.firstWeekContainsDate),t.setUTCHours(0,0,0,0),iy(t,i)}}]),n}(iv),Hv=function(t){Wy(n,t);var e=Xy(n);function n(){var t;qy(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return Qy(Zy(t=e.call.apply(e,[this].concat(r))),"priority",130),Qy(Zy(t),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),t}return Jy(n,[{key:"parse",value:function(t,e){return zv("R"===e?4:e.length,t)}},{key:"set",value:function(t,e,n){var i=new Date(0);return i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0),Qb(i)}}]),n}(iv),Gv=function(t){Wy(n,t);var e=Xy(n);function n(){var t;qy(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return Qy(Zy(t=e.call.apply(e,[this].concat(r))),"priority",130),Qy(Zy(t),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),t}return Jy(n,[{key:"parse",value:function(t,e){return zv("u"===e?4:e.length,t)}},{key:"set",value:function(t,e,n){return t.setUTCFullYear(n,0,1),t.setUTCHours(0,0,0,0),t}}]),n}(iv),Zv=function(t){Wy(n,t);var e=Xy(n);function n(){var t;qy(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return Qy(Zy(t=e.call.apply(e,[this].concat(r))),"priority",120),Qy(Zy(t),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),t}return Jy(n,[{key:"parse",value:function(t,e,n){switch(e){case"Q":case"QQ":return Lv(e.length,t);case"Qo":return n.ordinalNumber(t,{unit:"quarter"});case"QQQ":return n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(t,{width:"narrow",context:"formatting"});default:return n.quarter(t,{width:"wide",context:"formatting"})||n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=1&&e<=4}},{key:"set",value:function(t,e,n){return t.setUTCMonth(3*(n-1),1),t.setUTCHours(0,0,0,0),t}}]),n}(iv),Uv=function(t){Wy(n,t);var e=Xy(n);function n(){var t;qy(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return Qy(Zy(t=e.call.apply(e,[this].concat(r))),"priority",120),Qy(Zy(t),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),t}return Jy(n,[{key:"parse",value:function(t,e,n){switch(e){case"q":case"qq":return Lv(e.length,t);case"qo":return n.ordinalNumber(t,{unit:"quarter"});case"qqq":return n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(t,{width:"narrow",context:"standalone"});default:return n.quarter(t,{width:"wide",context:"standalone"})||n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=1&&e<=4}},{key:"set",value:function(t,e,n){return t.setUTCMonth(3*(n-1),1),t.setUTCHours(0,0,0,0),t}}]),n}(iv),Wv=function(t){Wy(n,t);var e=Xy(n);function n(){var t;qy(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return Qy(Zy(t=e.call.apply(e,[this].concat(r))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Qy(Zy(t),"priority",110),t}return Jy(n,[{key:"parse",value:function(t,e,n){var i=function(t){return t-1};switch(e){case"M":return Ov(Av(ov,t),i);case"MM":return Ov(Lv(2,t),i);case"Mo":return Ov(n.ordinalNumber(t,{unit:"month"}),i);case"MMM":return n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(t,{width:"narrow",context:"formatting"});default:return n.month(t,{width:"wide",context:"formatting"})||n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,n){return t.setUTCMonth(n,1),t.setUTCHours(0,0,0,0),t}}]),n}(iv),Yv=function(t){Wy(n,t);var e=Xy(n);function n(){var t;qy(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return Qy(Zy(t=e.call.apply(e,[this].concat(r))),"priority",110),Qy(Zy(t),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),t}return Jy(n,[{key:"parse",value:function(t,e,n){var i=function(t){return t-1};switch(e){case"L":return Ov(Av(ov,t),i);case"LL":return Ov(Lv(2,t),i);case"Lo":return Ov(n.ordinalNumber(t,{unit:"month"}),i);case"LLL":return n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(t,{width:"narrow",context:"standalone"});default:return n.month(t,{width:"wide",context:"standalone"})||n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,n){return t.setUTCMonth(n,1),t.setUTCHours(0,0,0,0),t}}]),n}(iv),jv=function(t){Wy(n,t);var e=Xy(n);function n(){var t;qy(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return Qy(Zy(t=e.call.apply(e,[this].concat(r))),"priority",100),Qy(Zy(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),t}return Jy(n,[{key:"parse",value:function(t,e,n){switch(e){case"w":return Av(cv,t);case"wo":return n.ordinalNumber(t,{unit:"week"});default:return Lv(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,n,i){return iy(function(t,e,n){Nb(2,arguments);var i=Hb(t),r=Gb(e),a=oy(i,n)-r;return i.setUTCDate(i.getUTCDate()-7*a),i}(t,n,i),i)}}]),n}(iv),Xv=function(t){Wy(n,t);var e=Xy(n);function n(){var t;qy(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return Qy(Zy(t=e.call.apply(e,[this].concat(r))),"priority",100),Qy(Zy(t),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),t}return Jy(n,[{key:"parse",value:function(t,e,n){switch(e){case"I":return Av(cv,t);case"Io":return n.ordinalNumber(t,{unit:"week"});default:return Lv(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,n){return Qb(function(t,e){Nb(2,arguments);var n=Hb(t),i=Gb(e),r=ny(n)-i;return n.setUTCDate(n.getUTCDate()-7*r),n}(t,n))}}]),n}(iv),qv=[31,28,31,30,31,30,31,31,30,31,30,31],$v=[31,29,31,30,31,30,31,31,30,31,30,31],Kv=function(t){Wy(n,t);var e=Xy(n);function n(){var t;qy(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return Qy(Zy(t=e.call.apply(e,[this].concat(r))),"priority",90),Qy(Zy(t),"subPriority",1),Qy(Zy(t),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),t}return Jy(n,[{key:"parse",value:function(t,e,n){switch(e){case"d":return Av(sv,t);case"do":return n.ordinalNumber(t,{unit:"date"});default:return Lv(e.length,t)}}},{key:"validate",value:function(t,e){var n=Bv(t.getUTCFullYear()),i=t.getUTCMonth();return n?e>=1&&e<=$v[i]:e>=1&&e<=qv[i]}},{key:"set",value:function(t,e,n){return t.setUTCDate(n),t.setUTCHours(0,0,0,0),t}}]),n}(iv),Jv=function(t){Wy(n,t);var e=Xy(n);function n(){var t;qy(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return Qy(Zy(t=e.call.apply(e,[this].concat(r))),"priority",90),Qy(Zy(t),"subpriority",1),Qy(Zy(t),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),t}return Jy(n,[{key:"parse",value:function(t,e,n){switch(e){case"D":case"DD":return Av(lv,t);case"Do":return n.ordinalNumber(t,{unit:"date"});default:return Lv(e.length,t)}}},{key:"validate",value:function(t,e){return Bv(t.getUTCFullYear())?e>=1&&e<=366:e>=1&&e<=365}},{key:"set",value:function(t,e,n){return t.setUTCMonth(0,n),t.setUTCHours(0,0,0,0),t}}]),n}(iv);function Qv(t,e,n){var i,r,a,o,s,l,c,h;Nb(2,arguments);var d=Ub(),u=Gb(null!==(i=null!==(r=null!==(a=null!==(o=null==n?void 0:n.weekStartsOn)&&void 0!==o?o:null==n||null===(s=n.locale)||void 0===s||null===(l=s.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==a?a:d.weekStartsOn)&&void 0!==r?r:null===(c=d.locale)||void 0===c||null===(h=c.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==i?i:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=Hb(t),p=Gb(e),g=m.getUTCDay(),f=p%7,b=(f+7)%7,y=(b<u?7:0)+p-g;return m.setUTCDate(m.getUTCDate()+y),m}var tw=function(t){Wy(n,t);var e=Xy(n);function n(){var t;qy(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return Qy(Zy(t=e.call.apply(e,[this].concat(r))),"priority",90),Qy(Zy(t),"incompatibleTokens",["D","i","e","c","t","T"]),t}return Jy(n,[{key:"parse",value:function(t,e,n){switch(e){case"E":case"EE":case"EEE":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,n,i){return(t=Qv(t,n,i)).setUTCHours(0,0,0,0),t}}]),n}(iv),ew=function(t){Wy(n,t);var e=Xy(n);function n(){var t;qy(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return Qy(Zy(t=e.call.apply(e,[this].concat(r))),"priority",90),Qy(Zy(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),t}return Jy(n,[{key:"parse",value:function(t,e,n,i){var r=function(t){var e=7*Math.floor((t-1)/7);return(t+i.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return Ov(Lv(e.length,t),r);case"eo":return Ov(n.ordinalNumber(t,{unit:"day"}),r);case"eee":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeeee":return n.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,n,i){return(t=Qv(t,n,i)).setUTCHours(0,0,0,0),t}}]),n}(iv),nw=function(t){Wy(n,t);var e=Xy(n);function n(){var t;qy(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return Qy(Zy(t=e.call.apply(e,[this].concat(r))),"priority",90),Qy(Zy(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),t}return Jy(n,[{key:"parse",value:function(t,e,n,i){var r=function(t){var e=7*Math.floor((t-1)/7);return(t+i.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return Ov(Lv(e.length,t),r);case"co":return Ov(n.ordinalNumber(t,{unit:"day"}),r);case"ccc":return n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"ccccc":return n.day(t,{width:"narrow",context:"standalone"});case"cccccc":return n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});default:return n.day(t,{width:"wide",context:"standalone"})||n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,n,i){return(t=Qv(t,n,i)).setUTCHours(0,0,0,0),t}}]),n}(iv),iw=function(t){Wy(n,t);var e=Xy(n);function n(){var t;qy(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return Qy(Zy(t=e.call.apply(e,[this].concat(r))),"priority",90),Qy(Zy(t),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),t}return Jy(n,[{key:"parse",value:function(t,e,n){var i=function(t){return 0===t?7:t};switch(e){case"i":case"ii":return Lv(e.length,t);case"io":return n.ordinalNumber(t,{unit:"day"});case"iii":return Ov(n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),i);case"iiiii":return Ov(n.day(t,{width:"narrow",context:"formatting"}),i);case"iiiiii":return Ov(n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),i);default:return Ov(n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),i)}}},{key:"validate",value:function(t,e){return e>=1&&e<=7}},{key:"set",value:function(t,e,n){return t=function(t,e){Nb(2,arguments);var n=Gb(e);n%7==0&&(n-=7);var i=1,r=Hb(t),a=r.getUTCDay(),o=((n%7+7)%7<i?7:0)+n-a;return r.setUTCDate(r.getUTCDate()+o),r}(t,n),t.setUTCHours(0,0,0,0),t}}]),n}(iv),rw=function(t){Wy(n,t);var e=Xy(n);function n(){var t;qy(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return Qy(Zy(t=e.call.apply(e,[this].concat(r))),"priority",80),Qy(Zy(t),"incompatibleTokens",["b","B","H","k","t","T"]),t}return Jy(n,[{key:"parse",value:function(t,e,n){switch(e){case"a":case"aa":case"aaa":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(t,{width:"narrow",context:"formatting"});default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,n){return t.setUTCHours(Rv(n),0,0,0),t}}]),n}(iv),aw=function(t){Wy(n,t);var e=Xy(n);function n(){var t;qy(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return Qy(Zy(t=e.call.apply(e,[this].concat(r))),"priority",80),Qy(Zy(t),"incompatibleTokens",["a","B","H","k","t","T"]),t}return Jy(n,[{key:"parse",value:function(t,e,n){switch(e){case"b":case"bb":case"bbb":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(t,{width:"narrow",context:"formatting"});default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,n){return t.setUTCHours(Rv(n),0,0,0),t}}]),n}(iv),ow=function(t){Wy(n,t);var e=Xy(n);function n(){var t;qy(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return Qy(Zy(t=e.call.apply(e,[this].concat(r))),"priority",80),Qy(Zy(t),"incompatibleTokens",["a","b","t","T"]),t}return Jy(n,[{key:"parse",value:function(t,e,n){switch(e){case"B":case"BB":case"BBB":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(t,{width:"narrow",context:"formatting"});default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,n){return t.setUTCHours(Rv(n),0,0,0),t}}]),n}(iv),sw=function(t){Wy(n,t);var e=Xy(n);function n(){var t;qy(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return Qy(Zy(t=e.call.apply(e,[this].concat(r))),"priority",70),Qy(Zy(t),"incompatibleTokens",["H","K","k","t","T"]),t}return Jy(n,[{key:"parse",value:function(t,e,n){switch(e){case"h":return Av(mv,t);case"ho":return n.ordinalNumber(t,{unit:"hour"});default:return Lv(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=12}},{key:"set",value:function(t,e,n){var i=t.getUTCHours()>=12;return t.setUTCHours(i&&n<12?n+12:i||12!==n?n:0,0,0,0),t}}]),n}(iv),lw=function(t){Wy(n,t);var e=Xy(n);function n(){var t;qy(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return Qy(Zy(t=e.call.apply(e,[this].concat(r))),"priority",70),Qy(Zy(t),"incompatibleTokens",["a","b","h","K","k","t","T"]),t}return Jy(n,[{key:"parse",value:function(t,e,n){switch(e){case"H":return Av(hv,t);case"Ho":return n.ordinalNumber(t,{unit:"hour"});default:return Lv(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=23}},{key:"set",value:function(t,e,n){return t.setUTCHours(n,0,0,0),t}}]),n}(iv),cw=function(t){Wy(n,t);var e=Xy(n);function n(){var t;qy(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return Qy(Zy(t=e.call.apply(e,[this].concat(r))),"priority",70),Qy(Zy(t),"incompatibleTokens",["h","H","k","t","T"]),t}return Jy(n,[{key:"parse",value:function(t,e,n){switch(e){case"K":return Av(uv,t);case"Ko":return n.ordinalNumber(t,{unit:"hour"});default:return Lv(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,n){var i=t.getUTCHours()>=12;return t.setUTCHours(i&&n<12?n+12:n,0,0,0),t}}]),n}(iv),hw=function(t){Wy(n,t);var e=Xy(n);function n(){var t;qy(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return Qy(Zy(t=e.call.apply(e,[this].concat(r))),"priority",70),Qy(Zy(t),"incompatibleTokens",["a","b","h","H","K","t","T"]),t}return Jy(n,[{key:"parse",value:function(t,e,n){switch(e){case"k":return Av(dv,t);case"ko":return n.ordinalNumber(t,{unit:"hour"});default:return Lv(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=24}},{key:"set",value:function(t,e,n){return t.setUTCHours(n<=24?n%24:n,0,0,0),t}}]),n}(iv),dw=function(t){Wy(n,t);var e=Xy(n);function n(){var t;qy(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return Qy(Zy(t=e.call.apply(e,[this].concat(r))),"priority",60),Qy(Zy(t),"incompatibleTokens",["t","T"]),t}return Jy(n,[{key:"parse",value:function(t,e,n){switch(e){case"m":return Av(pv,t);case"mo":return n.ordinalNumber(t,{unit:"minute"});default:return Lv(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=59}},{key:"set",value:function(t,e,n){return t.setUTCMinutes(n,0,0),t}}]),n}(iv),uw=function(t){Wy(n,t);var e=Xy(n);function n(){var t;qy(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return Qy(Zy(t=e.call.apply(e,[this].concat(r))),"priority",50),Qy(Zy(t),"incompatibleTokens",["t","T"]),t}return Jy(n,[{key:"parse",value:function(t,e,n){switch(e){case"s":return Av(gv,t);case"so":return n.ordinalNumber(t,{unit:"second"});default:return Lv(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=59}},{key:"set",value:function(t,e,n){return t.setUTCSeconds(n,0),t}}]),n}(iv),mw=function(t){Wy(n,t);var e=Xy(n);function n(){var t;qy(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return Qy(Zy(t=e.call.apply(e,[this].concat(r))),"priority",30),Qy(Zy(t),"incompatibleTokens",["t","T"]),t}return Jy(n,[{key:"parse",value:function(t,e){return Ov(Lv(e.length,t),(function(t){return Math.floor(t*Math.pow(10,3-e.length))}))}},{key:"set",value:function(t,e,n){return t.setUTCMilliseconds(n),t}}]),n}(iv),pw=function(t){Wy(n,t);var e=Xy(n);function n(){var t;qy(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return Qy(Zy(t=e.call.apply(e,[this].concat(r))),"priority",10),Qy(Zy(t),"incompatibleTokens",["t","T","x"]),t}return Jy(n,[{key:"parse",value:function(t,e){switch(e){case"X":return Tv(Pv,t);case"XX":return Tv(_v,t);case"XXXX":return Tv(Mv,t);case"XXXXX":return Tv(Ev,t);default:return Tv(Dv,t)}}},{key:"set",value:function(t,e,n){return e.timestampIsSet?t:new Date(t.getTime()-n)}}]),n}(iv),gw=function(t){Wy(n,t);var e=Xy(n);function n(){var t;qy(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return Qy(Zy(t=e.call.apply(e,[this].concat(r))),"priority",10),Qy(Zy(t),"incompatibleTokens",["t","T","X"]),t}return Jy(n,[{key:"parse",value:function(t,e){switch(e){case"x":return Tv(Pv,t);case"xx":return Tv(_v,t);case"xxxx":return Tv(Mv,t);case"xxxxx":return Tv(Ev,t);default:return Tv(Dv,t)}}},{key:"set",value:function(t,e,n){return e.timestampIsSet?t:new Date(t.getTime()-n)}}]),n}(iv),fw=function(t){Wy(n,t);var e=Xy(n);function n(){var t;qy(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return Qy(Zy(t=e.call.apply(e,[this].concat(r))),"priority",40),Qy(Zy(t),"incompatibleTokens","*"),t}return Jy(n,[{key:"parse",value:function(t){return Iv(t)}},{key:"set",value:function(t,e,n){return[new Date(1e3*n),{timestampIsSet:!0}]}}]),n}(iv),bw=function(t){Wy(n,t);var e=Xy(n);function n(){var t;qy(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return Qy(Zy(t=e.call.apply(e,[this].concat(r))),"priority",20),Qy(Zy(t),"incompatibleTokens","*"),t}return Jy(n,[{key:"parse",value:function(t){return Iv(t)}},{key:"set",value:function(t,e,n){return[new Date(n),{timestampIsSet:!0}]}}]),n}(iv),yw={G:new rv,y:new Vv,Y:new Nv,R:new Hv,u:new Gv,Q:new Zv,q:new Uv,M:new Wv,L:new Yv,w:new jv,I:new Xv,d:new Kv,D:new Jv,E:new tw,e:new ew,c:new nw,i:new iw,a:new rw,b:new aw,B:new ow,h:new sw,H:new lw,K:new cw,k:new hw,m:new dw,s:new uw,S:new mw,X:new pw,x:new gw,t:new fw,T:new bw},vw=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ww=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,xw=/^'([^]*?)'?$/,Cw=/''/g,kw=/\S/,Sw=/[a-zA-Z]/;function Pw(t){return t.match(xw)[1].replace(Cw,"'")}function _w(t,e){Nb(2,arguments);var n=Hb(t),i=Gb(e);if(isNaN(i))return new Date(NaN);if(!i)return n;var r=n.getDate(),a=new Date(n.getTime());a.setMonth(n.getMonth()+i+1,0);var o=a.getDate();return r>=o?a:(n.setFullYear(a.getFullYear(),a.getMonth(),r),n)}function Mw(t){Nb(1,arguments);var e=Hb(t),n=e.getFullYear(),i=e.getMonth(),r=new Date(0);return r.setFullYear(n,i+1,0),r.setHours(0,0,0,0),r.getDate()}function Dw(t,e){Nb(2,arguments);var n=Hb(t),i=Gb(e);return isNaN(i)?new Date(NaN):(i&&n.setDate(n.getDate()+i),n)}function Ew(t,e){Nb(2,arguments);var n=Hb(t),i=Hb(e);return n.getFullYear()===i.getFullYear()}function Ow(t,e){Nb(2,arguments);var n=Hb(t),i=Hb(e);return n.getFullYear()===i.getFullYear()&&n.getMonth()===i.getMonth()}function Aw(t){Nb(1,arguments);var e=Hb(t);return e.setHours(0,0,0,0),e}function Tw(t,e){Nb(2,arguments);var n=Aw(t),i=Aw(e);return n.getTime()===i.getTime()}function Iw(t){Nb(1,arguments);var e=Hb(t);return e.setMinutes(0,0,0),e}function Lw(t,e){Nb(2,arguments);var n=Iw(t),i=Iw(e);return n.getTime()===i.getTime()}function zw(t){Nb(1,arguments);var e=Hb(t);return e.setSeconds(0,0),e}function Rw(t,e){Nb(2,arguments);var n=zw(t),i=zw(e);return n.getTime()===i.getTime()}function Fw(t){Nb(1,arguments);var e=Hb(t);return e.setMilliseconds(0),e}function Bw(t,e){Nb(2,arguments);var n=Fw(t),i=Fw(e);return n.getTime()===i.getTime()}function Vw(t,e){Nb(2,arguments);var n=Hb(t),i=Hb(e);return n.getFullYear()-i.getFullYear()}function Nw(t,e){Nb(2,arguments);var n=Hb(t),i=Hb(e),r=n.getFullYear()-i.getFullYear(),a=n.getMonth()-i.getMonth();return 12*r+a}function Hw(t,e){Nb(2,arguments);var n=Aw(t),i=Aw(e),r=n.getTime()-fy(n),a=i.getTime()-fy(i);return Math.round((r-a)/864e5)}function Gw(t,e){return Nb(2,arguments),Hb(t).getTime()-Hb(e).getTime()}var Zw={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}};function Uw(t){return t?Zw[t]:Zw.trunc}function Ww(t,e,n){Nb(2,arguments);var i=Gw(t,e)/av;return Uw(null==n?void 0:n.roundingMethod)(i)}function Yw(t,e,n){Nb(2,arguments);var i=Gw(t,e)/6e4;return Uw(null==n?void 0:n.roundingMethod)(i)}function jw(t,e,n){Nb(2,arguments);var i=Gw(t,e)/1e3;return Uw(null==n?void 0:n.roundingMethod)(i)}function Xw(t){Nb(1,arguments);var e=Hb(t);return e.setHours(23,59,59,999),e}function qw(t){Nb(1,arguments);var e=Hb(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(23,59,59,999),e}function $w(t){return null!=t&&"false"!=""+t}function Kw(t,e=0){return Jw(t)?Number(t):e}function Jw(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Qw(t){return Array.isArray(t)?t:[t]}function tx(t){return null==t?"":"string"==typeof t?t:t+"px"}function ex(t){return t instanceof bl?t.nativeElement:t}function nx(t){return!!t&&(t instanceof _||"function"==typeof t.lift&&"function"==typeof t.subscribe)}function ix(t){return null!=t}function rx(t){return null==t}function ax(t){return"string"==typeof t&&""!==t}function ox(t){return t instanceof jl}function sx(t){return $w(t)}function lx(t,...e){return"function"==typeof t?t(...e):t}function cx(t,e){return function(n,i,r){const a="$$__zorroPropDecorator__"+i;return Object.prototype.hasOwnProperty.call(n,a)&&Bb('The prop "'+a+'" is already exist, it will be overrided by '+t+" decorator."),Object.defineProperty(n,a,{configurable:!0,writable:!0}),{get(){return r&&r.get?r.get.bind(this)():this[a]},set(t){r&&r.set&&r.set.bind(this)(e(t)),this[a]=e(t)}}}}function hx(){return cx("InputBoolean",sx)}function dx(t){return cx("InputNumber",(e=>function(t,e=0){return Jw(t)?Number(t):e}(e,t)))}function ux(t){t.stopPropagation(),t.preventDefault()}function mx(t){if(!t.getClientRects().length)return{top:0,left:0};const e=t.getBoundingClientRect(),n=t.ownerDocument.defaultView;return{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}}function px(t){return!!t&&"function"==typeof t.then&&"function"==typeof t.catch}function gx(t,e,n){return isNaN(t)||t<e?e:t>n?n:t}function fx(t){return"number"==typeof t&&isFinite(t)}function bx(t,e){return Math.round(t*Math.pow(10,e))/Math.pow(10,e)}function yx(t){const[e,n]=t;return!!e&&!!n&&n.isBeforeDay(e)}function vx(t){return Array.isArray(t)?t.map((t=>t instanceof xx?t.clone():null)):t instanceof xx?t.clone():null}"undefined"!=typeof window&&window;class xx{constructor(t){if(t)if(t instanceof Date)this.nativeDate=t;else{if("string"!=typeof t&&"number"!=typeof t)throw new Error('The input date type is not supported ("Date" is now recommended)');Bb('The string type is not recommended for date-picker, use "Date" type'),this.nativeDate=new Date(t)}else this.nativeDate=new Date}calendarStart(t){return new xx(Wb(function(t){Nb(1,arguments);var e=Hb(t);return e.setDate(1),e.setHours(0,0,0,0),e}(this.nativeDate),t))}getYear(){return this.nativeDate.getFullYear()}getMonth(){return this.nativeDate.getMonth()}getDay(){return this.nativeDate.getDay()}getTime(){return this.nativeDate.getTime()}getDate(){return this.nativeDate.getDate()}getHours(){return this.nativeDate.getHours()}getMinutes(){return this.nativeDate.getMinutes()}getSeconds(){return this.nativeDate.getSeconds()}getMilliseconds(){return this.nativeDate.getMilliseconds()}clone(){return new xx(new Date(this.nativeDate))}setHms(t,e,n){const i=new Date(this.nativeDate.setHours(t,e,n));return new xx(i)}setYear(t){return new xx(function(t,e){Nb(2,arguments);var n=Hb(t),i=Gb(e);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(i),n)}(this.nativeDate,t))}addYears(t){return new xx(function(t,e){Nb(2,arguments);var n=Gb(e);return _w(t,12*n)}(this.nativeDate,t))}setMonth(t){return new xx(function(t,e){Nb(2,arguments);var n=Hb(t),i=Gb(e),r=n.getFullYear(),a=n.getDate(),o=new Date(0);o.setFullYear(r,i,15),o.setHours(0,0,0,0);var s=Mw(o);return n.setMonth(i,Math.min(a,s)),n}(this.nativeDate,t))}addMonths(t){return new xx(_w(this.nativeDate,t))}setDay(t,e){return new xx(function(t,e,n){var i,r,a,o,s,l,c,h;Nb(2,arguments);var d=Ub(),u=Gb(null!==(i=null!==(r=null!==(a=null!==(o=null==n?void 0:n.weekStartsOn)&&void 0!==o?o:null==n||null===(s=n.locale)||void 0===s||null===(l=s.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==a?a:d.weekStartsOn)&&void 0!==r?r:null===(c=d.locale)||void 0===c||null===(h=c.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==i?i:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=Hb(t),p=Gb(e),g=m.getDay(),f=(p%7+7)%7,b=7-u;return Dw(m,p<0||p>6?p-(g+b)%7:(f+b)%7-(g+b)%7)}(this.nativeDate,t,e))}setDate(t){const e=new Date(this.nativeDate);return e.setDate(t),new xx(e)}addDays(t){return this.setDate(this.getDate()+t)}add(t,e){switch(e){case"decade":return this.addYears(10*t);case"year":return this.addYears(t);default:return this.addMonths(t)}}isSame(t,e="day"){let n;switch(e){case"decade":n=(t,e)=>Math.abs(t.getFullYear()-e.getFullYear())<11;break;case"year":n=Ew;break;case"month":n=Ow;break;case"day":default:n=Tw;break;case"hour":n=Lw;break;case"minute":n=Rw;break;case"second":n=Bw}return n(this.nativeDate,this.toNativeDate(t))}isSameYear(t){return this.isSame(t,"year")}isSameMonth(t){return this.isSame(t,"month")}isSameDay(t){return this.isSame(t,"day")}isSameHour(t){return this.isSame(t,"hour")}isSameMinute(t){return this.isSame(t,"minute")}isSameSecond(t){return this.isSame(t,"second")}isBefore(t,e="day"){if(null===t)return!1;let n;switch(e){case"year":n=Vw;break;case"month":n=Nw;break;case"day":default:n=Hw;break;case"hour":n=Ww;break;case"minute":n=Yw;break;case"second":n=jw}return n(this.nativeDate,this.toNativeDate(t))<0}isBeforeYear(t){return this.isBefore(t,"year")}isBeforeMonth(t){return this.isBefore(t,"month")}isBeforeDay(t){return this.isBefore(t,"day")}isToday(){return function(t){return Nb(1,arguments),Tw(t,Date.now())}(this.nativeDate)}isValid(){return $b(this.nativeDate)}isFirstDayOfMonth(){return function(t){return Nb(1,arguments),1===Hb(t).getDate()}(this.nativeDate)}isLastDayOfMonth(){return function(t){Nb(1,arguments);var e=Hb(t);return Xw(e).getTime()===qw(e).getTime()}(this.nativeDate)}toNativeDate(t){return t instanceof xx?t.nativeDate:t}}class Cx{constructor(t,e){this.format=t,this.localeId=e,this.regex=null,this.matchMap={hour:null,minute:null,second:null,periodNarrow:null,periodWide:null,periodAbbreviated:null},this.genRegexp()}toDate(t){const e=this.getTimeResult(t),n=new Date;return ix(null==e?void 0:e.hour)&&n.setHours(e.hour),ix(null==e?void 0:e.minute)&&n.setMinutes(e.minute),ix(null==e?void 0:e.second)&&n.setSeconds(e.second),1===(null==e?void 0:e.period)&&n.getHours()<12&&n.setHours(n.getHours()+12),n}getTimeResult(t){const e=this.regex.exec(t);let n=null;return e?(ix(this.matchMap.periodNarrow)&&(n=cd(this.localeId,ad.Format,od.Narrow).indexOf(e[this.matchMap.periodNarrow+1])),ix(this.matchMap.periodWide)&&(n=cd(this.localeId,ad.Format,od.Wide).indexOf(e[this.matchMap.periodWide+1])),ix(this.matchMap.periodAbbreviated)&&(n=cd(this.localeId,ad.Format,od.Abbreviated).indexOf(e[this.matchMap.periodAbbreviated+1])),{hour:ix(this.matchMap.hour)?Number.parseInt(e[this.matchMap.hour+1],10):null,minute:ix(this.matchMap.minute)?Number.parseInt(e[this.matchMap.minute+1],10):null,second:ix(this.matchMap.second)?Number.parseInt(e[this.matchMap.second+1],10):null,period:n}):null}genRegexp(){let t=this.format.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$&");const e=/h{1,2}/i,n=/m{1,2}/,i=/s{1,2}/,r=/aaaaa/,a=/aaaa/,o=/a{1,3}/,s=e.exec(this.format),l=n.exec(this.format),c=i.exec(this.format),h=r.exec(this.format);let d=null,u=null;h||(d=a.exec(this.format)),!d&&!h&&(u=o.exec(this.format)),[s,l,c,h,d,u].filter((t=>!!t)).sort(((t,e)=>t.index-e.index)).forEach(((m,p)=>{switch(m){case s:this.matchMap.hour=p,t=t.replace(e,"(\\d{1,2})");break;case l:this.matchMap.minute=p,t=t.replace(n,"(\\d{1,2})");break;case c:this.matchMap.second=p,t=t.replace(i,"(\\d{1,2})");break;case h:this.matchMap.periodNarrow=p;const m=cd(this.localeId,ad.Format,od.Narrow).join("|");t=t.replace(r,"("+m+")");break;case d:this.matchMap.periodWide=p;const g=cd(this.localeId,ad.Format,od.Wide).join("|");t=t.replace(a,"("+g+")");break;case u:this.matchMap.periodAbbreviated=p;const f=cd(this.localeId,ad.Format,od.Abbreviated).join("|");t=t.replace(o,"("+f+")")}})),this.regex=new RegExp(t)}}var kx={locale:"en",Pagination:{items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"},DatePicker:{lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},timePickerLocale:{placeholder:"Select time",rangePlaceholder:["Start time","End time"]}},TimePicker:{placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Calendar:{lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},timePickerLocale:{placeholder:"Select time",rangePlaceholder:["Start time","End time"]}},global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click sort by descend",triggerAsc:"Click sort by ascend",cancelSort:"Click to cancel sort"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"}},Sx={locale:"zh-cn",Pagination:{items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页"},DatePicker:{lang:{placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeWeekPlaceholder:["开始周","结束周"],locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH时mm分ss秒",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"},timePickerLocale:{placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]}},TimePicker:{placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},Calendar:{lang:{placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeWeekPlaceholder:["开始周","结束周"],locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH时mm分ss秒",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"},timePickerLocale:{placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]}},global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",selectAll:"全选当页",selectInvert:"反选当页",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开"},PageHeader:{back:"返回"}};const Px=new ni("nz-i18n"),_x=new ni("nz-date-locale");let Mx=(()=>{class t{constructor(t,e){this._change=new Lb(this._locale),this.setLocale(t||Sx),this.setDateLocale(e||null)}get localeChange(){return this._change.asObservable()}translate(t,e){let n=this._getObjectPath(this._locale,t);return"string"==typeof n?(e&&Object.keys(e).forEach((t=>n=n.replace(new RegExp("%"+t+"%","g"),e[t]))),n):t}setLocale(t){this._locale&&this._locale.locale===t.locale||(this._locale=t,this._change.next(t))}getLocale(){return this._locale}getLocaleId(){return this._locale?this._locale.locale:""}setDateLocale(t){this.dateLocale=t}getDateLocale(){return this.dateLocale}getLocaleData(t,e){const n=t?this._getObjectPath(this._locale,t):this._locale;return!n&&!e&&Bb('Missing translations for "'+t+'" in language "'+this._locale.locale+'".\nYou can use "NzI18nService.setLocale" as a temporary fix.\nWelcome to submit a pull request to help us optimize the translations!\nhttps://github.com/NG-ZORRO/ng-zorro-antd/blob/master/CONTRIBUTING.md'),n||e||this._getObjectPath(kx,t)||{}}_getObjectPath(t,e){let n=t;const i=e.split("."),r=i.length;let a=0;for(;n&&a<r;)n=n[i[a++]];return a===r?n:null}}return t["ɵfac"]=function(e){return new(e||t)(wi(Px,8),wi(_x,8))},t["ɵprov"]=vt({factory:function(){return new t(wi(Px,8),wi(_x,8))},token:t,providedIn:"root"}),t})(),Dx=(()=>{class t{constructor(t){this._locale=t}transform(t,e){return this._locale.translate(t,e)}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Mx,16))},t["ɵpipe"]=ie({name:"nzI18n",type:t,pure:!0}),t})(),Ex=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({}),t})();const Ox=new ni("date-config"),Ax={firstDayOfWeek:void 0};function Tx(t,e){const n=t.get(Mx);return n.getDateLocale()?new Lx(n,e):new zx(n,e)}let Ix=(()=>{class t{constructor(t,e){var n;this.i18n=t,this.config=e,this.config=(n=this.config,Object.assign(Object.assign({},Ax),n))}}return t["ɵfac"]=function(e){return new(e||t)(wi(Mx),wi(Ox,8))},t["ɵprov"]=vt({factory:function(){return Tx(wi(ro),wi(Ox,8))},token:t,providedIn:"root"}),t})(),Lx=(()=>{class t extends Ix{getISOWeek(t){return function(t){Nb(1,arguments);var e=Hb(t),n=Yb(e).getTime()-Xb(e).getTime();return Math.round(n/6048e5)+1}(t)}getFirstDayOfWeek(){let t;try{t=this.i18n.getDateLocale().options.weekStartsOn}catch(e){t=1}return null==this.config.firstDayOfWeek?t:this.config.firstDayOfWeek}format(t,e){return t?function(t,e,n){var i,r,a,o,s,l,c,h,d,u,m,p,g,f,b,y,v,w;Nb(2,arguments);var x=String(e),C=Ub(),k=null!==(i=null!==(r=null==n?void 0:n.locale)&&void 0!==r?r:C.locale)&&void 0!==i?i:Iy,S=Gb(null!==(a=null!==(o=null!==(s=null!==(l=null==n?void 0:n.firstWeekContainsDate)&&void 0!==l?l:null==n||null===(c=n.locale)||void 0===c||null===(h=c.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==s?s:C.firstWeekContainsDate)&&void 0!==o?o:null===(d=C.locale)||void 0===d||null===(u=d.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==a?a:1);if(!(S>=1&&S<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=Gb(null!==(m=null!==(p=null!==(g=null!==(f=null==n?void 0:n.weekStartsOn)&&void 0!==f?f:null==n||null===(b=n.locale)||void 0===b||null===(y=b.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==g?g:C.weekStartsOn)&&void 0!==p?p:null===(v=C.locale)||void 0===v||null===(w=v.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==m?m:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!k.localize)throw new RangeError("locale must contain localize property");if(!k.formatLong)throw new RangeError("locale must contain formatLong property");var _=Hb(t);if(!$b(_))throw new RangeError("Invalid time value");var M=fy(_),D=Jb(_,M),E={firstWeekContainsDate:S,weekStartsOn:P,locale:k,_originalDate:_};return x.match(zy).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,gy[e])(t,k.formatLong):t})).join("").match(Ly).map((function(i){if("''"===i)return"'";var r=i[0];if("'"===r)return Vy(i);var a=uy[r];if(a)return!(null!=n&&n.useAdditionalWeekYearTokens)&&wy(i)&&xy(i,e,String(t)),!(null!=n&&n.useAdditionalDayOfYearTokens)&&vy(i)&&xy(i,e,String(t)),a(D,i,k.localize,E);if(r.match(By))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return i})).join("")}(t,e,{locale:this.i18n.getDateLocale()}):""}parseDate(t,e){return function(t,e,n,i){var r,a,o,s,l,c,h,d,u,m,p,g,f,b,y,v,w,x;Nb(3,arguments);var C=String(t),k=String(e),S=Ub(),P=null!==(r=null!==(a=null==i?void 0:i.locale)&&void 0!==a?a:S.locale)&&void 0!==r?r:Iy;if(!P.match)throw new RangeError("locale must contain match property");var _=Gb(null!==(o=null!==(s=null!==(l=null!==(c=null==i?void 0:i.firstWeekContainsDate)&&void 0!==c?c:null==i||null===(h=i.locale)||void 0===h||null===(d=h.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==l?l:S.firstWeekContainsDate)&&void 0!==s?s:null===(u=S.locale)||void 0===u||null===(m=u.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==o?o:1);if(!(_>=1&&_<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=Gb(null!==(p=null!==(g=null!==(f=null!==(b=null==i?void 0:i.weekStartsOn)&&void 0!==b?b:null==i||null===(y=i.locale)||void 0===y||null===(v=y.options)||void 0===v?void 0:v.weekStartsOn)&&void 0!==f?f:S.weekStartsOn)&&void 0!==g?g:null===(w=S.locale)||void 0===w||null===(x=w.options)||void 0===x?void 0:x.weekStartsOn)&&void 0!==p?p:0);if(!(M>=0&&M<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===k)return""===C?Hb(n):new Date(NaN);var D,E={firstWeekContainsDate:_,weekStartsOn:M,locale:P},O=[new nv],A=k.match(ww).map((function(t){var e=t[0];return e in gy?(0,gy[e])(t,P.formatLong):t})).join("").match(vw),T=[],I=Hy(A);try{var L=function(){var e=D.value;!(null!=i&&i.useAdditionalWeekYearTokens)&&wy(e)&&xy(e,k,t),(null==i||!i.useAdditionalDayOfYearTokens)&&vy(e)&&xy(e,k,t);var n=e[0],r=yw[n];if(r){var a=r.incompatibleTokens;if(Array.isArray(a)){var o=T.find((function(t){return a.includes(t.token)||t.token===n}));if(o)throw new RangeError("The format string mustn't contain `".concat(o.fullToken,"` and `").concat(e,"` at the same time"))}else if("*"===r.incompatibleTokens&&T.length>0)throw new RangeError("The format string mustn't contain `".concat(e,"` and any other token at the same time"));T.push({token:n,fullToken:e});var s=r.run(C,e,P.match,E);if(!s)return{v:new Date(NaN)};O.push(s.setter),C=s.rest}else{if(n.match(Sw))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===e?e="'":"'"===n&&(e=Pw(e)),0!==C.indexOf(e))return{v:new Date(NaN)};C=C.slice(e.length)}};for(I.s();!(D=I.n()).done;){var z=L();if("object"===Vb(z))return z.v}}catch(t){I.e(t)}finally{I.f()}if(C.length>0&&kw.test(C))return new Date(NaN);var R=O.map((function(t){return t.priority})).sort((function(t,e){return e-t})).filter((function(t,e,n){return n.indexOf(t)===e})).map((function(t){return O.filter((function(e){return e.priority===t})).sort((function(t,e){return e.subPriority-t.subPriority}))})).map((function(t){return t[0]})),F=Hb(n);if(isNaN(F.getTime()))return new Date(NaN);var B,V=Jb(F,fy(F)),N={},H=Hy(R);try{for(H.s();!(B=H.n()).done;){var G=B.value;if(!G.validate(V,E))return new Date(NaN);var Z=G.set(V,N,E);Array.isArray(Z)?(V=Z[0],Gy(N,Z[1])):V=Z}}catch(t){H.e(t)}finally{H.f()}return V}(t,e,new Date,{locale:this.i18n.getDateLocale(),weekStartsOn:this.getFirstDayOfWeek()})}parseTime(t,e){return this.parseDate(t,e)}}return t["ɵprov"]=vt({factory:function(){return Tx(wi(ro),wi(Ox,8))},token:t,providedIn:"root"}),t})(),zx=(()=>{class t extends Ix{getISOWeek(t){return+this.format(t,"w")}getFirstDayOfWeek(){if(void 0===this.config.firstDayOfWeek){const t=this.i18n.getLocaleId();return t&&["zh-cn","zh-tw"].indexOf(t.toLowerCase())>-1?1:0}return this.config.firstDayOfWeek}format(t,e){return t?kd(t,e,this.i18n.getLocaleId()):""}parseDate(t){return new Date(t)}parseTime(t,e){return new Cx(e,this.i18n.getLocaleId()).toDate(t)}}return t["ɵprov"]=vt({factory:function(){return Tx(wi(ro),wi(Ox,8))},token:t,providedIn:"root"}),t})();const Rx=new ni("cdk-dir-doc",{providedIn:"root",factory:function(){return xi(Hh)}});let Fx=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new Dc,t){const e=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||e;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return t["ɵfac"]=function(e){return new(e||t)(wi(Rx,8))},t["ɵprov"]=vt({factory:function(){return new t(wi(Rx,8))},token:t,providedIn:"root"}),t})(),Bx=(()=>{class t{constructor(){this._dir="ltr",this._isInitialized=!1,this.change=new Dc}get dir(){return this._dir}set dir(t){const e=this._dir,n=t&&t.toLowerCase();this._rawDir=t,this._dir="ltr"===n||"rtl"===n?n:"ltr",e!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}get value(){return this.dir}ngAfterContentInit(){this._isInitialized=!0}ngOnDestroy(){this.change.complete()}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵdir"]=ne({type:t,selectors:[["","dir",""]],hostVars:1,hostBindings:function(t,e){2&t&&Fo("dir",e._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[hl([{provide:Fx,useExisting:t}])]}),t})(),Vx=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({}),t})();function Nx(t,e,n,i){return o(n)&&(i=n,n=void 0),i?Nx(t,e,n).pipe(L((t=>u(t)?i(...t):i(t)))):new _((i=>{Hx(t,e,(function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)}),i,n)}))}function Hx(t,e,n,i,r){let a;if((l=t)&&"function"==typeof l.addEventListener&&"function"==typeof l.removeEventListener){const i=t;t.addEventListener(e,n,r),a=()=>i.removeEventListener(e,n,r)}else if((s=t)&&"function"==typeof s.on&&"function"==typeof s.off){const i=t;t.on(e,n),a=()=>i.off(e,n)}else if((o=t)&&"function"==typeof o.addListener&&"function"==typeof o.removeListener){const i=t;t.addListener(e,n),a=()=>i.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let a=0,o=t.length;a<o;a++)Hx(t[a],e,n,i,r)}var o,s,l;i.add(a)}const Gx=new class extends Nu{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,r=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++i<r&&(t=e.shift()));if(this.active=!1,n){for(;++i<r&&(t=e.shift());)t.unsubscribe();throw n}}}(class extends Bu{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame((()=>t.flush(null)))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}});let Zx=1;const Ux=Promise.resolve(),Wx={};function Yx(t){return t in Wx&&(delete Wx[t],!0)}const jx={setImmediate(t){const e=Zx++;return Wx[e]=!0,Ux.then((()=>Yx(e)&&t())),e},clearImmediate(t){Yx(t)}},Xx=new class extends Nu{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,r=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++i<r&&(t=e.shift()));if(this.active=!1,n){for(;++i<r&&(t=e.shift());)t.unsubscribe();throw n}}}(class extends Bu{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=jx.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(jx.clearImmediate(e),t.scheduled=void 0)}});function qx(t,e){return n=>n.lift(new $x(t,e))}class $x{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new Kx(t,this.compare,this.keySelector))}}class Kx extends C{constructor(t,e,n){super(t),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:n}=this;e=n?n(t):t}catch(t){return this.destination.error(t)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(t){return this.destination.error(t)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}const Jx=new Nu(Bu);class Qx{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new tC(t,this.durationSelector))}}class tC extends W{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:n}=this;e=n(t)}catch(t){return this.destination.error(t)}const n=Y(e,new U(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}clearThrottle(){const{value:t,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function eC(t){return!u(t)&&t-parseFloat(t)+1>=0}function nC(t=0,e,n){let i=-1;return eC(e)?i=Number(e)<1?1:Number(e):I(e)&&(n=e),I(n)||(n=Jx),new _((e=>{const r=eC(t)?t:+t-n.now();return n.schedule(iC,r,{index:0,period:i,subscriber:e})}))}function iC(t){const{index:e,period:n,subscriber:i}=t;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function rC(t,e=Jx){return n=()=>nC(t,e),function(t){return t.lift(new Qx(n))};var n}function aC(t){return e=>e.lift(new oC(t))}class oC{constructor(t){this.notifier=t}call(t,e){const n=new sC(t),i=Y(this.notifier,new U(n));return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n}}class sC extends W{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function lC(...t){return $(1)(Uu(...t))}function cC(...t){const e=t[t.length-1];return I(e)?(t.pop(),n=>lC(t,n,e)):e=>lC(t,e)}class hC{call(t,e){return e.subscribe(new dC(t))}}class dC extends C{constructor(t){super(t),this.hasPrev=!1}_next(t){let e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)}}let uC;try{uC="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(t){uC=!1}let mC,pC,gC,fC,bC=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?this._platformId===iu:"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!uC)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t["ɵfac"]=function(e){return new(e||t)(wi(Qc))},t["ɵprov"]=vt({factory:function(){return new t(wi(Qc))},token:t,providedIn:"root"}),t})(),yC=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({}),t})();function vC(t){return function(){if(null==mC&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>mC=!0}))}finally{mC=mC||!1}return mC}()?t:!!t.capture}function wC(){if(null==gC){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return gC=!1,gC;if("scrollBehavior"in document.documentElement.style)gC=!0;else{const t=Element.prototype.scrollTo;gC=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return gC}function xC(){if("object"!=typeof document||!document)return 0;if(null==pC){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",t.appendChild(n),document.body.appendChild(t),pC=0,0===t.scrollLeft&&(t.scrollLeft=1,pC=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return pC}function CC(t){if(function(){if(null==fC){const t="undefined"!=typeof document?document.head:null;fC=!(!t||!t.createShadowRoot&&!t.attachShadow)}return fC}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function kC(t){return t.composedPath?t.composedPath()[0]:t.target}function SC(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}class PC extends class{}{constructor(t){super(),this._data=t}connect(){return nx(this._data)?this._data:Uu(this._data)}disconnect(){}}class _C{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(t,e,n,i,r){t.forEachOperation(((t,a,o)=>{let s,l;null==t.previousIndex?(s=this._insertView((()=>n(t,a,o)),o,e,i(t)),l=s?1:0):null==o?(this._detachAndCacheView(a,e),l=3):(s=this._moveView(a,o,e,i(t)),l=2),r&&r({context:null==s?void 0:s.context,operation:l,record:t})}))}detach(){for(const t of this._viewCache)t.destroy();this._viewCache=[]}_insertView(t,e,n,i){const r=this._insertViewFromCache(e,n);if(r)return void(r.context.$implicit=i);const a=t();return n.createEmbeddedView(a.templateRef,a.context,a.index)}_detachAndCacheView(t,e){const n=e.detach(t);this._maybeCacheView(n,e)}_moveView(t,e,n,i){const r=n.get(t);return n.move(r,e),r.context.$implicit=i,r}_maybeCacheView(t,e){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(t);else{const n=e.indexOf(t);-1===n?t.destroy():e.remove(n)}}_insertViewFromCache(t,e){const n=this._viewCache.pop();return n&&e.insert(n,t),n||null}}const MC=new ni("_ViewRepeater"),DC=["contentWrapper"],EC=["*"],OC=new ni("VIRTUAL_SCROLL_STRATEGY");class AC{constructor(t,e,n){this._scrolledIndexChange=new A,this.scrolledIndexChange=this._scrolledIndexChange.pipe(qx()),this._viewport=null,this._itemSize=t,this._minBufferPx=e,this._maxBufferPx=n}attach(t){this._viewport=t,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(t,e,n){this._itemSize=t,this._minBufferPx=e,this._maxBufferPx=n,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(t,e){this._viewport&&this._viewport.scrollToOffset(t*this._itemSize,e)}_updateTotalContentSize(){!this._viewport||this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const t=this._viewport.getRenderedRange(),e={start:t.start,end:t.end},n=this._viewport.getViewportSize(),i=this._viewport.getDataLength();let r=this._viewport.measureScrollOffset(),a=this._itemSize>0?r/this._itemSize:0;if(e.end>i){const t=Math.ceil(n/this._itemSize),o=Math.max(0,Math.min(a,i-t));a!=o&&(a=o,r=o*this._itemSize,e.start=Math.floor(a)),e.end=Math.max(0,Math.min(i,e.start+t))}const o=r-e.start*this._itemSize;if(o<this._minBufferPx&&0!=e.start){const t=Math.ceil((this._maxBufferPx-o)/this._itemSize);e.start=Math.max(0,e.start-t),e.end=Math.min(i,Math.ceil(a+(n+this._minBufferPx)/this._itemSize))}else{const t=e.end*this._itemSize-(r+n);if(t<this._minBufferPx&&e.end!=i){const n=Math.ceil((this._maxBufferPx-t)/this._itemSize);n>0&&(e.end=Math.min(i,e.end+n),e.start=Math.max(0,Math.floor(a-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(e),this._viewport.setRenderedContentOffset(this._itemSize*e.start),this._scrolledIndexChange.next(Math.floor(a))}}function TC(t){return t._scrollStrategy}let IC=(()=>{class t{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new AC(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(t){this._itemSize=Kw(t)}get minBufferPx(){return this._minBufferPx}set minBufferPx(t){this._minBufferPx=Kw(t)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(t){this._maxBufferPx=Kw(t)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵdir"]=ne({type:t,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[hl([{provide:OC,useFactory:TC,deps:[ut((()=>t))]}]),pe]}),t})(),LC=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new A,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe((()=>this._scrolled.next(t))))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new _((e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe(rC(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}})):Uu()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach(((t,e)=>this.deregister(e))),this._scrolled.complete()}ancestorScrolled(t,e){const n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(lm((t=>!t||n.indexOf(t)>-1)))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach(((n,i)=>{this._scrollableContainsElement(i,t)&&e.push(i)})),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let n=ex(e),i=t.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular((()=>Nx(this._getWindow().document,"scroll").subscribe((()=>this._scrolled.next()))))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t["ɵfac"]=function(e){return new(e||t)(wi(ph),wi(bC),wi(Hh,8))},t["ɵprov"]=vt({factory:function(){return new t(wi(ph),wi(bC),wi(Hh,8))},token:t,providedIn:"root"}),t})(),zC=(()=>{class t{constructor(t,e,n,i){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=n,this.dir=i,this._destroyed=new A,this._elementScrolled=new _((t=>this.ngZone.runOutsideAngular((()=>Nx(this.elementRef.nativeElement,"scroll").pipe(aC(this._destroyed)).subscribe(t)))))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){const e=this.elementRef.nativeElement,n=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=n?t.end:t.start),null==t.right&&(t.right=n?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),n&&0!=xC()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==xC()?t.left=t.right:1==xC()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const e=this.elementRef.nativeElement;wC()?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}measureScrollOffset(t){const e="left",n="right",i=this.elementRef.nativeElement;if("top"==t)return i.scrollTop;if("bottom"==t)return i.scrollHeight-i.clientHeight-i.scrollTop;const r=this.dir&&"rtl"==this.dir.value;return"start"==t?t=r?n:e:"end"==t&&(t=r?e:n),r&&2==xC()?t==e?i.scrollWidth-i.clientWidth-i.scrollLeft:i.scrollLeft:r&&1==xC()?t==e?i.scrollLeft+i.scrollWidth-i.clientWidth:-i.scrollLeft:t==e?i.scrollLeft:i.scrollWidth-i.clientWidth-i.scrollLeft}}return t["ɵfac"]=function(e){return new(e||t)(Zo(bl),Zo(LC),Zo(ph),Zo(Fx,8))},t["ɵdir"]=ne({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),RC=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new A,this._changeListener=t=>{this._change.next(t)},this._document=n,e.runOutsideAngular((()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe((()=>this._viewportSize=null))}))}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:n}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+e,height:n,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,e=this._getWindow(),n=t.documentElement,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(rC(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t["ɵfac"]=function(e){return new(e||t)(wi(bC),wi(ph),wi(Hh,8))},t["ɵprov"]=vt({factory:function(){return new t(wi(bC),wi(ph),wi(Hh,8))},token:t,providedIn:"root"}),t})();const FC="undefined"!=typeof requestAnimationFrame?Gx:Xx;let BC=(()=>{class t extends zC{constructor(t,e,n,i,r,a,o){super(t,a,n,r),this.elementRef=t,this._changeDetectorRef=e,this._scrollStrategy=i,this._detachedSubject=new A,this._renderedRangeSubject=new A,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new _((t=>this._scrollStrategy.scrolledIndexChange.subscribe((e=>Promise.resolve().then((()=>this.ngZone.run((()=>t.next(e))))))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=y.EMPTY,this._viewportChanges=o.change().subscribe((()=>{this.checkViewportSize()}))}get orientation(){return this._orientation}set orientation(t){this._orientation!==t&&(this._orientation=t,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(t){this._appendOnly=$w(t)}ngOnInit(){super.ngOnInit(),this.ngZone.runOutsideAngular((()=>Promise.resolve().then((()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.elementScrolled().pipe(cC(null),rC(0,FC)).subscribe((()=>this._scrollStrategy.onContentScrolled())),this._markChangeDetectionNeeded()}))))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(t){this.ngZone.runOutsideAngular((()=>{this._forOf=t,this._forOf.dataStream.pipe(aC(this._detachedSubject)).subscribe((t=>{const e=t.length;e!==this._dataLength&&(this._dataLength=e,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()}))}))}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}setTotalContentSize(t){this._totalContentSize!==t&&(this._totalContentSize=t,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(t){var e,n;e=this._renderedRange,n=t,e.start==n.start&&e.end==n.end||(this.appendOnly&&(t={start:0,end:Math.max(this._renderedRange.end,t.end)}),this._renderedRangeSubject.next(this._renderedRange=t),this._markChangeDetectionNeeded((()=>this._scrollStrategy.onContentRendered())))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(t,e="to-start"){const n="horizontal"==this.orientation,i=n?"X":"Y";let r="translate"+i+"("+Number((n&&this.dir&&"rtl"==this.dir.value?-1:1)*t)+"px)";this._renderedContentOffset=t,"to-end"===e&&(r+=" translate"+i+"(-100%)",this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=r&&(this._renderedContentTransform=r,this._markChangeDetectionNeeded((()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()})))}scrollToOffset(t,e="auto"){const n={behavior:e};"horizontal"===this.orientation?n.start=t:n.top=t,this.scrollTo(n)}scrollToIndex(t,e="auto"){this._scrollStrategy.scrollToIndex(t,e)}measureScrollOffset(t){return super.measureScrollOffset(t||("horizontal"===this.orientation?"start":"top"))}measureRenderedContentSize(){const t=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?t.offsetWidth:t.offsetHeight}measureRangeSize(t){return this._forOf?this._forOf.measureRangeSize(t,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){const t=this.elementRef.nativeElement;this._viewportSize="horizontal"===this.orientation?t.clientWidth:t.clientHeight}_markChangeDetectionNeeded(t){t&&this._runAfterChangeDetection.push(t),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular((()=>Promise.resolve().then((()=>{this._doChangeDetection()})))))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run((()=>this._changeDetectorRef.markForCheck()));const t=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const e of t)e()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":this._totalContentSize+"px",this._totalContentWidth="horizontal"===this.orientation?this._totalContentSize+"px":""}}return t["ɵfac"]=function(e){return new(e||t)(Zo(bl),Zo(Gl),Zo(ph),Zo(OC,8),Zo(Fx,8),Zo(LC),Zo(RC))},t["ɵcmp"]=qt({type:t,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(t,e){if(1&t&&Nc(DC,7),2&t){let t;Vc(t=Gc())&&(e._contentWrapper=t.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(t,e){2&t&&Cs("cdk-virtual-scroll-orientation-horizontal","horizontal"===e.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==e.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[hl([{provide:zC,useExisting:t}]),Co],ngContentSelectors:EC,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(t,e){1&t&&(ls(),Yo(0,"div",0,1),cs(2),jo(),Xo(3,"div",2)),2&t&&(sa(3),xs("width",e._totalContentWidth)("height",e._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"],encapsulation:2,changeDetection:0}),t})();function VC(t,e,n){if(!n.getBoundingClientRect)return 0;const i=n.getBoundingClientRect();return"horizontal"===t?"start"===e?i.left:i.right:"start"===e?i.top:i.bottom}let NC=(()=>{class t{constructor(t,e,n,i,r,a){this._viewContainerRef=t,this._template=e,this._differs=n,this._viewRepeater=i,this._viewport=r,this.viewChange=new A,this._dataSourceChanges=new A,this.dataStream=this._dataSourceChanges.pipe(cC(null),(t=>t.lift(new hC)),Ju((([t,e])=>this._changeDataSource(t,e))),function(t,e,n){let i;return i={bufferSize:1,windowTime:void 0,refCount:!1,scheduler:void 0},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:n,scheduler:i}){let r,a,o=0,s=!1,l=!1;return function(c){let h;o++,!r||s?(s=!1,r=new $u(t,e,i),h=r.subscribe(this),a=c.subscribe({next(t){r.next(t)},error(t){s=!0,r.error(t)},complete(){l=!0,a=void 0,r.complete()}}),l&&(a=void 0)):h=r.subscribe(this),this.add((()=>{o--,h.unsubscribe(),h=void 0,a&&!l&&n&&0===o&&(a.unsubscribe(),a=void 0,r=void 0)}))}}(i))}()),this._differ=null,this._needsUpdate=!1,this._destroyed=new A,this.dataStream.subscribe((t=>{this._data=t,this._onRenderedDataChange()})),this._viewport.renderedRangeStream.pipe(aC(this._destroyed)).subscribe((t=>{this._renderedRange=t,a.run((()=>this.viewChange.next(this._renderedRange))),this._onRenderedDataChange()})),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(t){var e;this._cdkVirtualForOf=t,(e=t)&&"function"==typeof e.connect?this._dataSourceChanges.next(t):this._dataSourceChanges.next(new PC(nx(t)?t:Array.from(t||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(t){this._needsUpdate=!0,this._cdkVirtualForTrackBy=t?(e,n)=>t(e+(this._renderedRange?this._renderedRange.start:0),n):void 0}set cdkVirtualForTemplate(t){t&&(this._needsUpdate=!0,this._template=t)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(t){this._viewRepeater.viewCacheSize=Kw(t)}measureRangeSize(t,e){if(t.start>=t.end)return 0;const n=t.start-this._renderedRange.start,i=t.end-t.start;let r,a;for(let t=0;t<i;t++){const e=this._viewContainerRef.get(t+n);if(e&&e.rootNodes.length){r=a=e.rootNodes[0];break}}for(let t=i-1;t>-1;t--){const e=this._viewContainerRef.get(t+n);if(e&&e.rootNodes.length){a=e.rootNodes[e.rootNodes.length-1];break}}return r&&a?VC(e,"end",a)-VC(e,"start",r):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const t=this._differ.diff(this._renderedItems);t?this._applyChanges(t):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create(((t,e)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(t,e):e))),this._needsUpdate=!0)}_changeDataSource(t,e){return t&&t.disconnect(this),this._needsUpdate=!0,e?e.connect(this):Uu()}_updateContext(){const t=this._data.length;let e=this._viewContainerRef.length;for(;e--;){const n=this._viewContainerRef.get(e);n.context.index=this._renderedRange.start+e,n.context.count=t,this._updateComputedContextProperties(n.context),n.detectChanges()}}_applyChanges(t){this._viewRepeater.applyChanges(t,this._viewContainerRef,((t,e,n)=>this._getEmbeddedViewArgs(t,n)),(t=>t.item)),t.forEachIdentityChange((t=>{this._viewContainerRef.get(t.currentIndex).context.$implicit=t.item}));const e=this._data.length;let n=this._viewContainerRef.length;for(;n--;){const t=this._viewContainerRef.get(n);t.context.index=this._renderedRange.start+n,t.context.count=e,this._updateComputedContextProperties(t.context)}}_updateComputedContextProperties(t){t.first=0===t.index,t.last=t.index===t.count-1,t.even=t.index%2==0,t.odd=!t.even}_getEmbeddedViewArgs(t,e){return{templateRef:this._template,context:{$implicit:t.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:e}}}return t["ɵfac"]=function(e){return new(e||t)(Zo(tc),Zo(jl),Zo(zl),Zo(MC),Zo(BC,4),Zo(ph))},t["ɵdir"]=ne({type:t,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[hl([{provide:MC,useClass:_C}])]}),t})(),HC=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({}),t})(),GC=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({imports:[[Vx,yC,HC],Vx,HC]}),t})();class ZC{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class UC extends ZC{constructor(t,e,n,i){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=i}}class WC extends ZC{constructor(t,e,n){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class YC extends ZC{constructor(t){super(),this.element=t instanceof bl?t.nativeElement:t}}class jC{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof UC?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof WC?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof YC?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class XC extends jC{constructor(t,e,n,i,r){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=i,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),this._attachedPortal=t,super.setDisposeFn((()=>{n.parentNode&&n.parentNode.replaceChild(e,n)}))},this._document=r}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let n;return t.viewContainerRef?(n=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn((()=>n.destroy()))):(n=e.create(t.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn((()=>{this._appRef.detachView(n.hostView),n.destroy()}))),this.outletElement.appendChild(this._getComponentRootNode(n)),this._attachedPortal=t,n}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.rootNodes.forEach((t=>this.outletElement.appendChild(t))),n.detectChanges(),this.setDisposeFn((()=>{let t=e.indexOf(n);-1!==t&&e.remove(t)})),this._attachedPortal=t,n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let qC=(()=>{class t extends jC{constructor(t,e,n){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new Dc,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(n,e),this._getRootNode().appendChild(e),this._attachedPortal=t,super.setDisposeFn((()=>{n.parentNode&&n.parentNode.replaceChild(e,n)}))},this._document=n}get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),i=e.createComponent(n,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn((()=>i.destroy())),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn((()=>this._viewContainerRef.clear())),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t["ɵfac"]=function(e){return new(e||t)(Zo(ml),Zo(tc),Zo(Hh))},t["ɵdir"]=ne({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Co]}),t})(),$C=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({}),t})();const KC=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function JC(t){return e=>0===t?Zu():e.lift(new QC(t))}class QC{constructor(t){if(this.total=t,this.total<0)throw new KC}call(t,e){return e.subscribe(new tk(t,this.total))}}class tk extends C{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}class ek{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new nk(t,this.predicate,this.inclusive))}}class nk extends C{constructor(t,e,n){super(t),this.predicate=e,this.inclusive=n,this.index=0}_next(t){const e=this.destination;let n;try{n=this.predicate(t,this.index++)}catch(t){return void e.error(t)}this.nextOrComplete(t,n)}nextOrComplete(t,e){const n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())}}function ik(t,...e){return e.length?e.some((e=>t[e])):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}const rk=wC();class ak{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=tx(-this._previousScrollPosition.left),t.style.top=tx(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,n=this._document.body.style,i=e.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),rk&&(e.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),rk&&(e.scrollBehavior=i,n.scrollBehavior=r)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class ok{constructor(t,e,n,i){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run((()=>this._overlayRef.detach()))}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe((()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()}))):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class sk{enable(){}disable(){}attach(){}}function lk(t,e){return e.some((e=>t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right))}function ck(t,e){return e.some((e=>t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right))}class hk{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=i,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe((()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:n}=this._viewportRuler.getViewportSize();lk(t,[{width:e,height:n,bottom:n,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run((()=>this._overlayRef.detach())))}})))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let dk=(()=>{class t{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new sk,this.close=t=>new ok(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new ak(this._viewportRuler,this._document),this.reposition=t=>new hk(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=i}}return t["ɵfac"]=function(e){return new(e||t)(wi(LC),wi(RC),wi(ph),wi(Hh))},t["ɵprov"]=vt({factory:function(){return new t(wi(LC),wi(RC),wi(ph),wi(Hh))},token:t,providedIn:"root"}),t})();class uk{constructor(t){if(this.scrollStrategy=new sk,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class mk{constructor(t,e,n,i,r){this.offsetX=n,this.offsetY=i,this.panelClass=r,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class pk{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let gk=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t["ɵfac"]=function(e){return new(e||t)(wi(Hh))},t["ɵprov"]=vt({factory:function(){return new t(wi(Hh))},token:t,providedIn:"root"}),t})(),fk=(()=>{class t extends gk{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t["ɵfac"]=function(e){return new(e||t)(wi(Hh))},t["ɵprov"]=vt({factory:function(){return new t(wi(Hh))},token:t,providedIn:"root"}),t})(),bk=(()=>{class t extends gk{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._pointerDownListener=t=>{this._pointerDownEventTarget=kC(t)},this._clickListener=t=>{const e=kC(t),n="click"===t.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:e;this._pointerDownEventTarget=null;const i=this._attachedOverlays.slice();for(let r=i.length-1;r>-1;r--){const a=i[r];if(!(a._outsidePointerEvents.observers.length<1)&&a.hasAttached()){if(a.overlayElement.contains(e)||a.overlayElement.contains(n))break;a._outsidePointerEvents.next(t)}}}}add(t){if(super.add(t),!this._isAttached){const t=this._document.body;t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return t["ɵfac"]=function(e){return new(e||t)(wi(Hh),wi(bC))},t["ɵprov"]=vt({factory:function(){return new t(wi(Hh),wi(bC))},token:t,providedIn:"root"}),t})(),yk=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||SC()){const e=this._document.querySelectorAll("."+t+'[platform="server"], .'+t+'[platform="test"]');for(let t=0;t<e.length;t++)e[t].parentNode.removeChild(e[t])}const e=this._document.createElement("div");e.classList.add(t),SC()?e.setAttribute("platform","test"):this._platform.isBrowser||e.setAttribute("platform","server"),this._document.body.appendChild(e),this._containerElement=e}}return t["ɵfac"]=function(e){return new(e||t)(wi(Hh),wi(bC))},t["ɵprov"]=vt({factory:function(){return new t(wi(Hh),wi(bC))},token:t,providedIn:"root"}),t})();class vk{constructor(t,e,n,i,r,a,o,s,l){this._portalOutlet=t,this._host=e,this._pane=n,this._config=i,this._ngZone=r,this._keyboardDispatcher=a,this._document=o,this._location=s,this._outsideClickDispatcher=l,this._backdropElement=null,this._backdropClick=new A,this._attachments=new A,this._detachments=new A,this._locationChanges=y.EMPTY,this._backdropClickHandler=t=>this._backdropClick.next(t),this._keydownEvents=new A,this._outsidePointerEvents=new A,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(JC(1)).subscribe((()=>{this.hasAttached()&&this.updatePosition()})),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe((()=>this.dispose()))),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=tx(this._config.width),t.height=tx(this._config.height),t.minWidth=tx(this._config.minWidth),t.minHeight=tx(this._config.minHeight),t.maxWidth=tx(this._config.maxWidth),t.maxHeight=tx(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular((()=>{requestAnimationFrame((()=>{this._backdropElement&&this._backdropElement.classList.add(t)}))})):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;if(!t)return;let e;const n=()=>{t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",n),this._disposeBackdrop(t)),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),clearTimeout(e)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular((()=>{t.addEventListener("transitionend",n)})),t.style.pointerEvents="none",e=this._ngZone.runOutsideAngular((()=>setTimeout(n,500)))}_toggleClasses(t,e,n){const i=t.classList;Qw(e).forEach((t=>{t&&(n?i.add(t):i.remove(t))}))}_detachContentWhenStable(){this._ngZone.runOutsideAngular((()=>{const t=this._ngZone.onStable.pipe(aC(J(this._attachments,this._detachments))).subscribe((()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())}))}))}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.parentNode&&t.parentNode.removeChild(t),this._backdropElement===t&&(this._backdropElement=null))}}const wk="cdk-overlay-connected-position-bounding-box",xk=/([A-Za-z%]+)$/;class Ck{constructor(t,e,n,i,r){this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=r,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new A,this._resizeSubscription=y.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(wk),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe((()=>{this._isInitialRender=!0,this.apply()}))}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,n=this._viewportRect,i=[];let r;for(let a of this._preferredPositions){let o=this._getOriginPoint(t,a),s=this._getOverlayPoint(o,e,a),l=this._getOverlayFit(s,e,n,a);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,o);this._canFitWithFlexibleDimensions(l,s,n)?i.push({position:a,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,a)}):(!r||r.overlayFit.visibleArea<l.visibleArea)&&(r={overlayFit:l,overlayPoint:s,originPoint:o,position:a,overlayRect:e})}if(i.length){let t=null,e=-1;for(const n of i){const i=n.boundingBoxRect.width*n.boundingBoxRect.height*(n.position.weight||1);i>e&&(e=i,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(r.position,r.originPoint);this._applyPosition(r.position,r.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&kk(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(wk),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let n,i;if("center"==e.originX)n=t.left+t.width/2;else{const i=this._isRtl()?t.right:t.left,r=this._isRtl()?t.left:t.right;n="start"==e.originX?i:r}return i="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:i}}_getOverlayPoint(t,e,n){let i,r;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,r="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+i,y:t.y+r}}_getOverlayFit(t,e,n,i){const r=Pk(e);let{x:a,y:o}=t,s=this._getOffset(i,"x"),l=this._getOffset(i,"y");s&&(a+=s),l&&(o+=l);let c=0-o,h=o+r.height-n.height,d=this._subtractOverflows(r.width,0-a,a+r.width-n.width),u=this._subtractOverflows(r.height,c,h),m=d*u;return{visibleArea:m,isCompletelyWithinViewport:r.width*r.height===m,fitsInViewportVertically:u===r.height,fitsInViewportHorizontally:d==r.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const i=n.bottom-e.y,r=n.right-e.x,a=Sk(this._overlayRef.getConfig().minHeight),o=Sk(this._overlayRef.getConfig().minWidth),s=t.fitsInViewportHorizontally||null!=o&&o<=r;return(t.fitsInViewportVertically||null!=a&&a<=i)&&s}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const i=Pk(e),r=this._viewportRect,a=Math.max(t.x+i.width-r.width,0),o=Math.max(t.y+i.height-r.height,0),s=Math.max(r.top-n.top-t.y,0),l=Math.max(r.left-n.left-t.x,0);let c=0,h=0;return c=i.width<=r.width?l||-a:t.x<this._viewportMargin?r.left-n.left-t.x:0,h=i.height<=r.height?s||-o:t.y<this._viewportMargin?r.top-n.top-t.y:0,this._previousPushAmount={x:c,y:h},{x:t.x+c,y:t.y+h}}_applyPosition(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){const e=this._getScrollVisibility(),n=new pk(t,e);this._positionChanges.next(n)}this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let n,i=t.overlayY;n="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(let t=0;t<e.length;t++)e[t].style.transformOrigin=n+" "+i}_calculateBoundingBoxRect(t,e){const n=this._viewportRect,i=this._isRtl();let r,a,o,s,l,c;if("top"===e.overlayY)a=t.y,r=n.height-a+this._viewportMargin;else if("bottom"===e.overlayY)o=n.height-t.y+2*this._viewportMargin,r=n.height-o+this._viewportMargin;else{const e=Math.min(n.bottom-t.y+n.top,t.y),i=this._lastBoundingBoxSize.height;r=2*e,a=t.y-e,r>i&&!this._isInitialRender&&!this._growAfterOpen&&(a=t.y-i/2)}if("end"===e.overlayX&&!i||"start"===e.overlayX&&i)c=n.width-t.x+this._viewportMargin,s=t.x-this._viewportMargin;else if("start"===e.overlayX&&!i||"end"===e.overlayX&&i)l=t.x,s=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),i=this._lastBoundingBoxSize.width;s=2*e,l=t.x-e,s>i&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-i/2)}return{top:a,left:l,bottom:o,right:c,width:s,height:r}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;i.height=tx(n.height),i.top=tx(n.top),i.bottom=tx(n.bottom),i.width=tx(n.width),i.left=tx(n.left),i.right=tx(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(i.maxHeight=tx(t)),r&&(i.maxWidth=tx(r))}this._lastBoundingBoxSize=n,kk(this._boundingBox.style,i)}_resetBoundingBoxStyles(){kk(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){kk(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(i){const i=this._viewportRuler.getViewportScrollPosition();kk(n,this._getExactOverlayY(e,t,i)),kk(n,this._getExactOverlayX(e,t,i))}else n.position="static";let o="",s=this._getOffset(e,"x"),l=this._getOffset(e,"y");s&&(o+="translateX("+s+"px) "),l&&(o+="translateY("+l+"px)"),n.transform=o.trim(),a.maxHeight&&(i?n.maxHeight=tx(a.maxHeight):r&&(n.maxHeight="")),a.maxWidth&&(i?n.maxWidth=tx(a.maxWidth):r&&(n.maxWidth="")),kk(this._pane.style,n)}_getExactOverlayY(t,e,n){let i={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));let a=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=a,"bottom"===t.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=tx(r.y),i}_getExactOverlayX(t,e,n){let i,r={left:"",right:""},a=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,n)),i=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===i?r.right=this._document.documentElement.clientWidth-(a.x+this._overlayRect.width)+"px":r.left=tx(a.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map((t=>t.getElementRef().nativeElement.getBoundingClientRect()));return{isOriginClipped:ck(t,n),isOriginOutsideView:lk(t,n),isOverlayClipped:ck(e,n),isOverlayOutsideView:lk(e,n)}}_subtractOverflows(t,...e){return e.reduce(((t,e)=>t-Math.max(e,0)),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&Qw(t).forEach((t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))}))}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach((t=>{this._pane.classList.remove(t)})),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof bl)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}function kk(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function Sk(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(xk);return n&&"px"!==n?null:parseFloat(e)}return t||null}function Pk(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}class _k{constructor(t,e,n,i,r,a,o){this._preferredPositions=[],this._positionStrategy=new Ck(n,i,r,a,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,n,i){const r=new mk(t,e,n,i);return this._preferredPositions.push(r),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}const Mk="cdk-global-overlay-wrapper";class Dk{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(Mk),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:i,height:r,maxWidth:a,maxHeight:o}=n,s=!("100%"!==i&&"100vw"!==i||a&&"100%"!==a&&"100vw"!==a),l=!("100%"!==r&&"100vh"!==r||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=s?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,s?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(Mk),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let Ek=(()=>{class t{constructor(t,e,n,i){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=i}global(){return new Dk}connectedTo(t,e,n){return new _k(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new Ck(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t["ɵfac"]=function(e){return new(e||t)(wi(RC),wi(Hh),wi(bC),wi(yk))},t["ɵprov"]=vt({factory:function(){return new t(wi(RC),wi(Hh),wi(bC),wi(yk))},token:t,providedIn:"root"}),t})(),Ok=0,Ak=(()=>{class t{constructor(t,e,n,i,r,a,o,s,l,c,h){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=r,this._injector=a,this._ngZone=o,this._document=s,this._directionality=l,this._location=c,this._outsideClickDispatcher=h}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),r=new uk(t);return r.direction=r.direction||this._directionality.value,new vk(i,e,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+Ok++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(Ih)),new XC(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t["ɵfac"]=function(e){return new(e||t)(wi(dk),wi(yk),wi(ml),wi(Ek),wi(fk),wi(wo),wi(ph),wi(Hh),wi(Fx),wi(td),wi(bk))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})();const Tk=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Ik=new ni("cdk-connected-overlay-scroll-strategy");let Lk=(()=>{class t{constructor(t){this.elementRef=t}}return t["ɵfac"]=function(e){return new(e||t)(Zo(bl))},t["ɵdir"]=ne({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),zk=(()=>{class t{constructor(t,e,n,i,r){this._overlay=t,this._dir=r,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=y.EMPTY,this._attachSubscription=y.EMPTY,this._detachSubscription=y.EMPTY,this._positionSubscription=y.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new Dc,this.positionChange=new Dc,this.attach=new Dc,this.detach=new Dc,this.overlayKeydown=new Dc,this.overlayOutsideClick=new Dc,this._templatePortal=new WC(e,n),this._scrollStrategyFactory=i,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=$w(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=$w(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=$w(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=$w(t)}get push(){return this._push}set push(t){this._push=$w(t)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Tk);const t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe((()=>this.attach.emit())),this._detachSubscription=t.detachments().subscribe((()=>this.detach.emit())),t.keydownEvents().subscribe((t=>{this.overlayKeydown.next(t),27===t.keyCode&&!this.disableClose&&!ik(t)&&(t.preventDefault(),this._detachOverlay())})),this._overlayRef.outsidePointerEvents().subscribe((t=>{this.overlayOutsideClick.next(t)}))}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new uk({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){const e=this.positions.map((t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0})));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe((t=>{this.backdropClick.emit(t)})):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t,e=!1){return n=>n.lift(new ek(t,e))}((()=>this.positionChange.observers.length>0))).subscribe((t=>{this.positionChange.emit(t),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()})))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Ak),Zo(jl),Zo(tc),Zo(Ik),Zo(Fx,8))},t["ɵdir"]=ne({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[pe]}),t})();const Rk={provide:Ik,deps:[Ak],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let Fk=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({providers:[Ak,Rk],imports:[[Vx,$C,GC],GC]}),t})();function Bk(t,e,n,i){var r,a=arguments.length,o=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(o=(a<3?r(o):a>3?r(e,n,o):r(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}function Vk(t){return this instanceof Vk?(this.v=t,this):new Vk(t)}function Nk(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(t,e||[]),a=[];return i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i;function o(t){r[t]&&(i[t]=function(e){return new Promise((function(n,i){a.push([t,e,n,i])>1||s(t,e)}))})}function s(t,e){try{(n=r[t](e)).value instanceof Vk?Promise.resolve(n.value.v).then(l,c):h(a[0][2],n)}catch(t){h(a[0][3],t)}var n}function l(t){s("next",t)}function c(t){s("throw",t)}function h(t,e){t(e),a.shift(),a.length&&s(a[0][0],a[0][1])}}const Hk="nz-animate-disabled";let Gk=(()=>{class t{constructor(t,e,n){this.element=t,this.renderer=e,this.animationType=n,this.nzNoAnimation=!1}ngOnChanges(){this.updateClass()}ngAfterViewInit(){this.updateClass()}updateClass(){const t=ex(this.element);!t||(this.nzNoAnimation||"NoopAnimations"===this.animationType?this.renderer.addClass(t,Hk):this.renderer.removeClass(t,Hk))}}return t["ɵfac"]=function(e){return new(e||t)(Zo(bl),Zo(wl),Zo(Eb,8))},t["ɵdir"]=ne({type:t,selectors:[["","nzNoAnimation",""]],inputs:{nzNoAnimation:"nzNoAnimation"},exportAs:["nzNoAnimation"],features:[pe]}),Bk([hx()],t.prototype,"nzNoAnimation",void 0),t})(),Zk=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({imports:[[nu]]}),t})(),Uk=(()=>{class t{constructor(t,e){this.viewContainer=t,this.templateRef=e,this.embeddedViewRef=null,this.context=new Wk,this.nzStringTemplateOutletContext=null,this.nzStringTemplateOutlet=null}static ngTemplateContextGuard(t,e){return!0}recreateView(){this.viewContainer.clear();const t=this.nzStringTemplateOutlet instanceof jl;this.embeddedViewRef=this.viewContainer.createEmbeddedView(t?this.nzStringTemplateOutlet:this.templateRef,t?this.nzStringTemplateOutletContext:this.context)}updateContext(){const t=this.nzStringTemplateOutlet instanceof jl?this.nzStringTemplateOutletContext:this.context,e=this.embeddedViewRef.context;if(t)for(const n of Object.keys(t))e[n]=t[n]}ngOnChanges(t){const{nzStringTemplateOutletContext:e,nzStringTemplateOutlet:n}=t;n&&(this.context.$implicit=n.currentValue),(()=>{let t=!1;if(n)if(n.firstChange)t=!0;else{const e=n.currentValue instanceof jl;t=n.previousValue instanceof jl||e}return e&&(t=>{const e=Object.keys(t.previousValue||{}),n=Object.keys(t.currentValue||{});if(e.length===n.length){for(const t of n)if(-1===e.indexOf(t))return!0;return!1}return!0})(e)||t})()?this.recreateView():this.updateContext()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(tc),Zo(jl))},t["ɵdir"]=ne({type:t,selectors:[["","nzStringTemplateOutlet",""]],inputs:{nzStringTemplateOutletContext:"nzStringTemplateOutletContext",nzStringTemplateOutlet:"nzStringTemplateOutlet"},exportAs:["nzStringTemplateOutlet"],features:[pe]}),t})();class Wk{}let Yk=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({imports:[[nu]]}),t})();function jk(t,e){var n;"string"==typeof(n=t)&&-1!==n.indexOf(".")&&1===parseFloat(n)&&(t="100%");var i,r="string"==typeof(i=t)&&-1!==i.indexOf("%");return t=360===e?t:Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(String(t*e),10)/100),Math.abs(t-e)<1e-6?1:t=360===e?(t<0?t%e+e:t%e)/parseFloat(String(e)):t%e/parseFloat(String(e))}function Xk(t){return Math.min(1,Math.max(0,t))}function qk(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function $k(t){return t<=1?"".concat(100*Number(t),"%"):t}function Kk(t){return 1===t.length?"0"+t:String(t)}function Jk(t,e,n){t=jk(t,255),e=jk(e,255),n=jk(n,255);var i=Math.max(t,e,n),r=Math.min(t,e,n),a=0,o=0,s=(i+r)/2;if(i===r)o=0,a=0;else{var l=i-r;switch(o=s>.5?l/(2-i-r):l/(i+r),i){case t:a=(e-n)/l+(e<n?6:0);break;case e:a=(n-t)/l+2;break;case n:a=(t-e)/l+4}a/=6}return{h:a,s:o,l:s}}function Qk(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*n*(e-t):n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function tS(t,e,n){t=jk(t,255),e=jk(e,255),n=jk(n,255);var i=Math.max(t,e,n),r=Math.min(t,e,n),a=0,o=i,s=i-r,l=0===i?0:s/i;if(i===r)a=0;else{switch(i){case t:a=(e-n)/s+(e<n?6:0);break;case e:a=(n-t)/s+2;break;case n:a=(t-e)/s+4}a/=6}return{h:a,s:l,v:o}}function eS(t,e,n,i){var r=[Kk(Math.round(t).toString(16)),Kk(Math.round(e).toString(16)),Kk(Math.round(n).toString(16))];return i&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function nS(t){return iS(t)/255}function iS(t){return parseInt(t,16)}var rS={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},aS="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),oS="[\\s|\\(]+(".concat(aS,")[,|\\s]+(").concat(aS,")[,|\\s]+(").concat(aS,")\\s*\\)?"),sS="[\\s|\\(]+(".concat(aS,")[,|\\s]+(").concat(aS,")[,|\\s]+(").concat(aS,")[,|\\s]+(").concat(aS,")\\s*\\)?"),lS={CSS_UNIT:new RegExp(aS),rgb:new RegExp("rgb"+oS),rgba:new RegExp("rgba"+sS),hsl:new RegExp("hsl"+oS),hsla:new RegExp("hsla"+sS),hsv:new RegExp("hsv"+oS),hsva:new RegExp("hsva"+sS),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function cS(t){return Boolean(lS.CSS_UNIT.exec(String(t)))}var hS=function(){function t(e,n){var i,r;if(void 0===e&&(e=""),void 0===n&&(n={}),e instanceof t)return e;"number"==typeof e&&(e={r:(r=e)>>16,g:(65280&r)>>8,b:255&r}),this.originalInput=e;var a,o,s,l,c,h,d,u,m,p,g,f=(c={r:0,g:0,b:0},h=1,d=null,u=null,m=null,p=!1,g=!1,"string"==typeof(a=e)&&(a=function(t){if(0===(t=t.trim().toLowerCase()).length)return!1;var e=!1;if(rS[t])t=rS[t],e=!0;else if("transparent"===t)return{r:0,g:0,b:0,a:0,format:"name"};var n=lS.rgb.exec(t);return n?{r:n[1],g:n[2],b:n[3]}:(n=lS.rgba.exec(t))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=lS.hsl.exec(t))?{h:n[1],s:n[2],l:n[3]}:(n=lS.hsla.exec(t))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=lS.hsv.exec(t))?{h:n[1],s:n[2],v:n[3]}:(n=lS.hsva.exec(t))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=lS.hex8.exec(t))?{r:iS(n[1]),g:iS(n[2]),b:iS(n[3]),a:nS(n[4]),format:e?"name":"hex8"}:(n=lS.hex6.exec(t))?{r:iS(n[1]),g:iS(n[2]),b:iS(n[3]),format:e?"name":"hex"}:(n=lS.hex4.exec(t))?{r:iS(n[1]+n[1]),g:iS(n[2]+n[2]),b:iS(n[3]+n[3]),a:nS(n[4]+n[4]),format:e?"name":"hex8"}:!!(n=lS.hex3.exec(t))&&{r:iS(n[1]+n[1]),g:iS(n[2]+n[2]),b:iS(n[3]+n[3]),format:e?"name":"hex"}}(a)),"object"==typeof a&&(cS(a.r)&&cS(a.g)&&cS(a.b)?(o=a.r,s=a.g,l=a.b,c={r:255*jk(o,255),g:255*jk(s,255),b:255*jk(l,255)},p=!0,g="%"===String(a.r).substr(-1)?"prgb":"rgb"):cS(a.h)&&cS(a.s)&&cS(a.v)?(d=$k(a.s),u=$k(a.v),c=function(t,e,n){t=6*jk(t,360),e=jk(e,100),n=jk(n,100);var i=Math.floor(t),r=t-i,a=n*(1-e),o=n*(1-r*e),s=n*(1-(1-r)*e),l=i%6;return{r:255*[n,o,a,a,s,n][l],g:255*[s,n,n,o,a,a][l],b:255*[a,a,s,n,n,o][l]}}(a.h,d,u),p=!0,g="hsv"):cS(a.h)&&cS(a.s)&&cS(a.l)&&(d=$k(a.s),m=$k(a.l),c=function(t,e,n){var i,r,a;if(t=jk(t,360),e=jk(e,100),n=jk(n,100),0===e)r=n,a=n,i=n;else{var o=n<.5?n*(1+e):n+e-n*e,s=2*n-o;i=Qk(s,o,t+1/3),r=Qk(s,o,t),a=Qk(s,o,t-1/3)}return{r:255*i,g:255*r,b:255*a}}(a.h,d,m),p=!0,g="hsl"),Object.prototype.hasOwnProperty.call(a,"a")&&(h=a.a)),h=qk(h),{ok:p,format:a.format||g,r:Math.min(255,Math.max(c.r,0)),g:Math.min(255,Math.max(c.g,0)),b:Math.min(255,Math.max(c.b,0)),a:h});this.originalInput=e,this.r=f.r,this.g=f.g,this.b=f.b,this.a=f.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(i=n.format)&&void 0!==i?i:f.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=f.ok}return t.prototype.isDark=function(){return this.getBrightness()<128},t.prototype.isLight=function(){return!this.isDark()},t.prototype.getBrightness=function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},t.prototype.getLuminance=function(){var t=this.toRgb(),e=t.r/255,n=t.g/255,i=t.b/255;return.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))},t.prototype.getAlpha=function(){return this.a},t.prototype.setAlpha=function(t){return this.a=qk(t),this.roundA=Math.round(100*this.a)/100,this},t.prototype.isMonochrome=function(){return 0===this.toHsl().s},t.prototype.toHsv=function(){var t=tS(this.r,this.g,this.b);return{h:360*t.h,s:t.s,v:t.v,a:this.a}},t.prototype.toHsvString=function(){var t=tS(this.r,this.g,this.b),e=Math.round(360*t.h),n=Math.round(100*t.s),i=Math.round(100*t.v);return 1===this.a?"hsv(".concat(e,", ").concat(n,"%, ").concat(i,"%)"):"hsva(".concat(e,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},t.prototype.toHsl=function(){var t=Jk(this.r,this.g,this.b);return{h:360*t.h,s:t.s,l:t.l,a:this.a}},t.prototype.toHslString=function(){var t=Jk(this.r,this.g,this.b),e=Math.round(360*t.h),n=Math.round(100*t.s),i=Math.round(100*t.l);return 1===this.a?"hsl(".concat(e,", ").concat(n,"%, ").concat(i,"%)"):"hsla(".concat(e,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},t.prototype.toHex=function(t){return void 0===t&&(t=!1),eS(this.r,this.g,this.b,t)},t.prototype.toHexString=function(t){return void 0===t&&(t=!1),"#"+this.toHex(t)},t.prototype.toHex8=function(t){return void 0===t&&(t=!1),e=this.r,n=this.g,i=this.b,r=this.a,a=t,s=[Kk(Math.round(e).toString(16)),Kk(Math.round(n).toString(16)),Kk(Math.round(i).toString(16)),Kk((o=r,Math.round(255*parseFloat(o)).toString(16)))],a&&s[0].startsWith(s[0].charAt(1))&&s[1].startsWith(s[1].charAt(1))&&s[2].startsWith(s[2].charAt(1))&&s[3].startsWith(s[3].charAt(1))?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0)+s[3].charAt(0):s.join("");var e,n,i,r,a,o,s},t.prototype.toHex8String=function(t){return void 0===t&&(t=!1),"#"+this.toHex8(t)},t.prototype.toHexShortString=function(t){return void 0===t&&(t=!1),1===this.a?this.toHexString(t):this.toHex8String(t)},t.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},t.prototype.toRgbString=function(){var t=Math.round(this.r),e=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(t,", ").concat(e,", ").concat(n,")"):"rgba(".concat(t,", ").concat(e,", ").concat(n,", ").concat(this.roundA,")")},t.prototype.toPercentageRgb=function(){var t=function(t){return"".concat(Math.round(100*jk(t,255)),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},t.prototype.toPercentageRgbString=function(){var t=function(t){return Math.round(100*jk(t,255))};return 1===this.a?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},t.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var t="#"+eS(this.r,this.g,this.b,!1),e=0,n=Object.entries(rS);e<n.length;e++){var i=n[e];if(t===i[1])return i[0]}return!1},t.prototype.toString=function(t){var e=Boolean(t);t=null!=t?t:this.format;var n=!1;return!e&&this.a<1&&this.a>=0&&(t.startsWith("hex")||"name"===t)?"name"===t&&0===this.a?this.toName():this.toRgbString():("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),("hex"===t||"hex6"===t)&&(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex4"===t&&(n=this.toHex8String(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString())},t.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},t.prototype.clone=function(){return new t(this.toString())},t.prototype.lighten=function(e){void 0===e&&(e=10);var n=this.toHsl();return n.l+=e/100,n.l=Xk(n.l),new t(n)},t.prototype.brighten=function(e){void 0===e&&(e=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-e/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-e/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-e/100*255))),new t(n)},t.prototype.darken=function(e){void 0===e&&(e=10);var n=this.toHsl();return n.l-=e/100,n.l=Xk(n.l),new t(n)},t.prototype.tint=function(t){return void 0===t&&(t=10),this.mix("white",t)},t.prototype.shade=function(t){return void 0===t&&(t=10),this.mix("black",t)},t.prototype.desaturate=function(e){void 0===e&&(e=10);var n=this.toHsl();return n.s-=e/100,n.s=Xk(n.s),new t(n)},t.prototype.saturate=function(e){void 0===e&&(e=10);var n=this.toHsl();return n.s+=e/100,n.s=Xk(n.s),new t(n)},t.prototype.greyscale=function(){return this.desaturate(100)},t.prototype.spin=function(e){var n=this.toHsl(),i=(n.h+e)%360;return n.h=i<0?360+i:i,new t(n)},t.prototype.mix=function(e,n){void 0===n&&(n=50);var i=this.toRgb(),r=new t(e).toRgb(),a=n/100;return new t({r:(r.r-i.r)*a+i.r,g:(r.g-i.g)*a+i.g,b:(r.b-i.b)*a+i.b,a:(r.a-i.a)*a+i.a})},t.prototype.analogous=function(e,n){void 0===e&&(e=6),void 0===n&&(n=30);var i=this.toHsl(),r=360/n,a=[this];for(i.h=(i.h-(r*e>>1)+720)%360;--e;)i.h=(i.h+r)%360,a.push(new t(i));return a},t.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new t(e)},t.prototype.monochromatic=function(e){void 0===e&&(e=6);for(var n=this.toHsv(),i=n.h,r=n.s,a=n.v,o=[],s=1/e;e--;)o.push(new t({h:i,s:r,v:a})),a=(a+s)%1;return o},t.prototype.splitcomplement=function(){var e=this.toHsl(),n=e.h;return[this,new t({h:(n+72)%360,s:e.s,l:e.l}),new t({h:(n+216)%360,s:e.s,l:e.l})]},t.prototype.onBackground=function(e){var n=this.toRgb(),i=new t(e).toRgb(),r=n.a+i.a*(1-n.a);return new t({r:(n.r*n.a+i.r*i.a*(1-n.a))/r,g:(n.g*n.a+i.g*i.a*(1-n.a))/r,b:(n.b*n.a+i.b*i.a*(1-n.a))/r,a:r})},t.prototype.triad=function(){return this.polyad(3)},t.prototype.tetrad=function(){return this.polyad(4)},t.prototype.polyad=function(e){for(var n=this.toHsl(),i=n.h,r=[this],a=360/e,o=1;o<e;o++)r.push(new t({h:(i+o*a)%360,s:n.s,l:n.l}));return r},t.prototype.equals=function(e){return this.toRgbString()===new t(e).toRgbString()},t}(),dS=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function uS(t,e,n){var i;return(i=Math.round(t.h)>=60&&Math.round(t.h)<=240?n?Math.round(t.h)-2*e:Math.round(t.h)+2*e:n?Math.round(t.h)+2*e:Math.round(t.h)-2*e)<0?i+=360:i>=360&&(i-=360),i}function mS(t,e,n){return 0===t.h&&0===t.s?t.s:((i=n?t.s-.16*e:4===e?t.s+.16:t.s+.05*e)>1&&(i=1),n&&5===e&&i>.1&&(i=.1),i<.06&&(i=.06),Number(i.toFixed(2)));var i}function pS(t,e,n){var i;return(i=n?t.v+.05*e:t.v-.15*e)>1&&(i=1),Number(i.toFixed(2))}function gS(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],i=new hS(t),r=5;r>0;r-=1){var a=i.toHsv(),o=new hS({h:uS(a,r,!0),s:mS(a,r,!0),v:pS(a,r,!0)}).toHexString();n.push(o)}n.push(i.toHexString());for(var s=1;s<=4;s+=1){var l=i.toHsv(),c=new hS({h:uS(l,s),s:mS(l,s),v:pS(l,s)}).toHexString();n.push(c)}return"dark"===e.theme?dS.map((function(t){var i=t.index,r=t.opacity;return new hS(e.backgroundColor||"#141414").mix(n[i],100*r).toHexString()})):n}var fS={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},bS={},yS={};function vS(){}function wS(t,e,n){return function(i){return i.lift(new xS(t,e,n))}}Object.keys(fS).forEach((function(t){bS[t]=gS(fS[t]),bS[t].primary=bS[t][5],yS[t]=gS(fS[t],{theme:"dark",backgroundColor:"#141414"}),yS[t].primary=yS[t][5]}));class xS{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new CS(t,this.nextOrObserver,this.error,this.complete))}}class CS extends C{constructor(t,e,n,i){super(t),this._tapNext=vS,this._tapError=vS,this._tapComplete=vS,this._tapError=n||vS,this._tapComplete=i||vS,o(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||vS,this._tapError=e.error||vS,this._tapComplete=e.complete||vS)}_next(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}function kS(t){return e=>e.lift(new SS(t))}class SS{constructor(t){this.callback=t}call(t,e){return e.subscribe(new PS(t,this.callback))}}class PS extends C{constructor(t,e){super(t),this.add(new y(e))}}function _S(t){return function(e){const n=new MS(t),i=e.lift(n);return n.caught=i}}class MS{constructor(t){this.selector=t}call(t,e){return e.subscribe(new DS(t,this.selector,this.caught))}}class DS extends W{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let e;try{e=this.selector(t,this.caught)}catch(t){return void super.error(t)}this._unsubscribeAndRecycle();const n=new U(this);this.add(n);const i=Y(e,n);i!==n&&this.add(i)}}}const ES="[@ant-design/icons-angular]:";function OS(t){Mh()&&r.warn(ES+" "+t+".")}function AS(t){return gS(t)[0]}function TS(t,e){switch(e){case"fill":return t+"-fill";case"outline":return t+"-o";case"twotone":return t+"-twotone";case void 0:return t;default:throw new Error(ES+'Theme "'+e+'" is not a recognized theme!')}}function IS(t){return"object"==typeof t&&"string"==typeof t.name&&("string"==typeof t.theme||void 0===t.theme)&&"string"==typeof t.icon}function LS(t){const e=t.split(":");switch(e.length){case 1:return[t,""];case 2:return[e[1],e[0]];default:throw new Error(ES+"The icon type "+t+" is not valid!")}}function zS(){return new Error(ES+"<svg> tag not found.")}let RS=(()=>{class t{constructor(t,e,n,i){this._rendererFactory=t,this._handler=e,this._document=n,this.sanitizer=i,this.defaultTheme="outline",this._svgDefinitions=new Map,this._svgRenderedDefinitions=new Map,this._inProgressFetches=new Map,this._assetsUrlRoot="",this._twoToneColorPalette={primaryColor:"#333333",secondaryColor:"#E6E6E6"},this._enableJsonpLoading=!1,this._jsonpIconLoad$=new A,this._renderer=this._rendererFactory.createRenderer(null,null),this._handler&&(this._http=new Am(this._handler))}set twoToneColor({primaryColor:t,secondaryColor:e}){this._twoToneColorPalette.primaryColor=t,this._twoToneColorPalette.secondaryColor=e||AS(t)}get twoToneColor(){return Object.assign({},this._twoToneColorPalette)}useJsonpLoading(){this._enableJsonpLoading?OS("You are already using jsonp loading."):(this._enableJsonpLoading=!0,window.__ant_icon_load=t=>{this._jsonpIconLoad$.next(t)})}changeAssetsSource(t){this._assetsUrlRoot=t.endsWith("/")?t:t+"/"}addIcon(...t){t.forEach((t=>{this._svgDefinitions.set(TS(t.name,t.theme),t)}))}addIconLiteral(t,e){const[n,i]=LS(t);if(!i)throw new Error(ES+'Type should have a namespace. Try "namespace:'+name+'".');this.addIcon({name:t,icon:e})}clear(){this._svgDefinitions.clear(),this._svgRenderedDefinitions.clear()}getRenderedContent(t,e){const n=IS(t)?t:this._svgDefinitions.get(t)||null;return(n?Uu(n):this._loadIconDynamically(t)).pipe(L((n=>{if(!n)throw new Error(ES+"the icon "+t+" does not exist or is not registered.");return this._loadSVGFromCacheOrCreateNew(n,e)})))}getCachedIcons(){return this._svgDefinitions}_loadIconDynamically(t){if(!this._http&&!this._enableJsonpLoading)return Uu((r.error(ES+' you need to import "HttpClientModule" to use dynamic importing..'),null));let e=this._inProgressFetches.get(t);if(!e){const[n,i]=LS(t),r=i?{name:t,icon:""}:function(t){const e=t.split("-"),n="o"===(i=e.splice(e.length-1,1)[0])?"outline":i;var i;return{name:e.join("-"),theme:n,icon:""}}(n),a=(i?this._assetsUrlRoot+"assets/"+i+"/"+n:this._assetsUrlRoot+"assets/"+r.theme+"/"+r.name)+(this._enableJsonpLoading?".js":".svg"),o=this.sanitizer.sanitize(Vr.URL,a);if(!o)throw new Error(ES+'The url "'+a+'" is unsafe.');e=(this._enableJsonpLoading?this._loadIconDynamicallyWithJsonp(r,o):this._http.get(o,{responseType:"text"}).pipe(L((t=>Object.assign(Object.assign({},r),{icon:t}))))).pipe(wS((t=>this.addIcon(t))),kS((()=>this._inProgressFetches.delete(t))),_S((()=>Uu(null))),ot()),this._inProgressFetches.set(t,e)}return e}_loadIconDynamicallyWithJsonp(t,e){return new _((n=>{const i=this._document.createElement("script"),r=setTimeout((()=>{a(),n.error(new Error(ES+"Importing timeout error."))}),6e3);function a(){i.parentNode.removeChild(i),clearTimeout(r)}i.src=e,this._document.body.appendChild(i),this._jsonpIconLoad$.pipe(lm((e=>e.name===t.name&&e.theme===t.theme)),JC(1)).subscribe((t=>{n.next(t),a()}))}))}_loadSVGFromCacheOrCreateNew(t,e){let n;const i=e||this._twoToneColorPalette.primaryColor,r=AS(i)||this._twoToneColorPalette.secondaryColor,a="twotone"===t.theme?(s=t.name,l=t.theme,c=i,h=r,TS(s,l)+"-"+c+"-"+h):void 0===t.theme?t.name:TS(t.name,t.theme),o=this._svgRenderedDefinitions.get(a);var s,l,c,h;return o?n=o.icon:(n=this._setSVGAttribute(this._colorizeSVGIcon(this._createSVGElementFromString(""!==LS(t.name)[1]?t.icon:t.icon.replace(/['"]#333['"]/g,'"primaryColor"').replace(/['"]#E6E6E6['"]/g,'"secondaryColor"').replace(/['"]#D9D9D9['"]/g,'"secondaryColor"').replace(/['"]#D8D8D8['"]/g,'"secondaryColor"')),"twotone"===t.theme,i,r)),this._svgRenderedDefinitions.set(a,Object.assign(Object.assign({},t),{icon:n}))),n.cloneNode(!0)}_createSVGElementFromString(t){const e=this._document.createElement("div");e.innerHTML=t;const n=e.querySelector("svg");if(!n)throw zS;return n}_setSVGAttribute(t){return this._renderer.setAttribute(t,"width","1em"),this._renderer.setAttribute(t,"height","1em"),t}_colorizeSVGIcon(t,e,n,i){if(e){const e=t.childNodes,r=e.length;for(let t=0;t<r;t++){const r=e[t];"secondaryColor"===r.getAttribute("fill")?this._renderer.setAttribute(r,"fill",i):this._renderer.setAttribute(r,"fill",n)}}return this._renderer.setAttribute(t,"fill","currentColor"),t}}return t["ɵfac"]=function(e){return new(e||t)(wi(vl),wi(um,8),wi(Hh,8),wi(Tu))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),FS=(()=>{class t{constructor(t,e,n){this._iconService=t,this._elementRef=e,this._renderer=n}ngOnChanges(t){(t.type||t.theme||t.twoToneColor)&&this._changeIcon()}_changeIcon(){return new Promise((t=>{if(this.type){const e=this._getSelfRenderMeta();this._iconService.getRenderedContent(this._parseIconType(this.type,this.theme),this.twoToneColor).subscribe((n=>{var i,r;i=e,r=this._getSelfRenderMeta(),i.type!==r.type||i.theme!==r.theme||i.twoToneColor!==r.twoToneColor?t(null):(this._setSVGElement(n),t(n))}))}else this._clearSVGElement(),t(null)}))}_getSelfRenderMeta(){return{type:this.type,theme:this.theme,twoToneColor:this.twoToneColor}}_parseIconType(t,e){if(IS(t))return t;{const[i,r]=LS(t);return r?t:(n=i).endsWith("-fill")||n.endsWith("-o")||n.endsWith("-twotone")?(e&&OS("'type' "+i+" already gets a theme inside so 'theme' "+e+" would be ignored"),i):TS(i,e||this._iconService.defaultTheme)}var n}_setSVGElement(t){this._clearSVGElement(),this._renderer.appendChild(this._elementRef.nativeElement,t)}_clearSVGElement(){var t;const e=this._elementRef.nativeElement,n=e.childNodes;for(let i=n.length-1;i>=0;i--){const r=n[i];"svg"===(null===(t=r.tagName)||void 0===t?void 0:t.toLowerCase())&&this._renderer.removeChild(e,r)}}}return t["ɵfac"]=function(e){return new(e||t)(Zo(RS),Zo(bl),Zo(wl))},t["ɵdir"]=ne({type:t,selectors:[["","antIcon",""]],inputs:{type:"type",theme:"theme",twoToneColor:"twoToneColor"},features:[pe]}),t})();function BS(t){return e=>e.lift(new VS(t))}class VS{constructor(t){this.value=t}call(t,e){return e.subscribe(new NS(t,this.value))}}class NS extends C{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}const HS=new ni("nz-config"),GS=function(t){return void 0!==t};let ZS=(()=>{class t{constructor(t){this.configUpdated$=new A,this.config=t||{}}getConfig(){return this.config}getConfigForComponent(t){return this.config[t]}getConfigChangeEventForComponent(t){return this.configUpdated$.pipe(lm((e=>e===t)),BS(void 0))}set(t,e){this.config[t]=Object.assign(Object.assign({},this.config[t]),e),this.configUpdated$.next(t)}}return t["ɵfac"]=function(e){return new(e||t)(wi(HS,8))},t["ɵprov"]=vt({factory:function(){return new t(wi(HS,8))},token:t,providedIn:"root"}),t})();function US(){return function(t,e,n){const i="$$__zorroConfigDecorator__"+e;return Object.defineProperty(t,i,{configurable:!0,writable:!0,enumerable:!1}),{get(){var t,r;const a=(null==n?void 0:n.get)?n.get.bind(this)():this[i],o=((null===(t=this.propertyAssignCounter)||void 0===t?void 0:t[e])||0)>1,s=null===(r=this.nzConfigService.getConfigForComponent(this._nzModuleName))||void 0===r?void 0:r[e];return o&&GS(a)?a:GS(s)?s:a},set(t){this.propertyAssignCounter=this.propertyAssignCounter||{},this.propertyAssignCounter[e]=(this.propertyAssignCounter[e]||0)+1,(null==n?void 0:n.set)?n.set.bind(this)(t):this[i]=t},configurable:!0,enumerable:!0}}}const WS={name:"caret-down",theme:"outline",icon:'<svg viewBox="0 0 1024 1024" focusable="false"><path d="M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z" /></svg>'},YS={name:"caret-down",theme:"fill",icon:'<svg viewBox="0 0 1024 1024" focusable="false"><path d="M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z" /></svg>'},jS={name:"clock-circle",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /><path d="M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z" /></svg>'},XS={name:"star",theme:"fill",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /></svg>'},qS=[{name:"bars",theme:"outline",icon:'<svg viewBox="0 0 1024 1024" focusable="false"><path d="M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z" /></svg>'},{name:"calendar",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /></svg>'},{name:"caret-up",theme:"fill",icon:'<svg viewBox="0 0 1024 1024" focusable="false"><path d="M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z" /></svg>'},{name:"caret-up",theme:"outline",icon:'<svg viewBox="0 0 1024 1024" focusable="false"><path d="M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z" /></svg>'},YS,WS,{name:"check-circle",theme:"fill",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z" /></svg>'},{name:"check-circle",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z" /><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /></svg>'},{name:"check",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /></svg>'},jS,{name:"close-circle",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z" /><path d="M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /></svg>'},{name:"close-circle",theme:"fill",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z" /></svg>'},{name:"close",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z" /></svg>'},{name:"copy",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /></svg>'},{name:"double-left",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z" /></svg>'},{name:"double-right",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z" /></svg>'},{name:"down",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /></svg>'},{name:"edit",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z" /></svg>'},{name:"ellipsis",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /></svg>'},{name:"exclamation-circle",theme:"fill",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" /></svg>'},{name:"exclamation-circle",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /><path d="M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z" /></svg>'},{name:"eye",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" /></svg>'},{name:"file",theme:"fill",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2z" /></svg>'},{name:"file",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z" /></svg>'},{name:"filter",theme:"fill",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z" /></svg>'},{name:"info-circle",theme:"fill",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" /></svg>'},{name:"info-circle",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /><path d="M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z" /></svg>'},{name:"left",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" /></svg>'},{name:"loading",theme:"outline",icon:'<svg viewBox="0 0 1024 1024" focusable="false"><path d="M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z" /></svg>'},{name:"paper-clip",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z" /></svg>'},{name:"question-circle",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /><path d="M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" /></svg>'},{name:"right",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" /></svg>'},{name:"rotate-right",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><defs><style /></defs><path d="M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z" /><path d="M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z" /></svg>'},{name:"rotate-left",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><defs><style /></defs><path d="M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z" /><path d="M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z" /></svg>'},XS,{name:"search",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" /></svg>'},XS,{name:"upload",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z" /></svg>'},{name:"vertical-align-top",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z" /></svg>'},{name:"up",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /></svg>'},{name:"swap-right",theme:"outline",icon:'<svg viewBox="0 0 1024 1024" focusable="false"><path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /></svg>'},{name:"zoom-in",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z" /></svg>'},{name:"zoom-out",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z" /></svg>'}],$S=new ni("nz_icons"),KS=(new ni("nz_icon_default_twotone_color"),"#1890ff");let JS=(()=>{class t extends RS{constructor(t,e,n,i,r,a){super(t,i,r,e),this.nzConfigService=n,this.configUpdated$=new A,this.iconfontCache=new Set,this.subscription=null,this.onConfigChange(),this.addIcon(...qS,...a||[]),this.configDefaultTwotoneColor(),this.configDefaultTheme()}ngOnDestroy(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)}normalizeSvgElement(t){t.getAttribute("viewBox")||this._renderer.setAttribute(t,"viewBox","0 0 1024 1024"),(!t.getAttribute("width")||!t.getAttribute("height"))&&(this._renderer.setAttribute(t,"width","1em"),this._renderer.setAttribute(t,"height","1em")),t.getAttribute("fill")||this._renderer.setAttribute(t,"fill","currentColor")}fetchFromIconfont(t){const{scriptUrl:e}=t;if(this._document&&!this.iconfontCache.has(e)){const t=this._renderer.createElement("script");this._renderer.setAttribute(t,"src",e),this._renderer.setAttribute(t,"data-namespace",e.replace(/^(https?|http):/g,"")),this._renderer.appendChild(this._document.body,t),this.iconfontCache.add(e)}}createIconfontIcon(t){return this._createSVGElementFromString('<svg><use xlink:href="'+t+'"></svg>')}onConfigChange(){this.subscription=this.nzConfigService.getConfigChangeEventForComponent("icon").subscribe((()=>{this.configDefaultTwotoneColor(),this.configDefaultTheme(),this.configUpdated$.next()}))}configDefaultTheme(){const t=this.getConfig();this.defaultTheme=t.nzTheme||"outline"}configDefaultTwotoneColor(){const t=this.getConfig().nzTwotoneColor||KS;let e=KS;t&&(t.startsWith("#")?e=t:Bb("Twotone color must be a hex color!")),this.twoToneColor={primaryColor:e}}getConfig(){return this.nzConfigService.getConfigForComponent("icon")||{}}}return t["ɵfac"]=function(e){return new(e||t)(wi(vl),wi(Tu),wi(ZS),wi(um,8),wi(Hh,8),wi($S,8))},t["ɵprov"]=vt({factory:function(){return new t(wi(vl),wi(Tu),wi(ZS),wi(um,8),wi(Hh,8),wi($S,8))},token:t,providedIn:"root"}),t})();const QS=new ni("nz_icons_patch");let tP=(()=>{class t{constructor(t,e){this.extraIcons=t,this.rootIconService=e,this.patched=!1}doPatch(){this.patched||(this.extraIcons.forEach((t=>this.rootIconService.addIcon(t))),this.patched=!0)}}return t["ɵfac"]=function(e){return new(e||t)(wi(QS,2),wi(JS))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),eP=(()=>{class t extends FS{constructor(t,e,n,i,r){super(n,e,i),this.ngZone=t,this.iconService=n,this.renderer=i,this.cacheClassName=null,this.nzRotate=0,this.spin=!1,this.destroy$=new A,r&&r.doPatch(),this.el=e.nativeElement}set nzSpin(t){this.spin=t}set nzType(t){this.type=t}set nzTheme(t){this.theme=t}set nzTwotoneColor(t){this.twoToneColor=t}set nzIconfont(t){this.iconfont=t}ngOnChanges(t){const{nzType:e,nzTwotoneColor:n,nzSpin:i,nzTheme:r,nzRotate:a}=t;e||n||i||r?this.changeIcon2():a?this.handleRotate(this.el.firstChild):this._setSVGElement(this.iconService.createIconfontIcon("#"+this.iconfont))}ngOnInit(){this.renderer.setAttribute(this.el,"class",("anticon "+this.el.className).trim())}ngAfterContentChecked(){if(!this.type){const t=this.el.children;let e=t.length;if(!this.type&&t.length)for(;e--;){const n=t[e];"svg"===n.tagName.toLowerCase()&&this.iconService.normalizeSvgElement(n)}}}ngOnDestroy(){this.destroy$.next()}changeIcon2(){this.setClassName(),this.ngZone.runOutsideAngular((()=>{Z(this._changeIcon()).pipe(aC(this.destroy$)).subscribe((t=>{t&&(this.setSVGData(t),this.handleSpin(t),this.handleRotate(t))}))}))}handleSpin(t){this.spin||"loading"===this.type?this.renderer.addClass(t,"anticon-spin"):this.renderer.removeClass(t,"anticon-spin")}handleRotate(t){this.nzRotate?this.renderer.setAttribute(t,"style","transform: rotate("+this.nzRotate+"deg)"):this.renderer.removeAttribute(t,"style")}setClassName(){this.cacheClassName&&this.renderer.removeClass(this.el,this.cacheClassName),this.cacheClassName="anticon-"+this.type,this.renderer.addClass(this.el,this.cacheClassName)}setSVGData(t){this.renderer.setAttribute(t,"data-icon",this.type),this.renderer.setAttribute(t,"aria-hidden","true")}}return t["ɵfac"]=function(e){return new(e||t)(Zo(ph),Zo(bl),Zo(JS),Zo(wl),Zo(tP,8))},t["ɵdir"]=ne({type:t,selectors:[["","nz-icon",""]],hostVars:2,hostBindings:function(t,e){2&t&&Cs("anticon",!0)},inputs:{nzRotate:"nzRotate",nzSpin:"nzSpin",nzType:"nzType",nzTheme:"nzTheme",nzTwotoneColor:"nzTwotoneColor",nzIconfont:"nzIconfont"},exportAs:["nzIcon"],features:[Co,pe]}),Bk([hx()],t.prototype,"nzSpin",null),t})(),nP=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[{provide:$S,useValue:e}]}}static forChild(e){return{ngModule:t,providers:[tP,{provide:QS,useValue:e}]}}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({imports:[[yC]]}),t})();class iP{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new rP(t,this.dueTime,this.scheduler))}}class rP extends C{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(aP,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function aP(t){t.debouncedNext()}class oP{constructor(t){this.total=t}call(t,e){return e.subscribe(new sP(t,this.total))}}class sP extends C{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}let lP=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵprov"]=vt({factory:function(){return new t},token:t,providedIn:"root"}),t})(),cP=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({providers:[lP]}),t})();class hP extends class{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new A,this._typeaheadSubscription=y.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new A,this.change=new A,t instanceof Oc&&t.changes.subscribe((t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}}))}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(wS((t=>this._pressedLetters.push(t))),function(t,e=Jx){return n=>n.lift(new iP(t,e))}(t),lm((()=>this._pressedLetters.length>0)),L((()=>this._pressedLetters.join("")))).subscribe((t=>{const e=this._getItemsArray();for(let n=1;n<e.length+1;n++){const i=(this._activeItemIndex+n)%e.length,r=e[i];if(!this._skipPredicateFn(r)&&0===r.getLabel().toUpperCase().trim().indexOf(t)){this.setActiveItem(i);break}}this._pressedLetters=[]})),this}withHomeAndEnd(t=!0){return this._homeAndEnd=t,this}setActiveItem(t){const e=this._activeItem;this.updateActiveItem(t),this._activeItem!==e&&this.change.next(this._activeItemIndex)}onKeydown(t){const e=t.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every((e=>!t[e]||this._allowedModifierKeys.indexOf(e)>-1));switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&n){this.setNextItemActive();break}return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&n){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&n){this.setLastItemActive();break}return;default:return void((n||ik(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),i=e[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let n=1;n<=e.length;n++){const i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof Oc?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let dP=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return!!((e=t).offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)&&"visible"===getComputedStyle(t).visibility;var e}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(t){return null}}((n=t).ownerDocument&&n.ownerDocument.defaultView||window);var n;if(e&&(-1===mP(e)||!this.isVisible(e)))return!1;let i=t.nodeName.toLowerCase(),r=mP(t);return t.hasAttribute("contenteditable")?-1!==r:!("iframe"===i||"object"===i||this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&("audio"===i?!!t.hasAttribute("controls")&&-1!==r:"video"===i?-1!==r&&(null!==r||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return!("input"==(r=n=t).nodeName.toLowerCase()&&"hidden"==r.type)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(n)||"a"==(i=n).nodeName.toLowerCase()&&i.hasAttribute("href")||n.hasAttribute("contenteditable")||uP(n))&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t));var n,i,r}}return t["ɵfac"]=function(e){return new(e||t)(wi(bC))},t["ɵprov"]=vt({factory:function(){return new t(wi(bC))},token:t,providedIn:"root"}),t})();function uP(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function mP(t){if(!uP(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class pP{constructor(t,e,n,i,r=!1){this._element=t,this._checker=e,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular((()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))})),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(t){return new Promise((e=>{this._executeOnStable((()=>e(this.focusInitialElement(t))))}))}focusFirstTabbableElementWhenReady(t){return new Promise((e=>{this._executeOnStable((()=>e(this.focusFirstTabbableElement(t))))}))}focusLastTabbableElementWhenReady(t){return new Promise((e=>{this._executeOnStable((()=>e(this.focusLastTabbableElement(t))))}))}_getRegionBoundary(t){let e=this._element.querySelectorAll("[cdk-focus-region-"+t+"], [cdkFocusRegion"+t+"], [cdk-focus-"+t+"]");for(let n=0;n<e.length;n++)e[n].hasAttribute("cdk-focus-"+t)?r.warn("Found use of deprecated attribute 'cdk-focus-"+t+"', use 'cdkFocusRegion"+t+"' instead. The deprecated attribute will be removed in 8.0.0.",e[n]):e[n].hasAttribute("cdk-focus-region-"+t)&&r.warn("Found use of deprecated attribute 'cdk-focus-region-"+t+"', use 'cdkFocusRegion"+t+"' instead. The deprecated attribute will be removed in 8.0.0.",e[n]);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(t){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(e.hasAttribute("cdk-focus-initial")&&r.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",e),!this._checker.isFocusable(e)){const n=this._getFirstTabbableElement(e);return null==n||n.focus(t),!!n}return e.focus(t),!0}return this.focusFirstTabbableElement(t)}focusFirstTabbableElement(t){const e=this._getRegionBoundary("start");return e&&e.focus(t),!!e}focusLastTabbableElement(t){const e=this._getRegionBoundary("end");return e&&e.focus(t),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children||t.childNodes;for(let t=0;t<e.length;t++){let n=e[t].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[t]):null;if(n)return n}return null}_getLastTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children||t.childNodes;for(let t=e.length-1;t>=0;t--){let n=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(n)return n}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(JC(1)).subscribe(t)}}let gP=(()=>{class t{constructor(t,e,n){this._checker=t,this._ngZone=e,this._document=n}create(t,e=!1){return new pP(t,this._checker,this._ngZone,this._document,e)}}return t["ɵfac"]=function(e){return new(e||t)(wi(dP),wi(ph),wi(Hh))},t["ɵprov"]=vt({factory:function(){return new t(wi(dP),wi(ph),wi(Hh))},token:t,providedIn:"root"}),t})();function fP(t){return 0===t.offsetX&&0===t.offsetY}function bP(t){const e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}"undefined"!=typeof Element&∈const yP=new ni("cdk-input-modality-detector-options"),vP={ignoreKeys:[18,17,224,91,16]},wP=vC({passive:!0,capture:!0});let xP=(()=>{class t{constructor(t,e,n,i){this._platform=t,this._mostRecentTarget=null,this._modality=new Lb(null),this._lastTouchMs=0,this._onKeydown=t=>{var e,n;(null===(n=null===(e=this._options)||void 0===e?void 0:e.ignoreKeys)||void 0===n?void 0:n.some((e=>e===t.keyCode)))||(this._modality.next("keyboard"),this._mostRecentTarget=kC(t))},this._onMousedown=t=>{Date.now()-this._lastTouchMs<650||(this._modality.next(fP(t)?"keyboard":"mouse"),this._mostRecentTarget=kC(t))},this._onTouchstart=t=>{bP(t)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=kC(t))},this._options=Object.assign(Object.assign({},vP),i),this.modalityDetected=this._modality.pipe((t=>t.lift(new oP(1)))),this.modalityChanged=this.modalityDetected.pipe(qx()),t.isBrowser&&e.runOutsideAngular((()=>{n.addEventListener("keydown",this._onKeydown,wP),n.addEventListener("mousedown",this._onMousedown,wP),n.addEventListener("touchstart",this._onTouchstart,wP)}))}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,wP),document.removeEventListener("mousedown",this._onMousedown,wP),document.removeEventListener("touchstart",this._onTouchstart,wP))}}return t["ɵfac"]=function(e){return new(e||t)(wi(bC),wi(ph),wi(Hh),wi(yP,8))},t["ɵprov"]=vt({factory:function(){return new t(wi(bC),wi(ph),wi(Hh),wi(yP,8))},token:t,providedIn:"root"}),t})();const CP=new ni("cdk-focus-monitor-default-options"),kP=vC({passive:!0,capture:!0});let SP=(()=>{class t{constructor(t,e,n,i,r){this._ngZone=t,this._platform=e,this._inputModalityDetector=n,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout((()=>this._windowFocused=!1))},this._stopInputModalityDetector=new A,this._rootNodeFocusAndBlurListener=t=>{const e=kC(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let i=e;i;i=i.parentElement)n.call(this,t,i)},this._document=i,this._detectionMode=(null==r?void 0:r.detectionMode)||0}monitor(t,e=!1){const n=ex(t);if(!this._platform.isBrowser||1!==n.nodeType)return Uu(null);const i=CC(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return e&&(r.checkChildren=!0),r.subject;const a={checkChildren:e,subject:new A,rootNode:i};return this._elementInfo.set(n,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(t){const e=ex(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}focusVia(t,e,n){const i=ex(t);i===this._getDocument().activeElement?this._getClosestElementsInfo(i).forEach((([t,n])=>this._originChanged(t,e,n))):(this._setOrigin(e),"function"==typeof i.focus&&i.focus(n))}ngOnDestroy(){this._elementInfo.forEach(((t,e)=>this.stopMonitoring(e)))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,n){n?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(t){return 1===this._detectionMode||!!(null==t?void 0:t.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOrigin(t,e=!1){this._ngZone.runOutsideAngular((()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&e,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout((()=>this._origin=null),this._originFromTouchInteraction?650:1))}))}_onFocus(t,e){const n=this._elementInfo.get(e),i=kC(t);!n||!n.checkChildren&&e!==i||this._originChanged(e,this._getFocusOrigin(i),n)}_onBlur(t,e){const n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}_emitOrigin(t,e){this._ngZone.run((()=>t.next(e)))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,n=this._rootNodeFocusListenerCount.get(e)||0;n||this._ngZone.runOutsideAngular((()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,kP),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,kP)})),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular((()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)})),this._inputModalityDetector.modalityDetected.pipe(aC(this._stopInputModalityDetector)).subscribe((t=>{this._setOrigin(t,!0)})))}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,kP),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,kP),this._rootNodeFocusListenerCount.delete(e))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,e,n){this._setClasses(t,e),this._emitOrigin(n.subject,e),this._lastFocusOrigin=e}_getClosestElementsInfo(t){const e=[];return this._elementInfo.forEach(((n,i)=>{(i===t||n.checkChildren&&i.contains(t))&&e.push([i,n])})),e}}return t["ɵfac"]=function(e){return new(e||t)(wi(ph),wi(bC),wi(xP),wi(Hh,8),wi(CP,8))},t["ɵprov"]=vt({factory:function(){return new t(wi(ph),wi(bC),wi(xP),wi(Hh,8),wi(CP,8))},token:t,providedIn:"root"}),t})(),PP=(()=>{class t{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new Dc}ngAfterViewInit(){const t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,1===t.nodeType&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe((t=>this.cdkFocusChange.emit(t)))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(bl),Zo(SP))},t["ɵdir"]=ne({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})();const _P="cdk-high-contrast-black-on-white",MP="cdk-high-contrast-white-on-black",DP="cdk-high-contrast-active";let EP=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(DP),t.remove(_P),t.remove(MP),this._hasCheckedHighContrastMode=!0;const e=this.getHighContrastMode();1===e?(t.add(DP),t.add(_P)):2===e&&(t.add(DP),t.add(MP))}}}return t["ɵfac"]=function(e){return new(e||t)(wi(bC),wi(Hh))},t["ɵprov"]=vt({factory:function(){return new t(wi(bC),wi(Hh))},token:t,providedIn:"root"}),t})(),OP=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t["ɵfac"]=function(e){return new(e||t)(wi(EP))},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({imports:[[yC,cP]]}),t})(),AP=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({}),t})();const TP=new Set;let IP,LP=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):zP}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&function(t){if(!TP.has(t))try{IP||(IP=document.createElement("style"),IP.setAttribute("type","text/css"),document.head.appendChild(IP)),IP.sheet&&(IP.sheet.insertRule("@media "+t+" {body{ }}",0),TP.add(t))}catch(t){r.error(t)}}(t),this._matchMedia(t)}}return t["ɵfac"]=function(e){return new(e||t)(wi(bC))},t["ɵprov"]=vt({factory:function(){return new t(wi(bC))},token:t,providedIn:"root"}),t})();function zP(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}const RP=()=>{};let FP=(()=>{class t{constructor(t,e){this.ngZone=t,this.rendererFactory2=e,this.resizeSource$=new A,this.listeners=0,this.disposeHandle=RP,this.handler=()=>{this.ngZone.run((()=>{this.resizeSource$.next()}))},this.renderer=this.rendererFactory2.createRenderer(null,null)}ngOnDestroy(){this.handler=RP}subscribe(){return this.registerListener(),this.resizeSource$.pipe(rC(16),kS((()=>this.unregisterListener())))}unsubscribe(){this.unregisterListener()}registerListener(){0===this.listeners&&this.ngZone.runOutsideAngular((()=>{this.disposeHandle=this.renderer.listen("window","resize",this.handler)})),this.listeners+=1}unregisterListener(){this.listeners-=1,0===this.listeners&&(this.disposeHandle(),this.disposeHandle=RP)}}return t["ɵfac"]=function(e){return new(e||t)(wi(ph),wi(vl))},t["ɵprov"]=vt({factory:function(){return new t(wi(ph),wi(vl))},token:t,providedIn:"root"}),t})();new Map;let BP=(()=>{class t{constructor(){this._singletonRegistry=new Map}get singletonRegistry(){return this._singletonRegistry}registerSingletonWithKey(t,e){const n=this.singletonRegistry.has(t),i=n?this.singletonRegistry.get(t):this.withNewTarget(e);n||this.singletonRegistry.set(t,i)}getSingletonWithKey(t){return this.singletonRegistry.has(t)?this.singletonRegistry.get(t).target:null}withNewTarget(t){return{target:t}}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵprov"]=vt({factory:function(){return new t},token:t,providedIn:"root"}),t})();var VP,NP=((VP=NP||(NP={})).xxl="xxl",VP.xl="xl",VP.lg="lg",VP.md="md",VP.sm="sm",VP.xs="xs",NP);const HP={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"};let GP=(()=>{class t{constructor(t,e){this.resizeService=t,this.mediaMatcher=e,this.resizeService.subscribe().subscribe((()=>{}))}subscribe(t,e){if(e){const e=()=>this.matchMedia(t,!0);return this.resizeService.subscribe().pipe(L(e),cC(e()),qx(((t,e)=>t[0]===e[0])),L((t=>t[1])))}{const e=()=>this.matchMedia(t);return this.resizeService.subscribe().pipe(L(e),cC(e()),qx())}}matchMedia(t,e){let n=NP.md;const i={};return Object.keys(t).map((t=>{const e=t,r=this.mediaMatcher.matchMedia(HP[e]).matches;i[t]=r,r&&(n=e)})),e?[n,i]:n}}return t["ɵfac"]=function(e){return new(e||t)(wi(FP),wi(LP))},t["ɵprov"]=vt({factory:function(){return new t(wi(FP),wi(LP))},token:t,providedIn:"root"}),t})(),ZP=(()=>{class t extends A{ngOnDestroy(){this.next(),this.complete()}}return t["ɵfac"]=function(){let e;return function(n){return(e||(e=Kn(t)))(n||t)}}(),t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})();function UP(t,e){if(1&t&&Xo(0,"span",7),2&t){const t=os(2);Uo("icon",t.nzAddOnBeforeIcon)("template",t.nzAddOnBefore)}}function WP(t,e){}function YP(t,e){if(1&t&&(Yo(0,"span",8),Ho(1,WP,0,0,"ng-template",9),jo()),2&t){const t=os(2),e=Go(4);Cs("ant-input-affix-wrapper-sm",t.isSmall)("ant-input-affix-wrapper-lg",t.isLarge),sa(1),Uo("ngTemplateOutlet",e)}}function jP(t,e){if(1&t&&Xo(0,"span",7),2&t){const t=os(2);Uo("icon",t.nzAddOnAfterIcon)("template",t.nzAddOnAfter)}}function XP(t,e){if(1&t&&(Yo(0,"span",4),Ho(1,UP,1,2,"span",5),Ho(2,YP,2,5,"span",6),Ho(3,jP,1,2,"span",5),jo()),2&t){const t=os(),e=Go(6);sa(1),Uo("ngIf",t.nzAddOnBefore||t.nzAddOnBeforeIcon),sa(1),Uo("ngIf",t.isAffix)("ngIfElse",e),sa(1),Uo("ngIf",t.nzAddOnAfter||t.nzAddOnAfterIcon)}}function qP(t,e){}function $P(t,e){1&t&&Ho(0,qP,0,0,"ng-template",9),2&t&&(os(2),Uo("ngTemplateOutlet",Go(4)))}function KP(t,e){if(1&t&&Ho(0,$P,1,1,"ng-template",10),2&t){const t=os(),e=Go(6);Uo("ngIf",t.isAffix)("ngIfElse",e)}}function JP(t,e){if(1&t&&Xo(0,"span",13),2&t){const t=os(2);Uo("icon",t.nzPrefixIcon)("template",t.nzPrefix)}}function QP(t,e){}function t_(t,e){if(1&t&&Xo(0,"span",14),2&t){const t=os(2);Uo("icon",t.nzSuffixIcon)("template",t.nzSuffix)}}function e_(t,e){if(1&t&&(Ho(0,JP,1,2,"span",11),Ho(1,QP,0,0,"ng-template",9),Ho(2,t_,1,2,"span",12)),2&t){const t=os(),e=Go(6);Uo("ngIf",t.nzPrefix||t.nzPrefixIcon),sa(1),Uo("ngTemplateOutlet",e),sa(1),Uo("ngIf",t.nzSuffix||t.nzSuffixIcon)}}function n_(t,e){1&t&&cs(0)}const i_=["*"],r_=["nz-input-group-slot",""];function a_(t,e){1&t&&Xo(0,"i",2),2&t&&Uo("nzType",os().icon)}function o_(t,e){if(1&t&&(qo(0),Bs(1),$o()),2&t){const t=os();sa(1),Vs(t.template)}}let s_=(()=>{class t{constructor(t,e,n,i){this.ngControl=t,this.directionality=i,this.nzBorderless=!1,this.nzSize="default",this._disabled=!1,this.disabled$=new A,this.dir="ltr",this.destroy$=new A,e.addClass(n.nativeElement,"ant-input")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=null!=t&&"false"!=""+t}ngOnInit(){var t,e;this.ngControl&&(null===(t=this.ngControl.statusChanges)||void 0===t||t.pipe(lm((()=>null!==this.ngControl.disabled)),aC(this.destroy$)).subscribe((()=>{this.disabled$.next(this.ngControl.disabled)}))),this.dir=this.directionality.value,null===(e=this.directionality.change)||void 0===e||e.pipe(aC(this.destroy$)).subscribe((t=>{this.dir=t}))}ngOnChanges(t){const{disabled:e}=t;e&&this.disabled$.next(this.disabled)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(wp,10),Zo(wl),Zo(bl),Zo(Fx,8))},t["ɵdir"]=ne({type:t,selectors:[["input","nz-input",""],["textarea","nz-input",""]],hostVars:11,hostBindings:function(t,e){2&t&&(Fo("disabled",e.disabled||null),Cs("ant-input-disabled",e.disabled)("ant-input-borderless",e.nzBorderless)("ant-input-lg","large"===e.nzSize)("ant-input-sm","small"===e.nzSize)("ant-input-rtl","rtl"===e.dir))},inputs:{nzBorderless:"nzBorderless",nzSize:"nzSize",disabled:"disabled"},exportAs:["nzInput"],features:[pe]}),Bk([hx()],t.prototype,"nzBorderless",void 0),t})(),l_=(()=>{class t{constructor(t){this.elementRef=t}}return t["ɵfac"]=function(e){return new(e||t)(Zo(bl))},t["ɵdir"]=ne({type:t,selectors:[["nz-input-group","nzSuffix",""],["nz-input-group","nzPrefix",""]]}),t})(),c_=(()=>{class t{constructor(t,e,n,i){this.focusMonitor=t,this.elementRef=e,this.cdr=n,this.directionality=i,this.nzAddOnBeforeIcon=null,this.nzAddOnAfterIcon=null,this.nzPrefixIcon=null,this.nzSuffixIcon=null,this.nzSize="default",this.nzSearch=!1,this.nzCompact=!1,this.isLarge=!1,this.isSmall=!1,this.isAffix=!1,this.isAddOn=!1,this.focused=!1,this.disabled=!1,this.dir="ltr",this.destroy$=new A}updateChildrenInputSize(){this.listOfNzInputDirective&&this.listOfNzInputDirective.forEach((t=>t.nzSize=this.nzSize))}ngOnInit(){var t;this.focusMonitor.monitor(this.elementRef,!0).pipe(aC(this.destroy$)).subscribe((t=>{this.focused=!!t,this.cdr.markForCheck()})),this.dir=this.directionality.value,null===(t=this.directionality.change)||void 0===t||t.pipe(aC(this.destroy$)).subscribe((t=>{this.dir=t}))}ngAfterContentInit(){this.updateChildrenInputSize();const t=this.listOfNzInputDirective.changes.pipe(cC(this.listOfNzInputDirective));t.pipe(Ju((e=>J(t,...e.map((t=>t.disabled$))))),j((()=>t)),L((t=>t.some((t=>t.disabled)))),aC(this.destroy$)).subscribe((t=>{this.disabled=t,this.cdr.markForCheck()}))}ngOnChanges(t){const{nzSize:e,nzSuffix:n,nzPrefix:i,nzPrefixIcon:r,nzSuffixIcon:a,nzAddOnAfter:o,nzAddOnBefore:s,nzAddOnAfterIcon:l,nzAddOnBeforeIcon:c}=t;e&&(this.updateChildrenInputSize(),this.isLarge="large"===this.nzSize,this.isSmall="small"===this.nzSize),(n||i||r||a)&&(this.isAffix=!!(this.nzSuffix||this.nzPrefix||this.nzPrefixIcon||this.nzSuffixIcon)),(o||s||l||c)&&(this.isAddOn=!!(this.nzAddOnAfter||this.nzAddOnBefore||this.nzAddOnAfterIcon||this.nzAddOnBeforeIcon))}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.destroy$.next(),this.destroy$.complete()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(SP),Zo(bl),Zo(Gl),Zo(Fx,8))},t["ɵcmp"]=qt({type:t,selectors:[["nz-input-group"]],contentQueries:function(t,e,n){if(1&t&&Hc(n,s_,4),2&t){let t;Vc(t=Gc())&&(e.listOfNzInputDirective=t)}},hostVars:40,hostBindings:function(t,e){2&t&&Cs("ant-input-group-compact",e.nzCompact)("ant-input-search-enter-button",e.nzSearch)("ant-input-search",e.nzSearch)("ant-input-search-rtl","rtl"===e.dir)("ant-input-search-sm",e.nzSearch&&e.isSmall)("ant-input-search-large",e.nzSearch&&e.isLarge)("ant-input-group-wrapper",e.isAddOn)("ant-input-group-wrapper-rtl","rtl"===e.dir)("ant-input-group-wrapper-lg",e.isAddOn&&e.isLarge)("ant-input-group-wrapper-sm",e.isAddOn&&e.isSmall)("ant-input-affix-wrapper",e.isAffix&&!e.isAddOn)("ant-input-affix-wrapper-rtl","rtl"===e.dir)("ant-input-affix-wrapper-focused",e.isAffix&&e.focused)("ant-input-affix-wrapper-disabled",e.isAffix&&e.disabled)("ant-input-affix-wrapper-lg",e.isAffix&&!e.isAddOn&&e.isLarge)("ant-input-affix-wrapper-sm",e.isAffix&&!e.isAddOn&&e.isSmall)("ant-input-group",!e.isAffix&&!e.isAddOn)("ant-input-group-rtl","rtl"===e.dir)("ant-input-group-lg",!e.isAffix&&!e.isAddOn&&e.isLarge)("ant-input-group-sm",!e.isAffix&&!e.isAddOn&&e.isSmall)},inputs:{nzAddOnBeforeIcon:"nzAddOnBeforeIcon",nzAddOnAfterIcon:"nzAddOnAfterIcon",nzPrefixIcon:"nzPrefixIcon",nzSuffixIcon:"nzSuffixIcon",nzSize:"nzSize",nzSearch:"nzSearch",nzCompact:"nzCompact",nzAddOnBefore:"nzAddOnBefore",nzAddOnAfter:"nzAddOnAfter",nzPrefix:"nzPrefix",nzSuffix:"nzSuffix"},exportAs:["nzInputGroup"],features:[pe],ngContentSelectors:i_,decls:7,vars:2,consts:[["class","ant-input-wrapper ant-input-group",4,"ngIf","ngIfElse"],["noAddOnTemplate",""],["affixTemplate",""],["contentTemplate",""],[1,"ant-input-wrapper","ant-input-group"],["nz-input-group-slot","","type","addon",3,"icon","template",4,"ngIf"],["class","ant-input-affix-wrapper",3,"ant-input-affix-wrapper-sm","ant-input-affix-wrapper-lg",4,"ngIf","ngIfElse"],["nz-input-group-slot","","type","addon",3,"icon","template"],[1,"ant-input-affix-wrapper"],[3,"ngTemplateOutlet"],[3,"ngIf","ngIfElse"],["nz-input-group-slot","","type","prefix",3,"icon","template",4,"ngIf"],["nz-input-group-slot","","type","suffix",3,"icon","template",4,"ngIf"],["nz-input-group-slot","","type","prefix",3,"icon","template"],["nz-input-group-slot","","type","suffix",3,"icon","template"]],template:function(t,e){if(1&t&&(ls(),Ho(0,XP,4,4,"span",0),Ho(1,KP,1,2,"ng-template",null,1,Yc),Ho(3,e_,3,3,"ng-template",null,2,Yc),Ho(5,n_,1,0,"ng-template",null,3,Yc)),2&t){const t=Go(2);Uo("ngIf",e.isAddOn)("ngIfElse",t)}},directives:function(){return[Yd,h_,tu]},encapsulation:2,changeDetection:0}),Bk([hx()],t.prototype,"nzSearch",void 0),Bk([hx()],t.prototype,"nzCompact",void 0),t})(),h_=(()=>{class t{constructor(){this.icon=null,this.type=null,this.template=null}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵcmp"]=qt({type:t,selectors:[["","nz-input-group-slot",""]],hostVars:6,hostBindings:function(t,e){2&t&&Cs("ant-input-group-addon","addon"===e.type)("ant-input-prefix","prefix"===e.type)("ant-input-suffix","suffix"===e.type)},inputs:{icon:"icon",type:"type",template:"template"},attrs:r_,decls:2,vars:2,consts:[["nz-icon","",3,"nzType",4,"ngIf"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"]],template:function(t,e){1&t&&(Ho(0,a_,1,1,"i",0),Ho(1,o_,2,1,"ng-container",1)),2&t&&(Uo("ngIf",e.icon),sa(1),Uo("nzStringTemplateOutlet",e.template))},directives:[Yd,Uk,eP],encapsulation:2,changeDetection:0}),t})(),d_=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({imports:[[Vx,nu,nP,yC,Yk]]}),t})();function u_(t){return new _((e=>{let n;try{n=t()}catch(t){return void e.error(t)}return(n?Z(n):Zu()).subscribe(e)}))}function m_(t){return t instanceof Date&&!isNaN(+t)}function p_(t,e=Jx){const n=m_(t)?+t-e.now():Math.abs(t);return t=>t.lift(new g_(n,e))}class g_{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new f_(t,this.delay,this.scheduler))}}class f_ extends C{constructor(t,e,n){super(t),this.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,n=e.queue,i=t.scheduler,r=t.destination;for(;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){const e=Math.max(0,n[0].time-i.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(f_.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new b_(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(ju.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(ju.createComplete()),this.unsubscribe()}}class b_{constructor(t,e){this.time=t,this.notification=e}}let y_=(()=>{class t{}return t.SLOW="0.3s",t.BASE="0.2s",t.FAST="0.1s",t})(),v_=(()=>{class t{}return t.EASE_BASE_OUT="cubic-bezier(0.7, 0.3, 0.1, 1)",t.EASE_BASE_IN="cubic-bezier(0.9, 0, 0.3, 0.7)",t.EASE_OUT="cubic-bezier(0.215, 0.61, 0.355, 1)",t.EASE_IN="cubic-bezier(0.55, 0.055, 0.675, 0.19)",t.EASE_IN_OUT="cubic-bezier(0.645, 0.045, 0.355, 1)",t.EASE_OUT_BACK="cubic-bezier(0.12, 0.4, 0.29, 1.46)",t.EASE_IN_BACK="cubic-bezier(0.71, -0.46, 0.88, 0.6)",t.EASE_IN_OUT_BACK="cubic-bezier(0.71, -0.46, 0.29, 1.46)",t.EASE_OUT_CIRC="cubic-bezier(0.08, 0.82, 0.17, 1)",t.EASE_IN_CIRC="cubic-bezier(0.6, 0.04, 0.98, 0.34)",t.EASE_IN_OUT_CIRC="cubic-bezier(0.78, 0.14, 0.15, 0.86)",t.EASE_OUT_QUINT="cubic-bezier(0.23, 1, 0.32, 1)",t.EASE_IN_QUINT="cubic-bezier(0.755, 0.05, 0.855, 0.06)",t.EASE_IN_OUT_QUINT="cubic-bezier(0.86, 0, 0.07, 1)",t})();const w_=Xp("collapseMotion",[Jp("expanded",Kp({height:"*"})),Jp("collapsed",Kp({height:0,overflow:"hidden"})),Jp("hidden",Kp({height:0,overflow:"hidden",borderTopWidth:"0"})),Qp("expanded => collapsed",qp("150ms "+v_.EASE_IN_OUT)),Qp("expanded => hidden",qp("150ms "+v_.EASE_IN_OUT)),Qp("collapsed => expanded",qp("150ms "+v_.EASE_IN_OUT)),Qp("hidden => expanded",qp("150ms "+v_.EASE_IN_OUT))]),x_=Xp("treeCollapseMotion",[Qp("* => *",[tg("nz-tree-node:leave,nz-tree-builtin-node:leave",[Kp({overflow:"hidden"}),eg(0,[qp("150ms "+v_.EASE_IN_OUT,Kp({height:0,opacity:0,"padding-bottom":0}))])],{optional:!0}),tg("nz-tree-node:enter,nz-tree-builtin-node:enter",[Kp({overflow:"hidden",height:0,opacity:0,"padding-bottom":0}),eg(0,[qp("150ms "+v_.EASE_IN_OUT,Kp({overflow:"hidden",height:"*",opacity:"*","padding-bottom":"*"}))])],{optional:!0})])]),C_=(Xp("fadeMotion",[Qp(":enter",[Kp({opacity:0}),qp(""+y_.BASE,Kp({opacity:1}))]),Qp(":leave",[Kp({opacity:1}),qp(""+y_.BASE,Kp({opacity:0}))])]),Xp("helpMotion",[Qp(":enter",[Kp({opacity:0,transform:"translateY(-5px)"}),qp(y_.SLOW+" "+v_.EASE_IN_OUT,Kp({opacity:1,transform:"translateY(0)"}))]),Qp(":leave",[Kp({opacity:1,transform:"translateY(0)"}),qp(y_.SLOW+" "+v_.EASE_IN_OUT,Kp({opacity:0,transform:"translateY(-5px)"}))])]),Xp("moveUpMotion",[Qp("* => enter",[Kp({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}),qp(""+y_.BASE,Kp({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}))]),Qp("* => leave",[Kp({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}),qp(""+y_.BASE,Kp({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}))])])),k_=(Xp("notificationMotion",[Jp("enterRight",Kp({opacity:1,transform:"translateX(0)"})),Qp("* => enterRight",[Kp({opacity:0,transform:"translateX(5%)"}),qp("100ms linear")]),Jp("enterLeft",Kp({opacity:1,transform:"translateX(0)"})),Qp("* => enterLeft",[Kp({opacity:0,transform:"translateX(-5%)"}),qp("100ms linear")]),Jp("leave",Kp({opacity:0,transform:"scaleY(0.8)",transformOrigin:"0% 0%"})),Qp("* => leave",[Kp({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),qp("100ms linear")])]),y_.BASE+" "+v_.EASE_OUT_QUINT),S_=y_.BASE+" "+v_.EASE_IN_QUINT,P_=Xp("slideMotion",[Jp("void",Kp({opacity:0,transform:"scaleY(0.8)"})),Jp("enter",Kp({opacity:1,transform:"scaleY(1)"})),Qp("void => *",[qp(k_)]),Qp("* => void",[qp(S_)])]),__=(Xp("slideAlertMotion",[Qp(":leave",[Kp({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),qp(y_.SLOW+" "+v_.EASE_IN_OUT_CIRC,Kp({opacity:0,transform:"scaleY(0)",transformOrigin:"0% 0%"}))])]),Xp("zoomBigMotion",[Qp("void => active",[Kp({opacity:0,transform:"scale(0.8)"}),qp(y_.BASE+" "+v_.EASE_OUT_CIRC,Kp({opacity:1,transform:"scale(1)"}))]),Qp("active => void",[Kp({opacity:1,transform:"scale(1)"}),qp(y_.BASE+" "+v_.EASE_IN_OUT_CIRC,Kp({opacity:0,transform:"scale(0.8)"}))])])),M_=Xp("zoomBadgeMotion",[Qp(":enter",[Kp({opacity:0,transform:"scale(0) translate(50%, -50%)"}),qp(y_.SLOW+" "+v_.EASE_OUT_BACK,Kp({opacity:1,transform:"scale(1) translate(50%, -50%)"}))]),Qp(":leave",[Kp({opacity:1,transform:"scale(1) translate(50%, -50%)"}),qp(y_.SLOW+" "+v_.EASE_IN_BACK,Kp({opacity:0,transform:"scale(0) translate(50%, -50%)"}))])]);function D_(t,e){if(1&t&&(qo(0),Bs(1),$o()),2&t){const t=os();sa(1),Vs(t.nzLabel)}}const E_=[[["nz-auto-option"]]],O_=["nz-auto-option"],A_=["*"],T_=["panel"],I_=["content"];function L_(t,e){}function z_(t,e){1&t&&Ho(0,L_,0,0,"ng-template")}function R_(t,e){1&t&&cs(0)}function F_(t,e){if(1&t&&(Yo(0,"nz-auto-option",8),Bs(1),jo()),2&t){const t=e.$implicit;Uo("nzValue",t)("nzLabel",t&&t.label?t.label:t),sa(1),Ns(" ",t&&t.label?t.label:t," ")}}function B_(t,e){1&t&&Ho(0,F_,2,3,"nz-auto-option",7),2&t&&Uo("ngForOf",os(2).nzDataSource)}function V_(t,e){if(1&t){const t=Jo();Yo(0,"div",0,1),es("@slideMotion.done",(function(e){return Ne(t),os().onAnimationEvent(e)})),Yo(2,"div",2),Yo(3,"div",3),Ho(4,z_,1,0,void 0,4),jo(),jo(),jo(),Ho(5,R_,1,0,"ng-template",null,5,Yc),Ho(7,B_,1,1,"ng-template",null,6,Yc)}if(2&t){const t=Go(6),e=Go(8),n=os();Cs("ant-select-dropdown-hidden",!n.showPanel)("ant-select-dropdown-rtl","rtl"===n.dir),Uo("ngClass",n.nzOverlayClassName)("ngStyle",n.nzOverlayStyle)("nzNoAnimation",null==n.noAnimation?null:n.noAnimation.nzNoAnimation)("@slideMotion",void 0)("@.disabled",null==n.noAnimation?null:n.noAnimation.nzNoAnimation),sa(4),Uo("ngTemplateOutlet",n.nzDataSource?e:t)}}let N_=(()=>{class t{constructor(){}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵcmp"]=qt({type:t,selectors:[["nz-auto-optgroup"]],inputs:{nzLabel:"nzLabel"},exportAs:["nzAutoOptgroup"],ngContentSelectors:O_,decls:3,vars:1,consts:[[1,"ant-select-item","ant-select-item-group"],[4,"nzStringTemplateOutlet"]],template:function(t,e){1&t&&(ls(E_),Yo(0,"div",0),Ho(1,D_,2,1,"ng-container",1),jo(),cs(2)),2&t&&(sa(1),Uo("nzStringTemplateOutlet",e.nzLabel))},directives:[Uk],encapsulation:2,changeDetection:0}),t})();class H_{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let G_=(()=>{class t{constructor(t,e,n,i){this.ngZone=t,this.changeDetectorRef=e,this.element=n,this.nzAutocompleteOptgroupComponent=i,this.nzDisabled=!1,this.selectionChange=new Dc,this.mouseEntered=new Dc,this.active=!1,this.selected=!1,this.destroy$=new A}ngOnInit(){this.ngZone.runOutsideAngular((()=>{Nx(this.element.nativeElement,"mouseenter").pipe(lm((()=>this.mouseEntered.observers.length>0)),aC(this.destroy$)).subscribe((()=>{this.ngZone.run((()=>this.mouseEntered.emit(this)))})),Nx(this.element.nativeElement,"mousedown").pipe(aC(this.destroy$)).subscribe((t=>t.preventDefault()))}))}ngOnDestroy(){this.destroy$.next()}select(t=!0){this.selected=!0,this.changeDetectorRef.markForCheck(),t&&this.emitSelectionChangeEvent()}deselect(){this.selected=!1,this.changeDetectorRef.markForCheck(),this.emitSelectionChangeEvent()}getLabel(){return this.nzLabel||this.nzValue.toString()}setActiveStyles(){this.active||(this.active=!0,this.changeDetectorRef.markForCheck())}setInactiveStyles(){this.active&&(this.active=!1,this.changeDetectorRef.markForCheck())}scrollIntoViewIfNeeded(){var t;(t=this.element.nativeElement).scrollIntoViewIfNeeded?t.scrollIntoViewIfNeeded(!1):t.scrollIntoView&&t.scrollIntoView(!1)}selectViaInteraction(){this.nzDisabled||(this.selected=!this.selected,this.selected?this.setActiveStyles():this.setInactiveStyles(),this.emitSelectionChangeEvent(!0),this.changeDetectorRef.markForCheck())}emitSelectionChangeEvent(t=!1){this.selectionChange.emit(new H_(this,t))}}return t["ɵfac"]=function(e){return new(e||t)(Zo(ph),Zo(Gl),Zo(bl),Zo(N_,8))},t["ɵcmp"]=qt({type:t,selectors:[["nz-auto-option"]],hostAttrs:["role","menuitem",1,"ant-select-item","ant-select-item-option"],hostVars:10,hostBindings:function(t,e){1&t&&es("click",(function(){return e.selectViaInteraction()})),2&t&&(Fo("aria-selected",e.selected.toString())("aria-disabled",e.nzDisabled.toString()),Cs("ant-select-item-option-grouped",e.nzAutocompleteOptgroupComponent)("ant-select-item-option-selected",e.selected)("ant-select-item-option-active",e.active)("ant-select-item-option-disabled",e.nzDisabled))},inputs:{nzDisabled:"nzDisabled",nzValue:"nzValue",nzLabel:"nzLabel"},outputs:{selectionChange:"selectionChange",mouseEntered:"mouseEntered"},exportAs:["nzAutoOption"],ngContentSelectors:A_,decls:2,vars:0,consts:[[1,"ant-select-item-option-content"]],template:function(t,e){1&t&&(ls(),Yo(0,"div",0),cs(1),jo())},encapsulation:2,changeDetection:0}),Bk([hx()],t.prototype,"nzDisabled",void 0),t})();const Z_={provide:Km,useExisting:ut((()=>U_)),multi:!0};let U_=(()=>{class t{constructor(t,e,n,i,r){this.elementRef=t,this.overlay=e,this.viewContainerRef=n,this.nzInputGroupWhitSuffixOrPrefixDirective=i,this.document=r,this.onChange=()=>{},this.onTouched=()=>{},this.panelOpen=!1,this.destroy$=new A,this.overlayRef=null,this.portal=null,this.previousValue=null}get activeOption(){return this.nzAutocomplete&&this.nzAutocomplete.options.length?this.nzAutocomplete.activeItem:null}ngAfterViewInit(){this.nzAutocomplete&&this.nzAutocomplete.animationStateChange.pipe(aC(this.destroy$)).subscribe((t=>{"void"===t.toState&&this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)}))}ngOnDestroy(){this.destroyPanel()}writeValue(t){Promise.resolve(null).then((()=>this.setTriggerValue(t)))}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.elementRef.nativeElement.disabled=t,this.closePanel()}openPanel(){this.previousValue=this.elementRef.nativeElement.value,this.attachOverlay(),this.updateStatus()}closePanel(){this.panelOpen&&(this.nzAutocomplete.isOpen=this.panelOpen=!1,this.overlayRef&&this.overlayRef.hasAttached()&&(this.overlayRef.detach(),this.selectionChangeSubscription.unsubscribe(),this.overlayOutsideClickSubscription.unsubscribe(),this.optionsChangeSubscription.unsubscribe(),this.portal=null))}handleKeydown(t){const e=t.keyCode,n=38===e||40===e;27===e&&t.preventDefault(),!this.panelOpen||27!==e&&9!==e?this.panelOpen&&13===e?this.nzAutocomplete.showPanel&&(t.preventDefault(),this.activeOption?this.activeOption.selectViaInteraction():this.closePanel()):this.panelOpen&&n&&this.nzAutocomplete.showPanel&&(t.stopPropagation(),t.preventDefault(),38===e?this.nzAutocomplete.setPreviousItemActive():this.nzAutocomplete.setNextItemActive(),this.activeOption&&this.activeOption.scrollIntoViewIfNeeded(),this.doBackfill()):(this.activeOption&&this.activeOption.getLabel()!==this.previousValue&&this.setTriggerValue(this.previousValue),this.closePanel())}handleInput(t){const e=t.target,n=this.document;let i=e.value;"number"===e.type&&(i=""===i?null:parseFloat(i)),this.previousValue!==i&&(this.previousValue=i,this.onChange(i),this.canOpen()&&n.activeElement===t.target&&this.openPanel())}handleFocus(){this.canOpen()&&this.openPanel()}handleBlur(){this.onTouched()}subscribeOptionsChange(){return this.nzAutocomplete.options.changes.pipe(wS((()=>this.positionStrategy.reapplyLastPosition())),p_(0)).subscribe((()=>{this.resetActiveItem(),this.panelOpen&&this.overlayRef.updatePosition()}))}subscribeSelectionChange(){return this.nzAutocomplete.selectionChange.subscribe((t=>{this.setValueAndClose(t)}))}subscribeOverlayOutsideClick(){return this.overlayRef.outsidePointerEvents().pipe(lm((t=>!this.elementRef.nativeElement.contains(t.target)))).subscribe((()=>{this.closePanel()}))}attachOverlay(){if(!this.nzAutocomplete)throw Error("Attempting to open an undefined instance of `nz-autocomplete`. Make sure that the id passed to the `nzAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook.");!this.portal&&this.nzAutocomplete.template&&(this.portal=new WC(this.nzAutocomplete.template,this.viewContainerRef)),this.overlayRef||(this.overlayRef=this.overlay.create(this.getOverlayConfig())),this.overlayRef&&!this.overlayRef.hasAttached()&&(this.overlayRef.attach(this.portal),this.selectionChangeSubscription=this.subscribeSelectionChange(),this.optionsChangeSubscription=this.subscribeOptionsChange(),this.overlayOutsideClickSubscription=this.subscribeOverlayOutsideClick(),this.overlayRef.detachments().pipe(aC(this.destroy$)).subscribe((()=>{this.closePanel()}))),this.nzAutocomplete.isOpen=this.panelOpen=!0}updateStatus(){this.overlayRef&&this.overlayRef.updateSize({width:this.nzAutocomplete.nzWidth||this.getHostWidth()}),this.nzAutocomplete.setVisibility(),this.resetActiveItem(),this.activeOption&&this.activeOption.scrollIntoViewIfNeeded()}destroyPanel(){this.overlayRef&&this.closePanel()}getOverlayConfig(){return new uk({positionStrategy:this.getOverlayPosition(),disposeOnNavigation:!0,scrollStrategy:this.overlay.scrollStrategies.reposition(),width:this.nzAutocomplete.nzWidth||this.getHostWidth()})}getConnectedElement(){return this.nzInputGroupWhitSuffixOrPrefixDirective?this.nzInputGroupWhitSuffixOrPrefixDirective.elementRef:this.elementRef}getHostWidth(){return this.getConnectedElement().nativeElement.getBoundingClientRect().width}getOverlayPosition(){const t=[new mk({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),new mk({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"})];return this.positionStrategy=this.overlay.position().flexibleConnectedTo(this.getConnectedElement()).withFlexibleDimensions(!1).withPush(!1).withPositions(t).withTransformOriginOn(".ant-select-dropdown"),this.positionStrategy}resetActiveItem(){const t=this.nzAutocomplete.getOptionIndex(this.previousValue);this.nzAutocomplete.clearSelectedOptions(null,!0),-1!==t?(this.nzAutocomplete.setActiveItem(t),this.nzAutocomplete.activeItem.select(!1)):this.nzAutocomplete.setActiveItem(this.nzAutocomplete.nzDefaultActiveFirstOption?0:-1)}setValueAndClose(t){const e=t.nzValue;this.setTriggerValue(t.getLabel()),this.onChange(e),this.elementRef.nativeElement.focus(),this.closePanel()}setTriggerValue(t){const e=this.nzAutocomplete.getOption(t),n=e?e.getLabel():t;this.elementRef.nativeElement.value=null!=n?n:"",this.nzAutocomplete.nzBackfill||(this.previousValue=n)}doBackfill(){this.nzAutocomplete.nzBackfill&&this.nzAutocomplete.activeItem&&this.setTriggerValue(this.nzAutocomplete.activeItem.getLabel())}canOpen(){const t=this.elementRef.nativeElement;return!t.readOnly&&!t.disabled}}return t["ɵfac"]=function(e){return new(e||t)(Zo(bl),Zo(Ak),Zo(tc),Zo(l_,8),Zo(Hh,8))},t["ɵdir"]=ne({type:t,selectors:[["input","nzAutocomplete",""],["textarea","nzAutocomplete",""]],hostAttrs:["autocomplete","off","aria-autocomplete","list"],hostBindings:function(t,e){1&t&&es("focusin",(function(){return e.handleFocus()}))("blur",(function(){return e.handleBlur()}))("input",(function(t){return e.handleInput(t)}))("keydown",(function(t){return e.handleKeydown(t)}))},inputs:{nzAutocomplete:"nzAutocomplete"},exportAs:["nzAutocompleteTrigger"],features:[hl([Z_])]}),t})(),W_=(()=>{class t{constructor(t,e,n,i){this.changeDetectorRef=t,this.ngZone=e,this.directionality=n,this.noAnimation=i,this.nzOverlayClassName="",this.nzOverlayStyle={},this.nzDefaultActiveFirstOption=!0,this.nzBackfill=!1,this.compareWith=(t,e)=>t===e,this.selectionChange=new Dc,this.showPanel=!0,this.isOpen=!1,this.activeItem=null,this.dir="ltr",this.destroy$=new A,this.animationStateChange=new Dc,this.activeItemIndex=-1,this.selectionChangeSubscription=y.EMPTY,this.optionMouseEnterSubscription=y.EMPTY,this.dataSourceChangeSubscription=y.EMPTY,this.optionSelectionChanges=u_((()=>this.options?J(...this.options.map((t=>t.selectionChange))):this.ngZone.onStable.asObservable().pipe(JC(1),Ju((()=>this.optionSelectionChanges))))),this.optionMouseEnter=u_((()=>this.options?J(...this.options.map((t=>t.mouseEntered))):this.ngZone.onStable.asObservable().pipe(JC(1),Ju((()=>this.optionMouseEnter)))))}get options(){return this.nzDataSource?this.fromDataSourceOptions:this.fromContentOptions}ngOnInit(){var t;null===(t=this.directionality.change)||void 0===t||t.pipe(aC(this.destroy$)).subscribe((t=>{this.dir=t,this.changeDetectorRef.detectChanges()})),this.dir=this.directionality.value}onAnimationEvent(t){this.animationStateChange.emit(t)}ngAfterContentInit(){this.nzDataSource||this.optionsInit()}ngAfterViewInit(){this.nzDataSource&&this.optionsInit()}ngOnDestroy(){this.dataSourceChangeSubscription.unsubscribe(),this.selectionChangeSubscription.unsubscribe(),this.optionMouseEnterSubscription.unsubscribe(),this.dataSourceChangeSubscription=this.selectionChangeSubscription=this.optionMouseEnterSubscription=null,this.destroy$.next(),this.destroy$.complete()}setVisibility(){this.showPanel=!!this.options.length,this.changeDetectorRef.markForCheck()}setActiveItem(t){const e=this.options.get(t);e&&!e.active?(this.activeItem=e,this.activeItemIndex=t,this.clearSelectedOptions(this.activeItem),this.activeItem.setActiveStyles()):(this.activeItem=null,this.activeItemIndex=-1,this.clearSelectedOptions()),this.changeDetectorRef.markForCheck()}setNextItemActive(){this.setActiveItem(this.activeItemIndex+1<=this.options.length-1?this.activeItemIndex+1:0)}setPreviousItemActive(){this.setActiveItem(this.activeItemIndex-1<0?this.options.length-1:this.activeItemIndex-1)}getOptionIndex(t){return this.options.reduce(((e,n,i)=>-1===e?this.compareWith(t,n.nzValue)?i:-1:e),-1)}getOption(t){return this.options.find((e=>this.compareWith(t,e.nzValue)))||null}optionsInit(){this.setVisibility(),this.subscribeOptionChanges(),this.dataSourceChangeSubscription=(this.nzDataSource?this.fromDataSourceOptions.changes:this.fromContentOptions.changes).subscribe((t=>{!t.dirty&&this.isOpen&&setTimeout((()=>this.setVisibility())),this.subscribeOptionChanges()}))}clearSelectedOptions(t,e=!1){this.options.forEach((n=>{n!==t&&(e&&n.deselect(),n.setInactiveStyles())}))}subscribeOptionChanges(){this.selectionChangeSubscription.unsubscribe(),this.selectionChangeSubscription=this.optionSelectionChanges.pipe(lm((t=>t.isUserInput))).subscribe((t=>{t.source.select(),t.source.setActiveStyles(),this.activeItem=t.source,this.activeItemIndex=this.getOptionIndex(this.activeItem.nzValue),this.clearSelectedOptions(t.source,!0),this.selectionChange.emit(t.source)})),this.optionMouseEnterSubscription.unsubscribe(),this.optionMouseEnterSubscription=this.optionMouseEnter.subscribe((t=>{t.setActiveStyles(),this.activeItem=t,this.activeItemIndex=this.getOptionIndex(this.activeItem.nzValue),this.clearSelectedOptions(t)}))}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Gl),Zo(ph),Zo(Fx,8),Zo(Gk,9))},t["ɵcmp"]=qt({type:t,selectors:[["nz-autocomplete"]],contentQueries:function(t,e,n){if(1&t&&Hc(n,G_,5),2&t){let t;Vc(t=Gc())&&(e.fromContentOptions=t)}},viewQuery:function(t,e){if(1&t&&(Nc(jl,5),Nc(T_,5),Nc(I_,5),Nc(G_,5)),2&t){let t;Vc(t=Gc())&&(e.template=t.first),Vc(t=Gc())&&(e.panel=t.first),Vc(t=Gc())&&(e.content=t.first),Vc(t=Gc())&&(e.fromDataSourceOptions=t)}},inputs:{nzOverlayClassName:"nzOverlayClassName",nzOverlayStyle:"nzOverlayStyle",nzDefaultActiveFirstOption:"nzDefaultActiveFirstOption",nzBackfill:"nzBackfill",compareWith:"compareWith",nzWidth:"nzWidth",nzDataSource:"nzDataSource"},outputs:{selectionChange:"selectionChange"},exportAs:["nzAutocomplete"],ngContentSelectors:A_,decls:1,vars:0,consts:[[1,"ant-select-dropdown","ant-select-dropdown-placement-bottomLeft",3,"ngClass","ngStyle","nzNoAnimation"],["panel",""],[2,"max-height","256px","overflow-y","auto","overflow-anchor","none"],[2,"display","flex","flex-direction","column"],[4,"ngTemplateOutlet"],["contentTemplate",""],["optionsTemplate",""],[3,"nzValue","nzLabel",4,"ngFor","ngForOf"],[3,"nzValue","nzLabel"]],template:function(t,e){1&t&&(ls(),Ho(0,V_,9,10,"ng-template"))},directives:[Gd,Qd,Gk,tu,Ud,G_],encapsulation:2,data:{animation:[P_]},changeDetection:0}),Bk([hx()],t.prototype,"nzDefaultActiveFirstOption",void 0),Bk([hx()],t.prototype,"nzBackfill",void 0),t})(),Y_=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({imports:[[Vx,nu,Fk,Wp,Yk,Zk,d_]]}),t})();function j_(t,e){if(1&t&&(qo(0),Bs(1),$o()),2&t){const t=os(2);sa(1),Vs(t.nzText)}}function X_(t,e){if(1&t&&(qo(0),Xo(1,"span",2),Yo(2,"span",3),Ho(3,j_,2,1,"ng-container",1),jo(),$o()),2&t){const t=os();sa(1),Us("ant-badge-status-dot ant-badge-status-",t.nzStatus||t.presetColor,""),xs("background",!t.presetColor&&t.nzColor),Uo("ngStyle",t.nzStyle),sa(2),Uo("nzStringTemplateOutlet",t.nzText)}}function q_(t,e){if(1&t&&Xo(0,"nz-badge-sup",5),2&t){const t=os(2);Uo("nzOffset",t.nzOffset)("nzTitle",t.nzTitle)("nzStyle",t.nzStyle)("nzDot",t.nzDot)("nzOverflowCount",t.nzOverflowCount)("disableAnimation",!!(t.nzStandalone||t.nzStatus||t.nzColor||null!=t.noAnimation&&t.noAnimation.nzNoAnimation))("nzCount",t.nzCount)("noAnimation",!(null==t.noAnimation||!t.noAnimation.nzNoAnimation))}}function $_(t,e){if(1&t&&(qo(0),Ho(1,q_,1,8,"nz-badge-sup",4),$o()),2&t){const t=os();sa(1),Uo("ngIf",t.showSup)}}const K_=["*"];function J_(t,e){if(1&t&&(Yo(0,"p",6),Bs(1),jo()),2&t){const t=e.$implicit,n=os(2).index;Cs("current",t===os(2).countArray[n]),sa(1),Ns(" ",t," ")}}function Q_(t,e){if(1&t&&(qo(0),Ho(1,J_,2,3,"p",5),$o()),2&t){const t=os(3);sa(1),Uo("ngForOf",t.countSingleArray)}}function tM(t,e){if(1&t&&(Yo(0,"span",3),Ho(1,Q_,2,1,"ng-container",4),jo()),2&t){const t=e.index,n=os(2);xs("transform","translateY("+100*-n.countArray[t]+"%)"),Uo("nzNoAnimation",n.noAnimation),sa(1),Uo("ngIf",!n.nzDot&&void 0!==n.countArray[t])}}function eM(t,e){if(1&t&&(qo(0),Ho(1,tM,2,4,"span",2),$o()),2&t){const t=os();sa(1),Uo("ngForOf",t.maxNumberArray)}}function nM(t,e){1&t&&Bs(0),2&t&&Ns("",os().nzOverflowCount,"+")}const iM=["pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"];let rM=(()=>{class t{constructor(t,e,n,i,r,a){this.nzConfigService=t,this.renderer=e,this.cdr=n,this.elementRef=i,this.directionality=r,this.noAnimation=a,this._nzModuleName="badge",this.showSup=!1,this.presetColor=null,this.dir="ltr",this.destroy$=new A,this.nzShowZero=!1,this.nzShowDot=!0,this.nzStandalone=!1,this.nzDot=!1,this.nzOverflowCount=99,this.nzColor=void 0,this.nzStyle=null,this.nzText=null,this.elementRef.nativeElement.classList.add("ant-badge")}ngOnInit(){var t;null===(t=this.directionality.change)||void 0===t||t.pipe(aC(this.destroy$)).subscribe((t=>{this.dir=t,this.prepareBadgeForRtl(),this.cdr.detectChanges()})),this.dir=this.directionality.value,this.prepareBadgeForRtl()}ngOnChanges(t){const{nzColor:e,nzShowDot:n,nzDot:i,nzCount:r,nzShowZero:a}=t;e&&(this.presetColor=this.nzColor&&-1!==iM.indexOf(this.nzColor)?this.nzColor:null),(n||i||r||a)&&(this.showSup=this.nzShowDot&&this.nzDot||this.nzCount>0||this.nzCount<=0&&this.nzShowZero)}prepareBadgeForRtl(){this.isRtlLayout?this.renderer.addClass(this.elementRef.nativeElement,"ant-badge-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-badge-rtl")}get isRtlLayout(){return"rtl"===this.dir}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(ZS),Zo(wl),Zo(Gl),Zo(bl),Zo(Fx,8),Zo(Gk,9))},t["ɵcmp"]=qt({type:t,selectors:[["nz-badge"]],hostVars:4,hostBindings:function(t,e){2&t&&Cs("ant-badge-status",e.nzStatus)("ant-badge-not-a-wrapper",!!(e.nzStandalone||e.nzStatus||e.nzColor))},inputs:{nzShowZero:"nzShowZero",nzShowDot:"nzShowDot",nzStandalone:"nzStandalone",nzDot:"nzDot",nzOverflowCount:"nzOverflowCount",nzColor:"nzColor",nzStyle:"nzStyle",nzText:"nzText",nzTitle:"nzTitle",nzStatus:"nzStatus",nzCount:"nzCount",nzOffset:"nzOffset"},exportAs:["nzBadge"],features:[pe],ngContentSelectors:K_,decls:3,vars:2,consts:[[4,"ngIf"],[4,"nzStringTemplateOutlet"],[3,"ngStyle"],[1,"ant-badge-status-text"],[3,"nzOffset","nzTitle","nzStyle","nzDot","nzOverflowCount","disableAnimation","nzCount","noAnimation",4,"ngIf"],[3,"nzOffset","nzTitle","nzStyle","nzDot","nzOverflowCount","disableAnimation","nzCount","noAnimation"]],template:function(t,e){1&t&&(ls(),Ho(0,X_,4,7,"ng-container",0),cs(1),Ho(2,$_,2,1,"ng-container",1)),2&t&&(Uo("ngIf",e.nzStatus||e.nzColor),sa(2),Uo("nzStringTemplateOutlet",e.nzCount))},directives:function(){return[Yd,Uk,Qd,aM]},encapsulation:2,data:{animation:[M_]},changeDetection:0}),Bk([hx()],t.prototype,"nzShowZero",void 0),Bk([hx()],t.prototype,"nzShowDot",void 0),Bk([hx()],t.prototype,"nzStandalone",void 0),Bk([hx()],t.prototype,"nzDot",void 0),Bk([US()],t.prototype,"nzOverflowCount",void 0),Bk([US()],t.prototype,"nzColor",void 0),t})(),aM=(()=>{class t{constructor(t){this.elementRef=t,this.nzStyle=null,this.nzDot=!1,this.nzOverflowCount=99,this.disableAnimation=!1,this.noAnimation=!1,this.maxNumberArray=[],this.countArray=[],this.count=0,this.countSingleArray=[0,1,2,3,4,5,6,7,8,9],this.elementRef.nativeElement.classList.add("ant-scroll-number")}generateMaxNumberArray(){this.maxNumberArray=this.nzOverflowCount.toString().split("")}ngOnInit(){this.generateMaxNumberArray()}ngOnChanges(t){const{nzOverflowCount:e,nzCount:n}=t;n&&"number"==typeof n.currentValue&&(this.count=Math.max(0,n.currentValue),this.countArray=this.count.toString().split("").map((t=>+t))),e&&this.generateMaxNumberArray()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(bl))},t["ɵcmp"]=qt({type:t,selectors:[["nz-badge-sup"]],hostVars:15,hostBindings:function(t,e){2&t&&(Fo("title",null===e.nzTitle?"":e.nzTitle||e.nzCount),js("@.disabled",e.disableAnimation)("@zoomBadgeMotion",void 0),ks(e.nzStyle),xs("right",e.nzOffset&&e.nzOffset[0]?-e.nzOffset[0]:null,"px")("margin-top",e.nzOffset&&e.nzOffset[1]?e.nzOffset[1]:null,"px"),Cs("ant-badge-count",!e.nzDot)("ant-badge-dot",e.nzDot)("ant-badge-multiple-words",e.countArray.length>=2))},inputs:{nzStyle:"nzStyle",nzDot:"nzDot",nzOverflowCount:"nzOverflowCount",disableAnimation:"disableAnimation",noAnimation:"noAnimation",nzOffset:"nzOffset",nzTitle:"nzTitle",nzCount:"nzCount"},exportAs:["nzBadgeSup"],features:[pe],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["overflowTemplate",""],["class","ant-scroll-number-only",3,"nzNoAnimation","transform",4,"ngFor","ngForOf"],[1,"ant-scroll-number-only",3,"nzNoAnimation"],[4,"ngIf"],["class","ant-scroll-number-only-unit",3,"current",4,"ngFor","ngForOf"],[1,"ant-scroll-number-only-unit"]],template:function(t,e){if(1&t&&(Ho(0,eM,2,1,"ng-container",0),Ho(1,nM,1,1,"ng-template",null,1,Yc)),2&t){const t=Go(2);Uo("ngIf",e.count<=e.nzOverflowCount)("ngIfElse",t)}},directives:[Yd,Ud,Gk],encapsulation:2,data:{animation:[M_]},changeDetection:0}),t})(),oM=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({imports:[[Vx,nu,cP,Yk,Zk]]}),t})(),sM=(()=>{class t{constructor(t,e){this.elementRef=t,this.renderer=e,this.hidden=null,this.renderer.setAttribute(this.elementRef.nativeElement,"hidden","")}setHiddenAttribute(){this.hidden?this.renderer.setAttribute(this.elementRef.nativeElement,"hidden","string"==typeof this.hidden?this.hidden:""):this.renderer.removeAttribute(this.elementRef.nativeElement,"hidden")}ngOnChanges(){this.setHiddenAttribute()}ngAfterViewInit(){this.setHiddenAttribute()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(bl),Zo(wl))},t["ɵdir"]=ne({type:t,selectors:[["","nz-button",""],["nz-button-group"],["","nz-icon",""],["","nz-menu-item",""],["","nz-submenu",""],["nz-select-top-control"],["nz-select-placeholder"],["nz-input-group"]],inputs:{hidden:"hidden"},features:[pe]}),t})(),lM=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({imports:[[yC]]}),t})();class cM{constructor(t,e,n,i){this.triggerElement=t,this.ngZone=e,this.insertExtraNode=n,this.platformId=i,this.waveTransitionDuration=400,this.styleForPseudo=null,this.extraNode=null,this.lastTime=0,this.onClick=t=>{!this.triggerElement||!this.triggerElement.getAttribute||this.triggerElement.getAttribute("disabled")||"INPUT"===t.target.tagName||this.triggerElement.className.indexOf("disabled")>=0||this.fadeOutWave()},this.platform=new bC(this.platformId),this.clickHandler=this.onClick.bind(this),this.bindTriggerEvent()}get waveAttributeName(){return this.insertExtraNode?"ant-click-animating":"ant-click-animating-without-extra-node"}bindTriggerEvent(){this.platform.isBrowser&&this.ngZone.runOutsideAngular((()=>{this.removeTriggerEvent(),this.triggerElement&&this.triggerElement.addEventListener("click",this.clickHandler,!0)}))}removeTriggerEvent(){this.triggerElement&&this.triggerElement.removeEventListener("click",this.clickHandler,!0)}removeStyleAndExtraNode(){this.styleForPseudo&&document.body.contains(this.styleForPseudo)&&(document.body.removeChild(this.styleForPseudo),this.styleForPseudo=null),this.insertExtraNode&&this.triggerElement.contains(this.extraNode)&&this.triggerElement.removeChild(this.extraNode)}destroy(){this.removeTriggerEvent(),this.removeStyleAndExtraNode()}fadeOutWave(){const t=this.triggerElement,e=this.getWaveColor(t);t.setAttribute(this.waveAttributeName,"true"),!(Date.now()<this.lastTime+this.waveTransitionDuration)&&(this.isValidColor(e)&&(this.styleForPseudo||(this.styleForPseudo=document.createElement("style")),this.styleForPseudo.innerHTML="\n [ant-click-animating-without-extra-node='true']::after, .ant-click-animating-node {\n --antd-wave-shadow-color: "+e+";\n }",document.body.appendChild(this.styleForPseudo)),this.insertExtraNode&&(this.extraNode||(this.extraNode=document.createElement("div")),this.extraNode.className="ant-click-animating-node",t.appendChild(this.extraNode)),this.lastTime=Date.now(),this.runTimeoutOutsideZone((()=>{t.removeAttribute(this.waveAttributeName),this.removeStyleAndExtraNode()}),this.waveTransitionDuration))}isValidColor(t){return!!t&&"#ffffff"!==t&&"rgb(255, 255, 255)"!==t&&this.isNotGrey(t)&&!/rgba\(\d*, \d*, \d*, 0\)/.test(t)&&"transparent"!==t}isNotGrey(t){const e=t.match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/);return!(e&&e[1]&&e[2]&&e[3]&&e[1]===e[2]&&e[2]===e[3])}getWaveColor(t){const e=getComputedStyle(t);return e.getPropertyValue("border-top-color")||e.getPropertyValue("border-color")||e.getPropertyValue("background-color")}runTimeoutOutsideZone(t,e){this.ngZone.runOutsideAngular((()=>setTimeout(t,e)))}}const hM={disabled:!1},dM=new ni("nz-wave-global-options",{providedIn:"root",factory:function(){return hM}});let uM=(()=>{class t{constructor(t,e,n,i,r){this.ngZone=t,this.elementRef=e,this.config=n,this.animationType=i,this.platformId=r,this.nzWaveExtraNode=!1,this.waveDisabled=!1,this.waveDisabled=this.isConfigDisabled()}get disabled(){return this.waveDisabled}get rendererRef(){return this.waveRenderer}isConfigDisabled(){let t=!1;return this.config&&"boolean"==typeof this.config.disabled&&(t=this.config.disabled),"NoopAnimations"===this.animationType&&(t=!0),t}ngOnDestroy(){this.waveRenderer&&this.waveRenderer.destroy()}ngOnInit(){this.renderWaveIfEnabled()}renderWaveIfEnabled(){!this.waveDisabled&&this.elementRef.nativeElement&&(this.waveRenderer=new cM(this.elementRef.nativeElement,this.ngZone,this.nzWaveExtraNode,this.platformId))}disable(){this.waveDisabled=!0,this.waveRenderer&&(this.waveRenderer.removeTriggerEvent(),this.waveRenderer.removeStyleAndExtraNode())}enable(){this.waveDisabled=this.isConfigDisabled()||!1,this.waveRenderer&&this.waveRenderer.bindTriggerEvent()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(ph),Zo(bl),Zo(dM,8),Zo(Eb,8),Zo(Qc))},t["ɵdir"]=ne({type:t,selectors:[["","nz-wave",""],["button","nz-button","",3,"nzType","link",3,"nzType","text"]],inputs:{nzWaveExtraNode:"nzWaveExtraNode"},exportAs:["nzWave"]}),t})(),mM=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({imports:[[yC]]}),t})();const pM=["nz-button",""];function gM(t,e){1&t&&Xo(0,"i",1)}const fM=["*"];let bM=(()=>{class t{constructor(t,e,n,i,r,a){this.ngZone=t,this.elementRef=e,this.cdr=n,this.renderer=i,this.nzConfigService=r,this.directionality=a,this._nzModuleName="button",this.nzBlock=!1,this.nzGhost=!1,this.nzSearch=!1,this.nzLoading=!1,this.nzDanger=!1,this.disabled=!1,this.tabIndex=null,this.nzType=null,this.nzShape=null,this.nzSize="default",this.dir="ltr",this.destroy$=new A,this.loading$=new A,this.elementRef.nativeElement.classList.add("ant-btn"),this.nzConfigService.getConfigChangeEventForComponent("button").pipe(aC(this.destroy$)).subscribe((()=>{this.cdr.markForCheck()}))}insertSpan(t,e){t.forEach((t=>{if("#text"===t.nodeName){const n=e.createElement("span"),i=e.parentNode(t);e.insertBefore(i,n,t),e.appendChild(n,t)}}))}assertIconOnly(t,e){const n=Array.from(t.childNodes),i=n.filter((t=>"I"===t.nodeName)).length,r=n.every((t=>"#text"!==t.nodeName));n.every((t=>"SPAN"!==t.nodeName))&&r&&i>=1&&e.addClass(t,"ant-btn-icon-only")}ngOnInit(){var t;null===(t=this.directionality.change)||void 0===t||t.pipe(aC(this.destroy$)).subscribe((t=>{this.dir=t,this.cdr.detectChanges()})),this.dir=this.directionality.value,this.ngZone.runOutsideAngular((()=>{Nx(this.elementRef.nativeElement,"click").pipe(aC(this.destroy$)).subscribe((t=>{var e;this.disabled&&"A"===(null===(e=t.target)||void 0===e?void 0:e.tagName)&&(t.preventDefault(),t.stopImmediatePropagation())}))}))}ngOnChanges(t){const{nzLoading:e}=t;e&&this.loading$.next(this.nzLoading)}ngAfterViewInit(){this.assertIconOnly(this.elementRef.nativeElement,this.renderer),this.insertSpan(this.elementRef.nativeElement.childNodes,this.renderer)}ngAfterContentInit(){this.loading$.pipe(cC(this.nzLoading),lm((()=>!!this.nzIconDirectiveElement)),aC(this.destroy$)).subscribe((t=>{const e=this.nzIconDirectiveElement.nativeElement;t?this.renderer.setStyle(e,"display","none"):this.renderer.removeStyle(e,"display")}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(ph),Zo(bl),Zo(Gl),Zo(wl),Zo(ZS),Zo(Fx,8))},t["ɵcmp"]=qt({type:t,selectors:[["button","nz-button",""],["a","nz-button",""]],contentQueries:function(t,e,n){if(1&t&&Hc(n,eP,5,bl),2&t){let t;Vc(t=Gc())&&(e.nzIconDirectiveElement=t.first)}},hostVars:30,hostBindings:function(t,e){2&t&&(Fo("tabindex",e.disabled?-1:null===e.tabIndex?null:e.tabIndex)("disabled",e.disabled||null),Cs("ant-btn-primary","primary"===e.nzType)("ant-btn-dashed","dashed"===e.nzType)("ant-btn-link","link"===e.nzType)("ant-btn-text","text"===e.nzType)("ant-btn-circle","circle"===e.nzShape)("ant-btn-round","round"===e.nzShape)("ant-btn-lg","large"===e.nzSize)("ant-btn-sm","small"===e.nzSize)("ant-btn-dangerous",e.nzDanger)("ant-btn-loading",e.nzLoading)("ant-btn-background-ghost",e.nzGhost)("ant-btn-block",e.nzBlock)("ant-input-search-button",e.nzSearch)("ant-btn-rtl","rtl"===e.dir))},inputs:{nzBlock:"nzBlock",nzGhost:"nzGhost",nzSearch:"nzSearch",nzLoading:"nzLoading",nzDanger:"nzDanger",disabled:"disabled",tabIndex:"tabIndex",nzType:"nzType",nzShape:"nzShape",nzSize:"nzSize"},exportAs:["nzButton"],features:[pe],attrs:pM,ngContentSelectors:fM,decls:2,vars:1,consts:[["nz-icon","","nzType","loading",4,"ngIf"],["nz-icon","","nzType","loading"]],template:function(t,e){1&t&&(ls(),Ho(0,gM,1,0,"i",0),cs(1)),2&t&&Uo("ngIf",e.nzLoading)},directives:[Yd,eP,sM],encapsulation:2,changeDetection:0}),Bk([hx()],t.prototype,"nzBlock",void 0),Bk([hx()],t.prototype,"nzGhost",void 0),Bk([hx()],t.prototype,"nzSearch",void 0),Bk([hx()],t.prototype,"nzLoading",void 0),Bk([hx()],t.prototype,"nzDanger",void 0),Bk([hx()],t.prototype,"disabled",void 0),Bk([US()],t.prototype,"nzSize",void 0),t})(),yM=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({imports:[[Vx,nu,mM,nP,lM],lM,mM]}),t})();const vM=["*"],wM=["inputElement"],xM=["nz-checkbox",""];let CM=(()=>{class t{constructor(t,e){this.nzOnChange=new Dc,this.checkboxList=[],t.addClass(e.nativeElement,"ant-checkbox-group")}addCheckbox(t){this.checkboxList.push(t)}removeCheckbox(t){this.checkboxList.splice(this.checkboxList.indexOf(t),1)}onChange(){const t=this.checkboxList.filter((t=>t.nzChecked)).map((t=>t.nzValue));this.nzOnChange.emit(t)}}return t["ɵfac"]=function(e){return new(e||t)(Zo(wl),Zo(bl))},t["ɵcmp"]=qt({type:t,selectors:[["nz-checkbox-wrapper"]],outputs:{nzOnChange:"nzOnChange"},exportAs:["nzCheckboxWrapper"],ngContentSelectors:vM,decls:1,vars:0,template:function(t,e){1&t&&(ls(),cs(0))},encapsulation:2,changeDetection:0}),t})(),kM=(()=>{class t{constructor(t,e,n,i,r){this.elementRef=t,this.nzCheckboxWrapperComponent=e,this.cdr=n,this.focusMonitor=i,this.directionality=r,this.dir="ltr",this.destroy$=new A,this.onChange=()=>{},this.onTouched=()=>{},this.nzCheckedChange=new Dc,this.nzValue=null,this.nzAutoFocus=!1,this.nzDisabled=!1,this.nzIndeterminate=!1,this.nzChecked=!1,this.nzId=null,this.elementRef.nativeElement.classList.add("ant-checkbox-wrapper")}hostClick(t){t.preventDefault(),this.focus(),this.innerCheckedChange(!this.nzChecked)}innerCheckedChange(t){this.nzDisabled||(this.nzChecked=t,this.onChange(this.nzChecked),this.nzCheckedChange.emit(this.nzChecked),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.onChange())}writeValue(t){this.nzChecked=t,this.cdr.markForCheck()}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.nzDisabled=t,this.cdr.markForCheck()}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}ngOnInit(){var t;this.focusMonitor.monitor(this.elementRef,!0).pipe(aC(this.destroy$)).subscribe((t=>{t||Promise.resolve().then((()=>this.onTouched()))})),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.addCheckbox(this),null===(t=this.directionality.change)||void 0===t||t.pipe(aC(this.destroy$)).subscribe((t=>{this.dir=t,this.cdr.detectChanges()})),this.dir=this.directionality.value}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.removeCheckbox(this),this.destroy$.next(),this.destroy$.complete()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(bl),Zo(CM,8),Zo(Gl),Zo(SP),Zo(Fx,8))},t["ɵcmp"]=qt({type:t,selectors:[["","nz-checkbox",""]],viewQuery:function(t,e){if(1&t&&Nc(wM,7),2&t){let t;Vc(t=Gc())&&(e.inputElement=t.first)}},hostVars:4,hostBindings:function(t,e){1&t&&es("click",(function(t){return e.hostClick(t)})),2&t&&Cs("ant-checkbox-wrapper-checked",e.nzChecked)("ant-checkbox-rtl","rtl"===e.dir)},inputs:{nzValue:"nzValue",nzAutoFocus:"nzAutoFocus",nzDisabled:"nzDisabled",nzIndeterminate:"nzIndeterminate",nzChecked:"nzChecked",nzId:"nzId"},outputs:{nzCheckedChange:"nzCheckedChange"},exportAs:["nzCheckbox"],features:[hl([{provide:Km,useExisting:ut((()=>t)),multi:!0}])],attrs:xM,ngContentSelectors:vM,decls:6,vars:11,consts:[[1,"ant-checkbox"],["type","checkbox",1,"ant-checkbox-input",3,"checked","ngModel","disabled","ngModelChange","click"],["inputElement",""],[1,"ant-checkbox-inner"]],template:function(t,e){1&t&&(ls(),Yo(0,"span",0),Yo(1,"input",1,2),es("ngModelChange",(function(t){return e.innerCheckedChange(t)}))("click",(function(t){return t.stopPropagation()})),jo(),Xo(3,"span",3),jo(),Yo(4,"span"),cs(5),jo()),2&t&&(Cs("ant-checkbox-checked",e.nzChecked&&!e.nzIndeterminate)("ant-checkbox-disabled",e.nzDisabled)("ant-checkbox-indeterminate",e.nzIndeterminate),sa(1),Uo("checked",e.nzChecked)("ngModel",e.nzChecked)("disabled",e.nzDisabled),Fo("autofocus",e.nzAutoFocus?"autofocus":null)("id",e.nzId))},directives:[Qm,xp,Np],encapsulation:2,changeDetection:0}),Bk([hx()],t.prototype,"nzAutoFocus",void 0),Bk([hx()],t.prototype,"nzDisabled",void 0),Bk([hx()],t.prototype,"nzIndeterminate",void 0),Bk([hx()],t.prototype,"nzChecked",void 0),t})(),SM=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({imports:[[Vx,nu,Wp,OP]]}),t})();class PM extends C{notifyNext(t,e,n,i,r){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class _M extends C{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function MM(t,e,n,i,r=new _M(t,n,i)){if(!r.closed)return e instanceof _?e.subscribe(r):H(e)(r)}const DM={};function EM(...t){let e,n;return I(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&u(t[0])&&(t=t[0]),K(t,n).lift(new OM(e))}class OM{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new AM(t,this.resultSelector))}}class AM extends PM{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(DM),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n<e;n++)this.add(MM(this,t[n],void 0,n))}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,n){const i=this.values,r=this.toRespond?i[n]===DM?--this.toRespond:this.toRespond:0;i[n]=e,0===r&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)}}const TM={top:new mk({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topCenter:new mk({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topLeft:new mk({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),topRight:new mk({originX:"end",originY:"top"},{overlayX:"end",overlayY:"bottom"}),right:new mk({originX:"end",originY:"center"},{overlayX:"start",overlayY:"center"}),rightTop:new mk({originX:"end",originY:"top"},{overlayX:"start",overlayY:"top"}),rightBottom:new mk({originX:"end",originY:"bottom"},{overlayX:"start",overlayY:"bottom"}),bottom:new mk({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomCenter:new mk({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomLeft:new mk({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),bottomRight:new mk({originX:"end",originY:"bottom"},{overlayX:"end",overlayY:"top"}),left:new mk({originX:"start",originY:"center"},{overlayX:"end",overlayY:"center"}),leftTop:new mk({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"}),leftBottom:new mk({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"bottom"})},IM=[TM.top,TM.right,TM.bottom,TM.left];function LM(t){for(const e in TM)if(t.connectionPair.originX===TM[e].originX&&t.connectionPair.originY===TM[e].originY&&t.connectionPair.overlayX===TM[e].overlayX&&t.connectionPair.overlayY===TM[e].overlayY)return e}new mk({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"bottom"}),new mk({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"bottom"}),new mk({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"top"});let zM=(()=>{class t{constructor(t,e){this.cdkConnectedOverlay=t,this.nzDestroyService=e,this.nzArrowPointAtCenter=!1,this.cdkConnectedOverlay.backdropClass="nz-overlay-transparent-backdrop",this.cdkConnectedOverlay.positionChange.pipe(aC(this.nzDestroyService)).subscribe((t=>{this.nzArrowPointAtCenter&&this.updateArrowPosition(t)}))}updateArrowPosition(t){const e=this.cdkConnectedOverlay.origin.elementRef.nativeElement.getBoundingClientRect(),n=LM(t);let i=0,r=0;"topLeft"===n||"bottomLeft"===n?i=e.width/2-14:"topRight"===n||"bottomRight"===n?i=-(e.width/2-14):"leftTop"===n||"rightTop"===n?r=e.height/2-10:("leftBottom"===n||"rightBottom"===n)&&(r=-(e.height/2-10)),(this.cdkConnectedOverlay.offsetX!==i||this.cdkConnectedOverlay.offsetY!==r)&&(this.cdkConnectedOverlay.offsetY=r,this.cdkConnectedOverlay.offsetX=i,this.cdkConnectedOverlay.overlayRef.updatePosition())}}return t["ɵfac"]=function(e){return new(e||t)(Zo(zk),Zo(ZP))},t["ɵdir"]=ne({type:t,selectors:[["","cdkConnectedOverlay","","nzConnectedOverlay",""]],inputs:{nzArrowPointAtCenter:"nzArrowPointAtCenter"},exportAs:["nzConnectedOverlay"],features:[hl([ZP])]}),Bk([hx()],t.prototype,"nzArrowPointAtCenter",void 0),t})(),RM=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({}),t})();const FM=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();function BM(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new VM(t,e,n))}}class VM{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new NM(t,this.accumulator,this.seed,this.hasSeed))}}class NM extends C{constructor(t,e,n,i){super(t),this.accumulator=e,this._seed=n,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(t){this.destination.error(t)}this.seed=n,this.destination.next(n)}}function HM(t){return function(e){return 0===t?Zu():e.lift(new GM(t))}}class GM{constructor(t){if(this.total=t,this.total<0)throw new KC}call(t,e){return e.subscribe(new ZM(t,this.total))}}class ZM extends C{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,i=this.count++;e.length<n?e.push(t):e[i%n]=t}_complete(){const t=this.destination;let e=this.count;if(e>0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let r=0;r<n;r++){const r=e++%n;t.next(i[r])}}t.complete()}}function UM(t=jM){return e=>e.lift(new WM(t))}class WM{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new YM(t,this.errorFactory))}}class YM extends C{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}}function jM(){return new FM}function XM(t=null){return e=>e.lift(new qM(t))}class qM{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new $M(t,this.defaultValue))}}class $M extends C{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function KM(t,e){const n=arguments.length>=2;return i=>i.pipe(t?lm(((e,n)=>t(e,n,i))):P,JC(1),n?XM(e):UM((()=>new FM)))}class JM{constructor(t,e){this.id=t,this.url=e}}class QM extends JM{constructor(t,e,n="imperative",i=null){super(t,e),this.navigationTrigger=n,this.restoredState=i}toString(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"}}class tD extends JM{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"}}class eD extends JM{constructor(t,e,n){super(t,e),this.reason=n}toString(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"}}class nD extends JM{constructor(t,e,n){super(t,e),this.error=n}toString(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"}}class iD extends JM{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"}}class rD extends JM{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"}}class aD extends JM{constructor(t,e,n,i,r){super(t,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=r}toString(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"}}class oD extends JM{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"}}class sD extends JM{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"}}class lD{constructor(t){this.route=t}toString(){return"RouteConfigLoadStart(path: "+this.route.path+")"}}class cD{constructor(t){this.route=t}toString(){return"RouteConfigLoadEnd(path: "+this.route.path+")"}}class hD{constructor(t){this.snapshot=t}toString(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"}}class dD{constructor(t){this.snapshot=t}toString(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"}}class uD{constructor(t){this.snapshot=t}toString(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"}}class mD{constructor(t){this.snapshot=t}toString(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"}}const pD="primary";class gD{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function fD(t){return new gD(t)}const bD="ngNavigationCancelingError";function yD(t){const e=Error("NavigationCancelingError: "+t);return e[bD]=!0,e}function vD(t,e,n){const i=n.path.split("/");if(i.length>t.length||"full"===n.pathMatch&&(e.hasChildren()||i.length<t.length))return null;const r={};for(let e=0;e<i.length;e++){const n=i[e],a=t[e];if(n.startsWith(":"))r[n.substring(1)]=a;else if(n!==a.path)return null}return{consumed:t.slice(0,i.length),posParams:r}}function wD(t,e){const n=t?Object.keys(t):void 0,i=e?Object.keys(e):void 0;if(!n||!i||n.length!=i.length)return!1;let r;for(let i=0;i<n.length;i++)if(r=n[i],!xD(t[r],e[r]))return!1;return!0}function xD(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;const n=[...t].sort(),i=[...e].sort();return n.every(((t,e)=>i[e]===t))}return t===e}function CD(t){return t.length>0?t[t.length-1]:null}function kD(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function SD(t){return ts(t)?t:Qo(t)?Z(Promise.resolve(t)):Uu(t)}const PD={exact:function t(e,n,i){if(!LD(e.segments,n.segments)||!OD(e.segments,n.segments,i)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children)if(!e.children[r]||!t(e.children[r],n.children[r],i))return!1;return!0},subset:DD},_D={exact:function(t,e){return wD(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every((n=>xD(t[n],e[n])))},ignored:()=>!0};function MD(t,e,n){return PD[n.paths](t.root,e.root,n.matrixParams)&&_D[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function DD(t,e,n){return ED(t,e,e.segments,n)}function ED(t,e,n,i){if(t.segments.length>n.length){const r=t.segments.slice(0,n.length);return!(!LD(r,n)||e.hasChildren()||!OD(r,n,i))}if(t.segments.length===n.length){if(!LD(t.segments,n)||!OD(t.segments,n,i))return!1;for(const n in e.children)if(!t.children[n]||!DD(t.children[n],e.children[n],i))return!1;return!0}{const r=n.slice(0,t.segments.length),a=n.slice(t.segments.length);return!!(LD(t.segments,r)&&OD(t.segments,r,i)&&t.children.primary)&&ED(t.children.primary,e,a,i)}}function OD(t,e,n){return e.every(((e,i)=>_D[n](t[i].parameters,e.parameters)))}class AD{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=fD(this.queryParams)),this._queryParamMap}toString(){return RD.serialize(this)}}class TD{constructor(t,e){this.segments=t,this.children=e,this.parent=null,kD(e,((t,e)=>t.parent=this))}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return FD(this)}}class ID{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=fD(this.parameters)),this._parameterMap}toString(){return UD(this)}}function LD(t,e){return t.length===e.length&&t.every(((t,n)=>t.path===e[n].path))}class zD{}const RD=new class{parse(t){const e=new qD(t);return new AD(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return""+("/"+BD(t.root,!0))+function(t){const e=Object.keys(t).map((e=>{const n=t[e];return Array.isArray(n)?n.map((t=>ND(e)+"="+ND(t))).join("&"):ND(e)+"="+ND(n)})).filter((t=>!!t));return e.length?"?"+e.join("&"):""}(t.queryParams)+("string"==typeof t.fragment?"#"+(e=t.fragment,encodeURI(e)):"")}};function FD(t){return t.segments.map((t=>UD(t))).join("/")}function BD(t,e){if(!t.hasChildren())return FD(t);if(e){const e=t.children.primary?BD(t.children.primary,!1):"",n=[];return kD(t.children,((t,e)=>{e!==pD&&n.push(e+":"+BD(t,!1))})),n.length>0?e+"("+n.join("//")+")":e}{const e=function(t,e){let n=[];return kD(t.children,((t,i)=>{i===pD&&(n=n.concat(e(t,i)))})),kD(t.children,((t,i)=>{i!==pD&&(n=n.concat(e(t,i)))})),n}(t,((e,n)=>n===pD?[BD(t.children.primary,!1)]:[n+":"+BD(e,!1)]));return 1===Object.keys(t.children).length&&null!=t.children.primary?FD(t)+"/"+e[0]:FD(t)+"/("+e.join("//")+")"}}function VD(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ND(t){return VD(t).replace(/%3B/gi,";")}function HD(t){return VD(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function GD(t){return decodeURIComponent(t)}function ZD(t){return GD(t.replace(/\+/g,"%20"))}function UD(t){return""+HD(t.path)+(e=t.parameters,Object.keys(e).map((t=>";"+HD(t)+"="+HD(e[t]))).join(""));var e}const WD=/^[^\/()?;=#]+/;function YD(t){const e=t.match(WD);return e?e[0]:""}const jD=/^[^=?&#]+/,XD=/^[^?&#]+/;class qD{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new TD([],{}):new TD([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new TD(t,e)),n}parseSegment(){const t=YD(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new ID(GD(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=YD(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=YD(this.remaining);t&&(n=t,this.capture(n))}t[GD(e)]=GD(n)}parseQueryParam(t){const e=function(t){const e=t.match(jD);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(XD);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const i=ZD(e),r=ZD(n);if(t.hasOwnProperty(i)){let e=t[i];Array.isArray(e)||(e=[e],t[i]=e),e.push(r)}else t[i]=r}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=YD(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '"+this.url+"'");let r;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):t&&(r=pD);const a=this.parseChildren();e[r]=1===Object.keys(a).length?a.primary:new TD([],a),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')}}class $D{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=KD(t,this._root);return e?e.children.map((t=>t.value)):[]}firstChild(t){const e=KD(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=JD(t,this._root);return e.length<2?[]:e[e.length-2].children.map((t=>t.value)).filter((e=>e!==t))}pathFromRoot(t){return JD(t,this._root).map((t=>t.value))}}function KD(t,e){if(t===e.value)return e;for(const n of e.children){const e=KD(t,n);if(e)return e}return null}function JD(t,e){if(t===e.value)return[e];for(const n of e.children){const i=JD(t,n);if(i.length)return i.unshift(e),i}return[]}class QD{constructor(t,e){this.value=t,this.children=e}toString(){return"TreeNode("+this.value+")"}}function tE(t){const e={};return t&&t.children.forEach((t=>e[t.value.outlet]=t)),e}class eE extends $D{constructor(t,e){super(t),this.snapshot=e,sE(this,t)}toString(){return this.snapshot.toString()}}function nE(t,e){const n=function(t,e){const n=new aE([],{},{},"",{},pD,e,null,t.root,-1,{});return new oE("",new QD(n,[]))}(t,e),i=new Lb([new ID("",{})]),r=new Lb({}),a=new Lb({}),o=new Lb({}),s=new Lb(""),l=new iE(i,r,o,s,a,pD,e,n.root);return l.snapshot=n.root,new eE(new QD(l,[]),n)}class iE{constructor(t,e,n,i,r,a,o,s){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=a,this.component=o,this._futureSnapshot=s}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(L((t=>fD(t))))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(L((t=>fD(t))))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"}}function rE(t,e="emptyOnly"){const n=t.pathFromRoot;let i=0;if("always"!==e)for(i=n.length-1;i>=1;){const t=n[i],e=n[i-1];if(t.routeConfig&&""===t.routeConfig.path)i--;else{if(e.component)break;i--}}return n.slice(i).reduce(((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)})),{params:{},data:{},resolve:{}})}class aE{constructor(t,e,n,i,r,a,o,s,l,c,h){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=a,this.component=o,this.routeConfig=s,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=fD(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=fD(this.queryParams)),this._queryParamMap}toString(){return"Route(url:'"+this.url.map((t=>t.toString())).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"}}class oE extends $D{constructor(t,e){super(e),this.url=t,sE(this,e)}toString(){return lE(this._root)}}function sE(t,e){e.value._routerState=t,e.children.forEach((e=>sE(t,e)))}function lE(t){const e=t.children.length>0?" { "+t.children.map(lE).join(", ")+" } ":"";return""+t.value+e}function cE(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,wD(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),wD(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!wD(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),wD(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function hE(t,e){var n,i;return wD(t.params,e.params)&&(n=t.url,i=e.url,LD(n,i)&&n.every(((t,e)=>wD(t.parameters,i[e].parameters))))&&!(!t.parent!=!e.parent)&&(!t.parent||hE(t.parent,e.parent))}function dE(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const a=n.value;a._futureSnapshot=e.value;const o=(i=t,r=n,e.children.map((t=>{for(const e of r.children)if(i.shouldReuseRoute(t.value,e.value.snapshot))return dE(i,t,e);return dE(i,t)})));return new QD(a,o)}var i,r,a;{if(t.shouldAttach(e.value)){const n=t.retrieve(e.value);if(null!==n){const t=n.route;return uE(e,t),t}}const n=(a=e.value,new iE(new Lb(a.url),new Lb(a.params),new Lb(a.queryParams),new Lb(a.fragment),new Lb(a.data),a.outlet,a.component,a)),i=e.children.map((e=>dE(t,e)));return new QD(n,i)}}function uE(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let n=0;n<t.children.length;++n)uE(t.children[n],e.children[n])}function mE(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function pE(t){return"object"==typeof t&&null!=t&&t.outlets}function gE(t,e,n,i,r){let a={};return i&&kD(i,((t,e)=>{a[e]=Array.isArray(t)?t.map((t=>""+t)):""+t})),new AD(n.root===t?e:fE(n.root,t,e),a,r)}function fE(t,e,n){const i={};return kD(t.children,((t,r)=>{i[r]=t===e?n:fE(t,e,n)})),new TD(t.segments,i)}class bE{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&mE(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(pE);if(i&&i!==CD(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class yE{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function vE(t,e,n){if(t||(t=new TD([],{})),0===t.segments.length&&t.hasChildren())return wE(t,e,n);const i=function(t,e,n){let i=0,r=e;const a={match:!1,pathIndex:0,commandIndex:0};for(;r<t.segments.length;){if(i>=n.length)return a;const e=t.segments[r],o=n[i];if(pE(o))break;const s=""+o,l=i<n.length-1?n[i+1]:null;if(r>0&&void 0===s)break;if(s&&l&&"object"==typeof l&&void 0===l.outlets){if(!SE(s,l,e))return a;i+=2}else{if(!SE(s,{},e))return a;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,e,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){const e=new TD(t.segments.slice(0,i.pathIndex),{});return e.children.primary=new TD(t.segments.slice(i.pathIndex),t.children),wE(e,0,r)}return i.match&&0===r.length?new TD(t.segments,{}):i.match&&!t.hasChildren()?xE(t,e,n):i.match?wE(t,0,r):xE(t,e,n)}function wE(t,e,n){if(0===n.length)return new TD(t.segments,{});{const r=pE((i=n)[0])?i[0].outlets:{[pD]:i},a={};return kD(r,((n,i)=>{"string"==typeof n&&(n=[n]),null!==n&&(a[i]=vE(t.children[i],e,n))})),kD(t.children,((t,e)=>{void 0===r[e]&&(a[e]=t)})),new TD(t.segments,a)}var i}function xE(t,e,n){const i=t.segments.slice(0,e);let r=0;for(;r<n.length;){const a=n[r];if(pE(a)){const t=CE(a.outlets);return new TD(i,t)}if(0===r&&mE(n[0])){i.push(new ID(t.segments[e].path,kE(n[0]))),r++;continue}const o=pE(a)?a.outlets.primary:""+a,s=r<n.length-1?n[r+1]:null;o&&s&&mE(s)?(i.push(new ID(o,kE(s))),r+=2):(i.push(new ID(o,{})),r++)}return new TD(i,{})}function CE(t){const e={};return kD(t,((t,n)=>{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=xE(new TD([],{}),0,t))})),e}function kE(t){const e={};return kD(t,((t,n)=>e[n]=""+t)),e}function SE(t,e,n){return t==n.path&&wD(e,n.parameters)}class PE{constructor(t,e,n,i){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=i}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),cE(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=tE(e);t.children.forEach((t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]})),kD(i,((t,e)=>{this.deactivateRouteAndItsChildren(t,n)}))}deactivateRoutes(t,e,n){const i=t.value,r=e?e.value:null;if(i===r)if(i.component){const r=n.getContext(i.outlet);r&&this.deactivateChildRoutes(t,e,r.children)}else this.deactivateChildRoutes(t,e,n);else r&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:i})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet),i=n&&t.value.component?n.children:e,r=tE(t);for(const t of Object.keys(r))this.deactivateRouteAndItsChildren(r[t],i);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(t,e,n){const i=tE(e);t.children.forEach((t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new mD(t.value.snapshot))})),t.children.length&&this.forwardEvent(new dD(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,r=e?e.value:null;if(cE(i),i===r)if(i.component){const r=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,r.children)}else this.activateChildRoutes(t,e,n);else if(i.component){const e=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const t=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),_E(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(i.snapshot),r=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=i,e.resolver=r,e.outlet&&e.outlet.activateWith(i,r),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function _E(t){cE(t.value),t.children.forEach(_E)}class ME{constructor(t,e){this.routes=t,this.module=e}}function DE(t){return"function"==typeof t}function EE(t){return t instanceof AD}const OE=Symbol("INITIAL_VALUE");function AE(){return Ju((t=>EM(t.map((t=>t.pipe(JC(1),cC(OE))))).pipe(BM(((t,e)=>{let n=!1;return e.reduce(((t,i,r)=>t!==OE?t:(i===OE&&(n=!0),n||!1!==i&&r!==e.length-1&&!EE(i)?t:i)),t)}),OE),lm((t=>t!==OE)),L((t=>EE(t)?t:!0===t)),JC(1))))}let TE=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵcmp"]=qt({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&Xo(0,"router-outlet")},directives:function(){return[DO]},encapsulation:2}),t})();function IE(t,e=""){for(let o=0;o<t.length;o++){const s=t[o];n=s,r=e,i=(a=s)?r||a.path?r&&!a.path?r+"/":!r&&a.path?a.path:r+"/"+a.path:"":r,n.children&&IE(n.children,i)}var n,i,r,a}function LE(t){const e=t.children&&t.children.map(LE),n=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&n.outlet!==pD&&(n.component=TE),n}function zE(t){return t.outlet||pD}function RE(t,e){const n=t.filter((t=>zE(t)===e));return n.push(...t.filter((t=>zE(t)!==e))),n}const FE={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function BE(t,e,n){var i;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},FE):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const r=(e.matcher||vD)(n,t,e);if(!r)return Object.assign({},FE);const a={};kD(r.posParams,((t,e)=>{a[e]=t.path}));const o=r.consumed.length>0?Object.assign(Object.assign({},a),r.consumed[r.consumed.length-1].parameters):a;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function VE(t,e,n,i,r="corrected"){if(n.length>0&&(a=t,o=n,i.some((t=>NE(a,o,t)&&zE(t)!==pD)))){const r=new TD(e,function(t,e,n,i){const r={};r.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;for(const i of n)if(""===i.path&&zE(i)!==pD){const n=new TD([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,r[zE(i)]=n}return r}(t,e,i,new TD(n,t.children)));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:[]}}var a,o,s,l;if(0===n.length&&(s=t,l=n,i.some((t=>NE(s,l,t))))){const a=new TD(t.segments,function(t,e,n,i,r,a){const o={};for(const s of i)if(NE(t,n,s)&&!r[zE(s)]){const n=new TD([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===a?t.segments.length:e.length,o[zE(s)]=n}return Object.assign(Object.assign({},r),o)}(t,e,n,i,t.children,r));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:n}}const c=new TD(t.segments,t.children);return c._sourceSegment=t,c._segmentIndexShift=e.length,{segmentGroup:c,slicedSegments:n}}function NE(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function HE(t,e,n,i){return!!(zE(t)===i||i!==pD&&NE(e,n,t))&&("**"===t.path||BE(e,t,n).matched)}function GE(t,e,n){return 0===e.length&&!t.children[n]}class ZE{constructor(t){this.segmentGroup=t||null}}class UE{constructor(t){this.urlTree=t}}function WE(t){return new _((e=>e.error(new ZE(t))))}function YE(t){return new _((e=>e.error(new UE(t))))}function jE(t){return new _((e=>e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))))}class XE{constructor(t,e,n,i,r){this.configLoader=e,this.urlSerializer=n,this.urlTree=i,this.config=r,this.allowRedirects=!0,this.ngModule=t.get(Kl)}apply(){const t=VE(this.urlTree.root,[],[],this.config).segmentGroup,e=new TD(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,pD).pipe(L((t=>this.createUrlTree(qE(t),this.urlTree.queryParams,this.urlTree.fragment)))).pipe(_S((t=>{if(t instanceof UE)return this.allowRedirects=!1,this.match(t.urlTree);throw t instanceof ZE?this.noMatchError(t):t})))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,pD).pipe(L((e=>this.createUrlTree(qE(e),t.queryParams,t.fragment)))).pipe(_S((t=>{throw t instanceof ZE?this.noMatchError(t):t})))}noMatchError(t){return new Error("Cannot match any routes. URL Segment: '"+t.segmentGroup+"'")}createUrlTree(t,e,n){const i=t.segments.length>0?new TD([],{[pD]:t}):t;return new AD(i,e,n)}expandSegmentGroup(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(L((t=>new TD([],t)))):this.expandSegment(t,n,e,n.segments,i,!0)}expandChildren(t,e,n){const i=[];for(const t of Object.keys(n.children))"primary"===t?i.unshift(t):i.push(t);return Z(i).pipe(sm((i=>{const r=n.children[i],a=RE(e,i);return this.expandSegmentGroup(t,a,r,i).pipe(L((t=>({segment:t,outlet:i}))))})),BM(((t,e)=>(t[e.outlet]=e.segment,t)),{}),function(t,e){const n=arguments.length>=2;return i=>i.pipe(t?lm(((e,n)=>t(e,n,i))):P,HM(1),n?XM(e):UM((()=>new FM)))}())}expandSegment(t,e,n,i,r,a){return Z(n).pipe(sm((o=>this.expandSegmentAgainstRoute(t,e,n,o,i,r,a).pipe(_S((t=>{if(t instanceof ZE)return Uu(null);throw t}))))),KM((t=>!!t)),_S(((t,n)=>{if(t instanceof FM||"EmptyError"===t.name){if(GE(e,i,r))return Uu(new TD([],{}));throw new ZE(e)}throw t})))}expandSegmentAgainstRoute(t,e,n,i,r,a,o){return HE(i,e,r,a)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,r,a):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,a):WE(e):WE(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,a){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,a):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,a)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,i){const r=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?YE(r):this.lineralizeSegments(n,r).pipe(j((n=>{const r=new TD(n,{});return this.expandSegment(t,r,e,n,i,!1)})))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,a){const{matched:o,consumedSegments:s,lastChild:l,positionalParamSegments:c}=BE(e,i,r);if(!o)return WE(e);const h=this.applyRedirectCommands(s,i.redirectTo,c);return i.redirectTo.startsWith("/")?YE(h):this.lineralizeSegments(i,h).pipe(j((i=>this.expandSegment(t,e,n,i.concat(r.slice(l)),a,!1))))}matchSegmentAgainstRoute(t,e,n,i,r){if("**"===n.path)return n.loadChildren?(n._loadedConfig?Uu(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe(L((t=>(n._loadedConfig=t,new TD(i,{}))))):Uu(new TD(i,{}));const{matched:a,consumedSegments:o,lastChild:s}=BE(e,n,i);if(!a)return WE(e);const l=i.slice(s);return this.getChildConfig(t,n,i).pipe(j((t=>{const i=t.module,a=t.routes,{segmentGroup:s,slicedSegments:c}=VE(e,o,l,a),h=new TD(s.segments,s.children);if(0===c.length&&h.hasChildren())return this.expandChildren(i,a,h).pipe(L((t=>new TD(o,t))));if(0===a.length&&0===c.length)return Uu(new TD(o,{}));const d=zE(n)===r;return this.expandSegment(i,h,a,c,d?pD:r,!0).pipe(L((t=>new TD(o.concat(t.segments),t.children))))})))}getChildConfig(t,e,n){return e.children?Uu(new ME(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Uu(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(j((n=>{return n?this.configLoader.load(t.injector,e).pipe(L((t=>(e._loadedConfig=t,t)))):(i=e,new _((t=>t.error(yD("Cannot load children because the guard of the route \"path: '"+i.path+"'\" returned false")))));var i}))):Uu(new ME([],t))}runCanLoadGuards(t,e,n){const i=e.canLoad;if(!i||0===i.length)return Uu(!0);return Uu(i.map((i=>{const r=t.get(i);let a;if((o=r)&&DE(o.canLoad))a=r.canLoad(e,n);else{if(!DE(r))throw new Error("Invalid CanLoad guard");a=r(e,n)}var o;return SD(a)}))).pipe(AE(),wS((t=>{if(!EE(t))return;const e=yD('Redirecting to "'+this.urlSerializer.serialize(t)+'"');throw e.url=t,e})),L((t=>!0===t)))}lineralizeSegments(t,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Uu(n);if(i.numberOfChildren>1||!i.children.primary)return jE(t.redirectTo);i=i.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,i){const r=this.createSegmentGroup(t,e.root,n,i);return new AD(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return kD(t,((t,i)=>{if("string"==typeof t&&t.startsWith(":")){const r=t.substring(1);n[i]=e[r]}else n[i]=t})),n}createSegmentGroup(t,e,n,i){const r=this.createSegments(t,e.segments,n,i);let a={};return kD(e.children,((e,r)=>{a[r]=this.createSegmentGroup(t,e,n,i)})),new TD(r,a)}createSegments(t,e,n,i){return e.map((e=>e.path.startsWith(":")?this.findPosParam(t,e,i):this.findOrReturn(e,n)))}findPosParam(t,e,n){const i=n[e.path.substring(1)];if(!i)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return i}findOrReturn(t,e){let n=0;for(const i of e){if(i.path===t.path)return e.splice(n),i;n++}return t}}function qE(t){const e={};for(const n of Object.keys(t.children)){const i=qE(t.children[n]);(i.segments.length>0||i.hasChildren())&&(e[n]=i)}return function(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new TD(t.segments.concat(e.segments),e.children)}return t}(new TD(t.segments,e))}class $E{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class KE{constructor(t,e){this.component=t,this.route=e}}function JE(t,e,n){const i=t._root;return tO(i,e?e._root:null,n,[i.value])}function QE(t,e,n){const i=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(i?i.module.injector:n).get(t)}function tO(t,e,n,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const a=tE(e);return t.children.forEach((t=>{(function(t,e,n,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const a=t.value,o=e?e.value:null,s=n?n.getContext(t.value.outlet):null;if(o&&a.routeConfig===o.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!LD(t.url,e.url);case"pathParamsOrQueryParamsChange":return!LD(t.url,e.url)||!wD(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!hE(t,e)||!wD(t.queryParams,e.queryParams);default:return!hE(t,e)}}(o,a,a.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new $E(i)):(a.data=o.data,a._resolvedData=o._resolvedData),tO(t,e,a.component?s?s.children:null:n,i,r),l&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new KE(s.outlet.component,o))}else o&&eO(e,s,r),r.canActivateChecks.push(new $E(i)),tO(t,null,a.component?s?s.children:null:n,i,r)})(t,a[t.value.outlet],n,i.concat([t.value]),r),delete a[t.value.outlet]})),kD(a,((t,e)=>eO(t,n.getContext(e),r))),r}function eO(t,e,n){const i=tE(t),r=t.value;kD(i,((t,i)=>{eO(t,r.component?e?e.children.getContext(i):null:e,n)})),n.canDeactivateChecks.push(new KE(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}class nO{}function iO(t){return new _((e=>e.error(t)))}class rO{constructor(t,e,n,i,r,a){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=a}recognize(){const t=VE(this.urlTree.root,[],[],this.config.filter((t=>void 0===t.redirectTo)),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,pD);if(null===e)return null;const n=new aE([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},pD,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new QD(n,e),r=new oE(this.url,i);return this.inheritParamsAndData(r._root),r}inheritParamsAndData(t){const e=t.value,n=rE(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach((t=>this.inheritParamsAndData(t)))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=[];for(const i of Object.keys(e.children)){const r=e.children[i],a=RE(t,i),o=this.processSegmentGroup(a,r,i);if(null===o)return null;n.push(...o)}const i=oO(n);return i.sort(((t,e)=>t.value.outlet===pD?-1:e.value.outlet===pD?1:t.value.outlet.localeCompare(e.value.outlet))),i}processSegment(t,e,n,i){for(const r of t){const t=this.processSegmentAgainstRoute(r,e,n,i);if(null!==t)return t}return GE(e,n,i)?[]:null}processSegmentAgainstRoute(t,e,n,i){if(t.redirectTo||!HE(t,e,n,i))return null;let r,a=[],o=[];if("**"===t.path){const i=n.length>0?CD(n).parameters:{};r=new aE(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,cO(t),zE(t),t.component,t,sO(e),lO(e)+n.length,hO(t))}else{const i=BE(e,t,n);if(!i.matched)return null;a=i.consumedSegments,o=n.slice(i.lastChild),r=new aE(a,i.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,cO(t),zE(t),t.component,t,sO(e),lO(e)+a.length,hO(t))}const s=(h=t).children?h.children:h.loadChildren?h._loadedConfig.routes:[],{segmentGroup:l,slicedSegments:c}=VE(e,a,o,s.filter((t=>void 0===t.redirectTo)),this.relativeLinkResolution);var h;if(0===c.length&&l.hasChildren()){const t=this.processChildren(s,l);return null===t?null:[new QD(r,t)]}if(0===s.length&&0===c.length)return[new QD(r,[])];const d=zE(t)===i,u=this.processSegment(s,l,c,d?pD:i);return null===u?null:[new QD(r,u)]}}function aO(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function oO(t){const e=[],n=new Set;for(const i of t){if(!aO(i)){e.push(i);continue}const t=e.find((t=>i.value.routeConfig===t.value.routeConfig));void 0!==t?(t.children.push(...i.children),n.add(t)):e.push(i)}for(const t of n){const n=oO(t.children);e.push(new QD(t.value,n))}return e.filter((t=>!n.has(t)))}function sO(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function lO(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function cO(t){return t.data||{}}function hO(t){return t.resolve||{}}function dO(t){return Ju((e=>{const n=t(e);return n?Z(n).pipe(L((()=>e))):Uu(e)}))}class uO extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const mO=new ni("ROUTES");class pO{constructor(t,e,n,i){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=i}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const n=this.loadModuleFactory(e.loadChildren).pipe(L((n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const i=n.create(t);return new ME((r=i.injector.get(mO,void 0,Dt.Self|Dt.Optional),Array.prototype.concat.apply([],r)).map(LE),i);var r})),_S((t=>{throw e._loader$=void 0,t})));return e._loader$=new nt(n,(()=>new A)).pipe(Q()),e._loader$}loadModuleFactory(t){return"string"==typeof t?Z(this.loader.load(t)):SD(t()).pipe(j((t=>t instanceof Jl?Uu(t):Z(this.compiler.compileModuleAsync(t)))))}}class gO{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new fO,this.attachRef=null}}class fO{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new gO,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class bO{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function yO(t){throw t}function vO(t,e,n){return e.parse("/")}function wO(t,e){return Uu(null)}const xO={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},CO={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let kO=(()=>{class t{constructor(t,e,n,i,r,a,o,s){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=s,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new A,this.errorHandler=yO,this.malformedUriErrorHandler=vO,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:wO,afterPreactivation:wO},this.urlHandlingStrategy=new bO,this.routeReuseStrategy=new uO,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=r.get(Kl),this.console=r.get(eh);const l=r.get(ph);this.isNgZoneEnabled=l instanceof ph&&ph.isInAngularZone(),this.resetConfig(s),this.currentUrlTree=new AD(new TD([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new pO(a,o,(t=>this.triggerEvent(new lD(t))),(t=>this.triggerEvent(new cD(t)))),this.routerState=nE(this.currentUrlTree,this.rootComponentType),this.transitions=new Lb({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var t;return null===(t=this.location.getState())||void 0===t?void 0:t["ɵrouterPageId"]}setupNavigations(t){const e=this.events;return t.pipe(lm((t=>0!==t.id)),L((t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)}))),Ju((t=>{let n=!1,i=!1;return Uu(t).pipe(wS((t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}})),Ju((t=>{const n=this.browserUrlTree.toString(),i=!this.navigated||t.extractedUrl.toString()!==n||n!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return SO(t.source)&&(this.browserUrlTree=t.extractedUrl),Uu(t).pipe(Ju((t=>{const n=this.transitions.getValue();return e.next(new QM(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?Gu:Promise.resolve(t)})),(c=this.ngModule.injector,h=this.configLoader,d=this.urlSerializer,u=this.config,Ju((t=>{return(e=c,n=h,i=d,r=t.extractedUrl,a=u,new XE(e,n,i,r,a).apply()).pipe(L((e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e}))));var e,n,i,r,a}))),wS((t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})})),(r=this.rootComponentType,a=this.config,o=t=>this.serializeUrl(t),s=this.paramsInheritanceStrategy,l=this.relativeLinkResolution,j((t=>function(t,e,n,i,r="emptyOnly",a="legacy"){try{const o=new rO(t,e,n,i,r,a).recognize();return null===o?iO(new nO):Uu(o)}catch(t){return iO(t)}}(r,a,t.urlAfterRedirects,o(t.urlAfterRedirects),s,l).pipe(L((e=>Object.assign(Object.assign({},t),{targetSnapshot:e}))))))),wS((t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,t),this.browserUrlTree=t.urlAfterRedirects);const n=new iD(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)})));var r,a,o,s,l,c,h,d,u;if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:r,restoredState:a,extras:o}=t,s=new QM(n,this.serializeUrl(i),r,a);e.next(s);const l=nE(i,this.rootComponentType).snapshot;return Uu(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:i,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Gu})),dO((t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:a,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!a,replaceUrl:!!o})})),wS((t=>{const e=new rD(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)})),L((t=>Object.assign(Object.assign({},t),{guards:JE(t.targetSnapshot,t.currentSnapshot,this.rootContexts)}))),(s=this.ngModule.injector,l=t=>this.triggerEvent(t),j((t=>{const{targetSnapshot:e,currentSnapshot:n,guards:{canActivateChecks:i,canDeactivateChecks:r}}=t;return 0===r.length&&0===i.length?Uu(Object.assign(Object.assign({},t),{guardsResult:!0})):(a=r,o=e,c=n,h=s,Z(a).pipe(j((t=>function(t,e,n,i,r){const a=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return a&&0!==a.length?Uu(a.map((a=>{const o=QE(a,e,r);let s;if((l=o)&&DE(l.canDeactivate))s=SD(o.canDeactivate(t,e,n,i));else{if(!DE(o))throw new Error("Invalid CanDeactivate guard");s=SD(o(t,e,n,i))}var l;return s.pipe(KM())}))).pipe(AE()):Uu(!0)}(t.component,t.route,c,o,h))),KM((t=>!0!==t),!0))).pipe(j((t=>{return t&&"boolean"==typeof t?(n=e,r=s,a=l,Z(i).pipe(sm((t=>{return lC((o=t.route.parent,s=a,null!==o&&s&&s(new hD(o)),Uu(!0)),(e=t.route,i=a,null!==e&&i&&i(new uD(e)),Uu(!0)),function(t,e,n){const i=e[e.length-1],r=e.slice(0,e.length-1).reverse().map((t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t))).filter((t=>null!==t)).map((e=>u_((()=>Uu(e.guards.map((r=>{const a=QE(r,e.node,n);let o;if((s=a)&&DE(s.canActivateChild))o=SD(a.canActivateChild(i,t));else{if(!DE(a))throw new Error("Invalid CanActivateChild guard");o=SD(a(i,t))}var s;return o.pipe(KM())}))).pipe(AE())))));return Uu(r).pipe(AE())}(n,t.path,r),function(t,e,n){const i=e.routeConfig?e.routeConfig.canActivate:null;return i&&0!==i.length?Uu(i.map((i=>u_((()=>{const r=QE(i,e,n);let a;if((o=r)&&DE(o.canActivate))a=SD(r.canActivate(e,t));else{if(!DE(r))throw new Error("Invalid CanActivate guard");a=SD(r(e,t))}var o;return a.pipe(KM())}))))).pipe(AE()):Uu(!0)}(n,t.route,r));var e,i,o,s})),KM((t=>!0!==t),!0))):Uu(t);var n,r,a})),L((e=>Object.assign(Object.assign({},t),{guardsResult:e}))));var a,o,c,h}))),wS((t=>{if(EE(t.guardsResult)){const e=yD('Redirecting to "'+this.serializeUrl(t.guardsResult)+'"');throw e.url=t.guardsResult,e}const e=new aD(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)})),lm((t=>!!t.guardsResult||(this.restoreHistory(t),this.cancelNavigationTransition(t,""),!1))),dO((t=>{if(t.guards.canActivateChecks.length)return Uu(t).pipe(wS((t=>{const e=new oD(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)})),Ju((t=>{let e=!1;return Uu(t).pipe((n=this.paramsInheritanceStrategy,i=this.ngModule.injector,j((t=>{const{targetSnapshot:e,guards:{canActivateChecks:r}}=t;if(!r.length)return Uu(t);let a=0;return Z(r).pipe(sm((t=>{return r=t.route,a=e,o=n,s=i,function(t,e,n,i){const r=Object.keys(t);if(0===r.length)return Uu({});const a={};return Z(r).pipe(j((r=>function(t,e,n,i){const r=QE(t,e,i);return SD(r.resolve?r.resolve(e,n):r(e,n))}(t[r],e,n,i).pipe(wS((t=>{a[r]=t}))))),HM(1),j((()=>Object.keys(a).length===r.length?Uu(a):Gu)))}(r._resolve,r,a,s).pipe(L((t=>(r._resolvedData=t,r.data=Object.assign(Object.assign({},r.data),rE(r,o).resolve),null))));var r,a,o,s})),wS((()=>a++)),HM(1),j((e=>a===r.length?Uu(t):Gu)))}))),wS({next:()=>e=!0,complete:()=>{e||(this.restoreHistory(t),this.cancelNavigationTransition(t,"At least one route resolver didn't emit any value."))}}));var n,i})),wS((t=>{const e=new sD(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)})))})),dO((t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:a,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!a,replaceUrl:!!o})})),L((t=>{const e=function(t,e,n){const i=dE(t,e._root,n?n._root:void 0);return new eE(i,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})})),wS((t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(t.urlAfterRedirects,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,t),this.browserUrlTree=t.urlAfterRedirects)})),(r=this.rootContexts,a=this.routeReuseStrategy,o=t=>this.triggerEvent(t),L((t=>(new PE(a,t.targetRouterState,t.currentRouterState,o).activate(r),t)))),wS({next(){n=!0},complete(){n=!0}}),kS((()=>{var e;if(!n&&!i){const e="Navigation ID "+t.id+" is not equal to the current navigation id "+this.navigationId;"replace"===this.canceledNavigationResolution?(this.restoreHistory(t),this.cancelNavigationTransition(t,e)):this.cancelNavigationTransition(t,e)}(null===(e=this.currentNavigation)||void 0===e?void 0:e.id)===t.id&&(this.currentNavigation=null)})),_S((n=>{if(i=!0,(r=n)&&r[bD]){const i=EE(n.url);i||(this.navigated=!0,this.restoreHistory(t,!0));const r=new eD(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(r),i?setTimeout((()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree),i={skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||SO(t.source)};this.scheduleNavigation(e,"imperative",null,i,{resolve:t.resolve,reject:t.reject,promise:t.promise})}),0):t.resolve(!1)}else{this.restoreHistory(t,!0);const i=new nD(t.id,this.serializeUrl(t.extractedUrl),n);e.next(i);try{t.resolve(this.errorHandler(n))}catch(e){t.reject(e)}}var r;return Gu})));var r,a,o,s,l})))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe((t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout((()=>{const{source:t,state:n,urlTree:i}=e,r={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,delete t["ɵrouterPageId"],0!==Object.keys(t).length&&(r.state=t)}this.scheduleNavigation(i,t,n,r)}),0),this.lastLocationChangeInfo=e})))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const n=e.urlTree.toString()===t.urlTree.toString();return e.transitionId!==t.transitionId||!n||!("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){IE(t),this.config=t.map(LE),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,e={}){const{relativeTo:n,queryParams:i,fragment:r,queryParamsHandling:a,preserveFragment:o}=e,s=n||this.routerState.root,l=o?this.currentUrlTree.fragment:r;let c=null;switch(a){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,n,i,r){if(0===n.length)return gE(e.root,e.root,e,i,r);const a=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new bE(!0,0,t);let e=0,n=!1;const i=t.reduce(((t,i,r)=>{if("object"==typeof i&&null!=i){if(i.outlets){const e={};return kD(i.outlets,((t,n)=>{e[n]="string"==typeof t?t.split("/"):t})),[...t,{outlets:e}]}if(i.segmentPath)return[...t,i.segmentPath]}return"string"!=typeof i?[...t,i]:0===r?(i.split("/").forEach(((i,r)=>{0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))})),t):[...t,i]}),[]);return new bE(n,e,i)}(n);if(a.toRoot())return gE(e.root,new TD([],{}),e,i,r);const o=function(t,e,n){if(t.isAbsolute)return new yE(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new yE(t,t===e.root,0)}const i=mE(t.commands[0])?0:1;return function(t,e,n){let i=t,r=e,a=n;for(;a>r;){if(a-=r,i=i.parent,!i)throw new Error("Invalid number of '../'");r=i.segments.length}return new yE(i,!1,r-a)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(a,e,t),s=o.processChildren?wE(o.segmentGroup,o.index,a.commands):vE(o.segmentGroup,o.index,a.commands);return gE(o.segmentGroup,s,e,i,r)}(s,this.currentUrlTree,t,c,null!=l?l:null)}navigateByUrl(t,e={skipLocationChange:!1}){const n=EE(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e<t.length;e++){const n=t[e];if(null==n)throw new Error("The requested path contains "+n+" segment at index "+e)}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){let e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e}isActive(t,e){let n;if(n=!0===e?Object.assign({},xO):!1===e?Object.assign({},CO):e,EE(t))return MD(this.currentUrlTree,t,n);const i=this.parseUrl(t);return MD(this.currentUrlTree,i,n)}removeEmptyProps(t){return Object.keys(t).reduce(((e,n)=>{const i=t[n];return null!=i&&(e[n]=i),e}),{})}processNavigations(){this.navigations.subscribe((t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new tD(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)}),(t=>{this.console.warn("Unhandled Navigation Error: "+t)}))}scheduleNavigation(t,e,n,i,r){var a,o;if(this.disposed)return Promise.resolve(!1);const s=this.getTransition(),l=SO(e)&&s&&!SO(s.source),c=(this.lastSuccessfulId===s.id||this.currentNavigation?s.rawUrl:s.urlAfterRedirects).toString()===t.toString();if(l&&c)return Promise.resolve(!0);let h,d,u;r?(h=r.resolve,d=r.reject,u=r.promise):u=new Promise(((t,e)=>{h=t,d=e}));const m=++this.navigationId;let p;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(n=this.location.getState()),p=n&&n["ɵrouterPageId"]?n["ɵrouterPageId"]:i.replaceUrl||i.skipLocationChange?null!==(a=this.browserPageId)&&void 0!==a?a:0:(null!==(o=this.browserPageId)&&void 0!==o?o:0)+1):p=0,this.setTransition({id:m,targetPageId:p,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:h,reject:d,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch((t=>Promise.reject(t)))}setBrowserUrl(t,e){const n=this.urlSerializer.serialize(t),i=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(n)||e.extras.replaceUrl?this.location.replaceState(n,"",i):this.location.go(n,"",i)}restoreHistory(t,e=!1){var n,i;if("computed"===this.canceledNavigationResolution){const e=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(n=this.currentNavigation)||void 0===n?void 0:n.finalUrl)||0===e?this.currentUrlTree===(null===(i=this.currentNavigation)||void 0===i?void 0:i.finalUrl)&&0===e&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(e)}else"replace"===this.canceledNavigationResolution&&(e&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,e){const n=new eD(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(n),t.resolve(!1)}generateNgRouterState(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,ɵrouterPageId:e}:{navigationId:t}}}return t["ɵfac"]=function(e){return new(e||t)(wi(ii),wi(zD),wi(fO),wi(td),wi(wo),wi(zh),wi(dh),wi(void 0))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})();function SO(t){return"imperative"!==t}let PO=(()=>{class t{constructor(t,e,n,i,r){this.router=t,this.route=e,this.commands=[],this.onChanges=new A,null==n&&i.setAttribute(r.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:MO(this.skipLocationChange),replaceUrl:MO(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:MO(this.preserveFragment)})}}return t["ɵfac"]=function(e){return new(e||t)(Zo(kO),Zo(iE),Qn("tabindex"),Zo(wl),Zo(bl))},t["ɵdir"]=ne({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&es("click",(function(){return e.onClick()}))},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[pe]}),t})(),_O=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new A,this.subscription=t.events.subscribe((t=>{t instanceof tD&&this.updateTargetUrlAndHref()}))}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,i,r){if(0!==t||e||n||i||r||"string"==typeof this.target&&"_self"!=this.target)return!0;const a={skipLocationChange:MO(this.skipLocationChange),replaceUrl:MO(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,a),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:MO(this.preserveFragment)})}}return t["ɵfac"]=function(e){return new(e||t)(Zo(kO),Zo(iE),Zo($h))},t["ɵdir"]=ne({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&es("click",(function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)})),2&t&&(Ys("href",e.href,Hr),Fo("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[pe]}),t})();function MO(t){return""===t||!!t}let DO=(()=>{class t{constructor(t,e,n,i,r){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=r,this.activated=null,this._activatedRoute=null,this.activateEvents=new Dc,this.deactivateEvents=new Dc,this.name=i||pD,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,r=new EO(t,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t["ɵfac"]=function(e){return new(e||t)(Zo(fO),Zo(tc),Zo(ml),Qn("name"),Zo(Gl))},t["ɵdir"]=ne({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class EO{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===iE?this.route:t===fO?this.childContexts:this.parent.get(t,e)}}const OO=["nz-submenu",""];function AO(t,e){1&t&&cs(0,0,["*ngIf","!nzTitle"])}function TO(t,e){if(1&t&&Xo(0,"div",6),2&t){const t=os(),e=Go(7);Uo("mode",t.mode)("nzOpen",t.nzOpen)("@.disabled",null==t.noAnimation?null:t.noAnimation.nzNoAnimation)("nzNoAnimation",null==t.noAnimation?null:t.noAnimation.nzNoAnimation)("menuClass",t.nzMenuClassName)("templateOutlet",e)}}function IO(t,e){if(1&t){const t=Jo();Yo(0,"div",8),es("subMenuMouseState",(function(e){return Ne(t),os(2).setMouseEnterState(e)})),jo()}if(2&t){const t=os(2),e=Go(7);Uo("theme",t.theme)("mode",t.mode)("nzOpen",t.nzOpen)("position",t.position)("nzDisabled",t.nzDisabled)("isMenuInsideDropDown",t.isMenuInsideDropDown)("templateOutlet",e)("menuClass",t.nzMenuClassName)("@.disabled",null==t.noAnimation?null:t.noAnimation.nzNoAnimation)("nzNoAnimation",null==t.noAnimation?null:t.noAnimation.nzNoAnimation)}}function LO(t,e){if(1&t){const t=Jo();Ho(0,IO,1,10,"ng-template",7),es("positionChange",(function(e){return Ne(t),os().onPositionChange(e)}))}if(2&t){const t=os(),e=Go(1);Uo("cdkConnectedOverlayPositions",t.overlayPositions)("cdkConnectedOverlayOrigin",e)("cdkConnectedOverlayWidth",t.triggerWidth)("cdkConnectedOverlayOpen",t.nzOpen)("cdkConnectedOverlayTransformOriginOn",".ant-menu-submenu")}}function zO(t,e){1&t&&cs(0,1)}const RO=[[["","title",""]],"*"],FO=["[title]","*"],BO=["nz-submenu-title",""];function VO(t,e){1&t&&Xo(0,"i",4),2&t&&Uo("nzType",os().nzIcon)}function NO(t,e){if(1&t&&(qo(0),Yo(1,"span"),Bs(2),jo(),$o()),2&t){const t=os();sa(2),Vs(t.nzTitle)}}function HO(t,e){1&t&&Xo(0,"i",8)}function GO(t,e){1&t&&Xo(0,"i",9)}function ZO(t,e){1&t&&(Yo(0,"span",5),Ho(1,HO,1,0,"i",6),Ho(2,GO,1,0,"i",7),jo()),2&t&&(Uo("ngSwitch",os().dir),sa(1),Uo("ngSwitchCase","rtl"))}function UO(t,e){1&t&&Xo(0,"i",10)}const WO=["*"],YO=["nz-submenu-inline-child",""];function jO(t,e){}const XO=["nz-submenu-none-inline-child",""];function qO(t,e){}let $O=(()=>{class t{constructor(){this.descendantMenuItemClick$=new A,this.childMenuItemClick$=new A,this.theme$=new Lb("light"),this.mode$=new Lb("vertical"),this.inlineIndent$=new Lb(24),this.isChildSubMenuOpen$=new Lb(!1)}onDescendantMenuItemClick(t){this.descendantMenuItemClick$.next(t)}onChildMenuItemClick(t){this.childMenuItemClick$.next(t)}setMode(t){this.mode$.next(t)}setTheme(t){this.theme$.next(t)}setInlineIndent(t){this.inlineIndent$.next(t)}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})();const KO=new ni("NzIsInDropDownMenuToken"),JO=new ni("NzMenuServiceLocalToken");let QO=(()=>{class t{constructor(t,e,n){this.nzHostSubmenuService=t,this.nzMenuService=e,this.isMenuInsideDropDown=n,this.mode$=this.nzMenuService.mode$.pipe(L((t=>"inline"===t?"inline":"vertical"===t||this.nzHostSubmenuService?"vertical":"horizontal"))),this.level=1,this.isCurrentSubMenuOpen$=new Lb(!1),this.isChildSubMenuOpen$=new Lb(!1),this.isMouseEnterTitleOrOverlay$=new A,this.childMenuItemClick$=new A,this.destroy$=new A,this.nzHostSubmenuService&&(this.level=this.nzHostSubmenuService.level+1);const i=this.childMenuItemClick$.pipe(j((()=>this.mode$)),lm((t=>"inline"!==t||this.isMenuInsideDropDown)),BS(!1)),r=J(this.isMouseEnterTitleOrOverlay$,i);EM([this.isChildSubMenuOpen$,r]).pipe(L((([t,e])=>t||e)),rC(150),qx(),aC(this.destroy$)).pipe(qx()).subscribe((t=>{this.setOpenStateWithoutDebounce(t),this.nzHostSubmenuService?this.nzHostSubmenuService.isChildSubMenuOpen$.next(t):this.nzMenuService.isChildSubMenuOpen$.next(t)}))}onChildMenuItemClick(t){this.childMenuItemClick$.next(t)}setOpenStateWithoutDebounce(t){this.isCurrentSubMenuOpen$.next(t)}setMouseEnterTitleOrOverlayState(t){this.isMouseEnterTitleOrOverlay$.next(t)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t["ɵfac"]=function(e){return new(e||t)(wi(t,12),wi($O),wi(KO))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),tA=(()=>{class t{constructor(t,e,n,i,r,a,o,s){this.nzMenuService=t,this.cdr=e,this.nzSubmenuService=n,this.isMenuInsideDropDown=i,this.directionality=r,this.routerLink=a,this.routerLinkWithHref=o,this.router=s,this.destroy$=new A,this.level=this.nzSubmenuService?this.nzSubmenuService.level+1:1,this.selected$=new A,this.inlinePaddingLeft=null,this.dir="ltr",this.nzDisabled=!1,this.nzSelected=!1,this.nzDanger=!1,this.nzMatchRouterExact=!1,this.nzMatchRouter=!1,s&&this.router.events.pipe(aC(this.destroy$),lm((t=>t instanceof tD))).subscribe((()=>{this.updateRouterActive()}))}clickMenuItem(t){this.nzDisabled?(t.preventDefault(),t.stopPropagation()):(this.nzMenuService.onDescendantMenuItemClick(this),this.nzSubmenuService?this.nzSubmenuService.onChildMenuItemClick(this):this.nzMenuService.onChildMenuItemClick(this))}setSelectedState(t){this.nzSelected=t,this.selected$.next(t)}updateRouterActive(){!this.listOfRouterLink||!this.listOfRouterLinkWithHref||!this.router||!this.router.navigated||!this.nzMatchRouter||Promise.resolve().then((()=>{const t=this.hasActiveLinks();this.nzSelected!==t&&(this.nzSelected=t,this.setSelectedState(this.nzSelected),this.cdr.markForCheck())}))}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.routerLink&&t(this.routerLink)||this.routerLinkWithHref&&t(this.routerLinkWithHref)||this.listOfRouterLink.some(t)||this.listOfRouterLinkWithHref.some(t)}isLinkActive(t){return e=>t.isActive(e.urlTree,this.nzMatchRouterExact)}ngOnInit(){var t;EM([this.nzMenuService.mode$,this.nzMenuService.inlineIndent$]).pipe(aC(this.destroy$)).subscribe((([t,e])=>{this.inlinePaddingLeft="inline"===t?this.level*e:null})),this.dir=this.directionality.value,null===(t=this.directionality.change)||void 0===t||t.pipe(aC(this.destroy$)).subscribe((t=>{this.dir=t}))}ngAfterContentInit(){this.listOfRouterLink.changes.pipe(aC(this.destroy$)).subscribe((()=>this.updateRouterActive())),this.listOfRouterLinkWithHref.changes.pipe(aC(this.destroy$)).subscribe((()=>this.updateRouterActive())),this.updateRouterActive()}ngOnChanges(t){t.nzSelected&&this.setSelectedState(this.nzSelected)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t["ɵfac"]=function(e){return new(e||t)(Zo($O),Zo(Gl),Zo(QO,8),Zo(KO),Zo(Fx,8),Zo(PO,8),Zo(_O,8),Zo(kO,8))},t["ɵdir"]=ne({type:t,selectors:[["","nz-menu-item",""]],contentQueries:function(t,e,n){if(1&t&&(Hc(n,PO,5),Hc(n,_O,5)),2&t){let t;Vc(t=Gc())&&(e.listOfRouterLink=t),Vc(t=Gc())&&(e.listOfRouterLinkWithHref=t)}},hostVars:20,hostBindings:function(t,e){1&t&&es("click",(function(t){return e.clickMenuItem(t)})),2&t&&(xs("padding-left","rtl"===e.dir?null:e.nzPaddingLeft||e.inlinePaddingLeft,"px")("padding-right","rtl"===e.dir?e.nzPaddingLeft||e.inlinePaddingLeft:null,"px"),Cs("ant-dropdown-menu-item",e.isMenuInsideDropDown)("ant-dropdown-menu-item-selected",e.isMenuInsideDropDown&&e.nzSelected)("ant-dropdown-menu-item-danger",e.isMenuInsideDropDown&&e.nzDanger)("ant-dropdown-menu-item-disabled",e.isMenuInsideDropDown&&e.nzDisabled)("ant-menu-item",!e.isMenuInsideDropDown)("ant-menu-item-selected",!e.isMenuInsideDropDown&&e.nzSelected)("ant-menu-item-danger",!e.isMenuInsideDropDown&&e.nzDanger)("ant-menu-item-disabled",!e.isMenuInsideDropDown&&e.nzDisabled))},inputs:{nzDisabled:"nzDisabled",nzSelected:"nzSelected",nzDanger:"nzDanger",nzMatchRouterExact:"nzMatchRouterExact",nzMatchRouter:"nzMatchRouter",nzPaddingLeft:"nzPaddingLeft"},exportAs:["nzMenuItem"],features:[pe]}),Bk([hx()],t.prototype,"nzDisabled",void 0),Bk([hx()],t.prototype,"nzSelected",void 0),Bk([hx()],t.prototype,"nzDanger",void 0),Bk([hx()],t.prototype,"nzMatchRouterExact",void 0),Bk([hx()],t.prototype,"nzMatchRouter",void 0),t})();const eA=[TM.rightTop,TM.right,TM.rightBottom,TM.leftTop,TM.left,TM.leftBottom],nA=[TM.bottomLeft];let iA=(()=>{class t{constructor(t,e,n,i,r,a,o){this.nzMenuService=t,this.cdr=e,this.nzSubmenuService=n,this.platform=i,this.isMenuInsideDropDown=r,this.directionality=a,this.noAnimation=o,this.nzMenuClassName="",this.nzPaddingLeft=null,this.nzTitle=null,this.nzIcon=null,this.nzOpen=!1,this.nzDisabled=!1,this.nzOpenChange=new Dc,this.cdkOverlayOrigin=null,this.listOfNzSubMenuComponent=null,this.listOfNzMenuItemDirective=null,this.level=this.nzSubmenuService.level,this.destroy$=new A,this.position="right",this.triggerWidth=null,this.theme="light",this.mode="vertical",this.inlinePaddingLeft=null,this.overlayPositions=eA,this.isSelected=!1,this.isActive=!1,this.dir="ltr"}setOpenStateWithoutDebounce(t){this.nzSubmenuService.setOpenStateWithoutDebounce(t)}toggleSubMenu(){this.setOpenStateWithoutDebounce(!this.nzOpen)}setMouseEnterState(t){this.isActive=t,"inline"!==this.mode&&this.nzSubmenuService.setMouseEnterTitleOrOverlayState(t)}setTriggerWidth(){"horizontal"===this.mode&&this.platform.isBrowser&&this.cdkOverlayOrigin&&(this.triggerWidth=this.cdkOverlayOrigin.nativeElement.getBoundingClientRect().width)}onPositionChange(t){const e=LM(t);"rightTop"===e||"rightBottom"===e||"right"===e?this.position="right":("leftTop"===e||"leftBottom"===e||"left"===e)&&(this.position="left")}ngOnInit(){var t;this.nzMenuService.theme$.pipe(aC(this.destroy$)).subscribe((t=>{this.theme=t,this.cdr.markForCheck()})),this.nzSubmenuService.mode$.pipe(aC(this.destroy$)).subscribe((t=>{this.mode=t,"horizontal"===t?this.overlayPositions=nA:"vertical"===t&&(this.overlayPositions=eA),this.cdr.markForCheck()})),EM([this.nzSubmenuService.mode$,this.nzMenuService.inlineIndent$]).pipe(aC(this.destroy$)).subscribe((([t,e])=>{this.inlinePaddingLeft="inline"===t?this.level*e:null,this.cdr.markForCheck()})),this.nzSubmenuService.isCurrentSubMenuOpen$.pipe(aC(this.destroy$)).subscribe((t=>{this.isActive=t,t!==this.nzOpen&&(this.setTriggerWidth(),this.nzOpen=t,this.nzOpenChange.emit(this.nzOpen),this.cdr.markForCheck())})),this.dir=this.directionality.value,null===(t=this.directionality.change)||void 0===t||t.pipe(aC(this.destroy$)).subscribe((t=>{this.dir=t,this.cdr.markForCheck()}))}ngAfterContentInit(){this.setTriggerWidth();const t=this.listOfNzMenuItemDirective,e=t.changes,n=J(e,...t.map((t=>t.selected$)));e.pipe(cC(t),Ju((()=>n)),cC(!0),L((()=>t.some((t=>t.nzSelected)))),aC(this.destroy$)).subscribe((t=>{this.isSelected=t,this.cdr.markForCheck()}))}ngOnChanges(t){const{nzOpen:e}=t;e&&(this.nzSubmenuService.setOpenStateWithoutDebounce(this.nzOpen),this.setTriggerWidth())}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t["ɵfac"]=function(e){return new(e||t)(Zo($O),Zo(Gl),Zo(QO),Zo(bC),Zo(KO),Zo(Fx,8),Zo(Gk,9))},t["ɵcmp"]=qt({type:t,selectors:[["","nz-submenu",""]],contentQueries:function(e,n,i){if(1&e&&(Hc(i,t,5),Hc(i,tA,5)),2&e){let t;Vc(t=Gc())&&(n.listOfNzSubMenuComponent=t),Vc(t=Gc())&&(n.listOfNzMenuItemDirective=t)}},viewQuery:function(t,e){if(1&t&&Nc(Lk,7,bl),2&t){let t;Vc(t=Gc())&&(e.cdkOverlayOrigin=t.first)}},hostVars:34,hostBindings:function(t,e){2&t&&Cs("ant-dropdown-menu-submenu",e.isMenuInsideDropDown)("ant-dropdown-menu-submenu-disabled",e.isMenuInsideDropDown&&e.nzDisabled)("ant-dropdown-menu-submenu-open",e.isMenuInsideDropDown&&e.nzOpen)("ant-dropdown-menu-submenu-selected",e.isMenuInsideDropDown&&e.isSelected)("ant-dropdown-menu-submenu-vertical",e.isMenuInsideDropDown&&"vertical"===e.mode)("ant-dropdown-menu-submenu-horizontal",e.isMenuInsideDropDown&&"horizontal"===e.mode)("ant-dropdown-menu-submenu-inline",e.isMenuInsideDropDown&&"inline"===e.mode)("ant-dropdown-menu-submenu-active",e.isMenuInsideDropDown&&e.isActive)("ant-menu-submenu",!e.isMenuInsideDropDown)("ant-menu-submenu-disabled",!e.isMenuInsideDropDown&&e.nzDisabled)("ant-menu-submenu-open",!e.isMenuInsideDropDown&&e.nzOpen)("ant-menu-submenu-selected",!e.isMenuInsideDropDown&&e.isSelected)("ant-menu-submenu-vertical",!e.isMenuInsideDropDown&&"vertical"===e.mode)("ant-menu-submenu-horizontal",!e.isMenuInsideDropDown&&"horizontal"===e.mode)("ant-menu-submenu-inline",!e.isMenuInsideDropDown&&"inline"===e.mode)("ant-menu-submenu-active",!e.isMenuInsideDropDown&&e.isActive)("ant-menu-submenu-rtl","rtl"===e.dir)},inputs:{nzMenuClassName:"nzMenuClassName",nzPaddingLeft:"nzPaddingLeft",nzTitle:"nzTitle",nzIcon:"nzIcon",nzOpen:"nzOpen",nzDisabled:"nzDisabled"},outputs:{nzOpenChange:"nzOpenChange"},exportAs:["nzSubmenu"],features:[hl([QO]),pe],attrs:OO,ngContentSelectors:FO,decls:8,vars:9,consts:[["nz-submenu-title","","cdkOverlayOrigin","",3,"nzIcon","nzTitle","mode","nzDisabled","isMenuInsideDropDown","paddingLeft","subMenuMouseState","toggleSubMenu"],["origin","cdkOverlayOrigin"],[4,"ngIf"],["nz-submenu-inline-child","",3,"mode","nzOpen","nzNoAnimation","menuClass","templateOutlet",4,"ngIf","ngIfElse"],["nonInlineTemplate",""],["subMenuTemplate",""],["nz-submenu-inline-child","",3,"mode","nzOpen","nzNoAnimation","menuClass","templateOutlet"],["cdkConnectedOverlay","",3,"cdkConnectedOverlayPositions","cdkConnectedOverlayOrigin","cdkConnectedOverlayWidth","cdkConnectedOverlayOpen","cdkConnectedOverlayTransformOriginOn","positionChange"],["nz-submenu-none-inline-child","",3,"theme","mode","nzOpen","position","nzDisabled","isMenuInsideDropDown","templateOutlet","menuClass","nzNoAnimation","subMenuMouseState"]],template:function(t,e){if(1&t&&(ls(RO),Yo(0,"div",0,1),es("subMenuMouseState",(function(t){return e.setMouseEnterState(t)}))("toggleSubMenu",(function(){return e.toggleSubMenu()})),Ho(2,AO,1,0,"ng-content",2),jo(),Ho(3,TO,1,6,"div",3),Ho(4,LO,1,5,"ng-template",null,4,Yc),Ho(6,zO,1,0,"ng-template",null,5,Yc)),2&t){const t=Go(5);Uo("nzIcon",e.nzIcon)("nzTitle",e.nzTitle)("mode",e.mode)("nzDisabled",e.nzDisabled)("isMenuInsideDropDown",e.isMenuInsideDropDown)("paddingLeft",e.nzPaddingLeft||e.inlinePaddingLeft),sa(2),Uo("ngIf",!e.nzTitle),sa(1),Uo("ngIf","inline"===e.mode)("ngIfElse",t)}},directives:function(){return[lA,Lk,Yd,cA,Gk,zk,hA]},encapsulation:2,changeDetection:0}),Bk([hx()],t.prototype,"nzOpen",void 0),Bk([hx()],t.prototype,"nzDisabled",void 0),t})();function rA(t,e){return t||e}function aA(t){return t||!1}let oA=(()=>{class t{constructor(t,e,n,i){this.nzMenuService=t,this.isMenuInsideDropDown=e,this.cdr=n,this.directionality=i,this.nzInlineIndent=24,this.nzTheme="light",this.nzMode="vertical",this.nzInlineCollapsed=!1,this.nzSelectable=!this.isMenuInsideDropDown,this.nzClick=new Dc,this.actualMode="vertical",this.dir="ltr",this.inlineCollapsed$=new Lb(this.nzInlineCollapsed),this.mode$=new Lb(this.nzMode),this.destroy$=new A,this.listOfOpenedNzSubMenuComponent=[]}setInlineCollapsed(t){this.nzInlineCollapsed=t,this.inlineCollapsed$.next(t)}updateInlineCollapse(){this.listOfNzMenuItemDirective&&(this.nzInlineCollapsed?(this.listOfOpenedNzSubMenuComponent=this.listOfNzSubMenuComponent.filter((t=>t.nzOpen)),this.listOfNzSubMenuComponent.forEach((t=>t.setOpenStateWithoutDebounce(!1)))):(this.listOfOpenedNzSubMenuComponent.forEach((t=>t.setOpenStateWithoutDebounce(!0))),this.listOfOpenedNzSubMenuComponent=[]))}ngOnInit(){var t;EM([this.inlineCollapsed$,this.mode$]).pipe(aC(this.destroy$)).subscribe((([t,e])=>{this.actualMode=t?"vertical":e,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()})),this.nzMenuService.descendantMenuItemClick$.pipe(aC(this.destroy$)).subscribe((t=>{this.nzClick.emit(t),this.nzSelectable&&!t.nzMatchRouter&&this.listOfNzMenuItemDirective.forEach((e=>e.setSelectedState(e===t)))})),this.dir=this.directionality.value,null===(t=this.directionality.change)||void 0===t||t.pipe(aC(this.destroy$)).subscribe((t=>{this.dir=t,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()}))}ngAfterContentInit(){this.inlineCollapsed$.pipe(aC(this.destroy$)).subscribe((()=>{this.updateInlineCollapse(),this.cdr.markForCheck()}))}ngOnChanges(t){const{nzInlineCollapsed:e,nzInlineIndent:n,nzTheme:i,nzMode:r}=t;e&&this.inlineCollapsed$.next(this.nzInlineCollapsed),n&&this.nzMenuService.setInlineIndent(this.nzInlineIndent),i&&this.nzMenuService.setTheme(this.nzTheme),r&&(this.mode$.next(this.nzMode),!t.nzMode.isFirstChange()&&this.listOfNzSubMenuComponent&&this.listOfNzSubMenuComponent.forEach((t=>t.setOpenStateWithoutDebounce(!1))))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t["ɵfac"]=function(e){return new(e||t)(Zo($O),Zo(KO),Zo(Gl),Zo(Fx,8))},t["ɵdir"]=ne({type:t,selectors:[["","nz-menu",""]],contentQueries:function(t,e,n){if(1&t&&(Hc(n,tA,5),Hc(n,iA,5)),2&t){let t;Vc(t=Gc())&&(e.listOfNzMenuItemDirective=t),Vc(t=Gc())&&(e.listOfNzSubMenuComponent=t)}},hostVars:34,hostBindings:function(t,e){2&t&&Cs("ant-dropdown-menu",e.isMenuInsideDropDown)("ant-dropdown-menu-root",e.isMenuInsideDropDown)("ant-dropdown-menu-light",e.isMenuInsideDropDown&&"light"===e.nzTheme)("ant-dropdown-menu-dark",e.isMenuInsideDropDown&&"dark"===e.nzTheme)("ant-dropdown-menu-vertical",e.isMenuInsideDropDown&&"vertical"===e.actualMode)("ant-dropdown-menu-horizontal",e.isMenuInsideDropDown&&"horizontal"===e.actualMode)("ant-dropdown-menu-inline",e.isMenuInsideDropDown&&"inline"===e.actualMode)("ant-dropdown-menu-inline-collapsed",e.isMenuInsideDropDown&&e.nzInlineCollapsed)("ant-menu",!e.isMenuInsideDropDown)("ant-menu-root",!e.isMenuInsideDropDown)("ant-menu-light",!e.isMenuInsideDropDown&&"light"===e.nzTheme)("ant-menu-dark",!e.isMenuInsideDropDown&&"dark"===e.nzTheme)("ant-menu-vertical",!e.isMenuInsideDropDown&&"vertical"===e.actualMode)("ant-menu-horizontal",!e.isMenuInsideDropDown&&"horizontal"===e.actualMode)("ant-menu-inline",!e.isMenuInsideDropDown&&"inline"===e.actualMode)("ant-menu-inline-collapsed",!e.isMenuInsideDropDown&&e.nzInlineCollapsed)("ant-menu-rtl","rtl"===e.dir)},inputs:{nzInlineIndent:"nzInlineIndent",nzTheme:"nzTheme",nzMode:"nzMode",nzInlineCollapsed:"nzInlineCollapsed",nzSelectable:"nzSelectable"},outputs:{nzClick:"nzClick"},exportAs:["nzMenu"],features:[hl([{provide:JO,useClass:$O},{provide:$O,useFactory:rA,deps:[[new _i,new Pi,$O],JO]},{provide:KO,useFactory:aA,deps:[[new _i,new Pi,KO]]}]),pe]}),Bk([hx()],t.prototype,"nzInlineCollapsed",void 0),Bk([hx()],t.prototype,"nzSelectable",void 0),t})(),sA=(()=>{class t{constructor(t,e){this.elementRef=t,this.renderer=e,this.renderer.addClass(t.nativeElement,"ant-dropdown-menu-item-divider")}}return t["ɵfac"]=function(e){return new(e||t)(Zo(bl),Zo(wl))},t["ɵdir"]=ne({type:t,selectors:[["","nz-menu-divider",""]],exportAs:["nzMenuDivider"]}),t})(),lA=(()=>{class t{constructor(t,e){this.cdr=t,this.directionality=e,this.nzIcon=null,this.nzTitle=null,this.isMenuInsideDropDown=!1,this.nzDisabled=!1,this.paddingLeft=null,this.mode="vertical",this.toggleSubMenu=new Dc,this.subMenuMouseState=new Dc,this.dir="ltr",this.destroy$=new A}ngOnInit(){var t;this.dir=this.directionality.value,null===(t=this.directionality.change)||void 0===t||t.pipe(aC(this.destroy$)).subscribe((t=>{this.dir=t,this.cdr.detectChanges()}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setMouseState(t){this.nzDisabled||this.subMenuMouseState.next(t)}clickTitle(){"inline"===this.mode&&!this.nzDisabled&&this.toggleSubMenu.emit()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Gl),Zo(Fx,8))},t["ɵcmp"]=qt({type:t,selectors:[["","nz-submenu-title",""]],hostVars:8,hostBindings:function(t,e){1&t&&es("click",(function(){return e.clickTitle()}))("mouseenter",(function(){return e.setMouseState(!0)}))("mouseleave",(function(){return e.setMouseState(!1)})),2&t&&(xs("padding-left","rtl"===e.dir?null:e.paddingLeft,"px")("padding-right","rtl"===e.dir?e.paddingLeft:null,"px"),Cs("ant-dropdown-menu-submenu-title",e.isMenuInsideDropDown)("ant-menu-submenu-title",!e.isMenuInsideDropDown))},inputs:{nzIcon:"nzIcon",nzTitle:"nzTitle",isMenuInsideDropDown:"isMenuInsideDropDown",nzDisabled:"nzDisabled",paddingLeft:"paddingLeft",mode:"mode"},outputs:{toggleSubMenu:"toggleSubMenu",subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuTitle"],attrs:BO,ngContentSelectors:WO,decls:6,vars:4,consts:[["nz-icon","",3,"nzType",4,"ngIf"],[4,"nzStringTemplateOutlet"],["class","ant-dropdown-menu-submenu-expand-icon",3,"ngSwitch",4,"ngIf","ngIfElse"],["notDropdownTpl",""],["nz-icon","",3,"nzType"],[1,"ant-dropdown-menu-submenu-expand-icon",3,"ngSwitch"],["nz-icon","","nzType","left","class","ant-dropdown-menu-submenu-arrow-icon",4,"ngSwitchCase"],["nz-icon","","nzType","right","class","ant-dropdown-menu-submenu-arrow-icon",4,"ngSwitchDefault"],["nz-icon","","nzType","left",1,"ant-dropdown-menu-submenu-arrow-icon"],["nz-icon","","nzType","right",1,"ant-dropdown-menu-submenu-arrow-icon"],[1,"ant-menu-submenu-arrow"]],template:function(t,e){if(1&t&&(ls(),Ho(0,VO,1,1,"i",0),Ho(1,NO,3,1,"ng-container",1),cs(2),Ho(3,ZO,3,2,"span",2),Ho(4,UO,1,0,"ng-template",null,3,Yc)),2&t){const t=Go(5);Uo("ngIf",e.nzIcon),sa(1),Uo("nzStringTemplateOutlet",e.nzTitle),sa(2),Uo("ngIf",e.isMenuInsideDropDown)("ngIfElse",t)}},directives:[Yd,Uk,eP,$d,Kd,Jd],encapsulation:2,changeDetection:0}),t})(),cA=(()=>{class t{constructor(t,e,n){this.elementRef=t,this.renderer=e,this.directionality=n,this.templateOutlet=null,this.menuClass="",this.mode="vertical",this.nzOpen=!1,this.listOfCacheClassName=[],this.expandState="collapsed",this.dir="ltr",this.destroy$=new A,this.elementRef.nativeElement.classList.add("ant-menu","ant-menu-inline","ant-menu-sub")}calcMotionState(){this.expandState=this.nzOpen?"expanded":"collapsed"}ngOnInit(){var t;this.calcMotionState(),this.dir=this.directionality.value,null===(t=this.directionality.change)||void 0===t||t.pipe(aC(this.destroy$)).subscribe((t=>{this.dir=t}))}ngOnChanges(t){const{mode:e,nzOpen:n,menuClass:i}=t;(e||n)&&this.calcMotionState(),i&&(this.listOfCacheClassName.length&&this.listOfCacheClassName.filter((t=>!!t)).forEach((t=>{this.renderer.removeClass(this.elementRef.nativeElement,t)})),this.menuClass&&(this.listOfCacheClassName=this.menuClass.split(" "),this.listOfCacheClassName.filter((t=>!!t)).forEach((t=>{this.renderer.addClass(this.elementRef.nativeElement,t)}))))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(bl),Zo(wl),Zo(Fx,8))},t["ɵcmp"]=qt({type:t,selectors:[["","nz-submenu-inline-child",""]],hostVars:3,hostBindings:function(t,e){2&t&&(js("@collapseMotion",e.expandState),Cs("ant-menu-rtl","rtl"===e.dir))},inputs:{templateOutlet:"templateOutlet",menuClass:"menuClass",mode:"mode",nzOpen:"nzOpen"},exportAs:["nzSubmenuInlineChild"],features:[pe],attrs:YO,decls:1,vars:1,consts:[[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&Ho(0,jO,0,0,"ng-template",0),2&t&&Uo("ngTemplateOutlet",e.templateOutlet)},directives:[tu],encapsulation:2,data:{animation:[w_]},changeDetection:0}),t})(),hA=(()=>{class t{constructor(t,e){this.elementRef=t,this.directionality=e,this.menuClass="",this.theme="light",this.templateOutlet=null,this.isMenuInsideDropDown=!1,this.mode="vertical",this.position="right",this.nzDisabled=!1,this.nzOpen=!1,this.subMenuMouseState=new Dc,this.expandState="collapsed",this.dir="ltr",this.destroy$=new A,this.elementRef.nativeElement.classList.add("ant-menu-submenu","ant-menu-submenu-popup")}setMouseState(t){this.nzDisabled||this.subMenuMouseState.next(t)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}calcMotionState(){this.nzOpen?"horizontal"===this.mode?this.expandState="bottom":"vertical"===this.mode&&(this.expandState="active"):this.expandState="collapsed"}ngOnInit(){var t;this.calcMotionState(),this.dir=this.directionality.value,null===(t=this.directionality.change)||void 0===t||t.pipe(aC(this.destroy$)).subscribe((t=>{this.dir=t}))}ngOnChanges(t){const{mode:e,nzOpen:n}=t;(e||n)&&this.calcMotionState()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(bl),Zo(Fx,8))},t["ɵcmp"]=qt({type:t,selectors:[["","nz-submenu-none-inline-child",""]],hostVars:14,hostBindings:function(t,e){1&t&&es("mouseenter",(function(){return e.setMouseState(!0)}))("mouseleave",(function(){return e.setMouseState(!1)})),2&t&&(js("@slideMotion",e.expandState)("@zoomBigMotion",e.expandState),Cs("ant-menu-light","light"===e.theme)("ant-menu-dark","dark"===e.theme)("ant-menu-submenu-placement-bottom","horizontal"===e.mode)("ant-menu-submenu-placement-right","vertical"===e.mode&&"right"===e.position)("ant-menu-submenu-placement-left","vertical"===e.mode&&"left"===e.position)("ant-menu-submenu-rtl","rtl"===e.dir))},inputs:{menuClass:"menuClass",theme:"theme",templateOutlet:"templateOutlet",isMenuInsideDropDown:"isMenuInsideDropDown",mode:"mode",position:"position",nzDisabled:"nzDisabled",nzOpen:"nzOpen"},outputs:{subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuNoneInlineChild"],features:[pe],attrs:XO,decls:2,vars:16,consts:[[3,"ngClass"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&(Yo(0,"div",0),Ho(1,qO,0,0,"ng-template",1),jo()),2&t&&(Cs("ant-dropdown-menu",e.isMenuInsideDropDown)("ant-menu",!e.isMenuInsideDropDown)("ant-dropdown-menu-vertical",e.isMenuInsideDropDown)("ant-menu-vertical",!e.isMenuInsideDropDown)("ant-dropdown-menu-sub",e.isMenuInsideDropDown)("ant-menu-sub",!e.isMenuInsideDropDown)("ant-menu-rtl","rtl"===e.dir),Uo("ngClass",e.menuClass),sa(1),Uo("ngTemplateOutlet",e.templateOutlet))},directives:[Gd,tu],encapsulation:2,data:{animation:[__,P_]},changeDetection:0}),t})(),dA=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({imports:[[Vx,nu,yC,Fk,nP,Zk,Yk]]}),t})();function uA(t,e){if(1&t){const t=Jo();Yo(0,"div",0),es("@slideMotion.done",(function(e){return Ne(t),os().onAnimationEvent(e)}))("mouseenter",(function(){return Ne(t),os().setMouseState(!0)}))("mouseleave",(function(){return Ne(t),os().setMouseState(!1)})),cs(1),jo()}if(2&t){const t=os();Cs("ant-dropdown-rtl","rtl"===t.dir),Uo("ngClass",t.nzOverlayClassName)("ngStyle",t.nzOverlayStyle)("@slideMotion",void 0)("@.disabled",null==t.noAnimation?null:t.noAnimation.nzNoAnimation)("nzNoAnimation",null==t.noAnimation?null:t.noAnimation.nzNoAnimation)}}const mA=["*"],pA=[TM.bottomLeft,TM.bottomRight,TM.topRight,TM.topLeft];let gA=(()=>{class t{constructor(t,e,n,i,r,a){this.nzConfigService=t,this.elementRef=e,this.overlay=n,this.renderer=i,this.viewContainerRef=r,this.platform=a,this._nzModuleName="dropDown",this.overlayRef=null,this.destroy$=new A,this.positionStrategy=this.overlay.position().flexibleConnectedTo(this.elementRef.nativeElement).withLockedPosition().withTransformOriginOn(".ant-dropdown"),this.inputVisible$=new Lb(!1),this.nzTrigger$=new Lb("hover"),this.overlayClose$=new A,this.nzDropdownMenu=null,this.nzTrigger="hover",this.nzMatchWidthElement=null,this.nzHasBackdrop=!1,this.nzBackdrop=!1,this.nzClickHide=!0,this.nzDisabled=!1,this.nzVisible=!1,this.nzOverlayClassName="",this.nzOverlayStyle={},this.nzPlacement="bottomLeft",this.nzVisibleChange=new Dc,this.elementRef.nativeElement.classList.add("ant-dropdown-trigger")}setDropdownMenuValue(t,e){this.nzDropdownMenu&&this.nzDropdownMenu.setValue(t,e)}ngAfterViewInit(){if(this.nzDropdownMenu){const t=this.elementRef.nativeElement,e=J(Nx(t,"mouseenter").pipe(BS(!0)),Nx(t,"mouseleave").pipe(BS(!1))),n=J(this.nzDropdownMenu.mouseState$,e),i=Nx(t,"click").pipe(L((()=>!this.nzVisible))),r=J(this.nzTrigger$.pipe(Ju((t=>"hover"===t?n:"click"===t?i:Gu))),this.nzDropdownMenu.descendantMenuItemClick$.pipe(lm((()=>this.nzClickHide)),BS(!1)),this.overlayClose$).pipe(lm((()=>!this.nzDisabled)));EM([J(this.inputVisible$,r),this.nzDropdownMenu.isChildSubMenuOpen$]).pipe(L((([t,e])=>t||e)),rC(150),qx(),lm((()=>this.platform.isBrowser)),aC(this.destroy$)).subscribe((e=>{const n=(this.nzMatchWidthElement?this.nzMatchWidthElement.nativeElement:t).getBoundingClientRect().width;this.nzVisible!==e&&this.nzVisibleChange.emit(e),this.nzVisible=e,e?(this.overlayRef?this.overlayRef.getConfig().minWidth=n:(this.overlayRef=this.overlay.create({positionStrategy:this.positionStrategy,minWidth:n,disposeOnNavigation:!0,hasBackdrop:(this.nzHasBackdrop||this.nzBackdrop)&&"click"===this.nzTrigger,scrollStrategy:this.overlay.scrollStrategies.reposition()}),J(this.overlayRef.backdropClick(),this.overlayRef.detachments(),this.overlayRef.outsidePointerEvents().pipe(lm((t=>!this.elementRef.nativeElement.contains(t.target)))),this.overlayRef.keydownEvents().pipe(lm((t=>27===t.keyCode&&!ik(t))))).pipe(aC(this.destroy$)).subscribe((()=>{this.overlayClose$.next(!1)}))),this.positionStrategy.withPositions([TM[this.nzPlacement],...pA]),(!this.portal||this.portal.templateRef!==this.nzDropdownMenu.templateRef)&&(this.portal=new WC(this.nzDropdownMenu.templateRef,this.viewContainerRef)),this.overlayRef.attach(this.portal)):this.overlayRef&&this.overlayRef.detach()})),this.nzDropdownMenu.animationStateChange$.pipe(aC(this.destroy$)).subscribe((t=>{"void"===t.toState&&(this.overlayRef&&this.overlayRef.dispose(),this.overlayRef=null)}))}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)}ngOnChanges(t){const{nzVisible:e,nzDisabled:n,nzOverlayClassName:i,nzOverlayStyle:a,nzTrigger:o,nzHasBackdrop:s}=t;if(o&&this.nzTrigger$.next(this.nzTrigger),e&&this.inputVisible$.next(this.nzVisible),n){const t=this.elementRef.nativeElement;this.nzDisabled?(this.renderer.setAttribute(t,"disabled",""),this.inputVisible$.next(!1)):this.renderer.removeAttribute(t,"disabled")}i&&this.setDropdownMenuValue("nzOverlayClassName",this.nzOverlayClassName),a&&this.setDropdownMenuValue("nzOverlayStyle",this.nzOverlayStyle),s&&((...t)=>{{const e=(new Error).stack;Fb(((...t)=>r.warn(Rb,"deprecated:",...t,e)),...t)}})("`nzHasBackdrop` in dropdown component will be removed in 13.0.0, please use `nzBackdrop` instead.")}}return t["ɵfac"]=function(e){return new(e||t)(Zo(ZS),Zo(bl),Zo(Ak),Zo(wl),Zo(tc),Zo(bC))},t["ɵdir"]=ne({type:t,selectors:[["","nz-dropdown",""]],inputs:{nzDropdownMenu:"nzDropdownMenu",nzTrigger:"nzTrigger",nzMatchWidthElement:"nzMatchWidthElement",nzHasBackdrop:"nzHasBackdrop",nzBackdrop:"nzBackdrop",nzClickHide:"nzClickHide",nzDisabled:"nzDisabled",nzVisible:"nzVisible",nzOverlayClassName:"nzOverlayClassName",nzOverlayStyle:"nzOverlayStyle",nzPlacement:"nzPlacement"},outputs:{nzVisibleChange:"nzVisibleChange"},exportAs:["nzDropdown"],features:[pe]}),Bk([hx()],t.prototype,"nzHasBackdrop",void 0),Bk([US(),hx()],t.prototype,"nzBackdrop",void 0),Bk([hx()],t.prototype,"nzClickHide",void 0),Bk([hx()],t.prototype,"nzDisabled",void 0),Bk([hx()],t.prototype,"nzVisible",void 0),t})(),fA=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({}),t})(),bA=(()=>{class t{constructor(t,e,n,i,r,a,o){this.cdr=t,this.elementRef=e,this.renderer=n,this.viewContainerRef=i,this.nzMenuService=r,this.directionality=a,this.noAnimation=o,this.mouseState$=new Lb(!1),this.isChildSubMenuOpen$=this.nzMenuService.isChildSubMenuOpen$,this.descendantMenuItemClick$=this.nzMenuService.descendantMenuItemClick$,this.animationStateChange$=new Dc,this.nzOverlayClassName="",this.nzOverlayStyle={},this.dir="ltr",this.destroy$=new A}onAnimationEvent(t){this.animationStateChange$.emit(t)}setMouseState(t){this.mouseState$.next(t)}setValue(t,e){this[t]=e,this.cdr.markForCheck()}ngOnInit(){var t;null===(t=this.directionality.change)||void 0===t||t.pipe(aC(this.destroy$)).subscribe((t=>{this.dir=t,this.cdr.detectChanges()})),this.dir=this.directionality.value}ngAfterContentInit(){this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Gl),Zo(bl),Zo(wl),Zo(tc),Zo($O),Zo(Fx,8),Zo(Gk,9))},t["ɵcmp"]=qt({type:t,selectors:[["nz-dropdown-menu"]],viewQuery:function(t,e){if(1&t&&Nc(jl,7),2&t){let t;Vc(t=Gc())&&(e.templateRef=t.first)}},exportAs:["nzDropdownMenu"],features:[hl([$O,{provide:KO,useValue:!0}])],ngContentSelectors:mA,decls:1,vars:0,consts:[[1,"ant-dropdown",3,"ngClass","ngStyle","nzNoAnimation","mouseenter","mouseleave"]],template:function(t,e){1&t&&(ls(),Ho(0,uA,2,7,"ng-template"))},directives:[Gd,Qd,Gk],encapsulation:2,data:{animation:[P_]},changeDetection:0}),t})(),yA=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({imports:[[Vx,nu,Fk,Wp,yM,dA,nP,Zk,yC,RM,fA,Yk],dA]}),t})();const vA=[new mk({originX:"start",originY:"top"},{overlayX:"start",overlayY:"top"}),new mk({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),new mk({originX:"start",originY:"top"},{overlayX:"end",overlayY:"bottom"}),new mk({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"})];let wA=(()=>{class t{constructor(t){this.overlay=t,this.overlayRef=null,this.closeSubscription=y.EMPTY}create(t,e){this.close(!0);const{x:n,y:i}=t;t instanceof MouseEvent&&t.preventDefault();const r=this.overlay.position().flexibleConnectedTo({x:n,y:i}).withPositions(vA).withTransformOriginOn(".ant-dropdown");this.overlayRef=this.overlay.create({positionStrategy:r,disposeOnNavigation:!0,scrollStrategy:this.overlay.scrollStrategies.close()}),this.closeSubscription=J(e.descendantMenuItemClick$,Nx(document,"click").pipe(lm((t=>!!this.overlayRef&&!this.overlayRef.overlayElement.contains(t.target))),lm((t=>2!==t.button)),JC(1))).subscribe((()=>{this.close()})),this.overlayRef.attach(new WC(e.templateRef,e.viewContainerRef))}close(t=!1){this.overlayRef&&(this.overlayRef.detach(),t&&this.overlayRef.dispose(),this.overlayRef=null,this.closeSubscription.unsubscribe())}}return t["ɵfac"]=function(e){return new(e||t)(wi(Ak))},t["ɵprov"]=vt({factory:function(){return new t(wi(Ak))},token:t,providedIn:fA}),t})(),xA=(()=>{class t{constructor(t,e,n,i,r,a,o){this.elementRef=t,this.renderer=e,this.mediaMatcher=n,this.ngZone=i,this.platform=r,this.breakpointService=a,this.directionality=o,this.nzAlign=null,this.nzJustify=null,this.nzGutter=null,this.actualGutter$=new $u(1),this.dir="ltr",this.destroy$=new A,this.elementRef.nativeElement.classList.add("ant-row")}getGutter(){const t=[null,null],e=this.nzGutter||0;return(Array.isArray(e)?e:[e,null]).forEach(((e,n)=>{"object"==typeof e&&null!==e?(t[n]=null,Object.keys(HP).map((i=>{const r=i;this.mediaMatcher.matchMedia(HP[r]).matches&&e[r]&&(t[n]=e[r])}))):t[n]=Number(e)||null})),t}setGutterStyle(){const[t,e]=this.getGutter();this.actualGutter$.next([t,e]);const n=(t,e)=>{null!==e&&this.renderer.setStyle(this.elementRef.nativeElement,t,"-"+e/2+"px")};n("margin-left",t),n("margin-right",t),n("margin-top",e),n("margin-bottom",e)}ngOnInit(){var t;this.dir=this.directionality.value,null===(t=this.directionality.change)||void 0===t||t.pipe(aC(this.destroy$)).subscribe((t=>{this.dir=t})),this.setGutterStyle()}ngOnChanges(t){t.nzGutter&&this.setGutterStyle()}ngAfterViewInit(){this.platform.isBrowser&&this.breakpointService.subscribe(HP).pipe(aC(this.destroy$)).subscribe((()=>{this.setGutterStyle()}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(bl),Zo(wl),Zo(LP),Zo(ph),Zo(bC),Zo(GP),Zo(Fx,8))},t["ɵdir"]=ne({type:t,selectors:[["","nz-row",""],["nz-row"],["nz-form-item"]],hostVars:18,hostBindings:function(t,e){2&t&&Cs("ant-row-top","top"===e.nzAlign)("ant-row-middle","middle"===e.nzAlign)("ant-row-bottom","bottom"===e.nzAlign)("ant-row-start","start"===e.nzJustify)("ant-row-end","end"===e.nzJustify)("ant-row-center","center"===e.nzJustify)("ant-row-space-around","space-around"===e.nzJustify)("ant-row-space-between","space-between"===e.nzJustify)("ant-row-rtl","rtl"===e.dir)},inputs:{nzAlign:"nzAlign",nzJustify:"nzJustify",nzGutter:"nzGutter"},exportAs:["nzRow"],features:[pe]}),t})(),CA=(()=>{class t{constructor(t,e,n,i){this.elementRef=t,this.nzRowDirective=e,this.renderer=n,this.directionality=i,this.classMap={},this.destroy$=new A,this.hostFlexStyle=null,this.dir="ltr",this.nzFlex=null,this.nzSpan=null,this.nzOrder=null,this.nzOffset=null,this.nzPush=null,this.nzPull=null,this.nzXs=null,this.nzSm=null,this.nzMd=null,this.nzLg=null,this.nzXl=null,this.nzXXl=null}setHostClassMap(){const t=Object.assign({"ant-col":!0,["ant-col-"+this.nzSpan]:ix(this.nzSpan),["ant-col-order-"+this.nzOrder]:ix(this.nzOrder),["ant-col-offset-"+this.nzOffset]:ix(this.nzOffset),["ant-col-pull-"+this.nzPull]:ix(this.nzPull),["ant-col-push-"+this.nzPush]:ix(this.nzPush),"ant-col-rtl":"rtl"===this.dir},this.generateClass());for(const t in this.classMap)this.classMap.hasOwnProperty(t)&&this.renderer.removeClass(this.elementRef.nativeElement,t);this.classMap=Object.assign({},t);for(const t in this.classMap)this.classMap.hasOwnProperty(t)&&this.classMap[t]&&this.renderer.addClass(this.elementRef.nativeElement,t)}setHostFlexStyle(){this.hostFlexStyle=this.parseFlex(this.nzFlex)}parseFlex(t){return"number"==typeof t?t+" "+t+" auto":"string"==typeof t&&/^\d+(\.\d+)?(px|em|rem|%)$/.test(t)?"0 0 "+t:t}generateClass(){const t={};return["nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"].forEach((e=>{const n=e.replace("nz","").toLowerCase();if(ix(this[e]))if("number"==typeof this[e]||"string"==typeof this[e])t["ant-col-"+n+"-"+this[e]]=!0;else{const i=this[e];["span","pull","push","offset","order"].forEach((e=>{t["ant-col-"+n+("span"===e?"-":"-"+e+"-")+i[e]]=i&&ix(i[e])}))}})),t}ngOnInit(){this.dir=this.directionality.value,this.directionality.change.pipe(aC(this.destroy$)).subscribe((t=>{this.dir=t,this.setHostClassMap()})),this.setHostClassMap(),this.setHostFlexStyle()}ngOnChanges(t){this.setHostClassMap();const{nzFlex:e}=t;e&&this.setHostFlexStyle()}ngAfterViewInit(){this.nzRowDirective&&this.nzRowDirective.actualGutter$.pipe(aC(this.destroy$)).subscribe((([t,e])=>{const n=(t,e)=>{null!==e&&this.renderer.setStyle(this.elementRef.nativeElement,t,e/2+"px")};n("padding-left",t),n("padding-right",t),n("padding-top",e),n("padding-bottom",e)}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(bl),Zo(xA,9),Zo(wl),Zo(Fx,8))},t["ɵdir"]=ne({type:t,selectors:[["","nz-col",""],["nz-col"],["nz-form-control"],["nz-form-label"]],hostVars:2,hostBindings:function(t,e){2&t&&xs("flex",e.hostFlexStyle)},inputs:{nzFlex:"nzFlex",nzSpan:"nzSpan",nzOrder:"nzOrder",nzOffset:"nzOffset",nzPush:"nzPush",nzPull:"nzPull",nzXs:"nzXs",nzSm:"nzSm",nzMd:"nzMd",nzLg:"nzLg",nzXl:"nzXl",nzXXl:"nzXXl"},exportAs:["nzCol"],features:[pe]}),t})(),kA=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({imports:[[Vx,nu,AP,yC]]}),t})();const SA=["inputElement"];let PA=(()=>{class t{constructor(t,e,n,i){this.elementRef=t,this.cdr=e,this.focusMonitor=n,this.directionality=i,this.destroy$=new A,this.isFocused=!1,this.disabledUp=!1,this.disabledDown=!1,this.dir="ltr",this.onChange=()=>{},this.onTouched=()=>{},this.nzBlur=new Dc,this.nzFocus=new Dc,this.nzSize="default",this.nzMin=-1/0,this.nzMax=1/0,this.nzParser=t=>t.trim().replace(/\u3002/g,".").replace(/[^\w\.-]+/g,""),this.nzPrecisionMode="toFixed",this.nzPlaceHolder="",this.nzStep=1,this.nzInputMode="decimal",this.nzId=null,this.nzDisabled=!1,this.nzAutoFocus=!1,this.nzFormatter=t=>t,this.elementRef.nativeElement.classList.add("ant-input-number")}onModelChange(t){this.parsedValue=this.nzParser(t),this.inputElement.nativeElement.value=""+this.parsedValue;const e=this.getCurrentValidValue(this.parsedValue);this.setValue(e)}getCurrentValidValue(t){let e=t;return e=""===e?"":this.isNotCompleteNumber(e)?this.value:""+this.getValidValue(e),this.toNumber(e)}isNotCompleteNumber(t){return isNaN(t)||""===t||null===t||!(!t||t.toString().indexOf(".")!==t.toString().length-1)}getValidValue(t){let e=parseFloat(t);return isNaN(e)?t:(e<this.nzMin&&(e=this.nzMin),e>this.nzMax&&(e=this.nzMax),e)}toNumber(t){if(this.isNotCompleteNumber(t))return t;const e=String(t);if(e.indexOf(".")>=0&&ix(this.nzPrecision)){if("function"==typeof this.nzPrecisionMode)return this.nzPrecisionMode(t,this.nzPrecision);if("cut"===this.nzPrecisionMode){const t=e.split(".");return t[1]=t[1].slice(0,this.nzPrecision),Number(t.join("."))}return Number(Number(t).toFixed(this.nzPrecision))}return Number(t)}getRatio(t){let e=1;return t.metaKey||t.ctrlKey?e=.1:t.shiftKey&&(e=10),e}down(t,e){this.isFocused||this.focus(),this.step("down",t,e)}up(t,e){this.isFocused||this.focus(),this.step("up",t,e)}getPrecision(t){const e=t.toString();if(e.indexOf("e-")>=0)return parseInt(e.slice(e.indexOf("e-")+2),10);let n=0;return e.indexOf(".")>=0&&(n=e.length-e.indexOf(".")-1),n}getMaxPrecision(t,e){if(ix(this.nzPrecision))return this.nzPrecision;const n=this.getPrecision(e),i=this.getPrecision(this.nzStep),r=this.getPrecision(t);return t?Math.max(r,n+i):n+i}getPrecisionFactor(t,e){const n=this.getMaxPrecision(t,e);return Math.pow(10,n)}upStep(t,e){const n=this.getPrecisionFactor(t,e),i=Math.abs(this.getMaxPrecision(t,e));let r;return r="number"==typeof t?((n*t+n*this.nzStep*e)/n).toFixed(i):this.nzMin===-1/0?this.nzStep:this.nzMin,this.toNumber(r)}downStep(t,e){const n=this.getPrecisionFactor(t,e),i=Math.abs(this.getMaxPrecision(t,e));let r;return r="number"==typeof t?((n*t-n*this.nzStep*e)/n).toFixed(i):this.nzMin===-1/0?-this.nzStep:this.nzMin,this.toNumber(r)}step(t,e,n=1){if(this.stop(),e.preventDefault(),this.nzDisabled)return;const i=this.getCurrentValidValue(this.parsedValue)||0;let r=0;"up"===t?r=this.upStep(i,n):"down"===t&&(r=this.downStep(i,n));const a=r>this.nzMax||r<this.nzMin;r>this.nzMax?r=this.nzMax:r<this.nzMin&&(r=this.nzMin),this.setValue(r),this.updateDisplayValue(r),this.isFocused=!0,!a&&(this.autoStepTimer=setTimeout((()=>{this[t](e,n)}),300))}stop(){this.autoStepTimer&&clearTimeout(this.autoStepTimer)}setValue(t){if(""+this.value!=""+t&&this.onChange(t),this.value=t,this.parsedValue=t,this.disabledUp=this.disabledDown=!1,t||0===t){const e=Number(t);e>=this.nzMax&&(this.disabledUp=!0),e<=this.nzMin&&(this.disabledDown=!0)}}updateDisplayValue(t){const e=ix(this.nzFormatter(t))?this.nzFormatter(t):"";this.displayValue=e,this.inputElement.nativeElement.value=""+e}onKeyDown(t){if(38===t.keyCode){const e=this.getRatio(t);this.up(t,e),this.stop()}else if(40===t.keyCode){const e=this.getRatio(t);this.down(t,e),this.stop()}else 13===t.keyCode&&this.updateDisplayValue(this.value)}writeValue(t){this.value=t,this.setValue(t),this.updateDisplayValue(t),this.cdr.markForCheck()}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.nzDisabled=t,this.cdr.markForCheck()}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}ngOnInit(){var t;this.focusMonitor.monitor(this.elementRef,!0).pipe(aC(this.destroy$)).subscribe((t=>{t?(this.isFocused=!0,this.nzFocus.emit()):(this.isFocused=!1,this.updateDisplayValue(this.value),this.nzBlur.emit(),Promise.resolve().then((()=>this.onTouched())))})),this.dir=this.directionality.value,null===(t=this.directionality.change)||void 0===t||t.pipe(aC(this.destroy$)).subscribe((t=>{this.dir=t}))}ngOnChanges(t){if(t.nzFormatter&&!t.nzFormatter.isFirstChange()){const t=this.getCurrentValidValue(this.parsedValue);this.setValue(t),this.updateDisplayValue(t)}}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.destroy$.next(),this.destroy$.complete()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(bl),Zo(Gl),Zo(SP),Zo(Fx,8))},t["ɵcmp"]=qt({type:t,selectors:[["nz-input-number"]],viewQuery:function(t,e){if(1&t&&Nc(SA,7),2&t){let t;Vc(t=Gc())&&(e.inputElement=t.first)}},hostVars:10,hostBindings:function(t,e){2&t&&Cs("ant-input-number-focused",e.isFocused)("ant-input-number-lg","large"===e.nzSize)("ant-input-number-sm","small"===e.nzSize)("ant-input-number-disabled",e.nzDisabled)("ant-input-number-rtl","rtl"===e.dir)},inputs:{nzSize:"nzSize",nzMin:"nzMin",nzMax:"nzMax",nzParser:"nzParser",nzPrecisionMode:"nzPrecisionMode",nzPlaceHolder:"nzPlaceHolder",nzStep:"nzStep",nzInputMode:"nzInputMode",nzId:"nzId",nzDisabled:"nzDisabled",nzAutoFocus:"nzAutoFocus",nzFormatter:"nzFormatter",nzPrecision:"nzPrecision"},outputs:{nzBlur:"nzBlur",nzFocus:"nzFocus"},exportAs:["nzInputNumber"],features:[hl([{provide:Km,useExisting:ut((()=>t)),multi:!0}]),pe],decls:8,vars:13,consts:[[1,"ant-input-number-handler-wrap"],["unselectable","unselectable",1,"ant-input-number-handler","ant-input-number-handler-up",3,"mousedown","mouseup","mouseleave"],["nz-icon","","nzType","up",1,"ant-input-number-handler-up-inner"],["unselectable","unselectable",1,"ant-input-number-handler","ant-input-number-handler-down",3,"mousedown","mouseup","mouseleave"],["nz-icon","","nzType","down",1,"ant-input-number-handler-down-inner"],[1,"ant-input-number-input-wrap"],["autocomplete","off",1,"ant-input-number-input",3,"disabled","placeholder","ngModel","keydown","keyup","ngModelChange"],["inputElement",""]],template:function(t,e){1&t&&(Yo(0,"div",0),Yo(1,"span",1),es("mousedown",(function(t){return e.up(t)}))("mouseup",(function(){return e.stop()}))("mouseleave",(function(){return e.stop()})),Xo(2,"i",2),jo(),Yo(3,"span",3),es("mousedown",(function(t){return e.down(t)}))("mouseup",(function(){return e.stop()}))("mouseleave",(function(){return e.stop()})),Xo(4,"i",4),jo(),jo(),Yo(5,"div",5),Yo(6,"input",6,7),es("keydown",(function(t){return e.onKeyDown(t)}))("keyup",(function(){return e.stop()}))("ngModelChange",(function(t){return e.onModelChange(t)})),jo(),jo()),2&t&&(sa(1),Cs("ant-input-number-handler-up-disabled",e.disabledUp),sa(2),Cs("ant-input-number-handler-down-disabled",e.disabledDown),sa(3),Uo("disabled",e.nzDisabled)("placeholder",e.nzPlaceHolder)("ngModel",e.displayValue),Fo("id",e.nzId)("autofocus",e.nzAutoFocus?"autofocus":null)("min",e.nzMin)("max",e.nzMax)("step",e.nzStep)("inputmode",e.nzInputMode))},directives:[eP,np,xp,Np],encapsulation:2,changeDetection:0}),Bk([hx()],t.prototype,"nzDisabled",void 0),Bk([hx()],t.prototype,"nzAutoFocus",void 0),t})(),_A=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({imports:[[Vx,nu,Wp,nP]]}),t})();function MA(t,e){if(1&t){const t=Jo();Yo(0,"nz-message",2),es("destroyed",(function(e){return Ne(t),os().remove(e.id,e.userAction)})),jo()}2&t&&Uo("instance",e.$implicit)}function DA(t,e){1&t&&Xo(0,"i",10)}function EA(t,e){1&t&&Xo(0,"i",11)}function OA(t,e){1&t&&Xo(0,"i",12)}function AA(t,e){1&t&&Xo(0,"i",13)}function TA(t,e){1&t&&Xo(0,"i",14)}function IA(t,e){if(1&t&&(qo(0),Xo(1,"span",15),$o()),2&t){const t=os();sa(1),Uo("innerHTML",t.instance.content,Nr)}}let LA=0,zA=(()=>{class t{constructor(t,e){this.cdr=t,this.nzConfigService=e,this.instances=[],this.destroy$=new A,this.updateConfig()}ngOnInit(){this.subscribeConfigChange()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}create(t){const e=this.onCreate(t);return this.instances.length>=this.config.nzMaxStack&&(this.instances=this.instances.slice(1)),this.instances=[...this.instances,e],this.readyInstances(),e}remove(t,e=!1){this.instances.some(((n,i)=>n.messageId===t&&(this.instances.splice(i,1),this.instances=[...this.instances],this.onRemove(n,e),this.readyInstances(),!0)))}removeAll(){this.instances.forEach((t=>this.onRemove(t,!1))),this.instances=[],this.readyInstances()}onCreate(t){return t.options=this.mergeOptions(t.options),t.onClose=new A,t}onRemove(t,e){t.onClose.next(e),t.onClose.complete()}readyInstances(){this.cdr.detectChanges()}mergeOptions(t){const{nzDuration:e,nzAnimate:n,nzPauseOnHover:i}=this.config;return Object.assign({nzDuration:e,nzAnimate:n,nzPauseOnHover:i},t)}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Gl),Zo(ZS))},t["ɵdir"]=ne({type:t}),t})(),RA=(()=>{class t{constructor(t){this.cdr=t,this.destroyed=new Dc,this.animationStateChanged=new A,this.userAction=!1,this.eraseTimer=null}ngOnInit(){this.options=this.instance.options,this.options.nzAnimate&&(this.instance.state="enter",this.animationStateChanged.pipe(lm((t=>"done"===t.phaseName&&"leave"===t.toState)),JC(1)).subscribe((()=>{clearTimeout(this.closeTimer),this.destroyed.next({id:this.instance.messageId,userAction:this.userAction})}))),this.autoClose=this.options.nzDuration>0,this.autoClose&&(this.initErase(),this.startEraseTimeout())}ngOnDestroy(){this.autoClose&&this.clearEraseTimeout(),this.animationStateChanged.complete()}onEnter(){this.autoClose&&this.options.nzPauseOnHover&&(this.clearEraseTimeout(),this.updateTTL())}onLeave(){this.autoClose&&this.options.nzPauseOnHover&&this.startEraseTimeout()}destroy(t=!1){this.userAction=t,this.options.nzAnimate?(this.instance.state="leave",this.cdr.detectChanges(),this.closeTimer=setTimeout((()=>{this.closeTimer=void 0,this.destroyed.next({id:this.instance.messageId,userAction:t})}),200)):this.destroyed.next({id:this.instance.messageId,userAction:t})}initErase(){this.eraseTTL=this.options.nzDuration,this.eraseTimingStart=Date.now()}updateTTL(){this.autoClose&&(this.eraseTTL-=Date.now()-this.eraseTimingStart)}startEraseTimeout(){this.eraseTTL>0?(this.clearEraseTimeout(),this.eraseTimer=setTimeout((()=>this.destroy()),this.eraseTTL),this.eraseTimingStart=Date.now()):this.destroy()}clearEraseTimeout(){null!==this.eraseTimer&&(clearTimeout(this.eraseTimer),this.eraseTimer=null)}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Gl))},t["ɵdir"]=ne({type:t}),t})();const FA="message",BA={nzAnimate:!0,nzDuration:3e3,nzMaxStack:7,nzPauseOnHover:!0,nzTop:24,nzDirection:"ltr"};let VA=(()=>{class t extends zA{constructor(t,e){super(t,e),this.destroy$=new A,this.dir="ltr",this.instances=[];const n=this.nzConfigService.getConfigForComponent(FA);this.dir=(null==n?void 0:n.nzDirection)||"ltr"}subscribeConfigChange(){this.nzConfigService.getConfigChangeEventForComponent(FA).pipe(aC(this.destroy$)).subscribe((()=>{this.updateConfig();const t=this.nzConfigService.getConfigForComponent(FA);if(t){const{nzDirection:e}=t;this.dir=e||this.dir}}))}updateConfig(){this.config=Object.assign(Object.assign(Object.assign({},BA),this.config),this.nzConfigService.getConfigForComponent(FA)),this.top=tx(this.config.nzTop),this.cdr.markForCheck()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Gl),Zo(ZS))},t["ɵcmp"]=qt({type:t,selectors:[["nz-message-container"]],exportAs:["nzMessageContainer"],features:[Co],decls:2,vars:5,consts:[[1,"ant-message"],[3,"instance","destroyed",4,"ngFor","ngForOf"],[3,"instance","destroyed"]],template:function(t,e){1&t&&(Yo(0,"div",0),Ho(1,MA,1,1,"nz-message",1),jo()),2&t&&(xs("top",e.top),Cs("ant-message-rtl","rtl"===e.dir),sa(1),Uo("ngForOf",e.instances))},directives:function(){return[Ud,GA]},encapsulation:2,changeDetection:0}),t})(),NA=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({}),t})(),HA=(()=>{class t extends class{constructor(t,e,n){this.nzSingletonService=t,this.overlay=e,this.injector=n}remove(t){this.container&&(t?this.container.remove(t):this.container.removeAll())}getInstanceId(){return this.componentPrefix+"-"+LA++}withContainer(t){let e=this.nzSingletonService.getSingletonWithKey(this.componentPrefix);if(e)return e;const n=this.overlay.create({hasBackdrop:!1,scrollStrategy:this.overlay.scrollStrategies.noop(),positionStrategy:this.overlay.position().global()}),i=new UC(t,null,this.injector),r=n.attach(i);return n.overlayElement.style.zIndex="1010",e||(this.container=e=r.instance,this.nzSingletonService.registerSingletonWithKey(this.componentPrefix,e)),e}}{constructor(t,e,n){super(t,e,n),this.componentPrefix="message-"}success(t,e){return this.createInstance({type:"success",content:t},e)}error(t,e){return this.createInstance({type:"error",content:t},e)}info(t,e){return this.createInstance({type:"info",content:t},e)}warning(t,e){return this.createInstance({type:"warning",content:t},e)}loading(t,e){return this.createInstance({type:"loading",content:t},e)}create(t,e,n){return this.createInstance({type:t,content:e},n)}createInstance(t,e){return this.container=this.withContainer(VA),this.container.create(Object.assign(Object.assign({},t),{createdAt:new Date,messageId:this.getInstanceId(),options:e}))}}return t["ɵfac"]=function(e){return new(e||t)(wi(BP),wi(Ak),wi(wo))},t["ɵprov"]=vt({factory:function(){return new t(wi(BP),wi(Ak),wi(ro))},token:t,providedIn:NA}),t})(),GA=(()=>{class t extends RA{constructor(t){super(t),this.destroyed=new Dc}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Gl))},t["ɵcmp"]=qt({type:t,selectors:[["nz-message"]],inputs:{instance:"instance"},outputs:{destroyed:"destroyed"},exportAs:["nzMessage"],features:[Co],decls:10,vars:9,consts:[[1,"ant-message-notice",3,"mouseenter","mouseleave"],[1,"ant-message-notice-content"],[1,"ant-message-custom-content",3,"ngClass"],[3,"ngSwitch"],["nz-icon","","nzType","check-circle",4,"ngSwitchCase"],["nz-icon","","nzType","info-circle",4,"ngSwitchCase"],["nz-icon","","nzType","exclamation-circle",4,"ngSwitchCase"],["nz-icon","","nzType","close-circle",4,"ngSwitchCase"],["nz-icon","","nzType","loading",4,"ngSwitchCase"],[4,"nzStringTemplateOutlet"],["nz-icon","","nzType","check-circle"],["nz-icon","","nzType","info-circle"],["nz-icon","","nzType","exclamation-circle"],["nz-icon","","nzType","close-circle"],["nz-icon","","nzType","loading"],[3,"innerHTML"]],template:function(t,e){1&t&&(Yo(0,"div",0),es("@moveUpMotion.done",(function(t){return e.animationStateChanged.next(t)}))("mouseenter",(function(){return e.onEnter()}))("mouseleave",(function(){return e.onLeave()})),Yo(1,"div",1),Yo(2,"div",2),qo(3,3),Ho(4,DA,1,0,"i",4),Ho(5,EA,1,0,"i",5),Ho(6,OA,1,0,"i",6),Ho(7,AA,1,0,"i",7),Ho(8,TA,1,0,"i",8),$o(),Ho(9,IA,2,1,"ng-container",9),jo(),jo(),jo()),2&t&&(Uo("@moveUpMotion",e.instance.state),sa(2),Uo("ngClass","ant-message-"+e.instance.type),sa(1),Uo("ngSwitch",e.instance.type),sa(1),Uo("ngSwitchCase","success"),sa(1),Uo("ngSwitchCase","info"),sa(1),Uo("ngSwitchCase","warning"),sa(1),Uo("ngSwitchCase","error"),sa(1),Uo("ngSwitchCase","loading"),sa(1),Uo("nzStringTemplateOutlet",e.instance.content))},directives:[Gd,$d,Kd,Uk,eP],encapsulation:2,data:{animation:[C_]},changeDetection:0}),t})(),ZA=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({imports:[[Vx,nu,Fk,nP,Yk,NA]]}),t})();class UA{transform(t,e=0,n="B",i){if(!(fx(t)&&fx(e)&&e%1==0&&e>=0))return t;let r=t,a=n;for(;"B"!==a;)r*=1024,a=UA.formats[a].prev;if(i){const t=bx(UA.calculateResult(UA.formats[i],r),e);return UA.formatResult(t,i)}for(const t in UA.formats)if(UA.formats.hasOwnProperty(t)){const n=UA.formats[t];if(r<n.max){const i=bx(UA.calculateResult(n,r),e);return UA.formatResult(i,t)}}}static formatResult(t,e){return t+" "+e}static calculateResult(t,e){const n=t.prev?UA.formats[t.prev]:void 0;return n?e/n.max:e}}UA["ɵfac"]=function(t){return new(t||UA)},UA["ɵpipe"]=ie({name:"nzBytes",type:UA,pure:!0}),UA.formats={B:{max:1024},kB:{max:Math.pow(1024,2),prev:"B"},KB:{max:Math.pow(1024,2),prev:"B"},MB:{max:Math.pow(1024,3),prev:"kB"},GB:{max:Math.pow(1024,4),prev:"MB"},TB:{max:Number.MAX_SAFE_INTEGER,prev:"GB"}};let WA=(()=>{class t{transform(t,e="px"){let n="px";return["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","1h","vw","vh","vmin","vmax","%"].some((t=>t===e))&&(n=e),"number"==typeof t?""+t+n:""+t}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵpipe"]=ie({name:"nzToCssUnit",type:t,pure:!0}),t})(),YA=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({imports:[[nu]]}),t})();const jA=["modalElement"];function XA(t,e){if(1&t){const t=Jo();Yo(0,"button",16),es("click",(function(){return Ne(t),os().onCloseClick()})),jo()}}function qA(t,e){if(1&t&&(qo(0),Xo(1,"span",17),$o()),2&t){const t=os();sa(1),Uo("innerHTML",t.config.nzTitle,Nr)}}function $A(t,e){}function KA(t,e){1&t&&Xo(0,"div",17),2&t&&Uo("innerHTML",os().config.nzContent,Nr)}function JA(t,e){if(1&t){const t=Jo();Yo(0,"button",18),es("click",(function(){return Ne(t),os().onCancel()})),Bs(1),jo()}if(2&t){const t=os();Uo("nzLoading",!!t.config.nzCancelLoading)("disabled",t.config.nzCancelDisabled),Fo("cdkFocusInitial","cancel"===t.config.nzAutofocus||null),sa(1),Ns(" ",t.config.nzCancelText||t.locale.cancelText," ")}}function QA(t,e){if(1&t){const t=Jo();Yo(0,"button",19),es("click",(function(){return Ne(t),os().onOk()})),Bs(1),jo()}if(2&t){const t=os();Uo("nzType",t.config.nzOkType)("nzLoading",!!t.config.nzOkLoading)("disabled",t.config.nzOkDisabled)("nzDanger",t.config.nzOkDanger),Fo("cdkFocusInitial","ok"===t.config.nzAutofocus||null),sa(1),Ns(" ",t.config.nzOkText||t.locale.okText," ")}}function tT(t,e){if(1&t){const t=Jo();Yo(0,"button",9),es("click",(function(){return Ne(t),os().onCloseClick()})),jo()}}function eT(t,e){1&t&&Xo(0,"div",10)}function nT(t,e){}function iT(t,e){1&t&&Xo(0,"div",11),2&t&&Uo("innerHTML",os().config.nzContent,Nr)}function rT(t,e){if(1&t){const t=Jo();Yo(0,"div",12),es("cancelTriggered",(function(){return Ne(t),os().onCloseClick()}))("okTriggered",(function(){return Ne(t),os().onOkClick()})),jo()}2&t&&Uo("modalRef",os().modalRef)}const aT=["nz-modal-close",""];function oT(t,e){if(1&t&&(qo(0),Xo(1,"i",2),$o()),2&t){const t=e.$implicit;sa(1),Uo("nzType",t)}}const sT=["nz-modal-footer",""];function lT(t,e){1&t&&Xo(0,"div",5),2&t&&Uo("innerHTML",os(3).config.nzFooter,Nr)}function cT(t,e){if(1&t){const t=Jo();Yo(0,"button",7),es("click",(function(){const e=Ne(t).$implicit;return os(4).onButtonClick(e)})),Bs(1),jo()}if(2&t){const t=e.$implicit,n=os(4);Uo("hidden",!n.getButtonCallableProp(t,"show"))("nzLoading",n.getButtonCallableProp(t,"loading"))("disabled",n.getButtonCallableProp(t,"disabled"))("nzType",t.type)("nzDanger",t.danger)("nzShape",t.shape)("nzSize",t.size)("nzGhost",t.ghost),sa(1),Ns(" ",t.label," ")}}function hT(t,e){if(1&t&&(qo(0),Ho(1,cT,2,9,"button",6),$o()),2&t){const t=os(3);sa(1),Uo("ngForOf",t.buttons)}}function dT(t,e){if(1&t&&(qo(0),Ho(1,lT,1,1,"div",3),Ho(2,hT,2,1,"ng-container",4),$o()),2&t){const t=os(2);sa(1),Uo("ngIf",!t.buttonsFooter),sa(1),Uo("ngIf",t.buttonsFooter)}}const uT=function(t,e){return{$implicit:t,modalRef:e}};function mT(t,e){if(1&t&&(qo(0),Ho(1,dT,3,2,"ng-container",2),$o()),2&t){const t=os();sa(1),Uo("nzStringTemplateOutlet",t.config.nzFooter)("nzStringTemplateOutletContext",bc(2,uT,t.config.nzComponentParams,t.modalRef))}}function pT(t,e){if(1&t){const t=Jo();Yo(0,"button",10),es("click",(function(){return Ne(t),os(2).onCancel()})),Bs(1),jo()}if(2&t){const t=os(2);Uo("nzLoading",!!t.config.nzCancelLoading)("disabled",t.config.nzCancelDisabled),Fo("cdkFocusInitial","cancel"===t.config.nzAutofocus||null),sa(1),Ns(" ",t.config.nzCancelText||t.locale.cancelText," ")}}function gT(t,e){if(1&t){const t=Jo();Yo(0,"button",11),es("click",(function(){return Ne(t),os(2).onOk()})),Bs(1),jo()}if(2&t){const t=os(2);Uo("nzType",t.config.nzOkType)("nzDanger",t.config.nzOkDanger)("nzLoading",!!t.config.nzOkLoading)("disabled",t.config.nzOkDisabled),Fo("cdkFocusInitial","ok"===t.config.nzAutofocus||null),sa(1),Ns(" ",t.config.nzOkText||t.locale.okText," ")}}function fT(t,e){if(1&t&&(Ho(0,pT,2,4,"button",8),Ho(1,gT,2,6,"button",9)),2&t){const t=os();Uo("ngIf",null!==t.config.nzCancelText),sa(1),Uo("ngIf",null!==t.config.nzOkText)}}const bT=["nz-modal-title",""];function yT(t,e){if(1&t&&(qo(0),Xo(1,"div",2),$o()),2&t){const t=os();sa(1),Uo("innerHTML",t.config.nzTitle,Nr)}}const vT=()=>{};class wT{constructor(){this.nzCentered=!1,this.nzClosable=!0,this.nzOkLoading=!1,this.nzOkDisabled=!1,this.nzCancelDisabled=!1,this.nzCancelLoading=!1,this.nzNoAnimation=!1,this.nzAutofocus="auto",this.nzKeyboard=!0,this.nzZIndex=1e3,this.nzWidth=520,this.nzCloseIcon="close",this.nzOkType="primary",this.nzOkDanger=!1,this.nzModalType="default",this.nzOnCancel=vT,this.nzOnOk=vT,this.nzIconType="question-circle"}}const xT="ant-modal-mask",CT="modal",kT={modalContainer:Xp("modalContainer",[Jp("void, exit",Kp({})),Jp("enter",Kp({})),Qp("* => enter",qp(".24s",Kp({}))),Qp("* => void, * => exit",qp(".2s",Kp({})))])};function ST(t,e,n){return void 0===t?void 0===e?n:e:t}function PT(t){const{nzCentered:e,nzMask:n,nzMaskClosable:i,nzClosable:r,nzOkLoading:a,nzOkDisabled:o,nzCancelDisabled:s,nzCancelLoading:l,nzKeyboard:c,nzNoAnimation:h,nzContent:d,nzComponentParams:u,nzFooter:m,nzZIndex:p,nzWidth:g,nzWrapClassName:f,nzClassName:b,nzStyle:y,nzTitle:v,nzCloseIcon:w,nzMaskStyle:x,nzBodyStyle:C,nzOkText:k,nzCancelText:S,nzOkType:P,nzOkDanger:_,nzIconType:M,nzModalType:D,nzOnOk:E,nzOnCancel:O,nzAfterOpen:A,nzAfterClose:T,nzCloseOnNavigation:I,nzAutofocus:L}=t;return{nzCentered:e,nzMask:n,nzMaskClosable:i,nzClosable:r,nzOkLoading:a,nzOkDisabled:o,nzCancelDisabled:s,nzCancelLoading:l,nzKeyboard:c,nzNoAnimation:h,nzContent:d,nzComponentParams:u,nzFooter:m,nzZIndex:p,nzWidth:g,nzWrapClassName:f,nzClassName:b,nzStyle:y,nzTitle:v,nzCloseIcon:w,nzMaskStyle:x,nzBodyStyle:C,nzOkText:k,nzCancelText:S,nzOkType:P,nzOkDanger:_,nzIconType:M,nzModalType:D,nzOnOk:E,nzOnCancel:O,nzAfterOpen:A,nzAfterClose:T,nzCloseOnNavigation:I,nzAutofocus:L}}function _T(){throw Error("Attempting to attach modal content after content is already attached")}let MT=(()=>{class t extends jC{constructor(t,e,n,i,r,a,o,s,l,c){super(),this.ngZone=t,this.elementRef=e,this.focusTrapFactory=n,this.cdr=i,this.render=r,this.overlayRef=a,this.nzConfigService=o,this.config=s,this.animationType=c,this.animationStateChanged=new Dc,this.containerClick=new Dc,this.cancelTriggered=new Dc,this.okTriggered=new Dc,this.state="enter",this.isStringContent=!1,this.dir="ltr",this.elementFocusedBeforeModalWasOpened=null,this.mouseDown=!1,this.oldMaskStyle=null,this.destroy$=new A,this.document=l,this.dir=a.getDirection(),this.isStringContent="string"==typeof s.nzContent,this.nzConfigService.getConfigChangeEventForComponent(CT).pipe(aC(this.destroy$)).subscribe((()=>{this.updateMaskClassname()}))}get showMask(){const t=this.nzConfigService.getConfigForComponent(CT)||{};return!!ST(this.config.nzMask,t.nzMask,!0)}get maskClosable(){const t=this.nzConfigService.getConfigForComponent(CT)||{};return!!ST(this.config.nzMaskClosable,t.nzMaskClosable,!0)}onContainerClick(t){t.target===t.currentTarget&&!this.mouseDown&&this.showMask&&this.maskClosable&&this.containerClick.emit()}onMousedown(){this.mouseDown=!0}onMouseup(){this.mouseDown&&setTimeout((()=>{this.mouseDown=!1}))}onCloseClick(){this.cancelTriggered.emit()}onOkClick(){this.okTriggered.emit()}attachComponentPortal(t){return this.portalOutlet.hasAttached()&&_T(),this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop(),this.portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this.portalOutlet.hasAttached()&&_T(),this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop(),this.portalOutlet.attachTemplatePortal(t)}attachStringContent(){this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop()}getNativeElement(){return this.elementRef.nativeElement}animationDisabled(){return this.config.nzNoAnimation||"NoopAnimations"===this.animationType}setModalTransformOrigin(){const t=this.modalElementRef.nativeElement;if(this.elementFocusedBeforeModalWasOpened){const e=this.elementFocusedBeforeModalWasOpened.getBoundingClientRect(),n=mx(this.elementFocusedBeforeModalWasOpened);this.render.setStyle(t,"transform-origin",n.left+e.width/2-t.offsetLeft+"px "+(n.top+e.height/2-t.offsetTop)+"px 0px")}}savePreviouslyFocusedElement(){this.focusTrap||(this.focusTrap=this.focusTrapFactory.create(this.elementRef.nativeElement)),this.document&&(this.elementFocusedBeforeModalWasOpened=this.document.activeElement,this.elementRef.nativeElement.focus&&this.ngZone.runOutsideAngular((()=>Promise.resolve().then((()=>this.elementRef.nativeElement.focus())))))}trapFocus(){const t=this.elementRef.nativeElement;if(this.config.nzAutofocus)this.focusTrap.focusInitialElementWhenReady();else{const e=this.document.activeElement;e!==t&&!t.contains(e)&&t.focus()}}restoreFocus(){const t=this.elementFocusedBeforeModalWasOpened;if(t&&"function"==typeof t.focus){const e=this.document.activeElement,n=this.elementRef.nativeElement;(!e||e===this.document.body||e===n||n.contains(e))&&t.focus()}this.focusTrap&&this.focusTrap.destroy()}setEnterAnimationClass(){if(this.animationDisabled())return;this.setModalTransformOrigin();const t=this.modalElementRef.nativeElement,e=this.overlayRef.backdropElement;t.classList.add("ant-zoom-enter"),t.classList.add("ant-zoom-enter-active"),e&&(e.classList.add("ant-fade-enter"),e.classList.add("ant-fade-enter-active"))}setExitAnimationClass(){const t=this.modalElementRef.nativeElement;t.classList.add("ant-zoom-leave"),t.classList.add("ant-zoom-leave-active"),this.setMaskExitAnimationClass()}setMaskExitAnimationClass(t=!1){const e=this.overlayRef.backdropElement;if(e){if(this.animationDisabled()||t)return void e.classList.remove(xT);e.classList.add("ant-fade-leave"),e.classList.add("ant-fade-leave-active")}}cleanAnimationClass(){if(this.animationDisabled())return;const t=this.overlayRef.backdropElement,e=this.modalElementRef.nativeElement;t&&(t.classList.remove("ant-fade-enter"),t.classList.remove("ant-fade-enter-active")),e.classList.remove("ant-zoom-enter"),e.classList.remove("ant-zoom-enter-active"),e.classList.remove("ant-zoom-leave"),e.classList.remove("ant-zoom-leave-active")}setZIndexForBackdrop(){const t=this.overlayRef.backdropElement;t&&ix(this.config.nzZIndex)&&this.render.setStyle(t,"z-index",this.config.nzZIndex)}bindBackdropStyle(){const t=this.overlayRef.backdropElement;if(t&&(this.oldMaskStyle&&(Object.keys(this.oldMaskStyle).forEach((e=>{this.render.removeStyle(t,e)})),this.oldMaskStyle=null),this.setZIndexForBackdrop(),"object"==typeof this.config.nzMaskStyle&&Object.keys(this.config.nzMaskStyle).length)){const e=Object.assign({},this.config.nzMaskStyle);Object.keys(e).forEach((n=>{this.render.setStyle(t,n,e[n])})),this.oldMaskStyle=e}}updateMaskClassname(){const t=this.overlayRef.backdropElement;t&&(this.showMask?t.classList.add(xT):t.classList.remove(xT))}onAnimationDone(t){"enter"===t.toState?this.trapFocus():"exit"===t.toState&&this.restoreFocus(),this.cleanAnimationClass(),this.animationStateChanged.emit(t)}onAnimationStart(t){"enter"===t.toState?(this.setEnterAnimationClass(),this.bindBackdropStyle()):"exit"===t.toState&&this.setExitAnimationClass(),this.animationStateChanged.emit(t)}startExitAnimation(){this.state="exit",this.cdr.markForCheck()}ngOnDestroy(){this.setMaskExitAnimationClass(!0),this.destroy$.next(),this.destroy$.complete()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(ph),Zo(bl),Zo(gP),Zo(Gl),Zo(wl),Zo(vk),Zo(ZS),Zo(wT),Zo(void 0),Zo(String))},t["ɵdir"]=ne({type:t,features:[Co]}),t})(),DT=(()=>{class t extends MT{constructor(t,e,n,i,r,a,o,s,l,c,h){super(t,n,i,r,a,o,s,l,c,h),this.i18n=e,this.config=l,this.cancelTriggered=new Dc,this.okTriggered=new Dc,this.i18n.localeChange.pipe(aC(this.destroy$)).subscribe((()=>{this.locale=this.i18n.getLocaleData("Modal")}))}onCancel(){this.cancelTriggered.emit()}onOk(){this.okTriggered.emit()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(ph),Zo(Mx),Zo(bl),Zo(gP),Zo(Gl),Zo(wl),Zo(vk),Zo(ZS),Zo(wT),Zo(Hh,8),Zo(Eb,8))},t["ɵcmp"]=qt({type:t,selectors:[["nz-modal-confirm-container"]],viewQuery:function(t,e){if(1&t&&(Nc(qC,7),Nc(jA,7)),2&t){let t;Vc(t=Gc())&&(e.portalOutlet=t.first),Vc(t=Gc())&&(e.modalElementRef=t.first)}},hostAttrs:["tabindex","-1","role","dialog"],hostVars:10,hostBindings:function(t,e){1&t&&(ns("@modalContainer.start",(function(t){return e.onAnimationStart(t)}))("@modalContainer.done",(function(t){return e.onAnimationDone(t)})),es("click",(function(t){return e.onContainerClick(t)}))("mouseup",(function(){return e.onMouseup()}))),2&t&&(js("@.disabled",e.config.nzNoAnimation)("@modalContainer",e.state),Ps(e.config.nzWrapClassName?"ant-modal-wrap "+e.config.nzWrapClassName:"ant-modal-wrap"),xs("z-index",e.config.nzZIndex),Cs("ant-modal-wrap-rtl","rtl"===e.dir)("ant-modal-centered",e.config.nzCentered))},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["nzModalConfirmContainer"],features:[Co],decls:17,vars:13,consts:[["role","document",1,"ant-modal",3,"ngClass","ngStyle","mousedown"],["modalElement",""],[1,"ant-modal-content"],["nz-modal-close","",3,"click",4,"ngIf"],[1,"ant-modal-body",3,"ngStyle"],[1,"ant-modal-confirm-body-wrapper"],[1,"ant-modal-confirm-body"],["nz-icon","",3,"nzType"],[1,"ant-modal-confirm-title"],[4,"nzStringTemplateOutlet"],[1,"ant-modal-confirm-content"],["cdkPortalOutlet",""],[3,"innerHTML",4,"ngIf"],[1,"ant-modal-confirm-btns"],["nz-button","",3,"nzLoading","disabled","click",4,"ngIf"],["nz-button","",3,"nzType","nzLoading","disabled","nzDanger","click",4,"ngIf"],["nz-modal-close","",3,"click"],[3,"innerHTML"],["nz-button","",3,"nzLoading","disabled","click"],["nz-button","",3,"nzType","nzLoading","disabled","nzDanger","click"]],template:function(t,e){1&t&&(Yo(0,"div",0,1),es("mousedown",(function(){return e.onMousedown()})),Cc(2,"nzToCssUnit"),Yo(3,"div",2),Ho(4,XA,1,0,"button",3),Yo(5,"div",4),Yo(6,"div",5),Yo(7,"div",6),Xo(8,"i",7),Yo(9,"span",8),Ho(10,qA,2,1,"ng-container",9),jo(),Yo(11,"div",10),Ho(12,$A,0,0,"ng-template",11),Ho(13,KA,1,1,"div",12),jo(),jo(),Yo(14,"div",13),Ho(15,JA,2,4,"button",14),Ho(16,QA,2,6,"button",15),jo(),jo(),jo(),jo(),jo()),2&t&&(xs("width",kc(2,11,null==e.config?null:e.config.nzWidth)),Uo("ngClass",e.config.nzClassName)("ngStyle",e.config.nzStyle),sa(4),Uo("ngIf",e.config.nzClosable),sa(1),Uo("ngStyle",e.config.nzBodyStyle),sa(3),Uo("nzType",e.config.nzIconType),sa(2),Uo("nzStringTemplateOutlet",e.config.nzTitle),sa(3),Uo("ngIf",e.isStringContent),sa(2),Uo("ngIf",null!==e.config.nzCancelText),sa(1),Uo("ngIf",null!==e.config.nzOkText))},directives:function(){return[Gd,Qd,Yd,sM,eP,Uk,qC,RT,bM,uM]},pipes:function(){return[WA]},encapsulation:2,data:{animation:[kT.modalContainer]}}),t})(),ET=(()=>{class t extends MT{constructor(t,e,n,i,r,a,o,s,l,c){super(t,e,n,i,r,a,o,s,l,c),this.config=s}}return t["ɵfac"]=function(e){return new(e||t)(Zo(ph),Zo(bl),Zo(gP),Zo(Gl),Zo(wl),Zo(vk),Zo(ZS),Zo(wT),Zo(Hh,8),Zo(Eb,8))},t["ɵcmp"]=qt({type:t,selectors:[["nz-modal-container"]],viewQuery:function(t,e){if(1&t&&(Nc(qC,7),Nc(jA,7)),2&t){let t;Vc(t=Gc())&&(e.portalOutlet=t.first),Vc(t=Gc())&&(e.modalElementRef=t.first)}},hostAttrs:["tabindex","-1","role","dialog"],hostVars:10,hostBindings:function(t,e){1&t&&(ns("@modalContainer.start",(function(t){return e.onAnimationStart(t)}))("@modalContainer.done",(function(t){return e.onAnimationDone(t)})),es("click",(function(t){return e.onContainerClick(t)}))("mouseup",(function(){return e.onMouseup()}))),2&t&&(js("@.disabled",e.config.nzNoAnimation)("@modalContainer",e.state),Ps(e.config.nzWrapClassName?"ant-modal-wrap "+e.config.nzWrapClassName:"ant-modal-wrap"),xs("z-index",e.config.nzZIndex),Cs("ant-modal-wrap-rtl","rtl"===e.dir)("ant-modal-centered",e.config.nzCentered))},exportAs:["nzModalContainer"],features:[Co],decls:10,vars:11,consts:[["role","document",1,"ant-modal",3,"ngClass","ngStyle","mousedown"],["modalElement",""],[1,"ant-modal-content"],["nz-modal-close","",3,"click",4,"ngIf"],["nz-modal-title","",4,"ngIf"],[1,"ant-modal-body",3,"ngStyle"],["cdkPortalOutlet",""],[3,"innerHTML",4,"ngIf"],["nz-modal-footer","",3,"modalRef","cancelTriggered","okTriggered",4,"ngIf"],["nz-modal-close","",3,"click"],["nz-modal-title",""],[3,"innerHTML"],["nz-modal-footer","",3,"modalRef","cancelTriggered","okTriggered"]],template:function(t,e){1&t&&(Yo(0,"div",0,1),es("mousedown",(function(){return e.onMousedown()})),Cc(2,"nzToCssUnit"),Yo(3,"div",2),Ho(4,tT,1,0,"button",3),Ho(5,eT,1,0,"div",4),Yo(6,"div",5),Ho(7,nT,0,0,"ng-template",6),Ho(8,iT,1,1,"div",7),jo(),Ho(9,rT,1,1,"div",8),jo(),jo()),2&t&&(xs("width",kc(2,9,null==e.config?null:e.config.nzWidth)),Uo("ngClass",e.config.nzClassName)("ngStyle",e.config.nzStyle),sa(4),Uo("ngIf",e.config.nzClosable),sa(1),Uo("ngIf",e.config.nzTitle),sa(1),Uo("ngStyle",e.config.nzBodyStyle),sa(2),Uo("ngIf",e.isStringContent),sa(1),Uo("ngIf",null!==e.config.nzFooter))},directives:function(){return[Gd,Qd,Yd,qC,RT,VT,FT]},pipes:function(){return[WA]},encapsulation:2,data:{animation:[kT.modalContainer]}}),t})();class OT{constructor(t,e,n){this.overlayRef=t,this.config=e,this.containerInstance=n,this.componentInstance=null,this.state=0,this.afterClose=new A,this.afterOpen=new A,n.animationStateChanged.pipe(lm((t=>"done"===t.phaseName&&"enter"===t.toState)),JC(1)).subscribe((()=>{this.afterOpen.next(),this.afterOpen.complete(),e.nzAfterOpen instanceof Dc&&e.nzAfterOpen.emit()})),n.animationStateChanged.pipe(lm((t=>"done"===t.phaseName&&"exit"===t.toState)),JC(1)).subscribe((()=>{clearTimeout(this.closeTimeout),this._finishDialogClose()})),n.containerClick.pipe(JC(1)).subscribe((()=>{!this.config.nzCancelLoading&&!this.config.nzOkLoading&&this.trigger("cancel")})),t.keydownEvents().pipe(lm((t=>this.config.nzKeyboard&&!this.config.nzCancelLoading&&!this.config.nzOkLoading&&27===t.keyCode&&!ik(t)))).subscribe((t=>{t.preventDefault(),this.trigger("cancel")})),n.cancelTriggered.subscribe((()=>this.trigger("cancel"))),n.okTriggered.subscribe((()=>this.trigger("ok"))),t.detachments().subscribe((()=>{this.afterClose.next(this.result),this.afterClose.complete(),e.nzAfterClose instanceof Dc&&e.nzAfterClose.emit(this.result),this.componentInstance=null,this.overlayRef.dispose()}))}getContentComponent(){return this.componentInstance}getElement(){return this.containerInstance.getNativeElement()}destroy(t){this.close(t)}triggerOk(){return this.trigger("ok")}triggerCancel(){return this.trigger("cancel")}close(t){0===this.state&&(this.result=t,this.containerInstance.animationStateChanged.pipe(lm((t=>"start"===t.phaseName)),JC(1)).subscribe((t=>{this.overlayRef.detachBackdrop(),this.closeTimeout=setTimeout((()=>{this._finishDialogClose()}),t.totalTime+100)})),this.containerInstance.startExitAnimation(),this.state=1)}updateConfig(t){Object.assign(this.config,t),this.containerInstance.bindBackdropStyle(),this.containerInstance.cdr.markForCheck()}getState(){return this.state}getConfig(){return this.config}getBackdropElement(){return this.overlayRef.backdropElement}trigger(t){return e=this,i=function*(){const e={ok:this.config.nzOnOk,cancel:this.config.nzOnCancel}[t],n={ok:"nzOkLoading",cancel:"nzCancelLoading"}[t];if(!this.config[n])if(e instanceof Dc)e.emit(this.getContentComponent());else if("function"==typeof e){const t=e(this.getContentComponent());if(px(t)){this.config[n]=!0;let e=!1;try{e=yield t}finally{this.config[n]=!1,this.closeWhitResult(e)}}else this.closeWhitResult(t)}},new((n=void 0)||(n=Promise))((function(t,r){function a(t){try{s(i.next(t))}catch(t){r(t)}}function o(t){try{s(i.throw(t))}catch(t){r(t)}}function s(e){var i;e.done?t(e.value):(i=e.value,i instanceof n?i:new n((function(t){t(i)}))).then(a,o)}s((i=i.apply(e,[])).next())}));var e,n,i}closeWhitResult(t){!1!==t&&this.close(t)}_finishDialogClose(){this.state=2,this.overlayRef.dispose()}}let AT=(()=>{class t{constructor(t,e,n,i,r){this.overlay=t,this.injector=e,this.nzConfigService=n,this.parentModal=i,this.directionality=r,this.openModalsAtThisLevel=[],this.afterAllClosedAtThisLevel=new A,this.afterAllClose=u_((()=>this.openModals.length?this._afterAllClosed:this._afterAllClosed.pipe(cC(void 0))))}get openModals(){return this.parentModal?this.parentModal.openModals:this.openModalsAtThisLevel}get _afterAllClosed(){const t=this.parentModal;return t?t._afterAllClosed:this.afterAllClosedAtThisLevel}create(t){return this.open(t.nzContent,t)}closeAll(){this.closeModals(this.openModals)}confirm(t={},e="confirm"){return"nzFooter"in t&&Bb('The Confirm-Modal doesn\'t support "nzFooter", this property will be ignored.'),"nzWidth"in t||(t.nzWidth=416),"nzMaskClosable"in t||(t.nzMaskClosable=!1),t.nzModalType="confirm",t.nzClassName="ant-modal-confirm ant-modal-confirm-"+e+" "+(t.nzClassName||""),this.create(t)}info(t={}){return this.confirmFactory(t,"info")}success(t={}){return this.confirmFactory(t,"success")}error(t={}){return this.confirmFactory(t,"error")}warning(t={}){return this.confirmFactory(t,"warning")}open(t,e){const n=(o=e||{},s=new wT,Object.assign(Object.assign({},s),o)),i=this.createOverlay(n),r=this.attachModalContainer(i,n),a=this.attachModalContent(t,r,i,n);var o,s;return r.modalRef=a,this.openModals.push(a),a.afterClose.subscribe((()=>this.removeOpenModal(a))),a}removeOpenModal(t){const e=this.openModals.indexOf(t);e>-1&&(this.openModals.splice(e,1),this.openModals.length||this._afterAllClosed.next())}closeModals(t){let e=t.length;for(;e--;)t[e].close(),this.openModals.length||this._afterAllClosed.next()}createOverlay(t){const e=this.nzConfigService.getConfigForComponent(CT)||{},n=new uk({hasBackdrop:!0,scrollStrategy:this.overlay.scrollStrategies.block(),positionStrategy:this.overlay.position().global(),disposeOnNavigation:ST(t.nzCloseOnNavigation,e.nzCloseOnNavigation,!0),direction:ST(t.nzDirection,e.nzDirection,this.directionality.value)});return ST(t.nzMask,e.nzMask,!0)&&(n.backdropClass=xT),this.overlay.create(n)}attachModalContainer(t,e){const n=wo.create({parent:e&&e.nzViewContainerRef&&e.nzViewContainerRef.injector||this.injector,providers:[{provide:vk,useValue:t},{provide:wT,useValue:e}]}),i=new UC("confirm"===e.nzModalType?DT:ET,e.nzViewContainerRef,n);return t.attach(i).instance}attachModalContent(t,e,n,i){const r=new OT(n,i,e);if(t instanceof jl)e.attachTemplatePortal(new WC(t,null,{$implicit:i.nzComponentParams,modalRef:r}));else if(ix(t)&&"string"!=typeof t){const n=this.createInjector(r,i),s=e.attachComponentPortal(new UC(t,i.nzViewContainerRef,n));a=s.instance,o=i.nzComponentParams,Object.assign(a,o),r.componentInstance=s.instance}else e.attachStringContent();var a,o;return r}createInjector(t,e){return wo.create({parent:e&&e.nzViewContainerRef&&e.nzViewContainerRef.injector||this.injector,providers:[{provide:OT,useValue:t}]})}confirmFactory(t={},e){return"nzIconType"in t||(t.nzIconType={info:"info-circle",success:"check-circle",error:"close-circle",warning:"exclamation-circle"}[e]),"nzCancelText"in t||(t.nzCancelText=null),this.confirm(t,e)}ngOnDestroy(){this.closeModals(this.openModalsAtThisLevel),this.afterAllClosedAtThisLevel.complete()}}return t["ɵfac"]=function(e){return new(e||t)(wi(Ak),wi(wo),wi(ZS),wi(t,12),wi(Fx,8))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),TT=(()=>{class t{constructor(t){this.templateRef=t}}return t["ɵfac"]=function(e){return new(e||t)(Zo(jl))},t["ɵdir"]=ne({type:t,selectors:[["","nzModalContent",""]],exportAs:["nzModalContent"]}),t})(),IT=(()=>{class t{constructor(t,e){this.nzModalRef=t,this.templateRef=e,this.nzModalRef&&this.nzModalRef.updateConfig({nzFooter:this.templateRef})}}return t["ɵfac"]=function(e){return new(e||t)(Zo(OT,8),Zo(jl))},t["ɵdir"]=ne({type:t,selectors:[["","nzModalFooter",""]],exportAs:["nzModalFooter"]}),t})(),LT=(()=>{class t{constructor(t,e){this.nzModalRef=t,this.templateRef=e,this.nzModalRef&&this.nzModalRef.updateConfig({nzTitle:this.templateRef})}}return t["ɵfac"]=function(e){return new(e||t)(Zo(OT,8),Zo(jl))},t["ɵdir"]=ne({type:t,selectors:[["","nzModalTitle",""]],exportAs:["nzModalTitle"]}),t})(),zT=(()=>{class t{constructor(t,e,n){this.cdr=t,this.modal=e,this.viewContainerRef=n,this.nzVisible=!1,this.nzClosable=!0,this.nzOkLoading=!1,this.nzOkDisabled=!1,this.nzCancelDisabled=!1,this.nzCancelLoading=!1,this.nzKeyboard=!0,this.nzNoAnimation=!1,this.nzCentered=!1,this.nzZIndex=1e3,this.nzWidth=520,this.nzCloseIcon="close",this.nzOkType="primary",this.nzOkDanger=!1,this.nzIconType="question-circle",this.nzModalType="default",this.nzAutofocus="auto",this.nzOnOk=new Dc,this.nzOnCancel=new Dc,this.nzAfterOpen=new Dc,this.nzAfterClose=new Dc,this.nzVisibleChange=new Dc,this.modalRef=null,this.destroy$=new A}set modalTitle(t){t&&this.setTitleWithTemplate(t)}set modalFooter(t){t&&this.setFooterWithTemplate(t)}get afterOpen(){return this.nzAfterOpen.asObservable()}get afterClose(){return this.nzAfterClose.asObservable()}open(){if(this.nzVisible||(this.nzVisible=!0,this.nzVisibleChange.emit(!0)),!this.modalRef){const t=this.getConfig();this.modalRef=this.modal.create(t),this.modalRef.afterClose.asObservable().pipe(aC(this.destroy$)).subscribe((()=>{this.close()}))}}close(t){this.nzVisible&&(this.nzVisible=!1,this.nzVisibleChange.emit(!1)),this.modalRef&&(this.modalRef.close(t),this.modalRef=null)}destroy(t){this.close(t)}triggerOk(){var t;null===(t=this.modalRef)||void 0===t||t.triggerOk()}triggerCancel(){var t;null===(t=this.modalRef)||void 0===t||t.triggerCancel()}getContentComponent(){var t;return null===(t=this.modalRef)||void 0===t?void 0:t.getContentComponent()}getElement(){var t;return null===(t=this.modalRef)||void 0===t?void 0:t.getElement()}getModalRef(){return this.modalRef}setTitleWithTemplate(t){this.nzTitle=t,this.modalRef&&Promise.resolve().then((()=>{this.modalRef.updateConfig({nzTitle:this.nzTitle})}))}setFooterWithTemplate(t){this.nzFooter=t,this.modalRef&&Promise.resolve().then((()=>{this.modalRef.updateConfig({nzFooter:this.nzFooter})})),this.cdr.markForCheck()}getConfig(){const t=PT(this);return t.nzViewContainerRef=this.viewContainerRef,t.nzContent=this.nzContent||this.contentFromContentChild,t}ngOnChanges(t){const{nzVisible:e}=t,n=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n}(t,["nzVisible"]);Object.keys(n).length&&this.modalRef&&this.modalRef.updateConfig(PT(this)),e&&(this.nzVisible?this.open():this.close())}ngOnDestroy(){var t;null===(t=this.modalRef)||void 0===t||t._finishDialogClose(),this.destroy$.next(),this.destroy$.complete()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Gl),Zo(AT),Zo(tc))},t["ɵcmp"]=qt({type:t,selectors:[["nz-modal"]],contentQueries:function(t,e,n){if(1&t&&(Hc(n,LT,7,jl),Hc(n,IT,7,jl),Hc(n,TT,7,jl)),2&t){let t;Vc(t=Gc())&&(e.modalTitle=t.first),Vc(t=Gc())&&(e.modalFooter=t.first),Vc(t=Gc())&&(e.contentFromContentChild=t.first)}},inputs:{nzVisible:"nzVisible",nzClosable:"nzClosable",nzOkLoading:"nzOkLoading",nzOkDisabled:"nzOkDisabled",nzCancelDisabled:"nzCancelDisabled",nzCancelLoading:"nzCancelLoading",nzKeyboard:"nzKeyboard",nzNoAnimation:"nzNoAnimation",nzCentered:"nzCentered",nzZIndex:"nzZIndex",nzWidth:"nzWidth",nzCloseIcon:"nzCloseIcon",nzOkType:"nzOkType",nzOkDanger:"nzOkDanger",nzIconType:"nzIconType",nzModalType:"nzModalType",nzAutofocus:"nzAutofocus",nzOnOk:"nzOnOk",nzOnCancel:"nzOnCancel",nzTitle:"nzTitle",nzFooter:"nzFooter",nzMask:"nzMask",nzMaskClosable:"nzMaskClosable",nzCloseOnNavigation:"nzCloseOnNavigation",nzContent:"nzContent",nzComponentParams:"nzComponentParams",nzWrapClassName:"nzWrapClassName",nzClassName:"nzClassName",nzStyle:"nzStyle",nzMaskStyle:"nzMaskStyle",nzBodyStyle:"nzBodyStyle",nzOkText:"nzOkText",nzCancelText:"nzCancelText"},outputs:{nzOnOk:"nzOnOk",nzOnCancel:"nzOnCancel",nzAfterOpen:"nzAfterOpen",nzAfterClose:"nzAfterClose",nzVisibleChange:"nzVisibleChange"},exportAs:["nzModal"],features:[pe],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),Bk([hx()],t.prototype,"nzMask",void 0),Bk([hx()],t.prototype,"nzMaskClosable",void 0),Bk([hx()],t.prototype,"nzCloseOnNavigation",void 0),Bk([hx()],t.prototype,"nzVisible",void 0),Bk([hx()],t.prototype,"nzClosable",void 0),Bk([hx()],t.prototype,"nzOkLoading",void 0),Bk([hx()],t.prototype,"nzOkDisabled",void 0),Bk([hx()],t.prototype,"nzCancelDisabled",void 0),Bk([hx()],t.prototype,"nzCancelLoading",void 0),Bk([hx()],t.prototype,"nzKeyboard",void 0),Bk([hx()],t.prototype,"nzNoAnimation",void 0),Bk([hx()],t.prototype,"nzCentered",void 0),Bk([hx()],t.prototype,"nzOkDanger",void 0),t})(),RT=(()=>{class t{constructor(t){this.config=t}}return t["ɵfac"]=function(e){return new(e||t)(Zo(wT))},t["ɵcmp"]=qt({type:t,selectors:[["button","nz-modal-close",""]],hostAttrs:["aria-label","Close",1,"ant-modal-close"],exportAs:["NzModalCloseBuiltin"],attrs:aT,decls:2,vars:1,consts:[[1,"ant-modal-close-x"],[4,"nzStringTemplateOutlet"],["nz-icon","",1,"ant-modal-close-icon",3,"nzType"]],template:function(t,e){1&t&&(Yo(0,"span",0),Ho(1,oT,2,1,"ng-container",1),jo()),2&t&&(sa(1),Uo("nzStringTemplateOutlet",e.config.nzCloseIcon))},directives:[Uk,sM,eP],encapsulation:2,changeDetection:0}),t})(),FT=(()=>{class t{constructor(t,e){this.i18n=t,this.config=e,this.buttonsFooter=!1,this.buttons=[],this.cancelTriggered=new Dc,this.okTriggered=new Dc,this.destroy$=new A,Array.isArray(e.nzFooter)&&(this.buttonsFooter=!0,this.buttons=e.nzFooter.map(BT)),this.i18n.localeChange.pipe(aC(this.destroy$)).subscribe((()=>{this.locale=this.i18n.getLocaleData("Modal")}))}onCancel(){this.cancelTriggered.emit()}onOk(){this.okTriggered.emit()}getButtonCallableProp(t,e){const n=t[e],i=this.modalRef.getContentComponent();return"function"==typeof n?n.apply(t,i&&[i]):n}onButtonClick(t){if(!this.getButtonCallableProp(t,"loading")){const e=this.getButtonCallableProp(t,"onClick");t.autoLoading&&px(e)&&(t.loading=!0,e.then((()=>t.loading=!1)).catch((e=>{throw t.loading=!1,e})))}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Mx),Zo(wT))},t["ɵcmp"]=qt({type:t,selectors:[["div","nz-modal-footer",""]],hostAttrs:[1,"ant-modal-footer"],inputs:{modalRef:"modalRef"},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["NzModalFooterBuiltin"],attrs:sT,decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["defaultFooterButtons",""],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[3,"innerHTML",4,"ngIf"],[4,"ngIf"],[3,"innerHTML"],["nz-button","",3,"hidden","nzLoading","disabled","nzType","nzDanger","nzShape","nzSize","nzGhost","click",4,"ngFor","ngForOf"],["nz-button","",3,"hidden","nzLoading","disabled","nzType","nzDanger","nzShape","nzSize","nzGhost","click"],["nz-button","",3,"nzLoading","disabled","click",4,"ngIf"],["nz-button","",3,"nzType","nzDanger","nzLoading","disabled","click",4,"ngIf"],["nz-button","",3,"nzLoading","disabled","click"],["nz-button","",3,"nzType","nzDanger","nzLoading","disabled","click"]],template:function(t,e){if(1&t&&(Ho(0,mT,2,5,"ng-container",0),Ho(1,fT,2,2,"ng-template",null,1,Yc)),2&t){const t=Go(2);Uo("ngIf",e.config.nzFooter)("ngIfElse",t)}},directives:[Yd,Uk,Ud,bM,uM,sM],encapsulation:2}),t})();function BT(t){return Object.assign({type:null,size:"default",autoLoading:!0,show:!0,loading:!1,disabled:!1},t)}let VT=(()=>{class t{constructor(t){this.config=t}}return t["ɵfac"]=function(e){return new(e||t)(Zo(wT))},t["ɵcmp"]=qt({type:t,selectors:[["div","nz-modal-title",""]],hostAttrs:[1,"ant-modal-header"],exportAs:["NzModalTitleBuiltin"],attrs:bT,decls:2,vars:1,consts:[[1,"ant-modal-title"],[4,"nzStringTemplateOutlet"],[3,"innerHTML"]],template:function(t,e){1&t&&(Yo(0,"div",0),Ho(1,yT,2,1,"ng-container",1),jo()),2&t&&(sa(1),Uo("nzStringTemplateOutlet",e.config.nzTitle))},directives:[Uk],encapsulation:2,changeDetection:0}),t})(),NT=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({providers:[AT],imports:[[nu,Vx,Fk,Yk,$C,Ex,yM,nP,YA,Zk,YA]]}),t})();const HT=["pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"],GT=["overlay"];function ZT(t,e){if(1&t&&(qo(0),Bs(1),$o()),2&t){const t=os(2);sa(1),Vs(t.nzTitle)}}function UT(t,e){if(1&t&&(Yo(0,"div",2),Yo(1,"div",3),Yo(2,"div",4),Xo(3,"span",5),jo(),Yo(4,"div",6),Ho(5,ZT,2,1,"ng-container",7),jo(),jo(),jo()),2&t){const t=os();Cs("ant-tooltip-rtl","rtl"===t.dir),Uo("ngClass",t._classMap)("ngStyle",t.nzOverlayStyle)("@.disabled",null==t.noAnimation?null:t.noAnimation.nzNoAnimation)("nzNoAnimation",null==t.noAnimation?null:t.noAnimation.nzNoAnimation)("@zoomBigMotion","active"),sa(3),Uo("ngStyle",t._contentStyleMap),sa(1),Uo("ngStyle",t._contentStyleMap),sa(1),Uo("nzStringTemplateOutlet",t.nzTitle)("nzStringTemplateOutletContext",t.nzTitleContext)}}let WT=(()=>{class t{constructor(t,e,n,i,r,a){this.elementRef=t,this.hostView=e,this.resolver=n,this.renderer=i,this.noAnimation=r,this.nzConfigService=a,this.visibleChange=new Dc,this.internalVisible=!1,this.destroy$=new A,this.triggerDisposables=[]}get _title(){return this.title||this.directiveTitle||null}get _content(){return this.content||this.directiveContent||null}get _trigger(){return void 0!==this.trigger?this.trigger:"hover"}get _placement(){const t=this.placement;return Array.isArray(t)&&t.length>0?t:"string"==typeof t&&t?[t]:["top"]}get _visible(){return(void 0!==this.visible?this.visible:this.internalVisible)||!1}get _mouseEnterDelay(){return this.mouseEnterDelay||.15}get _mouseLeaveDelay(){return this.mouseLeaveDelay||.1}get _overlayClassName(){return this.overlayClassName||null}get _overlayStyle(){return this.overlayStyle||null}getProxyPropertyMap(){return{noAnimation:["noAnimation",()=>!!this.noAnimation]}}ngOnChanges(t){const{trigger:e}=t;e&&!e.isFirstChange()&&this.registerTriggers(),this.component&&this.updatePropertiesByChanges(t)}ngAfterViewInit(){this.createComponent(),this.registerTriggers()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.clearTogglingTimer(),this.removeTriggerListeners()}show(){var t;null===(t=this.component)||void 0===t||t.show()}hide(){var t;null===(t=this.component)||void 0===t||t.hide()}updatePosition(){this.component&&this.component.updatePosition()}createComponent(){const t=this.hostView.createComponent(this.componentFactory);this.component=t.instance,this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),t.location.nativeElement),this.component.setOverlayOrigin({elementRef:this.origin||this.elementRef}),this.initProperties(),this.component.nzVisibleChange.pipe(qx(),aC(this.destroy$)).subscribe((t=>{this.internalVisible=t,this.visibleChange.emit(t)}))}registerTriggers(){const t=this.elementRef.nativeElement,e=this.trigger;if(this.removeTriggerListeners(),"hover"===e){let e;this.triggerDisposables.push(this.renderer.listen(t,"mouseenter",(()=>{this.delayEnterLeave(!0,!0,this._mouseEnterDelay)}))),this.triggerDisposables.push(this.renderer.listen(t,"mouseleave",(()=>{var t;this.delayEnterLeave(!0,!1,this._mouseLeaveDelay),(null===(t=this.component)||void 0===t?void 0:t.overlay.overlayRef)&&!e&&(e=this.component.overlay.overlayRef.overlayElement,this.triggerDisposables.push(this.renderer.listen(e,"mouseenter",(()=>{this.delayEnterLeave(!1,!0,this._mouseEnterDelay)}))),this.triggerDisposables.push(this.renderer.listen(e,"mouseleave",(()=>{this.delayEnterLeave(!1,!1,this._mouseLeaveDelay)}))))})))}else"focus"===e?(this.triggerDisposables.push(this.renderer.listen(t,"focusin",(()=>this.show()))),this.triggerDisposables.push(this.renderer.listen(t,"focusout",(()=>this.hide())))):"click"===e&&this.triggerDisposables.push(this.renderer.listen(t,"click",(t=>{t.preventDefault(),this.show()})))}updatePropertiesByChanges(t){this.updatePropertiesByKeys(Object.keys(t))}updatePropertiesByKeys(t){var e;const n=Object.assign({title:["nzTitle",()=>this._title],directiveTitle:["nzTitle",()=>this._title],content:["nzContent",()=>this._content],directiveContent:["nzContent",()=>this._content],trigger:["nzTrigger",()=>this._trigger],placement:["nzPlacement",()=>this._placement],visible:["nzVisible",()=>this._visible],mouseEnterDelay:["nzMouseEnterDelay",()=>this._mouseEnterDelay],mouseLeaveDelay:["nzMouseLeaveDelay",()=>this._mouseLeaveDelay],overlayClassName:["nzOverlayClassName",()=>this._overlayClassName],overlayStyle:["nzOverlayStyle",()=>this._overlayStyle],arrowPointAtCenter:["nzArrowPointAtCenter",()=>this.arrowPointAtCenter]},this.getProxyPropertyMap());(t||Object.keys(n).filter((t=>!t.startsWith("directive")))).forEach((t=>{if(n[t]){const[e,i]=n[t];this.updateComponentValue(e,i())}})),null===(e=this.component)||void 0===e||e.updateByDirective()}initProperties(){this.updatePropertiesByKeys()}updateComponentValue(t,e){void 0!==e&&(this.component[t]=e)}delayEnterLeave(t,e,n=-1){this.delayTimer?this.clearTogglingTimer():n>0?this.delayTimer=setTimeout((()=>{this.delayTimer=void 0,e?this.show():this.hide()}),1e3*n):e&&t?this.show():this.hide()}removeTriggerListeners(){this.triggerDisposables.forEach((t=>t())),this.triggerDisposables.length=0}clearTogglingTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=void 0)}}return t["ɵfac"]=function(e){return new(e||t)(Zo(bl),Zo(tc),Zo(ml),Zo(wl),Zo(Gk),Zo(ZS))},t["ɵdir"]=ne({type:t,features:[pe]}),t})(),YT=(()=>{class t{constructor(t,e,n){this.cdr=t,this.directionality=e,this.noAnimation=n,this.nzTitle=null,this.nzContent=null,this.nzArrowPointAtCenter=!1,this.nzOverlayStyle={},this.nzBackdrop=!1,this.nzVisibleChange=new A,this._visible=!1,this._trigger="hover",this.preferredPlacement="top",this.dir="ltr",this._classMap={},this._prefix="ant-tooltip",this._positions=[...IM],this.destroy$=new A}set nzVisible(t){const e=sx(t);this._visible!==e&&(this._visible=e,this.nzVisibleChange.next(e))}get nzVisible(){return this._visible}set nzTrigger(t){this._trigger=t}get nzTrigger(){return this._trigger}set nzPlacement(t){const e=t.map((t=>TM[t]));this._positions=[...e,...IM]}ngOnInit(){var t;null===(t=this.directionality.change)||void 0===t||t.pipe(aC(this.destroy$)).subscribe((t=>{this.dir=t,this.cdr.detectChanges()})),this.dir=this.directionality.value}ngOnDestroy(){this.nzVisibleChange.complete(),this.destroy$.next(),this.destroy$.complete()}show(){this.nzVisible||(this.isEmpty()||(this.nzVisible=!0,this.nzVisibleChange.next(!0),this.cdr.detectChanges()),this.origin&&this.overlay&&this.overlay.overlayRef&&"rtl"===this.overlay.overlayRef.getDirection()&&this.overlay.overlayRef.setDirection("ltr"))}hide(){!this.nzVisible||(this.nzVisible=!1,this.nzVisibleChange.next(!1),this.cdr.detectChanges())}updateByDirective(){this.updateStyles(),this.cdr.detectChanges(),Promise.resolve().then((()=>{this.updatePosition(),this.updateVisibilityByTitle()}))}updatePosition(){this.origin&&this.overlay&&this.overlay.overlayRef&&this.overlay.overlayRef.updatePosition()}onPositionChange(t){this.preferredPlacement=LM(t),this.updateStyles(),this.cdr.detectChanges()}setOverlayOrigin(t){this.origin=t,this.cdr.markForCheck()}onClickOutside(t){!this.origin.elementRef.nativeElement.contains(t.target)&&null!==this.nzTrigger&&this.hide()}updateVisibilityByTitle(){this.isEmpty()&&this.hide()}updateStyles(){this._classMap={[this.nzOverlayClassName]:!0,[this._prefix+"-placement-"+this.preferredPlacement]:!0}}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Gl),Zo(Fx,8),Zo(Gk))},t["ɵdir"]=ne({type:t,viewQuery:function(t,e){if(1&t&&Nc(GT,5),2&t){let t;Vc(t=Gc())&&(e.overlay=t.first)}}}),t})();function jT(t){return!(t instanceof jl||""!==t&&ix(t))}let XT=(()=>{class t extends WT{constructor(t,e,n,i,r){super(t,e,n,i,r),this.titleContext=null,this.trigger="hover",this.placement="top",this.visibleChange=new Dc,this.componentFactory=this.resolver.resolveComponentFactory(qT)}getProxyPropertyMap(){return Object.assign(Object.assign({},super.getProxyPropertyMap()),{nzTooltipColor:["nzColor",()=>this.nzTooltipColor],nzTooltipTitleContext:["nzTitleContext",()=>this.titleContext]})}}return t["ɵfac"]=function(e){return new(e||t)(Zo(bl),Zo(tc),Zo(ml),Zo(wl),Zo(Gk,9))},t["ɵdir"]=ne({type:t,selectors:[["","nz-tooltip",""]],hostVars:2,hostBindings:function(t,e){2&t&&Cs("ant-tooltip-open",e.visible)},inputs:{titleContext:["nzTooltipTitleContext","titleContext"],trigger:["nzTooltipTrigger","trigger"],placement:["nzTooltipPlacement","placement"],title:["nzTooltipTitle","title"],directiveTitle:["nz-tooltip","directiveTitle"],origin:["nzTooltipOrigin","origin"],visible:["nzTooltipVisible","visible"],mouseEnterDelay:["nzTooltipMouseEnterDelay","mouseEnterDelay"],mouseLeaveDelay:["nzTooltipMouseLeaveDelay","mouseLeaveDelay"],overlayClassName:["nzTooltipOverlayClassName","overlayClassName"],overlayStyle:["nzTooltipOverlayStyle","overlayStyle"],arrowPointAtCenter:["nzTooltipArrowPointAtCenter","arrowPointAtCenter"],nzTooltipColor:"nzTooltipColor"},outputs:{visibleChange:"nzTooltipVisibleChange"},exportAs:["nzTooltip"],features:[Co]}),Bk([hx()],t.prototype,"arrowPointAtCenter",void 0),t})(),qT=(()=>{class t extends YT{constructor(t,e,n){super(t,e,n),this.noAnimation=n,this.nzTitle=null,this.nzTitleContext=null,this._contentStyleMap={}}isEmpty(){return jT(this.nzTitle)}updateStyles(){const t=this.nzColor&&(e=this.nzColor,-1!==HT.indexOf(e));var e;this._classMap={[this.nzOverlayClassName]:!0,[this._prefix+"-placement-"+this.preferredPlacement]:!0,[this._prefix+"-"+this.nzColor]:t},this._contentStyleMap={backgroundColor:this.nzColor&&!t?this.nzColor:null}}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Gl),Zo(Fx,8),Zo(Gk,9))},t["ɵcmp"]=qt({type:t,selectors:[["nz-tooltip"]],exportAs:["nzTooltipComponent"],features:[Co],decls:2,vars:5,consts:[["cdkConnectedOverlay","","nzConnectedOverlay","",3,"cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayPush","nzArrowPointAtCenter","overlayOutsideClick","detach","positionChange"],["overlay","cdkConnectedOverlay"],[1,"ant-tooltip",3,"ngClass","ngStyle","nzNoAnimation"],[1,"ant-tooltip-content"],[1,"ant-tooltip-arrow"],[1,"ant-tooltip-arrow-content",3,"ngStyle"],[1,"ant-tooltip-inner",3,"ngStyle"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"]],template:function(t,e){1&t&&(Ho(0,UT,6,11,"ng-template",0,1,Yc),es("overlayOutsideClick",(function(t){return e.onClickOutside(t)}))("detach",(function(){return e.hide()}))("positionChange",(function(t){return e.onPositionChange(t)}))),2&t&&Uo("cdkConnectedOverlayOrigin",e.origin)("cdkConnectedOverlayOpen",e._visible)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayPush",!0)("nzArrowPointAtCenter",e.nzArrowPointAtCenter)},directives:[zk,zM,Gd,Qd,Gk,Uk],encapsulation:2,data:{animation:[__]},changeDetection:0}),t})(),$T=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({imports:[[Vx,nu,Fk,Yk,RM,Zk]]}),t})();function KT(t,e){if(1&t&&(qo(0),Bs(1),$o()),2&t){const t=os(3);sa(1),Vs(t.nzTitle)}}function JT(t,e){if(1&t&&(Yo(0,"div",10),Ho(1,KT,2,1,"ng-container",9),jo()),2&t){const t=os(2);sa(1),Uo("nzStringTemplateOutlet",t.nzTitle)}}function QT(t,e){if(1&t&&(qo(0),Bs(1),$o()),2&t){const t=os(2);sa(1),Vs(t.nzContent)}}function tI(t,e){if(1&t&&(Yo(0,"div",2),Yo(1,"div",3),Yo(2,"div",4),Xo(3,"span",5),jo(),Yo(4,"div",6),Yo(5,"div"),Ho(6,JT,2,1,"div",7),Yo(7,"div",8),Ho(8,QT,2,1,"ng-container",9),jo(),jo(),jo(),jo(),jo()),2&t){const t=os();Cs("ant-popover-rtl","rtl"===t.dir),Uo("ngClass",t._classMap)("ngStyle",t.nzOverlayStyle)("@.disabled",null==t.noAnimation?null:t.noAnimation.nzNoAnimation)("nzNoAnimation",null==t.noAnimation?null:t.noAnimation.nzNoAnimation)("@zoomBigMotion","active"),sa(6),Uo("ngIf",t.nzTitle),sa(2),Uo("nzStringTemplateOutlet",t.nzContent)}}let eI=(()=>{class t extends WT{constructor(t,e,n,i,r,a){super(t,e,n,i,r,a),this.noAnimation=r,this._nzModuleName="popover",this.trigger="hover",this.placement="top",this.nzPopoverBackdrop=!1,this.visibleChange=new Dc,this.componentFactory=this.resolver.resolveComponentFactory(nI)}getProxyPropertyMap(){return Object.assign({nzPopoverBackdrop:["nzBackdrop",()=>this.nzPopoverBackdrop]},super.getProxyPropertyMap())}}return t["ɵfac"]=function(e){return new(e||t)(Zo(bl),Zo(tc),Zo(ml),Zo(wl),Zo(Gk,9),Zo(ZS))},t["ɵdir"]=ne({type:t,selectors:[["","nz-popover",""]],hostVars:2,hostBindings:function(t,e){2&t&&Cs("ant-popover-open",e.visible)},inputs:{trigger:["nzPopoverTrigger","trigger"],placement:["nzPopoverPlacement","placement"],nzPopoverBackdrop:"nzPopoverBackdrop",arrowPointAtCenter:["nzPopoverArrowPointAtCenter","arrowPointAtCenter"],title:["nzPopoverTitle","title"],content:["nzPopoverContent","content"],directiveTitle:["nz-popover","directiveTitle"],origin:["nzPopoverOrigin","origin"],visible:["nzPopoverVisible","visible"],mouseEnterDelay:["nzPopoverMouseEnterDelay","mouseEnterDelay"],mouseLeaveDelay:["nzPopoverMouseLeaveDelay","mouseLeaveDelay"],overlayClassName:["nzPopoverOverlayClassName","overlayClassName"],overlayStyle:["nzPopoverOverlayStyle","overlayStyle"]},outputs:{visibleChange:"nzPopoverVisibleChange"},exportAs:["nzPopover"],features:[Co]}),Bk([hx()],t.prototype,"arrowPointAtCenter",void 0),Bk([US()],t.prototype,"nzPopoverBackdrop",void 0),t})(),nI=(()=>{class t extends qT{constructor(t,e,n){super(t,e,n),this.noAnimation=n,this._prefix="ant-popover"}get hasBackdrop(){return"click"===this.nzTrigger&&this.nzBackdrop}isEmpty(){return jT(this.nzTitle)&&jT(this.nzContent)}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Gl),Zo(Fx,8),Zo(Gk,9))},t["ɵcmp"]=qt({type:t,selectors:[["nz-popover"]],exportAs:["nzPopoverComponent"],features:[Co],decls:2,vars:6,consts:[["cdkConnectedOverlay","","nzConnectedOverlay","",3,"cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayOpen","cdkConnectedOverlayPush","nzArrowPointAtCenter","overlayOutsideClick","detach","positionChange"],["overlay","cdkConnectedOverlay"],[1,"ant-popover",3,"ngClass","ngStyle","nzNoAnimation"],[1,"ant-popover-content"],[1,"ant-popover-arrow"],[1,"ant-popover-arrow-content"],["role","tooltip",1,"ant-popover-inner"],["class","ant-popover-title",4,"ngIf"],[1,"ant-popover-inner-content"],[4,"nzStringTemplateOutlet"],[1,"ant-popover-title"]],template:function(t,e){1&t&&(Ho(0,tI,9,9,"ng-template",0,1,Yc),es("overlayOutsideClick",(function(t){return e.onClickOutside(t)}))("detach",(function(){return e.hide()}))("positionChange",(function(t){return e.onPositionChange(t)}))),2&t&&Uo("cdkConnectedOverlayHasBackdrop",e.hasBackdrop)("cdkConnectedOverlayOrigin",e.origin)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayOpen",e._visible)("cdkConnectedOverlayPush",!0)("nzArrowPointAtCenter",e.nzArrowPointAtCenter)},directives:[zk,zM,Gd,Qd,Gk,Yd,Uk],encapsulation:2,data:{animation:[__]},changeDetection:0}),t})(),iI=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({imports:[[Vx,nu,Fk,Yk,RM,Zk,$T]]}),t})();const rI=["*"],aI=["inputElement"],oI=["nz-radio",""];let sI=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵdir"]=ne({type:t,selectors:[["","nz-radio-button",""]]}),t})(),lI=(()=>{class t{constructor(){this.selected$=new $u(1),this.touched$=new A,this.disabled$=new $u(1),this.name$=new $u(1)}touch(){this.touched$.next()}select(t){this.selected$.next(t)}setDisabled(t){this.disabled$.next(t)}setName(t){this.name$.next(t)}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),cI=(()=>{class t{constructor(t,e,n,i){this.cdr=t,this.nzRadioService=e,this.elementRef=n,this.directionality=i,this.value=null,this.destroy$=new A,this.onChange=()=>{},this.onTouched=()=>{},this.nzDisabled=!1,this.nzButtonStyle="outline",this.nzSize="default",this.nzName=null,this.dir="ltr",this.elementRef.nativeElement.classList.add("ant-radio-group")}ngOnInit(){var t;this.nzRadioService.selected$.pipe(aC(this.destroy$)).subscribe((t=>{this.value!==t&&(this.value=t,this.onChange(this.value))})),this.nzRadioService.touched$.pipe(aC(this.destroy$)).subscribe((()=>{Promise.resolve().then((()=>this.onTouched()))})),null===(t=this.directionality.change)||void 0===t||t.pipe(aC(this.destroy$)).subscribe((t=>{this.dir=t,this.cdr.detectChanges()})),this.dir=this.directionality.value}ngOnChanges(t){const{nzDisabled:e,nzName:n}=t;e&&this.nzRadioService.setDisabled(this.nzDisabled),n&&this.nzRadioService.setName(this.nzName)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}writeValue(t){this.value=t,this.nzRadioService.select(t),this.cdr.markForCheck()}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.nzDisabled=t,this.nzRadioService.setDisabled(t),this.cdr.markForCheck()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Gl),Zo(lI),Zo(bl),Zo(Fx,8))},t["ɵcmp"]=qt({type:t,selectors:[["nz-radio-group"]],hostVars:8,hostBindings:function(t,e){2&t&&Cs("ant-radio-group-large","large"===e.nzSize)("ant-radio-group-small","small"===e.nzSize)("ant-radio-group-solid","solid"===e.nzButtonStyle)("ant-radio-group-rtl","rtl"===e.dir)},inputs:{nzDisabled:"nzDisabled",nzButtonStyle:"nzButtonStyle",nzSize:"nzSize",nzName:"nzName"},exportAs:["nzRadioGroup"],features:[hl([lI,{provide:Km,useExisting:ut((()=>t)),multi:!0}]),pe],ngContentSelectors:rI,decls:1,vars:0,template:function(t,e){1&t&&(ls(),cs(0))},encapsulation:2,changeDetection:0}),Bk([hx()],t.prototype,"nzDisabled",void 0),t})(),hI=(()=>{class t{constructor(t,e,n,i,r,a,o){this.ngZone=t,this.elementRef=e,this.cdr=n,this.focusMonitor=i,this.directionality=r,this.nzRadioService=a,this.nzRadioButtonDirective=o,this.isNgModel=!1,this.destroy$=new A,this.isChecked=!1,this.name=null,this.isRadioButton=!!this.nzRadioButtonDirective,this.onChange=()=>{},this.onTouched=()=>{},this.nzValue=null,this.nzDisabled=!1,this.nzAutoFocus=!1,this.dir="ltr"}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}setDisabledState(t){this.nzDisabled=t,this.cdr.markForCheck()}writeValue(t){this.isChecked=t,this.cdr.markForCheck()}registerOnChange(t){this.isNgModel=!0,this.onChange=t}registerOnTouched(t){this.onTouched=t}ngOnInit(){this.nzRadioService&&(this.nzRadioService.name$.pipe(aC(this.destroy$)).subscribe((t=>{this.name=t,this.cdr.markForCheck()})),this.nzRadioService.disabled$.pipe(aC(this.destroy$)).subscribe((t=>{this.nzDisabled=t,this.cdr.markForCheck()})),this.nzRadioService.selected$.pipe(aC(this.destroy$)).subscribe((t=>{this.isChecked=this.nzValue===t,this.cdr.markForCheck()}))),this.focusMonitor.monitor(this.elementRef,!0).pipe(aC(this.destroy$)).subscribe((t=>{t||(Promise.resolve().then((()=>this.onTouched())),this.nzRadioService&&this.nzRadioService.touch())})),this.directionality.change.pipe(aC(this.destroy$)).subscribe((t=>{this.dir=t,this.cdr.detectChanges()})),this.dir=this.directionality.value,this.setupClickListener()}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.focusMonitor.stopMonitoring(this.elementRef)}setupClickListener(){this.ngZone.runOutsideAngular((()=>{Nx(this.elementRef.nativeElement,"click").pipe(aC(this.destroy$)).subscribe((t=>{t.stopPropagation(),t.preventDefault(),!this.nzDisabled&&!this.isChecked&&this.ngZone.run((()=>{this.nzRadioService&&this.nzRadioService.select(this.nzValue),this.isNgModel&&(this.isChecked=!0,this.onChange(!0)),this.cdr.markForCheck()}))}))}))}}return t["ɵfac"]=function(e){return new(e||t)(Zo(ph),Zo(bl),Zo(Gl),Zo(SP),Zo(Fx,8),Zo(lI,8),Zo(sI,8))},t["ɵcmp"]=qt({type:t,selectors:[["","nz-radio",""],["","nz-radio-button",""]],viewQuery:function(t,e){if(1&t&&Nc(aI,5),2&t){let t;Vc(t=Gc())&&(e.inputElement=t.first)}},hostVars:16,hostBindings:function(t,e){2&t&&Cs("ant-radio-wrapper",!e.isRadioButton)("ant-radio-button-wrapper",e.isRadioButton)("ant-radio-wrapper-checked",e.isChecked&&!e.isRadioButton)("ant-radio-button-wrapper-checked",e.isChecked&&e.isRadioButton)("ant-radio-wrapper-disabled",e.nzDisabled&&!e.isRadioButton)("ant-radio-button-wrapper-disabled",e.nzDisabled&&e.isRadioButton)("ant-radio-wrapper-rtl",!e.isRadioButton&&"rtl"===e.dir)("ant-radio-button-wrapper-rtl",e.isRadioButton&&"rtl"===e.dir)},inputs:{nzValue:"nzValue",nzDisabled:"nzDisabled",nzAutoFocus:"nzAutoFocus"},exportAs:["nzRadio"],features:[hl([{provide:Km,useExisting:ut((()=>t)),multi:!0}])],attrs:oI,ngContentSelectors:rI,decls:6,vars:24,consts:[["type","radio",3,"disabled","checked"],["inputElement",""]],template:function(t,e){1&t&&(ls(),Yo(0,"span"),Xo(1,"input",0,1),Xo(3,"span"),jo(),Yo(4,"span"),cs(5),jo()),2&t&&(Cs("ant-radio",!e.isRadioButton)("ant-radio-checked",e.isChecked&&!e.isRadioButton)("ant-radio-disabled",e.nzDisabled&&!e.isRadioButton)("ant-radio-button",e.isRadioButton)("ant-radio-button-checked",e.isChecked&&e.isRadioButton)("ant-radio-button-disabled",e.nzDisabled&&e.isRadioButton),sa(1),Cs("ant-radio-input",!e.isRadioButton)("ant-radio-button-input",e.isRadioButton),Uo("disabled",e.nzDisabled)("checked",e.isChecked),Fo("autofocus",e.nzAutoFocus?"autofocus":null)("name",e.name),sa(2),Cs("ant-radio-inner",!e.isRadioButton)("ant-radio-button-inner",e.isRadioButton))},encapsulation:2,changeDetection:0}),Bk([hx()],t.prototype,"nzDisabled",void 0),Bk([hx()],t.prototype,"nzAutoFocus",void 0),t})(),dI=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({imports:[[Vx,nu,Wp]]}),t})();const uI=["moz","ms","webkit"];function mI(t){if("undefined"==typeof window)return null;if(window.cancelAnimationFrame)return window.cancelAnimationFrame(t);const e=uI.filter((t=>t+"CancelAnimationFrame"in window||t+"CancelRequestAnimationFrame"in window))[0];return e?(window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"]).call(this,t):clearTimeout(t)}const pI=function(){if("undefined"==typeof window)return()=>0;if(window.requestAnimationFrame)return window.requestAnimationFrame.bind(window);const t=uI.filter((t=>t+"RequestAnimationFrame"in window))[0];return t?window[t+"RequestAnimationFrame"]:function(){let t=0;return function(e){const n=(new Date).getTime(),i=Math.max(0,16-(n-t)),r=setTimeout((()=>{e(n+i)}),i);return t=n+i,r}}()}();function gI(t,e){1&t&&Xo(0,"nz-empty",6),2&t&&Uo("nzNotFoundImage","simple")}function fI(t,e){1&t&&Xo(0,"nz-empty",7),2&t&&Uo("nzNotFoundImage","simple")}function bI(t,e){1&t&&Xo(0,"nz-empty")}function yI(t,e){1&t&&(qo(0,2),Ho(1,gI,1,1,"nz-empty",3),Ho(2,fI,1,1,"nz-empty",4),Ho(3,bI,1,0,"nz-empty",5),$o()),2&t&&(Uo("ngSwitch",os().size),sa(1),Uo("ngSwitchCase","normal"),sa(1),Uo("ngSwitchCase","small"))}function vI(t,e){}function wI(t,e){1&t&&Ho(0,vI,0,0,"ng-template",8),2&t&&Uo("cdkPortalOutlet",os(2).contentPortal)}function xI(t,e){if(1&t&&(qo(0),Bs(1),$o()),2&t){const t=os(2);sa(1),Ns(" ",t.content," ")}}function CI(t,e){if(1&t&&(qo(0),Ho(1,wI,1,1,void 0,1),Ho(2,xI,2,1,"ng-container",1),$o()),2&t){const t=os();sa(1),Uo("ngIf","string"!==t.contentType),sa(1),Uo("ngIf","string"===t.contentType)}}function kI(t,e){if(1&t&&(qo(0),Xo(1,"img",5),$o()),2&t){const t=os(2);sa(1),Uo("src",t.nzNotFoundImage,Hr)("alt",t.isContentString?t.nzNotFoundContent:"empty")}}function SI(t,e){if(1&t&&(qo(0),Ho(1,kI,2,2,"ng-container",4),$o()),2&t){const t=os();sa(1),Uo("nzStringTemplateOutlet",t.nzNotFoundImage)}}function PI(t,e){1&t&&Xo(0,"nz-empty-default")}function _I(t,e){1&t&&Xo(0,"nz-empty-simple")}function MI(t,e){if(1&t&&(qo(0),Bs(1),$o()),2&t){const t=os(2);sa(1),Ns(" ",t.isContentString?t.nzNotFoundContent:t.locale.description," ")}}function DI(t,e){if(1&t&&(Yo(0,"p",6),Ho(1,MI,2,1,"ng-container",4),jo()),2&t){const t=os();sa(1),Uo("nzStringTemplateOutlet",t.nzNotFoundContent)}}function EI(t,e){if(1&t&&(qo(0),Bs(1),$o()),2&t){const t=os(2);sa(1),Ns(" ",t.nzNotFoundFooter," ")}}function OI(t,e){if(1&t&&(Yo(0,"div",7),Ho(1,EI,2,1,"ng-container",4),jo()),2&t){const t=os();sa(1),Uo("nzStringTemplateOutlet",t.nzNotFoundFooter)}}const AI=new ni("nz-empty-component-name");let TI=(()=>{class t{constructor(t,e,n,i){this.configService=t,this.viewContainerRef=e,this.cdr=n,this.injector=i,this.contentType="string",this.size="",this.destroy$=new A}ngOnChanges(t){t.nzComponentName&&(this.size=function(t){switch(t){case"table":case"list":return"normal";case"select":case"tree-select":case"cascader":case"transfer":return"small";default:return""}}(t.nzComponentName.currentValue)),t.specificContent&&!t.specificContent.isFirstChange()&&(this.content=t.specificContent.currentValue,this.renderEmpty())}ngOnInit(){this.subscribeDefaultEmptyContentChange()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}renderEmpty(){const t=this.content;if("string"==typeof t)this.contentType="string";else if(t instanceof jl){const e={$implicit:this.nzComponentName};this.contentType="template",this.contentPortal=new WC(t,this.viewContainerRef,e)}else if(t instanceof ii){const e=wo.create({parent:this.injector,providers:[{provide:AI,useValue:this.nzComponentName}]});this.contentType="component",this.contentPortal=new UC(t,this.viewContainerRef,e)}else this.contentType="string",this.contentPortal=void 0;this.cdr.detectChanges()}subscribeDefaultEmptyContentChange(){this.configService.getConfigChangeEventForComponent("empty").pipe(cC(!0),aC(this.destroy$)).subscribe((()=>{this.content=this.specificContent||this.getUserDefaultEmptyContent(),this.renderEmpty()}))}getUserDefaultEmptyContent(){return(this.configService.getConfigForComponent("empty")||{}).nzDefaultEmptyContent}}return t["ɵfac"]=function(e){return new(e||t)(Zo(ZS),Zo(tc),Zo(Gl),Zo(wo))},t["ɵcmp"]=qt({type:t,selectors:[["nz-embed-empty"]],inputs:{nzComponentName:"nzComponentName",specificContent:"specificContent"},exportAs:["nzEmbedEmpty"],features:[pe],decls:2,vars:2,consts:[[3,"ngSwitch",4,"ngIf"],[4,"ngIf"],[3,"ngSwitch"],["class","ant-empty-normal",3,"nzNotFoundImage",4,"ngSwitchCase"],["class","ant-empty-small",3,"nzNotFoundImage",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"ant-empty-normal",3,"nzNotFoundImage"],[1,"ant-empty-small",3,"nzNotFoundImage"],[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(Ho(0,yI,4,3,"ng-container",0),Ho(1,CI,3,2,"ng-container",1)),2&t&&(Uo("ngIf",!e.content&&null!==e.specificContent),sa(1),Uo("ngIf",e.content))},directives:function(){return[Yd,$d,Kd,Jd,LI,qC]},encapsulation:2,changeDetection:0}),t})();const II=["default","simple"];let LI=(()=>{class t{constructor(t,e){this.i18n=t,this.cdr=e,this.nzNotFoundImage="default",this.isContentString=!1,this.isImageBuildIn=!0,this.destroy$=new A}ngOnChanges(t){const{nzNotFoundContent:e,nzNotFoundImage:n}=t;if(e&&(this.isContentString="string"==typeof e.currentValue),n){const t=n.currentValue||"default";this.isImageBuildIn=II.findIndex((e=>e===t))>-1}}ngOnInit(){this.i18n.localeChange.pipe(aC(this.destroy$)).subscribe((()=>{this.locale=this.i18n.getLocaleData("Empty"),this.cdr.markForCheck()}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Mx),Zo(Gl))},t["ɵcmp"]=qt({type:t,selectors:[["nz-empty"]],hostAttrs:[1,"ant-empty"],inputs:{nzNotFoundImage:"nzNotFoundImage",nzNotFoundContent:"nzNotFoundContent",nzNotFoundFooter:"nzNotFoundFooter"},exportAs:["nzEmpty"],features:[pe],decls:6,vars:5,consts:[[1,"ant-empty-image"],[4,"ngIf"],["class","ant-empty-description",4,"ngIf"],["class","ant-empty-footer",4,"ngIf"],[4,"nzStringTemplateOutlet"],[3,"src","alt"],[1,"ant-empty-description"],[1,"ant-empty-footer"]],template:function(t,e){1&t&&(Yo(0,"div",0),Ho(1,SI,2,1,"ng-container",1),Ho(2,PI,1,0,"nz-empty-default",1),Ho(3,_I,1,0,"nz-empty-simple",1),jo(),Ho(4,DI,2,1,"p",2),Ho(5,OI,2,1,"div",3)),2&t&&(sa(1),Uo("ngIf",!e.isImageBuildIn),sa(1),Uo("ngIf",e.isImageBuildIn&&"simple"!==e.nzNotFoundImage),sa(1),Uo("ngIf",e.isImageBuildIn&&"simple"===e.nzNotFoundImage),sa(1),Uo("ngIf",null!==e.nzNotFoundContent),sa(1),Uo("ngIf",e.nzNotFoundFooter))},directives:function(){return[Yd,Uk,zI,RI]},encapsulation:2,changeDetection:0}),t})(),zI=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵcmp"]=qt({type:t,selectors:[["nz-empty-default"]],exportAs:["nzEmptyDefault"],decls:12,vars:0,consts:[["width","184","height","152","viewBox","0 0 184 152","xmlns","http://www.w3.org/2000/svg",1,"ant-empty-img-default"],["fill","none","fill-rule","evenodd"],["transform","translate(24 31.67)"],["cx","67.797","cy","106.89","rx","67.797","ry","12.668",1,"ant-empty-img-default-ellipse"],["d","M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",1,"ant-empty-img-default-path-1"],["d","M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z","transform","translate(13.56)",1,"ant-empty-img-default-path-2"],["d","M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",1,"ant-empty-img-default-path-3"],["d","M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",1,"ant-empty-img-default-path-4"],["d","M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",1,"ant-empty-img-default-path-5"],["transform","translate(149.65 15.383)",1,"ant-empty-img-default-g"],["cx","20.654","cy","3.167","rx","2.849","ry","2.815"],["d","M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"]],template:function(t,e){1&t&&(gn(),Yo(0,"svg",0),Yo(1,"g",1),Yo(2,"g",2),Xo(3,"ellipse",3),Xo(4,"path",4),Xo(5,"path",5),Xo(6,"path",6),Xo(7,"path",7),jo(),Xo(8,"path",8),Yo(9,"g",9),Xo(10,"ellipse",10),Xo(11,"path",11),jo(),jo(),jo())},encapsulation:2,changeDetection:0}),t})(),RI=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵcmp"]=qt({type:t,selectors:[["nz-empty-simple"]],exportAs:["nzEmptySimple"],decls:6,vars:0,consts:[["width","64","height","41","viewBox","0 0 64 41","xmlns","http://www.w3.org/2000/svg",1,"ant-empty-img-simple"],["transform","translate(0 1)","fill","none","fill-rule","evenodd"],["cx","32","cy","33","rx","32","ry","7",1,"ant-empty-img-simple-ellipse"],["fill-rule","nonzero",1,"ant-empty-img-simple-g"],["d","M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"],["d","M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",1,"ant-empty-img-simple-path"]],template:function(t,e){1&t&&(gn(),Yo(0,"svg",0),Yo(1,"g",1),Xo(2,"ellipse",2),Yo(3,"g",3),Xo(4,"path",4),Xo(5,"path",5),jo(),jo(),jo())},encapsulation:2,changeDetection:0}),t})(),FI=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({imports:[[Vx,nu,$C,Yk,Ex]]}),t})();const BI=["*"];function VI(t,e){if(1&t&&(Yo(0,"div",4),Xo(1,"nz-embed-empty",5),jo()),2&t){const t=os();sa(1),Uo("specificContent",t.notFoundContent)}}function NI(t,e){1&t&&Xo(0,"nz-option-item-group",9),2&t&&Uo("nzLabel",os().$implicit.groupLabel)}function HI(t,e){if(1&t){const t=Jo();Yo(0,"nz-option-item",10),es("itemHover",(function(e){return Ne(t),os(2).onItemHover(e)}))("itemClick",(function(e){return Ne(t),os(2).onItemClick(e)})),jo()}if(2&t){const t=os().$implicit,e=os();Uo("icon",e.menuItemSelectedIcon)("customContent",t.nzCustomContent)("template",t.template)("grouped",!!t.groupLabel)("disabled",t.nzDisabled)("showState","tags"===e.mode||"multiple"===e.mode)("label",t.nzLabel)("compareWith",e.compareWith)("activatedValue",e.activatedValue)("listOfSelectedValue",e.listOfSelectedValue)("value",t.nzValue)}}function GI(t,e){1&t&&(qo(0,6),Ho(1,NI,1,1,"nz-option-item-group",7),Ho(2,HI,1,11,"nz-option-item",8),$o()),2&t&&(Uo("ngSwitch",e.$implicit.type),sa(1),Uo("ngSwitchCase","group"),sa(1),Uo("ngSwitchCase","item"))}function ZI(t,e){}function UI(t,e){1&t&&cs(0)}const WI=["inputElement"],YI=["mirrorElement"];function jI(t,e){1&t&&Xo(0,"span",3,4)}function XI(t,e){if(1&t&&Xo(0,"nz-select-item",6),2&t){const t=os(2);Uo("deletable",!1)("disabled",!1)("removeIcon",t.removeIcon)("label",t.listOfTopItem[0].nzLabel)("contentTemplateOutlet",t.customTemplate)("contentTemplateOutletContext",t.listOfTopItem[0])}}function qI(t,e){if(1&t){const t=Jo();qo(0),Yo(1,"nz-select-search",4),es("isComposingChange",(function(e){return Ne(t),os().isComposingChange(e)}))("valueChange",(function(e){return Ne(t),os().onInputValueChange(e)})),jo(),Ho(2,XI,1,6,"nz-select-item",5),$o()}if(2&t){const t=os();sa(1),Uo("nzId",t.nzId)("disabled",t.disabled)("value",t.inputValue)("showInput",t.showSearch)("mirrorSync",!1)("autofocus",t.autofocus)("focusTrigger",t.open),sa(1),Uo("ngIf",t.isShowSingleLabel)}}function $I(t,e){if(1&t){const t=Jo();Yo(0,"nz-select-item",9),es("delete",(function(){const e=Ne(t).$implicit;return os(2).onDeleteItem(e.contentTemplateOutletContext)})),jo()}if(2&t){const t=e.$implicit,n=os(2);Uo("removeIcon",n.removeIcon)("label",t.nzLabel)("disabled",t.nzDisabled||n.disabled)("contentTemplateOutlet",t.contentTemplateOutlet)("deletable",!0)("contentTemplateOutletContext",t.contentTemplateOutletContext)}}function KI(t,e){if(1&t){const t=Jo();qo(0),Ho(1,$I,1,6,"nz-select-item",7),Yo(2,"nz-select-search",8),es("isComposingChange",(function(e){return Ne(t),os().isComposingChange(e)}))("valueChange",(function(e){return Ne(t),os().onInputValueChange(e)})),jo(),$o()}if(2&t){const t=os();sa(1),Uo("ngForOf",t.listOfSlicedItem)("ngForTrackBy",t.trackValue),sa(1),Uo("nzId",t.nzId)("disabled",t.disabled)("value",t.inputValue)("autofocus",t.autofocus)("showInput",!0)("mirrorSync",!0)("focusTrigger",t.open)}}function JI(t,e){1&t&&Xo(0,"nz-select-placeholder",10),2&t&&Uo("placeholder",os().placeHolder)}function QI(t,e){if(1&t&&Xo(0,"nz-select-arrow",5),2&t){const t=os();Uo("loading",t.nzLoading)("search",t.nzOpen&&t.nzShowSearch)("suffixIcon",t.nzSuffixIcon)}}function tL(t,e){if(1&t){const t=Jo();Yo(0,"nz-select-clear",6),es("clear",(function(){return Ne(t),os().onClearSelection()})),jo()}2&t&&Uo("clearIcon",os().nzClearIcon)}function eL(t,e){if(1&t){const t=Jo();Yo(0,"nz-option-container",7),es("keydown",(function(e){return Ne(t),os().onKeyDown(e)}))("itemClick",(function(e){return Ne(t),os().onItemClick(e)}))("scrollToBottom",(function(){return Ne(t),os().nzScrollToBottom.emit()})),jo()}if(2&t){const t=os();Cs("ant-select-dropdown-placement-bottomLeft","bottom"===t.dropDownPosition)("ant-select-dropdown-placement-topLeft","top"===t.dropDownPosition),Uo("ngStyle",t.nzDropdownStyle)("itemSize",t.nzOptionHeightPx)("maxItemLength",t.nzOptionOverflowSize)("matchWidth",t.nzDropdownMatchSelectWidth)("@slideMotion","enter")("@.disabled",null==t.noAnimation?null:t.noAnimation.nzNoAnimation)("nzNoAnimation",null==t.noAnimation?null:t.noAnimation.nzNoAnimation)("listOfContainerItem",t.listOfContainerItem)("menuItemSelectedIcon",t.nzMenuItemSelectedIcon)("notFoundContent",t.nzNotFoundContent)("activatedValue",t.activatedValue)("listOfSelectedValue",t.listOfValue)("dropdownRender",t.nzDropdownRender)("compareWith",t.compareWith)("mode",t.nzMode)}}function nL(t,e){if(1&t&&(qo(0),Bs(1),$o()),2&t){const t=os();sa(1),Vs(t.nzLabel)}}function iL(t,e){if(1&t&&(qo(0),Bs(1),$o()),2&t){const t=os();sa(1),Vs(t.label)}}function rL(t,e){}function aL(t,e){if(1&t&&(qo(0),Ho(1,rL,0,0,"ng-template",3),$o()),2&t){const t=os();sa(1),Uo("ngTemplateOutlet",t.template)}}function oL(t,e){1&t&&Xo(0,"i",6)}function sL(t,e){if(1&t&&(Yo(0,"div",4),Ho(1,oL,1,0,"i",5),jo()),2&t){const t=os();sa(1),Uo("ngIf",!t.icon)("ngIfElse",t.icon)}}function lL(t,e){1&t&&Xo(0,"i",2)}function cL(t,e){1&t&&Xo(0,"i",7)}function hL(t,e){1&t&&Xo(0,"i",8)}function dL(t,e){if(1&t&&(qo(0),Ho(1,cL,1,0,"i",5),Ho(2,hL,1,0,"i",6),$o()),2&t){const t=os(2);sa(1),Uo("ngIf",!t.search),sa(1),Uo("ngIf",t.search)}}function uL(t,e){if(1&t&&(qo(0),Xo(1,"i",10),$o()),2&t){const t=e.$implicit;sa(1),Uo("nzType",t)}}function mL(t,e){1&t&&Ho(0,uL,2,1,"ng-container",9),2&t&&Uo("nzStringTemplateOutlet",os(2).suffixIcon)}function pL(t,e){if(1&t&&(Ho(0,dL,3,2,"ng-container",3),Ho(1,mL,1,1,"ng-template",null,4,Yc)),2&t){const t=Go(2);Uo("ngIf",!os().suffixIcon)("ngIfElse",t)}}function gL(t,e){1&t&&Xo(0,"i",1)}function fL(t,e){if(1&t&&(Yo(0,"div",4),Bs(1),jo()),2&t){const t=os(2);sa(1),Vs(t.label)}}function bL(t,e){1&t&&Bs(0),2&t&&Vs(os(2).label)}function yL(t,e){if(1&t&&(qo(0),Ho(1,fL,2,1,"div",2),Ho(2,bL,1,1,"ng-template",null,3,Yc),$o()),2&t){const t=Go(3),e=os();sa(1),Uo("ngIf",e.deletable)("ngIfElse",t)}}function vL(t,e){1&t&&Xo(0,"i",7)}function wL(t,e){if(1&t){const t=Jo();Yo(0,"span",5),es("click",(function(e){return Ne(t),os().onDelete(e)})),Ho(1,vL,1,0,"i",6),jo()}if(2&t){const t=os();sa(1),Uo("ngIf",!t.removeIcon)("ngIfElse",t.removeIcon)}}const xL=function(t){return{$implicit:t}};function CL(t,e){if(1&t&&(qo(0),Bs(1),$o()),2&t){const t=os();sa(1),Ns(" ",t.placeholder," ")}}let kL=(()=>{class t{constructor(){this.nzLabel=null,this.changes=new A}ngOnChanges(){this.changes.next()}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵcmp"]=qt({type:t,selectors:[["nz-option-group"]],inputs:{nzLabel:"nzLabel"},exportAs:["nzOptionGroup"],features:[pe],ngContentSelectors:BI,decls:1,vars:0,template:function(t,e){1&t&&(ls(),cs(0))},encapsulation:2,changeDetection:0}),t})(),SL=(()=>{class t{constructor(t){this.elementRef=t,this.notFoundContent=void 0,this.menuItemSelectedIcon=null,this.dropdownRender=null,this.activatedValue=null,this.listOfSelectedValue=[],this.mode="default",this.matchWidth=!0,this.itemSize=32,this.maxItemLength=8,this.listOfContainerItem=[],this.itemClick=new Dc,this.scrollToBottom=new Dc,this.scrolledIndex=0,this.elementRef.nativeElement.classList.add("ant-select-dropdown")}onItemClick(t){this.itemClick.emit(t)}onItemHover(t){this.activatedValue=t}trackValue(t,e){return e.key}onScrolledIndexChange(t){this.scrolledIndex=t,t===this.listOfContainerItem.length-this.maxItemLength&&this.scrollToBottom.emit()}scrollToActivatedValue(){const t=this.listOfContainerItem.findIndex((t=>this.compareWith(t.key,this.activatedValue)));(t<this.scrolledIndex||t>=this.scrolledIndex+this.maxItemLength)&&this.cdkVirtualScrollViewport.scrollToIndex(t||0)}ngOnChanges(t){const{listOfContainerItem:e,activatedValue:n}=t;(e||n)&&this.scrollToActivatedValue()}ngAfterViewInit(){setTimeout((()=>this.scrollToActivatedValue()))}}return t["ɵfac"]=function(e){return new(e||t)(Zo(bl))},t["ɵcmp"]=qt({type:t,selectors:[["nz-option-container"]],viewQuery:function(t,e){if(1&t&&Nc(BC,7),2&t){let t;Vc(t=Gc())&&(e.cdkVirtualScrollViewport=t.first)}},inputs:{notFoundContent:"notFoundContent",menuItemSelectedIcon:"menuItemSelectedIcon",dropdownRender:"dropdownRender",activatedValue:"activatedValue",listOfSelectedValue:"listOfSelectedValue",mode:"mode",matchWidth:"matchWidth",itemSize:"itemSize",maxItemLength:"maxItemLength",listOfContainerItem:"listOfContainerItem",compareWith:"compareWith"},outputs:{itemClick:"itemClick",scrollToBottom:"scrollToBottom"},exportAs:["nzOptionContainer"],features:[pe],decls:5,vars:14,consts:[["class","ant-select-item-empty",4,"ngIf"],[3,"itemSize","maxBufferPx","minBufferPx","scrolledIndexChange"],["cdkVirtualFor","",3,"cdkVirtualForOf","cdkVirtualForTrackBy","cdkVirtualForTemplateCacheSize"],[3,"ngTemplateOutlet"],[1,"ant-select-item-empty"],["nzComponentName","select",3,"specificContent"],[3,"ngSwitch"],[3,"nzLabel",4,"ngSwitchCase"],[3,"icon","customContent","template","grouped","disabled","showState","label","compareWith","activatedValue","listOfSelectedValue","value","itemHover","itemClick",4,"ngSwitchCase"],[3,"nzLabel"],[3,"icon","customContent","template","grouped","disabled","showState","label","compareWith","activatedValue","listOfSelectedValue","value","itemHover","itemClick"]],template:function(t,e){1&t&&(Yo(0,"div"),Ho(1,VI,2,1,"div",0),Yo(2,"cdk-virtual-scroll-viewport",1),es("scrolledIndexChange",(function(t){return e.onScrolledIndexChange(t)})),Ho(3,GI,3,3,"ng-template",2),jo(),Ho(4,ZI,0,0,"ng-template",3),jo()),2&t&&(sa(1),Uo("ngIf",0===e.listOfContainerItem.length),sa(1),xs("height",e.listOfContainerItem.length*e.itemSize,"px")("max-height",e.itemSize*e.maxItemLength,"px"),Cs("full-width",!e.matchWidth),Uo("itemSize",e.itemSize)("maxBufferPx",e.itemSize*e.maxItemLength)("minBufferPx",e.itemSize*e.maxItemLength),sa(1),Uo("cdkVirtualForOf",e.listOfContainerItem)("cdkVirtualForTrackBy",e.trackValue)("cdkVirtualForTemplateCacheSize",0),sa(1),Uo("ngTemplateOutlet",e.dropdownRender))},directives:function(){return[Yd,BC,IC,NC,tu,TI,$d,Kd,OL,AL]},encapsulation:2,changeDetection:0}),t})(),PL=(()=>{class t{constructor(t,e){this.nzOptionGroupComponent=t,this.destroy$=e,this.changes=new A,this.groupLabel=null,this.nzLabel=null,this.nzValue=null,this.nzDisabled=!1,this.nzHide=!1,this.nzCustomContent=!1}ngOnInit(){this.nzOptionGroupComponent&&this.nzOptionGroupComponent.changes.pipe(cC(!0),aC(this.destroy$)).subscribe((()=>{this.groupLabel=this.nzOptionGroupComponent.nzLabel}))}ngOnChanges(){this.changes.next()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(kL,8),Zo(ZP))},t["ɵcmp"]=qt({type:t,selectors:[["nz-option"]],viewQuery:function(t,e){if(1&t&&Nc(jl,7),2&t){let t;Vc(t=Gc())&&(e.template=t.first)}},inputs:{nzLabel:"nzLabel",nzValue:"nzValue",nzDisabled:"nzDisabled",nzHide:"nzHide",nzCustomContent:"nzCustomContent"},exportAs:["nzOption"],features:[hl([ZP]),pe],ngContentSelectors:BI,decls:1,vars:0,template:function(t,e){1&t&&(ls(),Ho(0,UI,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),Bk([hx()],t.prototype,"nzDisabled",void 0),Bk([hx()],t.prototype,"nzHide",void 0),Bk([hx()],t.prototype,"nzCustomContent",void 0),t})(),_L=(()=>{class t{constructor(t,e,n){this.elementRef=t,this.renderer=e,this.focusMonitor=n,this.nzId=null,this.disabled=!1,this.mirrorSync=!1,this.showInput=!0,this.focusTrigger=!1,this.value="",this.autofocus=!1,this.valueChange=new Dc,this.isComposingChange=new Dc,this.elementRef.nativeElement.classList.add("ant-select-selection-search")}setCompositionState(t){this.isComposingChange.next(t)}onValueChange(t){this.value=t,this.valueChange.next(t),this.mirrorSync&&this.syncMirrorWidth()}clearInputValue(){this.inputElement.nativeElement.value="",this.onValueChange("")}syncMirrorWidth(){const t=this.mirrorElement.nativeElement,e=this.elementRef.nativeElement,n=this.inputElement.nativeElement;this.renderer.removeStyle(e,"width"),t.innerHTML=this.renderer.createText(n.value+" "),this.renderer.setStyle(e,"width",t.scrollWidth+"px")}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}ngOnChanges(t){const e=this.inputElement.nativeElement,{focusTrigger:n,showInput:i}=t;i&&(this.showInput?this.renderer.removeAttribute(e,"readonly"):this.renderer.setAttribute(e,"readonly","readonly")),n&&!0===n.currentValue&&!1===n.previousValue&&e.focus()}ngAfterViewInit(){this.mirrorSync&&this.syncMirrorWidth(),this.autofocus&&this.focus()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(bl),Zo(wl),Zo(SP))},t["ɵcmp"]=qt({type:t,selectors:[["nz-select-search"]],viewQuery:function(t,e){if(1&t&&(Nc(WI,7),Nc(YI,5)),2&t){let t;Vc(t=Gc())&&(e.inputElement=t.first),Vc(t=Gc())&&(e.mirrorElement=t.first)}},inputs:{nzId:"nzId",disabled:"disabled",mirrorSync:"mirrorSync",showInput:"showInput",focusTrigger:"focusTrigger",value:"value",autofocus:"autofocus"},outputs:{valueChange:"valueChange",isComposingChange:"isComposingChange"},features:[hl([{provide:ep,useValue:!1}]),pe],decls:3,vars:7,consts:[["autocomplete","off",1,"ant-select-selection-search-input",3,"ngModel","disabled","ngModelChange","compositionstart","compositionend"],["inputElement",""],["class","ant-select-selection-search-mirror",4,"ngIf"],[1,"ant-select-selection-search-mirror"],["mirrorElement",""]],template:function(t,e){1&t&&(Yo(0,"input",0,1),es("ngModelChange",(function(t){return e.onValueChange(t)}))("compositionstart",(function(){return e.setCompositionState(!0)}))("compositionend",(function(){return e.setCompositionState(!1)})),jo(),Ho(2,jI,2,0,"span",2)),2&t&&(xs("opacity",e.showInput?null:0),Uo("ngModel",e.value)("disabled",e.disabled),Fo("id",e.nzId)("autofocus",e.autofocus?"autofocus":null),sa(2),Uo("ngIf",e.mirrorSync))},directives:[np,xp,Np,Yd],encapsulation:2,changeDetection:0}),t})(),ML=(()=>{class t{constructor(t,e,n){this.elementRef=t,this.ngZone=e,this.noAnimation=n,this.nzId=null,this.showSearch=!1,this.placeHolder=null,this.open=!1,this.maxTagCount=1/0,this.autofocus=!1,this.disabled=!1,this.mode="default",this.customTemplate=null,this.maxTagPlaceholder=null,this.removeIcon=null,this.listOfTopItem=[],this.tokenSeparators=[],this.tokenize=new Dc,this.inputValueChange=new Dc,this.deleteItem=new Dc,this.listOfSlicedItem=[],this.isShowPlaceholder=!0,this.isShowSingleLabel=!1,this.isComposing=!1,this.inputValue=null,this.destroy$=new A,this.elementRef.nativeElement.classList.add("ant-select-selector")}updateTemplateVariable(){const t=0===this.listOfTopItem.length;this.isShowPlaceholder=t&&!this.isComposing&&!this.inputValue,this.isShowSingleLabel=!t&&!this.isComposing&&!this.inputValue}isComposingChange(t){this.isComposing=t,this.updateTemplateVariable()}onInputValueChange(t){t!==this.inputValue&&(this.inputValue=t,this.updateTemplateVariable(),this.inputValueChange.emit(t),this.tokenSeparate(t,this.tokenSeparators))}tokenSeparate(t,e){if(t&&t.length&&e.length&&"default"!==this.mode&&((t,e)=>{for(let n=0;n<e.length;++n)if(t.lastIndexOf(e[n])>0)return!0;return!1})(t,e)){const n=((t,e)=>{const n=new RegExp("["+e.join()+"]"),i=t.split(n).filter((t=>t));return[...new Set(i)]})(t,e);this.tokenize.next(n)}}clearInputValue(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.clearInputValue()}focus(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.focus()}blur(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.blur()}trackValue(t,e){return e.nzValue}onDeleteItem(t){!this.disabled&&!t.nzDisabled&&this.deleteItem.next(t)}ngOnChanges(t){const{listOfTopItem:e,maxTagCount:n,customTemplate:i,maxTagPlaceholder:r}=t;if(e&&this.updateTemplateVariable(),e||n||i||r){const t=this.listOfTopItem.slice(0,this.maxTagCount).map((t=>({nzLabel:t.nzLabel,nzValue:t.nzValue,nzDisabled:t.nzDisabled,contentTemplateOutlet:this.customTemplate,contentTemplateOutletContext:t})));if(this.listOfTopItem.length>this.maxTagCount){const e="+ "+(this.listOfTopItem.length-this.maxTagCount)+" ...",n=this.listOfTopItem.map((t=>t.nzValue)),i={nzLabel:e,nzValue:"$$__nz_exceeded_item",nzDisabled:!0,contentTemplateOutlet:this.maxTagPlaceholder,contentTemplateOutletContext:n.slice(this.maxTagCount)};t.push(i)}this.listOfSlicedItem=t}}ngOnInit(){this.ngZone.runOutsideAngular((()=>{Nx(this.elementRef.nativeElement,"click").pipe(aC(this.destroy$)).subscribe((t=>{t.target!==this.nzSelectSearchComponent.inputElement.nativeElement&&this.nzSelectSearchComponent.focus()})),Nx(this.elementRef.nativeElement,"keydown").pipe(aC(this.destroy$)).subscribe((t=>{if(t.target instanceof HTMLInputElement){const e=t.target.value;8===t.keyCode&&"default"!==this.mode&&!e&&this.listOfTopItem.length>0&&(t.preventDefault(),this.ngZone.run((()=>this.onDeleteItem(this.listOfTopItem[this.listOfTopItem.length-1]))))}}))}))}ngOnDestroy(){this.destroy$.next()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(bl),Zo(ph),Zo(Gk,9))},t["ɵcmp"]=qt({type:t,selectors:[["nz-select-top-control"]],viewQuery:function(t,e){if(1&t&&Nc(_L,5),2&t){let t;Vc(t=Gc())&&(e.nzSelectSearchComponent=t.first)}},inputs:{nzId:"nzId",showSearch:"showSearch",placeHolder:"placeHolder",open:"open",maxTagCount:"maxTagCount",autofocus:"autofocus",disabled:"disabled",mode:"mode",customTemplate:"customTemplate",maxTagPlaceholder:"maxTagPlaceholder",removeIcon:"removeIcon",listOfTopItem:"listOfTopItem",tokenSeparators:"tokenSeparators"},outputs:{tokenize:"tokenize",inputValueChange:"inputValueChange",deleteItem:"deleteItem"},exportAs:["nzSelectTopControl"],features:[pe],decls:4,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"placeholder",4,"ngIf"],[3,"nzId","disabled","value","showInput","mirrorSync","autofocus","focusTrigger","isComposingChange","valueChange"],[3,"deletable","disabled","removeIcon","label","contentTemplateOutlet","contentTemplateOutletContext",4,"ngIf"],[3,"deletable","disabled","removeIcon","label","contentTemplateOutlet","contentTemplateOutletContext"],[3,"removeIcon","label","disabled","contentTemplateOutlet","deletable","contentTemplateOutletContext","delete",4,"ngFor","ngForOf","ngForTrackBy"],[3,"nzId","disabled","value","autofocus","showInput","mirrorSync","focusTrigger","isComposingChange","valueChange"],[3,"removeIcon","label","disabled","contentTemplateOutlet","deletable","contentTemplateOutletContext","delete"],[3,"placeholder"]],template:function(t,e){1&t&&(qo(0,0),Ho(1,qI,3,8,"ng-container",1),Ho(2,KI,3,9,"ng-container",2),$o(),Ho(3,JI,1,1,"nz-select-placeholder",3)),2&t&&(Uo("ngSwitch",e.mode),sa(1),Uo("ngSwitchCase","default"),sa(2),Uo("ngIf",e.isShowPlaceholder))},directives:function(){return[$d,Kd,Jd,Yd,_L,LL,Ud,sM,zL]},encapsulation:2,changeDetection:0}),t})();const DL=(t,e)=>!(!e||!e.nzLabel)&&e.nzLabel.toString().toLowerCase().indexOf(t.toLowerCase())>-1;let EL=(()=>{class t{constructor(t,e,n,i,r,a,o,s){this.destroy$=t,this.nzConfigService=e,this.cdr=n,this.elementRef=i,this.platform=r,this.focusMonitor=a,this.directionality=o,this.noAnimation=s,this._nzModuleName="select",this.nzId=null,this.nzSize="default",this.nzOptionHeightPx=32,this.nzOptionOverflowSize=8,this.nzDropdownClassName=null,this.nzDropdownMatchSelectWidth=!0,this.nzDropdownStyle=null,this.nzNotFoundContent=void 0,this.nzPlaceHolder=null,this.nzMaxTagCount=1/0,this.nzDropdownRender=null,this.nzCustomTemplate=null,this.nzSuffixIcon=null,this.nzClearIcon=null,this.nzRemoveIcon=null,this.nzMenuItemSelectedIcon=null,this.nzTokenSeparators=[],this.nzMaxTagPlaceholder=null,this.nzMaxMultipleCount=1/0,this.nzMode="default",this.nzFilterOption=DL,this.compareWith=(t,e)=>t===e,this.nzAllowClear=!1,this.nzBorderless=!1,this.nzShowSearch=!1,this.nzLoading=!1,this.nzAutoFocus=!1,this.nzAutoClearSearchValue=!0,this.nzServerSearch=!1,this.nzDisabled=!1,this.nzOpen=!1,this.nzBackdrop=!1,this.nzOptions=[],this.nzOnSearch=new Dc,this.nzScrollToBottom=new Dc,this.nzOpenChange=new Dc,this.nzBlur=new Dc,this.nzFocus=new Dc,this.listOfValue$=new Lb([]),this.listOfTemplateItem$=new Lb([]),this.listOfTagAndTemplateItem=[],this.searchValue="",this.isReactiveDriven=!1,this.requestId=-1,this.onChange=()=>{},this.onTouched=()=>{},this.dropDownPosition="bottom",this.triggerWidth=null,this.listOfContainerItem=[],this.listOfTopItem=[],this.activatedValue=null,this.listOfValue=[],this.focused=!1,this.dir="ltr",this.elementRef.nativeElement.classList.add("ant-select")}set nzShowArrow(t){this._nzShowArrow=t}get nzShowArrow(){return void 0===this._nzShowArrow?"default"===this.nzMode:this._nzShowArrow}generateTagItem(t){return{nzValue:t,nzLabel:t,type:"item"}}onItemClick(t){if(this.activatedValue=t,"default"===this.nzMode)(0===this.listOfValue.length||!this.compareWith(this.listOfValue[0],t))&&this.updateListOfValue([t]),this.setOpenState(!1);else{const e=this.listOfValue.findIndex((e=>this.compareWith(e,t)));if(-1!==e){const t=this.listOfValue.filter(((t,n)=>n!==e));this.updateListOfValue(t)}else if(this.listOfValue.length<this.nzMaxMultipleCount){const e=[...this.listOfValue,t];this.updateListOfValue(e)}this.focus(),this.nzAutoClearSearchValue&&this.clearInput()}}onItemDelete(t){const e=this.listOfValue.filter((e=>!this.compareWith(e,t.nzValue)));this.updateListOfValue(e),this.clearInput()}onHostClick(){this.nzOpen&&this.nzShowSearch||this.nzDisabled||this.setOpenState(!this.nzOpen)}updateListOfContainerItem(){let t=this.listOfTagAndTemplateItem.filter((t=>!t.nzHide)).filter((t=>!(!this.nzServerSearch&&this.searchValue)||this.nzFilterOption(this.searchValue,t)));if("tags"===this.nzMode&&this.searchValue){const e=this.listOfTagAndTemplateItem.find((t=>t.nzLabel===this.searchValue));if(e)this.activatedValue=e.nzValue;else{const e=this.generateTagItem(this.searchValue);t=[e,...t],this.activatedValue=e.nzValue}}const e=t.find((t=>this.compareWith(t.nzValue,this.listOfValue[0])))||t[0];this.activatedValue=e&&e.nzValue||null;let n=[];this.isReactiveDriven?n=[...new Set(this.nzOptions.filter((t=>t.groupLabel)).map((t=>t.groupLabel)))]:this.listOfNzOptionGroupComponent&&(n=this.listOfNzOptionGroupComponent.map((t=>t.nzLabel))),n.forEach((e=>{const n=t.findIndex((t=>e===t.groupLabel));n>-1&&t.splice(n,0,{groupLabel:e,type:"group",key:e})})),this.listOfContainerItem=[...t],this.updateCdkConnectedOverlayPositions()}clearInput(){this.nzSelectTopControlComponent.clearInputValue()}updateListOfValue(t){const e=((t,e)=>"default"===this.nzMode?t.length>0?t[0]:null:t)(t);this.value!==e&&(this.listOfValue=t,this.listOfValue$.next(t),this.value=e,this.onChange(this.value))}onTokenSeparate(t){const e=this.listOfTagAndTemplateItem.filter((e=>-1!==t.findIndex((t=>t===e.nzLabel)))).map((t=>t.nzValue)).filter((t=>-1===this.listOfValue.findIndex((e=>this.compareWith(e,t)))));if("multiple"===this.nzMode)this.updateListOfValue([...this.listOfValue,...e]);else if("tags"===this.nzMode){const n=t.filter((t=>-1===this.listOfTagAndTemplateItem.findIndex((e=>e.nzLabel===t))));this.updateListOfValue([...this.listOfValue,...e,...n])}this.clearInput()}onOverlayKeyDown(t){27===t.keyCode&&this.setOpenState(!1)}onKeyDown(t){if(this.nzDisabled)return;const e=this.listOfContainerItem.filter((t=>"item"===t.type)).filter((t=>!t.nzDisabled)),n=e.findIndex((t=>this.compareWith(t.nzValue,this.activatedValue)));switch(t.keyCode){case 38:t.preventDefault(),this.nzOpen&&(this.activatedValue=e[n>0?n-1:e.length-1].nzValue);break;case 40:t.preventDefault(),this.nzOpen?this.activatedValue=e[n<e.length-1?n+1:0].nzValue:this.setOpenState(!0);break;case 13:t.preventDefault(),this.nzOpen?ix(this.activatedValue)&&this.onItemClick(this.activatedValue):this.setOpenState(!0);break;case 32:this.nzOpen||(this.setOpenState(!0),t.preventDefault());break;case 9:this.setOpenState(!1);break;case 27:break;default:this.nzOpen||this.setOpenState(!0)}}setOpenState(t){this.nzOpen!==t&&(this.nzOpen=t,this.nzOpenChange.emit(t),this.onOpenChange(),this.cdr.markForCheck())}onOpenChange(){this.updateCdkConnectedOverlayStatus(),this.clearInput()}onInputValueChange(t){this.searchValue=t,this.updateListOfContainerItem(),this.nzOnSearch.emit(t),this.updateCdkConnectedOverlayPositions()}onClearSelection(){this.updateListOfValue([])}onClickOutside(t){this.elementRef.nativeElement.contains(t.target)||this.setOpenState(!1)}focus(){this.nzSelectTopControlComponent.focus()}blur(){this.nzSelectTopControlComponent.blur()}onPositionChange(t){this.dropDownPosition=t.connectionPair.originY}updateCdkConnectedOverlayStatus(){if(this.platform.isBrowser&&this.originElement.nativeElement){const t=this.triggerWidth;mI(this.requestId),this.requestId=pI((()=>{this.triggerWidth=this.originElement.nativeElement.getBoundingClientRect().width,t!==this.triggerWidth&&this.cdr.detectChanges()}))}}updateCdkConnectedOverlayPositions(){pI((()=>{var t,e;null===(e=null===(t=this.cdkConnectedOverlay)||void 0===t?void 0:t.overlayRef)||void 0===e||e.updatePosition()}))}writeValue(t){if(this.value!==t){this.value=t;const e=((t,e)=>null==t?[]:"default"===this.nzMode?[t]:t)(t);this.listOfValue=e,this.listOfValue$.next(e),this.cdr.markForCheck()}}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.nzDisabled=t,t&&this.setOpenState(!1),this.cdr.markForCheck()}ngOnChanges(t){const{nzOpen:e,nzDisabled:n,nzOptions:i}=t;if(e&&this.onOpenChange(),n&&this.nzDisabled&&this.setOpenState(!1),i){this.isReactiveDriven=!0;const t=(this.nzOptions||[]).map((t=>({template:t.label instanceof jl?t.label:null,nzLabel:"string"==typeof t.label||"number"==typeof t.label?t.label:null,nzValue:t.value,nzDisabled:t.disabled||!1,nzHide:t.hide||!1,nzCustomContent:t.label instanceof jl,groupLabel:t.groupLabel||null,type:"item",key:t.value})));this.listOfTemplateItem$.next(t)}}ngOnInit(){var t;this.focusMonitor.monitor(this.elementRef,!0).pipe(aC(this.destroy$)).subscribe((t=>{t?(this.focused=!0,this.cdr.markForCheck(),this.nzFocus.emit()):(this.focused=!1,this.cdr.markForCheck(),this.nzBlur.emit(),Promise.resolve().then((()=>{this.onTouched()})))})),EM([this.listOfValue$,this.listOfTemplateItem$]).pipe(aC(this.destroy$)).subscribe((([t,e])=>{const n=t.filter((()=>"tags"===this.nzMode)).filter((t=>-1===e.findIndex((e=>this.compareWith(e.nzValue,t))))).map((t=>this.listOfTopItem.find((e=>this.compareWith(e.nzValue,t)))||this.generateTagItem(t)));this.listOfTagAndTemplateItem=[...e,...n],this.listOfTopItem=this.listOfValue.map((t=>[...this.listOfTagAndTemplateItem,...this.listOfTopItem].find((e=>this.compareWith(t,e.nzValue))))).filter((t=>!!t)),this.updateListOfContainerItem()})),null===(t=this.directionality.change)||void 0===t||t.pipe(aC(this.destroy$)).subscribe((t=>{this.dir=t,this.cdr.detectChanges()})),this.nzConfigService.getConfigChangeEventForComponent("select").pipe(aC(this.destroy$)).subscribe((()=>{this.cdr.markForCheck()})),this.dir=this.directionality.value}ngAfterContentInit(){this.isReactiveDriven||J(this.listOfNzOptionGroupComponent.changes,this.listOfNzOptionComponent.changes).pipe(cC(!0),Ju((()=>J(this.listOfNzOptionComponent.changes,this.listOfNzOptionGroupComponent.changes,...this.listOfNzOptionComponent.map((t=>t.changes)),...this.listOfNzOptionGroupComponent.map((t=>t.changes))).pipe(cC(!0)))),aC(this.destroy$)).subscribe((()=>{const t=this.listOfNzOptionComponent.toArray().map((t=>{const{template:e,nzLabel:n,nzValue:i,nzDisabled:r,nzHide:a,nzCustomContent:o,groupLabel:s}=t;return{template:e,nzLabel:n,nzValue:i,nzDisabled:r,nzHide:a,nzCustomContent:o,groupLabel:s,type:"item",key:i}}));this.listOfTemplateItem$.next(t),this.cdr.markForCheck()}))}ngOnDestroy(){mI(this.requestId),this.focusMonitor.stopMonitoring(this.elementRef)}}return t["ɵfac"]=function(e){return new(e||t)(Zo(ZP),Zo(ZS),Zo(Gl),Zo(bl),Zo(bC),Zo(SP),Zo(Fx,8),Zo(Gk,9))},t["ɵcmp"]=qt({type:t,selectors:[["nz-select"]],contentQueries:function(t,e,n){if(1&t&&(Hc(n,PL,5),Hc(n,kL,5)),2&t){let t;Vc(t=Gc())&&(e.listOfNzOptionComponent=t),Vc(t=Gc())&&(e.listOfNzOptionGroupComponent=t)}},viewQuery:function(t,e){if(1&t&&(Nc(Lk,7,bl),Nc(zk,7),Nc(ML,7),Nc(kL,7,bl),Nc(ML,7,bl)),2&t){let t;Vc(t=Gc())&&(e.originElement=t.first),Vc(t=Gc())&&(e.cdkConnectedOverlay=t.first),Vc(t=Gc())&&(e.nzSelectTopControlComponent=t.first),Vc(t=Gc())&&(e.nzOptionGroupComponentElement=t.first),Vc(t=Gc())&&(e.nzSelectTopControlComponentElement=t.first)}},hostVars:24,hostBindings:function(t,e){1&t&&es("click",(function(){return e.onHostClick()})),2&t&&Cs("ant-select-lg","large"===e.nzSize)("ant-select-sm","small"===e.nzSize)("ant-select-show-arrow",e.nzShowArrow)("ant-select-disabled",e.nzDisabled)("ant-select-show-search",(e.nzShowSearch||"default"!==e.nzMode)&&!e.nzDisabled)("ant-select-allow-clear",e.nzAllowClear)("ant-select-borderless",e.nzBorderless)("ant-select-open",e.nzOpen)("ant-select-focused",e.nzOpen||e.focused)("ant-select-single","default"===e.nzMode)("ant-select-multiple","default"!==e.nzMode)("ant-select-rtl","rtl"===e.dir)},inputs:{nzId:"nzId",nzSize:"nzSize",nzOptionHeightPx:"nzOptionHeightPx",nzOptionOverflowSize:"nzOptionOverflowSize",nzDropdownClassName:"nzDropdownClassName",nzDropdownMatchSelectWidth:"nzDropdownMatchSelectWidth",nzDropdownStyle:"nzDropdownStyle",nzNotFoundContent:"nzNotFoundContent",nzPlaceHolder:"nzPlaceHolder",nzMaxTagCount:"nzMaxTagCount",nzDropdownRender:"nzDropdownRender",nzCustomTemplate:"nzCustomTemplate",nzSuffixIcon:"nzSuffixIcon",nzClearIcon:"nzClearIcon",nzRemoveIcon:"nzRemoveIcon",nzMenuItemSelectedIcon:"nzMenuItemSelectedIcon",nzTokenSeparators:"nzTokenSeparators",nzMaxTagPlaceholder:"nzMaxTagPlaceholder",nzMaxMultipleCount:"nzMaxMultipleCount",nzMode:"nzMode",nzFilterOption:"nzFilterOption",compareWith:"compareWith",nzAllowClear:"nzAllowClear",nzBorderless:"nzBorderless",nzShowSearch:"nzShowSearch",nzLoading:"nzLoading",nzAutoFocus:"nzAutoFocus",nzAutoClearSearchValue:"nzAutoClearSearchValue",nzServerSearch:"nzServerSearch",nzDisabled:"nzDisabled",nzOpen:"nzOpen",nzBackdrop:"nzBackdrop",nzOptions:"nzOptions",nzShowArrow:"nzShowArrow"},outputs:{nzOnSearch:"nzOnSearch",nzScrollToBottom:"nzScrollToBottom",nzOpenChange:"nzOpenChange",nzBlur:"nzBlur",nzFocus:"nzFocus"},exportAs:["nzSelect"],features:[hl([ZP,{provide:Km,useExisting:ut((()=>t)),multi:!0}]),pe],decls:5,vars:24,consts:[["cdkOverlayOrigin","",3,"nzId","open","disabled","mode","nzNoAnimation","maxTagPlaceholder","removeIcon","placeHolder","maxTagCount","customTemplate","tokenSeparators","showSearch","autofocus","listOfTopItem","inputValueChange","tokenize","deleteItem","keydown"],["origin","cdkOverlayOrigin"],[3,"loading","search","suffixIcon",4,"ngIf"],[3,"clearIcon","clear",4,"ngIf"],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayMinWidth","cdkConnectedOverlayWidth","cdkConnectedOverlayOrigin","cdkConnectedOverlayTransformOriginOn","cdkConnectedOverlayPanelClass","cdkConnectedOverlayOpen","overlayKeydown","overlayOutsideClick","detach","positionChange"],[3,"loading","search","suffixIcon"],[3,"clearIcon","clear"],[3,"ngStyle","itemSize","maxItemLength","matchWidth","nzNoAnimation","listOfContainerItem","menuItemSelectedIcon","notFoundContent","activatedValue","listOfSelectedValue","dropdownRender","compareWith","mode","keydown","itemClick","scrollToBottom"]],template:function(t,e){if(1&t&&(Yo(0,"nz-select-top-control",0,1),es("inputValueChange",(function(t){return e.onInputValueChange(t)}))("tokenize",(function(t){return e.onTokenSeparate(t)}))("deleteItem",(function(t){return e.onItemDelete(t)}))("keydown",(function(t){return e.onKeyDown(t)})),jo(),Ho(2,QI,1,3,"nz-select-arrow",2),Ho(3,tL,1,1,"nz-select-clear",3),Ho(4,eL,1,19,"ng-template",4),es("overlayKeydown",(function(t){return e.onOverlayKeyDown(t)}))("overlayOutsideClick",(function(t){return e.onClickOutside(t)}))("detach",(function(){return e.setOpenState(!1)}))("positionChange",(function(t){return e.onPositionChange(t)}))),2&t){const t=Go(1);Uo("nzId",e.nzId)("open",e.nzOpen)("disabled",e.nzDisabled)("mode",e.nzMode)("@.disabled",null==e.noAnimation?null:e.noAnimation.nzNoAnimation)("nzNoAnimation",null==e.noAnimation?null:e.noAnimation.nzNoAnimation)("maxTagPlaceholder",e.nzMaxTagPlaceholder)("removeIcon",e.nzRemoveIcon)("placeHolder",e.nzPlaceHolder)("maxTagCount",e.nzMaxTagCount)("customTemplate",e.nzCustomTemplate)("tokenSeparators",e.nzTokenSeparators)("showSearch",e.nzShowSearch)("autofocus",e.nzAutoFocus)("listOfTopItem",e.listOfTopItem),sa(2),Uo("ngIf",e.nzShowArrow),sa(1),Uo("ngIf",e.nzAllowClear&&!e.nzDisabled&&e.listOfValue.length),sa(1),Uo("cdkConnectedOverlayHasBackdrop",e.nzBackdrop)("cdkConnectedOverlayMinWidth",e.nzDropdownMatchSelectWidth?null:e.triggerWidth)("cdkConnectedOverlayWidth",e.nzDropdownMatchSelectWidth?e.triggerWidth:null)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayTransformOriginOn",".ant-select-dropdown")("cdkConnectedOverlayPanelClass",e.nzDropdownClassName)("cdkConnectedOverlayOpen",e.nzOpen)}},directives:function(){return[sM,ML,Lk,Gk,Yd,zk,zM,TL,IL,SL,Qd]},encapsulation:2,data:{animation:[P_]},changeDetection:0}),Bk([US()],t.prototype,"nzSuffixIcon",void 0),Bk([hx()],t.prototype,"nzAllowClear",void 0),Bk([US(),hx()],t.prototype,"nzBorderless",void 0),Bk([hx()],t.prototype,"nzShowSearch",void 0),Bk([hx()],t.prototype,"nzLoading",void 0),Bk([hx()],t.prototype,"nzAutoFocus",void 0),Bk([hx()],t.prototype,"nzAutoClearSearchValue",void 0),Bk([hx()],t.prototype,"nzServerSearch",void 0),Bk([hx()],t.prototype,"nzDisabled",void 0),Bk([hx()],t.prototype,"nzOpen",void 0),Bk([US(),hx()],t.prototype,"nzBackdrop",void 0),t})(),OL=(()=>{class t{constructor(t){this.elementRef=t,this.nzLabel=null,this.elementRef.nativeElement.classList.add("ant-select-item","ant-select-item-group")}}return t["ɵfac"]=function(e){return new(e||t)(Zo(bl))},t["ɵcmp"]=qt({type:t,selectors:[["nz-option-item-group"]],inputs:{nzLabel:"nzLabel"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"]],template:function(t,e){1&t&&Ho(0,nL,2,1,"ng-container",0),2&t&&Uo("nzStringTemplateOutlet",e.nzLabel)},directives:[Uk],encapsulation:2,changeDetection:0}),t})(),AL=(()=>{class t{constructor(t){this.elementRef=t,this.selected=!1,this.activated=!1,this.grouped=!1,this.customContent=!1,this.template=null,this.disabled=!1,this.showState=!1,this.label=null,this.value=null,this.activatedValue=null,this.listOfSelectedValue=[],this.icon=null,this.itemClick=new Dc,this.itemHover=new Dc,this.elementRef.nativeElement.classList.add("ant-select-item","ant-select-item-option")}onHostMouseEnter(){this.disabled||this.itemHover.next(this.value)}onHostClick(){this.disabled||this.itemClick.next(this.value)}ngOnChanges(t){const{value:e,activatedValue:n,listOfSelectedValue:i}=t;(e||i)&&(this.selected=this.listOfSelectedValue.some((t=>this.compareWith(t,this.value)))),(e||n)&&(this.activated=this.compareWith(this.activatedValue,this.value))}}return t["ɵfac"]=function(e){return new(e||t)(Zo(bl))},t["ɵcmp"]=qt({type:t,selectors:[["nz-option-item"]],hostVars:9,hostBindings:function(t,e){1&t&&es("mouseenter",(function(){return e.onHostMouseEnter()}))("click",(function(){return e.onHostClick()})),2&t&&(Fo("title",e.label),Cs("ant-select-item-option-grouped",e.grouped)("ant-select-item-option-selected",e.selected&&!e.disabled)("ant-select-item-option-disabled",e.disabled)("ant-select-item-option-active",e.activated&&!e.disabled))},inputs:{grouped:"grouped",customContent:"customContent",template:"template",disabled:"disabled",showState:"showState",label:"label",value:"value",activatedValue:"activatedValue",listOfSelectedValue:"listOfSelectedValue",icon:"icon",compareWith:"compareWith"},outputs:{itemClick:"itemClick",itemHover:"itemHover"},features:[pe],decls:4,vars:3,consts:[[1,"ant-select-item-option-content"],[4,"ngIf"],["class","ant-select-item-option-state","style","user-select: none","unselectable","on",4,"ngIf"],[3,"ngTemplateOutlet"],["unselectable","on",1,"ant-select-item-option-state",2,"user-select","none"],["nz-icon","","nzType","check","class","ant-select-selected-icon",4,"ngIf","ngIfElse"],["nz-icon","","nzType","check",1,"ant-select-selected-icon"]],template:function(t,e){1&t&&(Yo(0,"div",0),Ho(1,iL,2,1,"ng-container",1),Ho(2,aL,2,1,"ng-container",1),jo(),Ho(3,sL,2,2,"div",2)),2&t&&(sa(1),Uo("ngIf",!e.customContent),sa(1),Uo("ngIf",e.customContent),sa(1),Uo("ngIf",e.showState&&e.selected))},directives:[Yd,tu,eP,sM],encapsulation:2,changeDetection:0}),t})(),TL=(()=>{class t{constructor(t){this.elementRef=t,this.loading=!1,this.search=!1,this.suffixIcon=null,this.elementRef.nativeElement.classList.add("ant-select-arrow")}}return t["ɵfac"]=function(e){return new(e||t)(Zo(bl))},t["ɵcmp"]=qt({type:t,selectors:[["nz-select-arrow"]],hostVars:2,hostBindings:function(t,e){2&t&&Cs("ant-select-arrow-loading",e.loading)},inputs:{loading:"loading",search:"search",suffixIcon:"suffixIcon"},decls:3,vars:2,consts:[["nz-icon","","nzType","loading",4,"ngIf","ngIfElse"],["defaultArrow",""],["nz-icon","","nzType","loading"],[4,"ngIf","ngIfElse"],["suffixTemplate",""],["nz-icon","","nzType","down",4,"ngIf"],["nz-icon","","nzType","search",4,"ngIf"],["nz-icon","","nzType","down"],["nz-icon","","nzType","search"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"]],template:function(t,e){if(1&t&&(Ho(0,lL,1,0,"i",0),Ho(1,pL,3,2,"ng-template",null,1,Yc)),2&t){const t=Go(2);Uo("ngIf",e.loading)("ngIfElse",t)}},directives:[Yd,eP,sM,Uk],encapsulation:2,changeDetection:0}),t})(),IL=(()=>{class t{constructor(t){this.elementRef=t,this.clearIcon=null,this.clear=new Dc,this.elementRef.nativeElement.classList.add("ant-select-clear")}onClick(t){t.preventDefault(),t.stopPropagation(),this.clear.emit(t)}}return t["ɵfac"]=function(e){return new(e||t)(Zo(bl))},t["ɵcmp"]=qt({type:t,selectors:[["nz-select-clear"]],hostBindings:function(t,e){1&t&&es("click",(function(t){return e.onClick(t)}))},inputs:{clearIcon:"clearIcon"},outputs:{clear:"clear"},decls:1,vars:2,consts:[["nz-icon","","nzType","close-circle","nzTheme","fill","class","ant-select-close-icon",4,"ngIf","ngIfElse"],["nz-icon","","nzType","close-circle","nzTheme","fill",1,"ant-select-close-icon"]],template:function(t,e){1&t&&Ho(0,gL,1,0,"i",0),2&t&&Uo("ngIf",!e.clearIcon)("ngIfElse",e.clearIcon)},directives:[Yd,eP,sM],encapsulation:2,changeDetection:0}),t})(),LL=(()=>{class t{constructor(t){this.elementRef=t,this.disabled=!1,this.label=null,this.deletable=!1,this.removeIcon=null,this.contentTemplateOutletContext=null,this.contentTemplateOutlet=null,this.delete=new Dc,this.elementRef.nativeElement.classList.add("ant-select-selection-item")}onDelete(t){t.preventDefault(),t.stopPropagation(),this.disabled||this.delete.next(t)}}return t["ɵfac"]=function(e){return new(e||t)(Zo(bl))},t["ɵcmp"]=qt({type:t,selectors:[["nz-select-item"]],hostVars:3,hostBindings:function(t,e){2&t&&(Fo("title",e.label),Cs("ant-select-selection-item-disabled",e.disabled))},inputs:{disabled:"disabled",label:"label",deletable:"deletable",removeIcon:"removeIcon",contentTemplateOutletContext:"contentTemplateOutletContext",contentTemplateOutlet:"contentTemplateOutlet"},outputs:{delete:"delete"},decls:2,vars:5,consts:[[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["class","ant-select-selection-item-remove",3,"click",4,"ngIf"],["class","ant-select-selection-item-content",4,"ngIf","ngIfElse"],["labelTemplate",""],[1,"ant-select-selection-item-content"],[1,"ant-select-selection-item-remove",3,"click"],["nz-icon","","nzType","close",4,"ngIf","ngIfElse"],["nz-icon","","nzType","close"]],template:function(t,e){1&t&&(Ho(0,yL,4,2,"ng-container",0),Ho(1,wL,2,2,"span",1)),2&t&&(Uo("nzStringTemplateOutlet",e.contentTemplateOutlet)("nzStringTemplateOutletContext",fc(3,xL,e.contentTemplateOutletContext)),sa(1),Uo("ngIf",e.deletable&&!e.disabled))},directives:[Uk,Yd,eP,sM],encapsulation:2,changeDetection:0}),t})(),zL=(()=>{class t{constructor(t){this.elementRef=t,this.placeholder=null,this.elementRef.nativeElement.classList.add("ant-select-selection-placeholder")}}return t["ɵfac"]=function(e){return new(e||t)(Zo(bl))},t["ɵcmp"]=qt({type:t,selectors:[["nz-select-placeholder"]],inputs:{placeholder:"placeholder"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"]],template:function(t,e){1&t&&Ho(0,CL,2,1,"ng-container",0),2&t&&Uo("nzStringTemplateOutlet",e.placeholder)},directives:[Uk],encapsulation:2,changeDetection:0}),t})(),RL=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({imports:[[Vx,nu,Ex,Wp,yC,Fk,nP,Yk,FI,RM,Zk,lM,GC,OP]]}),t})();function FL(...t){const e=t.length;if(0===e)throw new Error("list of properties cannot be empty.");return n=>{return L((i=t,r=e,t=>{let e=t;for(let t=0;t<r;t++){const n=null!=e?e[i[t]]:void 0;if(void 0===n)return;e=n}return e}))(n);var i,r}}const BL=["handle"],VL=["slider"];function NL(t,e){if(1&t&&Xo(0,"nz-slider-step",6),2&t){const t=os();Uo("vertical",t.nzVertical)("min",t.nzMin)("max",t.nzMax)("lowerBound",t.bounds.lower)("upperBound",t.bounds.upper)("marksArray",t.marksArray)("included",t.nzIncluded)("reverse",t.nzReverse)}}function HL(t,e){if(1&t){const t=Jo();Yo(0,"nz-slider-handle",7),es("focusin",(function(){const e=Ne(t).index;return os().onHandleFocusIn(e)})),jo()}if(2&t){const t=e.$implicit,n=os();Uo("vertical",n.nzVertical)("reverse",n.nzReverse)("offset",t.offset)("value",t.value)("active",t.active)("tooltipFormatter",n.nzTipFormatter)("tooltipVisible",n.nzTooltipVisible)("tooltipPlacement",n.nzTooltipPlacement)("dir",n.dir)}}function GL(t,e){if(1&t&&Xo(0,"nz-slider-marks",6),2&t){const t=os();Uo("vertical",t.nzVertical)("min",t.nzMin)("max",t.nzMax)("lowerBound",t.bounds.lower)("upperBound",t.bounds.upper)("marksArray",t.marksArray)("included",t.nzIncluded)("reverse",t.nzReverse)}}function ZL(t,e){if(1&t&&Xo(0,"span",2),2&t){const t=e.$implicit;Cs("ant-slider-mark-active",t.active),Uo("ngStyle",t.style)("innerHTML",t.label,Nr)}}function UL(t,e){if(1&t&&Xo(0,"span",2),2&t){const t=e.$implicit;Cs("ant-slider-dot-active",t.active),Uo("ngStyle",t.style)}}let WL=(()=>{class t{constructor(){this.isDragging=!1}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),YL=(()=>{class t{constructor(t,e){this.sliderService=t,this.cdr=e,this.tooltipVisible="default",this.active=!1,this.dir="ltr",this.style={},this.enterHandle=()=>{this.sliderService.isDragging||(this.toggleTooltip(!0),this.updateTooltipPosition(),this.cdr.detectChanges())},this.leaveHandle=()=>{this.sliderService.isDragging||(this.toggleTooltip(!1),this.cdr.detectChanges())}}ngOnChanges(t){const{offset:e,value:n,active:i,tooltipVisible:r,reverse:a,dir:o}=t;(e||a||o)&&this.updateStyle(),n&&(this.updateTooltipTitle(),this.updateTooltipPosition()),i&&this.toggleTooltip(!!i.currentValue),"always"===(null==r?void 0:r.currentValue)&&Promise.resolve().then((()=>this.toggleTooltip(!0,!0)))}focus(){var t;null===(t=this.handleEl)||void 0===t||t.nativeElement.focus()}toggleTooltip(t,e=!1){var n,i;!e&&("default"!==this.tooltipVisible||!this.tooltip)||(t?null===(n=this.tooltip)||void 0===n||n.show():null===(i=this.tooltip)||void 0===i||i.hide())}updateTooltipTitle(){this.tooltipTitle=this.tooltipFormatter?this.tooltipFormatter(this.value):""+this.value}updateTooltipPosition(){this.tooltip&&Promise.resolve().then((()=>{var t;return null===(t=this.tooltip)||void 0===t?void 0:t.updatePosition()}))}updateStyle(){const t=this.reverse,e=this.vertical?{[t?"top":"bottom"]:this.offset+"%",[t?"bottom":"top"]:"auto",transform:t?null:"translateY(+50%)"}:Object.assign(Object.assign({},this.getHorizontalStylePosition()),{transform:"translateX("+(t?"rtl"===this.dir?"-":"+":"rtl"===this.dir?"+":"-")+"50%)"});this.style=e,this.cdr.markForCheck()}getHorizontalStylePosition(){let t=this.reverse?"auto":this.offset+"%",e=this.reverse?this.offset+"%":"auto";if("rtl"===this.dir){const n=t;t=e,e=n}return{left:t,right:e}}}return t["ɵfac"]=function(e){return new(e||t)(Zo(WL),Zo(Gl))},t["ɵcmp"]=qt({type:t,selectors:[["nz-slider-handle"]],viewQuery:function(t,e){if(1&t&&(Nc(BL,5),Nc(XT,5)),2&t){let t;Vc(t=Gc())&&(e.handleEl=t.first),Vc(t=Gc())&&(e.tooltip=t.first)}},hostBindings:function(t,e){1&t&&es("mouseenter",(function(){return e.enterHandle()}))("mouseleave",(function(){return e.leaveHandle()}))},inputs:{tooltipVisible:"tooltipVisible",active:"active",dir:"dir",vertical:"vertical",reverse:"reverse",offset:"offset",value:"value",tooltipPlacement:"tooltipPlacement",tooltipFormatter:"tooltipFormatter"},exportAs:["nzSliderHandle"],features:[pe],decls:2,vars:4,consts:[["tabindex","0","nz-tooltip","",1,"ant-slider-handle",3,"ngStyle","nzTooltipTitle","nzTooltipTrigger","nzTooltipPlacement"],["handle",""]],template:function(t,e){1&t&&Xo(0,"div",0,1),2&t&&Uo("ngStyle",e.style)("nzTooltipTitle",null===e.tooltipFormatter||"never"===e.tooltipVisible?null:e.tooltipTitle)("nzTooltipTrigger",null)("nzTooltipPlacement",e.tooltipPlacement)},directives:[XT,Qd],encapsulation:2,changeDetection:0}),Bk([hx()],t.prototype,"active",void 0),t})(),jL=(()=>{class t{constructor(t,e,n,i){this.sliderService=t,this.cdr=e,this.platform=n,this.directionality=i,this.nzDisabled=!1,this.nzDots=!1,this.nzIncluded=!0,this.nzRange=!1,this.nzVertical=!1,this.nzReverse=!1,this.nzMarks=null,this.nzMax=100,this.nzMin=0,this.nzStep=1,this.nzTooltipVisible="default",this.nzTooltipPlacement="top",this.nzOnAfterChange=new Dc,this.value=null,this.cacheSliderStart=null,this.cacheSliderLength=null,this.activeValueIndex=void 0,this.track={offset:null,length:null},this.handles=[],this.marksArray=null,this.bounds={lower:null,upper:null},this.dir="ltr",this.destroy$=new A}ngOnInit(){var t;this.dir=this.directionality.value,null===(t=this.directionality.change)||void 0===t||t.pipe(aC(this.destroy$)).subscribe((t=>{this.dir=t,this.cdr.detectChanges(),this.updateTrackAndHandles(),this.onValueChange(this.getValue(!0))})),this.handles=qL(this.nzRange?2:1),this.marksArray=this.nzMarks?this.generateMarkItems(this.nzMarks):null,this.bindDraggingHandlers(),this.toggleDragDisabled(this.nzDisabled),null===this.getValue()&&this.setValue(this.formatValue(null))}ngOnChanges(t){const{nzDisabled:e,nzMarks:n,nzRange:i}=t;e&&!e.firstChange?this.toggleDragDisabled(e.currentValue):n&&!n.firstChange?this.marksArray=this.nzMarks?this.generateMarkItems(this.nzMarks):null:i&&!i.firstChange&&(this.handles=qL(i.currentValue?2:1),this.setValue(this.formatValue(null)))}ngOnDestroy(){this.unsubscribeDrag(),this.destroy$.next(),this.destroy$.complete()}writeValue(t){this.setValue(t,!0)}onValueChange(t){}onTouched(){}registerOnChange(t){this.onValueChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.nzDisabled=t,this.toggleDragDisabled(t)}onKeyDown(t){if(this.nzDisabled)return;const e=t.keyCode,n=37===e||40===e;if(39!==e&&38!==e&&!n)return;t.preventDefault();let i=(n?-this.nzStep:this.nzStep)*(this.nzReverse?-1:1);i="rtl"===this.dir?-1*i:i,this.setActiveValue(gx(this.nzRange?this.value[this.activeValueIndex]+i:this.value+i,this.nzMin,this.nzMax))}onHandleFocusIn(t){this.activeValueIndex=t}setValue(t,e=!1){var n,i;e?(this.value=this.formatValue(t),this.updateTrackAndHandles()):typeof(n=this.value)==typeof(i=t)&&(XL(n)&&XL(i)?function(t,e){if(!t||!e||t.length!==e.length)return!1;const n=t.length;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}(n,i):n===i)||(this.value=t,this.updateTrackAndHandles(),this.onValueChange(this.getValue(!0)))}getValue(t=!1){return t&&this.value&&XL(this.value)?[...this.value].sort(((t,e)=>t-e)):this.value}getValueToOffset(t){let e=t;return void 0===e&&(e=this.getValue(!0)),XL(e)?e.map((t=>this.valueToOffset(t))):this.valueToOffset(e)}setActiveValueIndex(t){const e=this.getValue();if(XL(e)){let n,i=null,r=-1;e.forEach(((e,a)=>{n=Math.abs(t-e),(null===i||n<i)&&(i=n,r=a)})),this.activeValueIndex=r,this.handlerComponents.toArray()[r].focus()}else this.handlerComponents.toArray()[0].focus()}setActiveValue(t){if(XL(this.value)){const e=[...this.value];e[this.activeValueIndex]=t,this.setValue(e)}else this.setValue(t)}updateTrackAndHandles(){const t=this.getValue(),e=this.getValueToOffset(t),n=this.getValue(!0),i=this.getValueToOffset(n),r=XL(n)?n:[0,n],a=XL(i)?[i[0],i[1]-i[0]]:[0,i];this.handles.forEach(((n,i)=>{n.offset=XL(e)?e[i]:e,n.value=XL(t)?t[i]:t||0})),[this.bounds.lower,this.bounds.upper]=r,[this.track.offset,this.track.length]=a,this.cdr.markForCheck()}onDragStart(t){this.toggleDragMoving(!0),this.cacheSliderProperty(),this.setActiveValueIndex(this.getLogicalValue(t)),this.setActiveValue(this.getLogicalValue(t)),this.showHandleTooltip(this.nzRange?this.activeValueIndex:0)}onDragMove(t){this.setActiveValue(this.getLogicalValue(t)),this.cdr.markForCheck()}getLogicalValue(t){return this.nzReverse?this.nzVertical||"rtl"!==this.dir?this.nzMax-t+this.nzMin:t:this.nzVertical||"rtl"!==this.dir?t:this.nzMax-t+this.nzMin}onDragEnd(){this.nzOnAfterChange.emit(this.getValue(!0)),this.toggleDragMoving(!1),this.cacheSliderProperty(!0),this.hideAllHandleTooltip(),this.cdr.markForCheck()}bindDraggingHandlers(){if(!this.platform.isBrowser)return;const t=this.slider.nativeElement,e=this.nzVertical?"pageY":"pageX",n={start:"mousedown",move:"mousemove",end:"mouseup",pluckKey:[e]},i={start:"touchstart",move:"touchmove",end:"touchend",pluckKey:["touches","0",e],filter:t=>t instanceof TouchEvent};[n,i].forEach((e=>{const{start:n,move:i,end:r,pluckKey:a,filter:o=(()=>!0)}=e;e.startPlucked$=Nx(t,n).pipe(lm(o),wS(ux),FL(...a),L((t=>this.findClosestValue(t)))),e.end$=Nx(document,r),e.moveResolved$=Nx(document,i).pipe(lm(o),wS(ux),FL(...a),qx(),L((t=>this.findClosestValue(t))),qx(),aC(e.end$))})),this.dragStart$=J(n.startPlucked$,i.startPlucked$),this.dragMove$=J(n.moveResolved$,i.moveResolved$),this.dragEnd$=J(n.end$,i.end$)}subscribeDrag(t=["start","move","end"]){-1!==t.indexOf("start")&&this.dragStart$&&!this.dragStart_&&(this.dragStart_=this.dragStart$.subscribe(this.onDragStart.bind(this))),-1!==t.indexOf("move")&&this.dragMove$&&!this.dragMove_&&(this.dragMove_=this.dragMove$.subscribe(this.onDragMove.bind(this))),-1!==t.indexOf("end")&&this.dragEnd$&&!this.dragEnd_&&(this.dragEnd_=this.dragEnd$.subscribe(this.onDragEnd.bind(this)))}unsubscribeDrag(t=["start","move","end"]){-1!==t.indexOf("start")&&this.dragStart_&&(this.dragStart_.unsubscribe(),this.dragStart_=null),-1!==t.indexOf("move")&&this.dragMove_&&(this.dragMove_.unsubscribe(),this.dragMove_=null),-1!==t.indexOf("end")&&this.dragEnd_&&(this.dragEnd_.unsubscribe(),this.dragEnd_=null)}toggleDragMoving(t){const e=["move","end"];t?(this.sliderService.isDragging=!0,this.subscribeDrag(e)):(this.sliderService.isDragging=!1,this.unsubscribeDrag(e))}toggleDragDisabled(t){t?this.unsubscribeDrag():this.subscribeDrag(["start"])}findClosestValue(t){const e=gx((t-this.getSliderStartPosition())/this.getSliderLength(),0,1),n=(this.nzMax-this.nzMin)*(this.nzVertical?1-e:e)+this.nzMin,i=null===this.nzMarks?[]:Object.keys(this.nzMarks).map(parseFloat).sort(((t,e)=>t-e));if(0!==this.nzStep&&!this.nzDots){const t=Math.round(n/this.nzStep)*this.nzStep;i.push(t)}const r=i.map((t=>Math.abs(n-t))),a=i[r.indexOf(Math.min(...r))];return 0===this.nzStep?a:parseFloat(a.toFixed(function(t){const e=t.toString(),n=e.indexOf(".");return n>=0?e.length-n-1:0}(this.nzStep)))}valueToOffset(t){return e=this.nzMin,n=this.nzMax,(t-e)/(n-e)*100;var e,n}getSliderStartPosition(){if(null!==this.cacheSliderStart)return this.cacheSliderStart;const t=mx(this.slider.nativeElement);return this.nzVertical?t.top:t.left}getSliderLength(){if(null!==this.cacheSliderLength)return this.cacheSliderLength;const t=this.slider.nativeElement;return this.nzVertical?t.clientHeight:t.clientWidth}cacheSliderProperty(t=!1){this.cacheSliderStart=t?null:this.getSliderStartPosition(),this.cacheSliderLength=t?null:this.getSliderLength()}formatValue(t){return rx(t)?this.nzRange?[this.nzMin,this.nzMax]:this.nzMin:(e=t,n=this.nzRange,!XL(e)&&isNaN(e)||XL(e)&&e.some((t=>isNaN(t)))||!function(t,e=!1){if(XL(t)!==e)throw new Error('The "nzRange" can\'t match the "ngModel"\'s type, please check these properties: "nzRange", "ngModel", "nzDefaultValue".');return!0}(e,n)?this.nzDefaultValue?this.nzDefaultValue:this.nzRange?[this.nzMin,this.nzMax]:this.nzMin:XL(t)?t.map((t=>gx(t,this.nzMin,this.nzMax))):gx(t,this.nzMin,this.nzMax));var e,n}showHandleTooltip(t=0){this.handles.forEach(((e,n)=>{e.active=n===t}))}hideAllHandleTooltip(){this.handles.forEach((t=>t.active=!1))}generateMarkItems(t){const e=[];for(const n in t)if(t.hasOwnProperty(n)){const i=t[n],r="number"==typeof n?n:parseFloat(n);r>=this.nzMin&&r<=this.nzMax&&e.push({value:r,offset:this.valueToOffset(r),config:i})}return e.length?e:null}}return t["ɵfac"]=function(e){return new(e||t)(Zo(WL),Zo(Gl),Zo(bC),Zo(Fx,8))},t["ɵcmp"]=qt({type:t,selectors:[["nz-slider"]],viewQuery:function(t,e){if(1&t&&(Nc(VL,7),Nc(YL,5)),2&t){let t;Vc(t=Gc())&&(e.slider=t.first),Vc(t=Gc())&&(e.handlerComponents=t)}},hostBindings:function(t,e){1&t&&es("keydown",(function(t){return e.onKeyDown(t)}))},inputs:{nzDisabled:"nzDisabled",nzDots:"nzDots",nzIncluded:"nzIncluded",nzRange:"nzRange",nzVertical:"nzVertical",nzReverse:"nzReverse",nzMarks:"nzMarks",nzMax:"nzMax",nzMin:"nzMin",nzStep:"nzStep",nzTooltipVisible:"nzTooltipVisible",nzTooltipPlacement:"nzTooltipPlacement",nzDefaultValue:"nzDefaultValue",nzTipFormatter:"nzTipFormatter"},outputs:{nzOnAfterChange:"nzOnAfterChange"},exportAs:["nzSlider"],features:[hl([{provide:Km,useExisting:ut((()=>t)),multi:!0},WL]),pe],decls:7,vars:17,consts:[[1,"ant-slider"],["slider",""],[1,"ant-slider-rail"],[3,"vertical","included","offset","length","reverse","dir"],[3,"vertical","min","max","lowerBound","upperBound","marksArray","included","reverse",4,"ngIf"],[3,"vertical","reverse","offset","value","active","tooltipFormatter","tooltipVisible","tooltipPlacement","dir","focusin",4,"ngFor","ngForOf"],[3,"vertical","min","max","lowerBound","upperBound","marksArray","included","reverse"],[3,"vertical","reverse","offset","value","active","tooltipFormatter","tooltipVisible","tooltipPlacement","dir","focusin"]],template:function(t,e){1&t&&(Yo(0,"div",0,1),Xo(2,"div",2),Xo(3,"nz-slider-track",3),Ho(4,NL,1,8,"nz-slider-step",4),Ho(5,HL,1,9,"nz-slider-handle",5),Ho(6,GL,1,8,"nz-slider-marks",4),jo()),2&t&&(Cs("ant-slider-rtl","rtl"===e.dir)("ant-slider-disabled",e.nzDisabled)("ant-slider-vertical",e.nzVertical)("ant-slider-with-marks",e.marksArray),sa(3),Uo("vertical",e.nzVertical)("included",e.nzIncluded)("offset",e.track.offset)("length",e.track.length)("reverse",e.nzReverse)("dir",e.dir),sa(1),Uo("ngIf",e.marksArray),sa(1),Uo("ngForOf",e.handles),sa(1),Uo("ngIf",e.marksArray))},directives:function(){return[QL,Bx,Yd,Ud,JL,YL,$L]},encapsulation:2,changeDetection:0}),Bk([hx()],t.prototype,"nzDisabled",void 0),Bk([hx()],t.prototype,"nzDots",void 0),Bk([hx()],t.prototype,"nzIncluded",void 0),Bk([hx()],t.prototype,"nzRange",void 0),Bk([hx()],t.prototype,"nzVertical",void 0),Bk([hx()],t.prototype,"nzReverse",void 0),Bk([dx()],t.prototype,"nzMax",void 0),Bk([dx()],t.prototype,"nzMin",void 0),Bk([dx()],t.prototype,"nzStep",void 0),t})();function XL(t){return t instanceof Array&&2===t.length}function qL(t){return Array(t).fill(0).map((()=>({offset:null,value:null,active:!1})))}let $L=(()=>{class t{constructor(){this.lowerBound=null,this.upperBound=null,this.marksArray=[],this.vertical=!1,this.included=!1,this.marks=[]}ngOnChanges(t){const{marksArray:e,lowerBound:n,upperBound:i,reverse:r}=t;(e||r)&&this.buildMarks(),(e||n||i||r)&&this.togglePointActive()}trackById(t,e){return e.value}buildMarks(){const t=this.max-this.min;this.marks=this.marksArray.map((e=>{const{value:n,offset:i,config:r}=e,a=this.getMarkStyles(n,t,r);return{label:KL(r)?r.label:r,offset:i,style:a,value:n,config:r,active:!1}}))}getMarkStyles(t,e,n){let i;const r=this.reverse?this.max+this.min-t:t;return i=this.vertical?{marginBottom:"-50%",bottom:(r-this.min)/e*100+"%"}:{transform:"translate3d(-50%, 0, 0)",left:(r-this.min)/e*100+"%"},KL(n)&&n.style&&(i=Object.assign(Object.assign({},i),n.style)),i}togglePointActive(){this.marks&&null!==this.lowerBound&&null!==this.upperBound&&this.marks.forEach((t=>{const e=t.value;t.active=!this.included&&e===this.upperBound||this.included&&e<=this.upperBound&&e>=this.lowerBound}))}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵcmp"]=qt({type:t,selectors:[["nz-slider-marks"]],inputs:{lowerBound:"lowerBound",upperBound:"upperBound",marksArray:"marksArray",vertical:"vertical",included:"included",min:"min",max:"max",reverse:"reverse"},exportAs:["nzSliderMarks"],features:[pe],decls:2,vars:2,consts:[[1,"ant-slider-mark"],["class","ant-slider-mark-text",3,"ant-slider-mark-active","ngStyle","innerHTML",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ant-slider-mark-text",3,"ngStyle","innerHTML"]],template:function(t,e){1&t&&(Yo(0,"div",0),Ho(1,ZL,1,4,"span",1),jo()),2&t&&(sa(1),Uo("ngForOf",e.marks)("ngForTrackBy",e.trackById))},directives:[Ud,Qd],encapsulation:2,changeDetection:0}),Bk([hx()],t.prototype,"vertical",void 0),Bk([hx()],t.prototype,"included",void 0),t})();function KL(t){return"string"!=typeof t}let JL=(()=>{class t{constructor(){this.lowerBound=null,this.upperBound=null,this.marksArray=[],this.vertical=!1,this.included=!1,this.steps=[]}ngOnChanges(t){const{marksArray:e,lowerBound:n,upperBound:i,reverse:r}=t;(e||r)&&this.buildSteps(),(e||n||i||r)&&this.togglePointActive()}trackById(t,e){return e.value}buildSteps(){const t=this.vertical?"bottom":"left";this.steps=this.marksArray.map((e=>{const{value:n,config:i}=e;let r=e.offset;return this.reverse&&(r=(this.max-n)/(this.max-this.min)*100),{value:n,offset:r,config:i,active:!1,style:{[t]:r+"%"}}}))}togglePointActive(){this.steps&&null!==this.lowerBound&&null!==this.upperBound&&this.steps.forEach((t=>{const e=t.value;t.active=!this.included&&e===this.upperBound||this.included&&e<=this.upperBound&&e>=this.lowerBound}))}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵcmp"]=qt({type:t,selectors:[["nz-slider-step"]],inputs:{lowerBound:"lowerBound",upperBound:"upperBound",marksArray:"marksArray",vertical:"vertical",included:"included",min:"min",max:"max",reverse:"reverse"},exportAs:["nzSliderStep"],features:[pe],decls:2,vars:2,consts:[[1,"ant-slider-step"],["class","ant-slider-dot",3,"ant-slider-dot-active","ngStyle",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ant-slider-dot",3,"ngStyle"]],template:function(t,e){1&t&&(Yo(0,"div",0),Ho(1,UL,1,3,"span",1),jo()),2&t&&(sa(1),Uo("ngForOf",e.steps)("ngForTrackBy",e.trackById))},directives:[Ud,Qd],encapsulation:2,changeDetection:0}),Bk([hx()],t.prototype,"vertical",void 0),Bk([hx()],t.prototype,"included",void 0),t})(),QL=(()=>{class t{constructor(){this.offset=0,this.reverse=!1,this.dir="ltr",this.length=0,this.vertical=!1,this.included=!1,this.style={}}ngOnChanges(){const t=this.reverse,e=this.included?"visible":"hidden",n=this.length,i=this.vertical?{[t?"top":"bottom"]:this.offset+"%",[t?"bottom":"top"]:"auto",height:n+"%",visibility:e}:Object.assign(Object.assign({},this.getHorizontalStylePosition()),{width:n+"%",visibility:e});this.style=i}getHorizontalStylePosition(){let t=this.reverse?"auto":this.offset+"%",e=this.reverse?this.offset+"%":"auto";if("rtl"===this.dir){const n=t;t=e,e=n}return{left:t,right:e}}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵcmp"]=qt({type:t,selectors:[["nz-slider-track"]],inputs:{offset:"offset",reverse:"reverse",dir:"dir",length:"length",vertical:"vertical",included:"included"},exportAs:["nzSliderTrack"],features:[pe],decls:1,vars:1,consts:[[1,"ant-slider-track",3,"ngStyle"]],template:function(t,e){1&t&&Xo(0,"div",0),2&t&&Uo("ngStyle",e.style)},directives:[Qd],encapsulation:2,changeDetection:0}),Bk([dx()],t.prototype,"offset",void 0),Bk([hx()],t.prototype,"reverse",void 0),Bk([dx()],t.prototype,"length",void 0),Bk([hx()],t.prototype,"vertical",void 0),Bk([hx()],t.prototype,"included",void 0),t})(),tz=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({imports:[[Vx,nu,yC,$T]]}),t})(),ez=(()=>{class t{create(t){return"undefined"==typeof ResizeObserver?null:new ResizeObserver(t)}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵprov"]=vt({factory:function(){return new t},token:t,providedIn:"root"}),t})(),nz=(()=>{class t{constructor(t){this.nzResizeObserverFactory=t,this.observedElements=new Map}ngOnDestroy(){this.observedElements.forEach(((t,e)=>this.cleanupObserver(e)))}observe(t){const e=ex(t);return new _((t=>{const n=this.observeElement(e).subscribe(t);return()=>{n.unsubscribe(),this.unobserveElement(e)}}))}observeElement(t){if(this.observedElements.has(t))this.observedElements.get(t).count++;else{const e=new A,n=this.nzResizeObserverFactory.create((t=>e.next(t)));n&&n.observe(t),this.observedElements.set(t,{observer:n,stream:e,count:1})}return this.observedElements.get(t).stream}unobserveElement(t){this.observedElements.has(t)&&(this.observedElements.get(t).count--,this.observedElements.get(t).count||this.cleanupObserver(t))}cleanupObserver(t){if(this.observedElements.has(t)){const{observer:e,stream:n}=this.observedElements.get(t);e&&e.disconnect(),n.complete(),this.observedElements.delete(t)}}}return t["ɵfac"]=function(e){return new(e||t)(wi(ez))},t["ɵprov"]=vt({factory:function(){return new t(wi(ez))},token:t,providedIn:"root"}),t})();function iz(t,e){if(1&t&&(qo(0),Xo(1,"i",1),$o()),2&t){const t=e.$implicit;sa(1),Uo("nzType",t)}}function rz(t,e){if(1&t&&(qo(0),Bs(1),$o()),2&t){const t=os().$implicit;sa(1),Ns(" ",t.tab.label," ")}}const az=function(){return{visible:!1}};function oz(t,e){if(1&t){const t=Jo();Yo(0,"li",8),es("click",(function(){const e=Ne(t).$implicit;return os(2).onSelect(e)}))("contextmenu",(function(e){const n=Ne(t).$implicit;return os(2).onContextmenu(n,e)})),Ho(1,rz,2,1,"ng-container",9),jo()}if(2&t){const t=e.$implicit;Cs("ant-tabs-dropdown-menu-item-disabled",t.disabled),Uo("nzSelected",t.active)("nzDisabled",t.disabled),sa(1),Uo("nzStringTemplateOutlet",t.tab.label)("nzStringTemplateOutletContext",gc(6,az))}}function sz(t,e){if(1&t&&(Yo(0,"ul",6),Ho(1,oz,2,7,"li",7),jo()),2&t){const t=os();sa(1),Uo("ngForOf",t.items)}}function lz(t,e){if(1&t){const t=Jo();Yo(0,"button",10),es("click",(function(){return Ne(t),os().addClicked.emit()})),jo()}2&t&&Uo("addIcon",os().addIcon)}const cz=function(){return{minWidth:"46px"}},hz=["navWarp"],dz=["navList"];function uz(t,e){if(1&t){const t=Jo();Yo(0,"button",8),es("click",(function(){return Ne(t),os().addClicked.emit()})),jo()}2&t&&Uo("addIcon",os().addIcon)}function mz(t,e){}function pz(t,e){if(1&t&&(Yo(0,"div",9),Ho(1,mz,0,0,"ng-template",10),jo()),2&t){const t=os();sa(1),Uo("ngTemplateOutlet",t.extraTemplate)}}const gz=["*"],fz=["nz-tab-body",""];function bz(t,e){}function yz(t,e){if(1&t&&(qo(0),Ho(1,bz,0,0,"ng-template",1),$o()),2&t){const t=os();sa(1),Uo("ngTemplateOutlet",t.content)}}function vz(t,e){if(1&t&&(qo(0),Xo(1,"i",1),$o()),2&t){const t=e.$implicit;sa(1),Uo("nzType",t)}}const wz=["contentTemplate"];function xz(t,e){1&t&&cs(0)}function Cz(t,e){1&t&&cs(0,1)}const kz=[[["","nz-tab-link",""]],"*"],Sz=["[nz-tab-link]","*"];function Pz(t,e){if(1&t&&(qo(0),Bs(1),$o()),2&t){const t=os().$implicit;sa(1),Vs(t.label)}}function _z(t,e){if(1&t){const t=Jo();Yo(0,"button",10),es("click",(function(e){Ne(t);const n=os().index;return os(2).onClose(n,e)})),jo()}2&t&&Uo("closeIcon",os().$implicit.nzCloseIcon)}const Mz=function(){return{visible:!0}};function Dz(t,e){if(1&t){const t=Jo();Yo(0,"div",6),es("click",(function(e){const n=Ne(t),i=n.$implicit,r=n.index;return os(2).clickNavItem(i,r,e)}))("contextmenu",(function(e){const n=Ne(t).$implicit;return os(2).contextmenuNavItem(n,e)})),Yo(1,"div",7),Ho(2,Pz,2,1,"ng-container",8),Ho(3,_z,1,1,"button",9),jo(),jo()}if(2&t){const t=e.$implicit,n=e.index,i=os(2);xs("margin-right","horizontal"===i.position?i.nzTabBarGutter:null,"px")("margin-bottom","vertical"===i.position?i.nzTabBarGutter:null,"px"),Cs("ant-tabs-tab-active",i.nzSelectedIndex===n)("ant-tabs-tab-disabled",t.nzDisabled),sa(1),Uo("disabled",t.nzDisabled)("tab",t)("active",i.nzSelectedIndex===n),Fo("tabIndex",i.getTabIndex(t,n))("aria-disabled",t.nzDisabled)("aria-selected",i.nzSelectedIndex===n&&!i.nzHideAll)("aria-controls",i.getTabContentId(n)),sa(1),Uo("nzStringTemplateOutlet",t.label)("nzStringTemplateOutletContext",gc(18,Mz)),sa(1),Uo("ngIf",t.nzClosable&&i.closable&&!t.nzDisabled)}}function Ez(t,e){if(1&t){const t=Jo();Yo(0,"nz-tabs-nav",4),es("tabScroll",(function(e){return Ne(t),os().nzTabListScroll.emit(e)}))("selectFocusedIndex",(function(e){return Ne(t),os().setSelectedIndex(e)}))("addClicked",(function(){return Ne(t),os().onAdd()})),Ho(1,Dz,4,19,"div",5),jo()}if(2&t){const t=os();Uo("ngStyle",t.nzTabBarStyle)("selectedIndex",t.nzSelectedIndex||0)("inkBarAnimated",t.inkBarAnimated)("addable",t.addable)("addIcon",t.nzAddIcon)("hideBar",t.nzHideAll)("position",t.position)("extraTemplate",t.nzTabBarExtraContent),sa(1),Uo("ngForOf",t.tabs)}}function Oz(t,e){if(1&t&&Xo(0,"div",11),2&t){const t=e.$implicit,n=e.index,i=os();Uo("active",i.nzSelectedIndex===n&&!i.nzHideAll)("content",t.content)("forceRender",t.nzForceRender)("tabPaneAnimated",i.tabPaneAnimated)}}let Az=(()=>{class t{constructor(t){this.elementRef=t,this.addIcon="plus",this.element=this.elementRef.nativeElement}getElementWidth(){var t;return(null===(t=this.element)||void 0===t?void 0:t.offsetWidth)||0}getElementHeight(){var t;return(null===(t=this.element)||void 0===t?void 0:t.offsetHeight)||0}}return t["ɵfac"]=function(e){return new(e||t)(Zo(bl))},t["ɵcmp"]=qt({type:t,selectors:[["nz-tab-add-button"],["button","nz-tab-add-button",""]],hostAttrs:["aria-label","Add tab","type","button",1,"ant-tabs-nav-add"],inputs:{addIcon:"addIcon"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"],["nz-icon","","nzTheme","outline",3,"nzType"]],template:function(t,e){1&t&&Ho(0,iz,2,1,"ng-container",0),2&t&&Uo("nzStringTemplateOutlet",e.addIcon)},directives:[Uk,eP],encapsulation:2}),t})(),Tz=(()=>{class t{constructor(t,e,n){this.elementRef=t,this.ngZone=e,this.animationMode=n,this.position="horizontal",this.animated=!0}get _animated(){return"NoopAnimations"!==this.animationMode&&this.animated}alignToElement(t){this.ngZone.runOutsideAngular((()=>{pI((()=>this.setStyles(t)))}))}setStyles(t){const e=this.elementRef.nativeElement;"horizontal"===this.position?(e.style.top="",e.style.height="",e.style.left=this.getLeftPosition(t),e.style.width=this.getElementWidth(t)):(e.style.left="",e.style.width="",e.style.top=this.getTopPosition(t),e.style.height=this.getElementHeight(t))}getLeftPosition(t){return t?(t.offsetLeft||0)+"px":"0"}getElementWidth(t){return t?(t.offsetWidth||0)+"px":"0"}getTopPosition(t){return t?(t.offsetTop||0)+"px":"0"}getElementHeight(t){return t?(t.offsetHeight||0)+"px":"0"}}return t["ɵfac"]=function(e){return new(e||t)(Zo(bl),Zo(ph),Zo(Eb,8))},t["ɵdir"]=ne({type:t,selectors:[["nz-tabs-ink-bar"],["","nz-tabs-ink-bar",""]],hostAttrs:[1,"ant-tabs-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&Cs("ant-tabs-ink-bar-animated",e._animated)},inputs:{position:"position",animated:"animated"}}),t})(),Iz=(()=>{class t{constructor(t){this.elementRef=t,this.disabled=!1,this.active=!1,this.el=t.nativeElement,this.parentElement=this.el.parentElement}focus(){this.el.focus()}get width(){return this.parentElement.offsetWidth}get height(){return this.parentElement.offsetHeight}get left(){return this.parentElement.offsetLeft}get top(){return this.parentElement.offsetTop}}return t["ɵfac"]=function(e){return new(e||t)(Zo(bl))},t["ɵdir"]=ne({type:t,selectors:[["","nzTabNavItem",""]],inputs:{disabled:"disabled",active:"active",tab:"tab"}}),t})(),Lz=(()=>{class t{constructor(t,e){this.cdr=t,this.elementRef=e,this.items=[],this.addable=!1,this.addIcon="plus",this.addClicked=new Dc,this.selected=new Dc,this.closeAnimationWaitTimeoutId=-1,this.menuOpened=!1,this.element=this.elementRef.nativeElement}onSelect(t){t.disabled||(t.tab.nzClick.emit(),this.selected.emit(t))}onContextmenu(t,e){t.disabled||t.tab.nzContextmenu.emit(e)}showItems(){clearTimeout(this.closeAnimationWaitTimeoutId),this.menuOpened=!0,this.cdr.markForCheck()}menuVisChange(t){t||(this.closeAnimationWaitTimeoutId=setTimeout((()=>{this.menuOpened=!1,this.cdr.markForCheck()}),150))}getElementWidth(){var t;return(null===(t=this.element)||void 0===t?void 0:t.offsetWidth)||0}getElementHeight(){var t;return(null===(t=this.element)||void 0===t?void 0:t.offsetHeight)||0}ngOnDestroy(){clearTimeout(this.closeAnimationWaitTimeoutId)}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Gl),Zo(bl))},t["ɵcmp"]=qt({type:t,selectors:[["nz-tab-nav-operation"]],hostAttrs:[1,"ant-tabs-nav-operations"],hostVars:2,hostBindings:function(t,e){2&t&&Cs("ant-tabs-nav-operations-hidden",0===e.items.length)},inputs:{items:"items",addable:"addable",addIcon:"addIcon"},outputs:{addClicked:"addClicked",selected:"selected"},exportAs:["nzTabNavOperation"],decls:7,vars:6,consts:[["nz-dropdown","","type","button","tabindex","-1","aria-hidden","true","nzOverlayClassName","nz-tabs-dropdown",1,"ant-tabs-nav-more",3,"nzDropdownMenu","nzOverlayStyle","nzMatchWidthElement","nzVisibleChange","mouseenter"],["dropdownTrigger","nzDropdown"],["nz-icon","","nzType","ellipsis"],["menu","nzDropdownMenu"],["nz-menu","",4,"ngIf"],["nz-tab-add-button","",3,"addIcon","click",4,"ngIf"],["nz-menu",""],["nz-menu-item","","class","ant-tabs-dropdown-menu-item",3,"ant-tabs-dropdown-menu-item-disabled","nzSelected","nzDisabled","click","contextmenu",4,"ngFor","ngForOf"],["nz-menu-item","",1,"ant-tabs-dropdown-menu-item",3,"nzSelected","nzDisabled","click","contextmenu"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["nz-tab-add-button","",3,"addIcon","click"]],template:function(t,e){1&t&&(Yo(0,"button",0,1),es("nzVisibleChange",(function(t){return e.menuVisChange(t)}))("mouseenter",(function(){return e.showItems()})),Xo(2,"i",2),jo(),Yo(3,"nz-dropdown-menu",null,3),Ho(5,sz,2,1,"ul",4),jo(),Ho(6,lz,1,1,"button",5)),2&t&&(Uo("nzDropdownMenu",Go(4))("nzOverlayStyle",gc(5,cz))("nzMatchWidthElement",null),sa(5),Uo("ngIf",e.menuOpened),sa(1),Uo("ngIf",e.addable))},directives:[gA,eP,bA,Yd,oA,Ud,tA,Uk,Az],encapsulation:2,changeDetection:0}),t})();const zz="undefined"!=typeof requestAnimationFrame?Gx:Xx;let Rz=(()=>{class t{constructor(t,e,n,i,r){this.cdr=t,this.ngZone=e,this.viewportRuler=n,this.nzResizeObserver=i,this.dir=r,this.indexFocused=new Dc,this.selectFocusedIndex=new Dc,this.addClicked=new Dc,this.tabScroll=new Dc,this.position="horizontal",this.addable=!1,this.hideBar=!1,this.addIcon="plus",this.inkBarAnimated=!0,this.translate=null,this.transformX=0,this.transformY=0,this.pingLeft=!1,this.pingRight=!1,this.pingTop=!1,this.pingBottom=!1,this.hiddenItems=[],this.destroy$=new A,this._selectedIndex=0,this.wrapperWidth=0,this.wrapperHeight=0,this.scrollListWidth=0,this.scrollListHeight=0,this.operationWidth=0,this.operationHeight=0,this.addButtonWidth=0,this.addButtonHeight=0,this.selectedIndexChanged=!1,this.lockAnimationTimeoutId=-1,this.cssTransformTimeWaitingId=-1}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){const e=Kw(t);this._selectedIndex!==e&&(this._selectedIndex=t,this.selectedIndexChanged=!0,this.keyManager&&this.keyManager.updateActiveItem(t))}get focusIndex(){return this.keyManager?this.keyManager.activeItemIndex:0}set focusIndex(t){!this.isValidIndex(t)||this.focusIndex===t||!this.keyManager||this.keyManager.setActiveItem(t)}get showAddButton(){return 0===this.hiddenItems.length&&this.addable}ngAfterViewInit(){const t=this.dir?this.dir.change:Uu(null),e=this.viewportRuler.change(150),n=()=>{this.updateScrollListPosition(),this.alignInkBarToSelectedTab()};this.keyManager=new hP(this.items).withHorizontalOrientation(this.getLayoutDirection()).withWrap(),this.keyManager.updateActiveItem(this.selectedIndex),pI(n),J(this.nzResizeObserver.observe(this.navWarpRef),this.nzResizeObserver.observe(this.navListRef)).pipe(aC(this.destroy$),rC(16,zz)).subscribe((()=>{n()})),J(t,e,this.items.changes).pipe(aC(this.destroy$)).subscribe((()=>{Promise.resolve().then(n),this.keyManager.withHorizontalOrientation(this.getLayoutDirection())})),this.keyManager.change.pipe(aC(this.destroy$)).subscribe((t=>{this.indexFocused.emit(t),this.setTabFocus(t),this.scrollToTab(this.keyManager.activeItem)}))}ngAfterContentChecked(){this.selectedIndexChanged&&(this.updateScrollListPosition(),this.alignInkBarToSelectedTab(),this.selectedIndexChanged=!1,this.cdr.markForCheck())}ngOnDestroy(){clearTimeout(this.lockAnimationTimeoutId),clearTimeout(this.cssTransformTimeWaitingId),this.destroy$.next(),this.destroy$.complete()}onSelectedFromMenu(t){const e=this.items.toArray().findIndex((e=>e===t));-1!==e&&(this.keyManager.updateActiveItem(e),this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this.scrollToTab(t)))}onOffsetChange(t){if("horizontal"===this.position){if(-1===this.lockAnimationTimeoutId&&(this.transformX>=0&&t.x>0||this.transformX<=this.wrapperWidth-this.scrollListWidth&&t.x<0))return;t.event.preventDefault(),this.transformX=this.clampTransformX(this.transformX+t.x),this.setTransform(this.transformX,0)}else{if(-1===this.lockAnimationTimeoutId&&(this.transformY>=0&&t.y>0||this.transformY<=this.wrapperHeight-this.scrollListHeight&&t.y<0))return;t.event.preventDefault(),this.transformY=this.clampTransformY(this.transformY+t.y),this.setTransform(0,this.transformY)}this.lockAnimation(),this.setVisibleRange(),this.setPingStatus()}handleKeydown(t){const e=this.navWarpRef.nativeElement.contains(t.target);if(!ik(t)&&e)switch(t.keyCode){case 37:case 38:case 39:case 40:this.lockAnimation(),this.keyManager.onKeydown(t);break;case 13:case 32:this.focusIndex!==this.selectedIndex&&this.selectFocusedIndex.emit(this.focusIndex);break;default:this.keyManager.onKeydown(t)}}isValidIndex(t){if(!this.items)return!0;const e=this.items?this.items.toArray()[t]:null;return!!e&&!e.disabled}scrollToTab(t){if(!this.items.find((e=>e===t)))return;const e=this.items.toArray();if("horizontal"===this.position){let n=this.transformX;if("rtl"===this.getLayoutDirection()){const i=e[0].left+e[0].width-t.left-t.width;i<this.transformX?n=i:i+t.width>this.transformX+this.wrapperWidth&&(n=i+t.width-this.wrapperWidth)}else t.left<-this.transformX?n=-t.left:t.left+t.width>-this.transformX+this.wrapperWidth&&(n=-(t.left+t.width-this.wrapperWidth));this.transformX=n,this.transformY=0,this.setTransform(n,0)}else{let e=this.transformY;t.top<-this.transformY?e=-t.top:t.top+t.height>-this.transformY+this.wrapperHeight&&(e=-(t.top+t.height-this.wrapperHeight)),this.transformY=e,this.transformX=0,this.setTransform(0,e)}clearTimeout(this.cssTransformTimeWaitingId),this.cssTransformTimeWaitingId=setTimeout((()=>{this.setVisibleRange()}),150)}lockAnimation(){-1===this.lockAnimationTimeoutId&&this.ngZone.runOutsideAngular((()=>{this.navListRef.nativeElement.style.transition="none",this.lockAnimationTimeoutId=setTimeout((()=>{this.navListRef.nativeElement.style.transition="",this.lockAnimationTimeoutId=-1}),150)}))}setTransform(t,e){this.navListRef.nativeElement.style.transform="translate("+t+"px, "+e+"px)"}clampTransformX(t){const e=this.wrapperWidth-this.scrollListWidth;return"rtl"===this.getLayoutDirection()?Math.max(Math.min(e,t),0):Math.min(Math.max(e,t),0)}clampTransformY(t){return Math.min(Math.max(this.wrapperHeight-this.scrollListHeight,t),0)}updateScrollListPosition(){this.resetSizes(),this.transformX=this.clampTransformX(this.transformX),this.transformY=this.clampTransformY(this.transformY),this.setVisibleRange(),this.setPingStatus(),this.keyManager&&(this.keyManager.updateActiveItem(this.keyManager.activeItemIndex),this.keyManager.activeItem&&this.scrollToTab(this.keyManager.activeItem))}resetSizes(){this.addButtonWidth=this.addBtnRef?this.addBtnRef.getElementWidth():0,this.addButtonHeight=this.addBtnRef?this.addBtnRef.getElementHeight():0,this.operationWidth=this.operationRef.getElementWidth(),this.operationHeight=this.operationRef.getElementHeight(),this.wrapperWidth=this.navWarpRef.nativeElement.offsetWidth||0,this.wrapperHeight=this.navWarpRef.nativeElement.offsetHeight||0,this.scrollListHeight=this.navListRef.nativeElement.offsetHeight||0,this.scrollListWidth=this.navListRef.nativeElement.offsetWidth||0}alignInkBarToSelectedTab(){const t=this.items&&this.items.length?this.items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e&&this.inkBar.alignToElement(e.parentElement)}setPingStatus(){const t={top:!1,right:!1,bottom:!1,left:!1},e=this.navWarpRef.nativeElement;"horizontal"===this.position?"rtl"===this.getLayoutDirection()?(t.right=this.transformX>0,t.left=this.transformX+this.wrapperWidth<this.scrollListWidth):(t.left=this.transformX<0,t.right=-this.transformX+this.wrapperWidth<this.scrollListWidth):(t.top=this.transformY<0,t.bottom=-this.transformY+this.wrapperHeight<this.scrollListHeight),Object.keys(t).forEach((n=>{const i="ant-tabs-nav-wrap-ping-"+n;t[n]?e.classList.add(i):e.classList.remove(i)}))}setVisibleRange(){let t,e,n,i,r,a;const o=this.items.toArray(),s={width:0,height:0,left:0,top:0,right:0},l=t=>{let n;return n="right"===e?o[0].left+o[0].width-o[t].left-o[t].width:(o[t]||s)[e],n};"horizontal"===this.position?(t="width",i=this.wrapperWidth,r=this.scrollListWidth-(this.hiddenItems.length?this.operationWidth:0),a=this.addButtonWidth,n=Math.abs(this.transformX),"rtl"===this.getLayoutDirection()?(e="right",this.pingRight=this.transformX>0,this.pingLeft=this.transformX+this.wrapperWidth<this.scrollListWidth):(this.pingLeft=this.transformX<0,this.pingRight=-this.transformX+this.wrapperWidth<this.scrollListWidth,e="left")):(t="height",i=this.wrapperHeight,r=this.scrollListHeight-(this.hiddenItems.length?this.operationHeight:0),a=this.addButtonHeight,e="top",n=-this.transformY,this.pingTop=this.transformY<0,this.pingBottom=-this.transformY+this.wrapperHeight<this.scrollListHeight);let c=i;if(r+a>i&&(c=i-a),!o.length)return this.hiddenItems=[],void this.cdr.markForCheck();const h=o.length;let d=h;for(let e=0;e<h;e+=1)if(l(e)+(o[e]||s)[t]>n+c){d=e-1;break}let u=0;for(let t=h-1;t>=0;t-=1)if(l(t)<n){u=t+1;break}const m=o.slice(0,u),p=o.slice(d+1);this.hiddenItems=[...m,...p],this.cdr.markForCheck()}getLayoutDirection(){return this.dir&&"rtl"===this.dir.value?"rtl":"ltr"}setTabFocus(t){}ngOnChanges(t){const{position:e}=t;e&&!e.isFirstChange()&&(this.alignInkBarToSelectedTab(),this.lockAnimation(),this.updateScrollListPosition())}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Gl),Zo(ph),Zo(RC),Zo(nz),Zo(Fx,8))},t["ɵcmp"]=qt({type:t,selectors:[["nz-tabs-nav"]],contentQueries:function(t,e,n){if(1&t&&Hc(n,Iz,5),2&t){let t;Vc(t=Gc())&&(e.items=t)}},viewQuery:function(t,e){if(1&t&&(Nc(hz,7),Nc(dz,7),Nc(Lz,7),Nc(Az,5),Nc(Tz,7)),2&t){let t;Vc(t=Gc())&&(e.navWarpRef=t.first),Vc(t=Gc())&&(e.navListRef=t.first),Vc(t=Gc())&&(e.operationRef=t.first),Vc(t=Gc())&&(e.addBtnRef=t.first),Vc(t=Gc())&&(e.inkBar=t.first)}},hostAttrs:["role","tablist",1,"ant-tabs-nav"],hostBindings:function(t,e){1&t&&es("keydown",(function(t){return e.handleKeydown(t)}))},inputs:{position:"position",addable:"addable",hideBar:"hideBar",addIcon:"addIcon",inkBarAnimated:"inkBarAnimated",selectedIndex:"selectedIndex",extraTemplate:"extraTemplate"},outputs:{indexFocused:"indexFocused",selectFocusedIndex:"selectFocusedIndex",addClicked:"addClicked",tabScroll:"tabScroll"},exportAs:["nzTabsNav"],features:[pe],ngContentSelectors:gz,decls:9,vars:16,consts:[[1,"ant-tabs-nav-wrap"],["navWarp",""],["nzTabScrollList","",1,"ant-tabs-nav-list",3,"offsetChange","tabScroll"],["navList",""],["nz-tab-add-button","",3,"addIcon","click",4,"ngIf"],["nz-tabs-ink-bar","",3,"hidden","position","animated"],[3,"addIcon","addable","items","addClicked","selected"],["class","ant-tabs-extra-content",4,"ngIf"],["nz-tab-add-button","",3,"addIcon","click"],[1,"ant-tabs-extra-content"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&(ls(),Yo(0,"div",0,1),Yo(2,"div",2,3),es("offsetChange",(function(t){return e.onOffsetChange(t)}))("tabScroll",(function(t){return e.tabScroll.emit(t)})),cs(4),Ho(5,uz,1,1,"button",4),Xo(6,"div",5),jo(),jo(),Yo(7,"nz-tab-nav-operation",6),es("addClicked",(function(){return e.addClicked.emit()}))("selected",(function(t){return e.onSelectedFromMenu(t)})),jo(),Ho(8,pz,2,1,"div",7)),2&t&&(Cs("ant-tabs-nav-wrap-ping-left",e.pingLeft)("ant-tabs-nav-wrap-ping-right",e.pingRight)("ant-tabs-nav-wrap-ping-top",e.pingTop)("ant-tabs-nav-wrap-ping-bottom",e.pingBottom),sa(5),Uo("ngIf",e.showAddButton),sa(1),Uo("hidden",e.hideBar)("position",e.position)("animated",e.inkBarAnimated),sa(1),Uo("addIcon",e.addIcon)("addable",e.addable)("items",e.hiddenItems),sa(1),Uo("ngIf",e.extraTemplate))},directives:function(){return[Vz,Yd,Tz,Lz,Az,tu]},encapsulation:2,changeDetection:0}),t})(),Fz=(()=>{class t{constructor(){this.content=null,this.active=!1,this.tabPaneAnimated=!0,this.forceRender=!1}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵcmp"]=qt({type:t,selectors:[["","nz-tab-body",""]],hostAttrs:[1,"ant-tabs-tabpane"],hostVars:12,hostBindings:function(t,e){2&t&&(Fo("tabindex",e.active?0:-1)("aria-hidden",!e.active),xs("visibility",e.tabPaneAnimated?e.active?null:"hidden":null)("height",e.tabPaneAnimated?e.active?null:0:null)("overflow-y",e.tabPaneAnimated?e.active?null:"none":null)("display",e.tabPaneAnimated||e.active?null:"none"),Cs("ant-tabs-tabpane-active",e.active))},inputs:{content:"content",active:"active",tabPaneAnimated:"tabPaneAnimated",forceRender:"forceRender"},exportAs:["nzTabBody"],attrs:fz,decls:1,vars:1,consts:[[4,"ngIf"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&Ho(0,yz,2,1,"ng-container",0),2&t&&Uo("ngIf",e.active||e.forceRender)},directives:[Yd,tu],encapsulation:2,changeDetection:0}),t})();const Bz=Math.pow(.995,20);let Vz=(()=>{class t{constructor(t,e){this.ngZone=t,this.elementRef=e,this.lastWheelDirection=null,this.lastWheelTimestamp=0,this.lastTimestamp=0,this.lastTimeDiff=0,this.lastMixedWheel=0,this.lastWheelPrevent=!1,this.touchPosition=null,this.lastOffset=null,this.motion=-1,this.unsubscribe=()=>{},this.offsetChange=new Dc,this.tabScroll=new Dc,this.onTouchEnd=t=>{if(!this.touchPosition)return;const e=this.lastOffset,n=this.lastTimeDiff;if(this.lastOffset=this.touchPosition=null,e){const i=e.x/n,r=e.y/n,a=Math.abs(i),o=Math.abs(r);if(Math.max(a,o)<.1)return;let s=i,l=r;this.motion=window.setInterval((()=>{Math.abs(s)<.01&&Math.abs(l)<.01?window.clearInterval(this.motion):(s*=Bz,l*=Bz,this.onOffset(20*s,20*l,t))}),20)}},this.onTouchMove=t=>{if(!this.touchPosition)return;t.preventDefault();const{screenX:e,screenY:n}=t.touches[0],i=e-this.touchPosition.x,r=n-this.touchPosition.y;this.onOffset(i,r,t);const a=Date.now();this.lastTimeDiff=a-this.lastTimestamp,this.lastTimestamp=a,this.lastOffset={x:i,y:r},this.touchPosition={x:e,y:n}},this.onTouchStart=t=>{const{screenX:e,screenY:n}=t.touches[0];this.touchPosition={x:e,y:n},window.clearInterval(this.motion)},this.onWheel=t=>{const{deltaX:e,deltaY:n}=t;let i;const r=Math.abs(e),a=Math.abs(n);r===a?i="x"===this.lastWheelDirection?e:n:r>a?(i=e,this.lastWheelDirection="x"):(i=n,this.lastWheelDirection="y");const o=Date.now(),s=Math.abs(i);(o-this.lastWheelTimestamp>100||s-this.lastMixedWheel>10)&&(this.lastWheelPrevent=!1),this.onOffset(-i,-i,t),(t.defaultPrevented||this.lastWheelPrevent)&&(this.lastWheelPrevent=!0),this.lastWheelTimestamp=o,this.lastMixedWheel=s}}ngOnInit(){this.unsubscribe=this.ngZone.runOutsideAngular((()=>{const t=this.elementRef.nativeElement,e=Nx(t,"wheel"),n=Nx(t,"touchstart"),i=Nx(t,"touchmove"),r=Nx(t,"touchend"),a=new y;return a.add(this.subscribeWrap("wheel",e,this.onWheel)),a.add(this.subscribeWrap("touchstart",n,this.onTouchStart)),a.add(this.subscribeWrap("touchmove",i,this.onTouchMove)),a.add(this.subscribeWrap("touchend",r,this.onTouchEnd)),()=>{a.unsubscribe()}}))}subscribeWrap(t,e,n){return e.subscribe((e=>{this.tabScroll.emit({type:t,event:e}),e.defaultPrevented||n(e)}))}onOffset(t,e,n){this.ngZone.run((()=>{this.offsetChange.emit({x:t,y:e,event:n})}))}ngOnDestroy(){this.unsubscribe()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(ph),Zo(bl))},t["ɵdir"]=ne({type:t,selectors:[["","nzTabScrollList",""]],outputs:{offsetChange:"offsetChange",tabScroll:"tabScroll"}}),t})(),Nz=(()=>{class t{constructor(){this.closeIcon="close"}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵcmp"]=qt({type:t,selectors:[["nz-tab-close-button"],["button","nz-tab-close-button",""]],hostAttrs:["aria-label","Close tab","type","button",1,"ant-tabs-tab-remove"],inputs:{closeIcon:"closeIcon"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"],["nz-icon","","nzTheme","outline",3,"nzType"]],template:function(t,e){1&t&&Ho(0,vz,2,1,"ng-container",0),2&t&&Uo("nzStringTemplateOutlet",e.closeIcon)},directives:[Uk,eP],encapsulation:2}),t})(),Hz=(()=>{class t{constructor(t){this.templateRef=t}}return t["ɵfac"]=function(e){return new(e||t)(Zo(jl,1))},t["ɵdir"]=ne({type:t,selectors:[["ng-template","nzTabLink",""]],exportAs:["nzTabLinkTemplate"]}),t})(),Gz=(()=>{class t{constructor(t,e,n){this.elementRef=t,this.routerLink=e,this.routerLinkWithHref=n}}return t["ɵfac"]=function(e){return new(e||t)(Zo(bl),Zo(PO,10),Zo(_O,10))},t["ɵdir"]=ne({type:t,selectors:[["a","nz-tab-link",""]],exportAs:["nzTabLink"]}),t})(),Zz=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵdir"]=ne({type:t,selectors:[["","nz-tab",""]],exportAs:["nzTab"]}),t})();const Uz=new ni("NZ_TAB_SET");let Wz=(()=>{class t{constructor(t){this.closestTabSet=t,this.nzTitle="",this.nzClosable=!1,this.nzCloseIcon="close",this.nzDisabled=!1,this.nzForceRender=!1,this.nzSelect=new Dc,this.nzDeselect=new Dc,this.nzClick=new Dc,this.nzContextmenu=new Dc,this.template=null,this.isActive=!1,this.position=null,this.origin=null,this.stateChanges=new A}get content(){return this.template||this.contentTemplate}get label(){var t;return this.nzTitle||(null===(t=this.nzTabLinkTemplateDirective)||void 0===t?void 0:t.templateRef)}ngOnChanges(t){const{nzTitle:e,nzDisabled:n,nzForceRender:i}=t;(e||n||i)&&this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Uz))},t["ɵcmp"]=qt({type:t,selectors:[["nz-tab"]],contentQueries:function(t,e,n){if(1&t&&(Hc(n,Zz,5,jl),Hc(n,Hz,5),Hc(n,Gz,5)),2&t){let t;Vc(t=Gc())&&(e.template=t.first),Vc(t=Gc())&&(e.nzTabLinkTemplateDirective=t.first),Vc(t=Gc())&&(e.linkDirective=t.first)}},viewQuery:function(t,e){if(1&t&&Nc(wz,7),2&t){let t;Vc(t=Gc())&&(e.contentTemplate=t.first)}},inputs:{nzTitle:"nzTitle",nzClosable:"nzClosable",nzCloseIcon:"nzCloseIcon",nzDisabled:"nzDisabled",nzForceRender:"nzForceRender"},outputs:{nzSelect:"nzSelect",nzDeselect:"nzDeselect",nzClick:"nzClick",nzContextmenu:"nzContextmenu"},exportAs:["nzTab"],features:[pe],ngContentSelectors:Sz,decls:4,vars:0,consts:[["tabLinkTemplate",""],["contentTemplate",""]],template:function(t,e){1&t&&(ls(kz),Ho(0,xz,1,0,"ng-template",null,0,Yc),Ho(2,Cz,1,0,"ng-template",null,1,Yc))},encapsulation:2,changeDetection:0}),Bk([hx()],t.prototype,"nzClosable",void 0),Bk([hx()],t.prototype,"nzDisabled",void 0),Bk([hx()],t.prototype,"nzForceRender",void 0),t})();class Yz{}let jz=0,Xz=(()=>{class t{constructor(t,e,n,i){this.nzConfigService=t,this.cdr=e,this.directionality=n,this.router=i,this._nzModuleName="tabs",this.nzTabPosition="top",this.nzCanDeactivate=null,this.nzAddIcon="plus",this.nzTabBarStyle=null,this.nzType="line",this.nzSize="default",this.nzAnimated=!0,this.nzTabBarGutter=void 0,this.nzHideAdd=!1,this.nzCentered=!1,this.nzHideAll=!1,this.nzLinkRouter=!1,this.nzLinkExact=!0,this.nzSelectChange=new Dc(!0),this.nzSelectedIndexChange=new Dc,this.nzTabListScroll=new Dc,this.nzClose=new Dc,this.nzAdd=new Dc,this.allTabs=new Oc,this.tabs=new Oc,this.dir="ltr",this.destroy$=new A,this.indexToSelect=0,this.selectedIndex=null,this.tabLabelSubscription=y.EMPTY,this.tabsSubscription=y.EMPTY,this.canDeactivateSubscription=y.EMPTY,this.tabSetId=jz++}get nzSelectedIndex(){return this.selectedIndex}set nzSelectedIndex(t){this.indexToSelect=Kw(t,null)}get position(){return-1===["top","bottom"].indexOf(this.nzTabPosition)?"vertical":"horizontal"}get addable(){return"editable-card"===this.nzType&&!this.nzHideAdd}get closable(){return"editable-card"===this.nzType}get line(){return"line"===this.nzType}get inkBarAnimated(){return this.line&&("boolean"==typeof this.nzAnimated?this.nzAnimated:this.nzAnimated.inkBar)}get tabPaneAnimated(){return"horizontal"===this.position&&this.line&&("boolean"==typeof this.nzAnimated?this.nzAnimated:this.nzAnimated.tabPane)}ngOnInit(){var t;this.dir=this.directionality.value,null===(t=this.directionality.change)||void 0===t||t.pipe(aC(this.destroy$)).subscribe((t=>{this.dir=t,this.cdr.detectChanges()}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.tabs.destroy(),this.tabLabelSubscription.unsubscribe(),this.tabsSubscription.unsubscribe(),this.canDeactivateSubscription.unsubscribe()}ngAfterContentInit(){Promise.resolve().then((()=>{this.setUpRouter()})),this.subscribeToTabLabels(),this.subscribeToAllTabChanges(),this.tabsSubscription=this.tabs.changes.subscribe((()=>{if(this.clampTabIndex(this.indexToSelect)===this.selectedIndex){const t=this.tabs.toArray();for(let e=0;e<t.length;e++)if(t[e].isActive){this.indexToSelect=this.selectedIndex=e;break}}this.subscribeToTabLabels(),this.cdr.markForCheck()}))}ngAfterContentChecked(){const t=this.indexToSelect=this.clampTabIndex(this.indexToSelect);if(this.selectedIndex!==t){const e=null==this.selectedIndex;e||this.nzSelectChange.emit(this.createChangeEvent(t)),Promise.resolve().then((()=>{this.tabs.forEach(((e,n)=>e.isActive=n===t)),e||this.nzSelectedIndexChange.emit(t)}))}this.tabs.forEach(((e,n)=>{e.position=n-t,null!=this.selectedIndex&&0===e.position&&!e.origin&&(e.origin=t-this.selectedIndex)})),this.selectedIndex!==t&&(this.selectedIndex=t,this.cdr.markForCheck())}onClose(t,e){e.preventDefault(),e.stopPropagation(),this.nzClose.emit({index:t})}onAdd(){this.nzAdd.emit()}clampTabIndex(t){return Math.min(this.tabs.length-1,Math.max(t||0,0))}createChangeEvent(t){const e=new Yz;return e.index=t,this.tabs&&this.tabs.length&&(e.tab=this.tabs.toArray()[t],this.tabs.forEach(((e,n)=>{n!==t&&e.nzDeselect.emit()})),e.tab.nzSelect.emit()),e}subscribeToTabLabels(){this.tabLabelSubscription&&this.tabLabelSubscription.unsubscribe(),this.tabLabelSubscription=J(...this.tabs.map((t=>t.stateChanges))).subscribe((()=>this.cdr.markForCheck()))}subscribeToAllTabChanges(){this.allTabs.changes.pipe(cC(this.allTabs)).subscribe((t=>{this.tabs.reset(t.filter((t=>t.closestTabSet===this))),this.tabs.notifyOnChanges()}))}canDeactivateFun(t,e){return"function"==typeof this.nzCanDeactivate?(n=this.nzCanDeactivate(t,e),nx(n)?n:px(n)?Z(Promise.resolve(n)):Uu(n)).pipe(KM(),aC(this.destroy$)):Uu(!0);var n}clickNavItem(t,e,n){t.nzDisabled||(t.nzClick.emit(),this.isRouterLinkClickEvent(e,n)||this.setSelectedIndex(e))}isRouterLinkClickEvent(t,e){var n,i;const r=e.target;return!!this.nzLinkRouter&&!!(null===(i=null===(n=this.tabs.toArray()[t])||void 0===n?void 0:n.linkDirective)||void 0===i?void 0:i.elementRef.nativeElement.contains(r))}contextmenuNavItem(t,e){t.nzDisabled||t.nzContextmenu.emit(e)}setSelectedIndex(t){this.canDeactivateSubscription.unsubscribe(),this.canDeactivateSubscription=this.canDeactivateFun(this.selectedIndex,t).subscribe((e=>{e&&(this.nzSelectedIndex=t,this.tabNavBarRef.focusIndex=t,this.cdr.markForCheck())}))}getTabIndex(t,e){return t.nzDisabled?null:this.selectedIndex===e?0:-1}getTabContentId(t){return"nz-tabs-"+this.tabSetId+"-tab-"+t}setUpRouter(){if(this.nzLinkRouter){if(!this.router)throw new Error(Rb+" you should import 'RouterModule' if you want to use 'nzLinkRouter'!");this.router.events.pipe(aC(this.destroy$),lm((t=>t instanceof tD)),cC(!0),p_(0)).subscribe((()=>{this.updateRouterActive(),this.cdr.markForCheck()}))}}updateRouterActive(){if(this.router.navigated){const t=this.findShouldActiveTabIndex();t!==this.selectedIndex&&this.setSelectedIndex(t),this.nzHideAll=-1===t}}findShouldActiveTabIndex(){const t=this.tabs.toArray(),e=this.isLinkActive(this.router);return t.findIndex((t=>{const n=t.linkDirective;return!!n&&(e(n.routerLink)||e(n.routerLinkWithHref))}))}isLinkActive(t){return e=>!!e&&t.isActive(e.urlTree,this.nzLinkExact)}getTabContentMarginValue(){return 100*-(this.nzSelectedIndex||0)}getTabContentMarginLeft(){return this.tabPaneAnimated&&"rtl"!==this.dir?this.getTabContentMarginValue()+"%":""}getTabContentMarginRight(){return this.tabPaneAnimated&&"rtl"===this.dir?this.getTabContentMarginValue()+"%":""}}return t["ɵfac"]=function(e){return new(e||t)(Zo(ZS),Zo(Gl),Zo(Fx,8),Zo(kO,8))},t["ɵcmp"]=qt({type:t,selectors:[["nz-tabset"]],contentQueries:function(t,e,n){if(1&t&&Hc(n,Wz,5),2&t){let t;Vc(t=Gc())&&(e.allTabs=t)}},viewQuery:function(t,e){if(1&t&&Nc(Rz,5),2&t){let t;Vc(t=Gc())&&(e.tabNavBarRef=t.first)}},hostAttrs:[1,"ant-tabs"],hostVars:24,hostBindings:function(t,e){2&t&&Cs("ant-tabs-card","card"===e.nzType||"editable-card"===e.nzType)("ant-tabs-editable","editable-card"===e.nzType)("ant-tabs-editable-card","editable-card"===e.nzType)("ant-tabs-centered",e.nzCentered)("ant-tabs-rtl","rtl"===e.dir)("ant-tabs-top","top"===e.nzTabPosition)("ant-tabs-bottom","bottom"===e.nzTabPosition)("ant-tabs-left","left"===e.nzTabPosition)("ant-tabs-right","right"===e.nzTabPosition)("ant-tabs-default","default"===e.nzSize)("ant-tabs-small","small"===e.nzSize)("ant-tabs-large","large"===e.nzSize)},inputs:{nzTabPosition:"nzTabPosition",nzCanDeactivate:"nzCanDeactivate",nzAddIcon:"nzAddIcon",nzTabBarStyle:"nzTabBarStyle",nzType:"nzType",nzSize:"nzSize",nzAnimated:"nzAnimated",nzTabBarGutter:"nzTabBarGutter",nzHideAdd:"nzHideAdd",nzCentered:"nzCentered",nzHideAll:"nzHideAll",nzLinkRouter:"nzLinkRouter",nzLinkExact:"nzLinkExact",nzSelectedIndex:"nzSelectedIndex",nzTabBarExtraContent:"nzTabBarExtraContent"},outputs:{nzSelectChange:"nzSelectChange",nzSelectedIndexChange:"nzSelectedIndexChange",nzTabListScroll:"nzTabListScroll",nzClose:"nzClose",nzAdd:"nzAdd"},exportAs:["nzTabset"],features:[hl([{provide:Uz,useExisting:t}])],decls:4,vars:16,consts:[[3,"ngStyle","selectedIndex","inkBarAnimated","addable","addIcon","hideBar","position","extraTemplate","tabScroll","selectFocusedIndex","addClicked",4,"ngIf"],[1,"ant-tabs-content-holder"],[1,"ant-tabs-content"],["nz-tab-body","",3,"active","content","forceRender","tabPaneAnimated",4,"ngFor","ngForOf"],[3,"ngStyle","selectedIndex","inkBarAnimated","addable","addIcon","hideBar","position","extraTemplate","tabScroll","selectFocusedIndex","addClicked"],["class","ant-tabs-tab",3,"margin-right","margin-bottom","ant-tabs-tab-active","ant-tabs-tab-disabled","click","contextmenu",4,"ngFor","ngForOf"],[1,"ant-tabs-tab",3,"click","contextmenu"],["role","tab","nzTabNavItem","","cdkMonitorElementFocus","",1,"ant-tabs-tab-btn",3,"disabled","tab","active"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["nz-tab-close-button","",3,"closeIcon","click",4,"ngIf"],["nz-tab-close-button","",3,"closeIcon","click"],["nz-tab-body","",3,"active","content","forceRender","tabPaneAnimated"]],template:function(t,e){1&t&&(Ho(0,Ez,2,9,"nz-tabs-nav",0),Yo(1,"div",1),Yo(2,"div",2),Ho(3,Oz,1,4,"div",3),jo(),jo()),2&t&&(Uo("ngIf",e.tabs.length||e.addable),sa(2),xs("margin-left",e.getTabContentMarginLeft())("margin-right",e.getTabContentMarginRight()),Cs("ant-tabs-content-top","top"===e.nzTabPosition)("ant-tabs-content-bottom","bottom"===e.nzTabPosition)("ant-tabs-content-left","left"===e.nzTabPosition)("ant-tabs-content-right","right"===e.nzTabPosition)("ant-tabs-content-animated",e.tabPaneAnimated),sa(1),Uo("ngForOf",e.tabs))},directives:[Yd,Ud,Rz,Qd,Iz,PP,Uk,Nz,Fz],encapsulation:2}),Bk([US()],t.prototype,"nzType",void 0),Bk([US()],t.prototype,"nzSize",void 0),Bk([US()],t.prototype,"nzAnimated",void 0),Bk([US()],t.prototype,"nzTabBarGutter",void 0),Bk([hx()],t.prototype,"nzHideAdd",void 0),Bk([hx()],t.prototype,"nzCentered",void 0),Bk([hx()],t.prototype,"nzHideAll",void 0),Bk([hx()],t.prototype,"nzLinkRouter",void 0),Bk([hx()],t.prototype,"nzLinkExact",void 0),t})(),qz=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({imports:[[Vx,nu,cP,nP,Yk,yC,OP,HC,yA]]}),t})();const $z=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Kz=/([^\#-~ |!])/g;let Jz=(()=>{class t{constructor(){this.UNIQUE_WRAPPERS=["##==-open_tag-==##","##==-close_tag-==##"]}transform(t,e,n,i){if(!e)return t;const r=new RegExp(e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$&"),n);return(a=t.replace(r,this.UNIQUE_WRAPPERS[0]+"$&"+this.UNIQUE_WRAPPERS[1]),a.replace(/&/g,"&").replace($z,(t=>"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";")).replace(Kz,(t=>"&#"+t.charCodeAt(0)+";")).replace(/</g,"<").replace(/>/g,">")).replace(new RegExp(this.UNIQUE_WRAPPERS[0],"g"),i?'<span class="'+i+'">':"<span>").replace(new RegExp(this.UNIQUE_WRAPPERS[1],"g"),"</span>");var a}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵpipe"]=ie({name:"nzHighlight",type:t,pure:!0}),t})(),Qz=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({imports:[[nu]]}),t})();class tR{constructor(t,e=null,n=null){if(this._title="",this.level=0,this.parentNode=null,this._icon="",this._children=[],this._isLeaf=!1,this._isChecked=!1,this._isSelectable=!1,this._isDisabled=!1,this._isDisableCheckbox=!1,this._isExpanded=!1,this._isHalfChecked=!1,this._isSelected=!1,this._isLoading=!1,this.canHide=!1,this.isMatched=!1,this.service=null,t instanceof tR)return t;this.service=n||null,this.origin=t,this.key=t.key,this.parentNode=e,this._title=t.title||"---",this._icon=t.icon||"",this._isLeaf=t.isLeaf||!1,this._children=[],this._isChecked=t.checked||!1,this._isSelectable=t.disabled||!1!==t.selectable,this._isDisabled=t.disabled||!1,this._isDisableCheckbox=t.disableCheckbox||!1,this._isExpanded=!t.isLeaf&&(t.expanded||!1),this._isHalfChecked=!1,this._isSelected=!t.disabled&&t.selected||!1,this._isLoading=!1,this.isMatched=!1,this.level=e?e.level+1:0,null!=t.children&&t.children.forEach((e=>{const n=this.treeService;n&&!n.isCheckStrictly&&t.checked&&!t.disabled&&!e.disabled&&!e.disableCheckbox&&(e.checked=t.checked),this._children.push(new tR(e,this))}))}get treeService(){return this.service||this.parentNode&&this.parentNode.treeService}get title(){return this._title}set title(t){this._title=t,this.update()}get icon(){return this._icon}set icon(t){this._icon=t,this.update()}get children(){return this._children}set children(t){this._children=t,this.update()}get isLeaf(){return this._isLeaf}set isLeaf(t){this._isLeaf=t,this.update()}get isChecked(){return this._isChecked}set isChecked(t){this._isChecked=t,this.origin.checked=t,this.afterValueChange("isChecked")}get isHalfChecked(){return this._isHalfChecked}set isHalfChecked(t){this._isHalfChecked=t,this.afterValueChange("isHalfChecked")}get isSelectable(){return this._isSelectable}set isSelectable(t){this._isSelectable=t,this.update()}get isDisabled(){return this._isDisabled}set isDisabled(t){this._isDisabled=t,this.update()}get isDisableCheckbox(){return this._isDisableCheckbox}set isDisableCheckbox(t){this._isDisableCheckbox=t,this.update()}get isExpanded(){return this._isExpanded}set isExpanded(t){this._isExpanded=t,this.origin.expanded=t,this.afterValueChange("isExpanded"),this.afterValueChange("reRender")}get isSelected(){return this._isSelected}set isSelected(t){this._isSelected=t,this.origin.selected=t,this.afterValueChange("isSelected")}get isLoading(){return this._isLoading}set isLoading(t){this._isLoading=t,this.update()}setSyncChecked(t=!1,e=!1){this.setChecked(t,e),this.treeService&&!this.treeService.isCheckStrictly&&this.treeService.conduct(this)}setChecked(t=!1,e=!1){this.origin.checked=t,this.isChecked=t,this.isHalfChecked=e}setExpanded(t){this._isExpanded=t,this.origin.expanded=t,this.afterValueChange("isExpanded")}getParentNode(){return this.parentNode}getChildren(){return this.children}addChildren(t,e=-1){this.isLeaf||(t.forEach((t=>{const n=t=>{t.getChildren().forEach((t=>{t.level=t.getParentNode().level+1,t.origin.level=t.level,n(t)}))};let i=t;i instanceof tR?i.parentNode=this:i=new tR(t,this),i.level=this.level+1,i.origin.level=i.level,n(i);try{-1===e?this.children.push(i):this.children.splice(e,0,i)}catch(t){}})),this.origin.children=this.getChildren().map((t=>t.origin)),this.isLoading=!1),this.afterValueChange("addChildren"),this.afterValueChange("reRender")}clearChildren(){this.afterValueChange("clearChildren"),this.children=[],this.origin.children=[],this.afterValueChange("reRender")}remove(){const t=this.getParentNode();t&&(t.children=t.getChildren().filter((t=>t.key!==this.key)),t.origin.children=t.origin.children.filter((t=>t.key!==this.key)),this.afterValueChange("remove"),this.afterValueChange("reRender"))}afterValueChange(t){if(this.treeService)switch(t){case"isChecked":this.treeService.setCheckedNodeList(this);break;case"isHalfChecked":this.treeService.setHalfCheckedNodeList(this);break;case"isExpanded":this.treeService.setExpandedNodeList(this);break;case"isSelected":this.treeService.setNodeActive(this);break;case"clearChildren":this.treeService.afterRemove(this.getChildren());break;case"remove":this.treeService.afterRemove([this]);break;case"reRender":this.treeService.flattenTreeData(this.treeService.rootNodes,this.treeService.getExpandedNodeList().map((t=>t.key)))}this.update()}update(){this.component&&this.component.markForCheck()}}function eR(t){const{isDisabled:e,isDisableCheckbox:n}=t;return!(!e&&!n)}function nR(t,e){return e.length>0&&e.indexOf(t)>-1}function iR(t=[],e=[]){const n=new Set(!0===e?[]:e),i=[];return function t(r,a=null){return r.map(((o,s)=>{const l=(a?a.pos:"0")+"-"+s,c=(h=o.key,d=l,null!=h?h:d);var h,d;o.isStart=[...a?a.isStart:[],0===s],o.isEnd=[...a?a.isEnd:[],s===r.length-1];const u={parent:a,pos:l,children:[],data:o,isStart:[...a?a.isStart:[],0===s],isEnd:[...a?a.isEnd:[],s===r.length-1]};return i.push(u),u.children=!0===e||n.has(c)||o.isExpanded?t(o.children||[],u):[],u}))}(t),i}let rR=(()=>{class t{constructor(){this.DRAG_SIDE_RANGE=.25,this.DRAG_MIN_GAP=2,this.isCheckStrictly=!1,this.isMultiple=!1,this.rootNodes=[],this.flattenNodes$=new Lb([]),this.selectedNodeList=[],this.expandedNodeList=[],this.checkedNodeList=[],this.halfCheckedNodeList=[],this.matchedNodeList=[]}initTree(t){this.rootNodes=t,this.expandedNodeList=[],this.selectedNodeList=[],this.halfCheckedNodeList=[],this.checkedNodeList=[],this.matchedNodeList=[]}flattenTreeData(t,e=[]){this.flattenNodes$.next(iR(t,e).map((t=>t.data)))}getSelectedNode(){return this.selectedNode}getSelectedNodeList(){return this.conductNodeState("select")}getCheckedNodeList(){return this.conductNodeState("check")}getHalfCheckedNodeList(){return this.conductNodeState("halfCheck")}getExpandedNodeList(){return this.conductNodeState("expand")}getMatchedNodeList(){return this.conductNodeState("match")}isArrayOfNzTreeNode(t){return t.every((t=>t instanceof tR))}setSelectedNode(t){this.selectedNode=t}setNodeActive(t){!this.isMultiple&&t.isSelected&&(this.selectedNodeList.forEach((e=>{t.key!==e.key&&(e.isSelected=!1)})),this.selectedNodeList=[]),this.setSelectedNodeList(t,this.isMultiple)}setSelectedNodeList(t,e=!1){const n=this.getIndexOfArray(this.selectedNodeList,t.key);e?t.isSelected&&-1===n&&this.selectedNodeList.push(t):t.isSelected&&-1===n&&(this.selectedNodeList=[t]),t.isSelected||(this.selectedNodeList=this.selectedNodeList.filter((e=>e.key!==t.key)))}setHalfCheckedNodeList(t){const e=this.getIndexOfArray(this.halfCheckedNodeList,t.key);t.isHalfChecked&&-1===e?this.halfCheckedNodeList.push(t):!t.isHalfChecked&&e>-1&&(this.halfCheckedNodeList=this.halfCheckedNodeList.filter((e=>t.key!==e.key)))}setCheckedNodeList(t){const e=this.getIndexOfArray(this.checkedNodeList,t.key);t.isChecked&&-1===e?this.checkedNodeList.push(t):!t.isChecked&&e>-1&&(this.checkedNodeList=this.checkedNodeList.filter((e=>t.key!==e.key)))}conductNodeState(t="check"){let e=[];switch(t){case"select":e=this.selectedNodeList;break;case"expand":e=this.expandedNodeList;break;case"match":e=this.matchedNodeList;break;case"check":e=this.checkedNodeList;const t=e=>{const n=e.getParentNode();return!!n&&(this.checkedNodeList.findIndex((t=>t.key===n.key))>-1||t(n))};this.isCheckStrictly||(e=this.checkedNodeList.filter((e=>!t(e))));break;case"halfCheck":this.isCheckStrictly||(e=this.halfCheckedNodeList)}return e}setExpandedNodeList(t){if(t.isLeaf)return;const e=this.getIndexOfArray(this.expandedNodeList,t.key);t.isExpanded&&-1===e?this.expandedNodeList.push(t):!t.isExpanded&&e>-1&&this.expandedNodeList.splice(e,1)}setMatchedNodeList(t){const e=this.getIndexOfArray(this.matchedNodeList,t.key);t.isMatched&&-1===e?this.matchedNodeList.push(t):!t.isMatched&&e>-1&&this.matchedNodeList.splice(e,1)}refreshCheckState(t=!1){t||this.checkedNodeList.forEach((e=>{this.conduct(e,t)}))}conduct(t,e=!1){const n=t.isChecked;t&&!e&&(this.conductUp(t),this.conductDown(t,n))}conductUp(t){const e=t.getParentNode();e&&(eR(e)||(e.children.every((t=>eR(t)||!t.isHalfChecked&&t.isChecked))?(e.isChecked=!0,e.isHalfChecked=!1):e.children.some((t=>t.isHalfChecked||t.isChecked))?(e.isChecked=!1,e.isHalfChecked=!0):(e.isChecked=!1,e.isHalfChecked=!1)),this.setCheckedNodeList(e),this.setHalfCheckedNodeList(e),this.conductUp(e))}conductDown(t,e){eR(t)||(t.isChecked=e,t.isHalfChecked=!1,this.setCheckedNodeList(t),this.setHalfCheckedNodeList(t),t.children.forEach((t=>{this.conductDown(t,e)})))}afterRemove(t){const e=t=>{this.selectedNodeList=this.selectedNodeList.filter((e=>e.key!==t.key)),this.expandedNodeList=this.expandedNodeList.filter((e=>e.key!==t.key)),this.checkedNodeList=this.checkedNodeList.filter((e=>e.key!==t.key)),t.children&&t.children.forEach((t=>{e(t)}))};t.forEach((t=>{e(t)})),this.refreshCheckState(this.isCheckStrictly)}refreshDragNode(t){0===t.children.length?this.conductUp(t):t.children.forEach((t=>{this.refreshDragNode(t)}))}resetNodeLevel(t){const e=t.getParentNode();t.level=e?e.level+1:0;for(const e of t.children)this.resetNodeLevel(e)}calcDropPosition(t){const{clientY:e}=t,{top:n,bottom:i,height:r}=t.target.getBoundingClientRect(),a=Math.max(r*this.DRAG_SIDE_RANGE,this.DRAG_MIN_GAP);return e<=n+a?-1:e>=i-a?1:0}dropAndApply(t,e=-1){if(!t||e>1)return;const n=t.treeService,i=t.getParentNode(),r=this.selectedNode.getParentNode();switch(r?r.children=r.children.filter((t=>t.key!==this.selectedNode.key)):this.rootNodes=this.rootNodes.filter((t=>t.key!==this.selectedNode.key)),e){case 0:t.addChildren([this.selectedNode]),this.resetNodeLevel(t);break;case-1:case 1:const n=1===e?1:0;if(i){i.addChildren([this.selectedNode],i.children.indexOf(t)+n);const e=this.selectedNode.getParentNode();e&&this.resetNodeLevel(e)}else{const e=this.rootNodes.indexOf(t)+n;this.rootNodes.splice(e,0,this.selectedNode),this.rootNodes[e].parentNode=null,this.resetNodeLevel(this.rootNodes[e])}}this.rootNodes.forEach((t=>{t.treeService||(t.service=n),this.refreshDragNode(t)}))}formatEvent(t,e,n){const i={eventName:t,node:e,event:n};switch(t){case"dragstart":case"dragenter":case"dragover":case"dragleave":case"drop":case"dragend":Object.assign(i,{dragNode:this.getSelectedNode()});break;case"click":case"dblclick":Object.assign(i,{selectedKeys:this.selectedNodeList}),Object.assign(i,{nodes:this.selectedNodeList}),Object.assign(i,{keys:this.selectedNodeList.map((t=>t.key))});break;case"check":const t=this.getCheckedNodeList();Object.assign(i,{checkedKeys:t}),Object.assign(i,{nodes:t}),Object.assign(i,{keys:t.map((t=>t.key))});break;case"search":Object.assign(i,{matchedKeys:this.getMatchedNodeList()}),Object.assign(i,{nodes:this.getMatchedNodeList()}),Object.assign(i,{keys:this.getMatchedNodeList().map((t=>t.key))});break;case"expand":Object.assign(i,{nodes:this.expandedNodeList}),Object.assign(i,{keys:this.expandedNodeList.map((t=>t.key))})}return i}getIndexOfArray(t,e){return t.findIndex((t=>t.key===e))}conductCheck(t,e){this.checkedNodeList=[],this.halfCheckedNodeList=[];const n=e=>{e.forEach((e=>{null===t?e.isChecked=!!e.origin.checked:nR(e.key,t||[])?(e.isChecked=!0,e.isHalfChecked=!1):(e.isChecked=!1,e.isHalfChecked=!1),e.children.length>0&&n(e.children)}))};n(this.rootNodes),this.refreshCheckState(e)}conductExpandedKeys(t=[]){const e=new Set(!0===t?[]:t);this.expandedNodeList=[];const n=i=>{i.forEach((i=>{i.setExpanded(!0===t||e.has(i.key)||!0===i.isExpanded),i.isExpanded&&this.setExpandedNodeList(i),i.children.length>0&&n(i.children)}))};n(this.rootNodes)}conductSelectedKeys(t,e){this.selectedNodeList.forEach((t=>t.isSelected=!1)),this.selectedNodeList=[];const n=i=>i.every((i=>{if(nR(i.key,t)){if(i.isSelected=!0,this.setSelectedNodeList(i),!e)return!1}else i.isSelected=!1;return!(i.children.length>0)||n(i.children)}));n(this.rootNodes)}expandNodeAllParentBySearch(t){const e=t=>{if(t&&(t.canHide=!1,t.setExpanded(!0),this.setExpandedNodeList(t),t.getParentNode()))return e(t.getParentNode())};e(t.getParentNode())}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})();const aR=new ni("NzTreeHigherOrder");function oR(t,e){if(1&t&&Xo(0,"span"),2&t){const t=e.index,n=os();Cs("ant-tree-indent-unit",!n.nzSelectMode)("ant-select-tree-indent-unit",n.nzSelectMode)("ant-select-tree-indent-unit-start",n.nzSelectMode&&n.nzIsStart[t])("ant-tree-indent-unit-start",!n.nzSelectMode&&n.nzIsStart[t])("ant-select-tree-indent-unit-end",n.nzSelectMode&&n.nzIsEnd[t])("ant-tree-indent-unit-end",!n.nzSelectMode&&n.nzIsEnd[t])}}const sR=["builtin",""];function lR(t,e){if(1&t&&(qo(0),Xo(1,"i",4),$o()),2&t){const t=os(3);sa(1),Cs("ant-select-tree-switcher-icon",t.nzSelectMode)("ant-tree-switcher-icon",!t.nzSelectMode)}}const cR=function(t,e){return{$implicit:t,origin:e}};function hR(t,e){if(1&t&&(qo(0),Ho(1,lR,2,4,"ng-container",3),$o()),2&t){const t=os(2);sa(1),Uo("nzStringTemplateOutlet",t.nzExpandedIcon)("nzStringTemplateOutletContext",bc(2,cR,t.context,t.context.origin))}}function dR(t,e){if(1&t&&(qo(0),Ho(1,hR,2,5,"ng-container",2),$o()),2&t){const t=os(),e=Go(3);sa(1),Uo("ngIf",!t.isLoading)("ngIfElse",e)}}function uR(t,e){1&t&&Xo(0,"i",7),2&t&&Uo("nzType",os(4).isSwitcherOpen?"minus-square":"plus-square")}function mR(t,e){1&t&&Xo(0,"i",8)}function pR(t,e){if(1&t&&(qo(0),Ho(1,uR,1,1,"i",5),Ho(2,mR,1,0,"i",6),$o()),2&t){const t=os(3);sa(1),Uo("ngIf",t.isShowLineIcon),sa(1),Uo("ngIf",!t.isShowLineIcon)}}function gR(t,e){if(1&t&&(qo(0),Ho(1,pR,3,2,"ng-container",3),$o()),2&t){const t=os(2);sa(1),Uo("nzStringTemplateOutlet",t.nzExpandedIcon)("nzStringTemplateOutletContext",bc(2,cR,t.context,t.context.origin))}}function fR(t,e){if(1&t&&(qo(0),Ho(1,gR,2,5,"ng-container",2),$o()),2&t){const t=os(),e=Go(3);sa(1),Uo("ngIf",!t.isLoading)("ngIfElse",e)}}function bR(t,e){1&t&&Xo(0,"i",9),2&t&&Uo("nzSpin",!0)}function yR(t,e){}function vR(t,e){1&t&&Xo(0,"i",6),2&t&&Uo("nzType",os(3).icon)}function wR(t,e){if(1&t&&(Yo(0,"span"),Yo(1,"span"),Ho(2,vR,1,1,"i",5),jo(),jo()),2&t){const t=os(2);Cs("ant-tree-icon__open",t.isSwitcherOpen)("ant-tree-icon__close",t.isSwitcherClose)("ant-tree-icon_loading",t.isLoading)("ant-select-tree-iconEle",t.selectMode)("ant-tree-iconEle",!t.selectMode),sa(1),Cs("ant-select-tree-iconEle",t.selectMode)("ant-select-tree-icon__customize",t.selectMode)("ant-tree-iconEle",!t.selectMode)("ant-tree-icon__customize",!t.selectMode),sa(1),Uo("ngIf",t.icon)}}function xR(t,e){if(1&t&&Xo(0,"nz-tree-drop-indicator",7),2&t){const t=os(2);Uo("dropPosition",t.dragPosition)("level",t.context.level)}}function CR(t,e){if(1&t&&(qo(0),Ho(1,wR,3,19,"span",2),Xo(2,"span",3),Cc(3,"nzHighlight"),Ho(4,xR,1,2,"nz-tree-drop-indicator",4),$o()),2&t){const t=os();sa(1),Uo("ngIf",t.icon&&t.showIcon),sa(1),Uo("innerHTML",function(t,e,n,i,r,a){const o=t+20,s=Be(),l=Ee(s,o);return _c(s,Pc(s,o)?function(t,e,n,i,r,a,o,s,l){const c=e+n;return Ro(t,c,r,a,o,s)?To(t,c+4,l?i.call(l,r,a,o,s):i(r,a,o,s)):vc(t,c+4)}(s,Xe(),e,l.transform,n,i,r,a,l):l.transform(n,i,r,a))}(3,3,t.title,t.matchedValue,"i","font-highlight"),Nr),sa(2),Uo("ngIf",t.showIndicator)}}function kR(t,e){if(1&t){const t=Jo();Yo(0,"nz-tree-node-switcher",4),es("click",(function(e){return Ne(t),os().clickExpand(e)})),jo()}if(2&t){const t=os();Uo("nzShowExpand",t.nzShowExpand)("nzShowLine",t.nzShowLine)("nzExpandedIcon",t.nzExpandedIcon)("nzSelectMode",t.nzSelectMode)("context",t.nzTreeNode)("isLeaf",t.isLeaf)("isExpanded",t.isExpanded)("isLoading",t.isLoading)}}function SR(t,e){if(1&t){const t=Jo();Yo(0,"nz-tree-node-checkbox",5),es("click",(function(e){return Ne(t),os().clickCheckBox(e)})),jo()}if(2&t){const t=os();Uo("nzSelectMode",t.nzSelectMode)("isChecked",t.isChecked)("isHalfChecked",t.isHalfChecked)("isDisabled",t.isDisabled)("isDisableCheckbox",t.isDisableCheckbox)}}const PR=["nzTreeTemplate"];function _R(t,e){}const MR=function(t){return{$implicit:t}};function DR(t,e){if(1&t&&(qo(0),Ho(1,_R,0,0,"ng-template",8),$o()),2&t){const t=e.$implicit;os(2);const n=Go(7);sa(1),Uo("ngTemplateOutlet",n)("ngTemplateOutletContext",fc(2,MR,t))}}function ER(t,e){if(1&t&&(Yo(0,"cdk-virtual-scroll-viewport",6),Ho(1,DR,2,4,"ng-container",7),jo()),2&t){const t=os();xs("height",t.nzVirtualHeight),Cs("ant-select-tree-list-holder-inner",t.nzSelectMode)("ant-tree-list-holder-inner",!t.nzSelectMode),Uo("itemSize",t.nzVirtualItemSize)("minBufferPx",t.nzVirtualMinBufferPx)("maxBufferPx",t.nzVirtualMaxBufferPx),sa(1),Uo("cdkVirtualForOf",t.nzFlattenNodes)("cdkVirtualForTrackBy",t.trackByFlattenNode)}}function OR(t,e){}function AR(t,e){if(1&t&&(qo(0),Ho(1,OR,0,0,"ng-template",8),$o()),2&t){const t=e.$implicit;os(2);const n=Go(7);sa(1),Uo("ngTemplateOutlet",n)("ngTemplateOutletContext",fc(2,MR,t))}}function TR(t,e){if(1&t&&(Yo(0,"div",9),Ho(1,AR,2,4,"ng-container",10),jo()),2&t){const t=os();Cs("ant-select-tree-list-holder-inner",t.nzSelectMode)("ant-tree-list-holder-inner",!t.nzSelectMode),Uo("@.disabled",t.beforeInit||(null==t.noAnimation?null:t.noAnimation.nzNoAnimation))("nzNoAnimation",null==t.noAnimation?null:t.noAnimation.nzNoAnimation)("@treeCollapseMotion",t.nzFlattenNodes.length),sa(1),Uo("ngForOf",t.nzFlattenNodes)("ngForTrackBy",t.trackByFlattenNode)}}function IR(t,e){if(1&t){const t=Jo();Yo(0,"nz-tree-node",11),es("nzExpandChange",(function(e){return Ne(t),os().eventTriggerChanged(e)}))("nzClick",(function(e){return Ne(t),os().eventTriggerChanged(e)}))("nzDblClick",(function(e){return Ne(t),os().eventTriggerChanged(e)}))("nzContextMenu",(function(e){return Ne(t),os().eventTriggerChanged(e)}))("nzCheckBoxChange",(function(e){return Ne(t),os().eventTriggerChanged(e)}))("nzOnDragStart",(function(e){return Ne(t),os().eventTriggerChanged(e)}))("nzOnDragEnter",(function(e){return Ne(t),os().eventTriggerChanged(e)}))("nzOnDragOver",(function(e){return Ne(t),os().eventTriggerChanged(e)}))("nzOnDragLeave",(function(e){return Ne(t),os().eventTriggerChanged(e)}))("nzOnDragEnd",(function(e){return Ne(t),os().eventTriggerChanged(e)}))("nzOnDrop",(function(e){return Ne(t),os().eventTriggerChanged(e)})),jo()}if(2&t){const t=e.$implicit,n=os();Uo("icon",t.icon)("title",t.title)("isLoading",t.isLoading)("isSelected",t.isSelected)("isDisabled",t.isDisabled)("isMatched",t.isMatched)("isExpanded",t.isExpanded)("isLeaf",t.isLeaf)("isStart",t.isStart)("isEnd",t.isEnd)("isChecked",t.isChecked)("isHalfChecked",t.isHalfChecked)("isDisableCheckbox",t.isDisableCheckbox)("isSelectable",t.isSelectable)("canHide",t.canHide)("nzTreeNode",t)("nzSelectMode",n.nzSelectMode)("nzShowLine",n.nzShowLine)("nzExpandedIcon",n.nzExpandedIcon)("nzDraggable",n.nzDraggable)("nzCheckable",n.nzCheckable)("nzShowExpand",n.nzShowExpand)("nzAsyncData",n.nzAsyncData)("nzSearchValue",n.nzSearchValue)("nzHideUnMatched",n.nzHideUnMatched)("nzBeforeDrop",n.nzBeforeDrop)("nzShowIcon",n.nzShowIcon)("nzTreeTemplate",n.nzTreeTemplate||n.nzTreeTemplateChild)}}let LR=(()=>{class t{constructor(t){this.cdr=t,this.level=1,this.direction="ltr",this.style={}}ngOnChanges(t){this.renderIndicator(this.dropPosition,this.direction)}renderIndicator(t,e="ltr"){const n="ltr"===e?"left":"right",i={[n]:"4px",["ltr"===e?"right":"left"]:"0px"};switch(t){case-1:i.top="-3px";break;case 1:i.bottom="-3px";break;case 0:i.bottom="-3px",i[n]="28px";break;default:i.display="none"}this.style=i,this.cdr.markForCheck()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Gl))},t["ɵcmp"]=qt({type:t,selectors:[["nz-tree-drop-indicator"]],hostVars:4,hostBindings:function(t,e){2&t&&(ks(e.style),Cs("ant-tree-drop-indicator",!0))},inputs:{level:"level",direction:"direction",dropPosition:"dropPosition"},exportAs:["NzTreeDropIndicator"],features:[pe],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),t})(),zR=(()=>{class t{constructor(){this.nzTreeLevel=0,this.nzIsStart=[],this.nzIsEnd=[],this.nzSelectMode=!1,this.listOfUnit=[]}ngOnChanges(t){const{nzTreeLevel:e}=t;e&&(this.listOfUnit=[...new Array(e.currentValue||0)])}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵcmp"]=qt({type:t,selectors:[["nz-tree-indent"]],hostVars:5,hostBindings:function(t,e){2&t&&(Fo("aria-hidden",!0),Cs("ant-tree-indent",!e.nzSelectMode)("ant-select-tree-indent",e.nzSelectMode))},inputs:{nzTreeLevel:"nzTreeLevel",nzIsStart:"nzIsStart",nzIsEnd:"nzIsEnd",nzSelectMode:"nzSelectMode"},exportAs:["nzTreeIndent"],features:[pe],decls:1,vars:1,consts:[[3,"ant-tree-indent-unit","ant-select-tree-indent-unit","ant-select-tree-indent-unit-start","ant-tree-indent-unit-start","ant-select-tree-indent-unit-end","ant-tree-indent-unit-end",4,"ngFor","ngForOf"]],template:function(t,e){1&t&&Ho(0,oR,1,12,"span",0),2&t&&Uo("ngForOf",e.listOfUnit)},directives:[Ud],encapsulation:2,changeDetection:0}),t})(),RR=(()=>{class t{constructor(){this.nzSelectMode=!1}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵcmp"]=qt({type:t,selectors:[["nz-tree-node-checkbox","builtin",""]],hostVars:16,hostBindings:function(t,e){2&t&&Cs("ant-select-tree-checkbox",e.nzSelectMode)("ant-select-tree-checkbox-checked",e.nzSelectMode&&e.isChecked)("ant-select-tree-checkbox-indeterminate",e.nzSelectMode&&e.isHalfChecked)("ant-select-tree-checkbox-disabled",e.nzSelectMode&&(e.isDisabled||e.isDisableCheckbox))("ant-tree-checkbox",!e.nzSelectMode)("ant-tree-checkbox-checked",!e.nzSelectMode&&e.isChecked)("ant-tree-checkbox-indeterminate",!e.nzSelectMode&&e.isHalfChecked)("ant-tree-checkbox-disabled",!e.nzSelectMode&&(e.isDisabled||e.isDisableCheckbox))},inputs:{nzSelectMode:"nzSelectMode",isChecked:"isChecked",isHalfChecked:"isHalfChecked",isDisabled:"isDisabled",isDisableCheckbox:"isDisableCheckbox"},attrs:sR,decls:1,vars:4,template:function(t,e){1&t&&Xo(0,"span"),2&t&&Cs("ant-tree-checkbox-inner",!e.nzSelectMode)("ant-select-tree-checkbox-inner",e.nzSelectMode)},encapsulation:2,changeDetection:0}),t})(),FR=(()=>{class t{constructor(){this.nzSelectMode=!1}get isShowLineIcon(){return!this.isLeaf&&!!this.nzShowLine}get isShowSwitchIcon(){return!this.isLeaf&&!this.nzShowLine}get isSwitcherOpen(){return!!this.isExpanded&&!this.isLeaf}get isSwitcherClose(){return!this.isExpanded&&!this.isLeaf}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵcmp"]=qt({type:t,selectors:[["nz-tree-node-switcher"]],hostVars:16,hostBindings:function(t,e){2&t&&Cs("ant-select-tree-switcher",e.nzSelectMode)("ant-select-tree-switcher-noop",e.nzSelectMode&&e.isLeaf)("ant-select-tree-switcher_open",e.nzSelectMode&&e.isSwitcherOpen)("ant-select-tree-switcher_close",e.nzSelectMode&&e.isSwitcherClose)("ant-tree-switcher",!e.nzSelectMode)("ant-tree-switcher-noop",!e.nzSelectMode&&e.isLeaf)("ant-tree-switcher_open",!e.nzSelectMode&&e.isSwitcherOpen)("ant-tree-switcher_close",!e.nzSelectMode&&e.isSwitcherClose)},inputs:{nzSelectMode:"nzSelectMode",nzShowExpand:"nzShowExpand",nzShowLine:"nzShowLine",nzExpandedIcon:"nzExpandedIcon",context:"context",isLeaf:"isLeaf",isLoading:"isLoading",isExpanded:"isExpanded"},decls:4,vars:2,consts:[[4,"ngIf"],["loadingTemplate",""],[4,"ngIf","ngIfElse"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["nz-icon","","nzType","caret-down"],["nz-icon","","class","ant-tree-switcher-line-icon",3,"nzType",4,"ngIf"],["nz-icon","","nzType","file","class","ant-tree-switcher-line-icon",4,"ngIf"],["nz-icon","",1,"ant-tree-switcher-line-icon",3,"nzType"],["nz-icon","","nzType","file",1,"ant-tree-switcher-line-icon"],["nz-icon","","nzType","loading",1,"ant-tree-switcher-loading-icon",3,"nzSpin"]],template:function(t,e){1&t&&(Ho(0,dR,2,2,"ng-container",0),Ho(1,fR,2,2,"ng-container",0),Ho(2,bR,1,1,"ng-template",null,1,Yc)),2&t&&(Uo("ngIf",e.isShowSwitchIcon),sa(1),Uo("ngIf",e.nzShowLine))},directives:[Yd,Uk,eP],encapsulation:2,changeDetection:0}),t})(),BR=(()=>{class t{constructor(t){this.cdr=t,this.treeTemplate=null,this.selectMode=!1,this.showIndicator=!0}get canDraggable(){return!(!this.draggable||this.isDisabled)||null}get matchedValue(){return this.isMatched?this.searchValue:""}get isSwitcherOpen(){return this.isExpanded&&!this.isLeaf}get isSwitcherClose(){return!this.isExpanded&&!this.isLeaf}ngOnChanges(t){const{showIndicator:e,dragPosition:n}=t;(e||n)&&this.cdr.markForCheck()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Gl))},t["ɵcmp"]=qt({type:t,selectors:[["nz-tree-node-title"]],hostVars:21,hostBindings:function(t,e){2&t&&(Fo("title",e.title)("draggable",e.canDraggable)("aria-grabbed",e.canDraggable),Cs("draggable",e.canDraggable)("ant-select-tree-node-content-wrapper",e.selectMode)("ant-select-tree-node-content-wrapper-open",e.selectMode&&e.isSwitcherOpen)("ant-select-tree-node-content-wrapper-close",e.selectMode&&e.isSwitcherClose)("ant-select-tree-node-selected",e.selectMode&&e.isSelected)("ant-tree-node-content-wrapper",!e.selectMode)("ant-tree-node-content-wrapper-open",!e.selectMode&&e.isSwitcherOpen)("ant-tree-node-content-wrapper-close",!e.selectMode&&e.isSwitcherClose)("ant-tree-node-selected",!e.selectMode&&e.isSelected))},inputs:{treeTemplate:"treeTemplate",selectMode:"selectMode",showIndicator:"showIndicator",searchValue:"searchValue",draggable:"draggable",showIcon:"showIcon",context:"context",icon:"icon",title:"title",isLoading:"isLoading",isSelected:"isSelected",isDisabled:"isDisabled",isMatched:"isMatched",isExpanded:"isExpanded",isLeaf:"isLeaf",dragPosition:"dragPosition"},features:[pe],decls:2,vars:6,consts:[[3,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf"],[3,"ant-tree-icon__open","ant-tree-icon__close","ant-tree-icon_loading","ant-select-tree-iconEle","ant-tree-iconEle",4,"ngIf"],[1,"ant-tree-title",3,"innerHTML"],[3,"dropPosition","level",4,"ngIf"],["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","",3,"nzType"],[3,"dropPosition","level"]],template:function(t,e){1&t&&(Ho(0,yR,0,0,"ng-template",0),Ho(1,CR,5,8,"ng-container",1)),2&t&&(Uo("ngTemplateOutlet",e.treeTemplate)("ngTemplateOutletContext",bc(3,cR,e.context,e.context.origin)),sa(1),Uo("ngIf",!e.treeTemplate))},directives:[tu,Yd,eP,LR],pipes:[Jz],encapsulation:2,changeDetection:0}),t})(),VR=(()=>{class t{constructor(t,e,n,i,r,a){this.nzTreeService=t,this.ngZone=e,this.renderer=n,this.elementRef=i,this.cdr=r,this.noAnimation=a,this.icon="",this.title="",this.isLoading=!1,this.isSelected=!1,this.isDisabled=!1,this.isMatched=!1,this.isStart=[],this.isEnd=[],this.nzHideUnMatched=!1,this.nzNoAnimation=!1,this.nzSelectMode=!1,this.nzShowIcon=!1,this.nzTreeTemplate=null,this.nzSearchValue="",this.nzDraggable=!1,this.nzClick=new Dc,this.nzDblClick=new Dc,this.nzContextMenu=new Dc,this.nzCheckBoxChange=new Dc,this.nzExpandChange=new Dc,this.nzOnDragStart=new Dc,this.nzOnDragEnter=new Dc,this.nzOnDragOver=new Dc,this.nzOnDragLeave=new Dc,this.nzOnDrop=new Dc,this.nzOnDragEnd=new Dc,this.destroy$=new A,this.dragPos=2,this.dragPosClass={0:"drag-over",1:"drag-over-gap-bottom","-1":"drag-over-gap-top"},this.showIndicator=!1}get displayStyle(){return this.nzSearchValue&&this.nzHideUnMatched&&!this.isMatched&&!this.isExpanded&&this.canHide?"none":""}get isSwitcherOpen(){return this.isExpanded&&!this.isLeaf}get isSwitcherClose(){return!this.isExpanded&&!this.isLeaf}clickExpand(t){t.preventDefault(),!this.isLoading&&!this.isLeaf&&(this.nzAsyncData&&0===this.nzTreeNode.children.length&&!this.isExpanded&&(this.nzTreeNode.isLoading=!0),this.nzTreeNode.setExpanded(!this.isExpanded)),this.nzTreeService.setExpandedNodeList(this.nzTreeNode);const e=this.nzTreeService.formatEvent("expand",this.nzTreeNode,t);this.nzExpandChange.emit(e)}clickSelect(t){t.preventDefault(),this.isSelectable&&!this.isDisabled&&(this.nzTreeNode.isSelected=!this.nzTreeNode.isSelected),this.nzTreeService.setSelectedNodeList(this.nzTreeNode);const e=this.nzTreeService.formatEvent("click",this.nzTreeNode,t);this.nzClick.emit(e)}dblClick(t){t.preventDefault();const e=this.nzTreeService.formatEvent("dblclick",this.nzTreeNode,t);this.nzDblClick.emit(e)}contextMenu(t){t.preventDefault();const e=this.nzTreeService.formatEvent("contextmenu",this.nzTreeNode,t);this.nzContextMenu.emit(e)}clickCheckBox(t){if(t.preventDefault(),this.isDisabled||this.isDisableCheckbox)return;this.nzTreeNode.isChecked=!this.nzTreeNode.isChecked,this.nzTreeNode.isHalfChecked=!1,this.nzTreeService.setCheckedNodeList(this.nzTreeNode);const e=this.nzTreeService.formatEvent("check",this.nzTreeNode,t);this.nzCheckBoxChange.emit(e)}clearDragClass(){["drag-over-gap-top","drag-over-gap-bottom","drag-over","drop-target"].forEach((t=>{this.renderer.removeClass(this.elementRef.nativeElement,t)}))}handleDragStart(t){try{t.dataTransfer.setData("text/plain",this.nzTreeNode.key)}catch(t){}this.nzTreeService.setSelectedNode(this.nzTreeNode);const e=this.nzTreeService.formatEvent("dragstart",this.nzTreeNode,t);this.nzOnDragStart.emit(e)}handleDragEnter(t){var e;t.preventDefault(),this.showIndicator=this.nzTreeNode.key!==(null===(e=this.nzTreeService.getSelectedNode())||void 0===e?void 0:e.key),this.renderIndicator(2),this.ngZone.run((()=>{const e=this.nzTreeService.formatEvent("dragenter",this.nzTreeNode,t);this.nzOnDragEnter.emit(e)}))}handleDragOver(t){t.preventDefault();const e=this.nzTreeService.calcDropPosition(t);this.dragPos!==e&&(this.clearDragClass(),this.renderIndicator(e),0===this.dragPos&&this.isLeaf||(this.renderer.addClass(this.elementRef.nativeElement,this.dragPosClass[this.dragPos]),this.renderer.addClass(this.elementRef.nativeElement,"drop-target")));const n=this.nzTreeService.formatEvent("dragover",this.nzTreeNode,t);this.nzOnDragOver.emit(n)}handleDragLeave(t){t.preventDefault(),this.renderIndicator(2),this.clearDragClass();const e=this.nzTreeService.formatEvent("dragleave",this.nzTreeNode,t);this.nzOnDragLeave.emit(e)}handleDragDrop(t){t.preventDefault(),t.stopPropagation(),this.ngZone.run((()=>{this.showIndicator=!1,this.clearDragClass();const e=this.nzTreeService.getSelectedNode();if(!e||e&&e.key===this.nzTreeNode.key||0===this.dragPos&&this.isLeaf)return;const n=this.nzTreeService.formatEvent("drop",this.nzTreeNode,t),i=this.nzTreeService.formatEvent("dragend",this.nzTreeNode,t);this.nzBeforeDrop?this.nzBeforeDrop({dragNode:this.nzTreeService.getSelectedNode(),node:this.nzTreeNode,pos:this.dragPos}).subscribe((t=>{t&&this.nzTreeService.dropAndApply(this.nzTreeNode,this.dragPos),this.nzOnDrop.emit(n),this.nzOnDragEnd.emit(i)})):this.nzTreeNode&&(this.nzTreeService.dropAndApply(this.nzTreeNode,this.dragPos),this.nzOnDrop.emit(n))}))}handleDragEnd(t){t.preventDefault(),this.ngZone.run((()=>{if(!this.nzBeforeDrop){const e=this.nzTreeService.formatEvent("dragend",this.nzTreeNode,t);this.nzOnDragEnd.emit(e)}}))}handDragEvent(){this.ngZone.runOutsideAngular((()=>{if(this.nzDraggable){const t=this.elementRef.nativeElement;this.destroy$=new A,Nx(t,"dragstart").pipe(aC(this.destroy$)).subscribe((t=>this.handleDragStart(t))),Nx(t,"dragenter").pipe(aC(this.destroy$)).subscribe((t=>this.handleDragEnter(t))),Nx(t,"dragover").pipe(aC(this.destroy$)).subscribe((t=>this.handleDragOver(t))),Nx(t,"dragleave").pipe(aC(this.destroy$)).subscribe((t=>this.handleDragLeave(t))),Nx(t,"drop").pipe(aC(this.destroy$)).subscribe((t=>this.handleDragDrop(t))),Nx(t,"dragend").pipe(aC(this.destroy$)).subscribe((t=>this.handleDragEnd(t)))}else this.destroy$.next(),this.destroy$.complete()}))}markForCheck(){this.cdr.markForCheck()}ngOnInit(){this.nzTreeNode.component=this,this.ngZone.runOutsideAngular((()=>{Nx(this.elementRef.nativeElement,"mousedown").pipe(aC(this.destroy$)).subscribe((t=>{this.nzSelectMode&&t.preventDefault()}))}))}ngOnChanges(t){const{nzDraggable:e}=t;e&&this.handDragEvent()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}renderIndicator(t){this.ngZone.run((()=>{var e;this.showIndicator=2!==t,!(this.nzTreeNode.key===(null===(e=this.nzTreeService.getSelectedNode())||void 0===e?void 0:e.key)||0===t&&this.isLeaf)&&(this.dragPos=t,this.cdr.markForCheck())}))}}return t["ɵfac"]=function(e){return new(e||t)(Zo(rR),Zo(ph),Zo(wl),Zo(bl),Zo(Gl),Zo(Gk,9))},t["ɵcmp"]=qt({type:t,selectors:[["nz-tree-node","builtin",""]],hostVars:34,hostBindings:function(t,e){2&t&&(xs("display",e.displayStyle),Cs("ant-select-tree-treenode",e.nzSelectMode)("ant-select-tree-treenode-disabled",e.nzSelectMode&&e.isDisabled)("ant-select-tree-treenode-switcher-open",e.nzSelectMode&&e.isSwitcherOpen)("ant-select-tree-treenode-switcher-close",e.nzSelectMode&&e.isSwitcherClose)("ant-select-tree-treenode-checkbox-checked",e.nzSelectMode&&e.isChecked)("ant-select-tree-treenode-checkbox-indeterminate",e.nzSelectMode&&e.isHalfChecked)("ant-select-tree-treenode-selected",e.nzSelectMode&&e.isSelected)("ant-select-tree-treenode-loading",e.nzSelectMode&&e.isLoading)("ant-tree-treenode",!e.nzSelectMode)("ant-tree-treenode-disabled",!e.nzSelectMode&&e.isDisabled)("ant-tree-treenode-switcher-open",!e.nzSelectMode&&e.isSwitcherOpen)("ant-tree-treenode-switcher-close",!e.nzSelectMode&&e.isSwitcherClose)("ant-tree-treenode-checkbox-checked",!e.nzSelectMode&&e.isChecked)("ant-tree-treenode-checkbox-indeterminate",!e.nzSelectMode&&e.isHalfChecked)("ant-tree-treenode-selected",!e.nzSelectMode&&e.isSelected)("ant-tree-treenode-loading",!e.nzSelectMode&&e.isLoading))},inputs:{icon:"icon",title:"title",isLoading:"isLoading",isSelected:"isSelected",isDisabled:"isDisabled",isMatched:"isMatched",isStart:"isStart",isEnd:"isEnd",nzHideUnMatched:"nzHideUnMatched",nzNoAnimation:"nzNoAnimation",nzSelectMode:"nzSelectMode",nzShowIcon:"nzShowIcon",nzTreeTemplate:"nzTreeTemplate",nzSearchValue:"nzSearchValue",nzDraggable:"nzDraggable",isExpanded:"isExpanded",isLeaf:"isLeaf",isChecked:"isChecked",isHalfChecked:"isHalfChecked",isDisableCheckbox:"isDisableCheckbox",isSelectable:"isSelectable",canHide:"canHide",nzTreeNode:"nzTreeNode",nzShowLine:"nzShowLine",nzShowExpand:"nzShowExpand",nzCheckable:"nzCheckable",nzAsyncData:"nzAsyncData",nzExpandedIcon:"nzExpandedIcon",nzBeforeDrop:"nzBeforeDrop"},outputs:{nzClick:"nzClick",nzDblClick:"nzDblClick",nzContextMenu:"nzContextMenu",nzCheckBoxChange:"nzCheckBoxChange",nzExpandChange:"nzExpandChange",nzOnDragStart:"nzOnDragStart",nzOnDragEnter:"nzOnDragEnter",nzOnDragOver:"nzOnDragOver",nzOnDragLeave:"nzOnDragLeave",nzOnDrop:"nzOnDrop",nzOnDragEnd:"nzOnDragEnd"},exportAs:["nzTreeBuiltinNode"],features:[pe],attrs:sR,decls:4,vars:22,consts:[[3,"nzTreeLevel","nzSelectMode","nzIsStart","nzIsEnd"],[3,"nzShowExpand","nzShowLine","nzExpandedIcon","nzSelectMode","context","isLeaf","isExpanded","isLoading","click",4,"ngIf"],["builtin","",3,"nzSelectMode","isChecked","isHalfChecked","isDisabled","isDisableCheckbox","click",4,"ngIf"],[3,"icon","title","isLoading","isSelected","isDisabled","isMatched","isExpanded","isLeaf","searchValue","treeTemplate","draggable","showIcon","selectMode","context","showIndicator","dragPosition","dblclick","click","contextmenu"],[3,"nzShowExpand","nzShowLine","nzExpandedIcon","nzSelectMode","context","isLeaf","isExpanded","isLoading","click"],["builtin","",3,"nzSelectMode","isChecked","isHalfChecked","isDisabled","isDisableCheckbox","click"]],template:function(t,e){1&t&&(Xo(0,"nz-tree-indent",0),Ho(1,kR,1,8,"nz-tree-node-switcher",1),Ho(2,SR,1,5,"nz-tree-node-checkbox",2),Yo(3,"nz-tree-node-title",3),es("dblclick",(function(t){return e.dblClick(t)}))("click",(function(t){return e.clickSelect(t)}))("contextmenu",(function(t){return e.contextMenu(t)})),jo()),2&t&&(Uo("nzTreeLevel",e.nzTreeNode.level)("nzSelectMode",e.nzSelectMode)("nzIsStart",e.isStart)("nzIsEnd",e.isEnd),sa(1),Uo("ngIf",e.nzShowExpand),sa(1),Uo("ngIf",e.nzCheckable),sa(1),Uo("icon",e.icon)("title",e.title)("isLoading",e.isLoading)("isSelected",e.isSelected)("isDisabled",e.isDisabled)("isMatched",e.isMatched)("isExpanded",e.isExpanded)("isLeaf",e.isLeaf)("searchValue",e.nzSearchValue)("treeTemplate",e.nzTreeTemplate)("draggable",e.nzDraggable)("showIcon",e.nzShowIcon)("selectMode",e.nzSelectMode)("context",e.nzTreeNode)("showIndicator",e.showIndicator)("dragPosition",e.dragPos))},directives:[zR,Yd,BR,FR,RR],encapsulation:2,changeDetection:0}),Bk([hx()],t.prototype,"nzShowLine",void 0),Bk([hx()],t.prototype,"nzShowExpand",void 0),Bk([hx()],t.prototype,"nzCheckable",void 0),Bk([hx()],t.prototype,"nzAsyncData",void 0),Bk([hx()],t.prototype,"nzHideUnMatched",void 0),Bk([hx()],t.prototype,"nzNoAnimation",void 0),Bk([hx()],t.prototype,"nzSelectMode",void 0),Bk([hx()],t.prototype,"nzShowIcon",void 0),t})(),NR=(()=>{class t extends rR{constructor(){super()}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})();function HR(t,e){return t||e}let GR=(()=>{class t extends class{constructor(t){this.nzTreeService=t}coerceTreeNodes(t){let e=[];return e=this.nzTreeService.isArrayOfNzTreeNode(t)?t.map((t=>(t.service=this.nzTreeService,t))):t.map((t=>new tR(t,null,this.nzTreeService))),e}getTreeNodes(){return this.nzTreeService.rootNodes}getTreeNodeByKey(t){const e=[],n=t=>{e.push(t),t.getChildren().forEach((t=>{n(t)}))};return this.getTreeNodes().forEach((t=>{n(t)})),e.find((e=>e.key===t))||null}getCheckedNodeList(){return this.nzTreeService.getCheckedNodeList()}getSelectedNodeList(){return this.nzTreeService.getSelectedNodeList()}getHalfCheckedNodeList(){return this.nzTreeService.getHalfCheckedNodeList()}getExpandedNodeList(){return this.nzTreeService.getExpandedNodeList()}getMatchedNodeList(){return this.nzTreeService.getMatchedNodeList()}}{constructor(t,e,n,i,r){super(t),this.nzConfigService=e,this.cdr=n,this.directionality=i,this.noAnimation=r,this._nzModuleName="tree",this.nzShowIcon=!1,this.nzHideUnMatched=!1,this.nzBlockNode=!1,this.nzExpandAll=!1,this.nzSelectMode=!1,this.nzCheckStrictly=!1,this.nzShowExpand=!0,this.nzShowLine=!1,this.nzCheckable=!1,this.nzAsyncData=!1,this.nzDraggable=!1,this.nzMultiple=!1,this.nzVirtualItemSize=28,this.nzVirtualMaxBufferPx=500,this.nzVirtualMinBufferPx=28,this.nzVirtualHeight=null,this.nzData=[],this.nzExpandedKeys=[],this.nzSelectedKeys=[],this.nzCheckedKeys=[],this.nzSearchValue="",this.nzFlattenNodes=[],this.beforeInit=!0,this.dir="ltr",this.nzExpandedKeysChange=new Dc,this.nzSelectedKeysChange=new Dc,this.nzCheckedKeysChange=new Dc,this.nzSearchValueChange=new Dc,this.nzClick=new Dc,this.nzDblClick=new Dc,this.nzContextMenu=new Dc,this.nzCheckBoxChange=new Dc,this.nzExpandChange=new Dc,this.nzOnDragStart=new Dc,this.nzOnDragEnter=new Dc,this.nzOnDragOver=new Dc,this.nzOnDragLeave=new Dc,this.nzOnDrop=new Dc,this.nzOnDragEnd=new Dc,this.HIDDEN_STYLE={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},this.destroy$=new A,this.onChange=()=>null,this.onTouched=()=>null}writeValue(t){this.handleNzData(t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}renderTreeProperties(t){let e=!1,n=!1;const{nzData:i,nzExpandedKeys:r,nzSelectedKeys:a,nzCheckedKeys:o,nzCheckStrictly:s,nzExpandAll:l,nzMultiple:c,nzSearchValue:h}=t;l&&(e=!0,n=this.nzExpandAll),c&&(this.nzTreeService.isMultiple=this.nzMultiple),s&&(this.nzTreeService.isCheckStrictly=this.nzCheckStrictly),i&&this.handleNzData(this.nzData),o&&this.handleCheckedKeys(this.nzCheckedKeys),s&&this.handleCheckedKeys(null),(r||l)&&(e=!0,this.handleExpandedKeys(n||this.nzExpandedKeys)),a&&this.handleSelectedKeys(this.nzSelectedKeys,this.nzMultiple),h&&(h.firstChange&&!this.nzSearchValue||(e=!1,this.handleSearchValue(h.currentValue,this.nzSearchFunc),this.nzSearchValueChange.emit(this.nzTreeService.formatEvent("search",null,null))));const d=this.getExpandedNodeList().map((t=>t.key));this.handleFlattenNodes(this.nzTreeService.rootNodes,e?n||this.nzExpandedKeys:d)}trackByFlattenNode(t,e){return e.key}handleNzData(t){if(Array.isArray(t)){const e=this.coerceTreeNodes(t);this.nzTreeService.initTree(e)}}handleFlattenNodes(t,e=[]){this.nzTreeService.flattenTreeData(t,e)}handleCheckedKeys(t){this.nzTreeService.conductCheck(t,this.nzCheckStrictly)}handleExpandedKeys(t=[]){this.nzTreeService.conductExpandedKeys(t)}handleSelectedKeys(t,e){this.nzTreeService.conductSelectedKeys(t,e)}handleSearchValue(t,e){iR(this.nzTreeService.rootNodes,!0).map((t=>t.data)).forEach((n=>{var i;n.isMatched=(i=n,e?e(i.origin):!(!t||!i.title.toLowerCase().includes(t.toLowerCase()))),n.canHide=!n.isMatched,n.isMatched?this.nzTreeService.expandNodeAllParentBySearch(n):(n.setExpanded(!1),this.nzTreeService.setExpandedNodeList(n)),this.nzTreeService.setMatchedNodeList(n)}))}eventTriggerChanged(t){const e=t.node;switch(t.eventName){case"expand":this.renderTree(),this.nzExpandChange.emit(t);break;case"click":this.nzClick.emit(t);break;case"dblclick":this.nzDblClick.emit(t);break;case"contextmenu":this.nzContextMenu.emit(t);break;case"check":this.nzTreeService.setCheckedNodeList(e),this.nzCheckStrictly||this.nzTreeService.conduct(e);const n=this.nzTreeService.formatEvent("check",e,t.event);this.nzCheckBoxChange.emit(n);break;case"dragstart":e.isExpanded&&(e.setExpanded(!e.isExpanded),this.renderTree()),this.nzOnDragStart.emit(t);break;case"dragenter":const i=this.nzTreeService.getSelectedNode();i&&i.key!==e.key&&!e.isExpanded&&!e.isLeaf&&(e.setExpanded(!0),this.renderTree()),this.nzOnDragEnter.emit(t);break;case"dragover":this.nzOnDragOver.emit(t);break;case"dragleave":this.nzOnDragLeave.emit(t);break;case"dragend":this.nzOnDragEnd.emit(t);break;case"drop":this.renderTree(),this.nzOnDrop.emit(t)}}renderTree(){this.handleFlattenNodes(this.nzTreeService.rootNodes,this.getExpandedNodeList().map((t=>t.key))),this.cdr.markForCheck()}ngOnInit(){var t;this.nzTreeService.flattenNodes$.pipe(aC(this.destroy$)).subscribe((t=>{this.nzFlattenNodes=t,this.cdr.markForCheck()})),this.dir=this.directionality.value,null===(t=this.directionality.change)||void 0===t||t.pipe(aC(this.destroy$)).subscribe((t=>{this.dir=t,this.cdr.detectChanges()}))}ngOnChanges(t){this.renderTreeProperties(t)}ngAfterViewInit(){this.beforeInit=!1}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(rR),Zo(ZS),Zo(Gl),Zo(Fx,8),Zo(Gk,9))},t["ɵcmp"]=qt({type:t,selectors:[["nz-tree"]],contentQueries:function(t,e,n){if(1&t&&Hc(n,PR,7),2&t){let t;Vc(t=Gc())&&(e.nzTreeTemplateChild=t.first)}},viewQuery:function(t,e){if(1&t&&Nc(BC,5,BC),2&t){let t;Vc(t=Gc())&&(e.cdkVirtualScrollViewport=t.first)}},hostVars:20,hostBindings:function(t,e){2&t&&Cs("ant-select-tree",e.nzSelectMode)("ant-select-tree-show-line",e.nzSelectMode&&e.nzShowLine)("ant-select-tree-icon-hide",e.nzSelectMode&&!e.nzShowIcon)("ant-select-tree-block-node",e.nzSelectMode&&e.nzBlockNode)("ant-tree",!e.nzSelectMode)("ant-tree-rtl","rtl"===e.dir)("ant-tree-show-line",!e.nzSelectMode&&e.nzShowLine)("ant-tree-icon-hide",!e.nzSelectMode&&!e.nzShowIcon)("ant-tree-block-node",!e.nzSelectMode&&e.nzBlockNode)("draggable-tree",e.nzDraggable)},inputs:{nzShowIcon:"nzShowIcon",nzHideUnMatched:"nzHideUnMatched",nzBlockNode:"nzBlockNode",nzExpandAll:"nzExpandAll",nzSelectMode:"nzSelectMode",nzCheckStrictly:"nzCheckStrictly",nzShowExpand:"nzShowExpand",nzShowLine:"nzShowLine",nzCheckable:"nzCheckable",nzAsyncData:"nzAsyncData",nzDraggable:"nzDraggable",nzMultiple:"nzMultiple",nzVirtualItemSize:"nzVirtualItemSize",nzVirtualMaxBufferPx:"nzVirtualMaxBufferPx",nzVirtualMinBufferPx:"nzVirtualMinBufferPx",nzVirtualHeight:"nzVirtualHeight",nzData:"nzData",nzExpandedKeys:"nzExpandedKeys",nzSelectedKeys:"nzSelectedKeys",nzCheckedKeys:"nzCheckedKeys",nzSearchValue:"nzSearchValue",nzExpandedIcon:"nzExpandedIcon",nzTreeTemplate:"nzTreeTemplate",nzBeforeDrop:"nzBeforeDrop",nzSearchFunc:"nzSearchFunc"},outputs:{nzExpandedKeysChange:"nzExpandedKeysChange",nzSelectedKeysChange:"nzSelectedKeysChange",nzCheckedKeysChange:"nzCheckedKeysChange",nzSearchValueChange:"nzSearchValueChange",nzClick:"nzClick",nzDblClick:"nzDblClick",nzContextMenu:"nzContextMenu",nzCheckBoxChange:"nzCheckBoxChange",nzExpandChange:"nzExpandChange",nzOnDragStart:"nzOnDragStart",nzOnDragEnter:"nzOnDragEnter",nzOnDragOver:"nzOnDragOver",nzOnDragLeave:"nzOnDragLeave",nzOnDrop:"nzOnDrop",nzOnDragEnd:"nzOnDragEnd"},exportAs:["nzTree"],features:[hl([NR,{provide:rR,useFactory:HR,deps:[[new _i,new Pi,aR],NR]},{provide:Km,useExisting:ut((()=>t)),multi:!0}]),Co,pe],decls:8,vars:5,consts:[["role","tree"],[3,"ngStyle"],[1,"ant-tree-list"],[3,"ant-select-tree-list-holder-inner","ant-tree-list-holder-inner","itemSize","minBufferPx","maxBufferPx","height",4,"ngIf"],[3,"ant-select-tree-list-holder-inner","ant-tree-list-holder-inner","nzNoAnimation",4,"ngIf"],["nodeTemplate",""],[3,"itemSize","minBufferPx","maxBufferPx"],[4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"nzNoAnimation"],[4,"ngFor","ngForOf","ngForTrackBy"],["builtin","",3,"icon","title","isLoading","isSelected","isDisabled","isMatched","isExpanded","isLeaf","isStart","isEnd","isChecked","isHalfChecked","isDisableCheckbox","isSelectable","canHide","nzTreeNode","nzSelectMode","nzShowLine","nzExpandedIcon","nzDraggable","nzCheckable","nzShowExpand","nzAsyncData","nzSearchValue","nzHideUnMatched","nzBeforeDrop","nzShowIcon","nzTreeTemplate","nzExpandChange","nzClick","nzDblClick","nzContextMenu","nzCheckBoxChange","nzOnDragStart","nzOnDragEnter","nzOnDragOver","nzOnDragLeave","nzOnDragEnd","nzOnDrop"]],template:function(t,e){1&t&&(Yo(0,"div",0),Xo(1,"input",1),jo(),Yo(2,"div",2),Yo(3,"div"),Ho(4,ER,2,11,"cdk-virtual-scroll-viewport",3),Ho(5,TR,2,9,"div",4),jo(),jo(),Ho(6,IR,1,28,"ng-template",null,5,Yc)),2&t&&(sa(1),Uo("ngStyle",e.HIDDEN_STYLE),sa(1),Cs("ant-select-tree-list",e.nzSelectMode),sa(2),Uo("ngIf",e.nzVirtualHeight),sa(1),Uo("ngIf",!e.nzVirtualHeight))},directives:[Qd,Yd,BC,IC,NC,tu,Gk,Ud,VR],encapsulation:2,data:{animation:[x_]},changeDetection:0}),Bk([hx(),US()],t.prototype,"nzShowIcon",void 0),Bk([hx(),US()],t.prototype,"nzHideUnMatched",void 0),Bk([hx(),US()],t.prototype,"nzBlockNode",void 0),Bk([hx()],t.prototype,"nzExpandAll",void 0),Bk([hx()],t.prototype,"nzSelectMode",void 0),Bk([hx()],t.prototype,"nzCheckStrictly",void 0),Bk([hx()],t.prototype,"nzShowExpand",void 0),Bk([hx()],t.prototype,"nzShowLine",void 0),Bk([hx()],t.prototype,"nzCheckable",void 0),Bk([hx()],t.prototype,"nzAsyncData",void 0),Bk([hx()],t.prototype,"nzDraggable",void 0),Bk([hx()],t.prototype,"nzMultiple",void 0),t})(),ZR=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({imports:[[Vx,nu,Yk,nP,Zk,Qz,GC]]}),t})(),UR=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({imports:[Y_,oM,yM,SM,yA,kA,nP,d_,_A,ZA,NT,iI,dI,RL,tz,qz,$T,ZR]}),t})(),WR=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({imports:[[nu]]}),t})();function YR(t,e,n,i,r,a,o){try{var s=t[a](o),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}function jR(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var a=t.apply(e,n);function o(t){YR(a,i,r,o,s,"next",t)}function s(t){YR(a,i,r,o,s,"throw",t)}o(void 0)}))}}class XR{static isEqualPoint(t){return t<XR.EQUAL_POINT&&t>-XR.EQUAL_POINT}static isZero(t,e){let n=e||XR.EPSILON;return t<n&&t>-n}static isNonZero(t){return!XR.isZero(t)}static orthoVector(t,e){let n=t.normal();Math.abs(n.mX)<1/64&&Math.abs(n.mY)<1/64?e.set(n.mZ,0,-n.mX):e.set(-n.mY,n.mX,0),e.normalize()}static getIntegerPart(t){if(isNaN(t)||null==t||null==t)return t;let e=t.toString().split(".");return 2===e.length?Number(e[0]):t}static getDotPart(t){if(isNaN(t)||null==t||null==t)return t;let e=t.toString().split(".");return 2===e.length?Number(0+e[1]):t}static isEqual(t,e){return this.isZero(t-e)}static scienceCount(t){let e="",n=t.toString();if(n.indexOf("e")>-1){let i=n.split("e");e+=Number(t)>0?i[0].slice(0,4):i[0].slice(0,5),e+="E"+i[1]}else{let t=n.split(".")[0];Number(t)>0&&t.length>7||Number(t)<0&&t.length>8?(Number(t)>0?e+=t[0]+"."+t.slice(1,3)+"E":e+=t[0]+t[1]+"."+t.slice(2,4)+"E",e+="+"+(t.length-1)):e=n}return e}static asInt(t){return t>XR.kIntMax?Math.floor(t):t<XR.kIntMin?Math.ceil(t):parseInt(t+"")}}XR.EPSILON=1.1920928e-7,XR.EPSILON6=1e-6,XR.EPSILON8=1e-8,XR.TOL_VECTOR=1e-12,XR.TOL_POTINT=1e-10,XR.ULONG_MAX=16777215,XR.INT_MIN=-10001,XR.INT_MAX=1e4,XR.kIntMin=-2147483648,XR.kIntMax=2147483647,XR.EQUAL_POINT=1e-5,XR.ZWGR_TWOPI=2*Math.PI,XR.ZWGR_PI=Math.PI,XR.ZWGR_HALFPI=.5*Math.PI,XR.ZWMAX_RANGE=1e20;class qR{constructor(t,e,n){this.mX=t||0,this.mY=e||0,this.mZ=n||0}set(t,e,n){this.mX=t,this.mY=e,this.mZ=n}length(){let t=Math.abs(this.mX),e=Math.abs(this.mY),n=Math.abs(this.mZ),i=t>e?t:e;return n>i&&(i=n),XR.isZero(i)?0:Math.sqrt(this.mX*this.mX+this.mY*this.mY+this.mZ*this.mZ)}mul(t){this.mX*=t,this.mY*=t,this.mZ*=t}mul2Vec(t){return new qR(this.mX*t,this.mY*t,this.mZ*t)}div2Vec(t){return new qR(this.mX/t,this.mY/t,this.mZ/t)}div(t){XR.isZero(t)||(this.mX/=t,this.mY/=t,this.mZ/=t)}normalize(){let t=this.length();t>XR.TOL_VECTOR&&this.div(t)}copy(t){this.mX=t.mX,this.mY=t.mY,this.mZ=t.mZ}normal(){let t=new qR;return t.copy(this),t.normalize(),t}isEqualTo(t){return Math.abs(this.mX-t.mX)<XR.TOL_VECTOR&&Math.abs(this.mY-t.mY)<XR.TOL_VECTOR&&Math.abs(this.mZ-t.mZ)<XR.TOL_VECTOR}isParallelTo(t){let e=t,n=new qR(-t.mX,-t.mY,-t.mZ);return 0===this.angleTo(e)||0===this.angleTo(n)}isPerpendicularTo(t){let e=t,n=new qR(-t.mX,-t.mY,-t.mZ);return 180*this.angleTo(e)/XR.ZWGR_PI==90||180*this.angleTo(n)/XR.ZWGR_PI==90}prepVector(){if(this.isEqualTo(qR.Identity()))return qR.Identity();let t=new qR;return XR.orthoVector(this,t),t}crossProduct(t){return new qR(this.mY*t.mZ-this.mZ*t.mY,this.mZ*t.mX-this.mX*t.mZ,this.mX*t.mY-this.mY*t.mX)}rotateBy(t,e){let n=new JR;n.setToRotate(t,e,QR.Origin);let i=this.mulMatrix3d(n,this);this.copy(i)}mulMatrix3d(t,e){let n=t.getEntry(),i=new qR;return i.mX=n[0][0]*e.mX+n[0][1]*e.mY+n[0][2]*e.mZ,i.mY=n[1][0]*e.mX+n[1][1]*e.mY+n[1][2]*e.mZ,i.mZ=n[2][0]*e.mX+n[2][1]*e.mY+n[2][2]*e.mZ,i}transformBy(t){let e=new qR;e.copy(this);let n=this.mulMatrix3d(t,e);this.copy(n)}substract(t){this.mX-=t.mX,this.mY-=t.mY,this.mZ-=t.mZ}dotProduct(t){return this.mX*t.mX+this.mY*t.mY+this.mZ*t.mZ}angleTo(t){let e=this.dotProduct(t),n=this.crossProduct(t).length();return Math.atan2(n,e)}angleToWith2Vec(t,e){return e.dotProduct(this.crossProduct(t))<0?XR.ZWGR_TWOPI-this.angleTo(t):this.angleTo(t)}asPoint(){return new QR(this.mX,this.mY,this.mZ)}static Identity(){return new qR(0,0,0)}static XAxis(){return new qR(1,0,0)}static YAxis(){return new qR(0,1,0)}static ZAxis(){return new qR(0,0,1)}static ADD(t,e){return new qR(t.mX+e.mX,t.mY+e.mY,t.mZ+e.mZ)}static SUB(t,e){return new qR(t.mX-e.mX,t.mY-e.mY,t.mZ-e.mZ)}toString(){return"{ mX: "+this.mX+", mY: "+this.mY+", mZ: "+this.mZ+" }"}isZeroLength(){return this.mX*this.mX+this.mY*this.mY+this.mZ*this.mZ<=1e-24}perpVector(){let t=this.ortho_vector();return t.normalize(),t}ortho_vector(){let t=new qR,e=1/64;return Math.abs(this.mX)<e&&Math.abs(this.mY)<e?(t.set(this.mZ,0,-this.mX),t.isZeroLength()&&t.set(-this.mY,this.mX,0)):t.set(-this.mY,this.mX,0),t}}var $R,KR=(($R=KR||(KR={}))[$R.MAT_FLAG_IDENTITY=0]="MAT_FLAG_IDENTITY",$R[$R.MAT_FLAG_TRANS=1]="MAT_FLAG_TRANS",$R[$R.MAT_FLAG_SCALE=2]="MAT_FLAG_SCALE",$R[$R.MAT_FLAG_ROTATE=4]="MAT_FLAG_ROTATE",$R[$R.MAT_FLAG_DIVISION=8]="MAT_FLAG_DIVISION",$R[$R.MAT_FLAG_TRANS_SCALE=3]="MAT_FLAG_TRANS_SCALE",$R[$R.MAT_FLAG_TRANS_SCALE_ROTATE=7]="MAT_FLAG_TRANS_SCALE_ROTATE",KR);let JR=(()=>{class t{constructor(){this.mMatrixType=KR.MAT_FLAG_IDENTITY,this.mEntry=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]]}static getPlannarBoundary(t,e,n){if(t.mMatrixType==KR.MAT_FLAG_IDENTITY)return void(e.mZ=n.mZ=0);if(t.mMatrixType==KR.MAT_FLAG_TRANS)return t.mulPt(e),e.copy(t.mulPt(e)),n.copy(t.mulPt(n)),void(e.mZ=n.mZ=0);if(t.mMatrixType&KR.MAT_FLAG_DIVISION)return;let i=n.sub2vec(e);e.copy(t.mulPt(e)),e.mZ=0,n.copy(e);let r=0,a=XR.isNonZero(i.mX),o=XR.isNonZero(i.mY),s=XR.isNonZero(i.mZ);a&&(r=i.mX*t.mEntry[0][0],r>0?n.mX+=r:e.mX+=r),o&&(r=i.mY*t.mEntry[1][1],r>0?n.mY+=r:e.mY+=r),t.mMatrixType!=KR.MAT_FLAG_SCALE&&t.mMatrixType!=KR.MAT_FLAG_TRANS_SCALE&&(a&&(r=i.mX*t.mEntry[1][0],r>0?n.mY+=r:e.mY+=r),o&&(r=i.mY*t.mEntry[0][1],r>0?n.mX+=r:e.mX+=r),s&&(r=i.mZ*t.mEntry[0][2],r>0?n.mX+=r:e.mX+=r,r=i.mZ*t.mEntry[1][2],r>0?n.mY+=r:e.mY+=r))}mulPt(e){let n=new QR;if(this.mMatrixType==KR.MAT_FLAG_IDENTITY)return n.copy(e),n;if(this.mMatrixType==KR.MAT_FLAG_TRANS)n.mX=e.mX+this.mEntry[0][3],n.mY=e.mY+this.mEntry[1][3],n.mZ=e.mZ+this.mEntry[2][3];else if(this.mMatrixType==KR.MAT_FLAG_TRANS_SCALE||this.mMatrixType==KR.MAT_FLAG_SCALE)n.mX=e.mX*this.mEntry[0][0]+this.mEntry[0][3],n.mY=e.mY*this.mEntry[1][1]+this.mEntry[1][3],n.mZ=e.mZ*this.mEntry[2][2]+this.mEntry[2][3];else if(this.mMatrixType&KR.MAT_FLAG_DIVISION){let i=this.mEntry[3][0]*e.mX+this.mEntry[3][1]*e.mY+this.mEntry[3][2]*e.mZ+this.mEntry[3][3];Math.abs(i)<t.DBL_EPSILON?(n.mX=e.mX,n.mY=e.mY,n.mZ=e.mZ):(n.mX=(this.mEntry[0][0]*e.mX+this.mEntry[0][1]*e.mY+this.mEntry[0][2]*e.mZ+this.mEntry[0][3])/i,n.mY=(this.mEntry[1][0]*e.mX+this.mEntry[1][1]*e.mY+this.mEntry[1][2]*e.mZ+this.mEntry[1][3])/i,n.mZ=(this.mEntry[2][0]*e.mX+this.mEntry[2][1]*e.mY+this.mEntry[2][2]*e.mZ+this.mEntry[2][3])/i)}else n.mX=this.mEntry[0][0]*e.mX+this.mEntry[0][1]*e.mY+this.mEntry[0][2]*e.mZ+this.mEntry[0][3],n.mY=this.mEntry[1][0]*e.mX+this.mEntry[1][1]*e.mY+this.mEntry[1][2]*e.mZ+this.mEntry[1][3],n.mZ=this.mEntry[2][0]*e.mX+this.mEntry[2][1]*e.mY+this.mEntry[2][2]*e.mZ+this.mEntry[2][3];return n}copy(t){for(let e=0;e<this.mEntry.length;e++){let n=this.mEntry[e],i=t.mEntry[e];for(let t=0;t<n.length;t++)n[t]=i[t]}this.mMatrixType=t.mMatrixType}setToIdentity(){for(let t=0;t<this.mEntry.length;t++){let e=this.mEntry[t];for(let t=0;t<e.length;t++)e[t]=0}this.mEntry[0][0]=1,this.mEntry[1][1]=1,this.mEntry[2][2]=1,this.mEntry[3][3]=1,this.mMatrixType=KR.MAT_FLAG_IDENTITY}det(){return this.mEntry[0][0]*this.mEntry[1][1]*this.mEntry[2][2]+this.mEntry[1][0]*this.mEntry[2][1]*this.mEntry[0][2]+this.mEntry[2][0]*this.mEntry[0][1]*this.mEntry[1][2]-this.mEntry[2][0]*this.mEntry[1][1]*this.mEntry[0][2]-this.mEntry[1][0]*this.mEntry[0][1]*this.mEntry[2][2]-this.mEntry[0][0]*this.mEntry[2][1]*this.mEntry[1][2]}invert(){let t=this.inverse();return this.copy(t),this}inverse(e){void 0===e&&(e=1e-300);let n=new t;n.copy(this);let i=this.det();return Math.abs(i)<e||(n.mEntry[0][0]=(this.mEntry[1][1]*this.mEntry[2][2]-this.mEntry[1][2]*this.mEntry[2][1])/i,n.mEntry[0][1]=-(this.mEntry[0][1]*this.mEntry[2][2]-this.mEntry[0][2]*this.mEntry[2][1])/i,n.mEntry[0][2]=(this.mEntry[0][1]*this.mEntry[1][2]-this.mEntry[0][2]*this.mEntry[1][1])/i,n.mEntry[0][3]=-(this.mEntry[0][1]*this.mEntry[1][2]*this.mEntry[2][3]+this.mEntry[0][2]*this.mEntry[1][3]*this.mEntry[2][1]+this.mEntry[0][3]*this.mEntry[1][1]*this.mEntry[2][2]-this.mEntry[0][3]*this.mEntry[1][2]*this.mEntry[2][1]-this.mEntry[0][2]*this.mEntry[1][1]*this.mEntry[2][3]-this.mEntry[0][1]*this.mEntry[1][3]*this.mEntry[2][2])/i,n.mEntry[1][0]=-(this.mEntry[1][0]*this.mEntry[2][2]-this.mEntry[1][2]*this.mEntry[2][0])/i,n.mEntry[1][1]=(this.mEntry[0][0]*this.mEntry[2][2]-this.mEntry[0][2]*this.mEntry[2][0])/i,n.mEntry[1][2]=-(this.mEntry[0][0]*this.mEntry[1][2]-this.mEntry[0][2]*this.mEntry[1][0])/i,n.mEntry[1][3]=(this.mEntry[0][0]*this.mEntry[1][2]*this.mEntry[2][3]+this.mEntry[0][2]*this.mEntry[1][3]*this.mEntry[2][0]+this.mEntry[0][3]*this.mEntry[1][0]*this.mEntry[2][2]-this.mEntry[0][3]*this.mEntry[1][2]*this.mEntry[2][0]-this.mEntry[0][2]*this.mEntry[1][0]*this.mEntry[2][3]-this.mEntry[0][0]*this.mEntry[1][3]*this.mEntry[2][2])/i,n.mEntry[2][0]=(this.mEntry[1][0]*this.mEntry[2][1]-this.mEntry[1][1]*this.mEntry[2][0])/i,n.mEntry[2][1]=-(this.mEntry[0][0]*this.mEntry[2][1]-this.mEntry[0][1]*this.mEntry[2][0])/i,n.mEntry[2][2]=(this.mEntry[0][0]*this.mEntry[1][1]-this.mEntry[0][1]*this.mEntry[1][0])/i,n.mEntry[2][3]=-(this.mEntry[0][0]*this.mEntry[1][1]*this.mEntry[2][3]+this.mEntry[0][1]*this.mEntry[1][3]*this.mEntry[2][0]+this.mEntry[0][3]*this.mEntry[1][0]*this.mEntry[2][1]-this.mEntry[0][3]*this.mEntry[1][1]*this.mEntry[2][0]-this.mEntry[0][1]*this.mEntry[1][0]*this.mEntry[2][3]-this.mEntry[0][0]*this.mEntry[1][3]*this.mEntry[2][1])/i,n.analyse()),n}setToRotate(e,n,i){this.setToIdentity();let r=Math.abs(e);if(!(r<1e-10||r>1e10)){if(this.mEntry[0][0]=this.mEntry[1][1]=Math.cos(e),this.mEntry[0][1]=-(this.mEntry[1][0]=Math.sin(e)),n.isEqualTo(qR.ZAxis())){let e=new t;e.setToTranslation(i.asVector());let n=new t,r=i.asVector();r.mul(-1),n.setToTranslation(r),e.mul(this),e.mul(n),this.copy(e)}else{let e=t.worldToPlane(n),i=t.planeToWorld(n);i.mul(this),i.mul(e),this.copy(i)}this.analyse()}}setToTranslation(t){this.setToIdentity(),this.mEntry[0][3]=t.mX,this.mEntry[1][3]=t.mY,this.mEntry[2][3]=t.mZ,this.analyse()}static worldToPlane(e){let n=t.planeToWorld(e);return n.invert(),n}static planeToWorld(e){let n=new t,i=new qR,r=new qR,a=e.normal();return Math.abs(a.mX)<this.ARBBOUND&&Math.abs(a.mY)<this.ARBBOUND?(i.copy(qR.YAxis()),i=i.crossProduct(a)):(i.copy(qR.ZAxis()),i=i.crossProduct(a)),i.normalize(),r.copy(a),r=r.crossProduct(i),n.setCoordSystem(QR.Origin,i,r,a),n}setCoordSystem(t,e,n,i){this.mEntry[0][0]=e.mX,this.mEntry[1][0]=e.mY,this.mEntry[2][0]=e.mZ,this.mEntry[3][0]=0,this.mEntry[0][1]=n.mX,this.mEntry[1][1]=n.mY,this.mEntry[2][1]=n.mZ,this.mEntry[3][1]=0,this.mEntry[0][2]=i.mX,this.mEntry[1][2]=i.mY,this.mEntry[2][2]=i.mZ,this.mEntry[3][2]=0,this.mEntry[0][3]=t.mX,this.mEntry[1][3]=t.mY,this.mEntry[2][3]=t.mZ,this.mEntry[3][3]=1,this.analyse()}mul(e){let n=new t;return n.setToProduct(this,e),this.copy(n),this.analyse(),this}setToProduct(t,e){this.mEntry[0][0]=e.mEntry[0][0]*t.mEntry[0][0]+e.mEntry[1][0]*t.mEntry[0][1]+e.mEntry[2][0]*t.mEntry[0][2]+e.mEntry[3][0]*t.mEntry[0][3],this.mEntry[1][0]=e.mEntry[0][0]*t.mEntry[1][0]+e.mEntry[1][0]*t.mEntry[1][1]+e.mEntry[2][0]*t.mEntry[1][2]+e.mEntry[3][0]*t.mEntry[1][3],this.mEntry[2][0]=e.mEntry[0][0]*t.mEntry[2][0]+e.mEntry[1][0]*t.mEntry[2][1]+e.mEntry[2][0]*t.mEntry[2][2]+e.mEntry[3][0]*t.mEntry[2][3],this.mEntry[3][0]=e.mEntry[0][0]*t.mEntry[3][0]+e.mEntry[1][0]*t.mEntry[3][1]+e.mEntry[2][0]*t.mEntry[3][2]+e.mEntry[3][0]*t.mEntry[3][3],this.mEntry[0][1]=e.mEntry[0][1]*t.mEntry[0][0]+e.mEntry[1][1]*t.mEntry[0][1]+e.mEntry[2][1]*t.mEntry[0][2]+e.mEntry[3][1]*t.mEntry[0][3],this.mEntry[1][1]=e.mEntry[0][1]*t.mEntry[1][0]+e.mEntry[1][1]*t.mEntry[1][1]+e.mEntry[2][1]*t.mEntry[1][2]+e.mEntry[3][1]*t.mEntry[1][3],this.mEntry[2][1]=e.mEntry[0][1]*t.mEntry[2][0]+e.mEntry[1][1]*t.mEntry[2][1]+e.mEntry[2][1]*t.mEntry[2][2]+e.mEntry[3][1]*t.mEntry[2][3],this.mEntry[3][1]=e.mEntry[0][1]*t.mEntry[3][0]+e.mEntry[1][1]*t.mEntry[3][1]+e.mEntry[2][1]*t.mEntry[3][2]+e.mEntry[3][1]*t.mEntry[3][3],this.mEntry[0][2]=e.mEntry[0][2]*t.mEntry[0][0]+e.mEntry[1][2]*t.mEntry[0][1]+e.mEntry[2][2]*t.mEntry[0][2]+e.mEntry[3][2]*t.mEntry[0][3],this.mEntry[1][2]=e.mEntry[0][2]*t.mEntry[1][0]+e.mEntry[1][2]*t.mEntry[1][1]+e.mEntry[2][2]*t.mEntry[1][2]+e.mEntry[3][2]*t.mEntry[1][3],this.mEntry[2][2]=e.mEntry[0][2]*t.mEntry[2][0]+e.mEntry[1][2]*t.mEntry[2][1]+e.mEntry[2][2]*t.mEntry[2][2]+e.mEntry[3][2]*t.mEntry[2][3],this.mEntry[3][2]=e.mEntry[0][2]*t.mEntry[3][0]+e.mEntry[1][2]*t.mEntry[3][1]+e.mEntry[2][2]*t.mEntry[3][2]+e.mEntry[3][2]*t.mEntry[3][3],this.mEntry[0][3]=e.mEntry[0][3]*t.mEntry[0][0]+e.mEntry[1][3]*t.mEntry[0][1]+e.mEntry[2][3]*t.mEntry[0][2]+e.mEntry[3][3]*t.mEntry[0][3],this.mEntry[1][3]=e.mEntry[0][3]*t.mEntry[1][0]+e.mEntry[1][3]*t.mEntry[1][1]+e.mEntry[2][3]*t.mEntry[1][2]+e.mEntry[3][3]*t.mEntry[1][3],this.mEntry[2][3]=e.mEntry[0][3]*t.mEntry[2][0]+e.mEntry[1][3]*t.mEntry[2][1]+e.mEntry[2][3]*t.mEntry[2][2]+e.mEntry[3][3]*t.mEntry[2][3],this.mEntry[3][3]=e.mEntry[0][3]*t.mEntry[3][0]+e.mEntry[1][3]*t.mEntry[3][1]+e.mEntry[2][3]*t.mEntry[3][2]+e.mEntry[3][3]*t.mEntry[3][3],this.analyse()}analyse(){this.mMatrixType=KR.MAT_FLAG_IDENTITY;let t=2220446049250313e-31;(Math.abs(this.mEntry[0][3])>t||Math.abs(this.mEntry[1][3])>t||Math.abs(this.mEntry[2][3])>t)&&(this.mMatrixType|=KR.MAT_FLAG_TRANS),(Math.abs(this.mEntry[0][0]-1)>t||Math.abs(this.mEntry[1][1]-1)>t||Math.abs(this.mEntry[2][2]-1)>t)&&(this.mMatrixType|=KR.MAT_FLAG_SCALE),(Math.abs(this.mEntry[0][1])>t||Math.abs(this.mEntry[0][2])>t||Math.abs(this.mEntry[1][0])>t||Math.abs(this.mEntry[1][2])>t||Math.abs(this.mEntry[3][0])>t||Math.abs(this.mEntry[3][1])>t)&&(this.mMatrixType|=KR.MAT_FLAG_ROTATE),(Math.abs(this.mEntry[3][0])>t||Math.abs(this.mEntry[3][1])>t||Math.abs(this.mEntry[3][2])>t||Math.abs(this.mEntry[3][3]-1)>t)&&(this.mMatrixType|=KR.MAT_FLAG_DIVISION)}getEntry(){return this.mEntry}getEntryRow(t){return this.mEntry[t]}getEntryRank(t,e){return this.mEntry[t][e]}setEntry(t){this.mEntry=t,this.analyse()}setEntryRow(t,e){this.mEntry[t]=e,this.analyse()}setEntryRows(t){t.forEach((t=>{this.mEntry[t.row]=t.value})),this.analyse()}setEntryRank(t,e,n){this.mEntry[t][e]=n,this.analyse()}setEntryRanks(t){t.forEach((t=>{this.mEntry[t.row][t.col]=t.value})),this.analyse()}}return t.DBL_EPSILON=2220446049250313e-31,t.ARBBOUND=.015625,t})();class QR{constructor(t,e,n){this.mX=t||0,this.mY=e||0,this.mZ=n||0}set(t,e,n){this.mX=t,this.mY=e,this.mZ=n}addPosition(t){this.mX+=t.mX,this.mY+=t.mY,this.mZ+=t.mZ}addVector(t){this.mX+=t.mX,this.mY+=t.mY,this.mZ+=t.mZ}asVector(){return new qR(this.mX,this.mY,this.mZ)}add2Point(t){return new QR(this.mX+t.mX,this.mY+t.mY,this.mZ+t.mZ)}sub2vec(t){return new qR(this.mX-t.mX,this.mY-t.mY,this.mZ-t.mZ)}subVector(t){this.mX-=t.mX,this.mY-=t.mY,this.mZ-=t.mZ}sub2Point(t){return new QR(this.mX-t.mX,this.mY-t.mY,this.mZ-t.mZ)}copy(t){this.mX=t.mX,this.mY=t.mY,this.mZ=t.mZ}mulMatrix(t){let e=t.getEntry(),n=0,i=0,r=0;if(t.mMatrixType!=KR.MAT_FLAG_IDENTITY){if(t.mMatrixType==KR.MAT_FLAG_TRANS)n=this.mX+e[0][3],i=this.mY+e[1][3],r=this.mZ+e[2][3];else if(t.mMatrixType==KR.MAT_FLAG_TRANS_SCALE||t.mMatrixType==KR.MAT_FLAG_SCALE)n=this.mX*e[0][0]+e[0][3],i=this.mY*e[1][1]+e[1][3],r=this.mZ*e[2][2]+e[2][3];else if(t.mMatrixType&KR.MAT_FLAG_DIVISION){let t=e[3][0]*this.mX+e[3][1]*this.mY+e[3][2]*this.mZ+e[3][3];if(Math.abs(t)<JR.DBL_EPSILON)return;n=(e[0][0]*this.mX+e[0][1]*this.mY+e[0][2]*this.mZ+e[0][3])/t,i=(e[1][0]*this.mX+e[1][1]*this.mY+e[1][2]*this.mZ+e[1][3])/t,r=(e[2][0]*this.mX+e[2][1]*this.mY+e[2][2]*this.mZ+e[2][3])/t}else n=e[0][0]*this.mX+e[0][1]*this.mY+e[0][2]*this.mZ+e[0][3],i=e[1][0]*this.mX+e[1][1]*this.mY+e[1][2]*this.mZ+e[1][3],r=e[2][0]*this.mX+e[2][1]*this.mY+e[2][2]*this.mZ+e[2][3];this.set(n,i,r)}}isEqual(t){let e=XR.isEqualPoint(t.mX-this.mX),n=XR.isEqualPoint(t.mY-this.mY),i=XR.isEqualPoint(t.mZ-this.mZ);return e&&n&&i}toString(){return"{ mX: "+this.mX+", mY: "+this.mY+", mZ: "+this.mZ+" }"}}QR.Origin=new QR(0,0,0);var tF,eF=((tF=eF||(eF={}))[tF.kKeyboard=0]="kKeyboard",tF[tF.kMouseMove=1]="kMouseMove",tF[tF.kMouseLBDown=2]="kMouseLBDown",tF[tF.kMouseLBUp=3]="kMouseLBUp",tF[tF.kMouseRBDown=4]="kMouseRBDown",tF[tF.kMouseRBUp=5]="kMouseRBUp",tF[tF.kMouseMBDown=6]="kMouseMBDown",tF[tF.kMouseMBUp=7]="kMouseMBUp",tF[tF.kMouseMBWheel=8]="kMouseMBWheel",tF[tF.kMouseReserve=9]="kMouseReserve",tF[tF.kMouseLBDblClick=10]="kMouseLBDblClick",tF[tF.kMouseMBDblClick=11]="kMouseMBDblClick",tF[tF.kMouseRBDblClick=12]="kMouseRBDblClick",tF[tF.kMouseEventMask=15]="kMouseEventMask",tF[tF.kSetCaretPos=16]="kSetCaretPos",tF[tF.kLeftMoveCaret=32]="kLeftMoveCaret",tF[tF.kRightMoveCaret=48]="kRightMoveCaret",tF[tF.kHomeCaret=64]="kHomeCaret",tF[tF.kEndCaret=80]="kEndCaret",tF[tF.kEnterCaret=96]="kEnterCaret",tF[tF.kEscapeCaret=112]="kEscapeCaret",tF[tF.kCaretEventMask=240]="kCaretEventMask",tF[tF.kEventTypeCount=80]="kEventTypeCount",tF[tF.kEventTypeMask=255]="kEventTypeMask",tF[tF.kMouseLBFlag=256]="kMouseLBFlag",tF[tF.kMouseRBFlag=512]="kMouseRBFlag",tF[tF.kMouseMBFlag=1024]="kMouseMBFlag",tF[tF.kMouseBPressFlag=2048]="kMouseBPressFlag",tF[tF.kMouseModifierMask=3840]="kMouseModifierMask",tF[tF.kFDEFlag=4096]="kFDEFlag",tF[tF.kScriptFlag=8192]="kScriptFlag",tF[tF.kQueueExprFlag=16384]="kQueueExprFlag",tF[tF.kQueueExprDispFlag=32768]="kQueueExprDispFlag",tF[tF.kQueueExprMask=49152]="kQueueExprMask",tF[tF.kAppMask=61440]="kAppMask",tF[tF.kWakeupFromEventFlag=65536]="kWakeupFromEventFlag",tF[tF.kMenuCmdStrFlag=131072]="kMenuCmdStrFlag",tF[tF.kValueFromKeyboard=268435456]="kValueFromKeyboard",tF[tF.kInvalid=2147483648]="kInvalid",eF);let nF=(()=>{class t{constructor(){}isMouseDownEvent(t){return t===eF.kMouseLBDown}isMouseEvent(t){return t>=eF.kMouseMove&&t<eF.kMouseEventMask}isKeyboardEvent(t){return t===eF.kKeyboard||t===eF.kEnterCaret||t===eF.kEscapeCaret}isTheEventType(t,e){return!(t>eF.kEventTypeCount)&&t===e}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵprov"]=vt({token:t,factory:t["ɵfac"],providedIn:"root"}),t})();const iF={top:150,bottom:150,left:330,right:300,layerPanel:{WindowOrient:"left",WindowVisible:"hide",index:0,xval:700,yval:200,width:450,height:200,showPosition:["left","right"]},xrefPanel:{WindowOrient:"left",WindowVisible:"hide",index:1,xval:700,yval:200,width:450,height:200,showPosition:["left","right"]},commandPanel:{WindowOrient:"bottom",WindowVisible:"hide",index:2,xval:700,yval:200,width:450,height:200,showPosition:["bottom"]},commentPanel:{WindowOrient:"left",WindowVisible:"hide",index:3,xval:700,yval:200,width:450,height:200,showPosition:["left","right"]},opmPanel:{WindowOrient:"left",WindowVisible:"hide",index:3,xval:700,yval:200,width:450,height:200,showPosition:["left","right"]},versionPanel:{WindowOrient:"left",WindowVisible:"hide",index:4,xval:700,yval:200,width:450,height:200,showPosition:["left","right"]},signPanel:{WindowOrient:"left",WindowVisible:"hide",index:3,xval:700,yval:200,width:450,height:200,showPosition:["left","right"]},options:{cursorSize:15,zoomLevel:1.6,commentsPageSize:40,continuousDraw:!1,format:"",version:""}};function rF(t){return"number"==typeof t}function aF(t){return t instanceof Array}function oF(t){return["left","bottom","top","right","floating"].includes(t)}function sF(t){if(aF(t)){let e=t.length;for(let n=0;n<e;n++)if(!oF(t[n]))return!1}return!0}function lF(){return(65536*(1+Math.random())|0).toString(16).substring(1)}function cF(){return lF()+lF()+"-"+lF()+"-"+lF()+"-"+lF()+"-"+lF()+lF()+lF()}const hF=navigator.userAgent.toLowerCase();let dF="",uF=!1,mF=!1,pF=!1,gF=!1,fF=!1,bF=!1;{let t=/chrome\/[\d.]+/gi,e=/version\/[\d.]+/gi;if(/android|webos|iphone|ipad/i.test(hF)&&(mF=!0),hF.indexOf("edg")>-1){let e=hF.match(t);e&&(dF=e[0].replace("chrome","edge")),uF=!0}if(hF.indexOf("safari")>-1&&-1===hF.indexOf("chrome")){let t=hF.match(e);t&&(dF=t[0].replace("version","safari")),uF=!0,pF=!0,hF.indexOf("applewebkit")>-1&&hF.indexOf("mobile")>-1&&-1===hF.indexOf("linux")&&-1===hF.indexOf("android")&&-1===hF.indexOf("ios")&&-1===hF.indexOf("browser")&&(gF=!0)}if(hF.indexOf("chrome")>-1&&hF.indexOf("safari")>-1){let e=hF.match(t);e&&(dF=e[0]),uF=!0}-1!==hF.indexOf("miniprogram")&&(uF=!0,fF=!0,mF=!0,hF.indexOf("iphone")>-1&&(bF=!0)),(hF.indexOf("micromessenger")>-1||hF.indexOf("crios")>-1)&&(uF=!0)}let yF=!1;if(!mF)try{let t=new OffscreenCanvas(10,10).getContext("webgl"),e=new OffscreenCanvas(10,10).getContext("webgl2");(t||e)&&(yF=!0)}catch(t){yF=!1}let vF="",wF="";if(document.currentScript)wF=document.currentScript.src;else{let t=document.scripts,e=t.length-1,n="";for(let i=e;i>0;i--)if("interactive"===t[i].readyState){n=t[i].src;break}wF=n||t[e].src}function xF(t,e="yyyy-MM-dd HH:mm:ss"){if(!t)return"";if("string"==typeof t)try{t=new Date(t)}catch(t){return""}/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));const n={"M+":t.getMonth()+1,"d+":t.getDate(),"H+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(const t in n)if(new RegExp("("+t+")").test(e)){const r=n[t]+"";e=e.replace(RegExp.$1,1===RegExp.$1.length?r:("00"+(i=r)).substr(i.length))}var i;return e}function CF(t){return(t=Number(t))?t<e(1)?n(t)+" B":t<e(2)?n(t/e(1))+" KB":t<e(3)?n(t/e(2))+" MB":n(t/e(3))+" GB":"";function e(t){return Math.pow(1024,t)}function n(t){return t.toFixed(1)}}vF=wF.substring(0,wF.lastIndexOf("/")+1);let kF=!0,SF=(()=>{class t{static changeLoggerStatus(t){kF=t}static logError(t,e=this.errorStatus.normalError){if(null==t)return;let n=document.getElementById("content");if(kF&&null!=n){let e=document.createElement("span"),i=document.createElement("br");e.style.color="red",e.innerText=t,n.appendChild(e),n.appendChild(i)}MF.instance().broardcast(_F.AcceptLogger,{type:"error",issueId:cF(),source:mF?"APP_MOBILE":"APP_WEB",name:e,time:xF(new Date),ip:window.location.host,remark:t})}static logInfo(t){if(null==t)return;let e=document.getElementById("content");if(kF&&null!=e){let n=document.createElement("span"),i=document.createElement("br");n.style.color="white",n.innerText=t,e.appendChild(n),e.appendChild(i)}MF.instance().broardcast(_F.AcceptLogger,{type:"info",issueId:cF(),source:mF?"APP_MOBILE":"APP_WEB",name:0,time:xF(new Date),ip:window.location.host,remark:t})}static warn(...t){r.warn.call(r,...t)}static error(...t){r.error.call(r,...t)}static debug(...t){kF&&r.debug.call(r,...t)}static info(...t){kF&&r.info.call(r,...t)}static log(...t){kF&&r.log.call(r,...t)}static time(...t){kF&&r.time.call(r,...t)}static timeEnd(...t){kF&&r.timeEnd.call(r,...t)}}return t.errorStatus={normalError:0,initError:100,readerError:200,drawError:300,loadingError:400},t})();var PF,_F=((PF=_F||(_F={}))[PF.History=0]="History",PF[PF.ClearHistory=1]="ClearHistory",PF[PF.InteractionStatus=2]="InteractionStatus",PF[PF.GsInteraction=3]="GsInteraction",PF[PF.ReadyToEntryEdit=4]="ReadyToEntryEdit",PF[PF.StatusBar=5]="StatusBar",PF[PF.UpdatePage=6]="UpdatePage",PF[PF.SwitchLayout=7]="SwitchLayout",PF[PF.AcceptLogger=8]="AcceptLogger",PF[PF.ChangeDirection=9]="ChangeDirection",PF[PF.WebsocketStatus=10]="WebsocketStatus",PF[PF.GetFileData=11]="GetFileData",PF[PF.LayoutInActive=12]="LayoutInActive",PF[PF.CmdModalVisible=13]="CmdModalVisible",PF[PF.CommentPanel=14]="CommentPanel",PF[PF.FileCompare=15]="FileCompare",PF[PF.VersionPanel=16]="VersionPanel",PF[PF.ZwEvtDrawEnd=17]="ZwEvtDrawEnd",PF[PF.ResizePage=18]="ResizePage",PF[PF.SignPanel=19]="SignPanel",PF[PF.AnonymousCallback=20]="AnonymousCallback",PF[PF.SignBlockData=21]="SignBlockData",PF[PF.FileOperate=22]="FileOperate",PF[PF.UserOptionsChange=23]="UserOptionsChange",_F);class MF{constructor(){this.mBroardcastObj={}}static instance(){return MF._instance}subscribeBroardcast(t,e){if(this.mBroardcastObj.hasOwnProperty(t))if(void 0!==e){let n=this.mBroardcastObj[t];n.push(e),n.forEach((n=>{n.notify(t,e)}))}else SF.logInfo("This broardcast has not implement interface BroardcastRegister.");else void 0===e?this.mBroardcastObj[t]=[]:(this.mBroardcastObj[t]=[e],e.notify(t,e))}broardcast(t,e){this.mBroardcastObj.hasOwnProperty(t)?this.mBroardcastObj[t].forEach((n=>{n.notify(t,e)})):SF.logInfo("Broardcast of this type ("+t+") is not exist.")}unsubscribeBroardcast(t,e){if(this.mBroardcastObj.hasOwnProperty(t)){let n=[];this.mBroardcastObj[t].forEach((t=>{e!==t&&n.push(t)})),this.mBroardcastObj[t]=n}}unsubscribeAllBroardcast(){for(const t in this.mBroardcastObj)Object.prototype.hasOwnProperty.call(this.mBroardcastObj,t)&&delete this.mBroardcastObj[t]}}MF._instance=new MF;var DF,EF=((DF=EF||(EF={}))[DF.POINT=0]="POINT",DF[DF.INPUTCONTENT=1]="INPUTCONTENT",DF[DF.SELECTENTITY=2]="SELECTENTITY",DF[DF.WAITANGLE=3]="WAITANGLE",DF[DF.WAITAREA=4]="WAITAREA",DF[DF.ESCAPE=5]="ESCAPE",DF[DF.XREF=6]="XREF",DF[DF.textModal=7]="textModal",DF[DF.plotModal=8]="plotModal",DF[DF.imageModal=9]="imageModal",DF[DF.ucsmanModal=10]="ucsmanModal",DF[DF.optionsModal=11]="optionsModal",DF[DF.aboutModal=12]="aboutModal",DF[DF.styleModal=13]="styleModal",DF[DF.dimStyleModal=14]="dimStyleModal",DF[DF.regenData=15]="regenData",DF[DF.textStyleFont=16]="textStyleFont",DF[DF.waitWsQueueEmpty=17]="waitWsQueueEmpty",DF[DF.fcmpRegenData=18]="fcmpRegenData",DF[DF.fcmpWaitConfirmStart=19]="fcmpWaitConfirmStart",EF);let OF=(()=>{class t{constructor(){return this.listener=new Map,this.operStatus=new Map,t._instance||(this.init(),t._instance=this),t._instance}pub(t,e){let n=this.listener.get(t),i=this.operStatus.get(t);!n||!i||(n(e),this.listener.set(t,null),this.setStatus(t,!1))}addCb(t,e){this.setStatus(t,!0),this.setCb(t,e)}setCb(t,e){this.listener.set(t,e)}setStatus(t,e){this.operStatus.set(t,e)}init(){for(let t in EF)if(isNaN(Number(t))){let e=Number(EF[t]);this.setStatus(e,!1),this.setCb(e,null)}}}return t._instance=null,t})();function AF(){let t=new OF;return Promise.race([new Promise(((e,n)=>{t.addCb(EF.POINT,(t=>{let n=new QR,i=jF.instance().getCurView();if(jF.instance().mSnapPoints.length>0)n.copy(jF.instance().mSnapPoints[0]);else{if(!i)return;n=i.scsPt2WcsPt(t)}e({point:n,str:""})}))})),LF().then((t=>({point:jF.instance().getPtByKeyboard(t),str:t}))),new Promise(((e,n)=>{t.addCb(EF.ESCAPE,(t=>{jF.instance().setCommandFlags(t),e(!1)}))}))]).then((e=>(t.setStatus(EF.POINT,!1),t.setStatus(EF.INPUTCONTENT,!1),e)))}function TF(){let t=new OF;return Promise.race([new Promise(((e,n)=>{t.addCb(EF.POINT,(t=>{e({point:t,str:""})}))})),LF().then((t=>({point:jF.instance().getPtByKeyboard(t),str:t}))),new Promise(((e,n)=>{t.addCb(EF.ESCAPE,(t=>{jF.instance().setCommandFlags(t),e(!1)}))}))]).then((e=>(t.setStatus(EF.POINT,!1),t.setStatus(EF.INPUTCONTENT,!1),e)))}function IF(){let t=new OF;return Promise.race([LF().then((t=>t)),new Promise(((e,n)=>{t.addCb(EF.ESCAPE,(t=>{jF.instance().setCommandFlags(t),e(!1)}))}))]).then((e=>(t.setStatus(EF.INPUTCONTENT,!1),e)))}function LF(){let t=new OF;return new Promise(((e,n)=>{t.addCb(EF.INPUTCONTENT,(t=>{e(t)}))}))}function zF(){let t=new OF;return new Promise(((e,n)=>{t.addCb(EF.SELECTENTITY,(t=>{e(t)}))}))}function RF(){let t=new OF;return new Promise(((e,n)=>{t.addCb(EF.WAITANGLE,(t=>{e(t)}))}))}function FF(){let t=new OF;return new Promise(((e,n)=>{t.addCb(EF.WAITAREA,(t=>{e(t)}))}))}function BF(){let t=new OF;return new Promise(((e,n)=>{t.addCb(EF.textModal,(t=>{e(t)})),MF.instance().broardcast(_F.CmdModalVisible,{type:"textModal",data:{visible:!0}})}))}function VF(t){let e=new OF;return new Promise(((n,i)=>{e.addCb(EF.plotModal,(t=>{n(t)})),t?MF.instance().broardcast(_F.CmdModalVisible,{type:"plotModal",data:{visible:!1,subCommand:t}}):MF.instance().broardcast(_F.CmdModalVisible,{type:"plotModal",data:{visible:!0}})}))}function NF(){let t=new OF;return new Promise(((e,n)=>{t.addCb(EF.imageModal,(t=>{e(t)})),MF.instance().broardcast(_F.CmdModalVisible,{type:"imageModal",data:{visible:!0}})}))}function HF(){let t=new OF;return new Promise(((e,n)=>{t.addCb(EF.ucsmanModal,(t=>{e(t)})),MF.instance().broardcast(_F.CmdModalVisible,{type:"ucsmanModal",data:{visible:!0}})}))}function GF(){let t=new OF;return new Promise(((e,n)=>{t.addCb(EF.optionsModal,(t=>{e(t)})),MF.instance().broardcast(_F.CmdModalVisible,{type:"optionsModal",data:{visible:!0}})}))}function ZF(){let t=new OF;return new Promise(((e,n)=>{t.addCb(EF.aboutModal,(t=>{e(t)})),MF.instance().broardcast(_F.CmdModalVisible,{type:"aboutModal",data:{visible:!0}})}))}function UF(t,e,n,i,r){return e.x=n,e.y=i,e.z=r,t.wcs2ucspForwebAssembly(e)?new QR(t.m_ucsPt_result.x,t.m_ucsPt_result.y,t.m_ucsPt_result.z):new QR(n,i,r)}var WF,YF=((WF=YF||(YF={}))[WF.kGovernedByOrthoMode=1]="kGovernedByOrthoMode",WF[WF.kNullResponseAccepted=2]="kNullResponseAccepted",WF[WF.kDontEchoCancelForCtrlC=4]="kDontEchoCancelForCtrlC",WF[WF.kDontUpdateLastPoint=8]="kDontUpdateLastPoint",WF[WF.kNoDwgLimitsChecking=16]="kNoDwgLimitsChecking",WF[WF.kNoZeroResponseAccepted=32]="kNoZeroResponseAccepted",WF[WF.kNoNegativeResponseAccepted=64]="kNoNegativeResponseAccepted",WF[WF.kAccept3dCoordinates=128]="kAccept3dCoordinates",WF[WF.kAcceptMouseUpAsPoint=256]="kAcceptMouseUpAsPoint",WF[WF.kAnyBlankTerminatesInput=512]="kAnyBlankTerminatesInput",WF[WF.kInitialBlankTerminatesInput=1024]="kInitialBlankTerminatesInput",WF[WF.kAcceptOtherInputString=2048]="kAcceptOtherInputString",WF[WF.kGovernedByUCSDetect=4096]="kGovernedByUCSDetect",WF[WF.kNoZDirectionOrtho=8192]="kNoZDirectionOrtho",WF[WF.kImpliedFaceForUCSChange=16384]="kImpliedFaceForUCSChange",WF[WF.kUseBasePointElevation=32768]="kUseBasePointElevation",WF[WF.kDisableDirectDistanceInput=65536]="kDisableDirectDistanceInput",YF);class jF{constructor(){this.mCoreInputQueue={mEvents:[],mPosCurToHandle:0,mPosNextPut:0},this.mCurEventData={mX:null,mY:null,mType:eF.kInvalid,mChar:null,mModifier:0},this.mPressEnterToExecuteCmd=!1,this.mEscapeToExecuteCmd=!1,this.mCurPoint=new QR,this.mInputContent="",this.mHasGetPoint=!1,this.mRightMenuShow=!1,this.mCurView=null,this.mSnapPoints=[]}static instance(){return jF._instance}setInputQueue(t){if(this.checkLength(),this.mCoreInputQueue.mEvents.length<1024){let e;"string"==typeof t?(e={mX:null,mY:null,mType:eF.kKeyboard,mChar:t,mModifier:0},this.mCoreInputQueue.mEvents.push(e)):this.mCoreInputQueue.mEvents.push(t)}}getInputQueue(){return this.mCoreInputQueue}clearInputContent(){let t=document.getElementById("inputCommand");t&&(t.value="")}getInputValue(){let t=document.getElementById("inputCommand");return t?t.value:""}setInputContent(t){this.mInputContent=jF.mBlankControl===YF.kInitialBlankTerminatesInput?t:t.trim(),(new OF).pub(EF.INPUTCONTENT,this.mInputContent)}getInputContent(){return this.mInputContent}setCommandFlags(t){this.mPressEnterToExecuteCmd=t.enter,this.mEscapeToExecuteCmd=t.esc}getKeyboardFlags(){return{enter:this.mPressEnterToExecuteCmd,esc:this.mEscapeToExecuteCmd}}getEvent(){return this.mCurEventData=this.mCoreInputQueue.mEvents[this.mCoreInputQueue.mPosNextPut],this.mCurEventData}setPoint(t,e){this.mCurPoint.set(t,e,0),(new OF).pub(EF.POINT,this.mCurPoint)}setPointFlag(t){this.mHasGetPoint=t}getPointFlag(){return this.mHasGetPoint}checkLength(){this.mCoreInputQueue.mEvents.length>=1024&&(this.mCoreInputQueue={mEvents:[],mPosCurToHandle:0,mPosNextPut:0})}setRightMenuStatus(t){this.mRightMenuShow=t}getRightMenuStatus(){return this.mRightMenuShow}setCurView(t){this.mCurView=t}getCurView(){return this.mCurView}getWdPoint(){if(this.mCurView){let t=new QR;return t.copy(this.mCurPoint),t=this.mCurView.scsPt2WcsPt(t),t}return this.mCurPoint}getPtByKeyboard(t,e){let n=t.trim();if(n){let t=n.split(",");if((2===t.length||e&&3===t.length)&&""!==t[0]&&""!==t[1]){let e=Number(t[0]),n=Number(t[1]);if(!isNaN(e)&&!isNaN(n)){let t=new QR;return t.mX=e,t.mY=n,this.mCurView&&t.mulMatrix(this.mCurView.ucsToWcsMatrix()),t}}}}initData(){this.mCoreInputQueue={mEvents:[],mPosCurToHandle:0,mPosNextPut:0},this.mCurPoint=new QR,this.mInputContent="",this.mHasGetPoint=!1,this.mRightMenuShow=!1,this.mCurView=null}reset(){this.mInputContent="",this.mHasGetPoint=!1}static initialBlankControl(){jF.mBlankControl=YF.kInitialBlankTerminatesInput}static resetBlankControl(){jF.mBlankControl=YF.kAnyBlankTerminatesInput}}jF._instance=new jF,jF.mBlankControl=YF.kAnyBlankTerminatesInput,jF["ɵfac"]=function(t){return new(t||jF)},jF["ɵprov"]=vt({token:jF,factory:jF["ɵfac"],providedIn:"root"});class XF{static instance(){return XF._instance}setItem(t,e,n){let i=JSON.stringify(e);"session"===n?sessionStorage.setItem(t,i):localStorage.setItem(t,i)}getItem(t,e){let n="session"===e?sessionStorage.getItem(t):localStorage.getItem(t);return null===n?"":JSON.parse(n)}removeItem(t,e){"session"===e?sessionStorage.removeItem(t):localStorage.removeItem(t)}}XF._instance=new XF;let qF=(()=>{class t{constructor(){this.mIsMiniProgram=fF}getLangPackage(){let e=XF.instance().getItem("language");if(this.mIsMiniProgram&&!e?"zh-CN"===navigator.language?t.lang="zh_CN":"en-US"===navigator.language&&(t.lang="en_US"):t.lang=e||"zh_CN",this.mIsMiniProgram&&"Cloud2D"===ZwCloud2D.type&&wx.miniProgram.postMessage({data:{lang:t.lang}}),"en_US"===t.lang){let e=l(161),n=l(253),i=l(218),r=l(230),a=l(70),o=l(232),s=l(360),c=l(401);Object.assign(t.mLanguagePackage,e,n,i,r,a,o,s,c)}else{let e=l(282),n=l(329),i=l(277),r=l(794),a=l(879),o=l(462),s=l(951),c=l(720);Object.assign(t.mLanguagePackage,e,n,i,r,a,o,s,c)}}}return t.lang="zh_CN",t.mLanguagePackage={},t})();class $F{constructor(){this.mCmdList=["GRID","ABOUT","OPTIONS","ZOOM","PAN","HELP","LINE","REVCLOUD","TEXT","MLEADER"],this.mCmdCapitalList=["Z","P"],this.mHasInputX=!1,this.mCoreUIOContextService=jF.instance(),this.mZcLanguage=new qF}static instance(){return $F._instance}moveWithMouse(t,e,n){const i=this.mCoreUIOContextService.getCurView();if(null===i)return;const r=document.getElementById("coordinate");if(!r)return;let a=i.mViewportForwebAssembly,o=i.mPoint3dForwebAssembly;o.x=t-i.mScreenRect.mX,o.y=e-i.mScreenRect.mY,o.z=0;let s=new QR;try{a.scs2ucspForwebAssembly(o),s.set(a.m_ucsPt_result.x,a.m_ucsPt_result.y,a.m_ucsPt_result.z);let t=i.mGraphicSystem;t&&t.mIsAdsorb&&s.copy(UF(a,i.mPoint3dForwebAssembly,t.mOSnapPt.mX,t.mOSnapPt.mY,t.mOSnapPt.mZ)),r.innerText=XR.scienceCount(s.mX.toFixed(4))+","+XR.scienceCount(s.mY.toFixed(4))+","+XR.scienceCount(s.mZ.toFixed(4))}catch(t){SF.error("moveWithMouse m_ucsPt_result error")}}hideSetPoint(){}hideYCoordinate(t,e){e.style.display="none"}keepFocusInCmdPanel(t,e){const n=document.getElementById("inputCommand");null!=n&&(t?n.focus():n.blur())}setModalService(t){$F.mModalService=t}getModalService(){return $F.mModalService}setViewContainerRef(t){$F.mViewContainerRef=t}getViewContainerRef(){return $F.mViewContainerRef}setMessageService(t){$F.mMessageService=t}getMessageService(){return $F.mMessageService}}$F.mModalIsOpen=!1,$F._instance=new $F;const KF={panel:{layerPanel:!0,xrefPanel:!0,commandPanel:!0,commentPanel:!0,opmPanel:!0,versionPanel:!0,signPanel:!0},commandButton:{Pan:!0,ZoomCenter:!0,ZoomIn:!0,ZoomOut:!0,ZoomAll:!0,ZoomRange:!0,Regen:!0,Plot:!0,View:!0,Polyline:!0,Circle:!0,Arc:!0,Measure:!0,Style:!0,DimStyle:!0,Sign:!0,Fcmp:!0},command:{DIST:!0,AREA:!0,MEASUREGEOM:!0,TEXT:!0,REVCLOUD:!0,LEADER:!0,MLEADER:!0,IMAGE:!0,PLINE:!0,RECTANGLE:!0,CIRCLE:!0,ARC:!0,PLOT:!0,ABOUT:!0,OPTIONS:!0,GRID:!0,PAN:!0,ZOOM:!0,HELP:!0,DEBUG:!0,VIEW:!0,BUBBLE:!0,SIGN:!0,UCSMAN:!0,SYSTEMVAL:!0,"3DORBIT":!0,FCMP:!0,REGEN:!0}},JF={panel:{layerPanel:!0,xrefPanel:!1,commandPanel:!0,commentPanel:!1,opmPanel:!1,versionPanel:!1,signPanel:!1},commandButton:{Pan:!0,ZoomCenter:!0,ZoomIn:!0,ZoomOut:!0,ZoomAll:!0,ZoomRange:!0,Regen:!0,Plot:!0,View:!0,Polyline:!1,Circle:!1,Arc:!1,Measure:!1,Style:!1,DimStyle:!1,Sign:!1,Fcmp:!1},command:{DIST:!1,AREA:!1,MEASUREGEOM:!1,TEXT:!1,REVCLOUD:!1,LEADER:!1,MLEADER:!1,IMAGE:!1,PLINE:!1,RECTANGLE:!1,CIRCLE:!1,ARC:!1,PLOT:!0,ABOUT:!0,OPTIONS:!0,GRID:!0,PAN:!0,ZOOM:!0,HELP:!0,DEBUG:!0,VIEW:!0,BUBBLE:!0,SIGN:!1,UCSMAN:!0,SYSTEMVAL:!0,"3DORBIT":!0,FCMP:!1,REGEN:!0}},QF={panel:{layerPanel:!0,xrefPanel:!0,commandPanel:!0,commentPanel:!0,opmPanel:!1,versionPanel:!0,signPanel:!1},commandButton:{Pan:!0,ZoomCenter:!0,ZoomIn:!0,ZoomOut:!0,ZoomAll:!0,ZoomRange:!0,Regen:!0,Plot:!0,View:!0,Polyline:!1,Circle:!1,Arc:!1,Measure:!0,Style:!1,DimStyle:!1,Sign:!1,Fcmp:!1},command:{DIST:!0,AREA:!0,MEASUREGEOM:!0,TEXT:!1,REVCLOUD:!1,LEADER:!1,MLEADER:!1,IMAGE:!1,PLINE:!1,RECTANGLE:!1,CIRCLE:!1,ARC:!1,PLOT:!0,ABOUT:!0,OPTIONS:!0,GRID:!0,PAN:!0,ZOOM:!0,HELP:!0,DEBUG:!0,VIEW:!0,BUBBLE:!0,SIGN:!1,UCSMAN:!0,SYSTEMVAL:!0,"3DORBIT":!0,FCMP:!1,REGEN:!0}},tB={panel:{layerPanel:!0,xrefPanel:!0,commandPanel:!0,commentPanel:!0,opmPanel:!0,versionPanel:!0,signPanel:!0},commandButton:{Pan:!0,ZoomCenter:!0,ZoomIn:!0,ZoomOut:!0,ZoomAll:!0,ZoomRange:!0,Regen:!0,Plot:!0,View:!0,Polyline:!0,Circle:!0,Arc:!0,Measure:!0,Style:!0,DimStyle:!0,Sign:!0,Fcmp:!0},command:{DIST:!0,AREA:!0,MEASUREGEOM:!0,TEXT:!0,REVCLOUD:!0,LEADER:!0,MLEADER:!0,IMAGE:!0,PLINE:!0,RECTANGLE:!0,CIRCLE:!0,ARC:!0,PLOT:!0,ABOUT:!0,OPTIONS:!0,GRID:!0,PAN:!0,ZOOM:!0,HELP:!0,DEBUG:!0,VIEW:!0,BUBBLE:!0,SIGN:!1,UCSMAN:!0,SYSTEMVAL:!0,"3DORBIT":!0,FCMP:!0,REGEN:!0}},eB={panel:{layerPanel:!1,xrefPanel:!1,commandPanel:!1,commentPanel:!1,opmPanel:!1,versionPanel:!1,signPanel:!1},commandButton:{Pan:!1,ZoomCenter:!1,ZoomIn:!1,ZoomOut:!1,ZoomAll:!1,ZoomRange:!1,Regen:!1,Plot:!1,View:!1,Polyline:!1,Circle:!1,Arc:!1,Measure:!1,Style:!1,DimStyle:!1,Sign:!1,Fcmp:!1},command:{DIST:!1,AREA:!1,MEASUREGEOM:!1,TEXT:!1,REVCLOUD:!1,LEADER:!1,MLEADER:!1,IMAGE:!1,PLINE:!1,RECTANGLE:!1,CIRCLE:!1,ARC:!1,PLOT:!1,ABOUT:!1,OPTIONS:!1,GRID:!1,PAN:!1,ZOOM:!1,HELP:!0,DEBUG:!1,VIEW:!1,BUBBLE:!1,SIGN:!1,UCSMAN:!1,SYSTEMVAL:!1,"3DORBIT":!1,FCMP:!1,REGEN:!0}};function nB(t){let e=JSON.parse(JSON.stringify(t));for(let t in e)Object.assign(KF[t],e[t]);for(let t in e.command){let n=e.command,i=n[t];n[t]&&n7.instance().setUserCommand(t,i)}Object.assign(eB,e)}function iB(t){if(t.panel){let e=eB.panel,n=KF.panel;for(let i in t.panel){let r=t.panel[i];e[i]&&(n[i]=r)}}if(t.commandButton){let e=eB.commandButton,n=KF.commandButton;for(let i in t.commandButton){let r=t.commandButton[i];e[i]&&(n[i]=r)}}if(t.command){let e=eB.command,n=KF.command;for(let i in t.command){let r=t.command[i];e[i]&&(n[i]=r,n7.instance().setUserCommand(i,r))}}MF.instance().broardcast(_F.UserOptionsChange,{type:"update",data:t})}class rB{constructor(){this.mSdkPermissionList=[],this.mFeatureId=-1,this.mExpiredTime=-1,this.mForCloud2D=!1,this.mIsAnonymous=!1}static instance(){return rB._instance}update(t){this.mSdkPermissionList=t,t.forEach((t=>{n7.instance().registerCmdByPermission(t)}))}hasPermission(t){return this.mSdkPermissionList.includes(aB.get(t))}}rB._instance=new rB,rB["ɵfac"]=function(t){return new(t||rB)},rB["ɵprov"]=vt({token:rB,factory:rB["ɵfac"],providedIn:"root"});const aB=new Map([["DWG 100","100"],["DXF 101","101"],["天正 102","102"],["图纸预览图获取","201"],["视口重生成","202"],["外部参照图片","203"],["DWG轻量数据生成","204"],["字体设置","205"],["字体替换设置","206"],["字体库","207"],["图纸二维线框显示","300"],["大图浏览","301"],["着色模式显示支持","302"],["缩放","303"],["平移","304"],["图片显示","305"],["外部参照显示","306"],["布局显示和切换","307"],["图层面板","308"],["图层显示/隐藏","309"],["命令行窗口","310"],["线宽显示","311"],["栅格显示","312"],["外部参照面板","313"],["系统参数设置","314"],["测量长度/面积/角度/坐标/弧长","400"],["Text 单行文字","500"],["Revcloud 云线","501"],["Leader 引线","502"],["MLeader 多重引线","503"],["图片(即图章功能)","504"],["PLine 多段线","505"],["Rectangle 矩形","506"],["Circle 圆","507"],["Arc 弧线","508"],["DWG导出","600"],["图片输出","601"],["PDF输出","602"],["添加预览水印","700"],["书签、审图","800"],["批注面版","801"],["书签定义和调用接口、布局信息和坐标转换接口、缩放比例和生成截图接口等","900"]]);class oB{constructor(t,e){this.mX=t||0,this.mY=e||0}set(t,e){this.mX=t,this.mY=e}copy(t){this.mX=t.mX,this.mY=t.mY}round(){this.mX=Math.round(this.mX),this.mY=Math.round(this.mY)}isEqual(t){let e=XR.isZero(t.mX-this.mX),n=XR.isZero(t.mY-this.mY);return e&&n}offset(t,e){this.mX+=t,this.mY+=e}isPointInside(t){let e=!1;if(0===t.length)return e;let n=t[0].mX,i=t[0].mX,r=t[0].mY,a=t[0].mY;for(let e=1;e<t.length;e++)n=Math.min(n,t[e].mX),i=Math.max(i,t[e].mX),r=Math.max(r,t[e].mY),a=Math.min(a,t[e].mY);if(this.mX<n||this.mX>i||this.mY>r||this.mY<a)return e;for(let n=0,i=t.length-1;n<t.length;i=n++){const r=t[i],a=t[n];r.mX===a.mX&&r.mY===a.mY||a.mY>this.mY!=r.mY>this.mY&&this.mX<(r.mX-a.mX)*(this.mY-a.mY)/(r.mY-a.mY)+a.mX&&(e=!e)}return e}}let sB=(()=>{class t{getDB(){return t.sDb}setDB(e){t.sDb=e}}return t.sDb=null,t["ɵfac"]=function(e){return new(e||t)},t["ɵprov"]=vt({token:t,factory:t["ɵfac"],providedIn:"root"}),t})();new $F;var lB,cB,hB=((cB=hB||(hB={}))[cB.Inner=0]="Inner",cB[cB.Outter=1]="Outter",cB[cB.smallXCircle=2]="smallXCircle",cB[cB.smallYCircle=3]="smallYCircle",hB),dB=((lB=dB||(dB={}))[lB.bigCircle=0]="bigCircle",lB[lB.topCircle=1]="topCircle",lB[lB.rightCircle=2]="rightCircle",lB[lB.bottomCircle=3]="bottomCircle",lB[lB.leftCircle=4]="leftCircle",lB[lB.outter=5]="outter",dB);class uB{constructor(){this.exeCmd=function*(){SF.log("_3dorbit命令开始执行");let t=jF.instance().getCurView();if(!t||!t.mDevice)return;let e=t.mDevice.mGsManager;if(e){if(e.isInPaperSpace()&&t.isOverallView())return void n7.instance().mZcBroadcast.broardcast(_F.History,{history:"动态观察命令只能在模型空间中使用"});for(uB.initialize(),yield!1;n7.instance().mCmdExecutionStatus&&!n7.instance().mkEscapeCaret;)yield!1;uB.unInitialize(),SF.log("_3dorbit命令执行结束")}},this.mExeCmd=this.exeCmd()}execute(){return!!this.mExeCmd.next().done}cmdString(){return"3dorbit"}resetCmd(){this.mExeCmd=this.exeCmd()}static initialize(){let t=jF.instance().getCurView();!t||!t.mGraphicSystem||(uB.mCurView=t,t.mGraphicSystem.setOrbitActive(!0),t.mGraphicSystem.setCanvasCursor("hide"),uB.setRotateCenter(),n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage._3dorbitTip}),n7.instance().mZcBroadcast.broardcast(_F.History,{label:"clearLabel"}),n7.instance().mZcBroadcast.broardcast(_F.InteractionStatus,{status:!0}))}static unInitialize(){!uB.mCurView||!uB.mCurView.mGraphicSystem||(uB.mCurView.mGraphicSystem.setOrbitActive(!1),n7.instance().mZcBroadcast.broardcast(_F.InteractionStatus,{status:!1}))}static setRotateCenter(){let t=this.mCurView.mViewportTableRec.getViewInfo().mViewExtends;this.rotateCenter=t.center()}static transformView(t,e){if(this.mousedownPosition===hB.Outter)this.transformViewZ(t,e);else{let n=this.mCurView.mScreenRect,i=new QR(n.mX+n.mWidth/2,n.mY+n.mHeight/2,0),r=.5*Math.max(n.mWidth,n.mHeight),a=new qR,o=new qR;this.mousedownPosition===hB.smallXCircle?(a=new QR(0,-(e.mY-i.mY)/r,0).asVector(),o=new QR(0,-(t.mY-i.mY)/r,0).asVector()):this.mousedownPosition===hB.Inner?(a=new QR((e.mX-i.mX)/r,-(e.mY-i.mY)/r,0).asVector(),o=new QR((t.mX-i.mX)/r,-(t.mY-i.mY)/r,0).asVector()):this.mousedownPosition===hB.smallYCircle&&(a=new QR((e.mX-i.mX)/r,0,0).asVector(),o=new QR((t.mX-i.mX)/r,0,0).asVector()),a.length()>1?a.normalize():a.mZ=Math.sqrt(1-a.mX*a.mX-a.mY*a.mY),o.length()>1?o.normalize():o.mZ=Math.sqrt(1-o.mX*o.mX-o.mY*o.mY);let s=o;s=s.crossProduct(a);let l=new qR;l.copy(s),l.mZ=0;let c=Math.atan2(l.mX,l.mY),h=s.length(),d=0!==h?Math.acos(s.mZ/h)+Math.PI/2:Math.PI/2;h>1&&(h=1);const u=2;let m=Math.asin(h)*u,p=new QR;if(p.copy(this.mCurView.mTarget),!(new sB).getDB())return;let g=new QR;g.copy(uB.rotateCenter);let f=g.sub2vec(p),b=this.mCurView.viewingMatrix();f.transformBy(b),this.mCurView.dolly1(f),this.mCurView.rollDelta(c),this.mCurView.orbitXY(0,d),this.mCurView.orbitXY(m,0),this.mCurView.orbitXY(0,-d),this.mCurView.rollDelta(-c),this.mCurView.dolly1(f.mul2Vec(-1))}}static transformViewZ(t,e){let n=this.mCurView.mScreenRect,i=new oB(n.mX+n.mWidth/2,n.mY+n.mHeight/2),r=new qR(t.mX-i.mX,t.mY-i.mY,0),a=new qR(e.mX-i.mX,e.mY-i.mY,0),o=r.length(),s=a.length();if(o<5||s<5)return;let l=(r.mX*a.mX+r.mY*a.mY)/(o*s),c=0;c=a.mX*r.mY-a.mY*r.mX>0?Math.acos(l):-Math.acos(l);let h=new QR;h.copy(uB.rotateCenter);let d=h.sub2vec(this.mCurView.mTarget),u=this.mCurView.viewingMatrix();d.transformBy(u),this.mCurView.dolly1(d),this.mCurView.rollDelta(c),this.mCurView.dolly1(d.mul2Vec(-1))}static drawCircle(){if(!this.mCurView.mGraphicSystem||!this.mCurView.mGraphicSystem.mCanvas)return;let t=document.createElement("canvas"),e=this.mCurView.mGraphicSystem.mCanvas;t.width=e.width,t.height=e.height,e.style.width=e.width+"px",e.style.height=e.height+"px";let n=t.getContext("2d"),i=e.getContext("2d"),r=uB.generateCircles();if(n&&i){for(let t=0;t<r.length;t++){let e=r[t];n.beginPath(),n.arc(e.center.mX,e.center.mY,e.radius,0,2*Math.PI),n.closePath(),n.strokeStyle="red",n.stroke()}try{i.drawImage(t,0,0,e.width,e.height)}catch(t){}}}static generateCircles(){let t=this.mCurView.mScreenRect,e=new oB(t.mX+t.mWidth/2,t.mY+t.mHeight/2);const n=.9412;let i=Math.min(t.mWidth,t.mHeight)/2*n,r=Math.min(t.mWidth,t.mHeight)/2*(1-n);return[{radius:i,center:e,type:dB.bigCircle},{radius:r,center:new oB(e.mX,e.mY-i),type:dB.topCircle},{radius:r,center:new oB(e.mX+i,e.mY),type:dB.rightCircle},{radius:r,center:new oB(e.mX,e.mY+i),type:dB.bottomCircle},{radius:r,center:new oB(e.mX-i,e.mY),type:dB.leftCircle}]}static calPosition(t){let e=this.generateCircles(),n=dB.outter;for(let i=0;i<e.length;i++){let r=e[i];Math.sqrt(Math.pow(t.mX-r.center.mX,2)+Math.pow(t.mY-r.center.mY,2))<=r.radius&&(n=r.type)}return n}static setCursorStyle(t){if(!this.mCurView||!this.mCurView.mGraphicSystem)return;let e=this.mCurView.mGraphicSystem.mCanvas;if(e)switch(this.calPosition(t)){case dB.topCircle:case dB.bottomCircle:this.mousedownPosition=hB.smallXCircle,e.style.cursor='url("data:image/cur;base64,AAACAAEAICAAAA4ADgAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAABEAAAAggAAAIIAAAEBAAABAQAAATEAAAFoAAD9eH4AATAAAAEBAAABAwAAAIcAAACDAAAARQAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////////////////////////////////////H////g////zn///58///+fP///P5///z+f//8/n///O////zff//8/n///P5///z8f//+eH///nx///84f///g3///8f/////////////////////////////////8=") 16 16,default';break;case dB.rightCircle:case dB.leftCircle:this.mousedownPosition=hB.smallYCircle,e.style.cursor='url("data:image/cur;base64,AAACAAEAICAAABAADgAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAgAAAAIAAAACAAAAAgAAAAIAAAAAAAAA+OAAAHAYAACgBAABAwIAAQaCAAEHggAAgwQAAGAYAAAf4AAAAAAAAAIAAAACAAAAAgAAAAIAAAACAAAAAgAAAAAAAAAAAAAAAAAAAAAAA////////////////////////////////////////////////////////////gEf//8DB///D+P//l/5//z//P/8/vz//P38//5/+f//H+P//4AH///gH//////////////////////////////////////////////////////8=") 16 16,default';break;case dB.bigCircle:this.mousedownPosition=hB.Inner,e.style.cursor='url("data:image/cur;base64,AAACAAEAICAAAA8ADgAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgAAAAkAAAAQgAAAAIAAAfnAAADwsAABVggAAh0EAAIfBAADFkwAAZDYAAB/wAAAEcAAABDAAAAJQAAABgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////////////////////////////////////n////w////5n///88///4BP//+Ag///g9H//yv8//57dn/+euZ//jvkf/8bwP//gAH//+OH///zx///+Yf///w////+f/////////////////////////////////8=") 16 16,default';break;case dB.outter:this.mousedownPosition=hB.Outter,e.style.cursor='url("data:image/cur;base64,AAACAAEAICAAAA8ADgAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB+AAABgYAAAwDAAAIAQAAEAAAABBgAAAQ0AAAEPCAABBhgAAQA4AACAGAAAwCgAAGBgAAAfgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////////////////////////////////////////gf///gB///x+P//4/z//+f+///P////z/+//8/fP//Pvz//z/4//8/8P//n/j//4/w///H4v//4Af///gf//////////////////////////////////////8=") 16 16,default'}}}uB.mousedownPosition=hB.Outter;var mB,pB=((mB=pB||(pB={}))[mB.kLnWtByLayer=-1]="kLnWtByLayer",mB[mB.kLnWtByBlock=-2]="kLnWtByBlock",mB[mB.kLnWtByLwDefault=-3]="kLnWtByLwDefault",mB[mB.kLnWt000=0]="kLnWt000",mB[mB.kLnWt005=5]="kLnWt005",mB[mB.kLnWt009=9]="kLnWt009",mB[mB.kLnWt013=13]="kLnWt013",mB[mB.kLnWt015=15]="kLnWt015",mB[mB.kLnWt018=18]="kLnWt018",mB[mB.kLnWt020=20]="kLnWt020",mB[mB.kLnWt025=25]="kLnWt025",mB[mB.kLnWt030=30]="kLnWt030",mB[mB.kLnWt035=35]="kLnWt035",mB[mB.kLnWt040=40]="kLnWt040",mB[mB.kLnWt050=50]="kLnWt050",mB[mB.kLnWt053=53]="kLnWt053",mB[mB.kLnWt060=60]="kLnWt060",mB[mB.kLnWt070=70]="kLnWt070",mB[mB.kLnWt080=80]="kLnWt080",mB[mB.kLnWt090=90]="kLnWt090",mB[mB.kLnWt100=100]="kLnWt100",mB[mB.kLnWt106=106]="kLnWt106",mB[mB.kLnWt120=120]="kLnWt120",mB[mB.kLnWt140=140]="kLnWt140",mB[mB.kLnWt158=158]="kLnWt158",mB[mB.kLnWt200=200]="kLnWt200",mB[mB.kLnWt211=211]="kLnWt211",pB);class gB{constructor(){this.items=[]}push(t){this.items.push(t)}pop(){return this.items.pop()}top(){return this.items[this.items.length-1]}isEmpty(){return 0==this.items.length}size(){return this.items.length}clear(){this.items=[]}print(){SF.log(this.items.toString())}}var fB,bB,yB=((bB=yB||(yB={}))[bB.kByLayer=192]="kByLayer",bB[bB.kByBlock=193]="kByBlock",bB[bB.kByColor=194]="kByColor",bB[bB.kByACI=195]="kByACI",bB[bB.kByPen=196]="kByPen",bB[bB.kForeground=197]="kForeground",bB[bB.kLayerOff=198]="kLayerOff",bB[bB.kLayerFrozen=199]="kLayerFrozen",bB[bB.kNone=200]="kNone",yB),vB=((fB=vB||(vB={}))[fB.kDrawableNone=0]="kDrawableNone",fB[fB.kDrawableIsAnEntity=1]="kDrawableIsAnEntity",fB[fB.kDrawableUsesNesting=2]="kDrawableUsesNesting",fB[fB.kDrawableViewIndependentViewportDraw=8]="kDrawableViewIndependentViewportDraw",fB[fB.kDrawableIsInvisible=16]="kDrawableIsInvisible",vB);class wB{constructor(){this.mGsNode=null,this.mId=null,this.mHandle=null,this.mOwnerHandle=null}id(){return this.mId}worldDraw(t){return!1}setId(t){this.mId=t}setAttributes(){return vB.kDrawableNone}}class xB extends wB{constructor(){super(),this.mHandle=null,this.mLayerHandle=BigInt(0),this.mLineweightAttr=pB.kLnWtByLayer,this.mColorAttr=yB.kByLayer}setHandle(t){this.mHandle=t}setAttributes(){return super.setAttributes()|vB.kDrawableIsAnEntity}}class CB{constructor(){this.mObjectId=null,this.mDrawable=null,this.mLayHandle=null,this.mPtBuffer=null,this.mVectorBuffer=null,this.mColorBuffer=null,this.mPrimitivesData=null,this.mExtendsData=null,this.mPtStart=0,this.mPtCount=0,this.mNodeChildren=null}}var kB,SB,PB=((SB=PB||(PB={}))[SB.kZcGsPolyline2d=0]="kZcGsPolyline2d",SB[SB.kZcGsExtentsPolyline2d=1]="kZcGsExtentsPolyline2d",SB[SB.kZcGsPolyline3d=2]="kZcGsPolyline3d",SB[SB.kZcGsLineStrips2d=3]="kZcGsLineStrips2d",SB[SB.kZcGsRawLineStrips2d=4]="kZcGsRawLineStrips2d",SB[SB.kZcGsLineStrips3d=5]="kZcGsLineStrips3d",SB[SB.kZcGsRawLineStrips3d=6]="kZcGsRawLineStrips3d",SB[SB.kZcGsRawPolyline2d=7]="kZcGsRawPolyline2d",SB[SB.kZcGsExtentsRawPolyline2d=8]="kZcGsExtentsRawPolyline2d",SB[SB.kZcGsRawPolyline3d=9]="kZcGsRawPolyline3d",SB[SB.kZcGsShadedRawPolyline3d=10]="kZcGsShadedRawPolyline3d",SB[SB.kZcGsSilhouetteRawPolyline3d=11]="kZcGsSilhouetteRawPolyline3d",SB[SB.kZcGsPolytriangle2d=12]="kZcGsPolytriangle2d",SB[SB.kZcGsPolytriangle3d=13]="kZcGsPolytriangle3d",SB[SB.kZcGsShadedPolytriangle3d=14]="kZcGsShadedPolytriangle3d",SB[SB.kZcGsColorizedPolytriangle2d=15]="kZcGsColorizedPolytriangle2d",SB[SB.kZcGsColorizedPolytriangle3d=16]="kZcGsColorizedPolytriangle3d",SB[SB.kZcGsShadedColorizedPolytriangle3d=17]="kZcGsShadedColorizedPolytriangle3d",SB[SB.kZcGsPolygon2d=18]="kZcGsPolygon2d",SB[SB.kZcGsExtentsPolygon2d=19]="kZcGsExtentsPolygon2d",SB[SB.kZcGsWipeOutPolygon2d=20]="kZcGsWipeOutPolygon2d",SB[SB.kZcGsPolygon3d=21]="kZcGsPolygon3d",SB[SB.kZcGsWipeOutPolygon3d=22]="kZcGsWipeOutPolygon3d",SB[SB.kZcGsPolyPolygon2d=23]="kZcGsPolyPolygon2d",SB[SB.kZcGsPolyPolygon3d=24]="kZcGsPolyPolygon3d",SB[SB.kZcGsCircularArc2d=25]="kZcGsCircularArc2d",SB[SB.kZcGsCircularArc3d=26]="kZcGsCircularArc3d",SB[SB.kZcGsEllipticalArc2d=27]="kZcGsEllipticalArc2d",SB[SB.kZcGsEllipticalArc3d=28]="kZcGsEllipticalArc3d",SB[SB.kZcGsImage2d=29]="kZcGsImage2d",SB[SB.kZcGsText2d=30]="kZcGsText2d",SB[SB.kZcGsText3d=31]="kZcGsText3d",SB[SB.kZcGsHatch2d=32]="kZcGsHatch2d",SB[SB.kZcGsHatch3d=33]="kZcGsHatch3d",SB[SB.kZcGsOwnerDrawObject=34]="kZcGsOwnerDrawObject",SB[SB.kZcGsOwnerUnderlay=35]="kZcGsOwnerUnderlay",SB[SB.kZcGsRasterImage=36]="kZcGsRasterImage",PB),_B=((kB=_B||(_B={}))[kB.kZcDbLayer=50]="kZcDbLayer",kB[kB.kZcDbTextStyle=51]="kZcDbTextStyle",kB[kB.kZcDbDimStyle=52]="kZcDbDimStyle",kB[kB.kZcDbPoint=100]="kZcDbPoint",kB[kB.kZcDbLine=101]="kZcDbLine",kB[kB.kZcDbPolyline=102]="kZcDbPolyline",kB[kB.kZcDbCircle=103]="kZcDbCircle",kB[kB.kZcDbPolygon=104]="kZcDbPolygon",kB[kB.kZcDbText=105]="kZcDbText",kB[kB.kZcDbPolyline3D=106]="kZcDbPolyline3D",kB[kB.kZcDbMText=107]="kZcDbMText",kB[kB.kZcDbLeader=108]="kZcDbLeader",kB[kB.kZcDbArc=109]="kZcDbArc",kB[kB.kZcDbMleader=111]="kZcDbMleader",kB[kB.kInvalidEntityType=5e3]="kInvalidEntityType",kB[kB.kZcDbImage=112]="kZcDbImage",_B);class MB extends xB{constructor(){super(),this.mBoundingBoxJudge=!0,this.mPrimitivesData=new Map,this.mExterndsData=new Map,this.mLayerHandle=BigInt("0")}normal(){return qR.ZAxis()}jsonIn(t){}worldDraw(t){return t.geometry(),null===this.mGsNode&&(this.mGsNode=new CB,this.mGsNode.mDrawable=this,this.mGsNode.mObjectId=this.id()),this.mGsNode.mPrimitivesData=this.mPrimitivesData,this.mGsNode.mLayHandle=this.mLayerHandle,!0}}var DB,EB=((DB=EB||(EB={}))[DB.kZcDrBottomMost=0]="kZcDrBottomMost",DB[DB.kZcDrLongterm=1]="kZcDrLongterm",DB[DB.kZcDrLongtermHighlight=2]="kZcDrLongtermHighlight",DB[DB.kZcDrShorterm=3]="kZcDrShorterm",DB[DB.kZcDrDirectShorterm=4]="kZcDrDirectShorterm",DB[DB.kZcDrAlpha=5]="kZcDrAlpha",DB[DB.kZcDrSurface=6]="kZcDrSurface",DB[DB.kZcDrTopmost=7]="kZcDrTopmost",DB[DB.kZcDrZOrderCount=8]="kZcDrZOrderCount",DB[DB.kZcDrAllLayer=8]="kZcDrAllLayer",EB);class OB{constructor(t,e){yF?this.mOffsetCanvas=new OffscreenCanvas(t,e):(this.mOffsetCanvas=document.createElement("canvas"),this.mOffsetCanvas.width=t,this.mOffsetCanvas.height=e,this.mOffsetCanvas.style.width=t+"px",this.mOffsetCanvas.style.height=e+"px")}resize(t,e){this.mOffsetCanvas instanceof HTMLCanvasElement?(this.mOffsetCanvas.width=t,this.mOffsetCanvas.height=e,this.mOffsetCanvas.style.width=t+"px",this.mOffsetCanvas.style.height=e+"px"):(this.mOffsetCanvas.width=t,this.mOffsetCanvas.height=e)}}var AB,TB,IB,LB,zB,RB=((zB=RB||(RB={}))[zB.UNDEFINED=-1]="UNDEFINED",zB[zB.POLYLINE3D=0]="POLYLINE3D",zB[zB.TEXT2D=1]="TEXT2D",zB[zB.HATCH3D=2]="HATCH3D",zB[zB.POLYGON3D=4]="POLYGON3D",zB[zB.POLYTRIANGLE3D=5]="POLYTRIANGLE3D",zB[zB.WIPEOUTPOLYGON3D=6]="WIPEOUTPOLYGON3D",zB[zB.POLYLINE2D=7]="POLYLINE2D",zB[zB.EXTENTSPOLYLINE2D=8]="EXTENTSPOLYLINE2D",zB[zB.LINESTRIPS2D=9]="LINESTRIPS2D",zB[zB.RAWLINESTRIPS2D=10]="RAWLINESTRIPS2D",zB[zB.LINESTRIPS3D=11]="LINESTRIPS3D",zB[zB.RAWLINESTRIPS3D=12]="RAWLINESTRIPS3D",zB[zB.RAWPOLYLINE2D=13]="RAWPOLYLINE2D",zB[zB.EXTENTSRAWPOLYLINE2D=14]="EXTENTSRAWPOLYLINE2D",zB[zB.RAWPOLYLINE3D=15]="RAWPOLYLINE3D",zB[zB.SHADEDRAWPOLYLINE3D=16]="SHADEDRAWPOLYLINE3D",zB[zB.SILHOUETTERAWPOLYLINE3D=17]="SILHOUETTERAWPOLYLINE3D",zB[zB.POLYTRIANGLE2D=18]="POLYTRIANGLE2D",zB[zB.SHADEDPOLYTRIANGLE3D=19]="SHADEDPOLYTRIANGLE3D",zB[zB.COLORIZEDPOLYTRIANGLE2D=20]="COLORIZEDPOLYTRIANGLE2D",zB[zB.COLORIZEDPOLYTRIANGLE3D=21]="COLORIZEDPOLYTRIANGLE3D",zB[zB.SHADEDCOLORIZEDPOLYTRIANGLE3D=22]="SHADEDCOLORIZEDPOLYTRIANGLE3D",zB[zB.POLYGON2D=23]="POLYGON2D",zB[zB.EXTENTSPOLYGON2D=24]="EXTENTSPOLYGON2D",zB[zB.WIPEOUTPOLYGON2D=25]="WIPEOUTPOLYGON2D",zB[zB.POLYPOLYGON2D=26]="POLYPOLYGON2D",zB[zB.POLYPOLYGON3D=27]="POLYPOLYGON3D",zB[zB.CIRCULARARC2D=28]="CIRCULARARC2D",zB[zB.CIRCULARARC3D=29]="CIRCULARARC3D",zB[zB.ELLIPTICALARC2D=30]="ELLIPTICALARC2D",zB[zB.ELLIPTICALARC3D=31]="ELLIPTICALARC3D",zB[zB.IMAGE2D=32]="IMAGE2D",zB[zB.TEXT3D=33]="TEXT3D",zB[zB.HATCH2D=34]="HATCH2D",zB[zB.OWNERDRAWOBJECT=35]="OWNERDRAWOBJECT",zB[zB.OWNERUNDERLAY=36]="OWNERUNDERLAY",zB[zB.RASTERIMAGE=37]="RASTERIMAGE",zB[zB.RAY=38]="RAY",zB[zB.XLINE=39]="XLINE",zB[zB.LTPOLYLINE=40]="LTPOLYLINE",zB[zB.CIRCLE=41]="CIRCLE",zB[zB.OSNAP=42]="OSNAP",zB[zB.CIRCLEBUBBLE=43]="CIRCLEBUBBLE",zB[zB.RECTANGLEBUBBLE=44]="RECTANGLEBUBBLE",zB[zB.PINBUBBLE=45]="PINBUBBLE",zB[zB.POLYLINEBUBBLE=46]="POLYLINEBUBBLE",zB[zB.LEADERBUBBLE=47]="LEADERBUBBLE",zB[zB.IMAGEBUBBLE=48]="IMAGEBUBBLE",zB[zB.REVCLOUDBUBBLE=49]="REVCLOUDBUBBLE",zB[zB.UCSICON=50]="UCSICON",zB[zB.RESTATTR=100]="RESTATTR",zB[zB.COLORINDEX8=101]="COLORINDEX8",zB[zB.COLORINDEX16=102]="COLORINDEX16",zB[zB.COLORRGBA32=103]="COLORRGBA32",zB[zB.FILLMODE=104]="FILLMODE",zB[zB.LINEWEIGHT=105]="LINEWEIGHT",zB[zB.LINEPATTERN=106]="LINEPATTERN",zB[zB.VISUALSTYLE=107]="VISUALSTYLE",zB[zB.OVERRIDEEDGESTYLE=108]="OVERRIDEEDGESTYLE",zB[zB.PLOTSTYLE=109]="PLOTSTYLE",zB[zB.MAPPER=110]="MAPPER",zB[zB.SECTIONABLE=111]="SECTIONABLE",zB[zB.SELECTIONGEOM=112]="SELECTIONGEOM",zB[zB.SELECTIONFLAG=113]="SELECTIONFLAG",zB[zB.DRAWFLAG=114]="DRAWFLAG",zB[zB.SHADOWFLAGS=115]="SHADOWFLAGS",zB[zB.TRANSPARENCY=116]="TRANSPARENCY",zB[zB.ATTRIBUTEREFERENCE=117]="ATTRIBUTEREFERENCE",zB[zB.POLYGONWIDTHBEGIN=118]="POLYGONWIDTHBEGIN",zB[zB.POLYGONWIDTHEND=119]="POLYGONWIDTHEND",zB[zB.DRAWCLIPBOUNDARY=120]="DRAWCLIPBOUNDARY",zB[zB.SHAREDFLAG=121]="SHAREDFLAG",zB[zB.ARRAYITEMBEGIN=122]="ARRAYITEMBEGIN",zB[zB.ARRAYITEMEND=123]="ARRAYITEMEND",zB[zB.PUSHTRANSFORM=124]="PUSHTRANSFORM",zB[zB.POPTRANSFORM=125]="POPTRANSFORM",zB[zB.SHAREDNODEID=126]="SHAREDNODEID",zB[zB.XREF=127]="XREF",zB[zB.GRAYSTART=128]="GRAYSTART",zB[zB.GRAYEND=129]="GRAYEND",zB[zB.HIGHLIGHT=130]="HIGHLIGHT",zB[zB.HIGHLIGHTBACKGROUND=131]="HIGHLIGHTBACKGROUND",zB[zB.HIGHLIGHTRESTORE=132]="HIGHLIGHTRESTORE",RB),FB=((LB=FB||(FB={}))[LB.kZcDrSolidLine=1]="kZcDrSolidLine",LB[LB.kZcDrDashline=2]="kZcDrDashline",LB[LB.kZcDrLongDashline=3]="kZcDrLongDashline",LB[LB.kZcDrDotline=4]="kZcDrDotline",FB),BB=((IB=BB||(BB={}))[IB.kZcDrFillAlways=1]="kZcDrFillAlways",IB[IB.kZcDrFillNever=2]="kZcDrFillNever",IB[IB.kZcDrFillExplicit=3]="kZcDrFillExplicit",BB),VB=((TB=VB||(VB={}))[TB.kZcDrPolyline=0]="kZcDrPolyline",TB[TB.kZcDrRay=1]="kZcDrRay",TB[TB.kZcDrXline=2]="kZcDrXline",VB),NB=((AB=NB||(NB={}))[AB.endpoint=1]="endpoint",AB[AB.midpoint=2]="midpoint",AB[AB.center=3]="center",AB[AB.geometricCenter=11]="geometricCenter",AB[AB.node=4]="node",AB[AB.quadrant=5]="quadrant",AB[AB.extension=16384]="extension",AB[AB.insertion=7]="insertion",AB[AB.perpendicular=8]="perpendicular",AB[AB.tangent=9]="tangent",AB[AB.nearest=10]="nearest",AB[AB.parallel=8192]="parallel",AB[AB.intersection=6]="intersection",AB[AB.storageCenter=100]="storageCenter",AB[AB.storageGeometricCenter=101]="storageGeometricCenter",NB);class HB{constructor(t){this.type=RB.UNDEFINED,this.type=t}}class GB extends HB{constructor(t){super(t),this.mColorIndex=-1}}class ZB extends HB{constructor(t){super(t),this.mColorIndex=-1}}class UB extends HB{constructor(t){super(t),this.mColor=-1}}class WB extends HB{constructor(t){super(t),this.mBegin=!1}}class YB extends HB{constructor(t){super(t)}}class jB extends HB{constructor(t){super(t),this.mHandle=BigInt(0)}}class XB extends HB{constructor(t){super(t),this.mFillMode=BB.kZcDrFillNever}}class qB extends HB{constructor(t){super(t),this.mLineweight=-1}}class $B extends HB{constructor(t){super(t),this.mEnumflags=0}}class KB extends HB{constructor(t){super(t),this.mReference=BigInt("0"),this.mAttrFlags=0}}class JB extends HB{constructor(t){super(t),this.mReference=0,this.mBDirect=!1}}class QB extends HB{constructor(t){super(t),this.mBSelectionGeom=!0,this.mBDrawSelectionGeomHL=!0}selectionGeom(){return this.mBSelectionGeom}drawSelectionGeomHL(){return this.mBDrawSelectionGeomHL}}class tV extends HB{constructor(t){super(t),this.mTrans=0}transparency(){return this.mTrans}}class eV extends HB{constructor(t){super(t),this.mMaxWidth=0}}class nV extends HB{constructor(t){super(t),this.mDrawFlag=!1}}class iV extends HB{constructor(t){super(t),this.mRowNum=0,this.mColumnNum=0,this.mRawOffset=new qR,this.mColumnOffset=new qR}}class rV extends HB{constructor(t){super(t),this.mMatrix=new JR}}class aV extends HB{constructor(t){super(t),this.mCenter=new QR,this.mRadius=1,this.mStartAngle=new qR(1,0,0),this.mSweepAngle=1,this.mArcType=-1,this.mNormals=new qR(1,1,1)}}class oV extends HB{constructor(t){super(t),this.mCenter=new QR,this.mMajorAxis=new qR(1,1,1),this.mMinorAxis=new qR(0,0,0),this.mMajorAxisLength=0,this.mMinorAxisLength=0,this.mStartAngle=0,this.mEndAngle=0,this.mArcType=-1}}class sV extends HB{constructor(t,e,n){super(t),this.start=0,this.end=0,this.start=e,this.end=n}getPtCount(){return(this.end-this.start)/3}}class lV extends sV{constructor(t,e,n,i,r,a,o,s){super(t,e,n),this.mBForbidChangeFillColor=!0,this.mPointIndex=new Array,this.mVectorIndex=new Array,this.mColorIndex=new Array,this.mBCurvedSurface=!1,null!=a&&(this.mBForbidChangeFillColor=a),null!=i&&i.length>0&&(this.mPointIndex=i),null!=r&&r.length>0&&(this.mVectorIndex=r),null!=o&&o.length>0&&(this.mColorIndex=o),null!=s&&(this.mBCurvedSurface=s)}hasColorTriangle(){return 0!=this.mColorIndex.length}}class cV extends sV{constructor(t,e,n,i){super(t,e,n),this.mPoint=i}}class hV extends sV{constructor(t,e,n){super(t,e,n)}}class dV extends sV{constructor(t,e,n,i,r){super(t,e,n),this.mPolygonCount=0,this.polygonPtsNumList=[],this.mPolygonCount=i,this.polygonPtsNumList=r}}class uV extends sV{constructor(t,e,n,i){super(t,e,n),this.mBNeedDrawInpan=!0,null!=i&&(this.mBNeedDrawInpan=i)}}class mV extends sV{constructor(t,e,n,i,r,a,o,s,l,c){super(t,e,n),this.mOriginPoint=new QR,this.mUvector=new qR,this.mVvector=new qR,this.mClipPolygonPtsNumList=new Array,this.mClipPointsList=new Array,this.mTransparency=!0,this.mUrlPath="",this.mOriginPoint=i,this.mUvector=r,this.mVvector=a,this.mClipPolygonPtsNumList=o,this.mClipPointsList=s,this.mTransparency=this.mTransparency,this.mUrlPath=c}getOriginPoint(){return this.mOriginPoint}}class pV extends sV{constructor(t,e,n,i,r,a){super(t,e,n),this.mContourCounts=new Array,this.mColor="#000000",this.mPoints=new Array,this.mContourCounts=r,this.mColor=i,this.mPoints=a}getPtCount(){return(this.end-this.start)/3}}class gV extends sV{constructor(t,e,n,i,r,a){super(t,e,n),this.mContourCounts=new Array,this.mColor=4294967295,this.mPoints=new Array,this.mBoundaryIsNotHole=new Array,this.mTriangle=void 0,this.mContourCounts=i,this.mPoints=r,null!=a&&(this.mTriangle=a)}getPtCount(){return(this.end-this.start)/3}}class fV extends sV{constructor(t,e,n,i){super(t,e,n),this.textProperties={text:"",textStyle:{fontFamily:"宋体",fontSize:255,fontHeight:50,fontWeight:400,fontItalic:0},textHeight:50,charset:134,xScale:1,rotate:new qR(1,0,0),oblique:new qR(0,1,0),obliquingAngle:0,upsidedown:0,backward:0,boundBox:{max:[0,0],min:[0,0]}},this.textProperties=i}getPtCount(){return(this.end-this.start)/3}}class bV extends sV{constructor(t,e,n,i){super(t,e,n),this.mTextProperties={textPt:new QR,textDir:new qR(1,0,0),textVerDir:new qR(0,1,0),boundBox:{max:[0,0],min:[0,0]},textHeight:50,textWidth:50,xScale:1,obliquingAngle:0,content:"",textNumber:10,flags:[],textStyle:{fontSize:255,fontFamily:"宋体",fontHeight:50,fontAbove:10,fontAverageWidth:10,fontAscent:0,fontWeight:400,fontItalic:0},trackingPercent:20,charset:134,renderMode:0,raw:0,underline:0,backward:0,upsidedown:0,vertical:0,overlined:0,strikethrough:0},this.mTextProperties=i}getPtCount(){return(this.end-this.start)/3}}class yV extends sV{constructor(t,e,n,i){super(t,e,n),this.mBIsoLine=!0,this.mBIsoLine=i}}class vV extends sV{constructor(t,e,n,i){super(t,e,n),this.mGsMaker=BigInt(0),this.mGsMaker=i}}class wV extends sV{constructor(t,e,n,i){super(t,e,n),this.mLineCount=0,this.mLineCount=i}}class xV extends sV{constructor(t,e,n,i,r){super(t,e,n),this.mLineCount=0,this.mGsMaker=BigInt(0),this.mLineCount=i,this.mGsMaker=r}}class CV extends sV{constructor(t,e=0,n=0){super(t,e,n),this.mBasePoint=new QR,this.mUnitPoint=new QR,this.mCollectorIndex=0}}class kV extends sV{constructor(t,e=0,n=0){super(t,e,n),this.mLk=VB.kZcDrPolyline,this.mNbPoints=0,this.mVertexList=new Array,this.mNormal=new Array,this.mHandle=0,this.mDeviation=0,this.mLtypeScale=0,this.mLBaseSubEntMarker=0,this.mThickness=0,this.mCollectorIndex=0}}class SV extends HB{constructor(t,e,n,i){super(t),this.mCenter=new QR,this.mRadius=0,this.mNormal=new qR,this.mCenter=e,this.mRadius=n,this.mNormal=i}}class PV extends HB{constructor(t,e,n,i){super(t),this.mType=NB.endpoint,this.mPoint=new QR,this.mType=n,this.mPoint=e,this.mColor=i}}class _V extends HB{constructor(t,e,n,i){super(t),this.mId="",this.mPoints=[],this.mId=e,2===n.length&&(this.mPoints=n[0].mX>n[1].mX?[n[1],n[0]]:n),this.mColor=i}}class MV extends HB{constructor(t,e,n,i,r){super(t),this.mId="",this.mCenter=new QR,this.mEndPt=new QR,this.mId=e,this.mCenter.copy(n),this.mEndPt.copy(i),this.mColor=r}}class DV extends HB{constructor(t,e,n,i){super(t),this.mId="",this.mPoint=new QR,this.mId=e,this.mPoint.copy(n),this.mColor=i}}class EV extends HB{constructor(t,e,n,i){super(t),this.mId="",this.mPoints=[],this.mId=e,n.length>0&&(this.mPoints=n),this.mColor=i}}class OV extends HB{constructor(t,e,n,i,r){super(t),this.mId="",this.mPoints=[],this.mPolygonPts=[],this.mId=e,n.length>0&&(this.mPoints=n),i.length>0&&(this.mPolygonPts=i),this.mColor=r}}class AV extends HB{constructor(t,e,n,i,r,a,o,s){super(t),this.mId="",this.mName="",this.mOriginPoint=new QR,this.mUvector=qR.XAxis(),this.mVvector=qR.YAxis(),this.mUrlPath="",this.mId=e,this.mName=a,this.mOriginPoint.copy(n),this.mUvector.copy(i),this.mVvector.copy(r),this.mUrlPath=o,this.mColor=s}}class TV extends HB{constructor(t,e,n,i,r,a,o){super(t),this.mId="",this.mOriginPoint=new QR,this.mDiagonalPoint=new QR,this.mRevcloudPts=[],this.mRadius=0,this.mId=e,this.mOriginPoint.copy(n),this.mDiagonalPoint.copy(i),this.mRevcloudPts=r,this.mColor=o,this.mRadius=a}}class IV extends sV{constructor(t,e,n){super(t,0,e.length-1),this.mPtBuffer=[],this.mCountPts=0,this.mPtBuffer=e,this.mCountPts=n}}class LV{constructor(){this.mPrimitives=new Array,this.mPtBuffer=new Array,this.mVectorBuffer=new Array,this.mColorBuffer=new Array}clearCollector(){this.mPtBuffer.splice(0,this.mPtBuffer.length),this.mColorBuffer.splice(0,this.mColorBuffer.length),this.mVectorBuffer.splice(0,this.mVectorBuffer.length),this.mPrimitives.splice(0,this.mPrimitives.length)}addResetAttrPrimitive(){let t=new HB(RB.RESTATTR);return this.mPrimitives.push(t),this.mPrimitives.length-1}addRefPrimitive(t,e,n){let i=new KB(t);return i.mReference=e,i.mAttrFlags=n,this.mPrimitives.push(i),this.mPrimitives.length-1}addFillmodePrimitive(t,e){let n=new XB(t);return n.mFillMode=e,this.mPrimitives.push(n),this.mPrimitives.length-1}addPrimitive(t,e){let n=new sV(t,this.mPtBuffer.length-e,this.mPtBuffer.length);return this.mPrimitives.push(n),this.mPrimitives.length-1}addPrimitivePolygon(t,e){let n=new hV(t,this.mPtBuffer.length-e,this.mPtBuffer.length);this.mPrimitives.push(n)}addPrimitivePolyPolygon(t,e,n,i){let r=new dV(t,this.mPtBuffer.length-e,this.mPtBuffer.length,n,i);this.mPrimitives.push(r)}addPrimitiveWipeOut(t,e,n){let i=new uV(t,this.mPtBuffer.length-e,this.mPtBuffer.length,n);this.mPrimitives.push(i)}addPrimitiveShadedRawPolyline3d(t,e,n){let i=new yV(t,this.mPtBuffer.length-e,this.mPtBuffer.length,n);this.mPrimitives.push(i)}addPrimitivePolyline3d(t,e,n){let i=new vV(t,this.mPtBuffer.length-e,this.mPtBuffer.length,n);this.mPrimitives.push(i)}addPrimitiveRawLineStrips3d(t,e,n){let i=new wV(t,this.mPtBuffer.length-e,this.mPtBuffer.length,n);this.mPrimitives.push(i)}addPrimitiveLineStrips3d(t,e,n,i){let r=new xV(t,this.mPtBuffer.length-e,this.mPtBuffer.length,n,i);this.mPrimitives.push(r)}addPrimitiveText(t,e,n){let i=new fV(t,this.mPtBuffer.length-e,this.mPtBuffer.length,n);this.mPrimitives.push(i)}addPrimitiveText3d(t,e,n){let i=new bV(t,this.mPtBuffer.length-e,this.mPtBuffer.length,n);this.mPrimitives.push(i)}addPrimitiveHatch(t,e,n,i,r){let a=new pV(t,this.mPtBuffer.length-e,this.mPtBuffer.length,n,i,r);this.mPrimitives.push(a)}addPrimitiveHatch3d(t,e,n,i,r){let a=new gV(t,this.mPtBuffer.length-e,this.mPtBuffer.length,n,i,r);this.mPrimitives.push(a)}addPrimitivePoint(t,e){let n=new cV(t,this.mPtBuffer.length-3,this.mPtBuffer.length,e);this.mPrimitives.push(n)}addPritimivePolytriangle(t,e,n,i,r,a,o){let s;return s=n&&n.length>0?new lV(t,this.mPtBuffer.length-e,this.mPtBuffer.length,n,i,r,a,o):new lV(t,this.mPtBuffer.length-e,this.mPtBuffer.length),this.mPrimitives.push(s),s}addPritimiveRasterImage(t,e,n,i,r,a,o,s){let l=new mV(t,0,0,e,n,i,r,a,o,s);return this.mPrimitives.push(l),l}addPrimitiveCircle(t,e,n,i){let r=new SV(t,e,n,i);this.mPrimitives.push(r)}addPrimitiveSNAP(t,e,n,i="red"){let r=new PV(t,e,n,i);return this.mPrimitives.push(r),r}addPrimitiveCircleBubble(t,e,n,i,r="red"){let a=new MV(t,e,n,i,r);return this.mPrimitives.push(a),a}addPrimitivePinBubble(t,e,n,i="red"){let r=new DV(t,e,n,i);return this.mPrimitives.push(r),r}addPrimitiveRectangleBubble(t,e,n,i="red"){let r=new _V(t,e,n,i);return this.mPrimitives.push(r),r}addPrimitivePolylineBubble(t,e,n,i="red"){let r=new EV(t,e,n,i);return this.mPrimitives.push(r),r}addPrimitiveLeaderBubble(t,e,n,i,r="red"){let a=new OV(t,e,n,i,r);return this.mPrimitives.push(a),a}addPrimitiveImageBubble(t,e,n,i,r,a,o,s="red"){let l=new AV(t,e,n,i,r,a,o,s);return this.mPrimitives.push(l),l}addPrimitiveRevcloudBubble(t,e,n,i,r,a,o="red"){let s=new TV(t,e,n,i,r,a,o);return this.mPrimitives.push(s),s}addPrimitiveUcsIcon(t,e,n){let i=new IV(t,e,n);return this.mPrimitives.push(i),i}getBufferPoint(){return this.mPtBuffer}getVectorBuffer(){return this.mVectorBuffer}getColorBuffer(){return this.mColorBuffer}hasPrimitive(){return this.mPrimitives.length>0}mergeCollector(t){this.mPtBuffer.concat(t.getBufferPoint()),this.mVectorBuffer.concat(t.getBufferPoint()),this.mColorBuffer.concat(t.getBufferPoint()),t.mPrimitives.forEach((t=>{this.mPrimitives.push(t)}))}}const zV={modalBackgroundColor:4280363056,modalForegroundColor:4294967295,layoutBackgroundColor:4289309097,layoutForegroundColor:4278190080,majorGridColor:4281679432,minorGridColor:4280757814,pMajorGridColor:4286611584,pMinorGridColor:4292664540,doZoomProcess:!1,jigLeader:4284900966,areaLeader:4280508440,revcloudRadius:20};class RV{static zcutAngle(t,e){if(null===t||null===e)return 0;let n=e.mX-t.mX,i=e.mY-t.mY;if(XR.isEqual(n,0)&&XR.isEqual(i,0))return 0;let r=Math.atan2(i,n);return r<0&&(r+=XR.ZWGR_TWOPI),r}static zcutAngle2d(t,e){if(null===t||null===e)return 0;let n=e.mX-t.mX,i=e.mY-t.mY;if(XR.isEqual(n,0)&&XR.isEqual(i,0))return 0;let r=Math.atan2(i,n);return r<0&&(r+=XR.ZWGR_TWOPI),r}static zcutDistance(t,e){if(null===t||null===e)return 0;let n=t.mX-e.mX,i=t.mY-e.mY,r=t.mZ-e.mZ;return Math.sqrt(n*n+i*i+r*r)}static zcutDistance2d(t,e){if(null===t||null===e)return 0;let n=t.mX-e.mX,i=t.mY-e.mY;return Math.sqrt(n*n+i*i)}static zcutPolar(t,e,n){let i=new QR;return i.mX=t.mX+n*Math.cos(e),i.mY=t.mY+n*Math.sin(e),i.mZ=t.mZ,i}static zdsMidPt(t,e){let n=new QR;return n.mX=(t.mX+e.mX)/2,n.mY=(t.mY+e.mY)/2,n.mZ=(t.mZ+e.mZ)/2,n}static zdsMidPt2d(t,e){let n=new QR;return n.mX=(t.mX+e.mX)/2,n.mY=(t.mY+e.mY)/2,n}static zdsPolylineMidPt(t){if(t.length<2)return t[0];let e=new QR;return t.forEach((t=>{e.mX+=t.mX,e.mY+=t.mY,e.mZ+=t.mZ})),e.mX/=t.length,e.mY/=t.length,e.mZ/=t.length,e}static zdsDylColin(t,e,n){if(t.isEqual(e)||t.isEqual(n)||n.isEqual(e))return!0;let i,r,a;return i=RV.zcutDistance(t,e),r=RV.zcutDistance(t,n),a=RV.zcutDistance(e,n),Math.abs(a-(i+r))<1e-6||Math.abs(Math.abs(i-r)-a)<1e-6}static calculateCenterRedius(t){let e,n=t[0].mX,i=t[0].mY,r=t[1].mX,a=t[1].mY,o=t[2].mX,s=t[2].mY;e=(a-i)/(r-n);let l,c,h=(n+r)/2,d=(i+a)/2;if(0===e)l=h,c=(Math.pow(n,2)+Math.pow(i,2)-Math.pow(o,2)-Math.pow(s,2)-2*l*(n-o))/(2*(i-s));else if(e===1/0)c=d,l=(Math.pow(n,2)+Math.pow(i,2)-Math.pow(o,2)-Math.pow(s,2)-2*c*(i-s))/(2*(n-o));else{let t=d- -1/e*h;l=(Math.pow(n,2)+Math.pow(i,2)-Math.pow(o,2)-Math.pow(s,2)-2*t*i+2*t*s)/(2*(n-o-1/e*(i-s))),c=-1/e*l+t}let u=new QR(l,c,0);return{center:u,radius:RV.zcutDistance(t[0],u)}}static constuctArc(t,e,n){return!(t.isEqual(e)||t.isEqual(n)||n.isEqual(e)||RV.zdsDylColin(t,e,n))}static fixAngle(t){let e=t%XR.ZWGR_TWOPI;return e<0&&(e+=XR.ZWGR_TWOPI),e>=XR.ZWGR_TWOPI&&(e-=XR.ZWGR_TWOPI),e}static radToDeg(t){return t*(180/XR.ZWGR_PI)}}const FV="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,BV=Object.keys,VV=Array.isArray;function NV(t,e){return"object"!=typeof e||BV(e).forEach((function(n){t[n]=e[n]})),t}"undefined"==typeof Promise||FV.Promise||(FV.Promise=Promise);const HV=Object.getPrototypeOf,GV={}.hasOwnProperty;function ZV(t,e){return GV.call(t,e)}function UV(t,e){"function"==typeof e&&(e=e(HV(t))),("undefined"==typeof Reflect?BV:Reflect.ownKeys)(e).forEach((n=>{YV(t,n,e[n])}))}const WV=Object.defineProperty;function YV(t,e,n,i){WV(t,e,NV(n&&ZV(n,"get")&&"function"==typeof n.get?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},i))}function jV(t){return{from:function(e){return t.prototype=Object.create(e.prototype),YV(t.prototype,"constructor",t),{extend:UV.bind(null,t.prototype)}}}}const XV=Object.getOwnPropertyDescriptor;function qV(t,e){let n;return XV(t,e)||(n=HV(t))&&qV(n,e)}const $V=[].slice;function KV(t,e,n){return $V.call(t,e,n)}function JV(t,e){return e(t)}function QV(t){if(!t)throw new Error("Assertion Failed")}function tN(t){FV.setImmediate?setImmediate(t):setTimeout(t,0)}function eN(t,e){return t.reduce(((t,n,i)=>{var r=e(n,i);return r&&(t[r[0]]=r[1]),t}),{})}function nN(t,e){if(ZV(t,e))return t[e];if(!e)return t;if("string"!=typeof e){for(var n=[],i=0,r=e.length;i<r;++i){var a=nN(t,e[i]);n.push(a)}return n}var o=e.indexOf(".");if(-1!==o){var s=t[e.substr(0,o)];return void 0===s?void 0:nN(s,e.substr(o+1))}}function iN(t,e,n){if(t&&void 0!==e&&(!("isFrozen"in Object)||!Object.isFrozen(t)))if("string"!=typeof e&&"length"in e){QV("string"!=typeof n&&"length"in n);for(var i=0,r=e.length;i<r;++i)iN(t,e[i],n[i])}else{var a=e.indexOf(".");if(-1!==a){var o=e.substr(0,a),s=e.substr(a+1);if(""===s)void 0===n?VV(t)&&!isNaN(parseInt(o))?t.splice(o,1):delete t[o]:t[o]=n;else{var l=t[o];l&&ZV(t,o)||(l=t[o]={}),iN(l,s,n)}}else void 0===n?VV(t)&&!isNaN(parseInt(e))?t.splice(e,1):delete t[e]:t[e]=n}}function rN(t){var e={};for(var n in t)ZV(t,n)&&(e[n]=t[n]);return e}const aN=[].concat;function oN(t){return aN.apply([],t)}const sN="Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(oN([8,16,32,64].map((t=>["Int","Uint","Float"].map((e=>e+t+"Array")))))).filter((t=>FV[t])),lN=sN.map((t=>FV[t]));eN(sN,(t=>[t,!0]));let cN=null;function hN(t){cN="undefined"!=typeof WeakMap&&new WeakMap;const e=dN(t);return cN=null,e}function dN(t){if(!t||"object"!=typeof t)return t;let e=cN&&cN.get(t);if(e)return e;if(VV(t)){e=[],cN&&cN.set(t,e);for(var n=0,i=t.length;n<i;++n)e.push(dN(t[n]))}else if(lN.indexOf(t.constructor)>=0)e=t;else{const n=HV(t);for(var r in e=n===Object.prototype?{}:Object.create(n),cN&&cN.set(t,e),t)ZV(t,r)&&(e[r]=dN(t[r]))}return e}const{toString:uN}={};function mN(t){return uN.call(t).slice(8,-1)}const pN="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",gN="symbol"==typeof pN?function(t){var e;return null!=t&&(e=t[pN])&&e.apply(t)}:function(){return null},fN={};function bN(t){var e,n,i,r;if(1===arguments.length){if(VV(t))return t.slice();if(this===fN&&"string"==typeof t)return[t];if(r=gN(t)){for(n=[];!(i=r.next()).done;)n.push(i.value);return n}if(null==t)return[t];if("number"==typeof(e=t.length)){for(n=new Array(e);e--;)n[e]=t[e];return n}return[t]}for(e=arguments.length,n=new Array(e);e--;)n[e]=arguments[e];return n}const yN="undefined"!=typeof Symbol?t=>"AsyncFunction"===t[Symbol.toStringTag]:()=>!1;var vN="undefined"!=typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function wN(t,e){vN=t,xN=e}var xN=()=>!0;const CN=!new Error("").stack;function kN(){if(CN)try{throw new Error}catch(t){return t}return new Error}function SN(t,e){var n=t.stack;return n?(e=e||0,0===n.indexOf(t.name)&&(e+=(t.name+t.message).split("\n").length),n.split("\n").slice(e).filter(xN).map((t=>"\n"+t)).join("")):""}var PN=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],_N=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(PN),MN={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function DN(t,e){this._e=kN(),this.name=t,this.message=e}function EN(t,e){return t+". Errors: "+Object.keys(e).map((t=>e[t].toString())).filter(((t,e,n)=>n.indexOf(t)===e)).join("\n")}function ON(t,e,n,i){this._e=kN(),this.failures=e,this.failedKeys=i,this.successCount=n,this.message=EN(t,e)}function AN(t,e){this._e=kN(),this.name="BulkError",this.failures=Object.keys(e).map((t=>e[t])),this.failuresByPos=e,this.message=EN(t,e)}jV(DN).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+SN(this._e,2))}},toString:function(){return this.name+": "+this.message}}),jV(ON).from(DN),jV(AN).from(DN);var TN=_N.reduce(((t,e)=>(t[e]=e+"Error",t)),{});const IN=DN;var LN=_N.reduce(((t,e)=>{var n=e+"Error";function i(t,i){this._e=kN(),this.name=n,t?"string"==typeof t?(this.message=t+(i?"\n "+i:""),this.inner=i||null):"object"==typeof t&&(this.message=t.name+" "+t.message,this.inner=t):(this.message=MN[e]||n,this.inner=null)}return jV(i).from(IN),t[e]=i,t}),{});LN.Syntax=SyntaxError,LN.Type=TypeError,LN.Range=RangeError;var zN=PN.reduce(((t,e)=>(t[e+"Error"]=LN[e],t)),{}),RN=_N.reduce(((t,e)=>(-1===["Syntax","Type","Range"].indexOf(e)&&(t[e+"Error"]=LN[e]),t)),{});function FN(){}function BN(t){return t}function VN(t,e){return null==t||t===BN?e:function(n){return e(t(n))}}function NN(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}}function HN(t,e){return t===FN?e:function(){var n=t.apply(this,arguments);void 0!==n&&(arguments[0]=n);var i=this.onsuccess,r=this.onerror;this.onsuccess=null,this.onerror=null;var a=e.apply(this,arguments);return i&&(this.onsuccess=this.onsuccess?NN(i,this.onsuccess):i),r&&(this.onerror=this.onerror?NN(r,this.onerror):r),void 0!==a?a:n}}function GN(t,e){return t===FN?e:function(){t.apply(this,arguments);var n=this.onsuccess,i=this.onerror;this.onsuccess=this.onerror=null,e.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?NN(n,this.onsuccess):n),i&&(this.onerror=this.onerror?NN(i,this.onerror):i)}}function ZN(t,e){return t===FN?e:function(n){var i=t.apply(this,arguments);NV(n,i);var r=this.onsuccess,a=this.onerror;this.onsuccess=null,this.onerror=null;var o=e.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?NN(r,this.onsuccess):r),a&&(this.onerror=this.onerror?NN(a,this.onerror):a),void 0===i?void 0===o?void 0:o:NV(i,o)}}function UN(t,e){return t===FN?e:function(){return!1!==e.apply(this,arguments)&&t.apply(this,arguments)}}function WN(t,e){return t===FN?e:function(){var n=t.apply(this,arguments);if(n&&"function"==typeof n.then){for(var i=this,r=arguments.length,a=new Array(r);r--;)a[r]=arguments[r];return n.then((function(){return e.apply(i,a)}))}return e.apply(this,arguments)}}RN.ModifyError=ON,RN.DexieError=DN,RN.BulkError=AN;var YN={};const[jN,XN,qN]="undefined"==typeof Promise?[]:(()=>{let t=Promise.resolve();if("undefined"==typeof crypto||!crypto.subtle)return[t,HV(t),t];const e=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[e,HV(e),t]})(),$N=XN&&XN.then,KN=jN&&jN.constructor,JN=!!qN;var QN=!1,tH=qN?()=>{qN.then(kH)}:FV.setImmediate?setImmediate.bind(null,kH):FV.MutationObserver?()=>{var t=document.createElement("div");new MutationObserver((()=>{kH(),t=null})).observe(t,{attributes:!0}),t.setAttribute("i","1")}:()=>{setTimeout(kH,0)},eH=function(t,e){hH.push([t,e]),iH&&(tH(),iH=!1)},nH=!0,iH=!0,rH=[],aH=[],oH=null,sH=BN,lH={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:XH,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach((t=>{try{XH(t[0],t[1])}catch(t){}}))}},cH=lH,hH=[],dH=0,uH=[];function mH(t){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=FN,this._lib=!1;var e=this._PSD=cH;if(vN&&(this._stackHolder=kN(),this._prev=null,this._numPrev=0),"function"!=typeof t){if(t!==YN)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&bH(this,this._value))}this._state=null,this._value=null,++e.ref,fH(this,t)}const pH={get:function(){var t=cH,e=IH;function n(n,i){var r=!t.global&&(t!==cH||e!==IH);const a=r&&!FH();var o=new mH(((e,o)=>{vH(this,new gH(WH(n,t,r,a),WH(i,t,r,a),e,o,t))}));return vN&&CH(o,this),o}return n.prototype=YN,n},set:function(t){YV(this,"then",t&&t.prototype===YN?pH:{get:function(){return t},set:pH.set})}};function gH(t,e,n,i,r){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.resolve=n,this.reject=i,this.psd=r}function fH(t,e){try{e((e=>{if(null===t._state){if(e===t)throw new TypeError("A promise cannot be resolved with itself.");var n=t._lib&&SH();e&&"function"==typeof e.then?fH(t,((t,n)=>{e instanceof mH?e._then(t,n):e.then(t,n)})):(t._state=!0,t._value=e,yH(t)),n&&PH()}}),bH.bind(null,t))}catch(e){bH(t,e)}}function bH(t,e){if(aH.push(e),null===t._state){var n=t._lib&&SH();e=sH(e),t._state=!1,t._value=e,vN&&null!==e&&"object"==typeof e&&!e._promise&&function(n,i,r){try{(()=>{var n=qV(e,"stack");e._promise=t,YV(e,"stack",{get:()=>QN?n&&(n.get?n.get.apply(e):n.value):t.stack})}).apply(null,void 0)}catch(t){}}(),i=t,rH.some((t=>t._value===i._value))||rH.push(i),yH(t),n&&PH()}var i}function yH(t){var e=t._listeners;t._listeners=[];for(var n=0,i=e.length;n<i;++n)vH(t,e[n]);var r=t._PSD;--r.ref||r.finalize(),0===dH&&(++dH,eH((()=>{0==--dH&&_H()}),[]))}function vH(t,e){if(null!==t._state){var n=t._state?e.onFulfilled:e.onRejected;if(null===n)return(t._state?e.resolve:e.reject)(t._value);++e.psd.ref,++dH,eH(wH,[n,t,e])}else t._listeners.push(e)}function wH(t,e,n){try{oH=e;var i,r=e._value;e._state?i=t(r):(aH.length&&(aH=[]),i=t(r),-1===aH.indexOf(r)&&function(t){for(var e=rH.length;e;)if(rH[--e]._value===t._value)return void rH.splice(e,1)}(e)),n.resolve(i)}catch(t){n.reject(t)}finally{oH=null,0==--dH&&_H(),--n.psd.ref||n.psd.finalize()}}function xH(t,e,n){if(e.length===n)return e;var i="";if(!1===t._state){var r,a,o=t._value;null!=o?(r=o.name||"Error",a=o.message||o,i=SN(o,0)):(r=o,a=""),e.push(r+(a?": "+a:"")+i)}return vN&&((i=SN(t._stackHolder,2))&&-1===e.indexOf(i)&&e.push(i),t._prev&&xH(t._prev,e,n)),e}function CH(t,e){var n=e?e._numPrev+1:0;n<100&&(t._prev=e,t._numPrev=n)}function kH(){SH()&&PH()}function SH(){var t=nH;return nH=!1,iH=!1,t}function PH(){var t,e,n;do{for(;hH.length>0;)for(t=hH,hH=[],n=t.length,e=0;e<n;++e){var i=t[e];i[0].apply(null,i[1])}}while(hH.length>0);nH=!0,iH=!0}function _H(){var t=rH;rH=[],t.forEach((t=>{t._PSD.onunhandled.call(null,t._value,t)}));for(var e=uH.slice(0),n=e.length;n;)e[--n]()}function MH(t){return new mH(YN,!1,t)}function DH(t,e){var n=cH;return function(){var i=SH(),r=cH;try{return HH(n,!0),t.apply(this,arguments)}catch(t){e&&e(t)}finally{HH(r,!1),i&&PH()}}}UV(mH.prototype,{then:pH,_then:function(t,e){vH(this,new gH(null,null,t,e,cH))},catch:function(t){if(1===arguments.length)return this.then(null,t);var e=arguments[0],n=arguments[1];return this.then(null,"function"==typeof e?t=>t instanceof e?n(t):MH(t):t=>t&&t.name===e?n(t):MH(t))},finally:function(t){return this.then((e=>(t(),e)),(e=>(t(),MH(e))))},stack:{get:function(){if(this._stack)return this._stack;try{QN=!0;var t=xH(this,[],20).join("\nFrom previous: ");return null!==this._state&&(this._stack=t),t}finally{QN=!1}}},timeout:function(t,e){return t<1/0?new mH(((n,i)=>{var r=setTimeout((()=>i(new LN.Timeout(e))),t);this.then(n,i).finally(clearTimeout.bind(null,r))})):this}}),"undefined"!=typeof Symbol&&Symbol.toStringTag&&YV(mH.prototype,Symbol.toStringTag,"Dexie.Promise"),lH.env=GH(),UV(mH,{all:function(){var t=bN.apply(null,arguments).map(BH);return new mH((function(e,n){0===t.length&&e([]);var i=t.length;t.forEach(((r,a)=>mH.resolve(r).then((n=>{t[a]=n,--i||e(t)}),n)))}))},resolve:t=>{if(t instanceof mH)return t;if(t&&"function"==typeof t.then)return new mH(((e,n)=>{t.then(e,n)}));var e=new mH(YN,!0,t);return CH(e,oH),e},reject:MH,race:function(){var t=bN.apply(null,arguments).map(BH);return new mH(((e,n)=>{t.map((t=>mH.resolve(t).then(e,n)))}))},PSD:{get:()=>cH,set:t=>cH=t},totalEchoes:{get:()=>IH},newPSD:zH,usePSD:ZH,scheduler:{get:()=>eH,set:t=>{eH=t}},rejectionMapper:{get:()=>sH,set:t=>{sH=t}},follow:(t,e)=>new mH(((n,i)=>zH(((e,n)=>{var i=cH;i.unhandleds=[],i.onunhandled=n,i.finalize=NN((function(){var t;t=()=>{0===this.unhandleds.length?e():n(this.unhandleds[0])},uH.push((function e(){t(),uH.splice(uH.indexOf(e),1)})),++dH,eH((()=>{0==--dH&&_H()}),[])}),i.finalize),t()}),e,n,i)))}),KN&&(KN.allSettled&&YV(mH,"allSettled",(function(){const t=bN.apply(null,arguments).map(BH);return new mH((e=>{0===t.length&&e([]);let n=t.length;const i=new Array(n);t.forEach(((t,r)=>mH.resolve(t).then((t=>i[r]={status:"fulfilled",value:t}),(t=>i[r]={status:"rejected",reason:t})).then((()=>--n||e(i)))))}))})),KN.any&&"undefined"!=typeof AggregateError&&YV(mH,"any",(function(){const t=bN.apply(null,arguments).map(BH);return new mH(((e,n)=>{0===t.length&&n(new AggregateError([]));let i=t.length;const r=new Array(i);t.forEach(((t,a)=>mH.resolve(t).then((t=>e(t)),(t=>{r[a]=t,--i||n(new AggregateError(r))}))))}))})));const EH={awaits:0,echoes:0,id:0};var OH=0,AH=[],TH=0,IH=0,LH=0;function zH(t,e,n,i){var r=cH,a=Object.create(r);a.parent=r,a.ref=0,a.global=!1,a.id=++LH;var o=lH.env;a.env=JN?{Promise:mH,PromiseProp:{value:mH,configurable:!0,writable:!0},all:mH.all,race:mH.race,allSettled:mH.allSettled,any:mH.any,resolve:mH.resolve,reject:mH.reject,nthen:YH(o.nthen,a),gthen:YH(o.gthen,a)}:{},e&&NV(a,e),++r.ref,a.finalize=function(){--this.parent.ref||this.parent.finalize()};var s=ZH(a,t,n,i);return 0===a.ref&&a.finalize(),s}function RH(){return EH.id||(EH.id=++OH),++EH.awaits,EH.echoes+=100,EH.id}function FH(){return!!EH.awaits&&(0==--EH.awaits&&(EH.id=0),EH.echoes=100*EH.awaits,!0)}function BH(t){return EH.echoes&&t&&t.constructor===KN?(RH(),t.then((t=>(FH(),t)),(t=>(FH(),qH(t))))):t}function VH(t){++IH,EH.echoes&&0!=--EH.echoes||(EH.echoes=EH.id=0),AH.push(cH),HH(t,!0)}function NH(){var t=AH[AH.length-1];AH.pop(),HH(t,!1)}function HH(t,e){var n=cH;if((e?!EH.echoes||TH++&&t===cH:!TH||--TH&&t===cH)||UH(e?VH.bind(null,t):NH),t!==cH&&(cH=t,n===lH&&(lH.env=GH()),JN)){var i=lH.env.Promise,r=t.env;XN.then=r.nthen,i.prototype.then=r.gthen,(n.global||t.global)&&(Object.defineProperty(FV,"Promise",r.PromiseProp),i.all=r.all,i.race=r.race,i.resolve=r.resolve,i.reject=r.reject,r.allSettled&&(i.allSettled=r.allSettled),r.any&&(i.any=r.any))}}function GH(){var t=FV.Promise;return JN?{Promise:t,PromiseProp:Object.getOwnPropertyDescriptor(FV,"Promise"),all:t.all,race:t.race,allSettled:t.allSettled,any:t.any,resolve:t.resolve,reject:t.reject,nthen:XN.then,gthen:t.prototype.then}:{}}function ZH(t,e,n,i,r){var a=cH;try{return HH(t,!0),e(n,i,r)}finally{HH(a,!1)}}function UH(t){$N.call(jN,t)}function WH(t,e,n,i){return"function"!=typeof t?t:function(){var r=cH;n&&RH(),HH(e,!0);try{return t.apply(this,arguments)}finally{HH(r,!1),i&&UH(FH)}}}function YH(t,e){return function(n,i){return t.call(this,WH(n,e),WH(i,e))}}-1===(""+$N).indexOf("[native code]")&&(RH=FH=FN);const jH="unhandledrejection";function XH(t,e){var n;try{n=e.onuncatched(t)}catch(t){}if(!1!==n)try{var i,a={promise:e,reason:t};if(FV.document&&document.createEvent?((i=document.createEvent("Event")).initEvent(jH,!0,!0),NV(i,a)):FV.CustomEvent&&NV(i=new CustomEvent(jH,{detail:a}),a),i&&FV.dispatchEvent&&(dispatchEvent(i),!FV.PromiseRejectionEvent&&FV.onunhandledrejection))try{FV.onunhandledrejection(i)}catch(t){}vN&&i&&!i.defaultPrevented&&r.warn("Unhandled rejection: "+(t.stack||t))}catch(t){}}var qH=mH.reject;function $H(t,e,n,i){if(t.idbdb&&(t._state.openComplete||cH.letThrough||t._vip)){var a=t._createTransaction(e,n,t._dbSchema);try{a.create(),t._state.PR1398_maxLoop=3}catch(a){return a.name===TN.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0?(r.warn("Dexie: Need to reopen db"),t._close(),t.open().then((()=>$H(t,e,n,i)))):qH(a)}return a._promise(e,((t,e)=>zH((()=>(cH.trans=a,i(t,e,a)))))).then((t=>a._completion.then((()=>t))))}if(t._state.openComplete)return qH(new LN.DatabaseClosed(t._state.dbOpenError));if(!t._state.isBeingOpened){if(!t._options.autoOpen)return qH(new LN.DatabaseClosed);t.open().catch(FN)}return t._state.dbReadyPromise.then((()=>$H(t,e,n,i)))}const KH=String.fromCharCode(65535),JH=-1/0,QH="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",tG="String expected.",eG=[],nG="undefined"!=typeof navigator&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),iG=nG,rG=nG,aG=t=>!/(dexie\.js|dexie\.min\.js)/.test(t),oG="__dbnames",sG="readonly",lG="readwrite";function cG(t,e){return t?e?function(){return t.apply(this,arguments)&&e.apply(this,arguments)}:t:e}const hG={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function dG(t){return"string"!=typeof t||/\./.test(t)?t=>t:e=>(void 0===e[t]&&t in e&&delete(e=hN(e))[t],e)}class uG{_trans(t,e,n){const i=this._tx||cH.trans,r=this.name;function a(t,n,i){if(!i.schema[r])throw new LN.NotFound("Table "+r+" not part of transaction");return e(i.idbtrans,i)}const o=SH();try{return i&&i.db===this.db?i===cH.trans?i._promise(t,a,n):zH((()=>i._promise(t,a,n)),{trans:i,transless:cH.transless||cH}):$H(this.db,t,[this.name],a)}finally{o&&PH()}}get(t,e){return t&&t.constructor===Object?this.where(t).first(e):this._trans("readonly",(e=>this.core.get({trans:e,key:t}).then((t=>this.hook.reading.fire(t))))).then(e)}where(t){if("string"==typeof t)return new this.db.WhereClause(this,t);if(VV(t))return new this.db.WhereClause(this,"["+t.join("+")+"]");const e=BV(t);if(1===e.length)return this.where(e[0]).equals(t[e[0]]);const n=this.schema.indexes.concat(this.schema.primKey).filter((t=>t.compound&&e.every((e=>t.keyPath.indexOf(e)>=0))&&t.keyPath.every((t=>e.indexOf(t)>=0))))[0];if(n&&this.db._maxKey!==KH)return this.where(n.name).equals(n.keyPath.map((e=>t[e])));!n&&vN&&r.warn("The query "+JSON.stringify(t)+" on "+this.name+" would benefit of a compound index ["+e.join("+")+"]");const{idxByName:i}=this.schema,a=this.db._deps.indexedDB;function o(t,e){try{return 0===a.cmp(t,e)}catch(t){return!1}}const[s,l]=e.reduce((([e,n],r)=>{const a=i[r],s=t[r];return[e||a,e||!a?cG(n,a&&a.multi?t=>{const e=nN(t,r);return VV(e)&&e.some((t=>o(s,t)))}:t=>o(s,nN(t,r))):n]}),[null,null]);return s?this.where(s.name).equals(t[s.keyPath]).filter(l):n?this.filter(l):this.where(e).equals("")}filter(t){return this.toCollection().and(t)}count(t){return this.toCollection().count(t)}offset(t){return this.toCollection().offset(t)}limit(t){return this.toCollection().limit(t)}each(t){return this.toCollection().each(t)}toArray(t){return this.toCollection().toArray(t)}toCollection(){return new this.db.Collection(new this.db.WhereClause(this))}orderBy(t){return new this.db.Collection(new this.db.WhereClause(this,VV(t)?"["+t.join("+")+"]":t))}reverse(){return this.toCollection().reverse()}mapToClass(t){this.schema.mappedClass=t;const e=e=>{if(!e)return e;const n=Object.create(t.prototype);for(var i in e)if(ZV(e,i))try{n[i]=e[i]}catch(t){}return n};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=e,this.hook("reading",e),t}defineClass(){return this.mapToClass((function(t){NV(this,t)}))}add(t,e){const{auto:n,keyPath:i}=this.schema.primKey;let r=t;return i&&n&&(r=dG(i)(t)),this._trans("readwrite",(t=>this.core.mutate({trans:t,type:"add",keys:null!=e?[e]:null,values:[r]}))).then((t=>t.numFailures?mH.reject(t.failures[0]):t.lastResult)).then((e=>{if(i)try{iN(t,i,e)}catch(t){}return e}))}update(t,e){if("object"!=typeof t||VV(t))return this.where(":id").equals(t).modify(e);{const n=nN(t,this.schema.primKey.keyPath);if(void 0===n)return qH(new LN.InvalidArgument("Given object does not contain its primary key"));try{"function"!=typeof e?BV(e).forEach((n=>{iN(t,n,e[n])})):e(t,{value:t,primKey:n})}catch(t){}return this.where(":id").equals(n).modify(e)}}put(t,e){const{auto:n,keyPath:i}=this.schema.primKey;let r=t;return i&&n&&(r=dG(i)(t)),this._trans("readwrite",(t=>this.core.mutate({trans:t,type:"put",values:[r],keys:null!=e?[e]:null}))).then((t=>t.numFailures?mH.reject(t.failures[0]):t.lastResult)).then((e=>{if(i)try{iN(t,i,e)}catch(t){}return e}))}delete(t){return this._trans("readwrite",(e=>this.core.mutate({trans:e,type:"delete",keys:[t]}))).then((t=>t.numFailures?mH.reject(t.failures[0]):void 0))}clear(){return this._trans("readwrite",(t=>this.core.mutate({trans:t,type:"deleteRange",range:hG}))).then((t=>t.numFailures?mH.reject(t.failures[0]):void 0))}bulkGet(t){return this._trans("readonly",(e=>this.core.getMany({keys:t,trans:e}).then((t=>t.map((t=>this.hook.reading.fire(t)))))))}bulkAdd(t,e,n){const i=Array.isArray(e)?e:void 0,r=(n=n||(i?void 0:e))?n.allKeys:void 0;return this._trans("readwrite",(e=>{const{auto:n,keyPath:a}=this.schema.primKey;if(a&&i)throw new LN.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(i&&i.length!==t.length)throw new LN.InvalidArgument("Arguments objects and keys must have the same length");const o=t.length;let s=a&&n?t.map(dG(a)):t;return this.core.mutate({trans:e,type:"add",keys:i,values:s,wantResults:r}).then((({numFailures:t,results:e,lastResult:n,failures:i})=>{if(0===t)return r?e:n;throw new AN(this.name+".bulkAdd(): "+t+" of "+o+" operations failed",i)}))}))}bulkPut(t,e,n){const i=Array.isArray(e)?e:void 0,r=(n=n||(i?void 0:e))?n.allKeys:void 0;return this._trans("readwrite",(e=>{const{auto:n,keyPath:a}=this.schema.primKey;if(a&&i)throw new LN.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(i&&i.length!==t.length)throw new LN.InvalidArgument("Arguments objects and keys must have the same length");const o=t.length;let s=a&&n?t.map(dG(a)):t;return this.core.mutate({trans:e,type:"put",keys:i,values:s,wantResults:r}).then((({numFailures:t,results:e,lastResult:n,failures:i})=>{if(0===t)return r?e:n;throw new AN(this.name+".bulkPut(): "+t+" of "+o+" operations failed",i)}))}))}bulkDelete(t){const e=t.length;return this._trans("readwrite",(e=>this.core.mutate({trans:e,type:"delete",keys:t}))).then((({numFailures:t,lastResult:n,failures:i})=>{if(0===t)return n;throw new AN(this.name+".bulkDelete(): "+t+" of "+e+" operations failed",i)}))}}function mG(t){var e={},n=function(n,i){if(i){for(var r=arguments.length,a=new Array(r-1);--r;)a[r-1]=arguments[r];return e[n].subscribe.apply(null,a),t}if("string"==typeof n)return e[n]};n.addEventType=a;for(var i=1,r=arguments.length;i<r;++i)a(arguments[i]);return n;function a(t,i,r){if("object"!=typeof t){var o;i||(i=UN),r||(r=FN);var s={subscribers:[],fire:r,subscribe:function(t){-1===s.subscribers.indexOf(t)&&(s.subscribers.push(t),s.fire=i(s.fire,t))},unsubscribe:function(t){s.subscribers=s.subscribers.filter((function(e){return e!==t})),s.fire=s.subscribers.reduce(i,r)}};return e[t]=n[t]=s,s}BV(o=t).forEach((function(t){var e=o[t];if(VV(e))a(t,o[t][0],o[t][1]);else{if("asap"!==e)throw new LN.InvalidArgument("Invalid event config");var n=a(t,BN,(function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];n.subscribers.forEach((function(t){tN((function(){t.apply(null,e)}))}))}))}}))}}function pG(t,e){return jV(e).from({prototype:t}),e}function gG(t,e){return!(t.filter||t.algorithm||t.or)&&(e?t.justLimit:!t.replayFilter)}function fG(t,e){t.filter=cG(t.filter,e)}function bG(t,e,n){var i=t.replayFilter;t.replayFilter=i?()=>cG(i(),e()):e,t.justLimit=n&&!i}function yG(t,e){if(t.isPrimKey)return e.primaryKey;const n=e.getIndexByKeyPath(t.index);if(!n)throw new LN.Schema("KeyPath "+t.index+" on object store "+e.name+" is not indexed");return n}function vG(t,e,n){const i=yG(t,e.schema);return e.openCursor({trans:n,values:!t.keysOnly,reverse:"prev"===t.dir,unique:!!t.unique,query:{index:i,range:t.range}})}function wG(t,e,n,i){const r=t.replayFilter?cG(t.filter,t.replayFilter()):t.filter;if(t.or){const a={},o=(t,n,i)=>{if(!r||r(n,i,(t=>n.stop(t)),(t=>n.fail(t)))){var o=n.primaryKey,s=""+o;"[object ArrayBuffer]"===s&&(s=""+new Uint8Array(o)),ZV(a,s)||(a[s]=!0,e(t,n,i))}};return Promise.all([t.or._iterate(o,n),xG(vG(t,i,n),t.algorithm,o,!t.keysOnly&&t.valueMapper)])}return xG(vG(t,i,n),cG(t.algorithm,r),e,!t.keysOnly&&t.valueMapper)}function xG(t,e,n,i){var r=DH(i?(t,e,r)=>n(i(t),e,r):n);return t.then((t=>{if(t)return t.start((()=>{var n=()=>t.continue();e&&!e(t,(t=>n=t),(e=>{t.stop(e),n=FN}),(e=>{t.fail(e),n=FN}))||r(t.value,t,(t=>n=t)),n()}))}))}function CG(t,e){try{const n=kG(t),i=kG(e);if(n!==i)return"Array"===n?1:"Array"===i?-1:"binary"===n?1:"binary"===i?-1:"string"===n?1:"string"===i?-1:"Date"===n?1:"Date"!==i?NaN:-1;switch(n){case"number":case"Date":case"string":return t>e?1:t<e?-1:0;case"binary":return function(t,e){const n=t.length,i=e.length,r=n<i?n:i;for(let n=0;n<r;++n)if(t[n]!==e[n])return t[n]<e[n]?-1:1;return n===i?0:n<i?-1:1}(SG(t),SG(e));case"Array":return function(t,e){const n=t.length,i=e.length,r=n<i?n:i;for(let n=0;n<r;++n){const i=CG(t[n],e[n]);if(0!==i)return i}return n===i?0:n<i?-1:1}(t,e)}}catch(t){}return NaN}function kG(t){const e=typeof t;if("object"!==e)return e;if(ArrayBuffer.isView(t))return"binary";const n=mN(t);return"ArrayBuffer"===n?"binary":n}function SG(t){return t instanceof Uint8Array?t:ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):new Uint8Array(t)}class PG{_read(t,e){var n=this._ctx;return n.error?n.table._trans(null,qH.bind(null,n.error)):n.table._trans("readonly",t).then(e)}_write(t){var e=this._ctx;return e.error?e.table._trans(null,qH.bind(null,e.error)):e.table._trans("readwrite",t,"locked")}_addAlgorithm(t){var e=this._ctx;e.algorithm=cG(e.algorithm,t)}_iterate(t,e){return wG(this._ctx,t,e,this._ctx.table.core)}clone(t){var e=Object.create(this.constructor.prototype),n=Object.create(this._ctx);return t&&NV(n,t),e._ctx=n,e}raw(){return this._ctx.valueMapper=null,this}each(t){var e=this._ctx;return this._read((n=>wG(e,t,n,e.table.core)))}count(t){return this._read((t=>{const e=this._ctx,n=e.table.core;if(gG(e,!0))return n.count({trans:t,query:{index:yG(e,n.schema),range:e.range}}).then((t=>Math.min(t,e.limit)));var i=0;return wG(e,(()=>(++i,!1)),t,n).then((()=>i))})).then(t)}sortBy(t,e){const n=t.split(".").reverse(),i=n[0],r=n.length-1;function a(t,e){return e?a(t[n[e]],e-1):t[i]}var o="next"===this._ctx.dir?1:-1;function s(t,e){var n=a(t,r),i=a(e,r);return n<i?-o:n>i?o:0}return this.toArray((function(t){return t.sort(s)})).then(e)}toArray(t){return this._read((t=>{var e=this._ctx;if("next"===e.dir&&gG(e,!0)&&e.limit>0){const{valueMapper:n}=e,i=yG(e,e.table.core.schema);return e.table.core.query({trans:t,limit:e.limit,values:!0,query:{index:i,range:e.range}}).then((({result:t})=>n?t.map(n):t))}{const n=[];return wG(e,(t=>n.push(t)),t,e.table.core).then((()=>n))}}),t)}offset(t){var e=this._ctx;return t<=0||(e.offset+=t,gG(e)?bG(e,(()=>{var e=t;return(t,n)=>0===e||(1===e?(--e,!1):(n((()=>{t.advance(e),e=0})),!1))})):bG(e,(()=>{var e=t;return()=>--e<0}))),this}limit(t){return this._ctx.limit=Math.min(this._ctx.limit,t),bG(this._ctx,(()=>{var e=t;return function(t,n,i){return--e<=0&&n(i),e>=0}}),!0),this}until(t,e){return fG(this._ctx,(function(n,i,r){return!t(n.value)||(i(r),e)})),this}first(t){return this.limit(1).toArray((function(t){return t[0]})).then(t)}last(t){return this.reverse().first(t)}filter(t){var e;return fG(this._ctx,(function(e){return t(e.value)})),(e=this._ctx).isMatch=cG(e.isMatch,t),this}and(t){return this.filter(t)}or(t){return new this.db.WhereClause(this._ctx.table,t,this)}reverse(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this}desc(){return this.reverse()}eachKey(t){var e=this._ctx;return e.keysOnly=!e.isMatch,this.each((function(e,n){t(n.key,n)}))}eachUniqueKey(t){return this._ctx.unique="unique",this.eachKey(t)}eachPrimaryKey(t){var e=this._ctx;return e.keysOnly=!e.isMatch,this.each((function(e,n){t(n.primaryKey,n)}))}keys(t){var e=this._ctx;e.keysOnly=!e.isMatch;var n=[];return this.each((function(t,e){n.push(e.key)})).then((function(){return n})).then(t)}primaryKeys(t){var e=this._ctx;if("next"===e.dir&&gG(e,!0)&&e.limit>0)return this._read((t=>{var n=yG(e,e.table.core.schema);return e.table.core.query({trans:t,values:!1,limit:e.limit,query:{index:n,range:e.range}})})).then((({result:t})=>t)).then(t);e.keysOnly=!e.isMatch;var n=[];return this.each((function(t,e){n.push(e.primaryKey)})).then((function(){return n})).then(t)}uniqueKeys(t){return this._ctx.unique="unique",this.keys(t)}firstKey(t){return this.limit(1).keys((function(t){return t[0]})).then(t)}lastKey(t){return this.reverse().firstKey(t)}distinct(){var t=this._ctx,e=t.index&&t.table.schema.idxByName[t.index];if(!e||!e.multi)return this;var n={};return fG(this._ctx,(function(t){var e=t.primaryKey.toString(),i=ZV(n,e);return n[e]=!0,!i})),this}modify(t){var e=this._ctx;return this._write((n=>{var i;if("function"==typeof t)i=t;else{var r=BV(t),a=r.length;i=function(e){for(var n=!1,i=0;i<a;++i){var o=r[i],s=t[o];nN(e,o)!==s&&(iN(e,o,s),n=!0)}return n}}const o=e.table.core,{outbound:s,extractKey:l}=o.schema.primaryKey,c=this.db._options.modifyChunkSize||200,h=[];let d=0;const u=[],m=(t,e)=>{const{failures:n,numFailures:i}=e;d+=t-i;for(let t of BV(n))h.push(n[t])};return this.clone().primaryKeys().then((r=>{const a=h=>{const d=Math.min(c,r.length-h);return o.getMany({trans:n,keys:r.slice(h,h+d),cache:"immutable"}).then((u=>{const p=[],g=[],f=s?[]:null,b=[];for(let t=0;t<d;++t){const e=u[t],n={value:hN(e),primKey:r[h+t]};!1!==i.call(n,n.value,n)&&(null==n.value?b.push(r[h+t]):s||0===CG(l(e),l(n.value))?(g.push(n.value),s&&f.push(r[h+t])):(b.push(r[h+t]),p.push(n.value)))}const y=gG(e)&&e.limit===1/0&&("function"!=typeof t||t===_G)&&{index:e.index,range:e.range};return Promise.resolve(p.length>0&&o.mutate({trans:n,type:"add",values:p}).then((t=>{for(let e in t.failures)b.splice(parseInt(e),1);m(p.length,t)}))).then((()=>(g.length>0||y&&"object"==typeof t)&&o.mutate({trans:n,type:"put",keys:f,values:g,criteria:y,changeSpec:"function"!=typeof t&&t}).then((t=>m(g.length,t))))).then((()=>(b.length>0||y&&t===_G)&&o.mutate({trans:n,type:"delete",keys:b,criteria:y}).then((t=>m(b.length,t))))).then((()=>r.length>h+d&&a(h+c)))}))};return a(0).then((()=>{if(h.length>0)throw new ON("Error modifying one or more objects",h,d,u);return r.length}))}))}))}delete(){var t=this._ctx,e=t.range;return gG(t)&&(t.isPrimKey&&!rG||3===e.type)?this._write((n=>{const{primaryKey:i}=t.table.core.schema,r=e;return t.table.core.count({trans:n,query:{index:i,range:r}}).then((e=>t.table.core.mutate({trans:n,type:"deleteRange",range:r}).then((({failures:t,numFailures:n})=>{if(n)throw new ON("Could not delete some values",Object.keys(t).map((e=>t[e])),e-n);return e-n}))))})):this.modify(_G)}}const _G=(t,e)=>e.value=null;function MG(t,e){return t<e?-1:t===e?0:1}function DG(t,e){return t>e?-1:t===e?0:1}function EG(t,e,n){var i=t instanceof zG?new t.Collection(t):t;return i._ctx.error=n?new n(e):new TypeError(e),i}function OG(t){return new t.Collection(t,(()=>LG(""))).limit(0)}function AG(t,e,n,i,r,a){for(var o=Math.min(t.length,i.length),s=-1,l=0;l<o;++l){var c=e[l];if(c!==i[l])return r(t[l],n[l])<0?t.substr(0,l)+n[l]+n.substr(l+1):r(t[l],i[l])<0?t.substr(0,l)+i[l]+n.substr(l+1):s>=0?t.substr(0,s)+e[s]+n.substr(s+1):null;r(t[l],c)<0&&(s=l)}return o<i.length&&"next"===a?t+n.substr(t.length):o<t.length&&"prev"===a?t.substr(0,n.length):s<0?null:t.substr(0,s)+i[s]+n.substr(s+1)}function TG(t,e,n,i){var r,a,o,s,l,c,h,d=n.length;if(!n.every((t=>"string"==typeof t)))return EG(t,tG);function u(t){r="next"===t?t=>t.toUpperCase():t=>t.toLowerCase(),a="next"===t?t=>t.toLowerCase():t=>t.toUpperCase(),o="next"===t?MG:DG;var e=n.map((function(t){return{lower:a(t),upper:r(t)}})).sort((function(t,e){return o(t.lower,e.lower)}));s=e.map((function(t){return t.upper})),l=e.map((function(t){return t.lower})),c=t,h="next"===t?"":i}u("next");var m=new t.Collection(t,(()=>IG(s[0],l[d-1]+i)));m._ondirectionchange=function(t){u(t)};var p=0;return m._addAlgorithm((function(t,n,i){var r=t.key;if("string"!=typeof r)return!1;var u=a(r);if(e(u,l,p))return!0;for(var m=null,g=p;g<d;++g){var f=AG(r,u,s[g],l[g],o,c);null===f&&null===m?p=g+1:(null===m||o(m,f)>0)&&(m=f)}return n(null!==m?function(){t.continue(m+h)}:i),!1})),m}function IG(t,e,n,i){return{type:2,lower:t,upper:e,lowerOpen:n,upperOpen:i}}function LG(t){return{type:1,lower:t,upper:t}}class zG{get Collection(){return this._ctx.table.db.Collection}between(t,e,n,i){n=!1!==n,i=!0===i;try{return this._cmp(t,e)>0||0===this._cmp(t,e)&&(n||i)&&(!n||!i)?OG(this):new this.Collection(this,(()=>IG(t,e,!n,!i)))}catch(t){return EG(this,QH)}}equals(t){return null==t?EG(this,QH):new this.Collection(this,(()=>LG(t)))}above(t){return null==t?EG(this,QH):new this.Collection(this,(()=>IG(t,void 0,!0)))}aboveOrEqual(t){return null==t?EG(this,QH):new this.Collection(this,(()=>IG(t,void 0,!1)))}below(t){return null==t?EG(this,QH):new this.Collection(this,(()=>IG(void 0,t,!1,!0)))}belowOrEqual(t){return null==t?EG(this,QH):new this.Collection(this,(()=>IG(void 0,t)))}startsWith(t){return"string"!=typeof t?EG(this,tG):this.between(t,t+KH,!0,!0)}startsWithIgnoreCase(t){return""===t?this.startsWith(t):TG(this,((t,e)=>0===t.indexOf(e[0])),[t],KH)}equalsIgnoreCase(t){return TG(this,((t,e)=>t===e[0]),[t],"")}anyOfIgnoreCase(){var t=bN.apply(fN,arguments);return 0===t.length?OG(this):TG(this,((t,e)=>-1!==e.indexOf(t)),t,"")}startsWithAnyOfIgnoreCase(){var t=bN.apply(fN,arguments);return 0===t.length?OG(this):TG(this,((t,e)=>e.some((e=>0===t.indexOf(e)))),t,KH)}anyOf(){const t=bN.apply(fN,arguments);let e=this._cmp;try{t.sort(e)}catch(t){return EG(this,QH)}if(0===t.length)return OG(this);const n=new this.Collection(this,(()=>IG(t[0],t[t.length-1])));n._ondirectionchange=n=>{e="next"===n?this._ascending:this._descending,t.sort(e)};let i=0;return n._addAlgorithm(((n,r,a)=>{const o=n.key;for(;e(o,t[i])>0;)if(++i,i===t.length)return r(a),!1;return 0===e(o,t[i])||(r((()=>{n.continue(t[i])})),!1)})),n}notEqual(t){return this.inAnyRange([[JH,t],[t,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})}noneOf(){const t=bN.apply(fN,arguments);if(0===t.length)return new this.Collection(this);try{t.sort(this._ascending)}catch(t){return EG(this,QH)}const e=t.reduce(((t,e)=>t?t.concat([[t[t.length-1][1],e]]):[[JH,e]]),null);return e.push([t[t.length-1],this.db._maxKey]),this.inAnyRange(e,{includeLowers:!1,includeUppers:!1})}inAnyRange(t,e){const n=this._cmp,i=this._ascending,r=this._descending,a=this._min,o=this._max;if(0===t.length)return OG(this);if(!t.every((t=>void 0!==t[0]&&void 0!==t[1]&&i(t[0],t[1])<=0)))return EG(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",LN.InvalidArgument);const s=!e||!1!==e.includeLowers,l=e&&!0===e.includeUppers;let c,h=i;function d(t,e){return h(t[0],e[0])}try{c=t.reduce((function(t,e){let i=0,r=t.length;for(;i<r;++i){const r=t[i];if(n(e[0],r[1])<0&&n(e[1],r[0])>0){r[0]=a(r[0],e[0]),r[1]=o(r[1],e[1]);break}}return i===r&&t.push(e),t}),[]),c.sort(d)}catch(t){return EG(this,QH)}let u=0;const m=l?t=>i(t,c[u][1])>0:t=>i(t,c[u][1])>=0,p=s?t=>r(t,c[u][0])>0:t=>r(t,c[u][0])>=0;let g=m;const f=new this.Collection(this,(()=>IG(c[0][0],c[c.length-1][1],!s,!l)));return f._ondirectionchange=t=>{"next"===t?(g=m,h=i):(g=p,h=r),c.sort(d)},f._addAlgorithm(((t,e,n)=>{for(var r=t.key;g(r);)if(++u,u===c.length)return e(n),!1;return!((m(a=r)||p(a))&&(0===this._cmp(r,c[u][1])||0===this._cmp(r,c[u][0])||e((()=>{t.continue(h===i?c[u][0]:c[u][1])})),1));var a})),f}startsWithAnyOf(){const t=bN.apply(fN,arguments);return t.every((t=>"string"==typeof t))?0===t.length?OG(this):this.inAnyRange(t.map((t=>[t,t+KH]))):EG(this,"startsWithAnyOf() only works with strings")}}function RG(t){return DH((function(e){return FG(e),t(e.target.error),!1}))}function FG(t){t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault()}const BG="storagemutated",VG="x-storagemutated-1",NG=mG(null,BG);class HG{_lock(){return QV(!cH.global),++this._reculock,1!==this._reculock||cH.global||(cH.lockOwnerFor=this),this}_unlock(){if(QV(!cH.global),0==--this._reculock)for(cH.global||(cH.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var t=this._blockedFuncs.shift();try{ZH(t[1],t[0])}catch(t){}}return this}_locked(){return this._reculock&&cH.lockOwnerFor!==this}create(t){if(!this.mode)return this;const e=this.db.idbdb,n=this.db._state.dbOpenError;if(QV(!this.idbtrans),!t&&!e)switch(n&&n.name){case"DatabaseClosedError":throw new LN.DatabaseClosed(n);case"MissingAPIError":throw new LN.MissingAPI(n.message,n);default:throw new LN.OpenFailed(n)}if(!this.active)throw new LN.TransactionInactive;return QV(null===this._completion._state),(t=this.idbtrans=t||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):e.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}))).onerror=DH((e=>{FG(e),this._reject(t.error)})),t.onabort=DH((e=>{FG(e),this.active&&this._reject(new LN.Abort(t.error)),this.active=!1,this.on("abort").fire(e)})),t.oncomplete=DH((()=>{this.active=!1,this._resolve(),"mutatedParts"in t&&NG.storagemutated.fire(t.mutatedParts)})),this}_promise(t,e,n){if("readwrite"===t&&"readwrite"!==this.mode)return qH(new LN.ReadOnly("Transaction is readonly"));if(!this.active)return qH(new LN.TransactionInactive);if(this._locked())return new mH(((i,r)=>{this._blockedFuncs.push([()=>{this._promise(t,e,n).then(i,r)},cH])}));if(n)return zH((()=>{var t=new mH(((t,n)=>{this._lock();const i=e(t,n,this);i&&i.then&&i.then(t,n)}));return t.finally((()=>this._unlock())),t._lib=!0,t}));var i=new mH(((t,n)=>{var i=e(t,n,this);i&&i.then&&i.then(t,n)}));return i._lib=!0,i}_root(){return this.parent?this.parent._root():this}waitFor(t){var e=this._root();const n=mH.resolve(t);if(e._waitingFor)e._waitingFor=e._waitingFor.then((()=>n));else{e._waitingFor=n,e._waitingQueue=[];var i=e.idbtrans.objectStore(e.storeNames[0]);!function t(){for(++e._spinCount;e._waitingQueue.length;)e._waitingQueue.shift()();e._waitingFor&&(i.get(-1/0).onsuccess=t)}()}var r=e._waitingFor;return new mH(((t,i)=>{n.then((n=>e._waitingQueue.push(DH(t.bind(null,n)))),(t=>e._waitingQueue.push(DH(i.bind(null,t))))).finally((()=>{e._waitingFor===r&&(e._waitingFor=null)}))}))}abort(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new LN.Abort))}table(t){const e=this._memoizedTables||(this._memoizedTables={});if(ZV(e,t))return e[t];const n=this.schema[t];if(!n)throw new LN.NotFound("Table "+t+" not part of transaction");const i=new this.db.Table(t,n,this);return i.core=this.db.core.table(t),e[t]=i,i}}function GG(t,e,n,i,r,a,o){return{name:t,keyPath:e,unique:n,multi:i,auto:r,compound:a,src:(n&&!o?"&":"")+(i?"*":"")+(r?"++":"")+ZG(e)}}function ZG(t){return"string"==typeof t?t:t?"["+[].join.call(t,"+")+"]":""}function UG(t,e,n){return{name:t,primKey:e,indexes:n,mappedClass:null,idxByName:eN(n,(t=>[t.name,t]))}}let WG=t=>{try{return t.only([[]]),WG=()=>[[]],[[]]}catch(t){return WG=()=>KH,KH}};function YG(t){return null==t?()=>{}:"string"==typeof t?1===(e=t).split(".").length?t=>t[e]:t=>nN(t,e):e=>nN(e,t);var e}function jG(t){return[].slice.call(t)}let XG=0;function qG(t){return null==t?":id":"string"==typeof t?t:"["+t.join("+")+"]"}function $G(t,e,n){function i(t){if(3===t.type)return null;if(4===t.type)throw new Error("Cannot convert never type to IDBKeyRange");const{lower:n,upper:i,lowerOpen:r,upperOpen:a}=t;return void 0===n?void 0===i?null:e.upperBound(i,!!a):void 0===i?e.lowerBound(n,!!r):e.bound(n,i,!!r,!!a)}const{schema:r,hasGetAll:a}=function(t,e){const n=jG(t.objectStoreNames);return{schema:{name:t.name,tables:n.map((t=>e.objectStore(t))).map((t=>{const{keyPath:e,autoIncrement:n}=t,i=VV(e),r={},a={name:t.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:null==e,compound:i,keyPath:e,autoIncrement:n,unique:!0,extractKey:YG(e)},indexes:jG(t.indexNames).map((e=>t.index(e))).map((t=>{const{name:e,unique:n,multiEntry:i,keyPath:a}=t,o={name:e,compound:VV(a),keyPath:a,unique:n,multiEntry:i,extractKey:YG(a)};return r[qG(a)]=o,o})),getIndexByKeyPath:t=>r[qG(t)]};return r[":id"]=a.primaryKey,null!=e&&(r[qG(e)]=a.primaryKey),a}))},hasGetAll:n.length>0&&"getAll"in e.objectStore(n[0])&&!("undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}(t,n),o=r.tables.map((t=>function(t){const e=t.name;return{name:e,schema:t,mutate:function({trans:t,type:n,keys:r,values:a,range:o}){return new Promise(((s,l)=>{s=DH(s);const c=t.objectStore(e),h=null==c.keyPath,d="put"===n||"add"===n;if(!d&&"delete"!==n&&"deleteRange"!==n)throw new Error("Invalid operation type: "+n);const{length:u}=r||a||{length:1};if(r&&a&&r.length!==a.length)throw new Error("Given keys array must have same length as given values array.");if(0===u)return s({numFailures:0,failures:{},results:[],lastResult:void 0});let m;const p=[],g=[];let f=0;const b=t=>{++f,FG(t)};if("deleteRange"===n){if(4===o.type)return s({numFailures:f,failures:g,results:[],lastResult:void 0});p.push(m=3===o.type?c.clear():c.delete(i(o)))}else{const[t,e]=d?h?[a,r]:[a,null]:[r,null];if(d)for(let i=0;i<u;++i)p.push(m=e&&void 0!==e[i]?c[n](t[i],e[i]):c[n](t[i])),m.onerror=b;else for(let e=0;e<u;++e)p.push(m=c[n](t[e])),m.onerror=b}const y=t=>{const e=t.target.result;p.forEach(((t,e)=>null!=t.error&&(g[e]=t.error))),s({numFailures:f,failures:g,results:"delete"===n?r:p.map((t=>t.result)),lastResult:e})};m.onerror=t=>{b(t),y(t)},m.onsuccess=y}))},getMany:({trans:t,keys:n})=>new Promise(((i,r)=>{i=DH(i);const a=t.objectStore(e),o=n.length,s=new Array(o);let l,c=0,h=0;const d=t=>{const e=t.target;s[e._pos]=e.result,++h===c&&i(s)},u=RG(r);for(let t=0;t<o;++t)null!=n[t]&&(l=a.get(n[t]),l._pos=t,l.onsuccess=d,l.onerror=u,++c);0===c&&i(s)})),get:({trans:t,key:n})=>new Promise(((i,r)=>{i=DH(i);const a=t.objectStore(e).get(n);a.onsuccess=t=>i(t.target.result),a.onerror=RG(r)})),query:(n=a,t=>new Promise(((r,a)=>{r=DH(r);const{trans:o,values:s,limit:l,query:c}=t,h=l===1/0?void 0:l,{index:d,range:u}=c,m=o.objectStore(e),p=d.isPrimaryKey?m:m.index(d.name),g=i(u);if(0===l)return r({result:[]});if(n){const t=s?p.getAll(g,h):p.getAllKeys(g,h);t.onsuccess=t=>r({result:t.target.result}),t.onerror=RG(a)}else{let t=0;const e=s||!("openKeyCursor"in p)?p.openCursor(g):p.openKeyCursor(g),n=[];e.onsuccess=i=>{const a=e.result;return a?(n.push(s?a.value:a.primaryKey),++t===l?r({result:n}):void a.continue()):r({result:n})},e.onerror=RG(a)}}))),openCursor:function({trans:t,values:n,query:r,reverse:a,unique:o}){return new Promise(((s,l)=>{s=DH(s);const{index:c,range:h}=r,d=t.objectStore(e),u=c.isPrimaryKey?d:d.index(c.name),m=a?o?"prevunique":"prev":o?"nextunique":"next",p=n||!("openKeyCursor"in u)?u.openCursor(i(h),m):u.openKeyCursor(i(h),m);p.onerror=RG(l),p.onsuccess=DH((e=>{const n=p.result;if(!n)return void s(null);n.___id=++XG,n.done=!1;const i=n.continue.bind(n);let r=n.continuePrimaryKey;r&&(r=r.bind(n));const a=n.advance.bind(n),o=()=>{throw new Error("Cursor not stopped")};n.trans=t,n.stop=n.continue=n.continuePrimaryKey=n.advance=()=>{throw new Error("Cursor not started")},n.fail=DH(l),n.next=function(){let t=1;return this.start((()=>t--?this.continue():this.stop())).then((()=>this))},n.start=t=>{const e=new Promise(((t,e)=>{t=DH(t),p.onerror=RG(e),n.fail=e,n.stop=e=>{n.stop=n.continue=n.continuePrimaryKey=n.advance=o,t(e)}})),s=()=>{if(p.result)try{t()}catch(t){n.fail(t)}else n.done=!0,n.start=()=>{throw new Error("Cursor behind last entry")},n.stop()};return p.onsuccess=DH((t=>{p.onsuccess=s,s()})),n.continue=i,n.continuePrimaryKey=r,n.advance=a,s(),e},s(n)}),l)}))},count({query:t,trans:n}){const{index:r,range:a}=t;return new Promise(((t,o)=>{const s=n.objectStore(e),l=r.isPrimaryKey?s:s.index(r.name),c=i(a),h=c?l.count(c):l.count();h.onsuccess=DH((e=>t(e.target.result))),h.onerror=RG(o)}))}};var n}(t))),s={};return o.forEach((t=>s[t.name]=t)),{stack:"dbcore",transaction:t.transaction.bind(t),table(t){if(!s[t])throw new Error("Table '"+t+"' not found");return s[t]},MIN_KEY:-1/0,MAX_KEY:WG(e),schema:r}}function KG({_novip:t},e){const n=function(t,e,{IDBKeyRange:n},i){return{dbcore:(r=$G(e,n,i),a=t.dbcore,a.reduce(((t,{create:e})=>g(g({},t),e(t))),r))};var r,a}(t._middlewares,e.db,t._deps,e);t.core=n.dbcore,t.tables.forEach((e=>{const n=e.name;t.core.schema.tables.some((t=>t.name===n))&&(e.core=t.core.table(n),t[n]instanceof t.Table&&(t[n].core=e.core))}))}function JG({_novip:t},e,n,i){n.forEach((n=>{const r=i[n];e.forEach((e=>{const i=qV(e,n);(!i||"value"in i&&void 0===i.value)&&(e===t.Transaction.prototype||e instanceof t.Transaction?YV(e,n,{get(){return this.table(n)},set(t){WV(this,n,{value:t,writable:!0,configurable:!0,enumerable:!0})}}):e[n]=new t.Table(n,r))}))}))}function QG({_novip:t},e){e.forEach((e=>{for(let n in e)e[n]instanceof t.Table&&delete e[n]}))}function tZ(t,e){return t._cfg.version-e._cfg.version}function eZ(t,e){const n={del:[],add:[],change:[]};let i;for(i in t)e[i]||n.del.push(i);for(i in e){const r=t[i],a=e[i];if(r){const t={name:i,def:a,recreate:!1,del:[],add:[],change:[]};if(""+(r.primKey.keyPath||"")!=""+(a.primKey.keyPath||"")||r.primKey.auto!==a.primKey.auto&&!nG)t.recreate=!0,n.change.push(t);else{const e=r.idxByName,i=a.idxByName;let o;for(o in e)i[o]||t.del.push(o);for(o in i){const n=e[o],r=i[o];n?n.src!==r.src&&t.change.push(r):t.add.push(r)}(t.del.length>0||t.add.length>0||t.change.length>0)&&n.change.push(t)}}else n.add.push([i,a])}return n}function nZ(t,e,n,i){const r=t.db.createObjectStore(e,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});return i.forEach((t=>iZ(r,t))),r}function iZ(t,e){t.createIndex(e.name,e.keyPath,{unique:e.unique,multiEntry:e.multi})}function rZ(t,e,n){const i={};return KV(e.objectStoreNames,0).forEach((t=>{const e=n.objectStore(t);let r=e.keyPath;const a=GG(ZG(r),r||"",!1,!1,!!e.autoIncrement,r&&"string"!=typeof r,!0),o=[];for(let t=0;t<e.indexNames.length;++t){const n=e.index(e.indexNames[t]);r=n.keyPath;var s=GG(n.name,r,!!n.unique,!!n.multiEntry,!1,r&&"string"!=typeof r,!1);o.push(s)}i[t]=UG(t,a,o)})),i}function aZ({_novip:t},e,n){const i=n.db.objectStoreNames;for(let r=0;r<i.length;++r){const a=i[r],o=n.objectStore(a);t._hasGetAll="getAll"in o;for(let t=0;t<o.indexNames.length;++t){const n=o.indexNames[t],i=o.index(n).keyPath,r="string"==typeof i?i:"["+KV(i).join("+")+"]";if(e[a]){const t=e[a].idxByName[r];t&&(t.name=n,delete e[a].idxByName[r],e[a].idxByName[n]=t)}}}"undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&FV.WorkerGlobalScope&&FV instanceof FV.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(t._hasGetAll=!1)}class oZ{_parseStoresSpec(t,e){BV(t).forEach((n=>{if(null!==t[n]){var i=t[n].split(",").map(((t,e)=>{const n=(t=t.trim()).replace(/([&*]|\+\+)/g,""),i=/^\[/.test(n)?n.match(/^\[(.*)\]$/)[1].split("+"):n;return GG(n,i||null,/\&/.test(t),/\*/.test(t),/\+\+/.test(t),VV(i),0===e)})),r=i.shift();if(r.multi)throw new LN.Schema("Primary key cannot be multi-valued");i.forEach((t=>{if(t.auto)throw new LN.Schema("Only primary key can be marked as autoIncrement (++)");if(!t.keyPath)throw new LN.Schema("Index must have a name and cannot be an empty string")})),e[n]=UG(n,r,i)}}))}stores(t){const e=this.db;this._cfg.storesSource=this._cfg.storesSource?NV(this._cfg.storesSource,t):t;const n={};let i={};return e._versions.forEach((t=>{NV(n,t._cfg.storesSource),i=t._cfg.dbschema={},t._parseStoresSpec(n,i)})),e._dbSchema=i,QG(e,[e._allTables,e,e.Transaction.prototype]),JG(e,[e._allTables,e,e.Transaction.prototype,this._cfg.tables],BV(i),i),e._storeNames=BV(i),this}upgrade(t){return this._cfg.contentUpgrade=WN(this._cfg.contentUpgrade||FN,t),this}}function sZ(t,e){let n=t._dbNamesDB;return n||(n=t._dbNamesDB=new MZ(oG,{addons:[],indexedDB:t,IDBKeyRange:e}),n.version(1).stores({dbnames:"name"})),n.table("dbnames")}function lZ(t){return t&&"function"==typeof t.databases}function cZ(t){return zH((function(){return cH.letThrough=!0,t()}))}function hZ(t){var e=e=>t.next(e),n=r(e),i=r((e=>t.throw(e)));function r(t){return e=>{var r=t(e),a=r.value;return r.done?a:a&&"function"==typeof a.then?a.then(n,i):VV(a)?Promise.all(a).then(n,i):n(a)}}return r(e)()}function dZ(t,e,n){var i=arguments.length;if(i<2)throw new LN.InvalidArgument("Too few arguments");for(var r=new Array(i-1);--i;)r[i-1]=arguments[i];return n=r.pop(),[t,oN(r),n]}function uZ(t,e,n,i,a){return mH.resolve().then((()=>{const o=cH.transless||cH,s=t._createTransaction(e,n,t._dbSchema,i),l={trans:s,transless:o};if(i)s.idbtrans=i.idbtrans;else try{s.create(),t._state.PR1398_maxLoop=3}catch(i){return i.name===TN.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0?(r.warn("Dexie: Need to reopen db"),t._close(),t.open().then((()=>uZ(t,e,n,null,a)))):qH(i)}const c=yN(a);let h;c&&RH();const d=mH.follow((()=>{if(h=a.call(s,s),h)if(c){var t=FH.bind(null,null);h.then(t,t)}else"function"==typeof h.next&&"function"==typeof h.throw&&(h=hZ(h))}),l);return(h&&"function"==typeof h.then?mH.resolve(h).then((t=>s.active?t:qH(new LN.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn")))):d.then((()=>h))).then((t=>(i&&s._resolve(),s._completion.then((()=>t))))).catch((t=>(s._reject(t),qH(t))))}))}function mZ(t,e,n){const i=VV(t)?t.slice():[t];for(let t=0;t<n;++t)i.push(e);return i}const pZ={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(t){return f(g({},t),{table(e){const n=t.table(e),{schema:i}=n,r={},a=[];function o(t,e,n){const i=qG(t),s=r[i]=r[i]||[],l=null==t?0:"string"==typeof t?1:t.length,c=e>0,h=f(g({},n),{isVirtual:c,keyTail:e,keyLength:l,extractKey:YG(t),unique:!c&&n.unique});return s.push(h),h.isPrimaryKey||a.push(h),l>1&&o(2===l?t[0]:t.slice(0,l-1),e+1,n),s.sort(((t,e)=>t.keyTail-e.keyTail)),h}const s=o(i.primaryKey.keyPath,0,i.primaryKey);r[":id"]=[s];for(const t of i.indexes)o(t.keyPath,0,t);function l(e){const n=e.query.index;return n.isVirtual?f(g({},e),{query:{index:n,range:(i=e.query.range,r=n.keyTail,{type:1===i.type?2:i.type,lower:mZ(i.lower,i.lowerOpen?t.MAX_KEY:t.MIN_KEY,r),lowerOpen:!0,upper:mZ(i.upper,i.upperOpen?t.MIN_KEY:t.MAX_KEY,r),upperOpen:!0})}}):e;var i,r}return f(g({},n),{schema:f(g({},i),{primaryKey:s,indexes:a,getIndexByKeyPath:function(t){const e=r[qG(t)];return e&&e[0]}}),count:t=>n.count(l(t)),query:t=>n.query(l(t)),openCursor(e){const{keyTail:i,isVirtual:r,keyLength:a}=e.query.index;return r?n.openCursor(l(e)).then((n=>{return n&&(r=n,Object.create(r,{continue:{value:function(n){null!=n?r.continue(mZ(n,e.reverse?t.MAX_KEY:t.MIN_KEY,i)):e.unique?r.continue(r.key.slice(0,a).concat(e.reverse?t.MIN_KEY:t.MAX_KEY,i)):r.continue()}},continuePrimaryKey:{value(e,n){r.continuePrimaryKey(mZ(e,t.MAX_KEY,i),n)}},primaryKey:{get:()=>r.primaryKey},key:{get(){const t=r.key;return 1===a?t[0]:t.slice(0,a)}},value:{get:()=>r.value}}));var r})):n.openCursor(e)}})}})}};function gZ(t,e,n,i){return n=n||{},i=i||"",BV(t).forEach((r=>{if(ZV(e,r)){var a=t[r],o=e[r];if("object"==typeof a&&"object"==typeof o&&a&&o){const t=mN(a);t!==mN(o)?n[i+r]=e[r]:"Object"===t?gZ(a,o,n,i+r+"."):a!==o&&(n[i+r]=e[r])}else a!==o&&(n[i+r]=e[r])}else n[i+r]=void 0})),BV(e).forEach((r=>{ZV(t,r)||(n[i+r]=e[r])})),n}const fZ={stack:"dbcore",name:"HooksMiddleware",level:2,create:t=>f(g({},t),{table(e){const n=t.table(e),{primaryKey:i}=n.schema;return f(g({},n),{mutate(t){const r=cH.trans,{deleting:a,creating:o,updating:s}=r.table(e).hook;switch(t.type){case"add":if(o.fire===FN)break;return r._promise("readwrite",(()=>l(t)),!0);case"put":if(o.fire===FN&&s.fire===FN)break;return r._promise("readwrite",(()=>l(t)),!0);case"delete":if(a.fire===FN)break;return r._promise("readwrite",(()=>l(t)),!0);case"deleteRange":if(a.fire===FN)break;return r._promise("readwrite",(()=>{return c((e=t).trans,e.range,1e4);var e}),!0)}return n.mutate(t);function l(t){const e=cH.trans,r=t.keys||("delete"===(l=t).type?l.keys:l.keys||l.values.map(i.extractKey));var l,c,h,d;if(!r)throw new Error("Keys missing");return"delete"!==(t="add"===t.type||"put"===t.type?f(g({},t),{keys:r}):g({},t)).type&&(t.values=[...t.values]),t.keys&&(t.keys=[...t.keys]),(c=n,h=t,d=r,"add"===h.type?Promise.resolve([]):c.getMany({trans:h.trans,keys:d,cache:"immutable"})).then((l=>{const c=r.map(((n,r)=>{const c=l[r],h={onerror:null,onsuccess:null};if("delete"===t.type)a.fire.call(h,n,c,e);else if("add"===t.type||void 0===c){const a=o.fire.call(h,n,t.values[r],e);null==n&&null!=a&&(t.keys[r]=n=a,i.outbound||iN(t.values[r],i.keyPath,n))}else{const i=gZ(c,t.values[r]),a=s.fire.call(h,i,n,c,e);if(a){const e=t.values[r];Object.keys(a).forEach((t=>{ZV(e,t)?e[t]=a[t]:iN(e,t,a[t])}))}}return h}));return n.mutate(t).then((({failures:e,results:n,numFailures:i,lastResult:a})=>{for(let i=0;i<r.length;++i){const a=n?n[i]:r[i],o=c[i];null==a?o.onerror&&o.onerror(e[i]):o.onsuccess&&o.onsuccess("put"===t.type&&l[i]?t.values[i]:a)}return{failures:e,results:n,numFailures:i,lastResult:a}})).catch((t=>(c.forEach((e=>e.onerror&&e.onerror(t))),Promise.reject(t))))}))}function c(t,e,r){return n.query({trans:t,values:!1,query:{index:i,range:e},limit:r}).then((({result:n})=>l({type:"delete",keys:n,trans:t}).then((i=>i.numFailures>0?Promise.reject(i.failures[0]):n.length<r?{failures:[],numFailures:0,lastResult:void 0}:c(t,f(g({},e),{lower:n[n.length-1],lowerOpen:!0}),r)))))}}})}})};function bZ(t,e,n){try{if(!e||e.keys.length<t.length)return null;const i=[];for(let r=0,a=0;r<e.keys.length&&a<t.length;++r)0===CG(e.keys[r],t[a])&&(i.push(n?hN(e.values[r]):e.values[r]),++a);return i.length===t.length?i:null}catch(t){return null}}const yZ={stack:"dbcore",level:-1,create:t=>({table:e=>{const n=t.table(e);return f(g({},n),{getMany:t=>{if(!t.cache)return n.getMany(t);const e=bZ(t.keys,t.trans._cache,"clone"===t.cache);return e?mH.resolve(e):n.getMany(t).then((e=>(t.trans._cache={keys:t.keys,values:"clone"===t.cache?hN(e):e},e)))},mutate:t=>("add"!==t.type&&(t.trans._cache=null),n.mutate(t))})}})};function vZ(t){return!("from"in t)}const wZ=function(t,e){if(!this){const e=new wZ;return t&&"d"in t&&NV(e,t),e}NV(this,arguments.length?{d:1,from:t,to:arguments.length>1?e:t}:{d:0})};function xZ(t,e,n){const i=CG(e,n);if(isNaN(i))return;if(i>0)throw RangeError();if(vZ(t))return NV(t,{from:e,to:n,d:1});const r=t.l,a=t.r;if(CG(n,t.from)<0)return r?xZ(r,e,n):t.l={from:e,to:n,d:1,l:null,r:null},SZ(t);if(CG(e,t.to)>0)return a?xZ(a,e,n):t.r={from:e,to:n,d:1,l:null,r:null},SZ(t);CG(e,t.from)<0&&(t.from=e,t.l=null,t.d=a?a.d+1:1),CG(n,t.to)>0&&(t.to=n,t.r=null,t.d=t.l?t.l.d+1:1);const o=!t.r;r&&!t.l&&CZ(t,r),a&&o&&CZ(t,a)}function CZ(t,e){vZ(e)||function t(e,{from:n,to:i,l:r,r:a}){xZ(e,n,i),r&&t(e,r),a&&t(e,a)}(t,e)}function kZ(t){let e=vZ(t)?null:{s:0,n:t};return{next(t){const n=arguments.length>0;for(;e;)switch(e.s){case 0:if(e.s=1,n)for(;e.n.l&&CG(t,e.n.from)<0;)e={up:e,n:e.n.l,s:1};else for(;e.n.l;)e={up:e,n:e.n.l,s:1};case 1:if(e.s=2,!n||CG(t,e.n.to)<=0)return{value:e.n,done:!1};case 2:if(e.n.r){e.s=3,e={up:e,n:e.n.r,s:0};continue}case 3:e=e.up}return{done:!0}}}}function SZ(t){var e,n;const i=((null===(e=t.r)||void 0===e?void 0:e.d)||0)-((null===(n=t.l)||void 0===n?void 0:n.d)||0),r=i>1?"r":i<-1?"l":"";if(r){const e="r"===r?"l":"r",n=g({},t),i=t[r];t.from=i.from,t.to=i.to,t[r]=i[r],n[r]=i[e],t[e]=n,n.d=PZ(n)}t.d=PZ(t)}function PZ({r:t,l:e}){return(t?e?Math.max(t.d,e.d):t.d:e?e.d:0)+1}UV(wZ.prototype,{add(t){return CZ(this,t),this},addKey(t){return xZ(this,t,t),this},addKeys(t){return t.forEach((t=>xZ(this,t,t))),this},[pN](){return kZ(this)}});const _Z={stack:"dbcore",level:0,create:t=>{const e=t.schema.name,n=new wZ(t.MIN_KEY,t.MAX_KEY);return f(g({},t),{table:i=>{const r=t.table(i),{schema:a}=r,{primaryKey:o}=a,{extractKey:s,outbound:l}=o,c=f(g({},r),{mutate:t=>{const o=t.trans,s=o.mutatedParts||(o.mutatedParts={}),l=t=>{const n="idb://"+e+"/"+i+"/"+t;return s[n]||(s[n]=new wZ)},c=l(""),h=l(":dels"),{type:d}=t;let[u,m]="deleteRange"===t.type?[t.range]:"delete"===t.type?[t.keys]:t.values.length<50?[[],t.values]:[];const p=t.trans._cache;return r.mutate(t).then((t=>{if(VV(u)){"delete"!==d&&(u=t.results),c.addKeys(u);const n=bZ(u,p);n||"add"===d||h.addKeys(u),(n||m)&&(e=l,i=n,r=m,a.indexes.forEach((function(t){const n=e(t.name||"");function a(e){return null!=e?t.extractKey(e):null}const o=e=>t.multiEntry&&VV(e)?e.forEach((t=>n.addKey(t))):n.addKey(e);(i||r).forEach(((t,e)=>{const n=i&&a(i[e]),s=r&&a(r[e]);0!==CG(n,s)&&(null!=n&&o(n),null!=s&&o(s))}))})))}else if(u){const t={from:u.lower,to:u.upper};h.add(t),c.add(t)}else c.add(n),h.add(n),a.indexes.forEach((t=>l(t.name).add(n)));var e,i,r;return t}))}}),h=({query:{index:e,range:n}})=>{var i,r;return[e,new wZ(null!==(i=n.lower)&&void 0!==i?i:t.MIN_KEY,null!==(r=n.upper)&&void 0!==r?r:t.MAX_KEY)]},d={get:t=>[o,new wZ(t.key)],getMany:t=>[o,(new wZ).addKeys(t.keys)],count:h,query:h,openCursor:h};return BV(d).forEach((t=>{c[t]=function(a){const{subscr:o}=cH;if(o){const c=t=>{const n="idb://"+e+"/"+i+"/"+t;return o[n]||(o[n]=new wZ)},h=c(""),u=c(":dels"),[m,p]=d[t](a);if(c(m.name||"").add(p),!m.isPrimaryKey){if("count"!==t){const e="query"===t&&l&&a.values&&r.query(f(g({},a),{values:!1}));return r[t].apply(this,arguments).then((n=>{if("query"===t){if(l&&a.values)return e.then((({result:t})=>(h.addKeys(t),n)));const t=a.values?n.result.map(s):n.result;a.values?h.addKeys(t):u.addKeys(t)}else if("openCursor"===t){const t=n,e=a.values;return t&&Object.create(t,{key:{get:()=>(u.addKey(t.primaryKey),t.key)},primaryKey:{get(){const e=t.primaryKey;return u.addKey(e),e}},value:{get:()=>(e&&h.addKey(t.primaryKey),t.value)}})}return n}))}u.add(n)}}return r[t].apply(this,arguments)}})),c}})}};class MZ{constructor(t,e){this._middlewares={},this.verno=0;const n=MZ.dependencies;this._options=e=g({addons:MZ.addons,autoOpen:!0,indexedDB:n.indexedDB,IDBKeyRange:n.IDBKeyRange},e),this._deps={indexedDB:e.indexedDB,IDBKeyRange:e.IDBKeyRange};const{addons:i}=e;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;const a={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:FN,dbReadyPromise:null,cancelOpen:FN,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};var o,s,l,c,h;a.dbReadyPromise=new mH((t=>{a.dbReadyResolve=t})),a.openCanceller=new mH(((t,e)=>{a.cancelOpen=e})),this._state=a,this.name=t,this.on=mG(this,"populate","blocked","versionchange","close",{ready:[WN,FN]}),this.on.ready.subscribe=JV(this.on.ready.subscribe,(t=>(e,n)=>{MZ.vip((()=>{const i=this._state;if(i.openComplete)i.dbOpenError||mH.resolve().then(e),n&&t(e);else if(i.onReadyBeingFired)i.onReadyBeingFired.push(e),n&&t(e);else{t(e);const i=this;n||t((function t(){i.on.ready.unsubscribe(e),i.on.ready.unsubscribe(t)}))}}))})),this.Collection=(o=this,pG(PG.prototype,(function(t,e){this.db=o;let n=hG,i=null;if(e)try{n=e()}catch(t){i=t}const r=t._ctx,a=r.table,s=a.hook.reading.fire;this._ctx={table:a,index:r.index,isPrimKey:!r.index||a.schema.primKey.keyPath&&r.index===a.schema.primKey.name,range:n,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:i,or:r.or,valueMapper:s!==BN?s:null}}))),this.Table=(s=this,pG(uG.prototype,(function(t,e,n){this.db=s,this._tx=n,this.name=t,this.schema=e,this.hook=s._allTables[t]?s._allTables[t].hook:mG(null,{creating:[HN,FN],reading:[VN,BN],updating:[ZN,FN],deleting:[GN,FN]})}))),this.Transaction=(h=this,pG(HG.prototype,(function(t,e,n,i,r){this.db=h,this.mode=t,this.storeNames=e,this.schema=n,this.chromeTransactionDurability=i,this.idbtrans=null,this.on=mG(this,"complete","error","abort"),this.parent=r||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new mH(((t,e)=>{this._resolve=t,this._reject=e})),this._completion.then((()=>{this.active=!1,this.on.complete.fire()}),(t=>{var e=this.active;return this.active=!1,this.on.error.fire(t),this.parent?this.parent._reject(t):e&&this.idbtrans&&this.idbtrans.abort(),qH(t)}))}))),this.Version=(c=this,pG(oZ.prototype,(function(t){this.db=c,this._cfg={version:t,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}}))),this.WhereClause=(l=this,pG(zG.prototype,(function(t,e,n){this.db=l,this._ctx={table:t,index:":id"===e?null:e,or:n};const i=l._deps.indexedDB;if(!i)throw new LN.MissingAPI;this._cmp=this._ascending=i.cmp.bind(i),this._descending=(t,e)=>i.cmp(e,t),this._max=(t,e)=>i.cmp(t,e)>0?t:e,this._min=(t,e)=>i.cmp(t,e)<0?t:e,this._IDBKeyRange=l._deps.IDBKeyRange}))),this.on("versionchange",(t=>{t.newVersion>0?r.warn("Another connection wants to upgrade database '"+this.name+"'. Closing db now to resume the upgrade."):r.warn("Another connection wants to delete database '"+this.name+"'. Closing db now to resume the delete request."),this.close()})),this.on("blocked",(t=>{!t.newVersion||t.newVersion<t.oldVersion?r.warn("Dexie.delete('"+this.name+"') was blocked"):r.warn("Upgrade '"+this.name+"' blocked by other connection holding version "+t.oldVersion/10)})),this._maxKey=WG(e.IDBKeyRange),this._createTransaction=(t,e,n,i)=>new this.Transaction(t,e,n,this._options.chromeTransactionDurability,i),this._fireOnBlocked=t=>{this.on("blocked").fire(t),eG.filter((t=>t.name===this.name&&t!==this&&!t._state.vcFired)).map((e=>e.on("versionchange").fire(t)))},this.use(pZ),this.use(fZ),this.use(_Z),this.use(yZ),this.vip=Object.create(this,{_vip:{value:!0}}),i.forEach((t=>t(this)))}version(t){if(isNaN(t)||t<.1)throw new LN.Type("Given version is not a positive number");if(t=Math.round(10*t)/10,this.idbdb||this._state.isBeingOpened)throw new LN.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,t);const e=this._versions;var n=e.filter((e=>e._cfg.version===t))[0];return n||(n=new this.Version(t),e.push(n),e.sort(tZ),n.stores({}),this._state.autoSchema=!1,n)}_whenReady(t){return this.idbdb&&(this._state.openComplete||cH.letThrough||this._vip)?t():new mH(((t,e)=>{if(this._state.openComplete)return e(new LN.DatabaseClosed(this._state.dbOpenError));if(!this._state.isBeingOpened){if(!this._options.autoOpen)return void e(new LN.DatabaseClosed);this.open().catch(FN)}this._state.dbReadyPromise.then(t,e)})).then(t)}use({stack:t,create:e,level:n,name:i}){i&&this.unuse({stack:t,name:i});const r=this._middlewares[t]||(this._middlewares[t]=[]);return r.push({stack:t,create:e,level:null==n?10:n,name:i}),r.sort(((t,e)=>t.level-e.level)),this}unuse({stack:t,name:e,create:n}){return t&&this._middlewares[t]&&(this._middlewares[t]=this._middlewares[t].filter((t=>n?t.create!==n:!!e&&t.name!==e))),this}open(){return function(t){const e=t._state,{indexedDB:n}=t._deps;if(e.isBeingOpened||t.idbdb)return e.dbReadyPromise.then((()=>e.dbOpenError?qH(e.dbOpenError):t));vN&&(e.openCanceller._stackHolder=kN()),e.isBeingOpened=!0,e.dbOpenError=null,e.openComplete=!1;const i=e.openCanceller;function a(){if(e.openCanceller!==i)throw new LN.DatabaseClosed("db.open() was cancelled")}let o=e.dbReadyResolve,s=null,l=!1;return mH.race([i,("undefined"==typeof navigator?mH.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise((function(t){var e=function(){return indexedDB.databases().finally(t)};c=setInterval(e,100),e()})).finally((function(){return clearInterval(c)})):Promise.resolve()).then((()=>new mH(((i,o)=>{if(a(),!n)throw new LN.MissingAPI;const c=t.name,h=e.autoSchema?n.open(c):n.open(c,Math.round(10*t.verno));if(!h)throw new LN.MissingAPI;h.onerror=RG(o),h.onblocked=DH(t._fireOnBlocked),h.onupgradeneeded=DH((i=>{if(s=h.transaction,e.autoSchema&&!t._options.allowEmptyDB){h.onerror=FG,s.abort(),h.result.close();const t=n.deleteDatabase(c);t.onsuccess=t.onerror=DH((()=>{o(new LN.NoSuchDatabase("Database "+c+" doesnt exist"))}))}else{s.onerror=RG(o);var r=i.oldVersion>Math.pow(2,62)?0:i.oldVersion;l=r<1,t._novip.idbdb=h.result,function(t,e,n,i){const r=t._dbSchema,a=t._createTransaction("readwrite",t._storeNames,r);a.create(n),a._completion.catch(i);const o=a._reject.bind(a),s=cH.transless||cH;zH((()=>{cH.trans=a,cH.transless=s,0===e?(BV(r).forEach((t=>{nZ(n,t,r[t].primKey,r[t].indexes)})),KG(t,n),mH.follow((()=>t.on.populate.fire(a))).catch(o)):function({_novip:t},e,n,i){const r=[],a=t._versions;let o=t._dbSchema=rZ(0,t.idbdb,i),s=!1;return a.filter((t=>t._cfg.version>=e)).forEach((a=>{r.push((()=>{const r=o,l=a._cfg.dbschema;aZ(t,r,i),aZ(t,l,i),o=t._dbSchema=l;const c=eZ(r,l);c.add.forEach((t=>{nZ(i,t[0],t[1].primKey,t[1].indexes)})),c.change.forEach((t=>{if(t.recreate)throw new LN.Upgrade("Not yet support for changing primary key");{const e=i.objectStore(t.name);t.add.forEach((t=>iZ(e,t))),t.change.forEach((t=>{e.deleteIndex(t.name),iZ(e,t)})),t.del.forEach((t=>e.deleteIndex(t)))}}));const h=a._cfg.contentUpgrade;if(h&&a._cfg.version>e){KG(t,i),n._memoizedTables={},s=!0;let e=rN(l);c.del.forEach((t=>{e[t]=r[t]})),QG(t,[t.Transaction.prototype]),JG(t,[t.Transaction.prototype],BV(e),e),n.schema=e;const a=yN(h);let o;a&&RH();const d=mH.follow((()=>{if(o=h(n),o&&a){var t=FH.bind(null,null);o.then(t,t)}}));return o&&"function"==typeof o.then?mH.resolve(o):d.then((()=>o))}})),r.push((e=>{var i,r;(!s||!iG)&&(i=a._cfg.dbschema,[].slice.call((r=e).db.objectStoreNames).forEach((t=>null==i[t]&&r.db.deleteObjectStore(t)))),QG(t,[t.Transaction.prototype]),JG(t,[t.Transaction.prototype],t._storeNames,t._dbSchema),n.schema=t._dbSchema}))})),function t(){return r.length?mH.resolve(r.shift()(n.idbtrans)).then(t):mH.resolve()}().then((()=>{var t,e;e=i,BV(t=o).forEach((n=>{e.db.objectStoreNames.contains(n)||nZ(e,n,t[n].primKey,t[n].indexes)}))}))}(t,e,a,n).catch(o)}))}(t,r/10,s,o)}}),o),h.onsuccess=DH((()=>{s=null;const n=t._novip.idbdb=h.result,a=KV(n.objectStoreNames);if(a.length>0)try{const i=n.transaction(1===(o=a).length?o[0]:o,"readonly");e.autoSchema?function({_novip:t},e,n){t.verno=e.version/10;const i=t._dbSchema=rZ(0,e,n);t._storeNames=KV(e.objectStoreNames,0),JG(t,[t._allTables],BV(i),i)}(t,n,i):(aZ(t,t._dbSchema,i),function(t,e){const n=eZ(rZ(0,t.idbdb,e),t._dbSchema);return!(n.add.length||n.change.some((t=>t.add.length||t.change.length)))}(t,i)||r.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),KG(t,i)}catch(t){}var o;eG.push(t),n.onversionchange=DH((n=>{e.vcFired=!0,t.on("versionchange").fire(n)})),n.onclose=DH((e=>{t.on("close").fire(e)})),l&&function({indexedDB:t,IDBKeyRange:e},n){!lZ(t)&&n!==oG&&sZ(t,e).put({name:n}).catch(FN)}(t._deps,c),i()}),o)}))))]).then((()=>(a(),e.onReadyBeingFired=[],mH.resolve(cZ((()=>t.on.ready.fire(t.vip)))).then((function n(){if(e.onReadyBeingFired.length>0){let i=e.onReadyBeingFired.reduce(WN,FN);return e.onReadyBeingFired=[],mH.resolve(cZ((()=>i(t.vip)))).then(n)}}))))).finally((()=>{e.onReadyBeingFired=null,e.isBeingOpened=!1})).then((()=>t)).catch((n=>{e.dbOpenError=n;try{s&&s.abort()}catch(t){}return i===e.openCanceller&&t._close(),qH(n)})).finally((()=>{e.openComplete=!0,o()}));var c}(this)}_close(){const t=this._state,e=eG.indexOf(this);if(e>=0&&eG.splice(e,1),this.idbdb){try{this.idbdb.close()}catch(t){}this._novip.idbdb=null}t.dbReadyPromise=new mH((e=>{t.dbReadyResolve=e})),t.openCanceller=new mH(((e,n)=>{t.cancelOpen=n}))}close(){this._close();const t=this._state;this._options.autoOpen=!1,t.dbOpenError=new LN.DatabaseClosed,t.isBeingOpened&&t.cancelOpen(t.dbOpenError)}delete(){const t=arguments.length>0,e=this._state;return new mH(((n,i)=>{const r=()=>{this.close();var t=this._deps.indexedDB.deleteDatabase(this.name);t.onsuccess=DH((()=>{(function({indexedDB:t,IDBKeyRange:e},n){!lZ(t)&&n!==oG&&sZ(t,e).delete(n).catch(FN)})(this._deps,this.name),n()})),t.onerror=RG(i),t.onblocked=this._fireOnBlocked};if(t)throw new LN.InvalidArgument("Arguments not allowed in db.delete()");e.isBeingOpened?e.dbReadyPromise.then(r):r()}))}backendDB(){return this.idbdb}isOpen(){return null!==this.idbdb}hasBeenClosed(){const t=this._state.dbOpenError;return t&&"DatabaseClosed"===t.name}hasFailed(){return null!==this._state.dbOpenError}dynamicallyOpened(){return this._state.autoSchema}get tables(){return BV(this._allTables).map((t=>this._allTables[t]))}transaction(){const t=dZ.apply(this,arguments);return this._transaction.apply(this,t)}_transaction(t,e,n){let i=cH.trans;i&&i.db===this&&-1===t.indexOf("!")||(i=null);const r=-1!==t.indexOf("?");let a,o;t=t.replace("!","").replace("?","");try{if(o=e.map((t=>{var e=t instanceof this.Table?t.name:t;if("string"!=typeof e)throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return e})),"r"==t||t===sG)a=sG;else{if("rw"!=t&&t!=lG)throw new LN.InvalidArgument("Invalid transaction mode: "+t);a=lG}if(i){if(i.mode===sG&&a===lG){if(!r)throw new LN.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");i=null}i&&o.forEach((t=>{if(i&&-1===i.storeNames.indexOf(t)){if(!r)throw new LN.SubTransaction("Table "+t+" not included in parent transaction.");i=null}})),r&&i&&!i.active&&(i=null)}}catch(t){return i?i._promise(null,((e,n)=>{n(t)})):qH(t)}const s=uZ.bind(null,this,a,o,i,n);return i?i._promise(a,s,"lock"):cH.trans?ZH(cH.transless,(()=>this._whenReady(s))):this._whenReady(s)}table(t){if(!ZV(this._allTables,t))throw new LN.InvalidTable("Table "+t+" does not exist");return this._allTables[t]}}const DZ="undefined"!=typeof Symbol&&"observable"in Symbol?Symbol.observable:"@@observable";class EZ{constructor(t){this._subscribe=t}subscribe(t,e,n){return this._subscribe(t&&"function"!=typeof t?t:{next:t,error:e,complete:n})}[DZ](){return this}}function OZ(t,e){return BV(e).forEach((n=>{CZ(t[n]||(t[n]=new wZ),e[n])})),t}let AZ;try{AZ={indexedDB:FV.indexedDB||FV.mozIndexedDB||FV.webkitIndexedDB||FV.msIndexedDB,IDBKeyRange:FV.IDBKeyRange||FV.webkitIDBKeyRange}}catch(t){AZ={indexedDB:null,IDBKeyRange:null}}const TZ=MZ;function IZ(t){let e=LZ;try{LZ=!0,NG.storagemutated.fire(t)}finally{LZ=e}}UV(TZ,f(g({},RN),{delete:t=>new TZ(t,{addons:[]}).delete(),exists:t=>new TZ(t,{addons:[]}).open().then((t=>(t.close(),!0))).catch("NoSuchDatabaseError",(()=>!1)),getDatabaseNames(t){try{return function({indexedDB:t,IDBKeyRange:e}){return lZ(t)?Promise.resolve(t.databases()).then((t=>t.map((t=>t.name)).filter((t=>t!==oG)))):sZ(t,e).toCollection().primaryKeys()}(TZ.dependencies).then(t)}catch(t){return qH(new LN.MissingAPI)}},defineClass:()=>function(t){NV(this,t)},ignoreTransaction:t=>cH.trans?ZH(cH.transless,t):t(),vip:cZ,async:function(t){return function(){try{var e=hZ(t.apply(this,arguments));return e&&"function"==typeof e.then?e:mH.resolve(e)}catch(t){return qH(t)}}},spawn:function(t,e,n){try{var i=hZ(t.apply(n,e||[]));return i&&"function"==typeof i.then?i:mH.resolve(i)}catch(t){return qH(t)}},currentTransaction:{get:()=>cH.trans||null},waitFor:function(t,e){const n=mH.resolve("function"==typeof t?TZ.ignoreTransaction(t):t).timeout(e||6e4);return cH.trans?cH.trans.waitFor(n):n},Promise:mH,debug:{get:()=>vN,set:t=>{wN(t,"dexie"===t?()=>!0:aG)}},derive:jV,extend:NV,props:UV,override:JV,Events:mG,on:NG,liveQuery:function(t){let e,n=!1;const i=new EZ((i=>{const r=yN(t);let a=!1,o={},s={};const l={get closed(){return a},unsubscribe:()=>{a=!0,NG.storagemutated.unsubscribe(u)}};i.start&&i.start(l);let c=!1,h=!1;function d(){return BV(s).some((t=>o[t]&&function(t,e){const n=kZ(e);let i=n.next();if(i.done)return!1;let r=i.value;const a=kZ(t);let o=a.next(r.from),s=o.value;for(;!i.done&&!o.done;){if(CG(s.from,r.to)<=0&&CG(s.to,r.from)>=0)return!0;CG(r.from,s.from)<0?r=(i=n.next(s.from)).value:s=(o=a.next(r.from)).value}return!1}(o[t],s[t])))}const u=t=>{OZ(o,t),d()&&m()},m=()=>{if(c||a)return;o={};const p={},g=function(e){r&&RH();const n=()=>zH(t,{subscr:e,trans:null}),i=cH.trans?ZH(cH.transless,n):n();return r&&i.then(FH,FH),i}(p);h||(NG(BG,u),h=!0),c=!0,Promise.resolve(g).then((t=>{n=!0,e=t,c=!1,a||(d()?m():(o={},s=p,i.next&&i.next(t)))}),(t=>{c=!1,n=!1,i.error&&i.error(t),l.unsubscribe()}))};return m(),l}));return i.hasValue=()=>n,i.getValue=()=>e,i},extendObservabilitySet:OZ,getByKeyPath:nN,setByKeyPath:iN,delByKeyPath:function(t,e){"string"==typeof e?iN(t,e,void 0):"length"in e&&[].map.call(e,(function(e){iN(t,e,void 0)}))},shallowClone:rN,deepClone:hN,getObjectDiff:gZ,cmp:CG,asap:tN,minKey:JH,addons:[],connections:eG,errnames:TN,dependencies:AZ,semVer:"3.2.4",version:"3.2.4".split(".").map((t=>parseInt(t))).reduce(((t,e,n)=>t+e/Math.pow(10,2*n)))})),TZ.maxKey=WG(TZ.dependencies.IDBKeyRange),"undefined"!=typeof dispatchEvent&&"undefined"!=typeof addEventListener&&(NG(BG,(t=>{if(!LZ){let e;nG?(e=document.createEvent("CustomEvent"),e.initCustomEvent(VG,!0,!0,t)):e=new CustomEvent(VG,{detail:t}),LZ=!0,dispatchEvent(e),LZ=!1}})),addEventListener(VG,(({detail:t})=>{LZ||IZ(t)})));let LZ=!1;if("undefined"!=typeof BroadcastChannel){const t=new BroadcastChannel(VG);"function"==typeof t.unref&&t.unref(),NG(BG,(e=>{LZ||t.postMessage(e)})),t.onmessage=t=>{t.data&&IZ(t.data)}}else if("undefined"!=typeof self&&"undefined"!=typeof navigator){NG(BG,(t=>{try{LZ||("undefined"!=typeof localStorage&&localStorage.setItem(VG,JSON.stringify({trig:Math.random(),changedParts:t})),"object"==typeof self.clients&&[...self.clients.matchAll({includeUncontrolled:!0})].forEach((e=>e.postMessage({type:VG,changedParts:t}))))}catch(t){}})),"undefined"!=typeof addEventListener&&addEventListener("storage",(t=>{if(t.key===VG){const e=JSON.parse(t.newValue);e&&IZ(e.changedParts)}}));const t=self.document&&navigator.serviceWorker;t&&t.addEventListener("message",(function({data:t}){t&&t.type===VG&&IZ(t.changedParts)}))}mH.rejectionMapper=function(t,e){if(!t||t instanceof DN||t instanceof TypeError||t instanceof SyntaxError||!t.name||!zN[t.name])return t;var n=new zN[t.name](e||t.message,t);return"stack"in t&&YV(n,"stack",{get:function(){return this.inner.stack}}),n},wN(vN,aG);const zZ=new class extends MZ{constructor(){super("ZW2DCloudDB"),this.version(1).stores({mFontData:"&name",mWordData:"[fontFamily+word]",mLmfData:"&fileId"}).upgrade((()=>{this.mFontData.clear(),this.mWordData.clear(),this.mLmfData.clear()}))}initFontData(t){this.mFontData_Storage=[],this.mFontList=[];let e=new Array;return e.push(this.mFontData.get({name:"SimSun-01.ttf"}).then((t=>{t&&(this.mFontData_Storage.push(t),this.mFontList.push(t.name))}))),t.forEach((t=>{let n="";"string"==typeof t&&(n=t),"object"==typeof t&&(n=t.name),e.push(this.mFontData.get({name:n}).then((t=>{t&&(this.mFontData_Storage.push(t),this.mFontList.push(t.name))})))})),Promise.all(e)}getFontData(t,e=!0){let n=[];for(let i=0,r=this.mFontData_Storage.length;i<r;i++){let r=this.mFontData_Storage[i];if((!t.name||t.name===r.name)&&(!t.type||t.type===r.type)&&(n.push(r),e))break}return n}checkFontFile(t){let e=t.toLowerCase();if(-1!=="simplex.shx".indexOf(t)||"宋体"===t)return!0;for(let n=0,i=this.mFontData_Storage.length;n<i;n++){let i=this.mFontData_Storage[n];if(-1!==i.name.indexOf(e)||-1!==i.name.indexOf(t))return!0}return!1}setFontData(t){const e=this.getFontData({name:t.name});0===e.length?(this.mFontData_Storage.push(t),this.mFontList.push(t.name)):(e[0].name=t.name,e[0].type=t.type,e[0].data=t.data),this.mFontData.put(t)}initWordData(){return this.mWordData_Storage=[],this.mWordData.each((t=>{this.mWordData_Storage.push(t)}))}getWordData(t,e=!0){let n=[];for(let i=0,r=this.mWordData_Storage.length;i<r;i++){let r=this.mWordData_Storage[i];if((!t.fontFamily||t.fontFamily===r.fontFamily)&&(!t.word||t.word===r.word)&&(n.push(r),e))break}return n}setWordData(t){const e=this.getWordData({fontFamily:t.fontFamily,word:t.word});0===e.length?this.mWordData_Storage.push(t):(e[0].fontFamily=t.fontFamily,e[0].word=t.word,e[0].advanceWidth=t.advanceWidth,e[0].borderData=t.borderData,e[0].eacutData=t.eacutData),this.mWordData.put(t)}getParseData(t,e=!0){let n=[];for(let i=0,r=this.mParseData_Storage.length;i<r;i++){let r=this.mParseData_Storage[i];if((!t.name||t.name===r.name)&&(!t.fontFamily||t.fontFamily===r.fontFamily)&&(n.push(r),e))break}return n}setParseData(t){const e=this.getParseData({name:t.name});0===e.length?this.mParseData_Storage.push(t):(e[0].name=t.name,e[0].fontFamily=t.fontFamily,e[0].fontFamilyZh=t.fontFamilyZh,e[0].aboveHeight=t.aboveHeight,e[0].parseData=t.parseData)}getLmfData(t){return this.mLmfData.get(t)}setLmfData(t){this.mLmfData.put(t)}};class RZ{constructor(t){this.mArrayBuffers=[],this.mPageSize=4096,this.mLastPageSize=0,this.mLastPageSize=0,this.mPageSize=t||4096}totalLength(){return 0===this.mArrayBuffers.length?0:this.mArrayBuffers.length*this.mPageSize-1+this.mLastPageSize}getPageSizeAt(t){let e=this.mArrayBuffers.length;if(e<=0)return 0;let n=e-1;return t<n?this.mPageSize:t==n?this.mLastPageSize:0}}class FZ{constructor(){this.mMinorVersion=0,this.mMajorVersion=0,this.mDataView=null,this.mPos=0,this.mData=null,this.mZwArrayBuffers=new RZ,this.mCurPageNumber=0}prepareReadData(t){t.totalLength()>0&&(this.mZwArrayBuffers=t,this.mData=t.mArrayBuffers[0],this.mDataView=new DataView(this.mData,0,this.mData.byteLength))}setReadDataByPage(t){this.mCurPageNumber=t,this.mData=this.mZwArrayBuffers.mArrayBuffers[t],this.mDataView=new DataView(this.mData,0,this.mData.byteLength)}seek(t){if(null==this.mData||null==this.mDataView||t>this.mZwArrayBuffers.totalLength())return!1;let e=Math.floor(t/this.mZwArrayBuffers.mPageSize);return this.mCurPageNumber=e,this.mData=this.mZwArrayBuffers.mArrayBuffers[e],this.mDataView=new DataView(this.mData,0,this.mData.byteLength),this.mPos=t>=this.mZwArrayBuffers.mPageSize?t%this.mZwArrayBuffers.mPageSize:t,!0}moveIndicator(t){this.mPos+=t,this.mCurPageNumber<this.mZwArrayBuffers.mArrayBuffers.length-1&&this.mPos>this.mZwArrayBuffers.mPageSize-1&&(this.mPos-=this.mZwArrayBuffers.mPageSize,this.mCurPageNumber+=1,this.mData=this.mZwArrayBuffers.mArrayBuffers[this.mCurPageNumber],this.mDataView=new DataView(this.mData,0,this.mData.byteLength))}dataAcrossPages(t,e){let n=Number(t);if(this.mCurPageNumber*this.mZwArrayBuffers.mPageSize+this.mPos+n>this.mZwArrayBuffers.totalLength()||null===this.mData)return null;if(this.mPos+n>this.mData.byteLength){let t=new Uint8Array(this.mZwArrayBuffers.mArrayBuffers[this.mCurPageNumber].slice(this.mPos,this.mZwArrayBuffers.mPageSize)),i=n-(this.mZwArrayBuffers.mPageSize-this.mPos);this.mData=this.mZwArrayBuffers.mArrayBuffers[this.mCurPageNumber+1];let r=new Uint8Array(this.mData.slice(0,i)),a=new Uint8Array(n);return a.set(t,0),a.set(r,t.byteLength),this.mDataView=new DataView(a.buffer,0,n),!e||a}return this.mData=this.mZwArrayBuffers.mArrayBuffers[this.mCurPageNumber],this.mDataView=new DataView(this.mData,0,this.mData.byteLength),!1}readByte(){if(null==this.mData||null==this.mDataView||null===this.dataAcrossPages(1))return null;let t=this.mDataView.getUint8(this.mPos);return this.moveIndicator(1),t}readUint8Array(t){if(null==this.mData||null==this.mDataView)return new Uint8Array;let e=this.dataAcrossPages(t,!0);if(null===e)return new Uint8Array;let n=new Uint8Array;return n=!1===e?new Uint8Array(this.mData.slice(this.mPos,this.mPos+t)):e,this.moveIndicator(t),n}readDouble(){if(null==this.mData||null==this.mDataView)return null;let t=this.dataAcrossPages(8);if(null===t)return null;let e=0;return e=this.mDataView.getFloat64(!1===t?this.mPos:0,!0),this.moveIndicator(8),e}readUnit64(){if(null==this.mData||null==this.mDataView)return null;let t,e=this.dataAcrossPages(8);return null===e?null:(t=this.mDataView.getBigUint64(!1===e?this.mPos:0,!0),this.moveIndicator(8),t)}readInt64(){if(null==this.mData||null==this.mDataView)return null;let t,e=this.dataAcrossPages(8);return null===e?null:(t=this.mDataView.getBigInt64(!1===e?this.mPos:0,!0),this.moveIndicator(8),t)}readFloat(){if(null==this.mData||null==this.mDataView)return null;let t=this.dataAcrossPages(4);if(null===t)return null;let e=0;return e=this.mDataView.getFloat32(!1===t?this.mPos:0,!0),this.moveIndicator(4),e}readBoolean(){if(null==this.mData||null==this.mDataView||null===this.dataAcrossPages(1))return null;let t=this.mDataView.getInt8(this.mPos);return this.moveIndicator(1),0!=t}readInt(){if(null==this.mData||null==this.mDataView)return null;let t=this.dataAcrossPages(4);if(null===t)return null;let e=0;return e=this.mDataView.getInt32(!1===t?this.mPos:0,!0),this.moveIndicator(4),e}readUInt(){if(null==this.mData||null==this.mDataView)return null;let t=this.dataAcrossPages(4);if(null===t)return null;let e=0;return e=this.mDataView.getUint32(!1===t?this.mPos:0,!0),this.moveIndicator(4),e}readShort(){if(null==this.mData||null==this.mDataView)return null;let t=this.dataAcrossPages(2);if(null===t)return null;let e=0;return e=this.mDataView.getInt16(!1===t?this.mPos:0,!0),this.moveIndicator(2),e}readGePoint2d(){let t=new oB,e=this.readDouble();return t.mX=null==e?0:e,e=this.readDouble(),t.mY=null==e?0:e,t}readStringByLens(t){if(null==this.mData||null==this.mDataView||null===this.dataAcrossPages(t))return null;let e=[];for(let n=1;n<=t;n++){let t=this.readByte();e.push(t)}return this.revertUTF8(e)}revertUTF8(t){let e,n,i,r="";for(let a=0;a<t.length&&(e=t[a],e);a++)128&e&&(32&e?(a++,n=t[a],a++,i=t[a],e=(15&e)<<12,n=(63&n)<<6,i&=63,e=e+n+i):(a++,n=t[a],e=(31&e)<<6,n&=63,e+=n)),r+=String.fromCharCode(e);return r}totalByteLength(){return this.mZwArrayBuffers&&0===this.mZwArrayBuffers.totalLength()?0:this.mZwArrayBuffers.totalLength()}byVersion(t,e){return t<this.mMajorVersion||e<=this.mMinorVersion}}function BZ(t){let e=new Uint8Array(t.slice(0,2));if(31==e[0]&&139==e[1]){SF.time("unzip");let e=new Module.CZipFileStream,n=t.byteLength,i=VZ(new Uint8Array(t)),r=e.init(i,n),a=new Uint8Array(0);return a=r>104857600?function(t){let e=4096,n=new RZ(e);n.mPageSize=e;let i=Module._malloc(e);for(;!t.Eof();){let r=new Uint8Array(e),a=t.Read(i,e);r.set(Module.HEAPU8.slice(i,i+a),0),n.mArrayBuffers.push(r.buffer),n.mLastPageSize=a}return Module._free(i),t.delete(),n}(e):function(t,e){let n=new Uint8Array(e),i=0,r=Module._malloc(4096);for(;!t.Eof();){let e=t.Read(r,4096);n.set(Module.HEAPU8.slice(r,r+e),i),i+=e}return Module._free(r),t.delete(),n.buffer}(e,r),SF.timeEnd("unzip"),a}return t}function VZ(t){let e=Module._malloc(t.byteLength*t.BYTES_PER_ELEMENT);return Module.HEAPU8.set(t,e),e}const NZ=jF.instance();class HZ{constructor(){this.mCurView=null,this.mDoJig=!1,this.mCanJigWithoutEdit=!1}doJig(){let t=n7.instance().mExecuteEditableCmd;if(!n7.instance().mkEscapeCaret&&t||HZ.mCurJig&&HZ.mCurJig.mCanJigWithoutEdit){let t=HZ.mCurJig;t&&(t.mCurView||(t.mCurView=this.mCurView),t.doJig(),t.worldDraw())}NZ.reset()}worldDraw(){return HZ.mZcGsPrimitiveCollector.mPrimitives.length>0&&MF.instance().broardcast(_F.GsInteraction,{type:"draw",data:{type:"Shorterm"}}),!0}static clearJig(){if(HZ.mZcGsPrimitiveCollector.mPrimitives.length>0){HZ.mZcGsPrimitiveCollector.clearCollector();let t=HZ.mCurJig;t&&t.mCurView&&(t.mCurView.getGsWorldDraw().setCurPrimitveCollectorData(EB.kZcDrShorterm,HZ.mZcGsPrimitiveCollector),MF.instance().broardcast(_F.GsInteraction,{type:"draw",data:{type:"Shorterm"}})),HZ._instance.setCurJig(void 0)}HZ.mCurJig&&(HZ.mCurJig=void 0)}static clearTempJig(){if(HZ.mZcGsPrimitiveCollector.mPrimitives.length>0){HZ.mZcGsPrimitiveCollector.clearCollector();let t=HZ.mCurJig;t&&t.mCurView&&(t.mCurView.getGsWorldDraw().setCurPrimitveCollectorData(EB.kZcDrShorterm,HZ.mZcGsPrimitiveCollector),MF.instance().broardcast(_F.GsInteraction,{type:"draw",data:{type:"Shorterm"}}),t.mEndJig=!1),n7.instance().mCmdExecutionStatus||HZ._instance.setCurJig(void 0)}}getEntityParameters(){throw new Error("Method not implemented.")}static acquirePoint(){let t,e=NZ.getInputContent(),n=NZ.getPtByKeyboard(e);return NZ.getPointFlag()?(t=new QR,t.copy(NZ.mSnapPoints.length>0?NZ.mSnapPoints[0]:NZ.getWdPoint()),NZ.setPointFlag(!1)):n&&(t=new QR,t.copy(n)),t}acquireDist(t,e){return RV.zcutDistance(t,e)}acquireAngle(t,e){return RV.fixAngle(Math.atan2(e.mY-t.mY,e.mX-t.mX))}acquireString(){return NZ.getInputContent()}acquireNumber(){let t,e=NZ.getInputContent();return isNaN(e)||(t=Number(e)),t}zcdbWcs2Ecs(t,e,n){let i,r=new qR,a=new qR;e.normalize(),r=e.prepVector(),a=e.crossProduct(r),r.normalize(),a.normalize();let o=new JR;o.setCoordSystem(new QR(0,0,0),r,a,e),o.invert();let s=new JR;s.setCoordSystem(new QR(0,0,0),new qR(1,0,0),new qR(0,1,0),new qR(0,0,1)),i=o.mul(s);let l=new QR;if(n){let e=t.asVector();e.transformBy(i),l.copy(e.asPoint())}else{let e=new QR(t.mX,t.mY,t.mZ);e.mulMatrix(i),l.copy(e)}return l}genPrimitiveByWebAssembly(t,e){let n=HZ.mZcGsPrimitiveCollector.getBufferPoint(),i=t.m_data,r=Module.ZcPrimitiveFactory;switch(t.m_type){case Module.PrimitiveTypeJs.kZcGsPolyline3d.value:{let t=r.createPolyline3d(i),e=t.points;for(let i=0;i<t.count;i++){let t=e.get(i);n.push(t.x),n.push(t.y),n.push(t.z),t.delete()}HZ.mZcGsPrimitiveCollector.addPrimitivePolyline3d(RB.POLYLINE3D,3*t.count,t.gsmarker),e.delete(),t.delete();break}case Module.PrimitiveTypeJs.kZcGsLineStrips3d.value:{let t=r.createLineStrips3d(i),e=t.points;for(let i=0;i<2*t.nbLines;i++){let t=e.get(i);n.push(t.x),n.push(t.y),n.push(t.z),t.delete()}HZ.mZcGsPrimitiveCollector.addPrimitiveLineStrips3d(RB.LINESTRIPS3D,3*t.count,t.nbLines,t.gsmarker),e.delete(),t.delete();break}case Module.PrimitiveTypeJs.kZcGsRawLineStrips3d.value:{let t=r.createRawLineStrips3d(i),e=t.points;for(let i=0;i<2*t.nbLines;i++){let t=e.get(i);n.push(t.x),n.push(t.y),n.push(t.z),t.delete()}HZ.mZcGsPrimitiveCollector.addPrimitiveRawLineStrips3d(RB.RAWLINESTRIPS3D,2*t.nbLines*3,t.nbLines),e.delete(),t.delete();break}case Module.PrimitiveTypeJs.kZcGsRawPolyline3d.value:{let t=r.createRawPolyline3d(i),e=t.points;for(let i=0;i<t.count;i++){let t=e.get(i);n.push(t.x),n.push(t.y),n.push(t.z),t.delete()}HZ.mZcGsPrimitiveCollector.addPrimitive(RB.RAWPOLYLINE3D,3*t.count),e.delete(),t.delete();break}case Module.PrimitiveTypeJs.kZcGsShadedRawPolyline3d.value:{let t=r.createShadedRawPolyline3d(i),e=t.points;for(let i=0;i<t.count;i++){let t=e.get(i);n.push(t.x),n.push(t.y),n.push(t.z),t.delete()}HZ.mZcGsPrimitiveCollector.addPrimitiveShadedRawPolyline3d(RB.SHADEDRAWPOLYLINE3D,3*t.count,t.bIsoLine),e.delete(),t.delete();break}case Module.PrimitiveTypeJs.kZcGsText3d.value:{let t=r.createText3d(i),n=t.mTextPt,a=t.mTextDir,o=t.mTextVerDir,s=t.mFlags,l=t.mboundBox,c=l.m_min,h=l.m_max;if(e){e.textPt=new QR(n.x,n.y,n.z),e.textDir=new qR(a.x,a.y,a.z),e.textVerDir=new qR(o.x,o.y,o.z),e.textHeight=t.mHeight,e.textWidth=t.mWidth,e.xScale=t.mXScale,e.obliquingAngle=t.mObliquingAngle,e.content=t.mContent,e.textNumber=10,e.flags=[],e.textStyle.fontSize=t.mTextSize,e.textStyle.fontFamily=t.mFontFamilyName,e.textStyle.fontHeight=t.mFontHeight,e.textStyle.fontAbove=t.mFontAbove,e.textStyle.fontAverageWidth=t.mFontAverageWidth,e.textStyle.fontAscent=t.mFontAscent,e.textStyle.fontWeight=t.mTextWeights,e.textStyle.fontItalic=t.mItalic,e.trackingPercent=t.mTrackingPercent,e.charset=t.mCharSet,e.renderMode=t.mRenderMode,e.raw=t.mRaw,e.underline=t.mUnderline,e.backward=t.mBackward,e.upsidedown=t.mUpsidedown,e.vertical=t.mVertical,e.overlined=t.mOverlined,e.strikethrough=t.mStrikethrough,e.boundBox.max=[h.x,h.y],e.boundBox.min=[c.x,c.y];for(let t=0;t<s.size();t++){let n=s.get(t);e.flags.push(n),n.delete()}}else{let e={textPt:new QR(n.x,n.y,n.z),textDir:new qR(a.x,a.y,a.z),textVerDir:new qR(o.x,o.y,o.z),boundBox:{max:[0,0],min:[0,0]},textHeight:t.mHeight,textWidth:t.mWidth,xScale:t.mXScale,obliquingAngle:t.mObliquingAngle,content:t.mContent,textNumber:10,flags:[],textStyle:{fontSize:t.mTextSize,fontFamily:t.mFontFamilyName,fontHeight:t.mFontHeight,fontAbove:t.mFontAbove,fontAverageWidth:t.mFontAverageWidth,fontAscent:t.mFontAscent,fontWeight:t.mTextWeights,fontItalic:t.mItalic},trackingPercent:t.mTrackingPercent,charset:t.mCharSet,renderMode:t.mRenderMode,raw:t.mRaw,underline:t.mUnderline,backward:t.mBackward,upsidedown:t.mUpsidedown,vertical:t.mVertical,overlined:t.mOverlined,strikethrough:t.mStrikethrough};e.boundBox.max=[h.x,h.y],e.boundBox.min=[c.x,c.y];for(let t=0;t<s.size();t++){let n=s.get(t);e.flags.push(n),n.delete()}HZ.mZcGsPrimitiveCollector.addPrimitiveText3d(RB.TEXT3D,4,e)}h.delete(),c.delete(),l.delete(),s.delete(),o.delete(),a.delete(),n.delete(),t.delete();break}}}generateCircle(t,e,n){Module.PrimitiveGeneratorJs.clearData();let i=new Module.Point3d(t.center.mX,t.center.mY,t.center.mZ),r=new Module.Point3d(t.normal.mX,t.normal.mY,t.normal.mZ),a=new Module.CircleJs(i,t.radius,t.thickness,r),o=new Module.ZwViewTableJs;o.setViewHeight(e);let s=new Module.ZcGsViewGraphicDeviceDataJs;s.setCircleSides(n);let l=new Module.ZcGsViewBaseJs;l.setDcsData(o),l.setGraphicDeviceData(s);let c=new Module.ZcGsContextImpJs(Module.ZcGiRegenType.kZcGiStandardDisplay);c.setProperty(16,!0),c.setGsView(l);let h=new Module.ZcGiLinetypeDashJsArray,d=new Module.PrimitiveGeneratorJs(c.getPtr());d.circle(a,h);let u=d.getPrimitiveCount(),m=d.getBuffer();for(let t=0;t<u;t++){let e=m.get(t);this.genPrimitiveByWebAssembly(e),e.delete()}m.delete(),d.delete(),h.delete(),c.delete(),l.delete(),s.delete(),o.delete(),a.delete(),r.delete(),i.delete()}generateArc(t,e,n){Module.PrimitiveGeneratorJs.clearData();let i=new Module.Point3d(t.center.mX,t.center.mY,t.center.mZ),r=new Module.Point3d(t.normal.mX,t.normal.mY,t.normal.mZ),a=new Module.Point3d(t.startVec.mX,t.startVec.mY,t.startVec.mZ),o=new Module.CircularArcJs(i,t.radius,t.thickness,r,a,t.sweepAngle,Module.ZcGiArcType.kZcGiArcSimple),s=new Module.ZwViewTableJs;s.setViewHeight(e);let l=new Module.ZcGsViewGraphicDeviceDataJs;l.setCircleSides(n);let c=new Module.ZcGsViewBaseJs;c.setDcsData(s),c.setGraphicDeviceData(l);let h=new Module.ZcGsContextImpJs(Module.ZcGiRegenType.kZcGiStandardDisplay);h.setProperty(16,!0),h.setGsView(c);let d=new Module.PrimitiveGeneratorJs(h.getPtr());d.circularArc(o);let u=d.getPrimitiveCount(),m=d.getBuffer();for(let t=0;t<u;t++){let e=m.get(t);this.genPrimitiveByWebAssembly(e),e.delete()}d.delete(),h.delete(),c.delete(),l.delete(),s.delete(),o.delete(),r.delete(),i.delete(),a.delete()}generateText(t){let e=HZ.mCurJig;if(!e||null==e.mCurView)return;let n=e.mCurView.mGraphicSystem;if(!n||!n.mCharMapper)return;let i=n.mCharMapper.byteLength,r=VZ(n.mCharMapper);Module.PrimitiveGeneratorJs.initEnv(r,i);let a=zZ.getFontData({name:"SimSun-01.ttf"});if(0===a.length)return;let o=new Uint8Array(a[0].data),s=VZ(o);Module.PrimitiveGeneratorJs.addShxFont("SimSun-01.ttf",s,o.byteLength);let l={textScale:1,textSize:t.textStyle.fontSize,font:{above:21,below:7,isShapeFile:!1,flags:32},bigFont:null,xScale:t.xScale,obliquingAngle:t.obliquingAngle,flags:t.flags,trackingPercent:t.trackingPercent,bigFontFile:"",fontFile:"",ttfDes:{flags:34306,fontFile:"SimSun-01.ttf",typeFace:"SimSun"}},c=new QR(0,0,1),h=new QR(1,0,0),d={position:t.textPt,normal:c,direction:h,pMsg:t.content,length:t.content.length,raw:!1};Module.PrimitiveGeneratorJs.clearData();let u=new Module.ZcGsViewBaseJs,m=new Module.ZcGsContextImpJs(Module.ZcGiRegenType.kZcGiStandardDisplay);m.setProperty(16,!0),m.setGsView(u);let p=new Module.ZcGiImpTextStyleJs;p.setTextScale(1),p.setTextSize(t.textStyle.fontSize),l.font&&p.setFontInfo(l.font.above,l.font.below,l.font.isShapeFile,l.font.flags),p.setXScale(l.xScale),p.setObliquingAngle(l.obliquingAngle),p.setFlags(64),p.setTrackingPercent(l.trackingPercent),p.setBigfontFile(l.bigFontFile),p.setFontFile(l.fontFile);let g=l.ttfDes;if(null!==g){let t=new Module.ZwTtfDescriptorJs;t.m_nFlags=g.flags,t.m_sFontFile=g.fontFile,t.m_Typeface=g.typeFace,p.setTtfDescriptor(t),t.delete()}let f=new Module.Point3d(d.position.mX,d.position.mY,d.position.mZ),b=new Module.Point3d(d.normal.mX,d.normal.mY,d.normal.mZ),y=new Module.Point3d(d.direction.mX,d.direction.mY,d.direction.mZ),v=new Module.PrimitiveGeneratorJs(m.getPtr());v.text(f,b,y,d.pMsg,d.length,d.raw,p);let w=Module.PrimitiveGeneratorJs.getPrimitiveCount(),x=Module.PrimitiveGeneratorJs.getBuffer();for(let e=0;e<w;e++){let n=x.get(e);this.genPrimitiveByWebAssembly(n,t),n.delete()}x.delete(),v.delete(),y.delete(),b.delete(),f.delete(),p.delete(),m.delete(),u.delete()}setCurJig(t){HZ.mCurJig=t}getCurJig(){return HZ.mCurJig}saveEntityParams(){let t=HZ.mCurJig;if(t&&t.mParams){if(null===t.mCurView||null===t.mCurView.mGraphicSystem)return;t.mCurView.mGraphicSystem.saveEntities({id:e7.SaveEntityParams,function:1,data:{docId:t.mCurView.mGraphicSystem.mDocId,content:{opt:2,add:t.mParams}}})}}static setBubbleColor(){let t=n7.instance().mBubbleColor,e=new UB(RB.COLORRGBA32);e.mColor=t.num,HZ.mZcGsPrimitiveCollector.mPrimitives.push(e)}}HZ._instance=new HZ,HZ.mZcGsPrimitiveCollector=new LV,HZ.mTextProperties={textPt:new QR(80,500,0),textDir:new qR(1,0,0),textVerDir:new qR(0,1,0),boundBox:{max:[-1,-1],min:[0,0]},textHeight:2.5,textWidth:0,xScale:1,obliquingAngle:0,content:"",textNumber:11,flags:[],textStyle:{fontSize:2.5,fontFamily:"SimSun",fontHeight:1483,fontAbove:752,fontAverageWidth:616,fontAscent:1188,fontWeight:400,fontItalic:0},trackingPercent:1,charset:134,renderMode:3,raw:0,underline:0,backward:0,upsidedown:0,vertical:0,overlined:0,strikethrough:0};class GZ extends HZ{constructor(){super(...arguments),this.mCursorPt=new QR,this.mLineArray=[],this.mLastArcEndPt=new QR,this.mLineType="line",this.mTempDirection=0,this.mLastDirection=0,this.mDrawLineArr=[],this.mArc={center:new QR,radius:0,normal:new qR,thickness:0,startVec:new qR,sweepAngle:0},this.mCentralAngQuarter=0,this.mArcBulge=0,this.mZcGsPrimitiveCollector=new LV}doJig(){if(this.mLineArray.length>0){if(null===this.mCurView||null===this.mCurView.mGraphicSystem)return;let t=this.mCurView.getGsWorldDraw();HZ.mZcGsPrimitiveCollector.clearCollector(),t.setCurPrimitveCollectorData(EB.kZcDrShorterm,HZ.mZcGsPrimitiveCollector),HZ.mZcGsPrimitiveCollector=this.mZcGsPrimitiveCollector;let e=HZ.mZcGsPrimitiveCollector.getBufferPoint(),n=this.mCurView.mGraphicSystem.mCurCursorPT,i=new QR(n.mX,n.mY,0);i=this.mCurView.scsPt2WcsPt(i),this.mCursorPt=i;let r=new HB(RB.RESTATTR);HZ.mZcGsPrimitiveCollector.mPrimitives.push(r);let a=new UB(RB.COLORRGBA32);a.mColor=zV.areaLeader,HZ.mZcGsPrimitiveCollector.mPrimitives.push(a);for(let t=0;t<this.mLineArray.length;t++)if(this.mLineArray[t].type&&"arc"===this.mLineArray[t].type)0!==this.mDrawLineArr.length&&(HZ.mZcGsPrimitiveCollector.addPrimitive(RB.RAWPOLYLINE3D,3*this.mDrawLineArr.length),this.mDrawLineArr=[]),this.generateArc(this.mLineArray[t].data,this.mCurView.mFieldHeight,1e3);else if(this.mLineArray[t].type&&"line"===this.mLineArray[t].type){if(this.mLineArray[t-1]&&"arc"===this.mLineArray[t-1].type){let n=this.mLineArray[t-1].endPoint;this.mDrawLineArr.push(n),e.push(n.mX,n.mY,n.mZ)}let n=this.mLineArray[t].data;this.mDrawLineArr.push(n),e.push(n.mX,n.mY,n.mZ),HZ.mZcGsPrimitiveCollector.addPrimitive(RB.RAWPOLYLINE3D,3*this.mDrawLineArr.length)}"line"===this.mLineType?this.drawLine(i):"arc"===this.mLineType&&this.drawArc(i,"jig"),this.mDrawLineArr=[]}}addVertex(t){let e={type:"line",data:t};this.mLineArray=this.mLineArray.concat(e),this.mLastLineStart=this.mLastLineEnd,this.mLastLineEnd=e}drawLine(t){if(null===this.mCurView||null===this.mCurView.mGraphicSystem||0===this.mLineArray.length)return;let e=HZ.mZcGsPrimitiveCollector.getBufferPoint();"line"===this.mLineArray[this.mLineArray.length-1].type?(e[e.length]=this.mLastLineEnd.data.mX,e[e.length]=this.mLastLineEnd.data.mY,e[e.length]=this.mLastLineEnd.data.mZ):"arc"===this.mLineArray[this.mLineArray.length-1].type&&(e[e.length]=this.mLastArcEndPt.mX,e[e.length]=this.mLastArcEndPt.mY,e[e.length]=this.mLastArcEndPt.mZ),e[e.length]=t.mX,e[e.length]=t.mY,e[e.length]=t.mZ,e[e.length]=e[0],e[e.length]=e[1],e[e.length]=e[2],HZ.mZcGsPrimitiveCollector.addPrimitive(RB.RAWPOLYLINE3D,9)}drawArc(t,e){if(null===this.mCurView||null===this.mCurView.mGraphicSystem)return;let n,i,r=new QR(1,0,0),a=t,o=new QR,s=HZ.mZcGsPrimitiveCollector.getBufferPoint();if(1===this.mLineArray.length)i=this.mLineArray[0].data,a=t,o.mX=i.mX,o.mY=(a.mX-i.mX)/(i.mY-a.mY)*(i.mX-(a.mX+i.mX)/2)+(i.mY+a.mY)/2,r=new QR(1,0,0);else if("line"===this.mLastLineEnd.type)n=this.mLastLineStart.endPoint?this.mLastLineStart.endPoint:this.mLastLineStart.data,i=this.mLastLineEnd.endPoint?this.mLastLineEnd.endPoint:this.mLastLineEnd.data,o.mX=-(Math.pow(i.mY,3)+(-n.mY-2*a.mY)*Math.pow(i.mY,2)+(Math.pow(i.mX,2)-2*n.mX*i.mX+2*a.mY*n.mY+Math.pow(a.mY,2)+Math.pow(a.mX,2))*i.mY+(n.mY-2*a.mY)*Math.pow(i.mX,2)+2*a.mY*n.mX*i.mX+(-Math.pow(a.mY,2)-Math.pow(a.mX,2))*n.mY)/((2*n.mX-2*a.mX)*i.mY+(2*a.mY-2*n.mY)*i.mX+2*a.mX*n.mY-2*a.mY*n.mX),o.mY=((i.mX+n.mX-2*a.mX)*Math.pow(i.mY,2)+(2*a.mX*n.mY-2*n.mY*i.mX)*i.mY+Math.pow(i.mX,3)+(-n.mX-2*a.mX)*Math.pow(i.mX,2)+(2*a.mX*n.mX+Math.pow(a.mY,2)+Math.pow(a.mX,2))*i.mX+(-Math.pow(a.mY,2)-Math.pow(a.mX,2))*n.mX)/((2*n.mX-2*a.mX)*i.mY+(2*a.mY-2*n.mY)*i.mX+2*a.mX*n.mY-2*a.mY*n.mX),r=new QR(i.mX-n.mX,i.mY-n.mY,0);else{if(!("arc"===this.mLastLineEnd.type&&this.mLineArray.length>=2))return;{i=this.mLastArcEndPt;let t=this.mLastLineEnd.data.center;o.mX=((i.mX+t.mX)*Math.pow(i.mY,2)+(-2*t.mY*i.mX-2*a.mY*t.mX)*i.mY+Math.pow(i.mX,3)-t.mX*Math.pow(i.mX,2)+(2*a.mY*t.mY-Math.pow(a.mY,2)-Math.pow(a.mX,2))*i.mX+Math.pow(a.mY,2)*t.mX+Math.pow(a.mX,2)*t.mX)/(2*Math.pow(i.mY,2)+(-2*t.mY-2*a.mY)*i.mY+2*Math.pow(i.mX,2)+(-2*t.mX-2*a.mX)*i.mX+2*a.mY*t.mY+2*a.mX*t.mX),o.mY=(Math.pow(i.mY,3)-t.mY*Math.pow(i.mY,2)+(Math.pow(i.mX,2)-2*t.mX*i.mX+2*a.mX*t.mX-Math.pow(a.mY,2)-Math.pow(a.mX,2))*i.mY+t.mY*Math.pow(i.mX,2)-2*a.mX*t.mY*i.mX+Math.pow(a.mY,2)*t.mY+Math.pow(a.mX,2)*t.mY)/(2*Math.pow(i.mY,2)+(-2*t.mY-2*a.mY)*i.mY+2*Math.pow(i.mX,2)+(-2*t.mX-2*a.mX)*i.mX+2*a.mY*t.mY+2*a.mX*t.mX),r=0===this.mLastDirection?new QR(i.mY-t.mY,-(i.mX-t.mX),0):new QR(-(i.mY-t.mY),i.mX-t.mX,0)}}let l=Math.sqrt(Math.pow(o.mX-i.mX,2)+Math.pow(o.mY-i.mY,2)),c=this.acquireAngle(o,i),h=this.acquireAngle(o,a);this.mArc.normal=new qR(0,0,1);let d=Math.atan2(r.mY,r.mX),u=Math.atan2(a.mY-i.mY,a.mX-i.mX);if(d<0&&(d+=XR.ZWGR_TWOPI),u<0&&(u+=XR.ZWGR_TWOPI),d===u||Math.abs(d-u)===XR.ZWGR_PI){if("cmd"===e)return this.addVertex(a),!1;"jig"===e&&this.drawLine(this.mCursorPt)}if(d<=XR.ZWGR_PI)if(u>d&&u<d+XR.ZWGR_PI)this.mTempDirection=1;else{let t=c;c=h,h=t,this.mTempDirection=0}else if(u<d&&u>d-XR.ZWGR_PI){let t=c;c=h,h=t,this.mTempDirection=0}else this.mTempDirection=1;return this.mArc.startVec.mX=Math.cos(c),this.mArc.startVec.mY=Math.sin(c),this.mArc.startVec.normalize(),this.mArc.sweepAngle=h-c,this.mArc.sweepAngle<0&&(this.mArc.sweepAngle+=XR.ZWGR_TWOPI),Math.abs(this.mArc.sweepAngle)>XR.ZWGR_TWOPI&&(this.mArc.sweepAngle=XR.ZWGR_TWOPI),this.mArc.center=o,this.mArc.radius=l,this.generateArc(this.mArc,this.mCurView.mFieldHeight,1e3),s[s.length]=t.mX,s[s.length]=t.mY,s[s.length]=t.mZ,s[s.length]=s[0],s[s.length]=s[1],s[s.length]=s[2],HZ.mZcGsPrimitiveCollector.addPrimitive(RB.RAWPOLYLINE3D,6),!0}addArc(t){if(!this.drawArc(t,"cmd"))return 0;let e=JSON.parse(JSON.stringify(this.mArc));this.mLastArcEndPt=t;let n={type:"arc",data:e,endPoint:JSON.parse(JSON.stringify(this.mLastArcEndPt))};return this.mLineArray=this.mLineArray.concat(n),this.mLastLineEnd=n,this.mLastDirection=this.mTempDirection,e.sweepAngle}}var ZZ,UZ=((ZZ=UZ||(UZ={}))[ZZ.aStartBranch=0]="aStartBranch",ZZ[ZZ.aObjectBranch=1]="aObjectBranch",ZZ[ZZ.aNextPtBranch=2]="aNextPtBranch",ZZ[ZZ.aEndPtBranch=3]="aEndPtBranch",ZZ[ZZ.aArcPtBranch=4]="aArcPtBranch",UZ);class WZ{constructor(){this.exeCmd=function(){return Nk(this,arguments,(function*(){let t=n7.instance().mCmdExecutionStatus;if(!t)return yield Vk(!0);SF.log("AREA命令开始执行"),WZ.resetFlags(),WZ.mCurView=jF.instance().getCurView();let e=jF.instance().getInputContent(),n=jF.instance().getKeyboardFlags(),i=!1,r=new GZ;for(HZ._instance.setCurJig(r),r.mCurView=WZ.mCurView;n=jF.instance().getKeyboardFlags(),t=n7.instance().mCmdExecutionStatus,!n7.instance().mkEscapeCaret&&t;){switch(jF.instance().setCommandFlags({enter:null,esc:null}),WZ.mBranchStatus){case UZ.aStartBranch:{if(SF.log("指定第一个点"),n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.areaFirstPt}),yield yield Vk(!1),e=jF.instance().getInputContent(),n=jF.instance().getKeyboardFlags(),n7.instance().mkEscapeCaret)break;n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.areaFirstPt+e});let t=HZ.acquirePoint();t?(SF.log("获取第一个点"),WZ.mPoints.push(t),r.addVertex(t),WZ.mBranchStatus=UZ.aNextPtBranch):""===e&&n.enter||"O"===e.trim().toUpperCase()?(WZ.mBranchStatus=UZ.aObjectBranch,n7.instance().mExecuteEditableCmd=!1,n7.instance().mExecutingSelectEntityCmd=!0):n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.errMsgCommon});break}case UZ.aObjectBranch:{SF.log("指定对象"),n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.areaObject});let t=yield Vk(TF());if(!t||(n=jF.instance().getKeyboardFlags(),n7.instance().mkEscapeCaret))break;let e=t.point,r=t.str;if(n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.areaObject+r}),e){if(null===WZ.mCurView||null===WZ.mCurView.mGraphicSystem)break;WZ.mCurView.mGraphicSystem.selectEntity({offsetX:e.mX,offsetY:e.mY});let t=yield Vk(zF());if(""===t)break;WZ.mHandleId=t,WZ.mSaveFlag=!0;let n=setTimeout((()=>{null===WZ.mCurView||null===WZ.mCurView.mGraphicSystem||(WZ.mCurView.mGraphicSystem.clearHighlight(),clearTimeout(n))}),300);WZ.saveArea(),0===(yield Vk(FF()))&&(i=!0)}else""===r&&n.enter?i=!0:""!==r&&n.enter&&n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.errSelect});break}case UZ.aNextPtBranch:{if(SF.log("指定其他的点"),n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.areaNextPt}),yield yield Vk(!1),e=jF.instance().getInputContent(),n=jF.instance().getKeyboardFlags(),n7.instance().mkEscapeCaret)break;n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.areaNextPt+e});let t=HZ.acquirePoint();if(t)SF.log("获取其他的点"),WZ.mPoints.push(t),WZ.mConvexity.push(0),r.addVertex(t),WZ.mBranchStatus=WZ.mPoints.length>=3?UZ.aEndPtBranch:UZ.aNextPtBranch;else if("A"===e.trim().toUpperCase())r.mLineType="arc",WZ.mBranchStatus=UZ.aArcPtBranch,n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.areaArcPt1});else if(""===e&&n.enter||"T"===e.trim().toUpperCase()){if(WZ.mPoints.length<=2){n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.inputInvalid});break}i=!0,WZ.mSaveFlag=!0}else n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.errMsgCommon});break}case UZ.aArcPtBranch:{if(SF.log("指定圓弧的点"),n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.areaArcPt2}),yield yield Vk(!1),e=jF.instance().getInputContent(),n=jF.instance().getKeyboardFlags(),n7.instance().mkEscapeCaret)break;n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.areaArcPt2+e});let t=HZ.acquirePoint();if(t){SF.log("获取圓弧的点"),WZ.mPoints.push(t);let e=Math.tan(r.addArc(t)/4);WZ.mConvexity.push(e),n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.areaArcPt1})}else"L"===e.trim().toUpperCase()?(r.mLineType="line",WZ.mBranchStatus=UZ.aNextPtBranch):""===e&&n.enter?(i=!0,WZ.mSaveFlag=!0):n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.errMsgCommon});break}case UZ.aEndPtBranch:{if(SF.log("指定最终的点"),n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.areaEndPt}),yield yield Vk(!1),e=jF.instance().getInputContent(),n=jF.instance().getKeyboardFlags(),n7.instance().mkEscapeCaret)break;n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.areaEndPt+e});let t=HZ.acquirePoint();t?(SF.log("获取最终的点"),WZ.mPoints.push(t),r.addVertex(t),WZ.mConvexity.push(0),WZ.mBranchStatus=UZ.aEndPtBranch):"A"===e.trim().toUpperCase()?(r.mLineType="arc",WZ.mBranchStatus=UZ.aArcPtBranch,n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.areaArcPt1})):""===e&&n.enter||"T"===e.trim().toUpperCase()?(i=!0,WZ.mSaveFlag=!0):n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.errMsgCommon});break}}if(i)break}return WZ.mBranchStatus!==UZ.aObjectBranch&&WZ.saveArea(),WZ.mPoints=[],WZ.mConvexity=[],WZ.mHandleId="",WZ.mBranchStatus=UZ.aStartBranch,WZ.mSaveFlag=!1,SF.log("AREA命令执行结束"),yield Vk(!0)}))},this.mExeCmd=this.exeCmd()}execute(){var t=this;return jR((function*(){let e=yield t.mExeCmd.next();return!(!e.done&&!e.value)}))()}cmdString(){return"area"}static saveArea(){if(WZ.mSaveFlag&&null!==WZ.mCurView&&null!==WZ.mCurView.mGraphicSystem){let t,e=WZ.mCurView.mGraphicSystem.mDocId;t=""!==this.mHandleId?{id:e7.getArea,function:20,data:{docId:e,content:{opt:4,area:{entityType:110,curvearea:{areamod:1,handleId:this.mHandleId}}}}}:{id:e7.getArea,function:20,data:{docId:e,content:{opt:4,area:{entityType:_B.kZcDbPolyline,areamod:1,polyline:{curve:{entity:{color:yB.kByLayer,layer:String(WZ.mCurView.mGraphicSystem.mDimensionLayerHandle),transparency:90,lineweight:pB.kLnWtByLayer}},points:Array.prototype.concat.apply([],WZ.mPoints.map((t=>Object.values(t)))),convexity:WZ.mConvexity,isClosed:1}}}}},WZ.mCurView.mGraphicSystem.saveEntities(t)}}static resetFlags(){let t=jF.instance();t.setPointFlag(!1),t.setInputContent("")}resetCmd(){this.mExeCmd=this.exeCmd()}}WZ.mConvexity=[],WZ.mBranchStatus=UZ.aStartBranch,WZ.mPoints=new Array,WZ.mCurView=null,WZ.mSaveFlag=!1,WZ.mHandleId="";class YZ{constructor(){this.exeCmd=function*(){let t=n7.instance().mCmdExecutionStatus;if(!t)return!0;MF.instance().broardcast(_F.History,{label:"Debug (Enter to fresh View) >",history:"===Debug Info==="});let e=n7.instance().getCurView();if(null===e)return MF.instance().broardcast(_F.History,{history:"The view is empty"}),MF.instance().broardcast(_F.History,{history:"===Debug End==="}),MF.instance().broardcast(_F.History,{label:qF.mLanguagePackage.command+":",history:""}),!0;{let t=null;e.mGraphicSystem&&e.mGraphicSystem.mGsManager&&(t=e.mGraphicSystem.mGsManager.database()),MF.instance().broardcast(_F.History,{history:"ViewId: "+e.mVPNumber}),MF.instance().broardcast(_F.History,{history:"fileldHeight: "+e.mFieldHeight}),MF.instance().broardcast(_F.History,{history:"Target: "+e.mTarget.toString()}),MF.instance().broardcast(_F.History,{history:"X Axis: "+e.mXAxis.toString()}),MF.instance().broardcast(_F.History,{history:"UpVector: "+e.mUpVector.toString()}),MF.instance().broardcast(_F.History,{history:"EyeVecotr: "+e.mEyeVecotr.toString()}),MF.instance().broardcast(_F.History,{history:"ScreenRect: "+e.mScreenRect.toString()});let n=e.mViewportTableRec.getViewInfo();if(MF.instance().broardcast(_F.History,{history:"ViewExtends: "+n.mViewExtends.toString()}),MF.instance().broardcast(_F.History,{history:"VirtualViewExtends: "+n.mVirtualViewExtends.toString()}),null!==t){let e=t.getCurLayout();null!==e&&MF.instance().broardcast(_F.History,{history:"cur layout:"+e.mLayoutName})}}for(yield;;){if(t=n7.instance().mCmdExecutionStatus,"EXIT"===jF.instance().getInputContent().toUpperCase())return MF.instance().broardcast(_F.History,{label:qF.mLanguagePackage.command+":",history:"===Debug End==="}),!0;{let t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);window.view=t,MF.instance().broardcast(_F.History,{history:"Fresh ViewInfo "+(new Date).toLocaleString()})}yield}},this.mExeCmd=this.exeCmd()}execute(){return!!this.mExeCmd.next().done}cmdString(){return"debug"}resetCmd(){this.mExeCmd=this.exeCmd()}}var jZ,XZ=((jZ=XZ||(XZ={}))[jZ.BeforeSetOrigin=0]="BeforeSetOrigin",jZ[jZ.SetOriginPoint=1]="SetOriginPoint",jZ[jZ.Scale=2]="Scale",jZ[jZ.DrawBorder=3]="DrawBorder",jZ[jZ.End=4]="End",XZ);let qZ=(()=>{class t extends HZ{constructor(){super(),this.mOriginPoint=new QR,this.mBranchStatus=XZ.BeforeSetOrigin,this.mScaleRatio=1,this.mBaseWidth=100,this.mBaseHeight=100,this.mCanJigWithoutEdit=!0,this.mPtRightBottom=new QR,this.mPtRightTop=new QR,this.mPtLeftTop=new QR,t.instance=this}doJig(){if(!this.mCurView||!this.mCurView.mGraphicSystem)return;let t=this.mCurView.getGsWorldDraw();HZ.mZcGsPrimitiveCollector.clearCollector(),t.setCurPrimitveCollectorData(EB.kZcDrShorterm,HZ.mZcGsPrimitiveCollector);let e,n,i,r,a=new oB,o=new QR;switch(this.mBranchStatus){case XZ.SetOriginPoint:if(e=HZ.mZcGsPrimitiveCollector.getBufferPoint(),a=this.mCurView.mGraphicSystem.mCurCursorPT,o=new QR(a.mX,a.mY,0),o=this.mCurView.scsPt2WcsPt(o),mF)break;e.push(o.mX,o.mY,o.mZ),e.push(o.mX+this.mBaseWidth,o.mY,o.mZ),e.push(o.mX+this.mBaseWidth,o.mY+this.mBaseHeight,o.mZ),e.push(o.mX,o.mY+this.mBaseHeight,o.mZ),e.push(o.mX,o.mY,o.mZ),n=new HB(RB.RESTATTR),HZ.mZcGsPrimitiveCollector.mPrimitives.push(n),n7.instance().mDrawCommentBubble&&HZ.setBubbleColor(),HZ.mZcGsPrimitiveCollector.addPrimitive(RB.RAWPOLYLINE3D,15);break;case XZ.Scale:if(e=HZ.mZcGsPrimitiveCollector.getBufferPoint(),a=this.mCurView.mGraphicSystem.mCurCursorPT,o=new QR(a.mX,a.mY,0),o=this.mCurView.scsPt2WcsPt(o),mF){this.mScaleRatio=Math.abs(o.mX-this.mOriginPoint.mX)/this.mBaseWidth;let t=this.mBaseWidth*this.mScaleRatio,e=this.mBaseHeight*this.mScaleRatio;this.mOriginPoint.mX<o.mX?this.mOriginPoint.mY<o.mY||(this.mOriginPoint.mY=this.mOriginPoint.mY-e):this.mOriginPoint.mY<o.mY?this.mOriginPoint.mX=this.mOriginPoint.mX-t:(this.mOriginPoint.mX=this.mOriginPoint.mX-t,this.mOriginPoint.mY=this.mOriginPoint.mY-e),this.mPtRightBottom.mX=this.mOriginPoint.mX+t,this.mPtRightBottom.mY=this.mOriginPoint.mY,this.mPtLeftTop.mX=this.mOriginPoint.mX,this.mPtLeftTop.mY=this.mOriginPoint.mY+e;break}i=Math.sqrt(Math.pow(this.mOriginPoint.mX-o.mX,2)+Math.pow(this.mOriginPoint.mY-o.mY,2)+Math.pow(this.mOriginPoint.mZ-o.mZ,2)),this.mScaleRatio=i/this.mBaseWidth,e.push(this.mOriginPoint.mX,this.mOriginPoint.mY,this.mOriginPoint.mZ),e.push(this.mOriginPoint.mX+this.mBaseWidth*this.mScaleRatio,this.mOriginPoint.mY,this.mOriginPoint.mZ),e.push(this.mOriginPoint.mX+this.mBaseWidth*this.mScaleRatio,this.mOriginPoint.mY+this.mBaseHeight*this.mScaleRatio,this.mOriginPoint.mZ),e.push(this.mOriginPoint.mX,this.mOriginPoint.mY+this.mBaseHeight*this.mScaleRatio,this.mOriginPoint.mZ),e.push(this.mOriginPoint.mX,this.mOriginPoint.mY,this.mOriginPoint.mZ),n=new HB(RB.RESTATTR),HZ.mZcGsPrimitiveCollector.mPrimitives.push(n),n7.instance().mDrawCommentBubble&&HZ.setBubbleColor(),HZ.mZcGsPrimitiveCollector.addPrimitive(RB.RAWPOLYLINE3D,15),r=new UB(RB.COLORRGBA32),r.mColor=zV.jigLeader,HZ.mZcGsPrimitiveCollector.mPrimitives.push(r),e.push(this.mOriginPoint.mX,this.mOriginPoint.mY,this.mOriginPoint.mZ),e.push(o.mX,o.mY,o.mZ),HZ.mZcGsPrimitiveCollector.addPrimitive(RB.RAWPOLYLINE3D,6)}}}return t.instance=null,t})();new $F;class $Z{constructor(){this.exeCmd=function(){return Nk(this,arguments,(function*(){let t=n7.instance();if(!t||!t.mGs)return yield Vk(void 0);let e=t.mCmdExecutionStatus;if(!e)return yield Vk(!0);SF.log("IMAGE命令开始执行"),$Z.resetFlags(),$Z.mCurView=jF.instance().getCurView();let n=jF.instance().getCurView(),i=new qZ;HZ._instance.setCurJig(i),null!==n&&(i.mCurView=n);let r,a,o,s,l=!1;for(;;){if(e=t.mCmdExecutionStatus,!e){$Z.mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.command+":",history:"*"+qF.mLanguagePackage.cancel+"*"});break}switch(i.mBranchStatus){case XZ.BeforeSetOrigin:$Z.mZcBroadcast.broardcast(_F.History,{label:" ",history:""}),n7.instance().mModalOpened=!0,o=yield Vk(NF()),n7.instance().mModalOpened=!1,"image"===o?i.mBranchStatus=XZ.SetOriginPoint:l=!0;break;case XZ.SetOriginPoint:if($Z.mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.insertPoint,history:""}),r=yield Vk(AF()),!r){l=!0;break}if(s=r.str,r.point)i.mOriginPoint=r.point;else{if(s){$Z.mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.insertPoint,history:qF.mLanguagePackage.enterPointTip});break}i.mOriginPoint=new QR(0,0,0)}i.mBranchStatus=XZ.Scale,HZ._instance.doJig(),$Z.mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.scaleFactor,history:qF.mLanguagePackage.insertPoint+s});break;case XZ.Scale:if($Z.mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.scaleFactor,history:""}),a=yield Vk(AF()),!a){l=!0;break}if(t.mDrawCommentBubble&&a.point&&a.point.isEqual(i.mOriginPoint))continue;if(s=a.str,$Z.mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.scaleFactor,history:qF.mLanguagePackage.scaleFactor+s}),!a.point){if(!/^(\d+|\s)$/.test(s)&&""!==s){$Z.mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.insertPoint,history:qF.mLanguagePackage.enterKeyOrPointTip});break}i.mScaleRatio="0"===s||""===s?1:s}i.mBranchStatus=XZ.DrawBorder;break;case XZ.DrawBorder:if(t.mDrawCommentBubble&&t.isContinuousDraw()&&qZ.instance){let e=t.mGs;if(null!==e){let t,n;mF?(t=new qR(qZ.instance.mPtRightBottom.mX-qZ.instance.mOriginPoint.mX,qZ.instance.mPtRightBottom.mY-qZ.instance.mOriginPoint.mY,qZ.instance.mPtRightBottom.mZ-qZ.instance.mOriginPoint.mZ),n=new qR(qZ.instance.mPtLeftTop.mX-qZ.instance.mOriginPoint.mX,qZ.instance.mPtLeftTop.mY-qZ.instance.mOriginPoint.mY,qZ.instance.mPtLeftTop.mZ-qZ.instance.mOriginPoint.mZ)):(t=new qR(qZ.instance.mBaseWidth*qZ.instance.mScaleRatio,0,0),n=new qR(0,qZ.instance.mBaseHeight*qZ.instance.mScaleRatio,0)),e.createImageBubble(cF(),qZ.instance.mOriginPoint,t,n,$Z.mImgData.name,$Z.mImgData.path)}qZ.instance.mOriginPoint=new QR,qZ.instance.mBaseWidth=100,qZ.instance.mBaseHeight=100,i.mBranchStatus=XZ.BeforeSetOrigin}else $Z.saveImageRect(),l=!0;break;default:yield yield Vk(!1),l=!0}if(l)break}return $Z.mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.command+":",history:""}),SF.log("IMAGE命令执行结束"),yield Vk(!0)}))},this.mExeCmd=this.exeCmd()}execute(){var t=this;return jR((function*(){let e=yield t.mExeCmd.next();return!(!e.done&&!e.value)}))()}cmdString(){return"image"}static resetFlags(){let t=jF.instance();t.setPointFlag(!1),t.setInputContent(""),t.setCommandFlags({enter:null,esc:null})}resetCmd(){this.mExeCmd=this.exeCmd()}static saveImageRect(){if(null!==$Z.mCurView&&null!==$Z.mCurView.mGraphicSystem&&null!==qZ.instance){let t=$Z.mCurView.mGraphicSystem,e=$Z.mImgData.path;t.drawManager.hasImage(this.mImgData.name)||t.setImageData((new Map).set(this.mImgData.name,this.mImgData.data));let n=n7.instance();if(n.mDrawCommentBubble){if(!n.mkEscapeCaret&&!n.isContinuousDraw()){let t=n.mGs;if(null!==t){let n,i;mF?(n=new qR(qZ.instance.mPtRightBottom.mX-qZ.instance.mOriginPoint.mX,qZ.instance.mPtRightBottom.mY-qZ.instance.mOriginPoint.mY,qZ.instance.mPtRightBottom.mZ-qZ.instance.mOriginPoint.mZ),i=new qR(qZ.instance.mPtLeftTop.mX-qZ.instance.mOriginPoint.mX,qZ.instance.mPtLeftTop.mY-qZ.instance.mOriginPoint.mY,qZ.instance.mPtLeftTop.mZ-qZ.instance.mOriginPoint.mZ)):(n=new qR(qZ.instance.mBaseWidth*qZ.instance.mScaleRatio,0,0),i=new qR(0,qZ.instance.mBaseHeight*qZ.instance.mScaleRatio,0)),t.createImageBubble(cF(),qZ.instance.mOriginPoint,n,i,$Z.mImgData.name,e)}}}else{let n={id:e7.SaveEntityParams,function:1,data:{docId:t.mDocId,content:{opt:2,add:{entityType:_B.kZcDbImage,imageAttach:{entity:{color:yB.kByLayer,layer:String($Z.mCurView.mGraphicSystem.mDimensionLayerHandle),transparency:90},filePath:e,insertName:$Z.mImgData.name,location:[qZ.instance.mOriginPoint.mX,qZ.instance.mOriginPoint.mY,qZ.instance.mOriginPoint.mZ],uVector:[qZ.instance.mBaseWidth*qZ.instance.mScaleRatio,0,0],vVector:[0,qZ.instance.mBaseHeight*qZ.instance.mScaleRatio,0]}}}}};$Z.mCurView.mGraphicSystem.saveEntities(n)}$Z.mCurView.mDirectShortermCollector.clearCollector(),MF.instance().broardcast(_F.GetFileData,{type:"addXref",data:this.mImgData})}}static setImageMsg(t){this.mImgData=t}static setImageList(t){this.mImageList=t}static getAllImages(){return new Promise(((t,e)=>{t(this.mImageList)}))}}$Z.mCurView=null,$Z.mZcBroadcast=MF.instance(),$Z.canSaveFlag=!1,$Z.mImgData={name:"",path:"",data:""},$Z.mImageList=[];const KZ="http://192.168.51.173:9090",JZ="http://192.168.51.172:7880",QZ="http://192.168.51.173:5510",tU={production:!0,forSDK:!0,ownerId:100,successCode:0,picLimit:10485760,baseUrl:KZ,stompUrl:"ws://192.168.51.173:9090/api/ws",getService:QZ,auth:{authority:JZ,redirectUrl:"http://192.168.51.173/callback/",postLoginRoute:"/service/workspace",postLogoutRedirectUri:"http://192.168.51.173/logout/",clientId:"CloudCAD_2D_Web",scope:"openid profile email phone offline_access ZMS.UserDetails.Write ZMS.UserDetails.Read CloudCAD.2D.Api",responseType:"code",silentRenew:!0,useRefreshToken:!0,renewTimeBeforeTokenExpiresInSeconds:30,secureRoutes:[KZ,JZ,QZ]}};var eU,nU,iU,rU=((iU=rU||(rU={}))[iU.bottomLeft=0]="bottomLeft",iU[iU.topLeft=1]="topLeft",iU[iU.topRight=2]="topRight",iU[iU.bottomRight=3]="bottomRight",rU),aU=((nU=aU||(aU={}))[nU.Vertical=0]="Vertical",nU[nU.Horizorial=1]="Horizorial",aU),oU=((eU=oU||(oU={}))[eU.printExtent=0]="printExtent",eU[eU.drawingBorder=1]="drawingBorder",oU);const sU=[{label:"bottomLeft",value:rU.bottomLeft},{label:"topLeft",value:rU.topLeft},{label:"topRight",value:rU.topRight},{label:"bottomRight",value:rU.bottomRight}],lU=[{label:"horizortal",value:aU.Horizorial},{label:"vertical",value:aU.Vertical}],cU=[{label:"offsetRelativeToPrintableArea",value:oU.printExtent},{label:"offsetRelativeToPaperBorder",value:oU.drawingBorder}];var hU,dU,uU,mU,pU=((mU=pU||(pU={}))[mU.Direct=0]="Direct",mU[mU.Extension=1]="Extension",mU[mU.Window=4]="Window",pU),gU=((uU=gU||(gU={}))[uU.pdf=0]="pdf",uU[uU.png=2]="png",uU[uU.jpg=3]="jpg",gU),fU=((dU=fU||(fU={}))[dU.Protrait=0]="Protrait",dU[dU.Landscape=1]="Landscape",dU[dU.UpsideDown=2]="UpsideDown",fU),bU=((hU=bU||(bU={}))[hU.download=0]="download",hU[hU.print=1]="print",bU);let yU=[{label:"Extension_print",value:pU.Extension},{label:"Direct_print",value:pU.Direct},{label:"Window_print",value:pU.Window}],vU=[{label:"pdf",value:gU.pdf,disabled:!1},{label:"png",value:gU.png,disabled:!1},{label:"jpg",value:gU.jpg,disabled:!1}],wU=[{label:"Landscape",value:fU.Landscape},{label:"Protrait",value:fU.Protrait}];const xU=[[{name:"ISO full bleed B5",size:"250.00 x 176.00",unit:"millimeter"},{name:"ISO full bleed B5",size:"176.00 x 250.00",unit:"millimeter"},{name:"ISO full bleed B4",size:"353.00 x 250.00",unit:"millimeter"},{name:"ISO full bleed B4",size:"250.00 x 353.00",unit:"millimeter"},{name:"ISO full bleed B3",size:"500.00 x 353.00",unit:"millimeter"},{name:"ISO full bleed B3",size:"353.00 x 500.00",unit:"millimeter"},{name:"ISO full bleed B2",size:"707.00 x 500.00",unit:"millimeter"},{name:"ISO full bleed B2",size:"500.00 x 707.00",unit:"millimeter"},{name:"ISO full bleed B1",size:"1000.00 x 707.00",unit:"millimeter"},{name:"ISO full bleed B1",size:"707.00 x 1000.00",unit:"millimeter"},{name:"ISO full bleed B0",size:"1414.00 x 1000.00",unit:"millimeter"},{name:"ISO full bleed B0",size:"1000.00 x 1414.00",unit:"millimeter"},{name:"ISO full bleed A5",size:"210.00 x 148.00",unit:"millimeter"},{name:"ISO full bleed A5",size:"148.00 x 210.00",unit:"millimeter"},{name:"ISO full bleed 2A0",size:"1189.00 x 1682.00",unit:"millimeter"},{name:"ISO full bleed 4A0",size:"1682.00 x 2378.00",unit:"millimeter"},{name:"ISO full bleed A4",size:"297.00 x 210.00",unit:"millimeter"},{name:"ISO full bleed A4",size:"210.00 x 297.00",unit:"millimeter"},{name:"ISO full bleed A3",size:"420.00 x 297.00",unit:"millimeter"},{name:"ISO full bleed A3",size:"297.00 x 420.00",unit:"millimeter"},{name:"ISO full bleed A2",size:"594.00 x 420.00",unit:"millimeter"},{name:"ISO full bleed A2",size:"420.00 x 594.00",unit:"millimeter"},{name:"ISO full bleed A1",size:"841.00 x 594.00",unit:"millimeter"},{name:"ISO full bleed A1",size:"594.00 x 841.00",unit:"millimeter"},{name:"ISO full bleed A0",size:"841.00 x 1189.00",unit:"millimeter"},{name:"ISO full bleed B1",size:"707.00 x 1000.00",unit:"millimeter"},{name:"ARCH full bleed E1",size:"30.00 x 42.00",unit:"inches"},{name:"ARCH full bleed E",size:"36.00 x 48.00",unit:"inches"},{name:"ARCH full bleed D",size:"36.00 x 24.00",unit:"inches"},{name:"ARCH full bleed D",size:"24.00 x 36.00",unit:"inches"},{name:"ARCH full bleed C",size:"24.00 x 18.00",unit:"inches"},{name:"ARCH full bleed C",size:"18.00 x 24.00",unit:"inches"},{name:"ARCH full bleed B",size:"18.00 x 12.00",unit:"inches"},{name:"ARCH full bleed B",size:"12.00 x 18.00",unit:"inches"},{name:"ARCH full bleed A",size:"12.00 x 9.00",unit:"inches"},{name:"ARCH full bleed A",size:"9.00 x 12.00",unit:"inches"},{name:"ANSI full bleed F",size:"28.00 x 40.00",unit:"inches"},{name:"ANSI full bleed E",size:"34.00 x 44.00",unit:"inches"},{name:"ANSI full bleed D",size:"34.00 x 22.00",unit:"inches"},{name:"ANSI full bleed D",size:"22.00 x 34.00",unit:"inches"},{name:"ANSI full bleed C",size:"22.00 x 17.00",unit:"inches"},{name:"ANSI full bleed C",size:"17.00 x 22.00",unit:"inches"},{name:"ANSI full bleed B",size:"17.00 x 11.00",unit:"inches"},{name:"ANSI full bleed B",size:"11.00 x 17.00",unit:"inches"},{name:"ANSI full bleed A",size:"11.00 x 8.50",unit:"inches"},{name:"ANSI full bleed A",size:"8.50 x 11.00",unit:"inches"},{name:"ISO expand A0",size:"841.00 x 1189.00",unit:"millimeter"},{name:"ISO A0",size:"841.00 x 1189.00",unit:"millimeter"},{name:"ISO expand A1",size:"841.00 x 594.00",unit:"millimeter"},{name:"ISO expand A1",size:"594.00 x 841.00",unit:"millimeter"},{name:"ISO A1",size:"841.00 x 594.00",unit:"millimeter"},{name:"ISO A1",size:"594.00 x 841.00",unit:"millimeter"},{name:"ISO expand A2",size:"594.00 x 420.00",unit:"millimeter"},{name:"ISO expand A2",size:"420.00 x 594.00",unit:"millimeter"},{name:"ISO A2",size:"594.00 x 420.00",unit:"millimeter"},{name:"ISO A2",size:"420.00 x 594.00",unit:"millimeter"},{name:"ISO expand A3",size:"420.00 x 297.00",unit:"millimeter"},{name:"ISO expand A3",size:"297.00 x 420.00",unit:"millimeter"},{name:"ISO A3",size:"420.00 x 297.00",unit:"millimeter"},{name:"ISO A3",size:"297.00 x 420.00",unit:"millimeter"},{name:"ISO expand A4",size:"297.00 x 210.00",unit:"millimeter"},{name:"ISO expand A4",size:"210.00 x 297.00",unit:"millimeter"},{name:"ISO A4",size:"297.00 x 210.00",unit:"millimeter"},{name:"ISO A4",size:"210.00 x 297.00",unit:"millimeter"},{name:"ARCH expand E1",size:"30.00 x 42.00",unit:"inches"},{name:"ARCH E1",size:"30.00 x 42.00",unit:"inches"},{name:"ARCH expand E",size:"36.00 x 48.00",unit:"inches"},{name:"ARCH E",size:"36.00 x 48.00",unit:"inches"},{name:"ARCH expand D",size:"36.00 x 24.00",unit:"inches"},{name:"ARCH expand D",size:"24.00 x 36.00",unit:"inches"},{name:"ARCH D",size:"36.00 x 24.00",unit:"inches"},{name:"ARCH D",size:"24.00 x 36.00",unit:"inches"},{name:"ARCH expand C",size:"24.00 x 18.00",unit:"inches"},{name:"ARCH expand C",size:"18.00 x 24.00",unit:"inches"},{name:"ARCH C",size:"24.00 x 18.00",unit:"inches"},{name:"ARCH C",size:"18.00 x 24.00",unit:"inches"},{name:"ANSI expand E",size:"34.00 x 44.00",unit:"inches"},{name:"ANSI E",size:"34.00 x 44.00",unit:"inches"},{name:"ANSI expand D",size:"34.00 x 22.00",unit:"inches"},{name:"ANSI expand D",size:"22.00 x 34.00",unit:"inches"},{name:"ANSI D",size:"34.00 x 22.00",unit:"inches"},{name:"ANSI D",size:"22.00 x 34.00",unit:"inches"},{name:"ANSI expand C",size:"22.00 x 17.00",unit:"inches"},{name:"ANSI expand C",size:"17.00 x 22.00",unit:"inches"},{name:"ANSI C",size:"22.00 x 17.00",unit:"inches"},{name:"ANSI C",size:"17.00 x 22.00",unit:"inches"},{name:"ANSI expand B",size:"17.00 x 11.00",unit:"inches"},{name:"ANSI expand B",size:"11.00 x 17.00",unit:"inches"},{name:"ANSI B",size:"17.00 x 11.00",unit:"inches"},{name:"ANSI B",size:"11.00 x 17.00",unit:"inches"},{name:"ANSI expand A",size:"11.00 x 8.50",unit:"inches"},{name:"ANSI expand A",size:"8.50 x 11.00",unit:"inches"},{name:"ANSI A",size:"11.00 x 8.50",unit:"inches"},{name:"ANSI A",size:"8.50 x 11.00",unit:"inches"}],[{name:"VGA",size:"480.00 x 640.00",unit:"pixels",paperId:40},{name:"XGA",size:"768.00 x 1024.00",unit:"pixels",paperId:41},{name:"Super VGA",size:"600.00 x 800.00",unit:"pixels",paperId:42},{name:"XGA Hi-Res",size:"1200.00 x 1600.00",unit:"pixels",paperId:43},{name:"Sun Hi-Res",size:"1280.00 x 1600.00",unit:"pixels",paperId:44},{name:"Sun Standard",size:"900.00 x 1152.00",unit:"pixels",paperId:45}]],CU=new Map;CU.set(gU.pdf,{papers:xU[0],defaultIndex:xU[0].findIndex((t=>"ISO A4"===t.name&&"210.00 x 297.00"===t.size&&"millimeter"===t.unit))}),CU.set(gU.jpg,{papers:xU[1],defaultIndex:xU[1].findIndex((t=>"Sun Hi-Res"===t.name&&"1280.00 x 1600.00"===t.size&&"pixels"===t.unit))}),CU.set(gU.png,{papers:xU[1],defaultIndex:xU[1].findIndex((t=>"Sun Hi-Res"===t.name&&"1280.00 x 1600.00"===t.size&&"pixels"===t.unit))}),new Map;var kU,SU,PU=((SU=PU||(PU={}))[SU.layer=0]="layer",SU[SU.block=1]="block",SU[SU.scatter=2]="scatter",PU),_U=((kU=_U||(_U={}))[kU.plot=0]="plot",kU[kU.batchPlot=1]="batchPlot",_U);const MU=[{label:"图层: 指定图形封闭矩形",value:PU.layer},{label:"图块: 图框为特定图块",value:PU.block},{label:"散线: 图框为线包围的封闭矩形",value:PU.scatter}],DU={plotName:"",plotType:vU[0],paperIndex:CU.get(gU.pdf).defaultIndex,paperConfig:CU.get(gU.pdf).papers,extent:yU[0],offset:{x:"0.000000",y:"0.000000",isCenter:!0},direction:{dir:wU[0],isUpSide:!1},options:{stampOpen:!1,lineWeightsOpen:!0,fullScale:!0,scale:1,stamp:{stampFiled:{drawingName:!1,deviceName:!1,layoutName:!1,paperSize:!1,dateAndTime:!1,plotScale:!1},userFiled:{firstStr:"",secondStr:""},advanced:{position:sU[0],orientation:lU[0],offsetType:cU[0],offset:{x:"2.54",y:"2.54"}}},electronicSignatureOpen:!1,electronicStampOpen:!1,machineSianatureOpen:!1},plotTabIndex:_U.plot,batchPlot:{frameStyle:MU[0],layer:{layers:[],layersStr:""}}};var EU,OU=((EU=OU||(OU={}))[EU.showParent=0]="showParent",EU[EU.showChild=1]="showChild",EU[EU.showSelf=2]="showSelf",OU);const AU=[{key:"drawingName"},{key:"deviceName"},{key:"layoutName"},{key:"paperSize"},{key:"dateAndTime"},{key:"plotScale"}],TU=new Map;TU.set(gU.pdf,"dwg to pdf.pc5"),TU.set(gU.png,"dwg to png.pc5"),TU.set(gU.jpg,"dwg to jpg.pc5");var IU,LU=((IU=LU||(LU={}))[IU.BeforePlot=0]="BeforePlot",IU[IU.SetFirstPoint=1]="SetFirstPoint",IU[IU.SetSecondPoint=2]="SetSecondPoint",IU[IU.End=3]="End",LU);let zU=(()=>{class t extends HZ{constructor(){super(),this.mOriginPoint=new QR,this.mBranchStatus=LU.BeforePlot,this.mScaleRatio=1,this.mMinPoint=new QR,this.mMaxPoint=new QR,this.mCanJigWithoutEdit=!0,t.instance=this}doJig(){if(!this.mCurView||!this.mCurView.mGraphicSystem)return;let t=this.mCurView.getGsWorldDraw();HZ.mZcGsPrimitiveCollector.clearCollector(),t.setCurPrimitveCollectorData(EB.kZcDrShorterm,HZ.mZcGsPrimitiveCollector);let e,n=new oB,i=new QR;switch(this.mBranchStatus){case LU.SetFirstPoint:break;case LU.SetSecondPoint:n=this.mCurView.mGraphicSystem.mCurCursorPT,i=new QR(n.mX,n.mY,0),i=this.mCurView.scsPt2WcsPt(i),i.mX<this.mOriginPoint.mX?(this.mMinPoint.copy(i),this.mMaxPoint.copy(this.mOriginPoint)):(this.mMinPoint.copy(this.mOriginPoint),this.mMaxPoint.copy(i)),this.mMinPoint.mZ=0,this.mMaxPoint.mZ=0,e=new HB(RB.RESTATTR),HZ.mZcGsPrimitiveCollector.mPrimitives.push(e),HZ.mZcGsPrimitiveCollector.addPrimitiveRectangleBubble(RB.RECTANGLEBUBBLE,"",[this.mMinPoint,this.mMaxPoint],"")}}}return t.instance=null,t})();new $F;class RU{constructor(){this.exeCmd=function(){return Nk(this,arguments,(function*(){let t=n7.instance();if(!t||!t.mGs)return yield Vk(void 0);let e=t.mCmdExecutionStatus;if(!e)return yield Vk(!0);SF.log("PLOT命令开始执行"),RU.resetFlags(),RU.mCurView=jF.instance().getCurView(),RU.mZcBroadcast.broardcast(_F.History,{label:"",history:""});let n=jF.instance().getCurView(),i=new zU;HZ._instance.setCurJig(i),null!==n&&(i.mCurView=n);let r,a,o,s=!1,l=n7.instance().mCommandBranch.mainBranch;for(;;){if(e=t.mCmdExecutionStatus,!e){RU.mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.command+":",history:"*"+qF.mLanguagePackage.cancel+"*"});break}switch(i.mBranchStatus){case LU.BeforePlot:switch(n7.instance().mModalOpened=!0,a=yield Vk(VF(l)),n7.instance().mModalOpened=!1,a){case"plot":i.mBranchStatus=LU.End;break;case pU.Window:i.mBranchStatus=LU.SetFirstPoint,RU.mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.specifyFirst,history:qF.mLanguagePackage.specifyPrintWin});break;default:s=!0}break;case LU.SetFirstPoint:if(RU.isInPaperSpace()){let t=RU.getOverView();RU.changeActiveView(t),i.mCurView=t}if("Master"===ZwCloud2D.type&&MF.instance().broardcast(_F.GsInteraction,{type:"drawCursor",data:{type:"jig"}}),r=yield Vk(AF()),RU.mZcBroadcast.broardcast(_F.History,{label:"",history:qF.mLanguagePackage.specifyFirst}),!r.point){RU.mZcBroadcast.broardcast(_F.History,{label:"",history:qF.mLanguagePackage.invalidWin});break}i.mOriginPoint=r.point,i.mBranchStatus=LU.SetSecondPoint;break;case LU.SetSecondPoint:if(RU.mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.specifySecond,history:""}),o=yield Vk(AF()),"Master"===ZwCloud2D.type&&MF.instance().broardcast(_F.GsInteraction,{type:"drawCursor",data:{type:"normal"}}),RU.mZcBroadcast.broardcast(_F.History,{label:"",history:qF.mLanguagePackage.specifySecond}),!o.point){RU.mZcBroadcast.broardcast(_F.History,{label:"",history:qF.mLanguagePackage.invalidWin}),i.mBranchStatus=LU.SetFirstPoint,HZ.clearTempJig();break}HZ.clearTempJig(),RU.isInPaperSpace()&&(RU.changeActiveView(RU.mCurView),i.mCurView=RU.mCurView),i.mBranchStatus=LU.BeforePlot;break;case LU.End:RU.sendPlotData(),s=!0;break;default:yield yield Vk(!1),s=!0}if(s)break}return RU.setPlotSettings(null),RU.mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.command+":",history:""}),SF.log("PLOT命令执行结束"),yield Vk(!0)}))},this.mExeCmd=this.exeCmd()}execute(){var t=this;return jR((function*(){let e=yield t.mExeCmd.next();return!(!e.done&&!e.value)}))()}cmdString(){return"plot"}static resetFlags(){let t=jF.instance();t.setPointFlag(!1),t.setInputContent(""),t.setCommandFlags({enter:null,esc:null})}resetCmd(){this.mExeCmd=this.exeCmd()}static sendPlotData(){let t=(new sB).getDB();if(!t)return;let e=t.getCurLayout();if(!e||!RU.mCurView||!RU.mCurView.mGraphicSystem)return;let n=RU.mCurView.mGraphicSystem,i=n.mDocId,r=RU.mCurView.mGraphicSystem.mCanvas;if(!r)return;let a,o=RU.plotSettings.plotName,s=RU.plotSettings.plotType.label,l=RU.plotSettings.resultType,c=RU.plotSettings.plotTabIndex,h=Number(RU.plotSettings.options.scale);if(c===_U.plot){a={functionType:27,docId:i,handleId:String(e.handleId),ptType:RU.plotSettings.plotType.value,plotLayers:RU.layerSettings,plotSettings:{plotType:RU.plotSettings.extent.value,minPoint:[0,0],maxPoint:[0,0],centered:RU.plotSettings.offset.isCenter,fullScale:RU.plotSettings.options.fullScale,denominator:h,plotRotation:0,pageIndex:RU.plotSettings.paperIndex},canvasWidth:r.style.width.replace("px",""),canvasHeight:r.style.height.replace("px",""),lineWeights:RU.plotSettings.options.lineWeightsOpen};let t=RU.plotSettings.direction;if(t.isUpSide)switch(t.dir.value){case fU.Protrait:a.plotSettings.plotRotation=2;break;case fU.Landscape:a.plotSettings.plotRotation=3}else a.plotSettings.plotRotation=t.dir.value;if(!zU.instance)return;if(RU.plotSettings.extent.value===pU.Direct){a.plotSettings=Object.assign(a.plotSettings,{minPoint:[0,0],maxPoint:[0,0]});let t=n.mCurView;if(t&&n.mGsManager.isInPaperSpace()){let e=t.mViewportTableRec.getViewInfo();a.plotSettings.viewSize=e.mViewHeight,a.plotSettings.viewCenter=[e.mViewCenter.mX,e.mViewCenter.mY]}}else zU.instance.mMinPoint.mulMatrix(RU.mCurView.wcsToDcsMatrix()),zU.instance.mMaxPoint.mulMatrix(RU.mCurView.wcsToDcsMatrix()),a.plotSettings=Object.assign(a.plotSettings,{minPoint:[zU.instance.mMinPoint.mX,zU.instance.mMinPoint.mY,0],maxPoint:[zU.instance.mMaxPoint.mX,zU.instance.mMaxPoint.mY,0]});tU.forSDK&&(a.isZwPlot=!1)}else c===_U.batchPlot&&(a={docId:i,handleId:String(e.handleId),layers:RU.plotSettings.batchPlot.layer.layers,filename:o,ptType:RU.plotSettings.plotType.value,plotLayers:RU.layerSettings,plotSettings:{pageIndex:RU.plotSettings.paperIndex,centered:RU.plotSettings.offset.isCenter,fullScale:RU.plotSettings.options.fullScale,denominator:h},lineWeights:RU.plotSettings.options.lineWeightsOpen},tU.forSDK&&(a.isZwPlot=!0));a.plotSettings.xCoordinate=Number(RU.plotSettings.offset.x),a.plotSettings.yCoordinate=Number(RU.plotSettings.offset.y);let d=RU.plotSettings.options.stamp;if(RU.plotSettings.options.stampOpen){o.lastIndexOf("-");let t=RU.mCurView.mGraphicSystem.mFileName,n="";n=e.mLayoutName,/^model$/i.test(n)&&(n=qF.mLanguagePackage.model);let i=TU.get(RU.plotSettings.plotType.value),r=RU.plotSettings.paperConfig[RU.plotSettings.plotType.value===gU.pdf?RU.plotSettings.paperIndex:RU.plotSettings.paperIndex-40],s=[t,i,n,r.name+"("+r.size+" "+qF.mLanguagePackage[r.unit]+")",xF(new Date),"1:1"],l=d.stampFiled,c=0,h=[];for(const t in l)Object.prototype.hasOwnProperty.call(l,t)&&(l[t]&&h.push(s[c]),c++);d.userFiled.firstStr=h.length>3?h.slice(0,3).join(", ")+",\n"+h.slice(3).join(", "):h.join(", "),a.plotStamps={selection1:d.userFiled.firstStr,selection2:d.userFiled.secondStr,stampLocation:Number(d.advanced.position.value),stampOrientation:Number(d.advanced.orientation.value)}}RU.plotSettings.plotType.value!==gU.pdf&&(RU.plotSettings.options.electronicSignatureOpen=!1,RU.plotSettings.options.electronicStampOpen=!1),tU.forSDK&&(a.openElecSignSeal=RU.plotSettings.options.electronicStampOpen?1:0),a.frameMode=RU.plotSettings.options.electronicStampOpen?3:0,a.isZwPlot||delete a.frameMode,n&&n.isInEditMode()?(RU.mMessageSubscription&&(RU.mMessageSubscription.unsubscribe(),RU.mMessageSubscription=null),RU.mMessageSubscription=n.mWSMessageSubjects.subscribe((t=>{t.id===e7.SaveDoc&&(0===t.code&&(MF.instance().broardcast(_F.GetFileData,{type:"plotDwg",data:{filename:o+"."+s,params:a,resultType:l,plotTabIndex:c}}),MF.instance().broardcast(_F.UpdatePage,{type:"loading",data:{isLoading:!0,loadingMessage:qF.mLanguagePackage.plot_ing}})),RU.mMessageSubscription&&(RU.mMessageSubscription.unsubscribe(),RU.mMessageSubscription=null))})),n.saveDoc()):(MF.instance().broardcast(_F.GetFileData,{type:"plotDwg",data:{filename:o+"."+s,params:a,resultType:l,plotTabIndex:c}}),MF.instance().broardcast(_F.UpdatePage,{type:"loading",data:{isLoading:!0,loadingMessage:qF.mLanguagePackage.plot_ing}}))}static setPlotSettings(t){RU.plotSettings=t}static setLayerSettings(t){RU.layerSettings=t}static getOverView(){let t=(new sB).getDB();if(!RU.mCurView||!t)return null;let e=RU.mCurView.mDevice,n=t.getActiveBTR();if(!e||!n)return null;let i=e.getArrView();for(let t=0;t<i.length;++t){let e=i[t];if(n.checkViewInBTR(e.mViewportTableRec)&&e.isOverallView())return e}return null}static isInPaperSpace(){if(!RU.mCurView)return!1;let t=RU.mCurView.mDevice;if(!t)return!1;let e=t.mGsManager;return!!e&&e.isInPaperSpace()}static changeActiveView(t){let e=t.mGraphicSystem;!e||e.setActiveView(t)}}RU.mMessageSubscription=null,RU.mCurView=null,RU.mZcBroadcast=MF.instance(),new $F;class FU{constructor(){this.exeCmd=function(){return Nk(this,arguments,(function*(){return n7.instance().mCmdExecutionStatus?(SF.log("About命令开始执行"),n7.instance().mModalOpened=!0,yield Vk(ZF()),n7.instance().mModalOpened=!1,SF.log("About命令执行结束"),yield Vk(!0)):yield Vk(!0)}))},this.mExeCmd=this.exeCmd()}execute(){var t=this;return jR((function*(){let e=yield t.mExeCmd.next();return!(!e.done&&!e.value)}))()}cmdString(){return"about"}resetCmd(){this.mExeCmd=this.exeCmd()}}var BU,VU=((BU=VU||(VU={}))[BU.kIntersectUnknown=0]="kIntersectUnknown",BU[BU.kIntersectNot=1]="kIntersectNot",BU[BU.kIntersectOpIn=2]="kIntersectOpIn",BU[BU.kIntersectOpOut=3]="kIntersectOpOut",BU[BU.kIntersectOk=4]="kIntersectOk",VU);class NU{constructor(t,e){this.mMin=new QR,this.mMax=new QR,this.mMin=t||new QR,this.mMax=e||new QR,this.mMin.set(1e8,1e8,1e8),this.mMax.set(-1e8,-1e8,-1e8)}reset(){this.mMin.set(1e8,1e8,1e8),this.mMax.set(-1e8,-1e8,-1e8)}minPoint(){return this.mMin}maxPoint(){return this.mMax}set(t,e){this.mMin.copy(t),this.mMax.copy(e)}comparingSet(t,e){t.mX>e.mX?(this.mMax.mX=t.mX,this.mMin.mX=e.mX):(this.mMin.mX=t.mX,this.mMax.mX=e.mX),t.mY>e.mY?(this.mMax.mY=t.mY,this.mMin.mY=e.mY):(this.mMin.mY=t.mY,this.mMax.mY=e.mY),t.mZ>e.mZ?(this.mMax.mZ=t.mZ,this.mMin.mZ=e.mZ):(this.mMin.mZ=t.mZ,this.mMax.mZ=e.mZ)}inflate(t){this.mMin.mX-=t,this.mMax.mX+=t,this.mMin.mY-=t,this.mMax.mY+=t,this.mMin.mZ-=t,this.mMax.mZ+=t}addPoint(t){this.isValidExtents()?(this.mMax.mX=Math.max(t.mX,this.mMax.mX),this.mMax.mY=Math.max(t.mY,this.mMax.mY),this.mMax.mZ=Math.max(t.mZ,this.mMax.mZ),this.mMin.mX=Math.min(t.mX,this.mMin.mX),this.mMin.mY=Math.min(t.mY,this.mMin.mY),this.mMin.mZ=Math.min(t.mZ,this.mMin.mZ)):(this.mMax.copy(t),this.mMin.copy(t))}addExt(t){t.isValidExtents()&&(this.addPoint(t.minPoint()),this.addPoint(t.maxPoint()))}isValidExtents(){return this.mMax.mX>=this.mMin.mX&&this.mMax.mY>=this.mMin.mY&&this.mMax.mZ>=this.mMin.mZ}expandBy(t){let e=this.mMin,n=this.mMax;e.addVector(t),n.addVector(t),this.addPoint(new QR(e.mX,e.mY,e.mZ)),this.addPoint(new QR(n.mX,n.mY,n.mZ))}transformBy(t){this.mMax.mulMatrix(t),this.mMin.mulMatrix(t),this.recalcExtends()}copy(t){this.mMax.copy(t.mMax),this.mMin.copy(t.mMin),this.recalcExtends()}recalcExtends(){if(this.mMax.mX<this.mMin.mX){let t=this.mMax.mX;this.mMax.mX=this.mMin.mX,this.mMin.mX=t}if(this.mMax.mY<this.mMin.mY){let t=this.mMax.mY;this.mMax.mY=this.mMin.mY,this.mMin.mY=t}if(this.mMax.mZ<this.mMin.mZ){let t=this.mMax.mZ;this.mMax.mZ=this.mMin.mZ,this.mMin.mZ=t}}contains(t){return!0}isDisjoint(t){return!0}intersectWith(t,e=new NU){return e?(e.mMin.mX=Math.max(this.mMin.mX,t.mMin.mX),e.mMin.mY=Math.max(this.mMin.mY,t.mMin.mY),e.mMin.mZ=Math.max(this.mMin.mZ,t.mMin.mZ),e.mMax.mX=Math.min(this.mMax.mX,t.mMax.mX),e.mMax.mY=Math.min(this.mMax.mY,t.mMax.mY),e.mMax.mZ=Math.min(this.mMax.mZ,t.mMax.mZ),e.isValidExtents()?VU.kIntersectOk:VU.kIntersectUnknown):this.isDisjoint(t)?VU.kIntersectNot:this.contains(t)?VU.kIntersectOpIn:t.contains(this)?VU.kIntersectOpOut:VU.kIntersectOk}center(){const t=new QR;t.copy(this.mMin);let e=this.mMax.sub2vec(this.mMin);return e.mul(.5),t.addVector(e),t}getExtentsVertexes(t){return!(!this.isValidExtents()||!t||8!==t.length||(t[0]=new QR,t[0].copy(this.mMin),t[1]=new QR,t[1].copy(this.mMin),t[2]=new QR,t[2].copy(this.mMin),t[3]=new QR,t[3].copy(this.mMin),t[4]=new QR,t[4].copy(this.mMax),t[5]=new QR,t[5].copy(this.mMax),t[6]=new QR,t[6].copy(this.mMax),t[7]=new QR,t[7].copy(this.mMax),t[1].mZ=t[4].mZ,t[2].mY=t[4].mY,t[2].mZ=t[4].mZ,t[3].mY=t[4].mY,t[5].mZ=t[0].mZ,t[6].mY=t[0].mY,t[6].mZ=t[0].mZ,t[7].mY=t[0].mY,0))}toString(){return"{ mMin: "+this.mMin.toString()+", mMax: "+this.mMax.toString()+" }"}}var HU,GU=((HU=GU||(GU={}))[HU.DrawRevCloud=0]="DrawRevCloud",HU[HU.FreeDrawingBranch=1]="FreeDrawingBranch",HU[HU.RectangleFirstPtBranch=2]="RectangleFirstPtBranch",HU[HU.RectangleSecondPtBranch=3]="RectangleSecondPtBranch",HU[HU.SetArcLengthBranch=4]="SetArcLengthBranch",GU);class ZU{constructor(){this.exeCmd=function*(){let t=new UU;jU.instance().mRevCloudJig=t,HZ._instance.setCurJig(t);let e=XF.instance().getItem("revCloudRadius");e&&jU.instance().setRadius(e),ZU.resetFlags();let n=n7.instance().mCmdExecutionStatus,i=qF.mLanguagePackage.revCloud1+":";if(!n)return!0;jU.instance().reset(),n7.instance().mZcBroadcast.broardcast(_F.History,{label:i}),SF.log("RevCloud命令开始执行");let r=jF.instance().getCurView();if(null===r)return!0;jU.instance().mCurView=r,t.mCurView=r,jU.instance().mPtArray=[];let a,o=jF.instance().getKeyboardFlags(),s=!1,l="",c=XF.instance().getItem("revCloudRadius");c&&jU.instance().setRadius(c);let h=n7.instance().mCommandBranch;for(void 0!==h.mainBranch&&(t.mBranchStatus=Number(h.mainBranch));;){switch(jU.mRadius=zV.revcloudRadius/r.unitPixelHeight,c=jU.mRadius,t.mBranchStatus){case GU.DrawRevCloud:if(yield!1,n7.instance().mkEscapeCaret){s=!0;break}a=HZ.acquirePoint(),l=t.acquireString(),a?(t.mStartPoint=new QR,t.mStartPoint.copy(a),jU.instance().mStartPt.copy(a),t.mBranchStatus=GU.FreeDrawingBranch):"A"===l.toUpperCase()?(t.mBranchStatus=GU.SetArcLengthBranch,n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.revCloud1+l})):"R"===l.toUpperCase()?t.mBranchStatus=GU.RectangleFirstPtBranch:"F"===l.toUpperCase()?(t.mBranchStatus=GU.DrawRevCloud,n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.revCloud1+l})):n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.errMsgCommon+l});break;case GU.FreeDrawingBranch:for(n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.revCloud2});;){if(yield!1,n7.instance().mkEscapeCaret){s=!0;break}if(a=HZ.acquirePoint(),a&&!jU.mClosed&&(jU.instance().autoClosedCloud(a),jU.mClosed)){s=!0;break}if(o=jF.instance().getKeyboardFlags(),o.enter||o.esc){s=!0;break}}break;case GU.RectangleFirstPtBranch:if(n7.instance().mZcBroadcast.broardcast(_F.History,{label:i,history:""+i+l}),yield!1,n7.instance().mkEscapeCaret){s=!0;break}l=t.acquireString(),a=HZ.acquirePoint(),a?(t.mRectFirstPt=new QR,t.mRectFirstPt.copy(a),t.mBranchStatus=GU.RectangleSecondPtBranch):"A"===l.toUpperCase()?(t.mBranchStatus=GU.SetArcLengthBranch,n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.revCloud1+l})):"F"===l.toUpperCase()&&(t.mBranchStatus=GU.DrawRevCloud,n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.revCloud1+l}));break;case GU.RectangleSecondPtBranch:if(n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.oppositeCorner+":"}),yield!1,n7.instance().mkEscapeCaret){s=!0;break}if(a=HZ.acquirePoint(),a&&t.mRectFirstPt){if(t.mRectSecondPt=new QR,t.mRectSecondPt=a,RV.zcutDistance(t.mRectFirstPt,a)<.8*jU.mRadius){n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.revCloudUnable}),t.mRectSecondPt=void 0;continue}if(n7.instance().mDrawCommentBubble){if(a.isEqual(t.mRectFirstPt)){t.mRectSecondPt=void 0;continue}if(n7.instance().isContinuousDraw()){let e=n7.instance().mGs;if(null!==e&&t.mRectFirstPt&&t.mRectSecondPt){let n=jU.instance().createByRectangle([t.mRectFirstPt,a]);e.createRevcloudBubble(cF(),t.mRectFirstPt,t.mRectSecondPt,n,0)}t.mBranchStatus=GU.RectangleFirstPtBranch,t.mRectFirstPt=void 0,t.mRectSecondPt=void 0,jU.instance().clear();break}}s=!0}if(o=jF.instance().getKeyboardFlags(),o.enter||o.esc){s=!0;break}break;case GU.SetArcLengthBranch:if(n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.revCloud3+"<"+c+">:"}),yield!1,n7.instance().mkEscapeCaret){s=!0;break}l=t.acquireString(),(""===l||!isNaN(Number(l))&&Number(l)>0)&&(""!==l&&(c=Number(l).toFixed(4),XF.instance().setItem("revCloudRadius",c),jU.instance().setRadius(Number(l))),n7.instance().mZcBroadcast.broardcast(_F.History,{label:i}),n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.revCloud3+l}),t.mBranchStatus=GU.DrawRevCloud)}if(o=jF.instance().getKeyboardFlags(),o.esc||s)break}if(!o.esc&&s){let e=n7.instance();if(e.mDrawCommentBubble&&!e.isContinuousDraw()){let n=e.mGs;null!==n&&t.mRectFirstPt&&t.mRectSecondPt&&!t.mRectFirstPt.isEqual(t.mRectSecondPt)&&n.createRevcloudBubble(cF(),t.mRectFirstPt,t.mRectSecondPt,t.mPtArray,0)}else jU.instance().saveRevCloud(),n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.revCloud4})}return ZU.resetFlags(),jU.instance().reset(),SF.log("RevCloud命令执行结束"),!0},this.mExeCmd=this.exeCmd()}execute(){return!!this.mExeCmd.next().done}cmdString(){return"revcloud"}static resetFlags(){jU.mClosed=!1,jF.instance().setPointFlag(!1),jF.instance().clearInputContent(),jF.instance().setCommandFlags({enter:null,esc:null})}resetCmd(){this.mExeCmd=this.exeCmd()}}class UU extends HZ{constructor(){super(...arguments),this.mPtArray=[],this.mBranchStatus=GU.DrawRevCloud,this.mTooSmall=!1,this.mCanJigWithoutEdit=!0}doJig(){if(null===this.mCurView||null===this.mCurView.mGraphicSystem||jU.mClosed)return;let t=this.mCurView.getGsWorldDraw();HZ.mZcGsPrimitiveCollector.clearCollector(),t.setCurPrimitveCollectorData(EB.kZcDrShorterm,HZ.mZcGsPrimitiveCollector);let e=HZ.mZcGsPrimitiveCollector.getBufferPoint(),n=this.mCurView.mGraphicSystem.mCurCursorPT,i=new QR(n.mX,n.mY,0);i=this.mCurView.scsPt2WcsPt(i);let r=new HB(RB.RESTATTR);if(HZ.mZcGsPrimitiveCollector.mPrimitives.push(r),void 0!==this.mRectFirstPt){n7.instance().mDrawCommentBubble&&HZ.setBubbleColor();let t=[this.mRectFirstPt,i];if(jU.instance().createByRectangle(t),this.mTooSmall){if(this.mRectFirstPt.isEqual(i))return;let t={center:RV.zdsMidPt(this.mRectFirstPt,i),radius:this.acquireDist(this.mRectFirstPt,i)/2,normal:new qR(0,0,1),thickness:0};this.generateCircle(t,this.mCurView.mFieldHeight,1e3)}else if(this.mPtArray.length>1&&!this.mPtArray[0].isEqual(this.mPtArray[this.mPtArray.length-1])){this.mPtArray.push(this.mPtArray[0]);for(let t=0;t<this.mPtArray.length;t++){let n=this.mPtArray[t];e.push(n.mX,n.mY,n.mZ)}}}else if(void 0!==this.mStartPoint&&!jU.mClosed){if(jU.instance().createRevcloud(i),jU.instance().autoClosedCloud(),this.mPtArray.length>0)for(let t=0;t<this.mPtArray.length;t++){let n=this.mPtArray[t];e.push(n.mX,n.mY,n.mZ)}else{let t=new QR,n=this.mCurView.mGraphicSystem.mMouseDownPt,i=new QR(n.mX,n.mY,0);i=this.mCurView.scsPt2WcsPt(i),t.copy(i),e[0]=t.mX,e[1]=t.mY,e[2]=t.mZ}e[e.length]=i.mX,e[e.length]=i.mY,e[e.length]=i.mZ}!this.mTooSmall&&e.length>0&&HZ.mZcGsPrimitiveCollector.addPrimitive(RB.RAWPOLYLINE3D,e.length)}addVertex(t){this.mPtArray=t}}var WU,YU=((WU=YU||(YU={}))[WU.RIGHT_HANDED=1]="RIGHT_HANDED",WU[WU.LEFT_HANDED=-1]="LEFT_HANDED",YU);class jU{constructor(){this.mCurView=null,this.mSegmentsNumber=12,this.centerPts=[],this.mStartPt=new QR,this.mStartPtArr=[],this.mEndPt=new QR,this.mEndPtArr=[],this.mStartAngle=0,this.mPtArray=[],this.mPreHandedness=YU.RIGHT_HANDED,this.mCurHandedness=YU.RIGHT_HANDED,this.mLastBulge=0,this.mBulgeChanged=!1,this.mTurnTrack=!1,this.mHandednessWeight=0,this.mPrevChordAngle=0,this.mNextChordAngle=0,this.mCurrentMinArcLen=2*zV.revcloudRadius}static instance(){return jU._instance}center(t,e){let n=this.zdsMidPt(e,t);this.mStartAngle=(Math.atan2(t.mY-e.mY,t.mX-e.mX)/Math.PI*180+360)%360,this.centerPts.push(n)}modifiedEndPoint(t){let e=this.mStartPt,n=RV.zcutAngle(e,t);return RV.zcutPolar(e,n,2*jU.mRadius)}computeArcMiddlePoint(t,e,n){let i,r,a,o,s;i=RV.zcutAngle(t=this.mStartPt,e),r=RV.zcutDistance(t,e),a=RV.zcutPolar(t,i,r/2),o=1==this.mCurHandedness?i-.5*Math.PI:i+.5*Math.PI,s=.25*r}calBulge(t,e,n){let i;if(this.zdsDylColin(t,e,n))return this.mBulgeChanged=!1,void(this.mLastBulge=0);i=this.zdsMidPt(t,e);let r=new qR,a=new qR,o=new qR;r.mX=e.mX-t.mX,r.mY=e.mY-t.mY,r.mZ=e.mZ-t.mZ,a.mX=n.mX-i.mX,a.mY=n.mY-i.mY,a.mZ=n.mZ-i.mZ,o=r.crossProduct(a);let s=RV.zcutDistance(i,n)/RV.zcutDistance(t,i);o.mZ>0&&(s=-s),this.mBulgeChanged=this.mLastBulge>0&&s<0||this.mLastBulge<0&&s>0,this.mLastBulge=s}zdsDylColin(t,e,n){let i,r,a;return i=RV.zcutDistance(t,e),r=RV.zcutDistance(t,n),a=RV.zcutDistance(e,n),Math.abs(a-(i+r))<1e-6||Math.abs(Math.abs(i-r)-a)<1e-6?1:0}zdsMidPt(t,e){let n=new QR;return n.mX=(t.mX+e.mX)/2,n.mY=(t.mY+e.mY)/2,n.mZ=(t.mZ+e.mZ)/2,n}create(t,e){let n=void 0===t?jU.mRadius:t;if(0===this.centerPts.length||null===this.mCurView)return;const i=this.centerPts[this.centerPts.length-1];let r=e?360:180/this.mSegmentsNumber,a=this.mStartAngle+180,o=new QR(0,0,0),s=[];for(let t=0;t<=this.mSegmentsNumber;t++){o.mX=Math.cos(Math.PI/180*a)*n,o.mY=Math.sin(Math.PI/180*a)*n;let e=new QR(i.mX+o.mX,i.mY+o.mY,i.mZ+o.mZ);this.mPtArray.push(e),(0===t||t===this.mSegmentsNumber/2||t===this.mSegmentsNumber)&&s.push(e),a=YU.RIGHT_HANDED?a-r:a+r}this.calBulge(s[0],s[2],s[1]),this.mStartPt.copy(this.mEndPt),null!==this.mCurView&&this.mRevCloudJig&&this.mRevCloudJig.addVertex(this.mPtArray)}appendNextArc(t){if(null===this.mCurView)return;let e=void 0===t?jU.mRadius:t;const n=this.centerPts[this.centerPts.length-1];let i=180/this.mSegmentsNumber,r=0,a=new QR(0,0,0),o=[];r=this.mStartAngle+180;for(let t=0;t<=this.mSegmentsNumber;t++){a.mX=Math.cos(Math.PI/180*r)*e,a.mY=Math.sin(Math.PI/180*r)*e;let s=new QR(n.mX+a.mX,n.mY+a.mY,n.mZ+a.mZ);(0===t||t===this.mSegmentsNumber/2||t===this.mSegmentsNumber)&&o.push(s),this.mPtArray.push(s),r=this.mCurHandedness===YU.RIGHT_HANDED?r-i:r+i}this.calBulge(o[0],o[2],o[1]),this.mStartPt.copy(this.mEndPt),null!==this.mCurView&&this.mRevCloudJig&&this.mRevCloudJig.addVertex(this.mPtArray)}regen(){this.mPtArray=[];let t=0;this.centerPts=[];for(let e=0;e<this.mStartPtArr.length;e++){const n=this.mStartPtArr[e],i=this.mEndPtArr[e];this.mEndPt.copy(i),t=Math.floor(RV.zcutDistance(n,i)/2),this.center(i,n);const r=this.centerPts[e];let a=180/this.mSegmentsNumber,o=0,s=new QR(0,0,0);o=this.mStartAngle+180;for(let e=0;e<=this.mSegmentsNumber;e++){s.mX=Math.cos(Math.PI/180*o)*t,s.mY=Math.sin(Math.PI/180*o)*t;let e=new QR(r.mX+s.mX,r.mY+s.mY,r.mZ+s.mZ);this.mPtArray.push(e),o=this.mCurHandedness===YU.RIGHT_HANDED?o-a:o+a}this.mStartPt.copy(this.mEndPt),this.mRevCloudJig&&this.mRevCloudJig.addVertex(this.mPtArray)}}createRevcloud(t,e){this.mCurView=jF.instance().getCurView();let n=RV.zcutDistance(t,this.mStartPt);if(!jU.mClosed&&n>=jU.mRadius){void 0===e?this.mEndPt=this.modifiedEndPoint(t):(2*e<this.mCurrentMinArcLen&&(this.mCurrentMinArcLen=2*e),this.mEndPt=t);let n=new QR,i=new QR;n.copy(this.mStartPt),i.copy(this.mEndPt),this.mStartPtArr.push(n),this.mEndPtArr.push(i),this.center(this.mEndPt,this.mStartPt),this.computeCurrentHandedness(),this.mPtArray.length>this.mSegmentsNumber+1?this.mTurnTrack?this.regen():this.appendNextArc(e):(this.mPrevChordAngle=RV.zcutAngle(this.mStartPt,this.mEndPt),this.create(e))}}autoClosedCloud(t){if(null===this.mCurView||null===this.mCurView.mGraphicSystem||(jU.mClosed=!1,this.mPtArray.length<=27))return;let e=t||this.mPtArray[this.mPtArray.length-1],n=this.mPtArray[0];if(RV.zcutDistance(e,n)<2*jU.mRadius){if(this.mStartPt=e,this.mEndPt=n,this.mStartPtArr.push(e),this.mEndPtArr.push(n),this.center(n,e),this.computeCurrentHandedness(),this.mTurnTrack&&this.mPreHandedness===this.mCurHandedness&&(this.mCurHandedness=this.mCurHandedness===YU.RIGHT_HANDED?YU.LEFT_HANDED:YU.RIGHT_HANDED,this.regen()),e=this.mPtArray[this.mPtArray.length-1],n=this.mPtArray[0],!e.isEqual(n)){this.center(n,e);let t=RV.zcutDistance(n,e)/2;this.appendNextArc(t)}SF.log("autoClosedCloud"),jU.mClosed=!0,n7.instance().mAutoExecuteCmd=!0}}createByRectangle(t,e){if("createPrimitive"===e&&(this.mRevCloudJig||(this.mRevCloudJig=new UU,this.mRevCloudJig.mRectFirstPt=new QR,this.mRevCloudJig.mRectSecondPt=new QR,this.mRevCloudJig.mRectFirstPt.copy(t[0]),this.mRevCloudJig.mRectSecondPt.copy(t[1]))),!this.mRevCloudJig)return[];this.mCurView=jF.instance().getCurView(),this.reset(),this.mCurHandedness=YU.RIGHT_HANDED;let n=new NU;n.comparingSet(t[0],t[1]);let i=n.mMin,r=n.mMax,a=RV.zcutDistance(i,r);if(a<.8*jU.mRadius)return[];if(.8*jU.mRadius<a&&a<jU.mMaxRadius)return this.mRevCloudJig.mTooSmall=!0,[];this.mRevCloudJig.mTooSmall=!1;let o=!1,s=!1;Math.abs(i.mX-r.mX)<=2*jU.mRadius?o=!0:Math.abs(i.mY-r.mY)<=2*jU.mRadius&&(s=!0);let l=new QR(i.mX,r.mY,0),c=new QR(r.mX,i.mY,0),h=Math.abs(i.mY-l.mY),d=Math.abs(l.mX-r.mX),u=Math.floor(h/(2*jU.mRadius)),m=Math.floor(d/(2*jU.mRadius));if(0===u&&0===m)return this.mRevCloudJig.mTooSmall=!0,[];let p=!1,g=new QR;if(!s){for(let t=0;t<u;t++){p=!1;let e=new QR(i.mX,0,0);e.mY=i.mY+2*jU.mRadius*t;let n=new QR(i.mX,0,0);if(e.mY+2*jU.mRadius>l.mY?(n.mY=l.mY,p=!0):n.mY=e.mY+2*jU.mRadius,this.mStartPtArr.push(e),this.mEndPtArr.push(n),g.copy(n),p)break}g.isEqual(l)||(this.mStartPtArr.push(g),this.mEndPtArr.push(l))}let f=new QR;if(!o){for(let t=0;t<m;t++){p=!1;let e=new QR(0,l.mY,0);e.mX=l.mX+2*jU.mRadius*t;let n=new QR(0,l.mY,0);if(e.mX+2*jU.mRadius>r.mX?(n.mX=r.mX,p=!0):n.mX=e.mX+2*jU.mRadius,this.mStartPtArr.push(e),this.mEndPtArr.push(n),f.copy(n),p)break}f.isEqual(r)||(this.mStartPtArr.push(f),this.mEndPtArr.push(r))}let b=new QR;if(!s){for(let t=0;t<u;t++){p=!1;let e=new QR(r.mX,0,0);e.mY=r.mY-2*jU.mRadius*t;let n=new QR(r.mX,0,0);if(e.mY-2*jU.mRadius<c.mY?(n.mY=c.mY,p=!0):n.mY=e.mY-2*jU.mRadius,this.mStartPtArr.push(e),this.mEndPtArr.push(n),b.copy(n),p)break}b.isEqual(c)||(this.mStartPtArr.push(b),this.mEndPtArr.push(c))}let y=new QR;if(!o){for(let t=0;t<m;t++){p=!1;let e=new QR(0,c.mY,0);e.mX=c.mX-2*jU.mRadius*t;let n=new QR(0,c.mY,0);if(e.mX-2*jU.mRadius<i.mX?(n.mX=i.mX,p=!0):n.mX=e.mX-2*jU.mRadius,this.mStartPtArr.push(e),this.mEndPtArr.push(n),y.copy(n),p)break}y.isEqual(i)||(this.mStartPtArr.push(y),this.mEndPtArr.push(i))}if(this.regen(),this.mRevCloudJig&&this.mRevCloudJig.mRectSecondPt&&(s||o)){let t=this.mPtArray[0];this.mPtArray[this.mPtArray.length-1].isEqual(t)||(this.mPtArray.push(t),this.mRevCloudJig&&this.mRevCloudJig.addVertex(this.mPtArray),jU.mClosed=!0)}return this.mPtArray}computeCurrentHandedness(){if(this.mPreHandedness=this.mCurHandedness,this.mNextChordAngle=RV.zcutAngle(this.mStartPt,this.mEndPt),this.mPrevChordAngle>=0){let t=this.mNextChordAngle-this.mPrevChordAngle;t>Math.PI?t-=2*Math.PI:t<-Math.PI&&(t+=2*Math.PI),this.mHandednessWeight+=t*RV.zcutDistance(this.mStartPt,this.mEndPt),this.mHandednessWeight>.75*this.mCurrentMinArcLen?this.mCurHandedness===YU.LEFT_HANDED&&(this.mCurHandedness=YU.RIGHT_HANDED):this.mHandednessWeight<.75*-this.mCurrentMinArcLen&&this.mCurHandedness===YU.RIGHT_HANDED&&(this.mCurHandedness=YU.LEFT_HANDED),this.mTurnTrack=!(this.mCurHandedness===this.mPreHandedness&&!this.mBulgeChanged)}this.mPrevChordAngle=this.mNextChordAngle}reset(){this.centerPts=[],this.mStartPt=new QR,this.mPtArray=[],this.mStartPtArr=[],this.mEndPtArr=[],this.mCurHandedness=YU.LEFT_HANDED,this.mTurnTrack=!1,this.mHandednessWeight=0}setRadius(t){!isNaN(t)&&t>0&&(jU.mRadius=Number(t),this.mCurrentMinArcLen=2*Number(t))}saveRevCloud(){if(SF.log("保存云线数据"),null!==this.mCurView&&null!==this.mCurView.mGraphicSystem&&this.mRevCloudJig){let t=[];if(0===this.mPtArray.length&&this.mRevCloudJig.mRectFirstPt&&this.mRevCloudJig.mRectSecondPt&&(this.mPtArray=this.revCloudTooSmall(this.mRevCloudJig.mRectFirstPt,this.mRevCloudJig.mRectSecondPt)),this.mPtArray.length>2){SF.log("云线点数:",this.mPtArray.length);for(let e=0;e<this.mPtArray.length;e++){let n=this.mPtArray[e];this.mCurView.unitPixelHeight<3&&(n.mX=Number(n.mX.toFixed(5)),n.mY=Number(n.mY.toFixed(5)),n.mZ=Number(n.mZ.toFixed(5))),t.push(n.mX,n.mY,n.mZ)}this.mRevCloudJig.mParams={entityType:_B.kZcDbPolyline,polyline:{curve:{entity:{color:yB.kByLayer,layer:String(this.mCurView.mGraphicSystem.mDimensionLayerHandle),transparency:90,lineweight:pB.kLnWtByLayer}},points:t,convexity:[0],isClosed:0}}}}}revCloudTooSmall(t,e){if(null===this.mCurView&&(this.mCurView=jF.instance().getCurView()),null===this.mCurView)return[];let n={center:RV.zdsMidPt(t,e),radius:HZ._instance.acquireDist(t,e)/2,normal:new qR(0,0,1),thickness:0};HZ._instance.generateCircle(n,this.mCurView.mFieldHeight,1e3);let i=HZ.mZcGsPrimitiveCollector.mPtBuffer,r=[];for(let t=0;t<i.length;t+=3)r.push(new QR(i[t],i[t+1],i[t+2]));return HZ.mZcGsPrimitiveCollector.clearCollector(),r}clear(){this.mPtArray=[],this.mStartPtArr=[],this.mEndPtArr=[],this.centerPts=[]}}jU._instance=new jU,jU.mRadius=zV.revcloudRadius,jU.mMaxRadius=2.5*jU.mRadius,jU.mClosed=!1;class XU extends HZ{constructor(){super(...arguments),this.mArc={center:new QR,radius:0,normal:new qR,thickness:0,startVec:new qR,sweepAngle:0},this.mBranchStatus=$U.bStart,this.mArc3pPoints=new Array(3),this.mArcEndPt=new QR,this.mStartAngle=0,this.mEndAngle=0,this.mSweepAngle=0,this.mChord=0,this.mCurHandedness=YU.LEFT_HANDED,this.mArcBulge=0,this.mCentralAngQuarter=0,this.mCanConstuctArc=!0}doJig(t){if(this.mCenter||this.mArc3pPoints[0]){if(null===this.mCurView||null===this.mCurView.mGraphicSystem)return;let e=this.mCurView.getGsWorldDraw();HZ.mZcGsPrimitiveCollector.clearCollector(),e.setCurPrimitveCollectorData(EB.kZcDrShorterm,HZ.mZcGsPrimitiveCollector);let n=this.mCurView.mGraphicSystem.mCurCursorPT,i=new QR(n.mX,n.mY,0);i=this.mCurView.scsPt2WcsPt(i);let r=HZ.mZcGsPrimitiveCollector.getBufferPoint(),a=new HB(RB.RESTATTR);HZ.mZcGsPrimitiveCollector.mPrimitives.push(a);let o=new UB(RB.COLORRGBA32);switch(o.mColor=zV.jigLeader,HZ.mZcGsPrimitiveCollector.mPrimitives.push(o),this.mArc.normal=new qR(0,0,1),this.mArc.thickness=0,this.mBranchStatus){case $U.bStartCenter:case $U.bStartSec:case $U.bStartSecondEnd:this.mArcStartPt&&(this.mArcEndPt.copy(i),r.push(this.mArcStartPt.mX,this.mArcStartPt.mY,this.mArcStartPt.mZ),r.push(this.mArcEndPt.mX,this.mArcEndPt.mY,this.mArcEndPt.mZ),HZ.mZcGsPrimitiveCollector.addPrimitive(RB.RAWPOLYLINE3D,6));break;case $U.bCenterStart:this.mCenter&&(this.mCenter.isEqual(i)||(r.push(this.mCenter.mX,this.mCenter.mY,this.mCenter.mZ),r.push(i.mX,i.mY,i.mZ),HZ.mZcGsPrimitiveCollector.addPrimitive(RB.RAWPOLYLINE3D,6)));break;case $U.bStartEnd:if(this.mArc3pPoints[0]&&this.mArc3pPoints[1]){if(this.mArcEndPt.copy(this.mArc3pPoints[2]?this.mArc3pPoints[2]:i),this.mCanConstuctArc=RV.constuctArc(this.mArc3pPoints[0],this.mArc3pPoints[1],this.mArcEndPt),!this.mCanConstuctArc)break;r.push(this.mArc3pPoints[0].mX,this.mArc3pPoints[0].mY,this.mArc3pPoints[0].mZ),r.push(this.mArc3pPoints[1].mX,this.mArc3pPoints[1].mY,this.mArc3pPoints[1].mZ),r.push(this.mArcEndPt.mX,this.mArcEndPt.mY,this.mArcEndPt.mZ),HZ.mZcGsPrimitiveCollector.addPrimitive(RB.RAWPOLYLINE3D,6),HZ.mZcGsPrimitiveCollector.mPrimitives.push(a);let t=RV.calculateCenterRedius([this.mArc3pPoints[0],this.mArc3pPoints[1],this.mArcEndPt]);this.mArc.center=t.center,this.mArc.radius=t.radius;let e=this.acquireAngle(this.mArc.center,this.mArc3pPoints[0]),n=this.acquireAngle(this.mArc.center,this.mArc3pPoints[1]),o=this.acquireAngle(this.mArc.center,this.mArcEndPt),s=!!(((e<n?1:0)+(e<o?1:0)+(n<o?1:0))%2);this.mCentralAngQuarter=o-e,s&&this.mCentralAngQuarter<0?this.mCentralAngQuarter+=XR.ZWGR_TWOPI:!s&&this.mCentralAngQuarter>0&&(this.mCentralAngQuarter-=XR.ZWGR_TWOPI),this.mCentralAngQuarter=this.mCentralAngQuarter/4,this.mArcBulge=Math.tan(this.mCentralAngQuarter),this.saveArc(7)}break;case $U.bCenterStartEnd:case $U.bStartCenterEnd:case $U.bStartEndCenter:case $U.bCenterStartAngle:if(this.mBranchStatus===$U.bStartEndCenter&&(this.mCenter=new QR,this.mCenter.copy(i)),this.mCenter&&this.mArcStartPt){if(this.mBranchStatus!==$U.bStartEndCenter&&!t&&this.mArcEndPt.copy(i),r.push(this.mCenter.mX,this.mCenter.mY,this.mCenter.mZ),r.push(this.mArcEndPt.mX,this.mArcEndPt.mY,this.mArcEndPt.mZ),HZ.mZcGsPrimitiveCollector.addPrimitive(RB.RAWPOLYLINE3D,6),HZ.mZcGsPrimitiveCollector.mPrimitives.push(a),this.mArc.radius=RV.zcutDistance(this.mCenter,this.mArcStartPt),this.mArc.center.copy(this.mCenter),this.mStartAngle=this.acquireAngle(this.mCenter,this.mArcStartPt),this.mEndAngle=this.acquireAngle(this.mCenter,this.mArcEndPt),XR.isEqual(this.mStartAngle,this.mEndAngle)||XR.isZero(this.mArc.radius)){this.mCanConstuctArc=!1;break}if(this.mCentralAngQuarter=this.mEndAngle-this.mStartAngle,this.mCentralAngQuarter<0&&(this.mCentralAngQuarter+=XR.ZWGR_TWOPI),this.mCentralAngQuarter=this.mCentralAngQuarter/4,this.mArcBulge=Math.tan(this.mCentralAngQuarter),XR.isZero(this.mArcBulge)){this.mCanConstuctArc=!1;break}if(this.mCanConstuctArc=!0,this.saveArc(7),this.mBranchStatus!==$U.bStartEndCenter){let t=RV.zcutDistance(this.mCenter,this.mArcEndPt),e=this.mArcEndPt.sub2vec(this.mCenter);XR.isZero(t)||(this.mArcEndPt.mX=this.mCenter.mX+e.mX*(this.mArc.radius/t),this.mArcEndPt.mY=this.mCenter.mY+e.mY*(this.mArc.radius/t))}}}}}saveArc(t){if(null===this.mCurView||void 0===this.mArc)return;if(0==(1&t)&&this.mArcStartPt&&this.mArcEndPt){let t=.5*(1/this.mArcBulge-this.mArcBulge);this.mArc.center.mX=.5*(this.mArcStartPt.mX+this.mArcEndPt.mX-(this.mArcEndPt.mY-this.mArcStartPt.mY)*t),this.mArc.center.mX=.5*(this.mArcStartPt.mY+this.mArcEndPt.mY+(this.mArcEndPt.mX-this.mArcStartPt.mX)*t),this.mArc.center.mZ=this.mArcStartPt.mZ}let e=0,n=this.acquireAngle(this.mArc.center,this.mArcEndPt)+(this.mArcBulge>0?XR.ZWGR_HALFPI:-XR.ZWGR_HALFPI);0==(4&t)&&(this.mCentralAngQuarter=Math.atan(this.mArcBulge)),this.mArcBulge>0?(e=n-XR.ZWGR_HALFPI,this.mEndAngle=RV.fixAngle(e),this.mStartAngle=RV.fixAngle(e-4*this.mCentralAngQuarter)):(e=n+XR.ZWGR_HALFPI,this.mStartAngle=RV.fixAngle(e),this.mEndAngle=RV.fixAngle(e-4*this.mCentralAngQuarter)),0==(2&t)&&this.mArcStartPt&&(this.mArc.radius=RV.zcutDistance(this.mArc.center,this.mArcStartPt)),this.mArc.startVec.mX=Math.cos(this.mStartAngle),this.mArc.startVec.mY=Math.sin(this.mStartAngle),this.mArc.startVec.normalize(),this.mArc.sweepAngle=this.mEndAngle-this.mStartAngle,this.mArc.sweepAngle<0&&(this.mArc.sweepAngle+=XR.ZWGR_TWOPI),Math.abs(this.mArc.sweepAngle)>XR.ZWGR_TWOPI&&(this.mArc.sweepAngle=XR.ZWGR_TWOPI),this.generateArc(this.mArc,this.mCurView.mFieldHeight,1e3)}}var qU,$U=((qU=$U||($U={}))[qU.bStart=0]="bStart",qU[qU.bCenter=1]="bCenter",qU[qU.bStartSec=2]="bStartSec",qU[qU.bStartSecondEnd=3]="bStartSecondEnd",qU[qU.bCenterStartEnd=4]="bCenterStartEnd",qU[qU.bCenterStartAngle=5]="bCenterStartAngle",qU[qU.bCenterStartLength=6]="bCenterStartLength",qU[qU.bStartCenterEnd=7]="bStartCenterEnd",qU[qU.bStartCenter=8]="bStartCenter",qU[qU.bCenterStart=9]="bCenterStart",qU[qU.bStartEnd=10]="bStartEnd",qU[qU.bStartEndCenter=11]="bStartEndCenter",qU[qU.bStartEndAngle=12]="bStartEndAngle",qU[qU.bStartEndRadius=13]="bStartEndRadius",qU[qU.bStartEndDirection=14]="bStartEndDirection",qU[qU.bStartDirEnd=15]="bStartDirEnd",$U);class KU{constructor(){this.exeCmd=function*(){let t=n7.instance().mCmdExecutionStatus;if(!t)return!0;SF.log("Arc命令开始执行"),KU.resetFlags();let e=jF.instance().getCurView(),n=new XU;HZ._instance.setCurJig(n),null!==e&&(n.mCurView=e);let i,r,a=n.acquireString(),o=!1,s=n7.instance().mCommandBranch;for(void 0!==s.mainBranch&&(n.mBranchStatus=s.mainBranch),n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.arcFirstPt});t=n7.instance().mCmdExecutionStatus,t;){switch(n.mBranchStatus){case $U.bStart:if(yield!1,n7.instance().mkEscapeCaret){o=!0;break}if(a=n.acquireString(),n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.arcFirstPt+a}),"C"===a.trim().toUpperCase()){n.mBranchStatus=$U.bCenter;break}if(i=HZ.acquirePoint(),i){n.mArc3pPoints[0]=new QR,n.mArc3pPoints[0].copy(i),n.mArcStartPt=new QR,n.mArcStartPt.copy(i),n.mBranchStatus=void 0!==s.subBranch?s.subBranch:$U.bStartSec,n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.arcSecondPt});break}n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.invalid});break;case $U.bStartSec:if(yield!1,n7.instance().mkEscapeCaret){o=!0;break}if(a=n.acquireString(),n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.arcSecondPt+a}),"C"===a.trim().toUpperCase()){n.mBranchStatus=$U.bStartCenter,KU.resetFlags();break}if("E"===a.trim().toUpperCase()){n.mBranchStatus=$U.bStartSecondEnd,KU.resetFlags();break}if(i=HZ.acquirePoint(),i){n.mArc3pPoints[1]=new QR,n.mArc3pPoints[1].copy(i),n.mBranchStatus=$U.bStartEnd,n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.arcEndPt});break}n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.invalid});break;case $U.bStartEnd:if(yield!1,n7.instance().mkEscapeCaret){o=!0;break}if(a=n.acquireString(),n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.arcEndPt+a}),i=HZ.acquirePoint(),i){n.mArc3pPoints[2]=new QR,n.mArc3pPoints[2].copy(i),o=!0,n.doJig(o),n.mCanConstuctArc||n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.invalid});break}n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.needPoint});break;case $U.bStartCenter:if(n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.arcCenter}),yield!1,n7.instance().mkEscapeCaret){o=!0;break}if(a=n.acquireString(),n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.arcCenter+a}),i=HZ.acquirePoint(),i){n.mCenter||(n.mCenter=new QR),n.mCenter.copy(i),n.mBranchStatus=$U.bStartCenterEnd,n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.arcEndPt});break}n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.needPoint});break;case $U.bCenterStartEnd:case $U.bStartCenterEnd:if(yield!1,n7.instance().mkEscapeCaret){o=!0;break}a=n.acquireString(),n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.arcEndPt+a}),i=HZ.acquirePoint(),i?(n.mArcEndPt||(n.mArcEndPt=new QR),n.mArcEndPt.copy(i),o=!0,n.doJig(o),n.mCanConstuctArc||n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.invalid})):n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.needPoint});break;case $U.bCenterStartAngle:if(yield!1,n7.instance().mkEscapeCaret){o=!0;break}a=n.acquireNumber(),a&&(n.mSweepAngle=a,o=!0);break;case $U.bCenterStartLength:if(yield!1,n7.instance().mkEscapeCaret){o=!0;break}a=n.acquireNumber(),a&&a>0&&(n.mChord=a,o=!0);break;case $U.bCenter:if(n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.arcCenter}),yield!1,n7.instance().mkEscapeCaret){o=!0;break}a=n.acquireString(),n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.arcCenter+a}),i=HZ.acquirePoint(),i?(n.mCenter=new QR,n.mCenter.copy(i),n.mBranchStatus=$U.bCenterStart,n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.arcStartPt})):n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.needPoint});break;case $U.bCenterStart:if(yield!1,n7.instance().mkEscapeCaret){o=!0;break}a=n.acquireString(),n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.arcStartPt+a}),i=HZ.acquirePoint(),i?(n.mArcStartPt=new QR,n.mArcStartPt.copy(i),n.mBranchStatus=$U.bCenterStartEnd,n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.arcEndPt})):n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.needPoint});break;case $U.bStartSecondEnd:if(n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.arcEndPt}),yield!1,n7.instance().mkEscapeCaret){o=!0;break}if(a=n.acquireString(),n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.arcEndPt+a}),i=HZ.acquirePoint(),i){n.mArcEndPt.copy(i),n.mBranchStatus=$U.bStartEndCenter,n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.arcEndCenter});break}n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.needPoint});break;case $U.bStartEndCenter:if(yield!1,n7.instance().mkEscapeCaret){o=!0;break}a=n.acquireString(),n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.arcEndCenter+a}),i=HZ.acquirePoint(),i?(n.mCenter=new QR,n.mCenter.copy(i),o=!0,n.doJig(o),n.mCanConstuctArc||n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.invalid})):n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.needPoint});break;case $U.bStartEndAngle:o=!0;break;case $U.bStartEndRadius:if(yield!1,n7.instance().mkEscapeCaret){o=!0;break}a=n.acquireString(),n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.arcRadius+a}),i=HZ.acquirePoint(),r=n.acquireNumber(),i&&n.mArcStartPt?(n.mArc.radius=RV.zcutDistance(n.mArcStartPt,i),o=!0):r>=0&&(n.mArc.radius=r,o=!0),n.mArcStartPt&&n.mArcEndPt&&(n.mArcStartPt.isEqual(n.mArcEndPt)||0===n.mArc.radius)&&(o=!0,n.mCanConstuctArc=!1,n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.invalid}));break;case $U.bStartEndDirection:o=!0}if(o)break}return!n7.instance().mkEscapeCaret&&n.mCanConstuctArc&&n.mArc&&e&&e.mGraphicSystem&&(n.mParams={entityType:_B.kZcDbArc,arc:{curve:{entity:{color:yB.kByLayer,layer:String(e.mGraphicSystem.mDimensionLayerHandle),transparency:90,lineweight:pB.kLnWtByLayer}},center:[n.mArc.center.mX,n.mArc.center.mY,n.mArc.center.mZ],radius:n.mArc.radius,normal:[n.mArc.normal.mX,n.mArc.normal.mY,n.mArc.normal.mZ],startAngle:n.mStartAngle,endAngle:n.mEndAngle,thickness:0}}),SF.log("Arc命令执行结束"),n.mBranchStatus=$U.bStart,!0},this.mExeCmd=this.exeCmd()}execute(){return!!this.mExeCmd.next().done}cmdString(){return"arc"}static resetFlags(){jF.instance().setPointFlag(!1)}resetCmd(){this.mExeCmd=this.exeCmd()}}class JU{constructor(){this.exeCmd=function(){return Nk(this,arguments,(function*(){let t=n7.instance();SF.log("Bubble命令开始执行"),JU.resetFlags(),JU.mCurView=jF.instance().getCurView();let e,n=t.mGs;for(;!t.mkEscapeCaret;)if(yield yield Vk(!1),e=HZ.acquirePoint(),e){if(!t.isContinuousDraw())break;n&&e&&n.createPinBubble(cF(),e)}return!t.isContinuousDraw()&&e&&n&&e&&n.createPinBubble(cF(),e),SF.log("Bubble命令执行结束"),yield Vk(!0)}))},this.mExeCmd=this.exeCmd()}execute(){var t=this;return jR((function*(){let e=yield t.mExeCmd.next();return!(!e.done&&!e.value)}))()}cmdString(){return"bubble"}static resetFlags(){let t=jF.instance();t.setPointFlag(!1),t.setInputContent(""),t.setCommandFlags({enter:null,esc:null})}resetCmd(){this.mExeCmd=this.exeCmd()}}JU.mCurView=null,JU.mZcBroadcast=MF.instance(),JU.canSaveFlag=!1,JU.mImgData={name:"",path:""};class QU extends HZ{constructor(){super(...arguments),this.mBranchStatus=eW.cCenterBranch,this.m3pPoints=new Array(3),this.m2pPoints=new Array(2),this.mCircleExistFlag=!0,this.mEndPt=new QR,this.mCanJigWithoutEdit=!0}doJig(){if(this.mCircleExistFlag=!0,this.mCenter||this.m2pPoints[0]||this.m3pPoints[0]){if(null===this.mCurView||null===this.mCurView.mGraphicSystem)return;let t=this.mCurView.getGsWorldDraw();HZ.mZcGsPrimitiveCollector.clearCollector(),t.setCurPrimitveCollectorData(EB.kZcDrShorterm,HZ.mZcGsPrimitiveCollector);let e=this.mCurView.mGraphicSystem.mCurCursorPT,n=new QR(e.mX,e.mY,0);n=this.mCurView.scsPt2WcsPt(n);let i=this.mCurView.mViewportTableRec.getViewInfo();switch(this.mCircle={center:new QR,radius:0,normal:i.mUcsXAxisConstant.crossProduct(i.mUcsYAxisConstant),thickness:0},this.mBranchStatus){case eW.cCenterRadiusBranch:this.mCenter&&(this.mCircle.center.copy(this.mCenter),this.mCircle.radius=RV.zcutDistance(this.mCenter,n));break;case eW.cCenterDiameterBranch:this.mCenter&&(this.mCircle.center.copy(this.mCenter),this.mCircle.radius=RV.zcutDistance(this.mCenter,n)/2);break;case eW.c2pSecondBranch:this.m2pPoints[0]&&!this.m2pPoints[0].isEqual(n)?(this.mCenter=RV.zdsMidPt(this.m2pPoints[0],n),this.mCircle.center.copy(this.mCenter),this.mCircle.radius=RV.zcutDistance(this.mCenter,n)):this.mCircleExistFlag=!1;break;case eW.c3pSecondBranch:this.m3pPoints[0]&&!this.m3pPoints[0].isEqual(n)?(this.mCenter=RV.zdsMidPt(this.m3pPoints[0],n),this.mCircle.center.copy(this.mCenter),this.mCircle.radius=RV.zcutDistance(this.mCenter,n)):this.mCircleExistFlag=!1;break;case eW.c3pThirdBranch:if(this.m3pPoints[0]&&this.m3pPoints[1]){if(this.m3pPoints[2]||(this.m3pPoints[2]=new QR),this.m3pPoints[2].copy(n),RV.zdsDylColin(this.m3pPoints[0],this.m3pPoints[1],this.m3pPoints[2])){this.mCircleExistFlag=!1;break}nW.calculateCenter()}}if(this.mCircleExistFlag){let t=new HB(RB.RESTATTR);HZ.mZcGsPrimitiveCollector.mPrimitives.push(t);let e=new UB(RB.COLORRGBA32);if(n7.instance().mDrawCommentBubble){let t=n7.instance().mBubbleColor;HZ.mZcGsPrimitiveCollector.addPrimitiveCircleBubble(RB.CIRCLEBUBBLE,"",this.mCircle.center,n,t.str)}else{e.mColor=zV.jigLeader,HZ.mZcGsPrimitiveCollector.mPrimitives.push(e);let i=HZ.mZcGsPrimitiveCollector.getBufferPoint();i.push(this.mCircle.center.mX,this.mCircle.center.mY,this.mCircle.center.mZ),i.push(n.mX,n.mY,n.mZ),HZ.mZcGsPrimitiveCollector.addPrimitive(RB.RAWPOLYLINE3D,6),HZ.mZcGsPrimitiveCollector.mPrimitives.push(t),this.generateCircle(this.mCircle,this.mCurView.mFieldHeight,1e3)}}}}clear(){this.mCircle=void 0,this.mCenter=void 0,this.mEndPt=new QR}}var tW,eW=((tW=eW||(eW={}))[tW.cCenterBranch=0]="cCenterBranch",tW[tW.cCenterRadiusBranch=1]="cCenterRadiusBranch",tW[tW.cCenterDiameterBranch=2]="cCenterDiameterBranch",tW[tW.c3pFirstBranch=3]="c3pFirstBranch",tW[tW.c3pSecondBranch=4]="c3pSecondBranch",tW[tW.c3pThirdBranch=5]="c3pThirdBranch",tW[tW.c2pFirstBranch=6]="c2pFirstBranch",tW[tW.c2pSecondBranch=7]="c2pSecondBranch",eW);class nW{constructor(){this.exeCmd=function*(){let t=n7.instance(),e=t.mCmdExecutionStatus;if(!e)return!0;SF.log("Circle命令开始执行"),nW.resetFlags();let n=jF.instance().getCurView(),i=new QU;HZ._instance.setCurJig(i),null!==n&&(i.mCurView=n);let r=i.acquireString(),a=jF.instance().getKeyboardFlags(),o=!1,s=t.mCommandBranch;for(void 0!==s.mainBranch&&(i.mBranchStatus=Number(s.mainBranch));e=t.mCmdExecutionStatus,e;){switch(i.mBranchStatus){case eW.cCenterBranch:if(SF.log("指定圆心"),t.mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.circleCenterRadius+":"}),yield!1,t.mkEscapeCaret){o=!0;break}if(r=i.acquireString(),t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.circleCenterRadius+":"+r}),"2P"===r.trim().toUpperCase()){i.mBranchStatus=eW.c2pFirstBranch,nW.resetFlags();break}if("3P"===r.trim().toUpperCase()){i.mBranchStatus=eW.c3pFirstBranch,nW.resetFlags();break}{let e=HZ.acquirePoint();e?(i.mCenter=new QR,i.mCenter.copy(e),i.mBranchStatus=void 0!==s.subBranch?Number(s.subBranch):eW.cCenterRadiusBranch):""!==r&&a.enter?t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.errMsgCommon}):""===r&&t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.ptOrKeyword})}break;case eW.cCenterRadiusBranch:if(SF.log("指定半径"),t.mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.circleRadius+":"}),yield!1,t.mkEscapeCaret){o=!0;break}if(r=i.acquireString(),t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.circleRadius+":"+r}),"D"===r.trim().toUpperCase()){i.mBranchStatus=eW.cCenterDiameterBranch,nW.resetFlags();break}if(r.trim()&&!isNaN(r)){r<=0&&t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.positiveNumber}),i.mCircle&&(i.mCircle.radius=Number(r)),nW.resetFlags(),o=!0;break}{let e=HZ.acquirePoint();if(e){if(i.mCircle){if(e.isEqual(i.mCircle.center))continue;i.mCircle.radius=RV.zcutDistance(i.mCircle.center,e),i.mEndPt.copy(e)}if(t.mDrawCommentBubble&&t.isContinuousDraw()){let e=t.mGs;null!==e&&i.mCircleExistFlag&&i.mCircle&&e.createCircleBubble(cF(),i.mCircle.center,i.mEndPt),i.mBranchStatus=eW.cCenterBranch,i.clear()}else o=!0;break}""!==r&&a.enter?t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.errMsgCommon}):""===r&&t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.inputInvalid})}break;case eW.cCenterDiameterBranch:{if(SF.log("指定直径"),t.mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.circleDiameter+":"}),yield!1,t.mkEscapeCaret){o=!0;break}if(r=i.acquireString(),r.trim()&&!isNaN(r)){t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.circleDiameter+":"+r}),r<=0&&t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.positiveNumber}),i.mCircle&&(i.mCircle.radius=Number(r)/2),nW.resetFlags(),o=!0;break}let e=HZ.acquirePoint();if(t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.circleDiameter+":"+r}),e){i.mCircle&&(i.mCircle.radius=RV.zcutDistance(i.mCircle.center,e)/2),o=!0;break}""!==r&&a.enter?t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.errMsgCommon}):""===r&&t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.inputInvalid});break}case eW.c3pFirstBranch:{if(SF.log("获取第一个点"),t.mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.circlePt1+":"}),yield!1,t.mkEscapeCaret){o=!0;break}r=i.acquireString();let e=HZ.acquirePoint();t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.circlePt1+":"+r}),e?(i.m3pPoints[0]=new QR,i.m3pPoints[0].copy(e),i.mBranchStatus=eW.c3pSecondBranch):""!==r&&a.enter?t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.needAPoint}):""===r&&t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.needPoint});break}case eW.c3pSecondBranch:{if(SF.log("获取第二个点"),t.mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.circlePt2+":"}),yield!1,t.mkEscapeCaret){o=!0;break}r=i.acquireString();let e=HZ.acquirePoint();t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.circlePt2+":"+r}),e?(i.m3pPoints[1]=e,i.mBranchStatus=eW.c3pThirdBranch):""!==r&&a.enter?t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.needAPoint}):""===r&&t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.needPoint});break}case eW.c3pThirdBranch:{if(SF.log("获取第三个点"),t.mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.circlePt3+":"}),yield!1,t.mkEscapeCaret){o=!0;break}r=i.acquireString();let e=HZ.acquirePoint();t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.circlePt3+":"+r}),e?(i.m3pPoints[2]=e,RV.zdsDylColin(i.m3pPoints[0],i.m3pPoints[1],i.m3pPoints[2])?(SF.log("三点共线,不能构成圆。"),i.mCircleExistFlag=!1,t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.invalid})):(SF.log("3P:",i.m3pPoints),nW.calculateCenter()),o=!0):""!==r&&a.enter?t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.needAPoint}):""===r&&t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.needPoint});break}case eW.c2pFirstBranch:{if(SF.log("获取第一个点"),t.mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.circleDiameterPt1+":"}),yield!1,t.mkEscapeCaret){o=!0;break}r=i.acquireString();let e=HZ.acquirePoint();t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.circleDiameterPt1+":"+r}),e?(i.m2pPoints[0]=e,i.mBranchStatus=eW.c2pSecondBranch,t.mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.circleDiameterPt2+":"})):""!==r&&a.enter?t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.needAPoint}):""===r&&t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.needPoint});break}case eW.c2pSecondBranch:{if(SF.log("获取第二个点"),yield!1,t.mkEscapeCaret){o=!0;break}r=i.acquireString();let e=HZ.acquirePoint();if(t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.circleDiameterPt2+":"+r}),e){if(i.m2pPoints[0]&&e.isEqual(i.m2pPoints[0])){i.mCircleExistFlag=!1,o=!0,t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.invalid});break}i.m2pPoints[1]=e,i.mCircle&&(i.mCircle.center=RV.zdsMidPt(i.m2pPoints[0],i.m2pPoints[1]),i.mCircle.radius=RV.zcutDistance(i.m2pPoints[0],i.m2pPoints[1])/2),o=!0,SF.log("2P:",i.m2pPoints)}else""!==r&&a.enter?t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.needAPoint}):""===r&&t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.needPoint});break}}if(o)break}if(!t.mkEscapeCaret&&!t.isContinuousDraw()&&t.mDrawCommentBubble&&i.mCircleExistFlag&&i.mCircle){let e=t.mGs;null!==e&&e.createCircleBubble(cF(),i.mCircle.center,i.mEndPt)}return!t.mkEscapeCaret&&i.mCircleExistFlag&&i.mCircle&&n&&n.mGraphicSystem&&(i.mParams={entityType:_B.kZcDbCircle,circle:{curve:{entity:{color:yB.kByLayer,layer:String(n.mGraphicSystem.mDimensionLayerHandle),transparency:90,lineweight:pB.kLnWtByLayer}},center:[i.mCircle.center.mX,i.mCircle.center.mY,i.mCircle.center.mZ],radius:i.mCircle.radius,normal:[i.mCircle.normal.mX,i.mCircle.normal.mY,i.mCircle.normal.mZ]}}),SF.log("Circle命令执行结束"),i.mBranchStatus=eW.cCenterBranch,!0},this.mExeCmd=this.exeCmd()}execute(){return!!this.mExeCmd.next().done}cmdString(){return"circle"}static getTargetPt(t){let e,n=jF.instance().getPtByKeyboard(t),i=jF.instance().getPointFlag();return(i||n)&&(e=new QR,e.copy(i?jF.instance().getWdPoint():n),nW.resetFlags()),e}static calculateCenter(){let t,e,n=HZ._instance.getCurJig(),i=n.m3pPoints[0].mX,r=n.m3pPoints[0].mY,a=n.m3pPoints[1].mX,o=n.m3pPoints[1].mY,s=n.m3pPoints[2].mX,l=n.m3pPoints[2].mY;t=(o-r)/(a-i),e=r-t*i;let c,h,d,u=(i+a)/2;0!==t?(c=(r+o)/2- -1/t*u,h=(Math.pow(i,2)+Math.pow(r,2)-Math.pow(s,2)-Math.pow(l,2)-2*c*r+2*c*l)/(2*(i-s-1/t*(r-l))),d=-1/t*h+c):(h=c=u,d=(Math.pow(i,2)+Math.pow(r,2)-Math.pow(s,2)-Math.pow(l,2)+2*h*(s-i))/(2*(r-l)));let m=new QR(h,d,0);n.mCircle&&(n.mCircle.center.copy(m),n.mCircle.radius=RV.zcutDistance(n.m3pPoints[0],m))}static resetFlags(){jF.instance().setPointFlag(!1)}resetCmd(){this.mExeCmd=this.exeCmd()}}class iW extends HZ{constructor(){super(...arguments),this.mCursorPt=new QR,this.mLineArray=[],this.mLastArcEndPt=new QR,this.mLineType="line",this.mTempDirection=0,this.mLastDirection=0,this.mDrawLineArr=[],this.mArc={center:new QR,radius:0,normal:new qR,thickness:0,startVec:new qR,sweepAngle:0},this.mCentralAngQuarter=0,this.mArcBulge=0,this.mZcGsPrimitiveCollector=new LV}doJig(){if(this.mLineArray.length>0){if(null===this.mCurView||null===this.mCurView.mGraphicSystem)return;let t=this.mCurView.getGsWorldDraw();HZ.mZcGsPrimitiveCollector.clearCollector(),t.setCurPrimitveCollectorData(EB.kZcDrShorterm,HZ.mZcGsPrimitiveCollector),HZ.mZcGsPrimitiveCollector=this.mZcGsPrimitiveCollector;let e=HZ.mZcGsPrimitiveCollector.getBufferPoint(),n=this.mCurView.mGraphicSystem.mCurCursorPT,i=new QR(n.mX,n.mY,0);i=this.mCurView.scsPt2WcsPt(i),this.mCursorPt=i;let r=new HB(RB.RESTATTR);HZ.mZcGsPrimitiveCollector.mPrimitives.push(r);for(let t=0;t<this.mLineArray.length;t++)if(this.mLineArray[t].type&&"arc"===this.mLineArray[t].type)0!==this.mDrawLineArr.length&&(HZ.mZcGsPrimitiveCollector.addPrimitive(RB.RAWPOLYLINE3D,3*this.mDrawLineArr.length),this.mDrawLineArr=[]),this.generateArc(this.mLineArray[t].data,this.mCurView.mFieldHeight,1e3);else if(this.mLineArray[t].type&&"line"===this.mLineArray[t].type){if(this.mLineArray[t-1]&&"arc"===this.mLineArray[t-1].type){let n=this.mLineArray[t-1].endPoint;this.mDrawLineArr.push(n),e.push(n.mX,n.mY,n.mZ)}let n=this.mLineArray[t].data;this.mDrawLineArr.push(n),e.push(n.mX,n.mY,n.mZ),HZ.mZcGsPrimitiveCollector.addPrimitive(RB.RAWPOLYLINE3D,3*this.mDrawLineArr.length)}"line"===this.mLineType?this.drawLine(i):"arc"===this.mLineType&&this.drawArc(i,"jig"),this.mDrawLineArr=[]}}drawLine(t){if(null===this.mCurView||null===this.mCurView.mGraphicSystem||0===this.mLineArray.length)return;let e=HZ.mZcGsPrimitiveCollector.getBufferPoint();"line"===this.mLineArray[this.mLineArray.length-1].type?(e[e.length]=this.mLastLineEnd.data.mX,e[e.length]=this.mLastLineEnd.data.mY,e[e.length]=this.mLastLineEnd.data.mZ):"arc"===this.mLineArray[this.mLineArray.length-1].type&&(e[e.length]=this.mLastArcEndPt.mX,e[e.length]=this.mLastArcEndPt.mY,e[e.length]=this.mLastArcEndPt.mZ),e[e.length]=t.mX,e[e.length]=t.mY,e[e.length]=t.mZ,HZ.mZcGsPrimitiveCollector.addPrimitive(RB.RAWPOLYLINE3D,6)}drawArc(t,e){if(null===this.mCurView||null===this.mCurView.mGraphicSystem)return;let n,i,r=new QR(1,0,0),a=t,o=new QR,s=HZ.mZcGsPrimitiveCollector.getBufferPoint();if(1===this.mLineArray.length)i=this.mLineArray[0].data,a=t,o.mX=i.mX,o.mY=(a.mX-i.mX)/(i.mY-a.mY)*(i.mX-(a.mX+i.mX)/2)+(i.mY+a.mY)/2,r=new QR(1,0,0);else if("line"===this.mLastLineEnd.type)n=this.mLastLineStart.endPoint?this.mLastLineStart.endPoint:this.mLastLineStart.data,i=this.mLastLineEnd.endPoint?this.mLastLineEnd.endPoint:this.mLastLineEnd.data,SF.log(n,i),o.mX=-(Math.pow(i.mY,3)+(-n.mY-2*a.mY)*Math.pow(i.mY,2)+(Math.pow(i.mX,2)-2*n.mX*i.mX+2*a.mY*n.mY+Math.pow(a.mY,2)+Math.pow(a.mX,2))*i.mY+(n.mY-2*a.mY)*Math.pow(i.mX,2)+2*a.mY*n.mX*i.mX+(-Math.pow(a.mY,2)-Math.pow(a.mX,2))*n.mY)/((2*n.mX-2*a.mX)*i.mY+(2*a.mY-2*n.mY)*i.mX+2*a.mX*n.mY-2*a.mY*n.mX),o.mY=((i.mX+n.mX-2*a.mX)*Math.pow(i.mY,2)+(2*a.mX*n.mY-2*n.mY*i.mX)*i.mY+Math.pow(i.mX,3)+(-n.mX-2*a.mX)*Math.pow(i.mX,2)+(2*a.mX*n.mX+Math.pow(a.mY,2)+Math.pow(a.mX,2))*i.mX+(-Math.pow(a.mY,2)-Math.pow(a.mX,2))*n.mX)/((2*n.mX-2*a.mX)*i.mY+(2*a.mY-2*n.mY)*i.mX+2*a.mX*n.mY-2*a.mY*n.mX),r=new QR(i.mX-n.mX,i.mY-n.mY,0);else{if(!("arc"===this.mLastLineEnd.type&&this.mLineArray.length>=2))return;{i=this.mLastArcEndPt;let t=this.mLastLineEnd.data.center;o.mX=((i.mX+t.mX)*Math.pow(i.mY,2)+(-2*t.mY*i.mX-2*a.mY*t.mX)*i.mY+Math.pow(i.mX,3)-t.mX*Math.pow(i.mX,2)+(2*a.mY*t.mY-Math.pow(a.mY,2)-Math.pow(a.mX,2))*i.mX+Math.pow(a.mY,2)*t.mX+Math.pow(a.mX,2)*t.mX)/(2*Math.pow(i.mY,2)+(-2*t.mY-2*a.mY)*i.mY+2*Math.pow(i.mX,2)+(-2*t.mX-2*a.mX)*i.mX+2*a.mY*t.mY+2*a.mX*t.mX),o.mY=(Math.pow(i.mY,3)-t.mY*Math.pow(i.mY,2)+(Math.pow(i.mX,2)-2*t.mX*i.mX+2*a.mX*t.mX-Math.pow(a.mY,2)-Math.pow(a.mX,2))*i.mY+t.mY*Math.pow(i.mX,2)-2*a.mX*t.mY*i.mX+Math.pow(a.mY,2)*t.mY+Math.pow(a.mX,2)*t.mY)/(2*Math.pow(i.mY,2)+(-2*t.mY-2*a.mY)*i.mY+2*Math.pow(i.mX,2)+(-2*t.mX-2*a.mX)*i.mX+2*a.mY*t.mY+2*a.mX*t.mX),r=0===this.mLastDirection?new QR(i.mY-t.mY,-(i.mX-t.mX),0):new QR(-(i.mY-t.mY),i.mX-t.mX,0)}}let l=Math.sqrt(Math.pow(o.mX-i.mX,2)+Math.pow(o.mY-i.mY,2)),c=this.acquireAngle(o,i),h=this.acquireAngle(o,a);SF.log("角度",180*c/XR.ZWGR_PI,180*h/XR.ZWGR_PI),this.mArc.normal=new qR(0,0,1);let d=Math.atan2(r.mY,r.mX),u=Math.atan2(a.mY-i.mY,a.mX-i.mX);if(d<0&&(d+=XR.ZWGR_TWOPI),u<0&&(u+=XR.ZWGR_TWOPI),SF.log(this.mLineArray),d===u||Math.abs(d-u)===XR.ZWGR_PI){if("cmd"===e)return this.addVertex(a),!1;"jig"===e&&this.drawLine(this.mCursorPt)}if(d<=XR.ZWGR_PI)if(u>d&&u<d+XR.ZWGR_PI)this.mTempDirection=1;else{let t=c;c=h,h=t,this.mTempDirection=0}else if(u<d&&u>d-XR.ZWGR_PI){let t=c;c=h,h=t,this.mTempDirection=0}else this.mTempDirection=1;return this.mArc.startVec.mX=Math.cos(c),this.mArc.startVec.mY=Math.sin(c),this.mArc.startVec.normalize(),this.mArc.sweepAngle=h-c,this.mArc.sweepAngle<0&&(this.mArc.sweepAngle+=XR.ZWGR_TWOPI),Math.abs(this.mArc.sweepAngle)>XR.ZWGR_TWOPI&&(this.mArc.sweepAngle=XR.ZWGR_TWOPI),this.mArc.center=o,this.mArc.radius=l,this.generateArc(this.mArc,this.mCurView.mFieldHeight,1e3),s[s.length]=t.mX,s[s.length]=t.mY,s[s.length]=t.mZ,HZ.mZcGsPrimitiveCollector.addPrimitive(RB.RAWPOLYLINE3D,3),!0}addVertex(t){this.drawLine(t);let e={type:"line",data:t};this.mLineArray=this.mLineArray.concat(e),this.mLastLineStart=this.mLastLineEnd,this.mLastLineEnd=e}addArc(t){if(!this.drawArc(t,"cmd"))return 0;let e=JSON.parse(JSON.stringify(this.mArc));this.mLastArcEndPt=t;let n={type:"arc",data:e,endPoint:JSON.parse(JSON.stringify(this.mLastArcEndPt))};return this.mLineArray=this.mLineArray.concat(n),this.mLastLineEnd=n,this.mLastDirection=this.mTempDirection,1===this.mLastDirection?e.sweepAngle:-1*e.sweepAngle}subVertex(){this.mLineArray.pop(),"line"===this.mLineArray[this.mLineArray.length-1].type?(this.mLastLineStart=this.mLineArray[this.mLineArray.length-2],this.mLastLineEnd=this.mLineArray[this.mLineArray.length-1]):(this.mLastLineEnd=this.mLineArray[this.mLineArray.length-1],this.mLastArcEndPt=this.mLineArray[this.mLineArray.length-1].endPoint)}}var rW,aW=((rW=aW||(aW={}))[rW.dStartBranch=0]="dStartBranch",rW[rW.dNextPtBranch=1]="dNextPtBranch",rW[rW.dMnextPtBranch=2]="dMnextPtBranch",rW[rW.dMnextLengthBranch=3]="dMnextLengthBranch",rW[rW.dMnextArcBranch=4]="dMnextArcBranch",rW[rW.dNextArcPtBranch=5]="dNextArcPtBranch",aW);class oW{constructor(){this.exeCmd=function*(){let t=n7.instance().mCmdExecutionStatus;if(!t)return!0;SF.log("DIST命令开始执行"),oW.resetFlags(),oW.mCurView=jF.instance().getCurView(),jF.instance().getCurView();let e=jF.instance().getInputContent(),n=jF.instance().getKeyboardFlags();oW.misEnd=!1;let i=new iW;for(HZ._instance.setCurJig(i),i.mCurView=oW.mCurView;t=n7.instance().mCmdExecutionStatus,t;){switch(jF.instance().setCommandFlags({enter:null,esc:null}),oW.mBranchStatus){case aW.dStartBranch:{if(SF.log("指定第一个点"),n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.firstPoint+": "}),yield!1,n7.instance().mkEscapeCaret){oW.misEnd=!0;break}if(e=jF.instance().getInputContent(),n=jF.instance().getKeyboardFlags(),n.esc)break;let t=HZ.acquirePoint();if(n.esc){oW.misEnd=!0;break}t?(SF.log("获取第一个点"),oW.mPoints.push(t),i.addVertex(t),oW.mlastPoint=t,oW.mBranchStatus=aW.dNextPtBranch,n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.firstPoint+": "+e,label:qF.mLanguagePackage.distNextPt})):""===e&&n.enter?(oW.mFirstPoint=oW.mlastPoint,oW.mPoints.push(oW.mFirstPoint),i.addVertex(oW.mFirstPoint),oW.mBranchStatus=aW.dNextPtBranch,n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.firstPoint+": "+e,label:qF.mLanguagePackage.distNextPt})):(n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.firstPoint+e}),n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.plinePointOrKey}));break}case aW.dNextPtBranch:{if(SF.log("指定第二个点"),yield!1,n7.instance().mkEscapeCaret){oW.misEnd=!0;break}if(e=jF.instance().getInputContent(),n=jF.instance().getKeyboardFlags(),n.esc)break;let t=HZ.acquirePoint();if(t)SF.log("获取第二个点"),oW.mSecondPoint=t,oW.mPoints.push(t),oW.mlastPoint=t,n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.distNextPt+e,label:qF.mLanguagePackage.distNextPt}),oW.misEnd=!0,oW.mConvexity.push(0);else if("M"===e.trim().toUpperCase())oW.mBranchStatus=aW.dMnextPtBranch,n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.distNextPt+e,label:qF.mLanguagePackage.distMnextPt});else if(""===e&&n.enter){if(null===oW.mCurView||null===oW.mCurView.mGraphicSystem)return;let t=oW.mCurView.mGraphicSystem.mCurCursorPT,n=new QR(t.mX,t.mY,0);n=oW.mCurView.scsPt2WcsPt(n),oW.mSecondPoint=n,oW.mPoints.push(oW.mSecondPoint),oW.mlastPoint=oW.mSecondPoint,n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.distNextPt+e,label:qF.mLanguagePackage.distNextPt}),oW.misEnd=!0,oW.mConvexity.push(0)}else n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.distNextPt+e}),n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.plinePointOrKey});break}case aW.dMnextPtBranch:{if(SF.log("获取其他点"),yield!1,n7.instance().mkEscapeCaret){oW.misEnd=!0;break}if(e=jF.instance().getInputContent(),n=jF.instance().getKeyboardFlags(),n.esc)break;let t=HZ.acquirePoint();t?(SF.log("点了新的点了"),oW.mPoints.push(t),oW.mConvexity.push(0),oW.mlastPoint=t,i.addVertex(t),XF.instance().setItem("pLineLastPoint",t,"session"),n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.distMnextpoint}),oW.mPoints.length>2?n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.distMnextpoint}):n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.distMnextPt}),oW.saveDist()):""===e&&n.enter||"T"===e.trim().toUpperCase()?(n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.distMnextpoint+e}),oW.misEnd=!0):"A"===e.trim().toUpperCase()?(oW.mBranchStatus=aW.dNextArcPtBranch,i.mLineType="arc"):"C"===e.trim().toUpperCase()?(n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.distMnextpoint+e}),oW.misClosed=1,oW.misEnd=!0):oW.mPoints.length>=2&&"U"===e.trim().toUpperCase()?(oW.mPoints.pop(),oW.mConvexity.pop(),i.subVertex(),oW.mlastPoint=oW.mPoints[oW.mPoints.length-1],1===oW.mPoints.length?n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.distMnextPt}):n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.distMnextpoint+e}),oW.saveDist()):"L"===e.trim().toUpperCase()?(n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.distMnextpoint+e}),oW.mBranchStatus=aW.dMnextLengthBranch,n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.sectionLength})):(oW.mPoints.length>=2?n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.distMnextpoint+e}):n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.distMnextPt+e}),n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.plinePointOrKey}));break}case aW.dNextArcPtBranch:{if(SF.log("指定圆弧的点"),n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.areaArcPt2}),yield!1,n7.instance().mkEscapeCaret){oW.misEnd=!0;break}if(e=jF.instance().getInputContent(),n=jF.instance().getKeyboardFlags(),n.esc)break;let t=HZ.acquirePoint();if(n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.plineNextPoint+e}),t){SF.log("获取圆弧的点"),oW.mPoints.push(t),oW.mlastPoint=t;let e=Math.tan(i.addArc(t)/4);oW.mConvexity.push(e),oW.saveDist()}else"L"===e.trim().toUpperCase()?(i.mLineType="line",oW.mBranchStatus=aW.dMnextPtBranch,oW.mPoints.length>=2?n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.distMnextpoint}):n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.distMnextPt})):""===e&&n.enter?oW.misEnd=!0:oW.mPoints.length>=2&&"U"===e.trim().toUpperCase()?(oW.mPoints.pop(),oW.mConvexity.pop(),i.subVertex(),oW.mlastPoint=oW.mPoints[oW.mPoints.length-1],1===oW.mPoints.length?n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.distMnextpoint}):n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.distMnextpoint+e}),oW.saveDist()):(n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.areaArcPt2+e}),n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.plinePointOrKey}));break}case aW.dMnextLengthBranch:{if(SF.log("获取距离"),yield!1,n7.instance().mkEscapeCaret){oW.misEnd=!0;break}if(e=jF.instance().getInputContent(),n=jF.instance().getKeyboardFlags(),n.esc)break;let t=HZ.acquirePoint();if(t){let e=RV.zcutDistance(oW.mlastPoint,t),n=new QR;n.set(oW.mlastPoint.mX+e,oW.mlastPoint.mY,oW.mlastPoint.mZ),oW.mPoints.push(n),oW.mConvexity.push(0),i.addVertex(n),oW.mlastPoint=n,oW.mBranchStatus=aW.dMnextPtBranch,n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.sectionLength+e,label:qF.mLanguagePackage.distMnextPt})}else if(isNaN(e)||""===e)n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.sectionLength+e}),n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.plinePointOrKey});else{let t=Number(e),n=new QR;n.set(oW.mlastPoint.mX+t,oW.mlastPoint.mY,oW.mlastPoint.mZ),oW.mPoints.push(n),oW.mConvexity.push(0),i.addVertex(n),oW.mlastPoint=n,oW.mBranchStatus=aW.dMnextPtBranch,n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.sectionLength+t,label:qF.mLanguagePackage.distMnextPt})}oW.saveDist();break}}if(oW.misEnd)break;oW.resetFlags()}return n7.instance().mkEscapeCaret||oW.saveDist(),oW.mPoints=[],oW.mConvexity=[],oW.misClosed=0,oW.mBranchStatus=aW.dStartBranch,HZ.clearJig(),SF.log("DIST命令执行结束"),!0},this.mExeCmd=this.exeCmd()}execute(){return!!this.mExeCmd.next().done}cmdString(){return"dist"}static saveDist(){if(null!==oW.mCurView&&null!==oW.mCurView.mGraphicSystem){let t,e=[],n=this.mConvexity;0===n.length&&(n=[0]),t=oW.misClosed;for(let t=0;t<oW.mPoints.length;t++){let n=oW.mPoints[t],i=new QR;i.copy(n),oW.mCurView.unitPixelHeight<3&&(i.mX=Number(i.mX.toFixed(5)),i.mY=Number(i.mY.toFixed(5)),i.mZ=Number(i.mZ.toFixed(5))),e.push(i.mX,i.mY,i.mZ)}let i={id:e7.getDist,function:19,data:{docId:oW.mCurView.mGraphicSystem.mDocId,content:{opt:3,dist:{entityType:102,polyline:{curve:{entity:{color:yB.kByLayer,layer:String(oW.mCurView.mGraphicSystem.mDimensionLayerHandle),transparency:90,lineweight:-1}},points:e,convexity:n,isClosed:t}}}}};oW.mCurView.mGraphicSystem.saveEntities(i)}}static resetFlags(){let t=jF.instance();t.setPointFlag(!1),t.setInputContent("")}resetCmd(){this.mExeCmd=this.exeCmd()}}oW.mBranchStatus=aW.dStartBranch,oW.mFirstPoint=new QR,oW.mSecondPoint=new QR,oW.mlastPoint=new QR(0,0,0),oW.misClosed=0,oW.mCurView=null,oW.mConvexity=[],oW.mPoints=new Array;let sW=(()=>{class t{constructor(){this.exeCmd=function*(){const e=n7.instance().getCurView();if(null===e||e.isOverallView())return!1;let n=10,i=10,r=n7.instance().mCmdExecutionStatus;SF.log("GRID命令开始执行");let a="",o={label:"",history:""},s=n7.instance().mCommandBranch.mainBranch;if(void 0===s){let e=t.getPrefix()+" ";if(e+=t.xYDescription(),!r)return!0;n7.instance().mZcBroadcast.broardcast(_F.History,{label:e,history:""}),yield!1}else{o.history=qF.mLanguagePackage.command+":<";const t=" "+qF.mLanguagePackage.open+" >",n=" "+qF.mLanguagePackage.shutdown+" >";o.history+=e.mGridSwitch?""+qF.mLanguagePackage.grid+n:""+qF.mLanguagePackage.grid+t}for(;;){r=n7.instance().mCmdExecutionStatus;let l=s||jF.instance().getInputContent();if(!r)break;if(a=t.getPrefix()+" ",a+=t.xYDescription(),"ON"===l.toUpperCase()||"OFF"===l.toUpperCase()){s?n7.instance().mZcBroadcast.broardcast(_F.History,o):n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.command+":",history:a+l.toUpperCase()}),null!==e&&(e.mGridSwitch="ON"===l.toUpperCase()),n7.instance().mZcBroadcast.broardcast(_F.StatusBar,{type:"switch",data:{switch:e.mGridSwitch,name:"GRID"}}),n7.instance().mZcBroadcast.broardcast(_F.GsInteraction,{type:"draw",data:{type:"BottomMost"}});break}if("E"!==l.toUpperCase()&&"A"!==l.toUpperCase()){if(!isNaN(l)){n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.command+":",history:a+l}),n=Number(l),i=Number(l),null!==e&&(e.isOverallView()||(e.mGridSwitch=!0)),t.saveParams(n,i),a=t.getPrefix()+" ",a+=t.xYDescription();break}n7.instance().mZcBroadcast.broardcast(_F.History,{label:"",history:a+l}),n7.instance().mZcBroadcast.broardcast(_F.History,{label:"",history:qF.mLanguagePackage.gridErrorMsg}),yield!1,l=jF.instance().getInputContent()}if("E"===l.toUpperCase()&&i!==n&&(n=i,t.saveParams(n,i),n7.instance().mZcBroadcast.broardcast(_F.History,{label:t.getPrefix()+" "+t.xYDescription(),history:a+l}),n7.instance().mZcBroadcast.broardcast(_F.GsInteraction,{type:"draw",data:{type:"BottomMost"}}),a=t.getPrefix()+" ",a+=t.xYDescription(),yield!1,l=jF.instance().getInputContent()),"A"===l.toUpperCase()){let o=qF.mLanguagePackage.horizonSpace+"<"+n+">:",s=qF.mLanguagePackage.verticalSpace+"<"+i+">:";for(n7.instance().mZcBroadcast.broardcast(_F.History,{label:o,history:a+l.toUpperCase()}),yield!1;r=n7.instance().mCmdExecutionStatus,r;)if(l=jF.instance().getInputContent(),""!==l&&isNaN(l))t.mHasSetWidth?t.mHasSetHeight||n7.instance().mZcBroadcast.broardcast(_F.History,{label:s,history:""+o+l}):n7.instance().mZcBroadcast.broardcast(_F.History,{label:o,history:""+o+l}),n7.instance().mZcBroadcast.broardcast(_F.History,{label:"",history:qF.mLanguagePackage.gridErrorMsg+"!"}),yield!1;else{if(t.mHasSetWidth){""!==l&&(i=Number(l)),n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.command+":",history:""+s+l}),t.mHasSetHeight=!0;break}""!==l&&(n=Number(l)),n7.instance().mZcBroadcast.broardcast(_F.History,{label:s,history:""+o+l}),t.mHasSetWidth=!0,yield!1}if(t.mHasSetWidth&&t.mHasSetHeight){null!==e&&(e.isOverallView()||(e.mGridSwitch=!0)),t.saveParams(n,i),a=t.getPrefix()+" ",a+=t.xYDescription();break}}}return t.mHasSetHeight=!1,t.mHasSetWidth=!1,SF.log("GRID命令执行结束"),!0},this.mExeCmd=this.exeCmd()}execute(){return!!this.mExeCmd.next().done}cmdString(){return"grid"}resetCmd(){this.mExeCmd=this.exeCmd()}static getPrefix(){let e=10,n=10,i=t.getCurGridSetting();null!=i&&(e=Number(i.gridWidth),n=Number(i.gridHeight));let r="",a=n7.instance().getCurView(),o=!1;return null!==a&&(o=a.mGridSwitch),o?(r+=qF.mLanguagePackage.openGrid+":",r+=e===n?qF.mLanguagePackage.gridOff:qF.mLanguagePackage.gridOffE):(r+=qF.mLanguagePackage.closeGrid+":",r+=e===n?qF.mLanguagePackage.gridOn:qF.mLanguagePackage.gridOnE),r}static saveParams(t,e){let n={},i=n7.instance().getCurView();if(null===i)return;n["view"+i.mVPNumber]={gridWidth:t,gridHeight:e};let r=XF.instance().getItem("gridSetting")?XF.instance().getItem("gridSetting"):{};Object.assign(r,n),XF.instance().setItem("gridSetting",r),n7.instance().mZcBroadcast.broardcast(_F.GsInteraction,{type:"draw",data:{type:"BottomMost"}})}static getCurGridSetting(){let t=n7.instance().getCurView();if(null===t)return null;let e=t.mVPNumber,n=XF.instance().getItem("gridSetting")?XF.instance().getItem("gridSetting"):null;if(null===n)return null;for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&2===t.split("view").length&&t.split("view")[1]===String(e))return n[t];return null}static xYDescription(){let e=10,n=10,i=t.getCurGridSetting();return null!=i&&(e=Number(i.gridWidth),n=Number(i.gridHeight)),n===e?"<"+qF.mLanguagePackage.gridSpace+"(x"+qF.mLanguagePackage.and+"y = "+e+")>:":"<"+qF.mLanguagePackage.gridAttribute+"(x = "+e+", y = "+n+")>:"}}return t.mHasSetWidth=!1,t.mHasSetHeight=!1,t})();class lW{constructor(){this.exeCmd=function*(){if(!n7.instance().mCmdExecutionStatus)return!0;SF.log("Help命令开始执行");const t=window.location.origin;return window.open(t+"/help"),SF.log("Help命令执行结束"),!0},this.mExeCmd=this.exeCmd()}execute(){return!!this.mExeCmd.next().done}cmdString(){return"help"}resetCmd(){this.mExeCmd=this.exeCmd()}}class cW extends HZ{constructor(){super(...arguments),this.mPtArray=[],this.mArrowLength=2.5,this.mArrowAngle=20*Math.PI/180,this.mPolygonPts=[],this.mArrowHead=!0,this.mEndJig=!1,this.mCanJigWithoutEdit=!0}doJig(){var t;if(this.mPtArray.length>0){if(null===this.mCurView||null===this.mCurView.mGraphicSystem)return;let e=this.mCurView.getGsWorldDraw();HZ.mZcGsPrimitiveCollector.clearCollector(),e.setCurPrimitveCollectorData(EB.kZcDrShorterm,HZ.mZcGsPrimitiveCollector);let n,i=HZ.mZcGsPrimitiveCollector.getBufferPoint(),r=this.mCurView.mGraphicSystem.mCurCursorPT,a=new QR(r.mX,r.mY,0);if(this.mCursorPT3d=this.mCurView.scsPt2WcsPt(a),n7.instance().mDrawCommentBubble){let e=new JR;e.setEntry([[1,0,0,this.mCurView.mScreenRect.mX],[0,1,0,this.mCurView.mScreenRect.mY],[0,0,1,0],[0,0,0,1]]),e.mul(this.mCurView.worldToDeviceMatrix());let n=new QR;n.copy(this.mPtArray[0]),n.mulMatrix(e);let i=new QR;i.copy(null!==(t=this.mPtArray[1])&&void 0!==t?t:this.mCursorPT3d),i.mulMatrix(e);let r=RV.zcutAngle(n,i),a=RV.zcutPolar(n,r+20*Math.PI/180,25),o=RV.zcutPolar(n,r-20*Math.PI/180,25);this.mPolygonPts=[],this.mPolygonPts.push(this.mPtArray[0]),this.mPolygonPts.push(this.mCurView.scsPt2WcsPt(a)),this.mPolygonPts.push(this.mCurView.scsPt2WcsPt(o));let s=n7.instance().mBubbleColor;return void HZ.mZcGsPrimitiveCollector.addPrimitiveLeaderBubble(RB.LEADERBUBBLE,"",[...this.mPtArray,this.mCursorPT3d],this.mPolygonPts,s.str)}for(let t=0;t<this.mPtArray.length;t++){let e=this.mPtArray[t];i.push(e.mX,e.mY,e.mZ)}this.mEndJig?n=this.mPtArray.length:(i[i.length]=this.mCursorPT3d.mX,i[i.length]=this.mCursorPT3d.mY,i[i.length]=this.mCursorPT3d.mZ,n=this.mPtArray.length+1),this.calcArrowHeader(),this.mArrowHead||(this.mPolygonPts=[]);let o=new HB(RB.RESTATTR);HZ.mZcGsPrimitiveCollector.mPrimitives.push(o),n>0&&HZ.mZcGsPrimitiveCollector.addPrimitive(RB.RAWPOLYLINE3D,3*n),HZ.mZcGsPrimitiveCollector.mPrimitives.push(o),this.mPolygonPts.forEach((t=>{i.push(t.mX),i.push(t.mY),i.push(t.mZ)})),HZ.mZcGsPrimitiveCollector.addFillmodePrimitive(RB.FILLMODE,BB.kZcDrFillAlways),this.mPolygonPts.length>0&&HZ.mZcGsPrimitiveCollector.addPrimitivePolygon(RB.POLYGON3D,3*this.mPolygonPts.length)}}calcArrowHeader(){if(this.mPtArray.length<1||null===this.mCurView||null===this.mCurView.mGraphicSystem)return;let t=1===this.mPtArray.length?this.mCursorPT3d:this.mPtArray[1],e=RV.zcutDistance(this.mPtArray[0],t);if(this.mPolygonPts=[],e>2*this.mArrowLength){let e=RV.zcutAngle(this.mPtArray[0],t),n=Math.sqrt(this.mArrowLength*this.mArrowLength*(1+1/9)),i=RV.zcutPolar(this.mPtArray[0],e+this.mArrowAngle/2,n),r=RV.zcutPolar(this.mPtArray[0],e-this.mArrowAngle/2,n);this.mPolygonPts.push(this.mPtArray[0],i,r)}}clear(){this.mPtArray=[],this.mPolygonPts=[],this.mEndJig=!1}}var hW,dW=((hW=dW||(dW={}))[hW.lStartBranch=0]="lStartBranch",hW[hW.lSecondPtBranch=1]="lSecondPtBranch",hW[hW.lNextPtBranch=2]="lNextPtBranch",hW[hW.lStartTextBranch=3]="lStartTextBranch",hW[hW.lNextTextBranch=4]="lNextTextBranch",hW[hW.lLineOptionBranch=5]="lLineOptionBranch",dW);class uW{constructor(){this.exeCmd=function*(){let t=n7.instance().mCmdExecutionStatus;if(!t)return!0;SF.log("Leader命令开始执行"),uW.resetFlags();let e=jF.instance().getCurView();uW.mCurView=e;let n=new cW;HZ._instance.setCurJig(n),null!==e&&(n.mCurView=e);let i=jF.instance().getInputContent(),r=jF.instance().getKeyboardFlags(),a=!1,o=n7.instance().mCommandBranch;for(void 0!==o.mainBranch&&(uW.mBranchStatus=Number(o.mainBranch));;){if(r=jF.instance().getKeyboardFlags(),t=n7.instance().mCmdExecutionStatus,r.esc||!t){uW.mSaveFlag=!1;break}switch(jF.instance().setCommandFlags({enter:null,esc:null}),uW.mBranchStatus){case dW.lStartBranch:if(SF.log("指定引线起点"),n7.instance().mZcBroadcast.broardcast(_F.History,{label:""+qF.mLanguagePackage.leader1}),yield!1,n7.instance().mkEscapeCaret){a=!0;break}if(i=jF.instance().getInputContent(),r=jF.instance().getKeyboardFlags(),r.esc)break;n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.leader1+i});let t=HZ.acquirePoint();t?(SF.log("获取第一个点"),n.mPtArray.push(t),uW.mBranchStatus=dW.lSecondPtBranch):""===i&&r.enter?a=!0:n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.needAPoint});break;case dW.lSecondPtBranch:if(SF.log("指定第二个点"),n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.nextPoint+": "}),yield!1,n7.instance().mkEscapeCaret){a=!0;break}if(i=jF.instance().getInputContent(),r=jF.instance().getKeyboardFlags(),r.esc)break;n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.nextPoint+": "+i});let e=HZ.acquirePoint();if(e){if(SF.log("获取第二个点"),n7.instance().mDrawCommentBubble&&e.isEqual(n.mPtArray[0]))continue;n.mPtArray.push(e),uW.mBranchStatus=dW.lNextPtBranch}else""===i&&r.enter?(HZ.clearJig(),a=!0):n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.needAPoint});break;case dW.lNextPtBranch:if(SF.log("指定其他的点"),n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.leaderNextPt}),yield!1,n7.instance().mkEscapeCaret){a=!0;break}if(i=jF.instance().getInputContent(),r=jF.instance().getKeyboardFlags(),r.esc)break;n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.leaderNextPt+i});let o=HZ.acquirePoint();if(o){if(SF.log("获取其他的点"),n7.instance().mDrawCommentBubble&&o.isEqual(n.mPtArray[n.mPtArray.length-1]))continue;n.mPtArray.push(o),uW.mBranchStatus=dW.lNextPtBranch}else if("A"===i.trim().toUpperCase()||""===i)if(n7.instance().mDrawCommentBubble&&(r.enter||n7.instance().isEndMobileContinuousBubbleCmd())){if(!n7.instance().isContinuousDraw()){a=!0;break}{let t=n7.instance().mGs;null!==t&&t.createLeaderBubble(cF(),n.mPtArray,n.mPolygonPts),n7.instance().isEndMobileContinuousBubbleCmd()?a=!0:(uW.mBranchStatus=dW.lStartBranch,n.clear())}}else uW.mBranchStatus=dW.lStartTextBranch,n.mEndJig=!0;else"F"===i.trim().toUpperCase()?uW.mBranchStatus=dW.lLineOptionBranch:n.mPtArray.length>=2&&"U"===i.trim().toUpperCase()?(n.mPtArray.pop(),1===n.mPtArray.length&&(uW.mBranchStatus=dW.lSecondPtBranch)):n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.plinePointOrKey});break;case dW.lLineOptionBranch:if(n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.leaderText3}),yield!1,n7.instance().mkEscapeCaret){a=!0;break}if(i=jF.instance().getInputContent(),r=jF.instance().getKeyboardFlags(),r.esc)break;n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.leaderText3+i}),"A"===i.trim().toUpperCase()?(n.mArrowHead=!0,uW.mArrowHead=1,uW.mBranchStatus=dW.lNextPtBranch):"N"===i.trim().toUpperCase()?(n.mArrowHead=!1,uW.mArrowHead=0,uW.mBranchStatus=dW.lNextPtBranch):"ST"===i.trim().toUpperCase()?(uW.mLineType=0,uW.mBranchStatus=dW.lNextPtBranch):"E"===i.trim().toUpperCase()||""===i&&r.enter?uW.mBranchStatus=dW.lNextPtBranch:""!==i&&r.enter&&n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.KeywordInvalid});break;case dW.lStartTextBranch:if(SF.log("输入注释文字的第一行"),n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.leaderText1}),jF.initialBlankControl(),yield!1,jF.resetBlankControl(),n7.instance().mkEscapeCaret){a=!0;break}if(i=jF.instance().getInputContent(),r=jF.instance().getKeyboardFlags(),r.esc)break;n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.leaderText1+i}),""!==i&&r.enter?(uW.mLeaderType=1,uW.mTexts+=i,uW.mBranchStatus=dW.lNextTextBranch):r.enter&&(uW.mTexts+=i,uW.mBranchStatus=dW.lNextTextBranch);break;case dW.lNextTextBranch:if(SF.log("输入注释文字的下一行"),n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.leaderText2}),jF.initialBlankControl(),yield!1,jF.resetBlankControl(),n7.instance().mkEscapeCaret){a=!0;break}if(i=jF.instance().getInputContent(),r=jF.instance().getKeyboardFlags(),r.esc)break;n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.leaderText2+i}),""!==i&&r.enter?(uW.mTexts+="\n"+i,uW.mLeaderType=1,uW.mBranchStatus=dW.lNextTextBranch):r.enter&&(uW.mSaveFlag=!0,a=!0)}if(a)break}return uW.saveLeader(),n.mPtArray=[],uW.mTexts="",uW.mBranchStatus=dW.lStartBranch,uW.mArrowHead=1,uW.mLeaderType=0,uW.mLineType=0,uW.mSaveFlag=!1,n7.instance().isEndMobileContinuousBubbleCmd()&&n7.instance().resetMobileContinuousBubbleCmdEndFlag(),SF.log("Leader命令执行结束"),!0},this.mExeCmd=this.exeCmd()}execute(){return!!this.mExeCmd.next().done}cmdString(){return"leader"}resetCmd(){this.mExeCmd=this.exeCmd()}static resetFlags(){jF.instance().setPointFlag(!1),jF.instance().clearInputContent(),jF.instance().setCommandFlags({enter:null,esc:null})}static saveLeader(){let t=HZ._instance.getCurJig();if(t&&!(t.mPtArray.length<=1)&&null!==uW.mCurView&&null!==uW.mCurView.mGraphicSystem){let e=[];for(let n=0;n<t.mPtArray.length;n++){let i=t.mPtArray[n],r=new QR;r.copy(i),uW.mCurView.unitPixelHeight<3&&(r.mX=Number(r.mX.toFixed(5)),r.mY=Number(r.mY.toFixed(5)),r.mZ=Number(r.mZ.toFixed(5))),e.push(r.mX,r.mY,r.mZ)}if(uW.mSaveFlag)t.mParams={entityType:_B.kZcDbLeader,leader:{curve:{entity:{color:yB.kByLayer,layer:String(uW.mCurView.mGraphicSystem.mDimensionLayerHandle),transparency:90,lineweight:pB.kLnWtByLayer}},points:e,textContent:uW.mTexts,arrowHead:uW.mArrowHead,leaderType:uW.mLeaderType,lineType:uW.mLineType,style:String(uW.mCurView.mGraphicSystem.mDimensionDimStyleHandle)}};else{let e=n7.instance();if(!e.mkEscapeCaret&&!e.isContinuousDraw()&&e.mDrawCommentBubble){let n=e.mGs;null!==n&&n.createLeaderBubble(cF(),t.mPtArray,t.mPolygonPts)}}}}}uW.mCurView=null,uW.mBranchStatus=dW.lStartBranch,uW.mTexts="",uW.mArrowHead=1,uW.mLeaderType=0,uW.mLineType=0,uW.mSaveFlag=!1;class mW extends HZ{constructor(){super(...arguments),this.mFirstPt=new QR,this.mSecondPt=new QR,this.mBranchStatus=gW.mStartBranch}doJig(){if(this.mFirstPt){if(null===this.mCurView||null===this.mCurView.mGraphicSystem)return;let t=this.mCurView.getGsWorldDraw();HZ.mZcGsPrimitiveCollector.clearCollector(),t.setCurPrimitveCollectorData(EB.kZcDrShorterm,HZ.mZcGsPrimitiveCollector);let e=HZ.mZcGsPrimitiveCollector.getBufferPoint(),n=this.mCurView.mGraphicSystem.mCurCursorPT,i=new QR(n.mX,n.mY,0);i=this.mCurView.scsPt2WcsPt(i);let r=new UB(RB.COLORRGBA32);switch(r.mColor=zV.jigLeader,HZ.mZcGsPrimitiveCollector.mPrimitives.push(r),this.mBranchStatus){case gW.mAPoint1Branch:e.push(this.mFirstPt.mX,this.mFirstPt.mY,this.mFirstPt.mZ),e.push(i.mX,i.mY,i.mZ),HZ.mZcGsPrimitiveCollector.addPrimitive(RB.RAWPOLYLINE3D,6);break;case gW.mAPoint2Branch:{e.push(this.mSecondPt.mX,this.mSecondPt.mY,this.mSecondPt.mZ),e.push(this.mFirstPt.mX,this.mFirstPt.mY,this.mFirstPt.mZ),e.push(i.mX,i.mY,i.mZ);let t=new HB(RB.RESTATTR);HZ.mZcGsPrimitiveCollector.mPrimitives.push(t),HZ.mZcGsPrimitiveCollector.addPrimitive(RB.RAWPOLYLINE3D,9);break}case gW.mACircleObjectBranch:e.push(this.mFirstPt.mX,this.mFirstPt.mY,this.mFirstPt.mZ),e.push(i.mX,i.mY,i.mZ),HZ.mZcGsPrimitiveCollector.addPrimitive(RB.RAWPOLYLINE3D,6)}}}setFirstPt(t){t&&this.mFirstPt.copy(t)}setSecondPt(t){t&&this.mSecondPt.copy(t)}cleanVertex(){this.mFirstPt=new QR,this.mSecondPt=new QR}}var pW,gW=((pW=gW||(gW={}))[pW.mStartBranch=0]="mStartBranch",pW[pW.mAStartBranch=1]="mAStartBranch",pW[pW.mACircleObjectBranch=2]="mACircleObjectBranch",pW[pW.mANextObjectBranch=3]="mANextObjectBranch",pW[pW.mAPointBranch=4]="mAPointBranch",pW[pW.mAPoint1Branch=5]="mAPoint1Branch",pW[pW.mAPoint2Branch=6]="mAPoint2Branch",gW);class fW{constructor(){this.exeCmd=function(){return Nk(this,arguments,(function*(){let t=n7.instance().mCmdExecutionStatus;if(!t)return yield Vk(!0);SF.log("MEASURE命令开始执行"),fW.resetFlags(),fW.mCurView=jF.instance().getCurView();let e=jF.instance().getInputContent(),n=jF.instance().getKeyboardFlags();fW.misEnd=!1;let i=new mW;HZ._instance.setCurJig(i),i.mCurView=fW.mCurView;let r=n7.instance().mCommandBranch;for(void 0!==r.mainBranch&&(i.mBranchStatus=r.mainBranch,fW.mBranchStatus=r.mainBranch);t=n7.instance().mCmdExecutionStatus,t&&!fW.misEnd;){switch(jF.instance().setCommandFlags({enter:null,esc:null}),fW.mBranchStatus){case gW.mStartBranch:if(i.mBranchStatus=gW.mStartBranch,SF.log("命令主阶段"),i.cleanVertex(),n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.measuregeomMain}),yield yield Vk(!1),n7.instance().mkEscapeCaret){fW.misEnd=!0;break}if(e=jF.instance().getInputContent(),n=jF.instance().getKeyboardFlags(),n.esc){fW.misEnd=!0;break}if("A"===e.trim().toUpperCase()||n.enter&&""===e){fW.mBranchStatus=gW.mAStartBranch,n7.instance().mExecuteEditableCmd=!1,n7.instance().mExecutingSelectEntityCmd=!0,n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.measuregeomMain+e});break}n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.measureWrong+e});break;case gW.mAStartBranch:{n7.instance().mExecutingSelectEntityCmd=!0,n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.angleMain}),SF.log("角度主阶段");let t=yield Vk(TF());if(SF.log(t),e=jF.instance().getInputContent(),n=jF.instance().getKeyboardFlags(),n.esc){fW.misEnd=!0;break}if(!t)break;let r=t.point;if(r){if(null===fW.mCurView||null===fW.mCurView.mGraphicSystem)break;SF.log("点了实体");let t=new QR;t.copy(fW.mCurView.scsPt2WcsPt(r)),fW.mCurView.mGraphicSystem.selectEntity({offsetX:r.mX,offsetY:r.mY});let e=yield Vk(zF());if(SF.log(e),""===e){if(yield yield Vk(!1),n7.instance().mkEscapeCaret){fW.misEnd=!0;break}break}fW.mPoints.push(t),fW.mHandleid=e,fW.mAngleNum=1,n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.angleMain}),fW.saveAngleObject();let n=yield Vk(RF());SF.log(n),n>=0&&void 0!==n?fW.misEnd=!0:-2===n?fW.mBranchStatus=gW.mANextObjectBranch:-1===n?(fW.mBranchStatus=gW.mACircleObjectBranch,i.mBranchStatus=gW.mACircleObjectBranch,n7.instance().mExecuteEditableCmd=!0,n7.instance().mExecutingSelectEntityCmd=!1,i.setFirstPt(fW.mCenterPoint)):(fW.mPoints.pop(),fW.mCurView.mGraphicSystem.popLastHighlight(),n7.instance().mZcBroadcast.broardcast(_F.GsInteraction,{type:"draw",data:{type:"Highlight"}}),n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.angleNeedLCA}))}else if(""!==e){n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.angleNeedLCA+e});break}if(n7.instance().mkEscapeCaret){fW.misEnd=!0;break}if(n.esc){fW.misEnd=!0;break}if(n.enter&&""===e){fW.mBranchStatus=gW.mAPointBranch,n7.instance().mExecuteEditableCmd=!0,n7.instance().mExecutingSelectEntityCmd=!1,n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.angleMain});break}break}case gW.mANextObjectBranch:{if(fW.misEnd)break;n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.angleChoseL2});let t=yield Vk(TF());if(n=jF.instance().getKeyboardFlags(),n.esc){fW.misEnd=!0;break}if(!t)break;let e=t.point;if(e){if(null===fW.mCurView||null===fW.mCurView.mGraphicSystem)break;SF.log("点了第二个实体");let t=new QR;t.copy(fW.mCurView.scsPt2WcsPt(e)),fW.mCurView.mGraphicSystem.selectEntity({offsetX:e.mX,offsetY:e.mY});let n=yield Vk(zF());if(SF.log(n),""===n){if(yield yield Vk(!1),n7.instance().mkEscapeCaret){fW.misEnd=!0;break}break}fW.mPoints.push(t),fW.mtoAngleHandleid=n,fW.mAngleNum=2,fW.mBranchStatus=gW.mANextObjectBranch,n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.angleChoseL2}),fW.saveAngleObject();let i=yield Vk(RF());SF.log(i),i>=0&&void 0!==i?fW.misEnd=!0:(fW.mPoints.pop(),-3!==i&&(fW.mCurView.mGraphicSystem.popLastHighlight(),n7.instance().mZcBroadcast.broardcast(_F.GsInteraction,{type:"draw",data:{type:"Highlight"}})),fW.mBranchStatus=gW.mANextObjectBranch,n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.angleNeedL}));break}break}case gW.mACircleObjectBranch:{if(SF.log("选取圆的第二个端点"),n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.anglePoint2}),n7.instance().mkEscapeCaret){fW.misEnd=!0;break}if(e=jF.instance().getInputContent(),n=jF.instance().getKeyboardFlags(),n.esc){fW.misEnd=!0;break}if(n.enter)break;let t=yield Vk(AF());if(!t)break;let r=t.point;r&&(SF.log("点了2点"),fW.mPoints.push(r),i.cleanVertex(),fW.mBranchStatus=gW.mStartBranch,n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.anglePoint2}),fW.misEnd=!0,fW.mAngleNum++,fW.saveAngleObject());break}case gW.mAPointBranch:{if(SF.log("角度选顶点"),n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.anglePoint0}),yield yield Vk(!1),n7.instance().mkEscapeCaret){fW.misEnd=!0;break}if(e=jF.instance().getInputContent(),n=jF.instance().getKeyboardFlags(),n.esc){fW.misEnd=!0;break}if(n.enter){fW.mBranchStatus=gW.mStartBranch,n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.anglePoint0});break}let t=HZ.acquirePoint();if(t){SF.log("点了顶点"),fW.mPoints.push(t),i.setFirstPt(t),fW.mBranchStatus=gW.mAPoint1Branch,i.mBranchStatus=gW.mAPoint1Branch,n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.anglePoint0});break}break}case gW.mAPoint1Branch:{if(SF.log("角度选第一个端点"),n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.anglePoint1}),yield yield Vk(!1),n7.instance().mkEscapeCaret){fW.misEnd=!0;break}if(e=jF.instance().getInputContent(),n=jF.instance().getKeyboardFlags(),n.esc){fW.misEnd=!0;break}if(n.enter){fW.mBranchStatus=gW.mStartBranch,n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.anglePoint1});break}let t=HZ.acquirePoint();if(t){SF.log("点了1点"),fW.mPoints.push(t),i.setSecondPt(t),fW.mBranchStatus=gW.mAPoint2Branch,i.mBranchStatus=gW.mAPoint2Branch,n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.anglePoint1});break}break}case gW.mAPoint2Branch:{if(SF.log("角度选第二个端点"),n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.anglePoint2}),yield yield Vk(!1),n7.instance().mkEscapeCaret){fW.misEnd=!0;break}if(e=jF.instance().getInputContent(),n=jF.instance().getKeyboardFlags(),n.esc){fW.misEnd=!0;break}if(n.enter){fW.mBranchStatus=gW.mStartBranch,n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.anglePoint2});break}let t=HZ.acquirePoint();if(t){SF.log("点了2点"),fW.mPoints.push(t),i.cleanVertex(),fW.mBranchStatus=gW.mStartBranch,n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.anglePoint2}),fW.misEnd=!0,fW.mAngleNum++,fW.saveAnglePoint();break}break}}if(fW.misEnd)break}return fW.mCurView&&fW.mCurView.mGraphicSystem&&fW.mCurView.mGraphicSystem.clearHighlight(),fW.mPoints=[],fW.mAngleNum=0,fW.mHandleid="",fW.mtoAngleHandleid="",fW.mBranchStatus=gW.mStartBranch,HZ.clearJig(),SF.log("MEASURE命令执行结束"),yield Vk(!0)}))},this.mExeCmd=this.exeCmd()}execute(){var t=this;return jR((function*(){let e=yield t.mExeCmd.next();return!(!e.done&&!e.value)}))()}cmdString(){return"measuregeom"}static saveAnglePoint(){if(null!==fW.mCurView&&null!==fW.mCurView.mGraphicSystem){let t=[],e=100,n=fW.mAngleNum;for(let e=0;e<fW.mPoints.length;e++){let n=fW.mPoints[e],i=new QR;i.copy(n),fW.mCurView.unitPixelHeight<3&&(i.mX=Number(i.mX.toFixed(5)),i.mY=Number(i.mY.toFixed(5)),i.mZ=Number(i.mZ.toFixed(5))),t.push(i.mX,i.mY,i.mZ)}fW.mCurView.mGraphicSystem.saveEntities({id:e7.getAngle,function:24,data:{docId:fW.mCurView.mGraphicSystem.mDocId,content:{opt:5,angle:{angleNum:n,entityType:e,points:t}}}})}}static saveAngleObject(){if(null!==fW.mCurView&&null!==fW.mCurView.mGraphicSystem){let t=[],e=fW.mHandleid,n=fW.mtoAngleHandleid,i=113,r=fW.mAngleNum;for(let e=0;e<fW.mPoints.length;e++){let n=fW.mPoints[e],i=new QR;i.copy(n),fW.mCurView.unitPixelHeight<3&&(i.mX=Number(i.mX.toFixed(5)),i.mY=Number(i.mY.toFixed(5)),i.mZ=Number(i.mZ.toFixed(5))),t.push(i.mX,i.mY,i.mZ)}fW.mCurView.mGraphicSystem.saveEntities({id:e7.getAngle,function:24,data:{docId:fW.mCurView.mGraphicSystem.mDocId,content:{opt:5,angle:{angleNum:r,entityType:i,handleId:e,toAngleHandleId:n,points:t}}}})}}static resetFlags(){let t=jF.instance();t.setPointFlag(!1),t.setInputContent("")}resetCmd(){this.mExeCmd=this.exeCmd()}}fW.mBranchStatus=gW.mStartBranch,fW.mAngleNum=0,fW.misEnd=!1,fW.mCurView=null,fW.mPoints=new Array;class bW extends HZ{constructor(){super(...arguments),this.mBranchStatus=wW.kLeaderHeadFirst,this.mCurMainBranch=wW.kLeaderHeadFirst,this.mPtArray=[],this.mArrowLength=4,this.mArrowAngle=20*Math.PI/180,this.mPolygonPts=[],this.mArrowHead=!0,this.flagWasm=!1,this.mMleader={LeaderType:xW.kStraightLeader,doglegEnabled:!0,doglegLength:8,maxNodeNumber:2,content:"",mArrowHeadPt:void 0,mDoglegPt:void 0,mTextPt:void 0,points:[]},this.mTextProperties={textPt:new QR,textDir:new qR(1,0,0),textVerDir:new qR(0,1,0),boundBox:{max:[-1,-1],min:[0,0]},textHeight:2.5,textWidth:0,xScale:1,obliquingAngle:0,content:this.mMleader.content,textNumber:11,flags:[],textStyle:{fontSize:2.5,fontFamily:"SimSun",fontHeight:1483,fontAbove:752,fontAverageWidth:616,fontAscent:1188,fontWeight:400,fontItalic:0},trackingPercent:1,charset:134,renderMode:3,raw:0,underline:0,backward:0,upsidedown:0,vertical:0,overlined:0,strikethrough:0}}doJig(){if(null===this.mCurView||null===this.mCurView.mGraphicSystem)return;let t=this.mCurView.getGsWorldDraw();HZ.mZcGsPrimitiveCollector.clearCollector(),t.setCurPrimitveCollectorData(EB.kZcDrShorterm,HZ.mZcGsPrimitiveCollector);let e=HZ.mZcGsPrimitiveCollector.getBufferPoint(),n=this.mCurView.mGraphicSystem.mCurCursorPT,i=new QR(n.mX,n.mY,0);switch(this.mCursorPT3d=this.mCurView.scsPt2WcsPt(i),this.mBranchStatus){case wW.kSetHeadNextPt:if(void 0===this.mMleader.mArrowHeadPt||(null==this.mDoglegPt2&&(this.mDoglegPt2=new QR),this.mDoglegPt2.copy(this.mCursorPT3d),this.getDoglegPtByDoglegPt2(),void 0===this.mMleader.mDoglegPt))break;e.push(this.mMleader.mArrowHeadPt.mX,this.mMleader.mArrowHeadPt.mY,this.mMleader.mArrowHeadPt.mZ),this.genLeaderLine(e),this.mDoglegPt2&&e.push(this.mDoglegPt2.mX,this.mDoglegPt2.mY,this.mDoglegPt2.mZ),e.push(this.mMleader.mDoglegPt.mX,this.mMleader.mDoglegPt.mY,this.mMleader.mDoglegPt.mZ),this.calcArrowHeader(),this.genMleader(e);break;case wW.kSetContentL:case wW.kSetLinePos:if(void 0===this.mMleader.mArrowHeadPt)break;if(this.mBranchStatus===wW.kSetContentL){if(void 0===this.mDoglegPt2)break}else this.mDoglegPt2=new QR,this.mDoglegPt2.copy(this.mCursorPT3d),this.getDoglegPtAtSetHeadNextPt();if(void 0===this.mMleader.mDoglegPt)break;e.push(this.mMleader.mArrowHeadPt.mX,this.mMleader.mArrowHeadPt.mY,this.mMleader.mArrowHeadPt.mZ),this.genLeaderLine(e),this.mDoglegPt2&&e.push(this.mDoglegPt2.mX,this.mDoglegPt2.mY,this.mDoglegPt2.mZ),e.push(this.mMleader.mDoglegPt.mX,this.mMleader.mDoglegPt.mY,this.mMleader.mDoglegPt.mZ),this.calcArrowHeader(),this.genMleader(e);break;case wW.kSetLineNextPt:void 0===this.mMleader.mDoglegPt&&(this.mMleader.mDoglegPt=new QR),this.mMleader.mArrowHeadPt=new QR,this.mMleader.mArrowHeadPt.copy(this.mCursorPT3d),0===this.mPtArray.length&&this.getDoglegPtByDoglegPt2(),e.push(this.mMleader.mDoglegPt.mX,this.mMleader.mDoglegPt.mY,this.mMleader.mDoglegPt.mZ),this.mDoglegPt2&&e.push(this.mDoglegPt2.mX,this.mDoglegPt2.mY,this.mDoglegPt2.mZ),this.genLeaderLine(e),e.push(this.mMleader.mArrowHeadPt.mX,this.mMleader.mArrowHeadPt.mY,this.mMleader.mArrowHeadPt.mZ),this.calcArrowHeader(),this.genMleader(e);break;case wW.kSetContentH:case wW.kSetHeadPos:if(void 0===this.mDoglegPt2)break;if(this.mBranchStatus===wW.kSetContentH){if(void 0===this.mMleader.mArrowHeadPt)break}else this.mMleader.mArrowHeadPt=new QR,this.mMleader.mArrowHeadPt.copy(this.mCursorPT3d),0===this.mPtArray.length&&this.getDoglegPtByDoglegPt2();if(!this.mMleader.mDoglegPt)return;e.push(this.mMleader.mDoglegPt.mX,this.mMleader.mDoglegPt.mY,this.mMleader.mDoglegPt.mZ),this.mDoglegPt2&&e.push(this.mDoglegPt2.mX,this.mDoglegPt2.mY,this.mDoglegPt2.mZ),this.genLeaderLine(e),e.push(this.mMleader.mArrowHeadPt.mX,this.mMleader.mArrowHeadPt.mY,this.mMleader.mArrowHeadPt.mZ),this.calcArrowHeader(),this.genMleader(e);break;case wW.kSetContentNextPt:case wW.kSetLineAndHeadPos:if(void 0===this.mMleader.mTextPt||void 0===this.mMleader.mDoglegPt)break;this.fillText(),this.mMleader.mArrowHeadPt=new QR,this.mMleader.mArrowHeadPt.copy(this.mCursorPT3d),0===this.mPtArray.length&&this.getDoglegPt2(this.mMleader.mArrowHeadPt),e.push(this.mMleader.mDoglegPt.mX,this.mMleader.mDoglegPt.mY,this.mMleader.mDoglegPt.mZ),this.mDoglegPt2&&e.push(this.mDoglegPt2.mX,this.mDoglegPt2.mY,this.mDoglegPt2.mZ),this.genLeaderLine(e),e.push(this.mCursorPT3d.mX,this.mCursorPT3d.mY,this.mCursorPT3d.mZ),this.mMleader.mArrowHeadPt=new QR,this.mMleader.mArrowHeadPt.copy(this.mCursorPT3d),this.calcArrowHeader(),this.genMleader(e)}}genLeaderLine(t){this.mPtArray.forEach((e=>{t.push(e.mX,e.mY,e.mZ)}))}getDoglegPtAtSetHeadNextPt(){!this.mDoglegPt2||!this.mMleader.mArrowHeadPt||(this.mMleader.mDoglegPt=new QR,this.mMleader.mDoglegPt.mX=0===this.mPtArray.length?this.mDoglegPt2.mX<this.mMleader.mArrowHeadPt.mX?this.mDoglegPt2.mX-this.mMleader.doglegLength:this.mDoglegPt2.mX+this.mMleader.doglegLength:this.mDoglegPt2.mX<this.mPtArray[this.mPtArray.length-1].mX?this.mDoglegPt2.mX-this.mMleader.doglegLength:this.mDoglegPt2.mX+this.mMleader.doglegLength,this.mMleader.mDoglegPt.mY=this.mDoglegPt2.mY,this.mMleader.mDoglegPt.mZ=this.mDoglegPt2.mZ)}getDoglegPtByDoglegPt2(){!this.mDoglegPt2||!this.mMleader||!this.mMleader.mArrowHeadPt||(this.mMleader.mDoglegPt=new QR,this.mMleader.mDoglegPt.mX=this.mDoglegPt2.mX<this.mMleader.mArrowHeadPt.mX?this.mDoglegPt2.mX-this.mMleader.doglegLength:this.mDoglegPt2.mX+this.mMleader.doglegLength,this.mMleader.mDoglegPt.mY=this.mDoglegPt2.mY,this.mMleader.mDoglegPt.mZ=this.mDoglegPt2.mZ)}getDoglegPtByDoglegPt2Defalut(){!this.mDoglegPt2||!this.mMleader.mDoglegPt||(this.mMleader.mDoglegPt.mX=this.mDoglegPt2.mX+this.mMleader.doglegLength,this.mMleader.mDoglegPt.mY=this.mDoglegPt2.mY,this.mMleader.mDoglegPt.mZ=this.mDoglegPt2.mZ)}getDoglegPt2(t){null==this.mMleader.mDoglegPt&&(this.mMleader.mDoglegPt=new QR),null==this.mDoglegPt2&&(this.mDoglegPt2=new QR),this.mMleader.mTextPt&&t&&(t.mX<=this.mMleader.mTextPt.mX+this.mTextProperties.textWidth/2?(this.mMleader.mDoglegPt.mX=this.mMleader.mTextPt.mX,this.mDoglegPt2.mX=this.mMleader.mDoglegPt.mX-this.mMleader.doglegLength):(this.mMleader.mDoglegPt.mX=this.mMleader.mTextPt.mX+this.mTextProperties.textWidth,this.mDoglegPt2.mX=this.mMleader.mDoglegPt.mX+this.mMleader.doglegLength),this.mMleader.mDoglegPt.mY=this.mMleader.mTextPt.mY+this.mTextProperties.textHeight/2,this.mMleader.mDoglegPt.mZ=this.mMleader.mTextPt.mZ,this.mDoglegPt2.mY=this.mMleader.mDoglegPt.mY,this.mDoglegPt2.mZ=this.mMleader.mDoglegPt.mZ)}genMleader(t){this.mArrowHead||(this.mPolygonPts=[]);let e=new HB(RB.RESTATTR);HZ.mZcGsPrimitiveCollector.mPrimitives.push(e),HZ.mZcGsPrimitiveCollector.addPrimitive(RB.RAWPOLYLINE3D,this.mMleader.doglegEnabled?9+3*this.mPtArray.length:6+3*this.mPtArray.length),this.mPolygonPts.forEach((e=>{t.push(e.mX),t.push(e.mY),t.push(e.mZ)})),HZ.mZcGsPrimitiveCollector.addFillmodePrimitive(RB.FILLMODE,BB.kZcDrFillAlways),HZ.mZcGsPrimitiveCollector.addPrimitivePolygon(RB.POLYGON3D,3*this.mPolygonPts.length)}calcArrowHeader(){if(void 0===this.mMleader.mArrowHeadPt)return;let t=this.mDoglegPt2;if(this.mPtArray.length>0&&(t=this.mCurMainBranch===wW.kLeaderHeadFirst?this.mPtArray[0]:this.mPtArray[this.mPtArray.length-1]),t){let e=RV.zcutDistance(this.mMleader.mArrowHeadPt,t);if(this.mPolygonPts=[],e>2*this.mArrowLength){let e=RV.zcutAngle(this.mMleader.mArrowHeadPt,t),n=Math.sqrt(this.mArrowLength*this.mArrowLength*(1+1/9)),i=RV.zcutPolar(this.mMleader.mArrowHeadPt,e+this.mArrowAngle/2,n),r=RV.zcutPolar(this.mMleader.mArrowHeadPt,e-this.mArrowAngle/2,n);this.mPolygonPts.push(this.mMleader.mArrowHeadPt,i,r)}}}calcmDoglegByTextPt(){void 0===this.mMleader.mTextPt||void 0===this.mCursorPT3d||(this.mMleader.mDoglegPt=new QR,this.mMleader.mDoglegPt.mX=this.mCursorPT3d.mX<=this.mMleader.mTextPt.mX+this.mTextProperties.textWidth/2?this.mMleader.mTextPt.mX:this.mMleader.mTextPt.mX+this.mTextProperties.textWidth,this.mMleader.mDoglegPt.mY=this.mMleader.mTextPt.mY+this.mTextProperties.textHeight/2,this.mMleader.mDoglegPt.mZ=this.mMleader.mTextPt.mZ)}fillText(){if(void 0!==this.mMleader.mTextPt)if(0==this.flagWasm&&(this.flagWasm=!0,this.mTextProperties.content=this.mMleader.content,this.mTextProperties.textPt=this.mMleader.mTextPt,this.generateText(this.mTextProperties),this.mTextProperties.content=this.mMleader.content),0!==this.mTextProperties.textWidth){let t=new HB(RB.RESTATTR);HZ.mZcGsPrimitiveCollector.mPrimitives.push(t),HZ.mZcGsPrimitiveCollector.addPrimitiveText3d(RB.TEXT3D,4,this.mTextProperties)}else{let t=new HB(RB.RESTATTR);HZ.mZcGsPrimitiveCollector.mPrimitives.push(t),HZ.mZcGsPrimitiveCollector.addPrimitiveText3d(RB.TEXT3D,0,this.mTextProperties)}}reset(){let t=XF.instance().getItem("MleaderBranch","session");t&&(this.mBranchStatus=t)}}var yW,vW,wW=((vW=wW||(wW={}))[vW.kLeaderHeadFirst=1]="kLeaderHeadFirst",vW[vW.kLeaderLineFirst=2]="kLeaderLineFirst",vW[vW.kLeaderContentFirst=3]="kLeaderContentFirst",vW[vW.kSetLinePos=4]="kSetLinePos",vW[vW.kSetContentL=5]="kSetContentL",vW[vW.kSetHeadPos=6]="kSetHeadPos",vW[vW.kSetContentH=7]="kSetContentH",vW[vW.kSetLineAndHeadPos=8]="kSetLineAndHeadPos",vW[vW.kSetContentFirst=9]="kSetContentFirst",vW[vW.kOptions=10]="kOptions",vW[vW.kLeaderType=11]="kLeaderType",vW[vW.kStraightLeader=12]="kStraightLeader",vW[vW.kInVisibleLeader=13]="kInVisibleLeader",vW[vW.kSplineLeader=14]="kSplineLeader",vW[vW.kSetContent=15]="kSetContent",vW[vW.kDogleg=16]="kDogleg",vW[vW.kDoglegLength=17]="kDoglegLength",vW[vW.kDoglegLengthByPt=18]="kDoglegLengthByPt",vW[vW.kMaxNodeNumber=19]="kMaxNodeNumber",vW[vW.kSetHeadNextPt=20]="kSetHeadNextPt",vW[vW.kSetLineNextPt=21]="kSetLineNextPt",vW[vW.kSetContentNextPt=22]="kSetContentNextPt",vW[vW.kEndCmd=23]="kEndCmd",wW),xW=((yW=xW||(xW={}))[yW.kStraightLeader=1]="kStraightLeader",yW[yW.kSplineLeader=2]="kSplineLeader",yW[yW.kInVisibleLeader=3]="kInVisibleLeader",xW);new $F;class CW{constructor(){this.exeCmd=function*(){let t=n7.instance().mCmdExecutionStatus;if(!t)return!0;SF.log("MLeader命令开始执行"),jF.instance().setCommandFlags({enter:null,esc:null});let e=jF.instance().getCurView(),n=new bW;HZ._instance.setCurJig(n),n.reset(),null!==e&&(n.mCurView=e);let i,r=n.acquireString(),a=jF.instance().getKeyboardFlags(),o=!1,s=0,l=0,c=new QR,h=new QR;for(;t=n7.instance().mCmdExecutionStatus,t;){switch(n.mBranchStatus){case wW.kLeaderHeadFirst:if(n.mCurMainBranch=wW.kLeaderHeadFirst,n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.mldHeadFirst}),yield!1,n7.instance().mkEscapeCaret){o=!0;break}if(r=n.acquireString(),n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.mldHeadFirst+r}),"C"===r.toUpperCase()){n.mBranchStatus=wW.kLeaderContentFirst;break}if("L"===r.toUpperCase()){n.mBranchStatus=wW.kLeaderLineFirst;break}if("O"===r.toUpperCase()){n.mBranchStatus=wW.kOptions;break}i=HZ.acquirePoint(),i?(n.mMleader.mArrowHeadPt=new QR,n.mMleader.mArrowHeadPt.copy(i),n.mBranchStatus=n.mMleader.maxNodeNumber>2?wW.kSetHeadNextPt:wW.kSetLinePos):n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.errMsgCommon});break;case wW.kSetHeadNextPt:case wW.kSetLineNextPt:case wW.kSetContentNextPt:for(n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.nextPoint}),l=n.mMleader.maxNodeNumber-2;l>0;){if(yield!1,n7.instance().mkEscapeCaret){o=!0;break}r=n.acquireString(),n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.nextPoint+r}),i=HZ.acquirePoint(),i?(n.mPtArray.push(i),l--):n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.needPoint})}n.mBranchStatus=n.mCurMainBranch===wW.kLeaderContentFirst?wW.kSetLineAndHeadPos:n.mCurMainBranch===wW.kLeaderLineFirst?wW.kSetHeadPos:wW.kSetLinePos;break;case wW.kSetLinePos:if(n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.mldLinePosition}),yield!1,n7.instance().mkEscapeCaret){o=!0;break}r=n.acquireString(),i=HZ.acquirePoint(),n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.mldLinePosition+r}),i?(n.mDoglegPt2=new QR,n.mDoglegPt2.copy(i),n.mBranchStatus=wW.kSetContentL):n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.needPoint});break;case wW.kSetHeadPos:if(n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.mldHeadPosition}),yield!1,n7.instance().mkEscapeCaret){o=!0;break}r=n.acquireString(),i=HZ.acquirePoint(),n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.mldHeadPosition+r}),i&&(n.mMleader.mArrowHeadPt=new QR,n.mMleader.mArrowHeadPt.copy(i),n.mBranchStatus=wW.kSetContentH);break;case wW.kLeaderLineFirst:if(n.mCurMainBranch=wW.kLeaderLineFirst,n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.mldLineFirst}),yield!1,n7.instance().mkEscapeCaret){o=!0;break}if(r=n.acquireString(),n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.mldLineFirst+r}),"H"===r.toUpperCase()){n.mBranchStatus=wW.kLeaderHeadFirst;break}if("C"===r.toUpperCase()){n.mBranchStatus=wW.kLeaderContentFirst;break}if("O"===r.toUpperCase()){n.mBranchStatus=wW.kOptions;break}i=HZ.acquirePoint(),i?(n.mDoglegPt2=new QR,n.mDoglegPt2.copy(i),n.getDoglegPtByDoglegPt2Defalut(),n.mBranchStatus=n.mMleader.maxNodeNumber>2?wW.kSetLineNextPt:wW.kSetHeadPos):n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.errMsgCommon});break;case wW.kLeaderContentFirst:if(n.mCurMainBranch=wW.kLeaderContentFirst,n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.mldContentFirst}),yield!1,n7.instance().mkEscapeCaret){o=!0;break}if(r=n.acquireString(),n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.mldContentFirst+r}),"H"===r.toUpperCase()){n.mBranchStatus=wW.kLeaderHeadFirst;break}if("L"===r.toUpperCase()){n.mBranchStatus=wW.kLeaderLineFirst;break}if("O"===r.toUpperCase()){n.mBranchStatus=wW.kOptions;break}i=HZ.acquirePoint(),i?(n.mMleader.mTextPt=new QR,n.mMleader.mTextPt.copy(i),n.calcmDoglegByTextPt(),n.mBranchStatus=wW.kSetContentFirst):n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.errMsgCommon});break;case wW.kSetContentFirst:if(jF.initialBlankControl(),n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.mldText}),yield!1,jF.resetBlankControl(),n7.instance().mkEscapeCaret){o=!0;break}r=n.acquireString(),n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.mldText+r}),n.mMleader.content=r,n.mBranchStatus=n.mMleader.maxNodeNumber>2?wW.kSetContentNextPt:wW.kSetLineAndHeadPos;break;case wW.kSetLineAndHeadPos:if(n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.mldHeadPosition}),yield!1,n7.instance().mkEscapeCaret){o=!0;break}r=n.acquireString(),n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.mldHeadPosition+r}),i=HZ.acquirePoint(),i&&(n.mMleader.mArrowHeadPt=new QR,n.mMleader.mArrowHeadPt.copy(i),o=!0);break;case wW.kSetContentL:case wW.kSetContentH:if(n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.mldText}),jF.initialBlankControl(),yield!1,jF.resetBlankControl(),n7.instance().mkEscapeCaret){o=!0;break}r=n.acquireString(),n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.mldText+r}),n.mMleader.content=r,o=!0;break;case wW.kOptions:if(n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.mldOptions}),yield!1,n7.instance().mkEscapeCaret){o=!0;break}r=n.acquireString(),a=jF.instance().getKeyboardFlags(),i=HZ.acquirePoint(),n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.mldOptions+r}),"L"===r.toUpperCase()||!i&&a.enter&&""===r.toUpperCase()?n.mBranchStatus=wW.kLeaderType:"A"===r.toUpperCase()?n.mBranchStatus=wW.kDogleg:"M"===r.toUpperCase()?n.mBranchStatus=wW.kMaxNodeNumber:"X"===r.toUpperCase()?n.mBranchStatus=n.mMleader.LeaderType===xW.kInVisibleLeader?wW.kInVisibleLeader:n.mCurMainBranch:n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.KeywordInvalid});break;case wW.kLeaderType:if(n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.mldLeaderType}),yield!1,n7.instance().mkEscapeCaret){o=!0;break}r=n.acquireString(),a=jF.instance().getKeyboardFlags(),n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.mldLeaderType+r}),"S"===r.toUpperCase()||a.enter&&""===r.toUpperCase()?(n.mMleader.LeaderType=xW.kStraightLeader,n.mBranchStatus=wW.kOptions):"N"===r.toUpperCase()?(n.mMleader.LeaderType=xW.kInVisibleLeader,n.mBranchStatus=wW.kOptions):n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.KeywordInvalid});break;case wW.kDogleg:if(n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.mldDogleg}),yield!1,n7.instance().mkEscapeCaret){o=!0;break}r=n.acquireString(),a=jF.instance().getKeyboardFlags(),n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.mldDogleg+r}),"Y"===r.toUpperCase()||a.enter&&""===r.toUpperCase()?(n.mMleader.doglegEnabled=!0,n.mBranchStatus=wW.kDoglegLength):"N"===r.toUpperCase()?(n.mMleader.doglegEnabled=!1,n.mBranchStatus=wW.kOptions):n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.KeywordInvalid});break;case wW.kDoglegLength:if(n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.mldDoglegDist+" <"+n.mMleader.doglegLength+">: "}),yield!1,n7.instance().mkEscapeCaret){o=!0;break}r=n.acquireString(),n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.mldDoglegDist+" <"+n.mMleader.doglegLength+">: "+r}),i=HZ.acquirePoint(),s=n.acquireNumber(),a=jF.instance().getKeyboardFlags(),i?(c.copy(i),n.mBranchStatus=wW.kDoglegLengthByPt):s>0?(n.mMleader.doglegLength=s,n.mBranchStatus=wW.kOptions):a.enter&&""===r.toUpperCase()?n.mBranchStatus=wW.kOptions:n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.rectPtOrValue});break;case wW.kDoglegLengthByPt:if(n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.nextDtPoint+" "}),yield!1,n7.instance().mkEscapeCaret){o=!0;break}r=n.acquireString(),n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.arcRadius+r}),i=HZ.acquirePoint(),i?(h.copy(i),n.mMleader.doglegLength=n.acquireDist(h,c),n.mBranchStatus=wW.kOptions):n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.needAPoint});break;case wW.kMaxNodeNumber:if(n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.mldMaxNodeNumber+"<"+n.mMleader.maxNodeNumber+">: "}),yield!1,n7.instance().mkEscapeCaret){o=!0;break}r=n.acquireString(),n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.mldMaxNodeNumber+"<"+n.mMleader.maxNodeNumber+">: "+r}),s=n.acquireNumber(),a=jF.instance().getKeyboardFlags(),s>0?(n.mMleader.maxNodeNumber=s,n.mBranchStatus=wW.kOptions):a.enter&&""===r.toUpperCase()?n.mBranchStatus=wW.kOptions:n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.needInt});break;case wW.kInVisibleLeader:if(n.mCurMainBranch=wW.kLeaderContentFirst,n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.mldContentFirst+" "}),yield!1,n7.instance().mkEscapeCaret){o=!0;break}if(r=n.acquireString(),n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.mldContentFirst+r}),i=HZ.acquirePoint(),"O"===r.toUpperCase()){n.mBranchStatus=wW.kOptions;break}if("H"===r.toUpperCase()||"L"===r.toUpperCase()){n.mBranchStatus=wW.kInVisibleLeader;break}i?(n.mMleader.mTextPt=new QR,n.mMleader.mTextPt.copy(i),n.mBranchStatus=wW.kSetContent):n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.errMsgCommon});break;case wW.kSetContent:if(n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.mldText+" "}),jF.initialBlankControl(),yield!1,jF.resetBlankControl(),n7.instance().mkEscapeCaret){o=!0;break}r=n.acquireString(),n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.mldText+r}),i=HZ.acquirePoint(),i?n.mBranchStatus=wW.kEndCmd:(n.mMleader.content=r,o=!0)}if(o||n.mBranchStatus===wW.kEndCmd)break}if(!n7.instance().mkEscapeCaret&&o&&n&&(n.fillText(),null!==e&&null!==e.mGraphicSystem&&null!==e.mGraphicSystem.mDimensionLayerHandle)){let t=n.mMleader.mArrowHeadPt,i=n.mDoglegPt2;if(n.mCurMainBranch!==wW.kLeaderHeadFirst&&(t=n.mDoglegPt2,i=n.mMleader.mArrowHeadPt),t&&i){let r=[];r.push(t.mX,t.mY,t.mZ),n.mPtArray.forEach((t=>{r.push(t.mX,t.mY,t.mZ)})),r.push(i.mX,i.mY,i.mZ),n.mParams={entityType:_B.kZcDbMleader,mleader:{curve:{entity:{color:yB.kByLayer,layer:String(e.mGraphicSystem.mDimensionLayerHandle),transparency:90,lineweight:pB.kLnWtByLayer}},points:r,textContent:n.mMleader.content,leaderCreateMode:n.mCurMainBranch>1?1:0,lineType:n.mMleader.LeaderType,enableDogleg:n.mMleader.doglegEnabled?1:0,doglegLength:n.mMleader.doglegLength}}}else n.mMleader.LeaderType===xW.kInVisibleLeader&&void 0!==n.mMleader.mTextPt&&(n.mParams={entityType:_B.kZcDbMleader,mleader:{curve:{entity:{color:yB.kByLayer,layer:String(e.mGraphicSystem.mDimensionLayerHandle),transparency:90,lineweight:pB.kLnWtByLayer}},points:[n.mMleader.mTextPt.mX,n.mMleader.mTextPt.mY,n.mMleader.mTextPt.mZ],textContent:n.mMleader.content,leaderCreateMode:n.mCurMainBranch>1?1:0,lineType:xW.kInVisibleLeader,enableDogleg:0,doglegLength:0}})}return XF.instance().setItem("MleaderBranch",n.mCurMainBranch,"session"),SF.log("MLeader命令执行结束"),!0},this.mExeCmd=this.exeCmd()}execute(){return!!this.mExeCmd.next().done}cmdString(){return"mleader"}resetCmd(){this.mExeCmd=this.exeCmd()}static resetFlags(){jF.instance().setPointFlag(!1),jF.instance().clearInputContent(),jF.instance().setCommandFlags({enter:null,esc:null})}}new $F;class kW{constructor(){this.exeCmd=function(){return Nk(this,arguments,(function*(){return n7.instance().mCmdExecutionStatus?(SF.log("Options命令开始执行"),n7.instance().mModalOpened=!0,yield Vk(GF()),n7.instance().mModalOpened=!1,SF.log("Options命令执行结束"),yield Vk(!0)):yield Vk(!0)}))},this.mExeCmd=this.exeCmd()}execute(){var t=this;return jR((function*(){let e=yield t.mExeCmd.next();return!(!e.done&&!e.value)}))()}cmdString(){return"options"}resetCmd(){this.mExeCmd=this.exeCmd()}}new $F;class SW{constructor(){this.exeCmd=function*(){if(!n7.instance().mCmdExecutionStatus)return!0;SF.log("PAN命令开始执行"),MF.instance().broardcast(_F.GsInteraction,{type:"drawCursor",data:{type:"drag"}}),jF.instance().setCommandFlags({enter:null,esc:null}),n7.instance().mZcBroadcast.broardcast(_F.History,{label:"",history:qF.mLanguagePackage.escEnterTip});let t=jF.instance().getKeyboardFlags();for(n7.instance().mZcBroadcast.broardcast(_F.History,{label:"clearLabel",history:""});!t.enter&&!t.esc;)yield!1,t=jF.instance().getKeyboardFlags();if(t.enter){let t=jF.instance().getInputContent();t.trim()&&n7.instance().mZcBroadcast.broardcast(_F.History,{label:"",history:t})}else t.esc&&(""!==n7.instance().mNextExecuteCmd||n7.instance().mZcBroadcast.broardcast(_F.History,{label:"",history:qF.mLanguagePackage.command+":*"+qF.mLanguagePackage.cancel+"*"}));return MF.instance().broardcast(_F.GsInteraction,{type:"drawCursor",data:{type:"normal"}}),SF.log("PAN命令执行结束"),!0},this.mExeCmd=this.exeCmd()}execute(){return!!this.mExeCmd.next().done}cmdString(){return"pan"}resetCmd(){this.mExeCmd=this.exeCmd()}}class PW extends HZ{constructor(){super(...arguments),this.mEndJig=!1,this.mCursorPt=new QR,this.mLineArray=[],this.mLastArcEndPt=new QR,this.mLineType="line",this.mTempDirection=0,this.mLastDirection=0,this.mDrawLineArr=[],this.mArc={center:new QR,radius:0,normal:new qR,thickness:0,startVec:new qR,sweepAngle:0},this.mCentralAngQuarter=0,this.mArcBulge=0,this.mCanJigWithoutEdit=!0}doJig(){if(this.mLineArray.length>0&&!this.mEndJig){if(null===this.mCurView||null===this.mCurView.mGraphicSystem)return;let t=this.mCurView.getGsWorldDraw();HZ.mZcGsPrimitiveCollector.clearCollector(),t.setCurPrimitveCollectorData(EB.kZcDrShorterm,HZ.mZcGsPrimitiveCollector),HZ.mZcGsPrimitiveCollector.getBufferPoint();let e=this.mCurView.mGraphicSystem.mCurCursorPT,n=new QR(e.mX,e.mY,0);n=this.mCurView.scsPt2WcsPt(n),this.mCursorPt=n;let i=new HB(RB.RESTATTR);HZ.mZcGsPrimitiveCollector.mPrimitives.push(i),"line"===this.mLineType?this.drawLine(n):"arc"===this.mLineType&&this.drawArc(n,"jig"),this.mDrawLineArr=[]}}drawLine(t){if(null===this.mCurView||null===this.mCurView.mGraphicSystem||0===this.mLineArray.length)return;let e=HZ.mZcGsPrimitiveCollector.getBufferPoint();if(n7.instance().mDrawCommentBubble){let e=[];this.mLineArray.forEach((t=>{e.push(t.data)})),e.push(t);let n=n7.instance().mBubbleColor;HZ.mZcGsPrimitiveCollector.addPrimitivePolylineBubble(RB.POLYLINEBUBBLE,"",e,n.str)}else"line"===this.mLineArray[this.mLineArray.length-1].type?(e[e.length]=this.mLastLineEnd.data.mX,e[e.length]=this.mLastLineEnd.data.mY,e[e.length]=this.mLastLineEnd.data.mZ):"arc"===this.mLineArray[this.mLineArray.length-1].type&&(e[e.length]=this.mLastArcEndPt.mX,e[e.length]=this.mLastArcEndPt.mY,e[e.length]=this.mLastArcEndPt.mZ),e[e.length]=t.mX,e[e.length]=t.mY,e[e.length]=t.mZ,HZ.mZcGsPrimitiveCollector.addPrimitive(RB.RAWPOLYLINE3D,6)}drawArc(t,e){if(null===this.mCurView||null===this.mCurView.mGraphicSystem)return;let n,i,r=new QR(1,0,0),a=t,o=new QR,s=HZ.mZcGsPrimitiveCollector.getBufferPoint();if(1===this.mLineArray.length)i=this.mLineArray[0].data,a=t,o.mX=i.mX,o.mY=(a.mX-i.mX)/(i.mY-a.mY)*(i.mX-(a.mX+i.mX)/2)+(i.mY+a.mY)/2,r=new QR(1,0,0);else if("line"===this.mLastLineEnd.type)n=this.mLastLineStart.endPoint?this.mLastLineStart.endPoint:this.mLastLineStart.data,i=this.mLastLineEnd.endPoint?this.mLastLineEnd.endPoint:this.mLastLineEnd.data,SF.log(n,i),o.mX=-(Math.pow(i.mY,3)+(-n.mY-2*a.mY)*Math.pow(i.mY,2)+(Math.pow(i.mX,2)-2*n.mX*i.mX+2*a.mY*n.mY+Math.pow(a.mY,2)+Math.pow(a.mX,2))*i.mY+(n.mY-2*a.mY)*Math.pow(i.mX,2)+2*a.mY*n.mX*i.mX+(-Math.pow(a.mY,2)-Math.pow(a.mX,2))*n.mY)/((2*n.mX-2*a.mX)*i.mY+(2*a.mY-2*n.mY)*i.mX+2*a.mX*n.mY-2*a.mY*n.mX),o.mY=((i.mX+n.mX-2*a.mX)*Math.pow(i.mY,2)+(2*a.mX*n.mY-2*n.mY*i.mX)*i.mY+Math.pow(i.mX,3)+(-n.mX-2*a.mX)*Math.pow(i.mX,2)+(2*a.mX*n.mX+Math.pow(a.mY,2)+Math.pow(a.mX,2))*i.mX+(-Math.pow(a.mY,2)-Math.pow(a.mX,2))*n.mX)/((2*n.mX-2*a.mX)*i.mY+(2*a.mY-2*n.mY)*i.mX+2*a.mX*n.mY-2*a.mY*n.mX),r=new QR(i.mX-n.mX,i.mY-n.mY,0);else{if(!("arc"===this.mLastLineEnd.type&&this.mLineArray.length>=2))return;{i=this.mLastArcEndPt;let t=this.mLastLineEnd.data.center;o.mX=((i.mX+t.mX)*Math.pow(i.mY,2)+(-2*t.mY*i.mX-2*a.mY*t.mX)*i.mY+Math.pow(i.mX,3)-t.mX*Math.pow(i.mX,2)+(2*a.mY*t.mY-Math.pow(a.mY,2)-Math.pow(a.mX,2))*i.mX+Math.pow(a.mY,2)*t.mX+Math.pow(a.mX,2)*t.mX)/(2*Math.pow(i.mY,2)+(-2*t.mY-2*a.mY)*i.mY+2*Math.pow(i.mX,2)+(-2*t.mX-2*a.mX)*i.mX+2*a.mY*t.mY+2*a.mX*t.mX),o.mY=(Math.pow(i.mY,3)-t.mY*Math.pow(i.mY,2)+(Math.pow(i.mX,2)-2*t.mX*i.mX+2*a.mX*t.mX-Math.pow(a.mY,2)-Math.pow(a.mX,2))*i.mY+t.mY*Math.pow(i.mX,2)-2*a.mX*t.mY*i.mX+Math.pow(a.mY,2)*t.mY+Math.pow(a.mX,2)*t.mY)/(2*Math.pow(i.mY,2)+(-2*t.mY-2*a.mY)*i.mY+2*Math.pow(i.mX,2)+(-2*t.mX-2*a.mX)*i.mX+2*a.mY*t.mY+2*a.mX*t.mX),r=0===this.mLastDirection?new QR(i.mY-t.mY,-(i.mX-t.mX),0):new QR(-(i.mY-t.mY),i.mX-t.mX,0)}}let l=Math.sqrt(Math.pow(o.mX-i.mX,2)+Math.pow(o.mY-i.mY,2)),c=this.acquireAngle(o,i),h=this.acquireAngle(o,a);this.mArc.normal=new qR(0,0,1);let d=Math.atan2(r.mY,r.mX),u=Math.atan2(a.mY-i.mY,a.mX-i.mX);if(d<0&&(d+=XR.ZWGR_TWOPI),u<0&&(u+=XR.ZWGR_TWOPI),SF.log(this.mLineArray),d===u||Math.abs(d-u)===XR.ZWGR_PI){if("cmd"===e)return this.addVertex(a),!1;"jig"===e&&this.drawLine(this.mCursorPt)}if(d<=XR.ZWGR_PI)if(u>d&&u<d+XR.ZWGR_PI)this.mTempDirection=1;else{let t=c;c=h,h=t,this.mTempDirection=0}else if(u<d&&u>d-XR.ZWGR_PI){let t=c;c=h,h=t,this.mTempDirection=0}else this.mTempDirection=1;return this.mArc.startVec.mX=Math.cos(c),this.mArc.startVec.mY=Math.sin(c),this.mArc.startVec.normalize(),this.mArc.sweepAngle=h-c,this.mArc.sweepAngle<0&&(this.mArc.sweepAngle+=XR.ZWGR_TWOPI),Math.abs(this.mArc.sweepAngle)>XR.ZWGR_TWOPI&&(this.mArc.sweepAngle=XR.ZWGR_TWOPI),this.mArc.center=o,this.mArc.radius=l,this.generateArc(this.mArc,this.mCurView.mFieldHeight,1e3),s[s.length]=t.mX,s[s.length]=t.mY,s[s.length]=t.mZ,HZ.mZcGsPrimitiveCollector.addPrimitive(RB.RAWPOLYLINE3D,3),!0}addVertex(t){this.drawLine(t);let e={type:"line",data:t};this.mLineArray=this.mLineArray.concat(e),this.mLastLineStart=this.mLastLineEnd,this.mLastLineEnd=e}addArc(t){if(!this.drawArc(t,"cmd"))return 0;let e=JSON.parse(JSON.stringify(this.mArc));this.mLastArcEndPt=t;let n={type:"arc",data:e,endPoint:JSON.parse(JSON.stringify(this.mLastArcEndPt))};return this.mLineArray=this.mLineArray.concat(n),this.mLastLineEnd=n,this.mLastDirection=this.mTempDirection,1===this.mLastDirection?e.sweepAngle:-1*e.sweepAngle}subVertex(){this.mLineArray.pop(),"line"===this.mLineArray[this.mLineArray.length-1].type?(this.mLastLineStart=this.mLineArray[this.mLineArray.length-2],this.mLastLineEnd=this.mLineArray[this.mLineArray.length-1]):(this.mLastLineEnd=this.mLineArray[this.mLineArray.length-1],this.mLastArcEndPt=this.mLineArray[this.mLineArray.length-1].endPoint)}}var _W,MW,DW,EW=((DW=EW||(EW={}))[DW.Edit=1]="Edit",DW[DW.Readonly=2]="Readonly",EW),OW=((MW=OW||(OW={}))[MW.init=1]="init",MW[MW.getData=10]="getData",MW[MW.readData=20]="readData",MW[MW.readDataEnd=49]="readDataEnd",MW[MW.drawData=50]="drawData",MW[MW.drawDataEnd=99]="drawDataEnd",MW[MW.end=100]="end",OW),AW=((_W=AW||(AW={}))[_W.Single=1]="Single",_W[_W.Muilty=0]="Muilty",AW);const TW=(()=>{function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t})();function IW(t){return e=>e.lift(new LW(t,e))}class LW{constructor(t,e){this.notifier=t,this.source=e}call(t,e){return e.subscribe(new zW(t,this.notifier,this.source))}}class zW extends W{constructor(t,e,n){super(t),this.notifier=e,this.source=n}error(t){if(!this.isStopped){let e=this.errors,n=this.retries,i=this.retriesSubscription;if(n)this.errors=void 0,this.retriesSubscription=void 0;else{e=new A;try{const{notifier:t}=this;n=t(e)}catch(t){return super.error(t)}i=Y(n,new U(this))}this._unsubscribeAndRecycle(),this.errors=e,this.retries=n,this.retriesSubscription=i,e.next(t)}}_unsubscribe(){const{errors:t,retriesSubscription:e}=this;t&&(t.unsubscribe(),this.errors=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}notifyNext(){const{_unsubscribe:t}=this;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=t,this.source.subscribe(this)}}function RW(t=-1){return e=>e.lift(new FW(t,e))}class FW{constructor(t,e){this.count=t,this.source=e}call(t,e){return e.subscribe(new BW(t,this.count,this.source))}}class BW extends C{constructor(t,e,n){super(t),this.count=e,this.source=n}error(t){if(!this.isStopped){const{source:e,count:n}=this;if(0===n)return super.error(t);n>-1&&(this.count=n-1),e.subscribe(this._unsubscribeAndRecycle())}}}class VW{constructor(t,e,n,i){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=n,this.scheduler=i}call(t,e){return e.subscribe(new NW(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class NW extends W{constructor(t,e,n,i,r){super(t),this.absoluteTimeout=e,this.waitFor=n,this.withObservable=i,this.scheduler=r,this.scheduleTimeout()}static dispatchTimeout(t){const{withObservable:e}=t;t._unsubscribeAndRecycle(),t.add(Y(e,new U(t)))}scheduleTimeout(){const{action:t}=this;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(NW.dispatchTimeout,this.waitFor,this))}_next(t){this.absoluteTimeout||this.scheduleTimeout(),super._next(t)}_unsubscribe(){this.action=void 0,this.scheduler=null,this.withObservable=null}}var HW=l(162);let GW=(()=>{class t{constructor(t){this.http=t}get(t,e){return this.http.get(t,e)}post(t,e,n){return this.http.post(t,e,n)}}return t["ɵfac"]=function(e){return new(e||t)(wi(Am))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),ZW=(()=>{class t{constructor(){this.configsInternal={}}hasAsLeastOneConfig(){return Object.keys(this.configsInternal).length>0}hasManyConfigs(){return Object.keys(this.configsInternal).length>1}setConfig(t){const{configId:e}=t;this.configsInternal[e]=t}getOpenIDConfiguration(t){if(t)return this.configsInternal[t]||null;const[,e]=Object.entries(this.configsInternal)[0]||[[null,null]];return e||null}getAllConfigurations(){return Object.values(this.configsInternal)}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),UW=(()=>{class t{constructor(t,e){this.httpClient=t,this.configurationProvider=e}get(t,e,n){const i=this.prepareHeaders(n),r=this.prepareParams(e);return this.httpClient.get(t,{headers:i,params:r})}post(t,e,n,i){const r=i||this.prepareHeaders(),a=this.prepareParams(n);return this.httpClient.post(t,e,{headers:r,params:a})}prepareHeaders(t){let e=new mm;return e=e.set("Accept","application/json"),t&&(e=e.set("Authorization","Bearer "+decodeURIComponent(t))),e}prepareParams(t){let e=new vm;const{ngswBypass:n}=this.configurationProvider.getOpenIDConfiguration(t);return n&&(e=e.set("ngsw-bypass","")),e}}return t["ɵfac"]=function(e){return new(e||t)(wi(GW),wi(ZW))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})();var WW,YW=((WW=YW||(YW={}))[WW.ConfigLoaded=0]="ConfigLoaded",WW[WW.ConfigLoadingFailed=1]="ConfigLoadingFailed",WW[WW.CheckSessionReceived=2]="CheckSessionReceived",WW[WW.UserDataChanged=3]="UserDataChanged",WW[WW.NewAuthenticationResult=4]="NewAuthenticationResult",WW[WW.TokenExpired=5]="TokenExpired",WW[WW.IdTokenExpired=6]="IdTokenExpired",WW[WW.SilentRenewStarted=7]="SilentRenewStarted",YW);let jW=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),XW=(()=>{class t{constructor(t){this.oidcSecurityStorage=t}read(t,e){return(this.oidcSecurityStorage.read(e)||{})[t]}write(t,e,n){const i=this.oidcSecurityStorage.read(n)||{};i[t]=e,this.oidcSecurityStorage.write(n,i)}remove(t,e){const n=this.oidcSecurityStorage.read(e)||{};delete n[t],this.oidcSecurityStorage.write(e,n)}clear(){this.oidcSecurityStorage.clear()}resetStorageFlowData(t){this.remove("session_state",t),this.remove("storageSilentRenewRunning",t),this.remove("codeVerifier",t),this.remove("userData",t),this.remove("storageCustomParamsAuthRequest",t),this.remove("access_token_expires_at",t),this.remove("storageCustomParamsRefresh",t),this.remove("storageCustomParamsEndSession",t)}resetAuthStateInStorage(t){this.remove("authzData",t),this.remove("authnResult",t)}getAccessToken(t){return this.read("authzData",t)}getIdToken(t){var e;return null===(e=this.read("authnResult",t))||void 0===e?void 0:e.id_token}getRefreshToken(t){var e;return null===(e=this.read("authnResult",t))||void 0===e?void 0:e.refresh_token}getAuthenticationResult(t){return this.read("authnResult",t)}}return t["ɵfac"]=function(e){return new(e||t)(wi(jW))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})();var qW,$W=((qW=$W||($W={}))[qW.None=0]="None",qW[qW.Debug=1]="Debug",qW[qW.Warn=2]="Warn",qW[qW.Error=3]="Error",$W);let KW=(()=>{class t{constructor(t){this.configurationProvider=t}logError(t,e,...n){this.loggingIsTurnedOff(t)||(n&&n.length?r.error("[ERROR] "+t+" - "+e,...n):r.error("[ERROR] "+t+" - "+e))}logWarning(t,e,...n){!this.logLevelIsSet(t)||this.loggingIsTurnedOff(t)||!this.currentLogLevelIsEqualOrSmallerThan(t,$W.Warn)||(n&&n.length?r.warn("[WARN] "+t+" - "+e,...n):r.warn("[WARN] "+t+" - "+e))}logDebug(t,e,...n){!this.logLevelIsSet(t)||this.loggingIsTurnedOff(t)||!this.currentLogLevelIsEqualOrSmallerThan(t,$W.Debug)||(n&&n.length?r.log("[DEBUG] "+t+" - "+e,...n):r.log("[DEBUG] "+t+" - "+e))}currentLogLevelIsEqualOrSmallerThan(t,e){const{logLevel:n}=this.configurationProvider.getOpenIDConfiguration(t)||{};return n<=e}logLevelIsSet(t){const{logLevel:e}=this.configurationProvider.getOpenIDConfiguration(t)||{};return!(null==e)}loggingIsTurnedOff(t){const{logLevel:e}=this.configurationProvider.getOpenIDConfiguration(t)||{};return e===$W.None}}return t["ɵfac"]=function(e){return new(e||t)(wi(ZW))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),JW=(()=>{class t{constructor(){this.notify=new $u(1)}fireEvent(t,e){this.notify.next({type:t,value:e})}registerForEvents(){return this.notify.asObservable()}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),QW=(()=>{class t{constructor(t){this.loggerService=t}getTokenExpirationDate(t){if(!t.hasOwnProperty("exp"))return new Date((new Date).toUTCString());const e=new Date(0);return e.setUTCSeconds(t.exp),e}getHeaderFromToken(t,e,n){return this.tokenIsValid(t,n)?this.getPartOfToken(t,0,e):{}}getPayloadFromToken(t,e,n){return this.tokenIsValid(t,n)?this.getPartOfToken(t,1,e):{}}getSignatureFromToken(t,e,n){return this.tokenIsValid(t,n)?this.getPartOfToken(t,2,e):{}}getPartOfToken(t,e,n){const i=this.extractPartOfToken(t,e);if(n)return i;const r=this.urlBase64Decode(i);return JSON.parse(r)}urlBase64Decode(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw Error("Illegal base64url string!")}const n="undefined"!=typeof window?window.atob(e):i.from(e,"base64").toString("binary");try{return decodeURIComponent(n.split("").map((t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2))).join(""))}catch(t){return n}}tokenIsValid(t,e){return t?t.includes(".")?3===t.split(".").length||(this.loggerService.logError(e,"token '"+t+"' is not valid --\x3e token has to have exactly 2 dots"),!1):(this.loggerService.logError(e,"token '"+t+"' is not valid --\x3e no dots included"),!1):(this.loggerService.logError(e,"token '"+t+"' is not valid --\x3e token falsy"),!1)}extractPartOfToken(t,e){return t.split(".")[e]}}return t["ɵfac"]=function(e){return new(e||t)(wi(KW))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),tY=(()=>{class t{generateCodeChallenge(t){const e=HW.fs.crypto.Util.hashString(t,"sha256");return(0,HW.MS)(e)}generateAtHash(t,e){const n=HW.fs.crypto.Util.hashString(t,e),i=n.substr(0,n.length/2);return(0,HW.MS)(i)}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),eY=(()=>{class t{constructor(t,e,n){this.tokenHelperService=t,this.loggerService=e,this.jsrsAsignReducedService=n,this.keyAlgorithms=["HS256","HS384","HS512","RS256","RS384","RS512","ES256","ES384","PS256","PS384","PS512"]}hasIdTokenExpired(t,e,n){const i=this.tokenHelperService.getPayloadFromToken(t,!1,e);return!this.validateIdTokenExpNotExpired(i,e,n)}validateIdTokenExpNotExpired(t,e,n){const i=this.tokenHelperService.getTokenExpirationDate(t);if(n=n||0,!i)return!1;const r=i.valueOf(),a=new Date((new Date).toUTCString()).valueOf()+1e3*n,o=r>a;return this.loggerService.logDebug(e,"Has idToken expired: "+!o+" --\x3e expires in "+this.millisToMinutesAndSeconds(r-a)+" , "+new Date(r).toLocaleTimeString()+" > "+new Date(a).toLocaleTimeString()),o}validateAccessTokenNotExpired(t,e,n){if(!t)return!0;n=n||0;const i=t.valueOf(),r=new Date((new Date).toUTCString()).valueOf()+1e3*n,a=i>r;return this.loggerService.logDebug(e,"Has accessToken expired: "+!a+" --\x3e expires in "+this.millisToMinutesAndSeconds(i-r)+" , "+new Date(i).toLocaleTimeString()+" > "+new Date(r).toLocaleTimeString()),a}validateRequiredIdToken(t,e){let n=!0;return t.hasOwnProperty("iss")||(n=!1,this.loggerService.logWarning(e,"iss is missing, this is required in the id_token")),t.hasOwnProperty("sub")||(n=!1,this.loggerService.logWarning(e,"sub is missing, this is required in the id_token")),t.hasOwnProperty("aud")||(n=!1,this.loggerService.logWarning(e,"aud is missing, this is required in the id_token")),t.hasOwnProperty("exp")||(n=!1,this.loggerService.logWarning(e,"exp is missing, this is required in the id_token")),t.hasOwnProperty("iat")||(n=!1,this.loggerService.logWarning(e,"iat is missing, this is required in the id_token")),n}validateIdTokenIatMaxOffset(t,e,n,i){if(n)return!0;if(!t.hasOwnProperty("iat"))return!1;const r=new Date(0);r.setUTCSeconds(t.iat),e=e||0;const a=new Date((new Date).toUTCString()).valueOf()-r.valueOf(),o=1e3*e;return this.loggerService.logDebug(i,"validate id token iat max offset "+a+" < "+o),a>0?a<o:-a<o}validateIdTokenNonce(e,n,i,r){return!((void 0!==e.nonce&&!i||n!==t.refreshTokenNoncePlaceholder)&&e.nonce!==n&&(this.loggerService.logDebug(r,"Validate_id_token_nonce failed, dataIdToken.nonce: "+e.nonce+" local_nonce:"+n),1))}validateIdTokenIss(t,e,n){return t.iss===e||(this.loggerService.logDebug(n,"Validate_id_token_iss failed, dataIdToken.iss: "+t.iss+" authWellKnownEndpoints issuer:"+e),!1)}validateIdTokenAud(t,e,n){return Array.isArray(t.aud)?!!t.aud.includes(e)||(this.loggerService.logDebug(n,"Validate_id_token_aud array failed, dataIdToken.aud: "+t.aud+" client_id:"+e),!1):t.aud===e||(this.loggerService.logDebug(n,"Validate_id_token_aud failed, dataIdToken.aud: "+t.aud+" client_id:"+e),!1)}validateIdTokenAzpExistsIfMoreThanOneAud(t){return!(!t||Array.isArray(t.aud)&&t.aud.length>1&&!t.azp)}validateIdTokenAzpValid(t,e){return!(null==t?void 0:t.azp)||t.azp===e}validateStateFromHashCallback(t,e,n){return t===e||(this.loggerService.logDebug(n,"ValidateStateFromHashCallback failed, state: "+t+" local_state:"+e),!1)}validateSignatureIdToken(t,e,n){if(!e||!e.keys)return!1;const i=this.tokenHelperService.getHeaderFromToken(t,!1,n);if(0===Object.keys(i).length&&i.constructor===Object)return this.loggerService.logWarning(n,"id token has no header data"),!1;const r=i.kid,a=i.alg;if(!this.keyAlgorithms.includes(a))return this.loggerService.logWarning(n,"alg not supported",a),!1;let o="RSA";"E"===a.charAt(0)&&(o="EC");let s=!1;if(!r){let i;if(1===e.keys.length&&e.keys[0].kty===o)i=e.keys[0];else{let t=0;for(const n of e.keys)n.kty===o&&"sig"===n.use&&(t++,i=n);if(t>1)return this.loggerService.logWarning(n,"no ID Token kid claim in JOSE header and multiple supplied in jwks_uri"),!1}return i?(s=HW.fs.jws.JWS.verify(t,HW.KZ.getKey(i),[a]),s||this.loggerService.logWarning(n,"incorrect Signature, validation failed for id_token"),s):(this.loggerService.logWarning(n,"no keys found, incorrect Signature, validation failed for id_token"),!1)}for(const i of e.keys)if(i.kid===r){const e=HW.KZ.getKey(i);return s=HW.fs.jws.JWS.verify(t,e,[a]),s||this.loggerService.logWarning(n,"incorrect Signature, validation failed for id_token"),s}return s}validateIdTokenAtHash(t,e,n,i){this.loggerService.logDebug(i,"at_hash from the server:"+e);let r="sha256";n.includes("384")?r="sha384":n.includes("512")&&(r="sha512");const a=this.jsrsAsignReducedService.generateAtHash(""+t,r);if(this.loggerService.logDebug(i,"at_hash client validation not decoded:"+a),a===e)return!0;{const n=this.jsrsAsignReducedService.generateAtHash(""+decodeURIComponent(t),r);if(this.loggerService.logDebug(i,"-gen access--"+n),n===e)return!0}return!1}millisToMinutesAndSeconds(t){const e=Math.floor(t/6e4),n=(t%6e4/1e3).toFixed(0);return e+":"+(+n<10?"0":"")+n}}return t.refreshTokenNoncePlaceholder="--RefreshToken--",t["ɵfac"]=function(e){return new(e||t)(wi(QW),wi(KW),wi(tY))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})();const nY={isAuthenticated:!1,allConfigsAuthenticated:[]};let iY=(()=>{class t{constructor(t,e,n,i,r){this.storagePersistenceService=t,this.loggerService=e,this.publicEventsService=n,this.configurationProvider=i,this.tokenValidationService=r,this.authenticatedInternal$=new Lb(nY)}get authenticated$(){return this.authenticatedInternal$.asObservable().pipe(qx())}setAuthenticatedAndFireEvent(){const t=this.composeAuthenticatedResult();this.authenticatedInternal$.next(t)}setUnauthenticatedAndFireEvent(t){this.storagePersistenceService.resetAuthStateInStorage(t);const e=this.composeUnAuthenticatedResult();this.authenticatedInternal$.next(e)}updateAndPublishAuthState(t){this.publicEventsService.fireEvent(YW.NewAuthenticationResult,t)}setAuthorizationData(t,e,n){this.loggerService.logDebug(n,"storing the accessToken '"+t+"'"),this.storagePersistenceService.write("authzData",t,n),this.persistAccessTokenExpirationTime(e,n),this.setAuthenticatedAndFireEvent()}getAccessToken(t){if(!this.isAuthenticated(t))return null;const e=this.storagePersistenceService.getAccessToken(t);return this.decodeURIComponentSafely(e)}getIdToken(t){if(!this.isAuthenticated(t))return null;const e=this.storagePersistenceService.getIdToken(t);return this.decodeURIComponentSafely(e)}getRefreshToken(t){if(!this.isAuthenticated(t))return null;const e=this.storagePersistenceService.getRefreshToken(t);return this.decodeURIComponentSafely(e)}getAuthenticationResult(t){return this.isAuthenticated(t)?this.storagePersistenceService.getAuthenticationResult(t):null}areAuthStorageTokensValid(t){return!(!this.isAuthenticated(t)||(this.hasIdTokenExpiredAndRenewCheckIsEnabled(t)?(this.loggerService.logDebug(t,"persisted idToken is expired"),1):this.hasAccessTokenExpiredIfExpiryExists(t)?(this.loggerService.logDebug(t,"persisted accessToken is expired"),1):(this.loggerService.logDebug(t,"persisted idToken and accessToken are valid"),0)))}hasIdTokenExpiredAndRenewCheckIsEnabled(t){const{renewTimeBeforeTokenExpiresInSeconds:e,enableIdTokenExpiredValidationInRenew:n}=this.configurationProvider.getOpenIDConfiguration(t);if(!n)return!1;const i=this.storagePersistenceService.getIdToken(t),r=this.tokenValidationService.hasIdTokenExpired(i,t,e);return r&&this.publicEventsService.fireEvent(YW.IdTokenExpired,r),r}hasAccessTokenExpiredIfExpiryExists(t){const{renewTimeBeforeTokenExpiresInSeconds:e}=this.configurationProvider.getOpenIDConfiguration(t),n=this.storagePersistenceService.read("access_token_expires_at",t),i=!this.tokenValidationService.validateAccessTokenNotExpired(n,t,e);return i&&this.publicEventsService.fireEvent(YW.TokenExpired,i),i}isAuthenticated(t){return!!this.storagePersistenceService.getAccessToken(t)&&!!this.storagePersistenceService.getIdToken(t)}decodeURIComponentSafely(t){return t?decodeURIComponent(t):""}persistAccessTokenExpirationTime(t,e){if(null==t?void 0:t.expires_in){const n=new Date((new Date).toUTCString()).valueOf()+1e3*t.expires_in;this.storagePersistenceService.write("access_token_expires_at",n,e)}}composeAuthenticatedResult(){if(!this.configurationProvider.hasManyConfigs()){const{configId:t}=this.configurationProvider.getOpenIDConfiguration();return{isAuthenticated:!0,allConfigsAuthenticated:[{configId:t,isAuthenticated:!0}]}}return this.checkAllConfigsIfTheyAreAuthenticated()}composeUnAuthenticatedResult(){if(!this.configurationProvider.hasManyConfigs()){const{configId:t}=this.configurationProvider.getOpenIDConfiguration();return{isAuthenticated:!1,allConfigsAuthenticated:[{configId:t,isAuthenticated:!1}]}}return this.checkAllConfigsIfTheyAreAuthenticated()}checkAllConfigsIfTheyAreAuthenticated(){const t=this.configurationProvider.getAllConfigurations().map((({configId:t})=>({configId:t,isAuthenticated:this.isAuthenticated(t)}))),e=t.every((t=>!!t.isAuthenticated));return{allConfigsAuthenticated:t,isAuthenticated:e}}}return t["ɵfac"]=function(e){return new(e||t)(wi(XW),wi(KW),wi(JW),wi(ZW),wi(eY))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})();const rY="redirect";let aY=(()=>{class t{constructor(t,e){this.storageService=t,this.router=e}checkSavedRedirectRouteAndNavigate(t){const e=this.getStoredRedirectRoute(t);e&&(this.deleteStoredRedirectRoute(t),this.router.navigateByUrl(e))}saveRedirectRoute(t,e){this.storageService.write(rY,e,t)}getStoredRedirectRoute(t){return this.storageService.read(rY,t)}deleteStoredRedirectRoute(t){this.storageService.remove(rY,t)}}return t["ɵfac"]=function(e){return new(e||t)(wi(XW),wi(kO))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})();class oY{encodeKey(t){return encodeURIComponent(t)}encodeValue(t){return encodeURIComponent(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}let sY=(()=>{class t{constructor(t,e){this.doc=t,this.loggerService=e}createRandom(t,e){if(t<=0)return"";t>0&&t<7&&(this.loggerService.logWarning(e,"RandomService called with "+t+" but 7 chars is the minimum, returning 10 chars"),t=10);const n=t-6,i=new Uint8Array(Math.floor((n||n)/2));return this.getCrypto()&&this.getCrypto().getRandomValues(i),Array.from(i,this.toHex).join("")+this.randomString(7)}toHex(t){return("0"+t.toString(16)).substr(-2)}randomString(t){let e="";const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=new Uint32Array(t);if(this.getCrypto()){this.getCrypto().getRandomValues(i);for(let r=0;r<t;r++)e+=n[i[r]%n.length]}return e}getCrypto(){return this.doc.defaultView.crypto||this.doc.defaultView.msCrypto}}return t["ɵfac"]=function(e){return new(e||t)(wi(Hh),wi(KW))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),lY=(()=>{class t{constructor(t,e,n,i){this.storagePersistenceService=t,this.randomService=e,this.configurationProvider=n,this.loggerService=i}createNonce(t){const e=this.randomService.createRandom(40,t);return this.setNonce(e,t),e}setNonce(t,e){this.storagePersistenceService.write("authNonce",t,e)}getAuthStateControl(t){return this.storagePersistenceService.read("authStateControl",t)}setAuthStateControl(t,e){this.storagePersistenceService.write("authStateControl",t,e)}getExistingOrCreateAuthStateControl(t){let e=this.storagePersistenceService.read("authStateControl",t);return e||(e=this.randomService.createRandom(40,t),this.storagePersistenceService.write("authStateControl",e,t)),e}setSessionState(t,e){this.storagePersistenceService.write("session_state",t,e)}resetStorageFlowData(t){this.storagePersistenceService.resetStorageFlowData(t)}getCodeVerifier(t){return this.storagePersistenceService.read("codeVerifier",t)}createCodeVerifier(t){const e=this.randomService.createRandom(67,t);return this.storagePersistenceService.write("codeVerifier",e,t),e}isSilentRenewRunning(t){const e=this.getSilentRenewRunningStorageEntry(t);if(!e)return!1;const{silentRenewTimeoutInSeconds:n}=this.configurationProvider.getOpenIDConfiguration(t),i=1e3*n,r=Date.parse(e.dateOfLaunchedProcessUtc),a=Date.parse((new Date).toISOString());return Math.abs(a-r)>i?(this.loggerService.logDebug(t,"silent renew process is probably stuck, state will be reset.",t),this.resetSilentRenewRunning(t),!1):"running"===e.state}setSilentRenewRunning(t){const e={state:"running",dateOfLaunchedProcessUtc:(new Date).toISOString()};this.storagePersistenceService.write("storageSilentRenewRunning",JSON.stringify(e),t)}resetSilentRenewRunning(t){this.storagePersistenceService.write("storageSilentRenewRunning","",t)}getSilentRenewRunningStorageEntry(t){const e=this.storagePersistenceService.read("storageSilentRenewRunning",t);return e?JSON.parse(e):null}}return t["ɵfac"]=function(e){return new(e||t)(wi(XW),wi(sY),wi(ZW),wi(KW))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),cY=(()=>{class t{constructor(t){this.configurationProvider=t}isCurrentFlowCodeFlow(t){return this.currentFlowIs("code",t)}isCurrentFlowAnyImplicitFlow(t){return this.isCurrentFlowImplicitFlowWithAccessToken(t)||this.isCurrentFlowImplicitFlowWithoutAccessToken(t)}isCurrentFlowCodeFlowWithRefreshTokens(t){const{useRefreshToken:e}=this.configurationProvider.getOpenIDConfiguration(t);return!(!this.isCurrentFlowCodeFlow(t)||!e)}isCurrentFlowImplicitFlowWithAccessToken(t){return this.currentFlowIs("id_token token",t)}currentFlowIs(t,e){const{responseType:n}=this.configurationProvider.getOpenIDConfiguration(e);return Array.isArray(t)?t.some((t=>n===t)):n===t}isCurrentFlowImplicitFlowWithoutAccessToken(t){return this.currentFlowIs("id_token",t)}}return t["ɵfac"]=function(e){return new(e||t)(wi(ZW))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})();const hY=["code","state","token","id_token"];let dY=(()=>{class t{constructor(t,e,n,i,r,a){this.configurationProvider=t,this.loggerService=e,this.flowsDataService=n,this.flowHelper=i,this.storagePersistenceService=r,this.jsrsAsignReducedService=a}getUrlParameter(t,e){if(!t||!e)return"";e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");const n=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(t);return null===n?"":decodeURIComponent(n[1])}isCallbackFromSts(t){return hY.some((e=>!!this.getUrlParameter(t,e)))}getRefreshSessionSilentRenewUrl(t,e){return this.flowHelper.isCurrentFlowCodeFlow(t)?this.createUrlCodeFlowWithSilentRenew(t,e):this.createUrlImplicitFlowWithSilentRenew(t,e)||""}getAuthorizeParUrl(t,e){const n=this.storagePersistenceService.read("authWellKnownEndPoints",e);if(!n)return this.loggerService.logError(e,"authWellKnownEndpoints is undefined"),null;const i=n.authorizationEndpoint;if(!i)return this.loggerService.logError(e,"Can not create an authorize url when authorizationEndpoint is '"+i+"'"),null;const{clientId:r}=this.configurationProvider.getOpenIDConfiguration(e);if(!r)return this.loggerService.logError(e,"getAuthorizeParUrl could not add clientId because it was: ",r),null;const a=i.split("?"),o=a[0];let s=this.createHttpParams(a[1]);return s=s.set("request_uri",t),s=s.append("client_id",r),o+"?"+s}getAuthorizeUrl(t,e){return this.flowHelper.isCurrentFlowCodeFlow(t)?this.createUrlCodeFlowAuthorize(t,e):this.createUrlImplicitFlowAuthorize(t,e)||""}createEndSessionUrl(t,e,n){const i=this.storagePersistenceService.read("authWellKnownEndPoints",e),r=null==i?void 0:i.endSessionEndpoint;if(!r)return null;const a=r.split("?"),o=a[0];let s=this.createHttpParams(a[1]);s=s.set("id_token_hint",t);const l=this.getPostLogoutRedirectUrl(e);return l&&(s=s.append("post_logout_redirect_uri",l)),n&&(s=this.appendCustomParams(Object.assign({},n),s)),o+"?"+s}createRevocationEndpointBodyAccessToken(t,e){const n=this.getClientId(e);if(!n)return null;let i=this.createHttpParams();return i=i.set("client_id",n),i=i.set("token",t),i=i.set("token_type_hint","access_token"),i.toString()}createRevocationEndpointBodyRefreshToken(t,e){const n=this.getClientId(e);if(!n)return null;let i=this.createHttpParams();return i=i.set("client_id",n),i=i.set("token",t),i=i.set("token_type_hint","refresh_token"),i.toString()}getRevocationEndpointUrl(t){const e=this.storagePersistenceService.read("authWellKnownEndPoints",t),n=null==e?void 0:e.revocationEndpoint;return n?n.split("?")[0]:null}createBodyForCodeFlowCodeRequest(t,e,n){const i=this.flowsDataService.getCodeVerifier(e);if(!i)return this.loggerService.logError(e,"CodeVerifier is not set ",i),null;const r=this.getClientId(e);if(!r)return null;let a=this.createHttpParams();a=a.set("grant_type","authorization_code"),a=a.set("client_id",r),a=a.set("code_verifier",i),a=a.set("code",t),n&&(a=this.appendCustomParams(Object.assign({},n),a));const o=this.getSilentRenewUrl(e);if(this.flowsDataService.isSilentRenewRunning(e)&&o)return a=a.set("redirect_uri",o),a.toString();const s=this.getRedirectUrl(e);return s?(a=a.set("redirect_uri",s),a.toString()):null}createBodyForCodeFlowRefreshTokensRequest(t,e,n){const i=this.getClientId(e);if(!i)return null;let r=this.createHttpParams();return r=r.set("grant_type","refresh_token"),r=r.set("client_id",i),r=r.set("refresh_token",t),n&&(r=this.appendCustomParams(Object.assign({},n),r)),r.toString()}createBodyForParCodeFlowRequest(t,e){const n=this.getRedirectUrl(t);if(!n)return null;const i=this.flowsDataService.getExistingOrCreateAuthStateControl(t),r=this.flowsDataService.createNonce(t);this.loggerService.logDebug(t,"Authorize created. adding myautostate: "+i);const a=this.flowsDataService.createCodeVerifier(t),o=this.jsrsAsignReducedService.generateCodeChallenge(a),{clientId:s,responseType:l,scope:c,hdParam:h,customParamsAuthRequest:d}=this.configurationProvider.getOpenIDConfiguration(t);let u=this.createHttpParams("");return u=u.set("client_id",s),u=u.append("redirect_uri",n),u=u.append("response_type",l),u=u.append("scope",c),u=u.append("nonce",r),u=u.append("state",i),u=u.append("code_challenge",o),u=u.append("code_challenge_method","S256"),h&&(u=u.append("hd",h)),d&&(u=this.appendCustomParams(Object.assign({},d),u)),e&&(u=this.appendCustomParams(Object.assign({},e),u)),u.toString()}createAuthorizeUrl(t,e,n,i,r,a,o){const s=this.storagePersistenceService.read("authWellKnownEndPoints",r),l=null==s?void 0:s.authorizationEndpoint;if(!l)return this.loggerService.logError(r,"Can not create an authorize url when authorizationEndpoint is '"+l+"'"),null;const{clientId:c,responseType:h,scope:d,hdParam:u,customParamsAuthRequest:m}=this.configurationProvider.getOpenIDConfiguration(r);if(!c)return this.loggerService.logError(r,"createAuthorizeUrl could not add clientId because it was: ",c),null;if(!h)return this.loggerService.logError(r,"createAuthorizeUrl could not add responseType because it was: ",h),null;if(!d)return this.loggerService.logError(r,"createAuthorizeUrl could not add scope because it was: ",d),null;const p=l.split("?"),g=p[0];let f=this.createHttpParams(p[1]);f=f.set("client_id",c),f=f.append("redirect_uri",e),f=f.append("response_type",h),f=f.append("scope",d),f=f.append("nonce",n),f=f.append("state",i),this.flowHelper.isCurrentFlowCodeFlow(r)&&(f=f.append("code_challenge",t),f=f.append("code_challenge_method","S256")),a&&(f=f.append("prompt",a)),u&&(f=f.append("hd",u));const b=Object.assign(Object.assign({},m),o);return Object.keys(b).length>0&&(f=this.appendCustomParams(Object.assign({},b),f)),g+"?"+f}createUrlImplicitFlowWithSilentRenew(t,e){const n=this.flowsDataService.getExistingOrCreateAuthStateControl(t),i=this.flowsDataService.createNonce(t),r=this.getSilentRenewUrl(t);return r?(this.loggerService.logDebug(t,"RefreshSession created. adding myautostate: ",n),this.storagePersistenceService.read("authWellKnownEndPoints",t)?this.createAuthorizeUrl("",r,i,n,t,"none",e):(this.loggerService.logError(t,"authWellKnownEndpoints is undefined"),null)):null}createUrlCodeFlowWithSilentRenew(t,e){const n=this.flowsDataService.getExistingOrCreateAuthStateControl(t),i=this.flowsDataService.createNonce(t);this.loggerService.logDebug(t,"RefreshSession created. adding myautostate: "+n);const r=this.flowsDataService.createCodeVerifier(t),a=this.jsrsAsignReducedService.generateCodeChallenge(r),o=this.getSilentRenewUrl(t);return o?this.storagePersistenceService.read("authWellKnownEndPoints",t)?this.createAuthorizeUrl(a,o,i,n,t,"none",e):(this.loggerService.logWarning(t,"authWellKnownEndpoints is undefined"),null):null}createUrlImplicitFlowAuthorize(t,e){const n=this.flowsDataService.getExistingOrCreateAuthStateControl(t),i=this.flowsDataService.createNonce(t);this.loggerService.logDebug(t,"Authorize created. adding myautostate: "+n);const r=this.getRedirectUrl(t);return r?this.storagePersistenceService.read("authWellKnownEndPoints",t)?this.createAuthorizeUrl("",r,i,n,t,null,e):(this.loggerService.logError(t,"authWellKnownEndpoints is undefined"),null):null}createUrlCodeFlowAuthorize(t,e){const n=this.flowsDataService.getExistingOrCreateAuthStateControl(t),i=this.flowsDataService.createNonce(t);this.loggerService.logDebug(t,"Authorize created. adding myautostate: "+n);const r=this.getRedirectUrl(t);if(!r)return null;const a=this.flowsDataService.createCodeVerifier(t),o=this.jsrsAsignReducedService.generateCodeChallenge(a);return this.storagePersistenceService.read("authWellKnownEndPoints",t)?this.createAuthorizeUrl(o,r,i,n,t,null,e):(this.loggerService.logError(t,"authWellKnownEndpoints is undefined"),null)}getRedirectUrl(t){const{redirectUrl:e}=this.configurationProvider.getOpenIDConfiguration(t);return e||this.loggerService.logError(t,"could not get redirectUrl, was: ",e),e}getSilentRenewUrl(t){const{silentRenewUrl:e}=this.configurationProvider.getOpenIDConfiguration(t);return e||(this.loggerService.logError(t,"could not get silentRenewUrl, was: ",e),null)}getPostLogoutRedirectUrl(t){const{postLogoutRedirectUri:e}=this.configurationProvider.getOpenIDConfiguration(t);return e||(this.loggerService.logError(t,"could not get postLogoutRedirectUri, was: ",e),null)}getClientId(t){const{clientId:e}=this.configurationProvider.getOpenIDConfiguration(t);return e||(this.loggerService.logError(t,"could not get clientId, was: ",e),null)}appendCustomParams(t,e){for(const[n,i]of Object.entries(Object.assign({},t)))e=e.append(n,i.toString());return e}createHttpParams(t){return new vm({fromString:t=null!=t?t:"",encoder:new oY})}}return t["ɵfac"]=function(e){return new(e||t)(wi(ZW),wi(KW),wi(lY),wi(cY),wi(XW),wi(tY))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),uY=(()=>{class t{constructor(t,e,n,i,r,a,o){this.urlService=t,this.loggerService=e,this.tokenValidationService=n,this.flowsDataService=i,this.configurationProvider=r,this.storagePersistenceService=a,this.dataService=o}codeFlowCallback(t,e){const n=this.urlService.getUrlParameter(t,"code"),i=this.urlService.getUrlParameter(t,"state"),r=this.urlService.getUrlParameter(t,"session_state")||null;return i?n?(this.loggerService.logDebug(e,"running validation for callback",t),Uu({code:n,refreshToken:null,state:i,sessionState:r,authResult:null,isRenewProcess:!1,jwtKeys:null,validationResult:null,existingIdToken:null})):(this.loggerService.logDebug(e,"no code in url"),Wu("no code in url")):(this.loggerService.logDebug(e,"no state in url"),Wu("no state in url"))}codeFlowCodeRequest(t,e){const n=this.flowsDataService.getAuthStateControl(e);if(!this.tokenValidationService.validateStateFromHashCallback(t.state,n,e))return Wu("codeFlowCodeRequest incorrect state");const i=this.storagePersistenceService.read("authWellKnownEndPoints",e),r=null==i?void 0:i.tokenEndpoint;if(!r)return Wu("Token Endpoint not defined");let a=new mm;a=a.set("Content-Type","application/x-www-form-urlencoded");const o=this.configurationProvider.getOpenIDConfiguration(e),s=this.urlService.createBodyForCodeFlowCodeRequest(t.code,e,null==o?void 0:o.customParamsCodeRequest);return this.dataService.post(r,s,e,a).pipe(Ju((e=>{let n=new Object;return n=e,n.state=t.state,n.session_state=t.sessionState,t.authResult=n,Uu(t)})),IW((t=>this.handleRefreshRetry(t,e))),_S((t=>{const{authority:n}=this.configurationProvider.getOpenIDConfiguration(e),i="OidcService code request "+n;return this.loggerService.logError(e,i,t),Wu(i)})))}handleRefreshRetry(t,e){return t.pipe(j((t=>{if(t&&t instanceof Em&&t.error instanceof ProgressEvent&&"error"===t.error.type){const{authority:n,refreshTokenRetryInSeconds:i}=this.configurationProvider.getOpenIDConfiguration(e);return this.loggerService.logWarning(e,"OidcService code request "+n+" - no internet connection",t),nC(1e3*i)}return Wu(t)})))}}return t["ɵfac"]=function(e){return new(e||t)(wi(dY),wi(KW),wi(eY),wi(lY),wi(ZW),wi(XW),wi(UW))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})();const mY={userData:null,allUserData:[]};let pY=(()=>{class t{constructor(t,e,n,i,r,a,o){this.oidcDataService=t,this.storagePersistenceService=e,this.eventService=n,this.loggerService=i,this.tokenHelperService=r,this.flowHelper=a,this.configurationProvider=o,this.userDataInternal$=new Lb(mY)}get userData$(){return this.userDataInternal$.asObservable()}getAndPersistUserDataInStore(t,e=!1,n,i){n=n||this.storagePersistenceService.getIdToken(t),i=i||this.tokenHelperService.getPayloadFromToken(n,!1,t);const r=this.getUserDataFromStore(t),a=!!r,o=this.flowHelper.isCurrentFlowImplicitFlowWithAccessToken(t),s=this.flowHelper.isCurrentFlowCodeFlow(t),l=this.storagePersistenceService.getAccessToken(t);if(!o&&!s)return this.loggerService.logDebug(t,"authCallback idToken flow with accessToken "+l),this.setUserDataToStore(i,t),Uu(i);const{renewUserInfoAfterTokenRenew:c}=this.configurationProvider.getOpenIDConfiguration(t);return e&&!c&&a?Uu(r):this.getUserDataOidcFlowAndSave(i.sub,t).pipe(Ju((e=>(this.loggerService.logDebug(t,"Received user data: ",e),e?(this.loggerService.logDebug(t,"accessToken: ",l),Uu(e)):Wu("Received no user data, request failed")))))}getUserDataFromStore(t){return this.storagePersistenceService.read("userData",t)||null}publishUserDataIfExists(t){const e=this.getUserDataFromStore(t);e&&this.fireUserDataEvent(t,e)}setUserDataToStore(t,e){this.storagePersistenceService.write("userData",t,e),this.fireUserDataEvent(e,t)}resetUserDataInStore(t){this.storagePersistenceService.remove("userData",t),this.fireUserDataEvent(t,null)}getUserDataOidcFlowAndSave(t,e){return this.getIdentityUserData(e).pipe(L((n=>this.validateUserDataSubIdToken(t,null==n?void 0:n.sub)?(this.setUserDataToStore(n,e),n):(this.loggerService.logWarning(e,"User data sub does not match sub in id_token, resetting"),this.resetUserDataInStore(e),null))))}getIdentityUserData(t){const e=this.storagePersistenceService.getAccessToken(t),n=this.storagePersistenceService.read("authWellKnownEndPoints",t);if(!n)return this.loggerService.logWarning(t,"init check session: authWellKnownEndpoints is undefined"),Wu("authWellKnownEndpoints is undefined");const i=n.userinfoEndpoint;return i?this.oidcDataService.get(i,t,e).pipe(RW(2)):(this.loggerService.logError(t,"init check session: authWellKnownEndpoints.userinfo_endpoint is undefined; set auto_userinfo = false in config"),Wu("authWellKnownEndpoints.userinfo_endpoint is undefined"))}validateUserDataSubIdToken(t,e){return!(!t||!e||t!==e&&(this.loggerService.logDebug("validateUserDataSubIdToken failed",t,e),1))}fireUserDataEvent(t,e){const n=this.composeSingleOrMultipleUserDataObject(t,e);this.userDataInternal$.next(n),this.eventService.fireEvent(YW.UserDataChanged,{configId:t,userData:e})}composeSingleOrMultipleUserDataObject(t,e){return this.configurationProvider.hasManyConfigs()?{userData:null,allUserData:this.configurationProvider.getAllConfigurations().map((n=>{if(this.currentConfigIsToUpdate(t,n))return{configId:n.configId,userData:e};const i=this.storagePersistenceService.read("userData",n.configId)||null;return{configId:n.configId,userData:i}}))}:this.composeSingleUserDataResult(t,e)}composeSingleUserDataResult(t,e){return{userData:e,allUserData:[{configId:t,userData:e}]}}currentConfigIsToUpdate(t,e){return e.configId===t}}return t["ɵfac"]=function(e){return new(e||t)(wi(UW),wi(XW),wi(JW),wi(KW),wi(QW),wi(cY),wi(ZW))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),gY=(()=>{class t{constructor(t,e,n){this.authStateService=t,this.flowsDataService=e,this.userService=n}resetAuthorizationData(t){this.userService.resetUserDataInStore(t),this.flowsDataService.resetStorageFlowData(t),this.authStateService.setUnauthenticatedAndFireEvent(t)}}return t["ɵfac"]=function(e){return new(e||t)(wi(iY),wi(lY),wi(pY))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),fY=(()=>{class t{constructor(t,e,n,i){this.resetAuthDataService=t,this.loggerService=e,this.flowsDataService=n,this.doc=i}implicitFlowCallback(t,e){const n=this.flowsDataService.isSilentRenewRunning(t);return this.loggerService.logDebug(t,"BEGIN callback, no auth data"),n||this.resetAuthDataService.resetAuthorizationData(t),Uu({code:null,refreshToken:null,state:null,sessionState:null,authResult:(e=e||this.doc.location.hash.substr(1)).split("&").reduce(((t,e)=>{const n=e.split("=");return t[n.shift()]=n.join("="),t}),{}),isRenewProcess:n,jwtKeys:null,validationResult:null,existingIdToken:null})}}return t["ɵfac"]=function(e){return new(e||t)(wi(gY),wi(KW),wi(lY),wi(Hh))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})();var bY,yY=((bY=yY||(yY={})).NotSet="NotSet",bY.StatesDoNotMatch="StatesDoNotMatch",bY.SignatureFailed="SignatureFailed",bY.IncorrectNonce="IncorrectNonce",bY.RequiredPropertyMissing="RequiredPropertyMissing",bY.MaxOffsetExpired="MaxOffsetExpired",bY.IssDoesNotMatchIssuer="IssDoesNotMatchIssuer",bY.NoAuthWellKnownEndPoints="NoAuthWellKnownEndPoints",bY.IncorrectAud="IncorrectAud",bY.IncorrectIdTokenClaimsAfterRefresh="IncorrectIdTokenClaimsAfterRefresh",bY.IncorrectAzp="IncorrectAzp",bY.TokenExpired="TokenExpired",bY.IncorrectAtHash="IncorrectAtHash",bY.Ok="Ok",bY.LoginRequired="LoginRequired",bY.SecureTokenServerError="SecureTokenServerError",yY);let vY=(()=>{class t{constructor(t,e,n){this.storagePersistenceService=t,this.loggerService=e,this.dataService=n}getSigningKeys(t){const e=this.storagePersistenceService.read("authWellKnownEndPoints",t),n=null==e?void 0:e.jwksUri;if(!n){const e="getSigningKeys: authWellKnownEndpoints.jwksUri is: '"+n+"'";return this.loggerService.logWarning(t,e),Wu(e)}return this.loggerService.logDebug(t,"Getting signinkeys from ",n),this.dataService.get(n,t).pipe(RW(2),_S((e=>this.handleErrorGetSigningKeys(e,t))))}handleErrorGetSigningKeys(t,e){let n="";if(t instanceof Dm){const e=JSON.stringify(t.body||{}),{status:i,statusText:r}=t;n=(i||"")+" - "+(r||"")+" "+(e||"")}else{const{message:e}=t;n=e||""+t}return this.loggerService.logError(e,n),Wu(n)}}return t["ɵfac"]=function(e){return new(e||t)(wi(XW),wi(KW),wi(UW))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})();const wY="jwtKeys";let xY=(()=>{class t{constructor(t,e,n,i,r,a,o){this.loggerService=t,this.configurationProvider=e,this.authStateService=n,this.flowsDataService=i,this.signInKeyDataService=r,this.storagePersistenceService=a,this.resetAuthDataService=o}callbackHistoryAndResetJwtKeys(t,e){if(this.storagePersistenceService.write("authnResult",t.authResult,e),this.historyCleanUpTurnedOn(e)&&!t.isRenewProcess?this.resetBrowserHistory():this.loggerService.logDebug(e,"history clean up inactive"),t.authResult.error){const n="AuthCallback AuthResult came with error: "+t.authResult.error;return this.loggerService.logDebug(e,n),this.resetAuthDataService.resetAuthorizationData(e),this.flowsDataService.setNonce("",e),this.handleResultErrorFromCallback(t.authResult,t.isRenewProcess),Wu(n)}return this.loggerService.logDebug(e,"AuthResult '"+JSON.stringify(t.authResult,null,2)+"'.\n AuthCallback created, begin token validation"),this.signInKeyDataService.getSigningKeys(e).pipe(wS((t=>this.storeSigningKeys(t,e))),_S((t=>{const n=this.readSigningKeys(e);return n?(this.loggerService.logWarning(e,"Failed to retrieve signing keys, fallback to stored keys"),Uu(n)):Wu(t)})),Ju((n=>{if(n)return t.jwtKeys=n,Uu(t);const i="Failed to retrieve signing key";return this.loggerService.logWarning(e,i),Wu(i)})),_S((t=>{const n="Failed to retrieve signing key with error: "+t;return this.loggerService.logWarning(e,n),Wu(n)})))}handleResultErrorFromCallback(t,e){let n=yY.SecureTokenServerError;"login_required"===t.error&&(n=yY.LoginRequired),this.authStateService.updateAndPublishAuthState({isAuthenticated:!1,validationResult:n,isRenewProcess:e})}historyCleanUpTurnedOn(t){const{historyCleanupOff:e}=this.configurationProvider.getOpenIDConfiguration(t);return!e}resetBrowserHistory(){window.history.replaceState({},window.document.title,window.location.origin+window.location.pathname)}storeSigningKeys(t,e){this.storagePersistenceService.write(wY,t,e)}readSigningKeys(t){return this.storagePersistenceService.read(wY,t)}}return t["ɵfac"]=function(e){return new(e||t)(wi(KW),wi(ZW),wi(iY),wi(lY),wi(vY),wi(XW),wi(gY))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),CY=(()=>{class t{constructor(t,e,n,i,r,a){this.loggerService=t,this.configurationProvider=e,this.authStateService=n,this.flowsDataService=i,this.userService=r,this.resetAuthDataService=a}callbackUser(t,e){const{isRenewProcess:n,validationResult:i,authResult:r,refreshToken:a}=t,{autoUserInfo:o,renewUserInfoAfterTokenRenew:s}=this.configurationProvider.getOpenIDConfiguration(e);return o?this.userService.getAndPersistUserDataInStore(e,n,i.idToken,i.decodedIdToken).pipe(Ju((o=>{if(o)return a||this.flowsDataService.setSessionState(r.session_state,e),this.publishAuthState(i,n),Uu(t);{this.resetAuthDataService.resetAuthorizationData(e),this.publishUnauthenticatedState(i,n);const t="Called for userData but they were "+o;return this.loggerService.logWarning(e,t),Wu(t)}})),_S((t=>{const n="Failed to retrieve user info with error: "+t;return this.loggerService.logWarning(e,n),Wu(n)}))):((!n||s)&&i.decodedIdToken&&this.userService.setUserDataToStore(i.decodedIdToken,e),!n&&!a&&this.flowsDataService.setSessionState(r.session_state,e),this.publishAuthState(i,n),Uu(t))}publishAuthState(t,e){this.authStateService.updateAndPublishAuthState({isAuthenticated:!0,validationResult:t.state,isRenewProcess:e})}publishUnauthenticatedState(t,e){this.authStateService.updateAndPublishAuthState({isAuthenticated:!1,validationResult:t.state,isRenewProcess:e})}}return t["ɵfac"]=function(e){return new(e||t)(wi(KW),wi(ZW),wi(iY),wi(lY),wi(pY),wi(gY))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})();class kY{constructor(t="",e="",n=!1,i={},r=yY.NotSet){this.accessToken=t,this.idToken=e,this.authResponseIsValid=n,this.decodedIdToken=i,this.state=r}}let SY=(()=>{class t{isStringEqualOrNonOrderedArrayEqual(t,e){return!(this.isNullOrUndefined(t)||this.isNullOrUndefined(e)||this.oneValueIsStringAndTheOtherIsArray(t,e))&&(this.bothValuesAreStrings(t,e)?t===e:!!this.bothValuesAreArrays(t,e)&&this.arraysHaveEqualContent(t,e))}areEqual(t,e){if(!t||!e)return!1;if(this.bothValuesAreArrays(t,e))return this.arraysStrictEqual(t,e);if(this.bothValuesAreStrings(t,e))return t===e;if(this.bothValuesAreObjects(t,e))return JSON.stringify(t).toLowerCase()===JSON.stringify(e).toLowerCase();if(this.oneValueIsStringAndTheOtherIsArray(t,e)){if(Array.isArray(t)&&this.valueIsString(e))return t[0]===e;if(Array.isArray(e)&&this.valueIsString(t))return e[0]===t}return!1}oneValueIsStringAndTheOtherIsArray(t,e){return Array.isArray(t)&&this.valueIsString(e)||Array.isArray(e)&&this.valueIsString(t)}bothValuesAreObjects(t,e){return this.valueIsObject(t)&&this.valueIsObject(e)}bothValuesAreStrings(t,e){return this.valueIsString(t)&&this.valueIsString(e)}bothValuesAreArrays(t,e){return Array.isArray(t)&&Array.isArray(e)}valueIsString(t){return"string"==typeof t||t instanceof String}valueIsObject(t){return"object"==typeof t}arraysStrictEqual(t,e){if(t.length!==e.length)return!1;for(let n=t.length;n--;)if(t[n]!==e[n])return!1;return!0}arraysHaveEqualContent(t,e){return t.length===e.length&&t.some((t=>e.includes(t)))}isNullOrUndefined(t){return null==t}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),PY=(()=>{class t{constructor(t,e,n,i,r,a,o){this.storagePersistenceService=t,this.tokenValidationService=e,this.tokenHelperService=n,this.loggerService=i,this.configurationProvider=r,this.equalityService=a,this.flowHelper=o}getValidatedStateResult(t,e){return t?t.authResult.error?new kY("","",!1,{}):this.validateState(t,e):new kY("","",!1,{})}validateState(t,e){const n=new kY,i=this.storagePersistenceService.read("authStateControl",e);if(!this.tokenValidationService.validateStateFromHashCallback(t.authResult.state,i,e))return this.loggerService.logWarning(e,"authCallback incorrect state"),n.state=yY.StatesDoNotMatch,this.handleUnsuccessfulValidation(e),n;const r=this.flowHelper.isCurrentFlowImplicitFlowWithAccessToken(e),a=this.flowHelper.isCurrentFlowCodeFlow(e);if((r||a)&&(n.accessToken=t.authResult.access_token),t.authResult.id_token){const{clientId:i,issValidationOff:r,maxIdTokenIatOffsetAllowedInSeconds:a,disableIatOffsetValidation:o,ignoreNonceAfterRefresh:s}=this.configurationProvider.getOpenIDConfiguration(e);if(n.idToken=t.authResult.id_token,n.decodedIdToken=this.tokenHelperService.getPayloadFromToken(n.idToken,!1,e),!this.tokenValidationService.validateSignatureIdToken(n.idToken,t.jwtKeys,e))return this.loggerService.logDebug(e,"authCallback Signature validation failed id_token"),n.state=yY.SignatureFailed,this.handleUnsuccessfulValidation(e),n;const l=this.storagePersistenceService.read("authNonce",e);if(!this.tokenValidationService.validateIdTokenNonce(n.decodedIdToken,l,s,e))return this.loggerService.logWarning(e,"authCallback incorrect nonce"),n.state=yY.IncorrectNonce,this.handleUnsuccessfulValidation(e),n;if(!this.tokenValidationService.validateRequiredIdToken(n.decodedIdToken,e))return this.loggerService.logDebug(e,"authCallback Validation, one of the REQUIRED properties missing from id_token"),n.state=yY.RequiredPropertyMissing,this.handleUnsuccessfulValidation(e),n;if(!this.tokenValidationService.validateIdTokenIatMaxOffset(n.decodedIdToken,a,o,e))return this.loggerService.logWarning(e,"authCallback Validation, iat rejected id_token was issued too far away from the current time"),n.state=yY.MaxOffsetExpired,this.handleUnsuccessfulValidation(e),n;const c=this.storagePersistenceService.read("authWellKnownEndPoints",e);if(!c)return this.loggerService.logWarning(e,"authWellKnownEndpoints is undefined"),n.state=yY.NoAuthWellKnownEndPoints,this.handleUnsuccessfulValidation(e),n;if(r)this.loggerService.logDebug(e,"iss validation is turned off, this is not recommended!");else if(!r&&!this.tokenValidationService.validateIdTokenIss(n.decodedIdToken,c.issuer,e))return this.loggerService.logWarning(e,"authCallback incorrect iss does not match authWellKnownEndpoints issuer"),n.state=yY.IssDoesNotMatchIssuer,this.handleUnsuccessfulValidation(e),n;if(!this.tokenValidationService.validateIdTokenAud(n.decodedIdToken,i,e))return this.loggerService.logWarning(e,"authCallback incorrect aud"),n.state=yY.IncorrectAud,this.handleUnsuccessfulValidation(e),n;if(!this.tokenValidationService.validateIdTokenAzpExistsIfMoreThanOneAud(n.decodedIdToken))return this.loggerService.logWarning(e,"authCallback missing azp"),n.state=yY.IncorrectAzp,this.handleUnsuccessfulValidation(e),n;if(!this.tokenValidationService.validateIdTokenAzpValid(n.decodedIdToken,i))return this.loggerService.logWarning(e,"authCallback incorrect azp"),n.state=yY.IncorrectAzp,this.handleUnsuccessfulValidation(e),n;if(!this.isIdTokenAfterRefreshTokenRequestValid(t,n.decodedIdToken,e))return this.loggerService.logWarning(e,"authCallback pre, post id_token claims do not match in refresh"),n.state=yY.IncorrectIdTokenClaimsAfterRefresh,this.handleUnsuccessfulValidation(e),n;if(!this.tokenValidationService.validateIdTokenExpNotExpired(n.decodedIdToken,e))return this.loggerService.logWarning(e,"authCallback id token expired"),n.state=yY.TokenExpired,this.handleUnsuccessfulValidation(e),n}else this.loggerService.logDebug(e,"No id_token found, skipping id_token validation");if(!r&&!a)return n.authResponseIsValid=!0,n.state=yY.Ok,this.handleSuccessfulValidation(e),this.handleUnsuccessfulValidation(e),n;if(t.authResult.id_token){const t=this.tokenHelperService.getHeaderFromToken(n.idToken,!1,e);if(a&&!n.decodedIdToken.at_hash)this.loggerService.logDebug(e,"Code Flow active, and no at_hash in the id_token, skipping check!");else if(!this.tokenValidationService.validateIdTokenAtHash(n.accessToken,n.decodedIdToken.at_hash,t.alg,e)||!n.accessToken)return this.loggerService.logWarning(e,"authCallback incorrect at_hash"),n.state=yY.IncorrectAtHash,this.handleUnsuccessfulValidation(e),n}return n.authResponseIsValid=!0,n.state=yY.Ok,this.handleSuccessfulValidation(e),n}isIdTokenAfterRefreshTokenRequestValid(t,e,n){const{useRefreshToken:i,disableRefreshIdTokenAuthTimeValidation:r}=this.configurationProvider.getOpenIDConfiguration(n);if(!i||!t.existingIdToken)return!0;const a=this.tokenHelperService.getPayloadFromToken(t.existingIdToken,!1,n);return a.iss!==e.iss?(this.loggerService.logDebug(n,"iss do not match: "+a.iss+" "+e.iss),!1):a.azp!==e.azp?(this.loggerService.logDebug(n,"azp do not match: "+a.azp+" "+e.azp),!1):a.sub!==e.sub?(this.loggerService.logDebug(n,"sub do not match: "+a.sub+" "+e.sub),!1):this.equalityService.isStringEqualOrNonOrderedArrayEqual(null==a?void 0:a.aud,null==e?void 0:e.aud)?!!r||a.auth_time===e.auth_time||(this.loggerService.logDebug(n,"auth_time do not match: "+a.auth_time+" "+e.auth_time),!1):(this.loggerService.logDebug(n,"aud in new id_token is not valid: '"+(null==a?void 0:a.aud)+"' '"+e.aud+"'"),!1)}handleSuccessfulValidation(t){const{autoCleanStateAfterAuthentication:e}=this.configurationProvider.getOpenIDConfiguration(t);this.storagePersistenceService.write("authNonce",null,t),e&&this.storagePersistenceService.write("authStateControl","",t),this.loggerService.logDebug(t,"authCallback token(s) validated, continue")}handleUnsuccessfulValidation(t){const{autoCleanStateAfterAuthentication:e}=this.configurationProvider.getOpenIDConfiguration(t);this.storagePersistenceService.write("authNonce",null,t),e&&this.storagePersistenceService.write("authStateControl","",t),this.loggerService.logDebug(t,"authCallback token(s) invalid")}}return t["ɵfac"]=function(e){return new(e||t)(wi(XW),wi(eY),wi(QW),wi(KW),wi(ZW),wi(SY),wi(cY))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),_Y=(()=>{class t{constructor(t,e,n,i,r){this.loggerService=t,this.stateValidationService=e,this.authStateService=n,this.resetAuthDataService=i,this.doc=r}callbackStateValidation(t,e){const n=this.stateValidationService.getValidatedStateResult(t,e);if(t.validationResult=n,n.authResponseIsValid)return this.authStateService.setAuthorizationData(n.accessToken,t.authResult,e),Uu(t);{const n="authorizedCallback, token(s) validation failed, resetting. Hash: "+this.doc.location.hash;return this.loggerService.logWarning(e,n),this.resetAuthDataService.resetAuthorizationData(e),this.publishUnauthorizedState(t.validationResult,t.isRenewProcess),Wu(n)}}publishUnauthorizedState(t,e){this.authStateService.updateAndPublishAuthState({isAuthenticated:!1,validationResult:t.state,isRenewProcess:e})}}return t["ɵfac"]=function(e){return new(e||t)(wi(KW),wi(PY),wi(iY),wi(gY),wi(Hh))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),MY=(()=>{class t{constructor(t,e,n){this.loggerService=t,this.authStateService=e,this.flowsDataService=n}refreshSessionWithRefreshTokens(t){const e=this.flowsDataService.getExistingOrCreateAuthStateControl(t);this.loggerService.logDebug(t,"RefreshSession created. Adding myautostate: "+e);const n=this.authStateService.getRefreshToken(t),i=this.authStateService.getIdToken(t);if(n){const r={code:null,refreshToken:n,state:e,sessionState:null,authResult:null,isRenewProcess:!0,jwtKeys:null,validationResult:null,existingIdToken:i};return this.loggerService.logDebug(t,"found refresh code, obtaining new credentials with refresh code"),this.flowsDataService.setNonce(eY.refreshTokenNoncePlaceholder,t),Uu(r)}{const e="no refresh token found, please login";return this.loggerService.logError(t,e),Wu(e)}}}return t["ɵfac"]=function(e){return new(e||t)(wi(KW),wi(iY),wi(lY))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),DY=(()=>{class t{constructor(t,e,n,i,r){this.urlService=t,this.loggerService=e,this.configurationProvider=n,this.dataService=i,this.storagePersistenceService=r}refreshTokensRequestTokens(t,e,n){let i=new mm;i=i.set("Content-Type","application/x-www-form-urlencoded");const r=this.storagePersistenceService.read("authWellKnownEndPoints",e),a=null==r?void 0:r.tokenEndpoint;if(!a)return Wu("Token Endpoint not defined");const o=this.urlService.createBodyForCodeFlowRefreshTokensRequest(t.refreshToken,e,n);return this.dataService.post(a,o,e,i).pipe(Ju((n=>{this.loggerService.logDebug(e,"token refresh response: ",n);let i=new Object;return i=n,i.state=t.state,t.authResult=i,Uu(t)})),IW((t=>this.handleRefreshRetry(t,e))),_S((t=>{const{authority:n}=this.configurationProvider.getOpenIDConfiguration(e),i="OidcService code request "+n;return this.loggerService.logError(e,i,t),Wu(i)})))}handleRefreshRetry(t,e){return t.pipe(j((t=>{if(t&&t instanceof Em&&t.error instanceof ProgressEvent&&"error"===t.error.type){const{authority:n,refreshTokenRetryInSeconds:i}=this.configurationProvider.getOpenIDConfiguration(e);return this.loggerService.logWarning(e,"OidcService code request "+n+" - no internet connection",t),nC(1e3*i)}return Wu(t)})))}}return t["ɵfac"]=function(e){return new(e||t)(wi(dY),wi(KW),wi(ZW),wi(UW),wi(XW))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),EY=(()=>{class t{constructor(t,e,n,i,r,a,o){this.codeFlowCallbackHandlerService=t,this.implicitFlowCallbackHandlerService=e,this.historyJwtKeysCallbackHandlerService=n,this.userHandlerService=i,this.stateValidationCallbackHandlerService=r,this.refreshSessionCallbackHandlerService=a,this.refreshTokenCallbackHandlerService=o}processCodeFlowCallback(t,e){return this.codeFlowCallbackHandlerService.codeFlowCallback(t,e).pipe(sm((t=>this.codeFlowCallbackHandlerService.codeFlowCodeRequest(t,e))),sm((t=>this.historyJwtKeysCallbackHandlerService.callbackHistoryAndResetJwtKeys(t,e))),sm((t=>this.stateValidationCallbackHandlerService.callbackStateValidation(t,e))),sm((t=>this.userHandlerService.callbackUser(t,e))))}processSilentRenewCodeFlowCallback(t,e){return this.codeFlowCallbackHandlerService.codeFlowCodeRequest(t,e).pipe(sm((t=>this.historyJwtKeysCallbackHandlerService.callbackHistoryAndResetJwtKeys(t,e))),sm((t=>this.stateValidationCallbackHandlerService.callbackStateValidation(t,e))),sm((t=>this.userHandlerService.callbackUser(t,e))))}processImplicitFlowCallback(t,e){return this.implicitFlowCallbackHandlerService.implicitFlowCallback(t,e).pipe(sm((e=>this.historyJwtKeysCallbackHandlerService.callbackHistoryAndResetJwtKeys(e,t))),sm((e=>this.stateValidationCallbackHandlerService.callbackStateValidation(e,t))),sm((e=>this.userHandlerService.callbackUser(e,t))))}processRefreshToken(t,e){return this.refreshSessionCallbackHandlerService.refreshSessionWithRefreshTokens(t).pipe(sm((n=>this.refreshTokenCallbackHandlerService.refreshTokensRequestTokens(n,t,e))),sm((e=>this.historyJwtKeysCallbackHandlerService.callbackHistoryAndResetJwtKeys(e,t))),sm((e=>this.stateValidationCallbackHandlerService.callbackStateValidation(e,t))),sm((e=>this.userHandlerService.callbackUser(e,t))))}}return t["ɵfac"]=function(e){return new(e||t)(wi(uY),wi(fY),wi(xY),wi(CY),wi(_Y),wi(MY),wi(DY))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),OY=(()=>{class t{constructor(t){this.zone=t,this.runTokenValidationRunning=null}stopPeriodicTokenCheck(){this.runTokenValidationRunning&&(this.runTokenValidationRunning.unsubscribe(),this.runTokenValidationRunning=null)}startPeriodicTokenCheck(t){const e=1e3*t;return new _((t=>{let n;return this.zone.runOutsideAngular((()=>{n=setInterval((()=>this.zone.run((()=>t.next()))),e)})),()=>{clearInterval(n)}}))}}return t["ɵfac"]=function(e){return new(e||t)(wi(ph))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"],providedIn:"root"}),t})(),AY=(()=>{class t{constructor(t,e,n,i,r){this.flowsService=t,this.configurationProvider=e,this.router=n,this.flowsDataService=i,this.intervalService=r}authenticatedImplicitFlowCallback(t,e){const n=this.flowsDataService.isSilentRenewRunning(t),{triggerAuthorizationResultEvent:i,postLoginRoute:r,unauthorizedRoute:a}=this.configurationProvider.getOpenIDConfiguration(t);return this.flowsService.processImplicitFlowCallback(t,e).pipe(wS((t=>{!i&&!t.isRenewProcess&&this.router.navigateByUrl(r)})),_S((e=>(this.flowsDataService.resetSilentRenewRunning(t),this.intervalService.stopPeriodicTokenCheck(),!i&&!n&&this.router.navigateByUrl(a),Wu(e)))))}}return t["ɵfac"]=function(e){return new(e||t)(wi(EY),wi(ZW),wi(kO),wi(lY),wi(OY))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"],providedIn:"root"}),t})(),TY=(()=>{class t{constructor(t,e){this.doc=t,this.loggerService=e}getExistingIFrame(t){const e=this.getIFrameFromParentWindow(t);if(this.isIFrameElement(e))return e;const n=this.getIFrameFromWindow(t);return this.isIFrameElement(n)?n:null}addIFrameToWindowBody(t,e){const n=this.doc.createElement("iframe");return n.id=t,n.title=t,this.loggerService.logDebug(e,n),n.style.display="none",this.doc.body.appendChild(n),n}getIFrameFromParentWindow(t){try{const e=this.doc.defaultView.parent.document.getElementById(t);return this.isIFrameElement(e)?e:null}catch(t){return null}}getIFrameFromWindow(t){const e=this.doc.getElementById(t);return this.isIFrameElement(e)?e:null}isIFrameElement(t){return!!t&&t instanceof HTMLIFrameElement}}return t["ɵfac"]=function(e){return new(e||t)(wi(Hh),wi(KW))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})();const IY="myiFrameForCheckSession";let LY=(()=>{class t{constructor(t,e,n,i,r,a){this.storagePersistenceService=t,this.loggerService=e,this.iFrameService=n,this.eventService=i,this.configurationProvider=r,this.zone=a,this.checkSessionReceived=!1,this.lastIFrameRefresh=0,this.outstandingMessages=0,this.heartBeatInterval=3e3,this.iframeRefreshInterval=6e4,this.checkSessionChangedInternal$=new Lb(!1)}get checkSessionChanged$(){return this.checkSessionChangedInternal$.asObservable()}isCheckSessionConfigured(t){const{startCheckSession:e}=this.configurationProvider.getOpenIDConfiguration(t);return e}start(t){if(this.scheduledHeartBeatRunning)return;const{clientId:e}=this.configurationProvider.getOpenIDConfiguration(t);this.pollServerSession(e,t)}stop(){!this.scheduledHeartBeatRunning||(this.clearScheduledHeartBeat(),this.checkSessionReceived=!1)}serverStateChanged(t){const{startCheckSession:e}=this.configurationProvider.getOpenIDConfiguration(t);return e&&this.checkSessionReceived}getExistingIframe(){return this.iFrameService.getExistingIFrame(IY)}init(t){if(this.lastIFrameRefresh+this.iframeRefreshInterval>Date.now())return Uu(void 0);const e=this.storagePersistenceService.read("authWellKnownEndPoints",t);if(!e)return this.loggerService.logWarning(t,"CheckSession - init check session: authWellKnownEndpoints is undefined. Returning."),Uu();const n=this.getOrCreateIframe(t),i=e.checkSessionIframe;return i?n.contentWindow.location.replace(i):this.loggerService.logWarning(t,"CheckSession - init check session: checkSessionIframe is not configured to run"),new _((t=>{n.onload=()=>{this.lastIFrameRefresh=Date.now(),t.next(),t.complete()}}))}pollServerSession(t,e){this.outstandingMessages=0;const n=()=>{this.init(e).pipe(JC(1)).subscribe((()=>{var i;const r=this.getExistingIframe();if(r&&t){this.loggerService.logDebug(e,"CheckSession - clientId : '"+t+"' - existingIframe: '"+r+"'");const n=this.storagePersistenceService.read("session_state",e),a=this.storagePersistenceService.read("authWellKnownEndPoints",e);if(n&&(null==a?void 0:a.checkSessionIframe)){const e=null===(i=new URL(a.checkSessionIframe))||void 0===i?void 0:i.origin;this.outstandingMessages++,r.contentWindow.postMessage(t+" "+n,e)}else this.loggerService.logDebug(e,"CheckSession - session_state is '"+n+"' - AuthWellKnownEndPoints is '"+JSON.stringify(a,null,2)+"'"),this.checkSessionChangedInternal$.next(!0)}else this.loggerService.logWarning(e,"CheckSession - OidcSecurityCheckSession pollServerSession checkSession IFrame does not exist:\n clientId : '"+t+"' - existingIframe: '"+r+"'");this.outstandingMessages>3&&this.loggerService.logError(e,"CheckSession - OidcSecurityCheckSession not receiving check session response messages.\n Outstanding messages: '"+this.outstandingMessages+"'. Server unreachable?"),this.zone.runOutsideAngular((()=>{this.scheduledHeartBeatRunning=setTimeout((()=>this.zone.run(n)),this.heartBeatInterval)}))}))};n()}clearScheduledHeartBeat(){clearTimeout(this.scheduledHeartBeatRunning),this.scheduledHeartBeatRunning=null}messageHandler(t,e){var n;const i=this.getExistingIframe(),r=this.storagePersistenceService.read("authWellKnownEndPoints",t),a=!!(null===(n=null==r?void 0:r.checkSessionIframe)||void 0===n?void 0:n.startsWith(e.origin));this.outstandingMessages=0,i&&a&&e.source===i.contentWindow&&("error"===e.data?this.loggerService.logWarning(t,"CheckSession - error from check session messageHandler"):"changed"===e.data?(this.loggerService.logDebug(t,"CheckSession - "+e+" from check session messageHandler"),this.checkSessionReceived=!0,this.eventService.fireEvent(YW.CheckSessionReceived,e.data),this.checkSessionChangedInternal$.next(!0)):(this.eventService.fireEvent(YW.CheckSessionReceived,e.data),this.loggerService.logDebug(t,"CheckSession - "+e.data+" from check session messageHandler")))}bindMessageEventToIframe(t){const e=this.messageHandler.bind(this,t);window.addEventListener("message",e,!1)}getOrCreateIframe(t){const e=this.getExistingIframe();if(!e){const e=this.iFrameService.addIFrameToWindowBody(IY,t);return this.bindMessageEventToIframe(t),e}return e}}return t["ɵfac"]=function(e){return new(e||t)(wi(XW),wi(KW),wi(TY),wi(JW),wi(ZW),wi(ph))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),zY=(()=>{class t{constructor(t){this.doc=t}getStateParamFromCurrentUrl(){const t=this.getCurrentUrl(),e=new URL(t);return new URLSearchParams(e.search).get("state")}currentUrlHasStateParam(){return!!this.getStateParamFromCurrentUrl()}getCurrentUrl(){return this.doc.defaultView.location.toString()}}return t["ɵfac"]=function(e){return new(e||t)(wi(Hh))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})();const RY="myiFrameForSilentRenew";let FY=(()=>{class t{constructor(t,e,n,i,r,a,o,s,l,c){this.configurationProvider=t,this.iFrameService=e,this.flowsService=n,this.resetAuthDataService=i,this.flowsDataService=r,this.authStateService=a,this.loggerService=o,this.flowHelper=s,this.implicitFlowCallbackService=l,this.intervalService=c,this.refreshSessionWithIFrameCompletedInternal$=new A}get refreshSessionWithIFrameCompleted$(){return this.refreshSessionWithIFrameCompletedInternal$.asObservable()}getOrCreateIframe(t){return this.getExistingIframe()||this.iFrameService.addIFrameToWindowBody(RY,t)}isSilentRenewConfigured(t){const{useRefreshToken:e,silentRenew:n}=this.configurationProvider.getOpenIDConfiguration(t);return!e&&n}codeFlowCallbackSilentRenewIframe(t,e){const n=new vm({fromString:t[1]}),i=n.get("error");if(i)return this.authStateService.updateAndPublishAuthState({isAuthenticated:!1,validationResult:yY.LoginRequired,isRenewProcess:!0}),this.resetAuthDataService.resetAuthorizationData(e),this.flowsDataService.setNonce("",e),this.intervalService.stopPeriodicTokenCheck(),Wu(i);const r=n.get("code"),a=n.get("state"),o=n.get("session_state");return this.flowsService.processSilentRenewCodeFlowCallback({code:r,refreshToken:null,state:a,sessionState:o,authResult:null,isRenewProcess:!0,jwtKeys:null,validationResult:null,existingIdToken:null},e).pipe(_S((t=>(this.intervalService.stopPeriodicTokenCheck(),this.resetAuthDataService.resetAuthorizationData(e),Wu(t)))))}silentRenewEventHandler(t,e){if(this.loggerService.logDebug(e,"silentRenewEventHandler"),!t.detail)return;let n=Uu(null);if(this.flowHelper.isCurrentFlowCodeFlow(e)){const i=t.detail.toString().split("?");n=this.codeFlowCallbackSilentRenewIframe(i,e)}else n=this.implicitFlowCallbackService.authenticatedImplicitFlowCallback(e,t.detail);n.subscribe((t=>{this.refreshSessionWithIFrameCompletedInternal$.next(t),this.flowsDataService.resetSilentRenewRunning(e)}),(t=>{this.loggerService.logError(e,"Error: "+t),this.refreshSessionWithIFrameCompletedInternal$.next(null),this.flowsDataService.resetSilentRenewRunning(e)}))}getExistingIframe(){return this.iFrameService.getExistingIFrame(RY)}}return t["ɵfac"]=function(e){return new(e||t)(wi(ZW),wi(TY),wi(EY),wi(gY),wi(lY),wi(iY),wi(KW),wi(cY),wi(AY),wi(OY))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),BY=(()=>{class t{constructor(t,e,n,i,r){this.flowsService=t,this.flowsDataService=e,this.intervalService=n,this.configurationProvider=i,this.router=r}authenticatedCallbackWithCode(t,e){const n=this.flowsDataService.isSilentRenewRunning(e),{triggerAuthorizationResultEvent:i,postLoginRoute:r,unauthorizedRoute:a}=this.configurationProvider.getOpenIDConfiguration(e);return this.flowsService.processCodeFlowCallback(t,e).pipe(wS((t=>{!i&&!t.isRenewProcess&&this.router.navigateByUrl(r)})),_S((t=>(this.flowsDataService.resetSilentRenewRunning(e),this.intervalService.stopPeriodicTokenCheck(),!i&&!n&&this.router.navigateByUrl(a),Wu(t)))))}}return t["ɵfac"]=function(e){return new(e||t)(wi(EY),wi(lY),wi(OY),wi(ZW),wi(kO))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"],providedIn:"root"}),t})(),VY=(()=>{class t{constructor(t,e,n,i){this.urlService=t,this.flowHelper=e,this.implicitFlowCallbackService=n,this.codeFlowCallbackService=i,this.stsCallbackInternal$=new A}get stsCallback$(){return this.stsCallbackInternal$.asObservable()}isCallback(t){return this.urlService.isCallbackFromSts(t)}handleCallbackAndFireEvents(t,e){let n;return this.flowHelper.isCurrentFlowCodeFlow(e)?n=this.codeFlowCallbackService.authenticatedCallbackWithCode(t,e):this.flowHelper.isCurrentFlowAnyImplicitFlow(e)&&(n=this.implicitFlowCallbackService.authenticatedImplicitFlowCallback(e)),n.pipe(wS((()=>this.stsCallbackInternal$.next())))}}return t["ɵfac"]=function(e){return new(e||t)(wi(dY),wi(cY),wi(AY),wi(BY))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"],providedIn:"root"}),t})();const NY="/.well-known/openid-configuration";let HY=(()=>{class t{constructor(t){this.http=t}getWellKnownEndPointsFromUrl(t,e){return this.getWellKnownDocument(t,e).pipe(L((t=>({issuer:t.issuer,jwksUri:t.jwks_uri,authorizationEndpoint:t.authorization_endpoint,tokenEndpoint:t.token_endpoint,userinfoEndpoint:t.userinfo_endpoint,endSessionEndpoint:t.end_session_endpoint,checkSessionIframe:t.check_session_iframe,revocationEndpoint:t.revocation_endpoint,introspectionEndpoint:t.introspection_endpoint,parEndpoint:t.pushed_authorization_request_endpoint}))))}getWellKnownDocument(t,e){let n=t;return t.includes(NY)||(n=""+t+NY),this.http.get(n,e).pipe(RW(2))}}return t["ɵfac"]=function(e){return new(e||t)(wi(UW))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),GY=(()=>{class t{constructor(t,e,n){this.publicEventsService=t,this.dataService=e,this.storagePersistenceService=n}getAuthWellKnownEndPoints(t,e){const n=this.storagePersistenceService.read("authWellKnownEndPoints",e);return n?Uu(n):this.getWellKnownEndPointsFromUrl(t,e).pipe(wS((t=>this.storeWellKnownEndpoints(e,t))),_S((t=>(this.publicEventsService.fireEvent(YW.ConfigLoadingFailed,null),Wu(t)))))}storeWellKnownEndpoints(t,e){this.storagePersistenceService.write("authWellKnownEndPoints",e,t)}getWellKnownEndPointsFromUrl(t,e){return this.dataService.getWellKnownEndPointsFromUrl(t,e)}}return t["ɵfac"]=function(e){return new(e||t)(wi(JW),wi(HY),wi(XW))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),ZY=(()=>{class t{constructor(t,e,n,i,r){this.doc=t,this.loggerService=e,this.urlService=n,this.silentRenewService=i,this.renderer=r.createRenderer(null,null)}refreshSessionWithIframe(t,e){this.loggerService.logDebug(t,"BEGIN refresh session Authorize Iframe renew");const n=this.urlService.getRefreshSessionSilentRenewUrl(t,e);return this.sendAuthorizeRequestUsingSilentRenew(n,t)}sendAuthorizeRequestUsingSilentRenew(t,e){const n=this.silentRenewService.getOrCreateIframe(e);return this.initSilentRenewRequest(e),this.loggerService.logDebug(e,"sendAuthorizeRequestUsingSilentRenew for URL:"+t),new _((i=>{const r=()=>{n.removeEventListener("load",r),this.loggerService.logDebug(e,"removed event listener from IFrame"),i.next(!0),i.complete()};n.addEventListener("load",r),n.contentWindow.location.replace(t)}))}initSilentRenewRequest(t){const e=Math.random(),n=this.renderer.listen("window","oidc-silent-renew-init",(t=>{t.detail!==e&&(n(),i())})),i=this.renderer.listen("window","oidc-silent-renew-message",(e=>this.silentRenewService.silentRenewEventHandler(e,t)));this.doc.defaultView.dispatchEvent(new CustomEvent("oidc-silent-renew-init",{detail:e}))}}return t["ɵfac"]=function(e){return new(e||t)(wi(Hh),wi(KW),wi(dY),wi(FY),wi(vl))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"],providedIn:"root"}),t})(),UY=(()=>{class t{constructor(t,e,n,i){this.loggerService=t,this.resetAuthDataService=e,this.flowsService=n,this.intervalService=i}refreshSessionWithRefreshTokens(t,e){return this.loggerService.logDebug(t,"BEGIN refresh session Authorize"),this.flowsService.processRefreshToken(t,e).pipe(_S((e=>(this.intervalService.stopPeriodicTokenCheck(),this.resetAuthDataService.resetAuthorizationData(t),Wu(e)))))}}return t["ɵfac"]=function(e){return new(e||t)(wi(KW),wi(gY),wi(EY),wi(OY))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"],providedIn:"root"}),t})(),WY=(()=>{class t{constructor(t,e,n,i,r,a,o,s,l,c,h){this.flowHelper=t,this.configurationProvider=e,this.flowsDataService=n,this.loggerService=i,this.silentRenewService=r,this.authStateService=a,this.authWellKnownService=o,this.refreshSessionIframeService=s,this.storagePersistenceService=l,this.refreshSessionRefreshTokenService=c,this.userService=h}userForceRefreshSession(t,e){return this.persistCustomParams(e,t),this.forceRefreshSession(t,e)}forceRefreshSession(t,e){const{customParamsRefreshTokenRequest:n}=this.configurationProvider.getOpenIDConfiguration(),i=Object.assign(Object.assign({},n),e);if(this.flowHelper.isCurrentFlowCodeFlowWithRefreshTokens(t))return this.startRefreshSession(t,i).pipe(L((()=>{const e=this.authStateService.areAuthStorageTokensValid(t);return e?{idToken:this.authStateService.getIdToken(t),accessToken:this.authStateService.getAccessToken(t),userData:this.userService.getUserDataFromStore(t),isAuthenticated:e,configId:t}:null})));const{silentRenewTimeoutInSeconds:r}=this.configurationProvider.getOpenIDConfiguration(t),a=1e3*r;return jm([this.startRefreshSession(t,e),this.silentRenewService.refreshSessionWithIFrameCompleted$.pipe(JC(1))]).pipe(function(t,e=Jx){return function(t,e,n=Jx){return i=>{let r=m_(t),a=r?+t-n.now():Math.abs(t);return i.lift(new VW(a,r,e,n))}}(t,Wu(new TW),e)}(a),IW(this.timeoutRetryStrategy.bind(this)),L((([e,n])=>{var i,r;const a=this.authStateService.areAuthStorageTokensValid(t);return a?{idToken:null===(i=null==n?void 0:n.authResult)||void 0===i?void 0:i.id_token,accessToken:null===(r=null==n?void 0:n.authResult)||void 0===r?void 0:r.access_token,userData:this.userService.getUserDataFromStore(t),isAuthenticated:a,configId:t}:null})))}persistCustomParams(t,e){const{useRefreshToken:n}=this.configurationProvider.getOpenIDConfiguration();t&&this.storagePersistenceService.write(n?"storageCustomParamsRefresh":"storageCustomParamsAuthRequest",t,e)}startRefreshSession(t,e){const n=this.flowsDataService.isSilentRenewRunning(t);if(this.loggerService.logDebug(t,"Checking: silentRenewRunning: "+n),n)return Uu(null);const{authWellknownEndpointUrl:i}=this.configurationProvider.getOpenIDConfiguration(t)||{};return i?this.authWellKnownService.getAuthWellKnownEndPoints(i,t).pipe(Ju((()=>(this.flowsDataService.setSilentRenewRunning(t),this.flowHelper.isCurrentFlowCodeFlowWithRefreshTokens(t)?this.refreshSessionRefreshTokenService.refreshSessionWithRefreshTokens(t,e):this.refreshSessionIframeService.refreshSessionWithIframe(t,e))))):(this.loggerService.logError(t,"no authWellKnownEndpoint given!"),Uu(null))}timeoutRetryStrategy(t,e){return t.pipe(j(((t,n)=>{const i=n+1;return!(t instanceof TW)||i>3?Wu(t):(this.loggerService.logDebug(e,"forceRefreshSession timeout. Attempt #"+i),this.flowsDataService.resetSilentRenewRunning(e),nC(1e3*i))})))}}return t["ɵfac"]=function(e){return new(e||t)(wi(cY),wi(ZW),wi(lY),wi(KW),wi(FY),wi(iY),wi(GY),wi(ZY),wi(XW),wi(UY),wi(pY))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"],providedIn:"root"}),t})(),YY=(()=>{class t{constructor(t,e,n,i,r,a,o,s,l,c,h,d){this.resetAuthDataService=t,this.flowHelper=e,this.configurationProvider=n,this.flowsDataService=i,this.loggerService=r,this.userService=a,this.authStateService=o,this.refreshSessionIframeService=s,this.refreshSessionRefreshTokenService=l,this.intervalService=c,this.storagePersistenceService=h,this.publicEventsService=d}startTokenValidationPeriodically(){const t=this.getConfigsWithSilentRenewEnabled();if(t.length<=0)return;const e=this.getSmallestRefreshTimeFromConfigs(t);if(this.intervalService.runTokenValidationRunning)return;const n=this.intervalService.startPeriodicTokenCheck(e).pipe(Ju((()=>{const e={};return t.forEach((({configId:t})=>{e[t]=this.getRefreshEvent(t)})),jm(e)})));this.intervalService.runTokenValidationRunning=n.subscribe((t=>{for(const[e,n]of Object.entries(t))this.loggerService.logDebug(e,"silent renew, periodic check finished!"),this.flowHelper.isCurrentFlowCodeFlowWithRefreshTokens(e)&&this.flowsDataService.resetSilentRenewRunning(e)}))}getRefreshEvent(t){if(!this.shouldStartPeriodicallyCheckForConfig(t))return Uu(null);const e=this.createRefreshEventForConfig(t);return this.publicEventsService.fireEvent(YW.SilentRenewStarted),e.pipe(_S((e=>(this.loggerService.logError(t,"silent renew failed!",e),this.flowsDataService.resetSilentRenewRunning(t),Wu(e)))))}getSmallestRefreshTimeFromConfigs(t){return t.reduce(((t,e)=>t.tokenRefreshInSeconds<e.tokenRefreshInSeconds?t:e)).tokenRefreshInSeconds}getConfigsWithSilentRenewEnabled(){return this.configurationProvider.getAllConfigurations().filter((t=>t.silentRenew))}createRefreshEventForConfig(t){this.loggerService.logDebug(t,"starting silent renew...");const e=this.configurationProvider.getOpenIDConfiguration(t);if(!(null==e?void 0:e.silentRenew))return this.resetAuthDataService.resetAuthorizationData(t),Uu(null);if(this.flowsDataService.setSilentRenewRunning(t),this.flowHelper.isCurrentFlowCodeFlowWithRefreshTokens(t)){const e=this.storagePersistenceService.read("storageCustomParamsRefresh",t)||{},{customParamsRefreshTokenRequest:n}=this.configurationProvider.getOpenIDConfiguration(t),i=Object.assign(Object.assign({},n),e);return this.refreshSessionRefreshTokenService.refreshSessionWithRefreshTokens(t,i)}const n=this.storagePersistenceService.read("storageCustomParamsAuthRequest",t);return this.refreshSessionIframeService.refreshSessionWithIframe(t,n)}shouldStartPeriodicallyCheckForConfig(t){const e=this.authStateService.getIdToken(t),n=this.flowsDataService.isSilentRenewRunning(t),i=this.userService.getUserDataFromStore(t);if(this.loggerService.logDebug(t,"Checking: silentRenewRunning: "+n+" - has idToken: "+!!e+" - has userData: "+!!i),!i||n||!e)return!1;const r=this.authStateService.hasIdTokenExpiredAndRenewCheckIsEnabled(t),a=this.authStateService.hasAccessTokenExpiredIfExpiryExists(t);return!(!r&&!a)}}return t["ɵfac"]=function(e){return new(e||t)(wi(gY),wi(cY),wi(ZW),wi(lY),wi(KW),wi(pY),wi(iY),wi(ZY),wi(UY),wi(OY),wi(XW),wi(JW))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"],providedIn:"root"}),t})(),jY=(()=>{class t{constructor(){this.STORAGE_IDENTIFIER="popupauth",this.resultInternal$=new A}get result$(){return this.resultInternal$.asObservable()}isCurrentlyInPopup(){if(this.canAccessSessionStorage()){const t=sessionStorage.getItem(this.STORAGE_IDENTIFIER);return!!window.opener&&window.opener!==window&&!!t}return!1}openPopUp(t,e){const n=this.getOptions(e);this.popUp=window.open(t,"_blank",n),this.popUp.sessionStorage.setItem(this.STORAGE_IDENTIFIER,"true");const i=t=>{!(null==t?void 0:t.data)||"string"!=typeof t.data||(this.resultInternal$.next({userClosed:!1,receivedUrl:t.data}),this.cleanUp(i))};window.addEventListener("message",i,!1),this.handle=window.setInterval((()=>{this.popUp.closed&&(this.resultInternal$.next({userClosed:!0}),this.cleanUp(i))}),200)}sendMessageToMainWindow(t){window.opener&&this.sendMessage(t,window.location.href)}cleanUp(t){var e;window.removeEventListener("message",t,!1),window.clearInterval(this.handle),this.popUp&&(null===(e=this.popUp.sessionStorage)||void 0===e||e.removeItem(this.STORAGE_IDENTIFIER),this.popUp.close(),this.popUp=null)}sendMessage(t,e){window.opener.postMessage(t,e)}getOptions(t){const e=Object.assign(Object.assign({},{width:500,height:500,left:50,top:50}),t||{});return Object.entries(e).map((([t,e])=>encodeURIComponent(t)+"="+encodeURIComponent(e))).join(",")}canAccessSessionStorage(){return"undefined"!=typeof navigator&&navigator.cookieEnabled&&"undefined"!=typeof Storage}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵprov"]=vt({token:t,factory:t["ɵfac"],providedIn:"root"}),t})(),XY=(()=>{class t{constructor(t,e,n,i,r,a,o,s,l,c,h,d,u){this.checkSessionService=t,this.currentUrlService=e,this.silentRenewService=n,this.userService=i,this.loggerService=r,this.configurationProvider=a,this.authStateService=o,this.callbackService=s,this.refreshSessionService=l,this.periodicallyTokenCheckService=c,this.popupService=h,this.autoLoginService=d,this.storagePersistenceService=u}checkAuth(t,e){if(this.currentUrlService.currentUrlHasStateParam()){const t=this.currentUrlService.getStateParamFromCurrentUrl(),n=this.getConfigurationWithUrlState(t);return n?this.checkAuthWithConfig(n,e):Wu("could not find matching config for state "+t)}if(t){const n=this.configurationProvider.getOpenIDConfiguration(t);return this.checkAuthWithConfig(n,e)}const n=this.configurationProvider.getOpenIDConfiguration();return this.checkAuthWithConfig(n,e)}checkAuthMultiple(t,e){if(this.currentUrlService.currentUrlHasStateParam()){const t=this.currentUrlService.getStateParamFromCurrentUrl(),n=this.getConfigurationWithUrlState(t);return n?this.composeMultipleLoginResults(n,e):Wu("could not find matching config for state "+t)}if(t){const n=this.configurationProvider.getOpenIDConfiguration(t);return n?this.composeMultipleLoginResults(n,e):Wu("could not find matching config for id "+t)}return jm(this.configurationProvider.getAllConfigurations().map((t=>this.checkAuthWithConfig(t,e))))}checkAuthIncludingServer(t){const e=this.configurationProvider.getOpenIDConfiguration(t);return this.checkAuthWithConfig(e).pipe(Ju((e=>{const{isAuthenticated:n}=e;return n?Uu(e):this.refreshSessionService.forceRefreshSession(t).pipe(wS((e=>{(null==e?void 0:e.isAuthenticated)&&this.startCheckSessionAndValidation(t)})))})))}checkAuthWithConfig(t,e){const{configId:n,authority:i}=t;if(!this.configurationProvider.hasAsLeastOneConfig()){const t="Please provide at least one configuration before setting up the module";return this.loggerService.logError(n,t),Uu({isAuthenticated:!1,errorMessage:t,userData:null,idToken:null,accessToken:null,configId:n})}const r=e||this.currentUrlService.getCurrentUrl();if(this.loggerService.logDebug(n,"Working with config '"+n+"' using "+i),this.popupService.isCurrentlyInPopup())return this.popupService.sendMessageToMainWindow(r),Uu(null);const a=this.callbackService.isCallback(r);return this.loggerService.logDebug(n,"currentUrl to check auth with: ",r),(a?this.callbackService.handleCallbackAndFireEvents(r,n):Uu(null)).pipe(L((()=>{const t=this.authStateService.areAuthStorageTokensValid(n);return t&&(this.startCheckSessionAndValidation(n),a||(this.authStateService.setAuthenticatedAndFireEvent(),this.userService.publishUserDataIfExists(n))),this.loggerService.logDebug(n,"checkAuth completed - firing events now. isAuthenticated: "+t),{isAuthenticated:t,userData:this.userService.getUserDataFromStore(n),accessToken:this.authStateService.getAccessToken(n),idToken:this.authStateService.getIdToken(n),configId:n}})),wS((({isAuthenticated:t})=>{t&&this.autoLoginService.checkSavedRedirectRouteAndNavigate(n)})),_S((t=>(this.loggerService.logError(n,t),Uu({isAuthenticated:!1,errorMessage:t,userData:null,idToken:null,accessToken:null,configId:n})))))}startCheckSessionAndValidation(t){this.checkSessionService.isCheckSessionConfigured(t)&&this.checkSessionService.start(t),this.periodicallyTokenCheckService.startTokenValidationPeriodically(),this.silentRenewService.isSilentRenewConfigured(t)&&this.silentRenewService.getOrCreateIframe(t)}getConfigurationWithUrlState(t){const e=this.configurationProvider.getAllConfigurations();for(const n of e)if(this.storagePersistenceService.read("authStateControl",n.configId)===t)return n;return null}composeMultipleLoginResults(t,e){const n=this.configurationProvider.getAllConfigurations().filter((e=>e.configId!==t.configId));return jm([this.checkAuthWithConfig(t,e),...n.map((t=>{const{redirectUrl:e}=t;return this.checkAuthWithConfig(t,e)}))])}}return t["ɵfac"]=function(e){return new(e||t)(wi(LY),wi(zY),wi(FY),wi(pY),wi(KW),wi(ZW),wi(iY),wi(VY),wi(WY),wi(YY),wi(jY),wi(aY),wi(XW))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})();"undefined"!=typeof navigator&&navigator.cookieEnabled&&"undefined"!=typeof Storage&&sessionStorage;let qY=(()=>{class t{constructor(t,e){this.loggerService=t,this.flowHelper=e}hasConfigValidResponseType(t){return!(!this.flowHelper.isCurrentFlowAnyImplicitFlow(t)&&!this.flowHelper.isCurrentFlowCodeFlow(t)&&(this.loggerService.logWarning(t,"module configured incorrectly, invalid response_type. Check the responseType in the config"),1))}}return t["ɵfac"]=function(e){return new(e||t)(wi(KW),wi(cY))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),$Y=(()=>{class t{constructor(t){this.doc=t}redirectTo(t){this.doc.location.href=t}}return t["ɵfac"]=function(e){return new(e||t)(wi(Hh))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"],providedIn:"root"}),t})(),KY=(()=>{class t{constructor(t,e,n,i){this.loggerService=t,this.urlService=e,this.dataService=n,this.storagePersistenceService=i}postParRequest(t,e){let n=new mm;n=n.set("Content-Type","application/x-www-form-urlencoded");const i=this.storagePersistenceService.read("authWellKnownEndPoints",t);if(!i)return Wu("Could not read PAR endpoint because authWellKnownEndPoints are not given");const r=i.parEndpoint;if(!r)return Wu("Could not read PAR endpoint from authWellKnownEndpoints");const a=this.urlService.createBodyForParCodeFlowRequest(t,e);return this.dataService.post(r,a,t,n).pipe(RW(2),L((e=>(this.loggerService.logDebug(t,"par response: ",e),{expiresIn:e.expires_in,requestUri:e.request_uri}))),_S((e=>{const n="There was an error on ParService postParRequest";return this.loggerService.logError(t,n,e),Wu(n)})))}}return t["ɵfac"]=function(e){return new(e||t)(wi(KW),wi(dY),wi(UW),wi(XW))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),JY=(()=>{class t{constructor(t,e,n,i,r,a,o,s,l){this.loggerService=t,this.responseTypeValidationService=e,this.urlService=n,this.redirectService=i,this.configurationProvider=r,this.authWellKnownService=a,this.popupService=o,this.checkAuthService=s,this.parService=l}loginPar(t,e){if(!this.responseTypeValidationService.hasConfigValidResponseType(t))return void this.loggerService.logError(t,"Invalid response type!");const{authWellknownEndpointUrl:n}=this.configurationProvider.getOpenIDConfiguration(t);if(!n)return void this.loggerService.logError(t,"no authWellknownEndpoint given!");this.loggerService.logDebug(t,"BEGIN Authorize OIDC Flow, no auth data");const{urlHandler:i,customParams:r}=e||{};this.authWellKnownService.getAuthWellKnownEndPoints(n,t).pipe(Ju((()=>this.parService.postParRequest(t,r)))).subscribe((e=>{this.loggerService.logDebug(t,"par response: ",e);const n=this.urlService.getAuthorizeParUrl(e.requestUri,t);this.loggerService.logDebug(t,"par request url: ",n),n?i?i(n):this.redirectService.redirectTo(n):this.loggerService.logError(t,"Could not create url with param "+e.requestUri+": '"+n+"'")}))}loginWithPopUpPar(t,e,n){if(!this.responseTypeValidationService.hasConfigValidResponseType(t)){const e="Invalid response type!";return this.loggerService.logError(t,e),Wu(e)}const{authWellknownEndpointUrl:i}=this.configurationProvider.getOpenIDConfiguration(t);if(!i){const e="no authWellknownEndpoint given!";return this.loggerService.logError(t,e),Wu(e)}this.loggerService.logDebug(t,"BEGIN Authorize OIDC Flow with popup, no auth data");const{customParams:r}=e||{};return this.authWellKnownService.getAuthWellKnownEndPoints(i,t).pipe(Ju((()=>this.parService.postParRequest(t,r))),Ju((e=>{this.loggerService.logDebug(t,"par response: ",e);const i=this.urlService.getAuthorizeParUrl(e.requestUri,t);if(this.loggerService.logDebug(t,"par request url: ",i),!i){const n="Could not create url with param "+e.requestUri+": 'url'";return this.loggerService.logError(t,n),Wu(n)}return this.popupService.openPopUp(i,n),this.popupService.result$.pipe(JC(1),Ju((e=>{const{userClosed:n,receivedUrl:i}=e;return n?Uu({isAuthenticated:!1,errorMessage:"User closed popup",userData:null,idToken:null,accessToken:null,configId:t}):this.checkAuthService.checkAuth(t,i)})))})))}}return t["ɵfac"]=function(e){return new(e||t)(wi(KW),wi(qY),wi(dY),wi($Y),wi(ZW),wi(GY),wi(jY),wi(XY),wi(KY))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),QY=(()=>{class t{constructor(t,e,n,i,r,a,o){this.loggerService=t,this.responseTypeValidationService=e,this.urlService=n,this.configurationProvider=i,this.authWellKnownService=r,this.popupService=a,this.checkAuthService=o}loginWithPopUpStandard(t,e,n){if(!this.responseTypeValidationService.hasConfigValidResponseType(t)){const e="Invalid response type!";return this.loggerService.logError(t,e),Wu(e)}const{authWellknownEndpointUrl:i}=this.configurationProvider.getOpenIDConfiguration(t);if(!i){const e="no authWellknownEndpoint given!";return this.loggerService.logError(t,e),Wu(e)}return this.loggerService.logDebug(t,"BEGIN Authorize OIDC Flow with popup, no auth data"),this.authWellKnownService.getAuthWellKnownEndPoints(i,t).pipe(Ju((()=>{const{customParams:i}=e||{},r=this.urlService.getAuthorizeUrl(t,i);return this.popupService.openPopUp(r,n),this.popupService.result$.pipe(JC(1),Ju((e=>{const{userClosed:n,receivedUrl:i}=e;return n?Uu({isAuthenticated:!1,errorMessage:"User closed popup",userData:null,idToken:null,accessToken:null,configId:t}):this.checkAuthService.checkAuth(t,i)})))})))}}return t["ɵfac"]=function(e){return new(e||t)(wi(KW),wi(qY),wi(dY),wi(ZW),wi(GY),wi(jY),wi(XY))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),tj=(()=>{class t{constructor(t,e,n,i,r,a){this.loggerService=t,this.responseTypeValidationService=e,this.urlService=n,this.redirectService=i,this.configurationProvider=r,this.authWellKnownService=a}loginStandard(t,e){if(!this.responseTypeValidationService.hasConfigValidResponseType(t))return void this.loggerService.logError(t,"Invalid response type!");const{authWellknownEndpointUrl:n}=this.configurationProvider.getOpenIDConfiguration(t);n?(this.loggerService.logDebug(t,"BEGIN Authorize OIDC Flow, no auth data"),this.authWellKnownService.getAuthWellKnownEndPoints(n,t).subscribe((()=>{const{urlHandler:n,customParams:i}=e||{},r=this.urlService.getAuthorizeUrl(t,i);r?n?n(r):this.redirectService.redirectTo(r):this.loggerService.logError(t,"Could not create url",r)}))):this.loggerService.logError(t,"no authWellknownEndpoint given!")}}return t["ɵfac"]=function(e){return new(e||t)(wi(KW),wi(qY),wi(dY),wi($Y),wi(ZW),wi(GY))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),ej=(()=>{class t{constructor(t,e,n,i,r){this.configurationProvider=t,this.parLoginService=e,this.popUpLoginService=n,this.standardLoginService=i,this.storagePersistenceService=r}login(t,e){(null==e?void 0:e.customParams)&&this.storagePersistenceService.write("storageCustomParamsAuthRequest",e.customParams,t);const{usePushedAuthorisationRequests:n}=this.configurationProvider.getOpenIDConfiguration(t);return n?this.parLoginService.loginPar(t,e):this.standardLoginService.loginStandard(t,e)}loginWithPopUp(t,e,n){(null==e?void 0:e.customParams)&&this.storagePersistenceService.write("storageCustomParamsAuthRequest",e.customParams,t);const{usePushedAuthorisationRequests:i}=this.configurationProvider.getOpenIDConfiguration(t);return i?this.parLoginService.loginWithPopUpPar(t,e,n):this.popUpLoginService.loginWithPopUpStandard(t,e,n)}}return t["ɵfac"]=function(e){return new(e||t)(wi(ZW),wi(JY),wi(QY),wi(tj),wi(XW))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),nj=(()=>{class t{constructor(t,e,n,i,r,a,o,s){this.dataService=t,this.storagePersistenceService=e,this.loggerService=n,this.urlService=i,this.checkSessionService=r,this.resetAuthDataService=a,this.redirectService=o,this.configurationProvider=s}logoff(t,e){const{urlHandler:n,customParams:i}=e||{};this.loggerService.logDebug(t,"logoff, remove auth ");const r=this.getEndSessionUrl(t,i);this.resetAuthDataService.resetAuthorizationData(t),r?this.checkSessionService.serverStateChanged(t)?this.loggerService.logDebug(t,"only local login cleaned up, server session has changed"):n?n(r):this.redirectService.redirectTo(r):this.loggerService.logDebug(t,"only local login cleaned up, no end_session_endpoint")}logoffLocal(t){this.resetAuthDataService.resetAuthorizationData(t),this.checkSessionService.stop()}logoffLocalMultiple(){this.configurationProvider.getAllConfigurations().forEach((({configId:t})=>this.logoffLocal(t)))}logoffAndRevokeTokens(t,e){const{revocationEndpoint:n}=this.storagePersistenceService.read("authWellKnownEndPoints",t)||{};return n||(this.loggerService.logDebug(t,"revocation endpoint not supported"),this.logoff(t,e)),this.storagePersistenceService.getRefreshToken(t)?this.revokeRefreshToken(t).pipe(Ju((e=>this.revokeAccessToken(t,e))),_S((e=>{const n="revoke token failed";return this.loggerService.logError(t,n,e),Wu(n)})),wS((()=>this.logoff(t,e)))):this.revokeAccessToken(t).pipe(_S((e=>{const n="revoke accessToken failed";return this.loggerService.logError(t,n,e),Wu(n)})),wS((()=>this.logoff(t,e))))}revokeAccessToken(t,e){const n=e||this.storagePersistenceService.getAccessToken(t),i=this.urlService.createRevocationEndpointBodyAccessToken(n,t);return this.sendRevokeRequest(t,i)}revokeRefreshToken(t,e){const n=e||this.storagePersistenceService.getRefreshToken(t),i=this.urlService.createRevocationEndpointBodyRefreshToken(n,t);return this.sendRevokeRequest(t,i)}getEndSessionUrl(t,e){const n=this.storagePersistenceService.getIdToken(t),{customParamsEndSessionRequest:i}=this.configurationProvider.getOpenIDConfiguration(),r=Object.assign(Object.assign({},i),e);return this.urlService.createEndSessionUrl(n,t,r)}sendRevokeRequest(t,e){const n=this.urlService.getRevocationEndpointUrl(t);let i=new mm;return i=i.set("Content-Type","application/x-www-form-urlencoded"),this.dataService.post(n,e,t,i).pipe(RW(2),Ju((e=>(this.loggerService.logDebug(t,"revocation endpoint post response: ",e),Uu(e)))),_S((e=>{const n="Revocation request failed";return this.loggerService.logError(t,n,e),Wu(n)})))}}return t["ɵfac"]=function(e){return new(e||t)(wi(UW),wi(XW),wi(KW),wi(dY),wi(LY),wi(gY),wi($Y),wi(ZW))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),ij=(()=>{class t{constructor(t,e,n,i,r,a,o,s,l,c,h){this.checkSessionService=t,this.checkAuthService=e,this.userService=n,this.tokenHelperService=i,this.configurationProvider=r,this.authStateService=a,this.flowsDataService=o,this.callbackService=s,this.logoffRevocationService=l,this.loginService=c,this.refreshSessionService=h}get userData$(){return this.userService.userData$}get isAuthenticated$(){return this.authStateService.authenticated$}get checkSessionChanged$(){return this.checkSessionService.checkSessionChanged$}get stsCallback$(){return this.callbackService.stsCallback$}getConfigurations(){return this.configurationProvider.getAllConfigurations()}getConfiguration(t){return t=null!=t?t:this.configurationProvider.getOpenIDConfiguration().configId,this.configurationProvider.getOpenIDConfiguration(t)}getUserData(t){return t=null!=t?t:this.configurationProvider.getOpenIDConfiguration().configId,this.userService.getUserDataFromStore(t)}checkAuth(t,e){return this.checkAuthService.checkAuth(e,t)}checkAuthMultiple(t,e){return this.checkAuthService.checkAuthMultiple(e,t)}isAuthenticated(t){return t=null!=t?t:this.configurationProvider.getOpenIDConfiguration(t).configId,this.authStateService.isAuthenticated(t)}checkAuthIncludingServer(t){return t=null!=t?t:this.configurationProvider.getOpenIDConfiguration(t).configId,this.checkAuthService.checkAuthIncludingServer(t)}getAccessToken(t){return t=null!=t?t:this.configurationProvider.getOpenIDConfiguration(t).configId,this.authStateService.getAccessToken(t)}getIdToken(t){return t=null!=t?t:this.configurationProvider.getOpenIDConfiguration(t).configId,this.authStateService.getIdToken(t)}getRefreshToken(t){return t=null!=t?t:this.configurationProvider.getOpenIDConfiguration(t).configId,this.authStateService.getRefreshToken(t)}getAuthenticationResult(t){return t=null!=t?t:this.configurationProvider.getOpenIDConfiguration(t).configId,this.authStateService.getAuthenticationResult(t)}getPayloadFromIdToken(t=!1,e){e=null!=e?e:this.configurationProvider.getOpenIDConfiguration(e).configId;const n=this.authStateService.getIdToken(e);return this.tokenHelperService.getPayloadFromToken(n,t,e)}setState(t,e){e=null!=e?e:this.configurationProvider.getOpenIDConfiguration(e).configId,this.flowsDataService.setAuthStateControl(t,e)}getState(t){return t=null!=t?t:this.configurationProvider.getOpenIDConfiguration(t).configId,this.flowsDataService.getAuthStateControl(t)}authorize(t,e){t=null!=t?t:this.configurationProvider.getOpenIDConfiguration(t).configId,this.loginService.login(t,e)}authorizeWithPopUp(t,e,n){return n=null!=n?n:this.configurationProvider.getOpenIDConfiguration(n).configId,this.loginService.loginWithPopUp(n,t,e)}forceRefreshSession(t,e){return e=null!=e?e:this.configurationProvider.getOpenIDConfiguration(e).configId,this.refreshSessionService.userForceRefreshSession(e,t)}logoffAndRevokeTokens(t,e){return t=null!=t?t:this.configurationProvider.getOpenIDConfiguration(t).configId,this.logoffRevocationService.logoffAndRevokeTokens(t,e)}logoff(t,e){return t=null!=t?t:this.configurationProvider.getOpenIDConfiguration(t).configId,this.logoffRevocationService.logoff(t,e)}logoffLocal(t){return t=null!=t?t:this.configurationProvider.getOpenIDConfiguration(t).configId,this.logoffRevocationService.logoffLocal(t)}logoffLocalMultiple(){return this.logoffRevocationService.logoffLocalMultiple()}revokeAccessToken(t,e){return e=null!=e?e:this.configurationProvider.getOpenIDConfiguration(e).configId,this.logoffRevocationService.revokeAccessToken(e,t)}revokeRefreshToken(t,e){return e=null!=e?e:this.configurationProvider.getOpenIDConfiguration(e).configId,this.logoffRevocationService.revokeRefreshToken(e,t)}getEndSessionUrl(t,e){return e=null!=e?e:this.configurationProvider.getOpenIDConfiguration(e).configId,this.logoffRevocationService.getEndSessionUrl(e,t)}}return t["ɵfac"]=function(e){return new(e||t)(wi(LY),wi(XY),wi(pY),wi(QW),wi(ZW),wi(iY),wi(lY),wi(VY),wi(nj),wi(ej),wi(WY))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})();new ni("PASSED_CONFIG");let rj=(()=>{class t{constructor(t,e){this.oidcSecurityService=t,this.router=e}checkAuth(){return this.oidcSecurityService.checkAuth().toPromise().then((({isAuthenticated:t})=>t))}login(t){let e="zh_CN"===qF.lang?"zh-CN":"en-US",n=t?Object.assign({ui_locales:e},t):{ui_locales:e};this.oidcSecurityService.authorize("",{customParams:n})}logout(){this.getToken()||this.router.navigate(["logout"]),this.oidcSecurityService.logoff()}getToken(){return this.oidcSecurityService.getAccessToken()}getUserData(){return this.oidcSecurityService.getUserData()}}return t.mTokenType="Bearer ",t["ɵfac"]=function(e){return new(e||t)(wi(ij),wi(kO))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"],providedIn:"root"}),t})();var aj,oj=((aj=oj||(oj={}))[aj.JSON=0]="JSON",aj[aj.ARRAYBUFFER=1]="ARRAYBUFFER",aj[aj.TEXT=2]="TEXT",oj);class sj{static ajax(t,e){let n=XF.instance().getItem("0-"+tU.auth.clientId,"session").authzData,i=new XMLHttpRequest;i.open(t.type,t.url,!0),void 0!==n&&i.setRequestHeader("Authorization",rj.mTokenType+" "+n),"blob"===t.dataType&&(i.responseType="blob"),t.contentType&&i.setRequestHeader("content-type",t.contentType),i.send(t.data),i.onreadystatechange=function(){if(4===i.readyState&&200===i.status)if("json"===t.dataType)e(i.responseText,oj.JSON);else if("blob"===t.dataType){let t=i.response,n=new FileReader;n.readAsArrayBuffer(t),n.onload=function(t){this.result instanceof ArrayBuffer&&e(this.result,oj.ARRAYBUFFER)}}else e(i.responseText,oj.TEXT)}}}var lj,cj,hj=((cj=hj||(hj={}))[cj.LoadLmf=0]="LoadLmf",cj[cj.LoadLmfCache=1]="LoadLmfCache",cj[cj.UncompressData=2]="UncompressData",cj[cj.Add=3]="Add",cj[cj.Delete=4]="Delete",cj[cj.Select=5]="Select",cj[cj.CancleSelect=6]="CancleSelect",cj[cj.ClearSelect=7]="ClearSelect",cj[cj.FrontLoad=8]="FrontLoad",cj[cj.InitCharMapper=9]="InitCharMapper",cj[cj.TurnOffWorker=10]="TurnOffWorker",cj[cj.LayerChange=11]="LayerChange",cj[cj.LoadImageData=12]="LoadImageData",cj[cj.LoadXrefLmf=13]="LoadXrefLmf",cj[cj.resize=14]="resize",cj[cj.setBackgroundForegroundColor=15]="setBackgroundForegroundColor",cj[cj.dolly=16]="dolly",cj[cj.zoom=17]="zoom",cj[cj.CheckOutMemory=18]="CheckOutMemory",cj[cj.ReloadLayout=19]="ReloadLayout",cj[cj.ChangeLayout=20]="ChangeLayout",cj[cj.AddLayer=21]="AddLayer",cj[cj.Regen=22]="Regen",cj[cj.ReLoad=23]="ReLoad",cj[cj.setViewportData=24]="setViewportData",cj[cj.GetSelectHandle=25]="GetSelectHandle",cj[cj.SetDimensionLayerHandle=26]="SetDimensionLayerHandle",cj[cj.DeleteOldPlineComplete=27]="DeleteOldPlineComplete",cj[cj.parseData=28]="parseData",cj[cj.regenPrimitiveData=29]="regenPrimitiveData",cj[cj.workerReadyStatus=30]="workerReadyStatus",cj[cj.Default=9999]="Default",hj),dj=((lj=dj||(dj={}))[lj.SUCCESS=0]="SUCCESS",lj[lj.WARNING=1]="WARNING",lj[lj.ERROR=2]="ERROR",lj[lj.UNKNOWN=9999]="UNKNOWN",dj);class uj{constructor(){this.isInitWam=!0,this.messageArray=[],this.listener=new Map}static instance(){return uj._instance}reset(){this.cloud2dWebAssemblyWorker&&this.cloud2dWebAssemblyWorker.terminate(),this.cloud2dWebAssemblyWorker=tU.forSDK?new Worker(vF+"readLMFData.js"):new Worker(l.tu(new URL(l.p+l.u(264),l.b))),this.setMessageListener()}processMessage(t){let e=t.data.status;switch(t.data.type){case hj.CheckOutMemory:{let e=this.listener.get(hj.CheckOutMemory);e&&e(t),e=null;break}case hj.GetSelectHandle:{let e=this.listener.get(hj.GetSelectHandle);e&&e(t),e=null;break}case hj.DeleteOldPlineComplete:{let e=this.listener.get(hj.DeleteOldPlineComplete+"_"+t.data.curLayoutHandle);e&&e(),e=null;break}case hj.parseData:e===dj.ERROR&&this.dealError(t);break;case hj.UncompressData:{let e=this.listener.get(hj.UncompressData);e&&e(t),e=null;break}case hj.ReloadLayout:{let t=$F.instance().getMessageService();t&&t.success("布局数据恢复完成");break}case hj.LoadXrefLmf:e===dj.SUCCESS&&(function(){let t=new OF;return new Promise(((e,n)=>{t.addCb(EF.XREF,(t=>{e(t)}))}))}().then((n=jR((function*(t){t?(yield U5._instance.handleXrefData(t),mj.instance().loadxRefData(t)):mj.instance().loadxRefError()})),function(t){return n.apply(this,arguments)})),MF.instance().broardcast(_F.GetFileData,{type:"xref",data:t.data.data}));break;case hj.LoadImageData:e===dj.SUCCESS&&mj.instance().requestImageData(t.data.imageUrls);break;case hj.ReLoad:U5._instance.mGs&&(U5._instance.mGs.setDirtyLayer(EB.kZcDrAllLayer,!0),U5._instance.mGs.mNeedRepaint=!0,U5._instance.mGs.needReload=!0);break;case hj.LoadLmf:case hj.Add:case hj.Select:case hj.CancleSelect:case hj.Delete:if(e===dj.SUCCESS&&mj.instance().transferWasmPackageData(t),e===dj.WARNING){mj.instance().transferWasmPackageData(t),MF.instance().broardcast(_F.UpdatePage,{type:"loading",data:{isLoading:!1,loadingProgressPreset:{phase:OW.end}}});let e=$F.instance().getMessageService();e&&t.data.mess&&e.warning(t.data.mess)}e===dj.ERROR&&this.dealError(t);break;case hj.regenPrimitiveData:mj.instance().transferRegenWasmPackageData(t);break;case hj.workerReadyStatus:e===dj.SUCCESS&&(window.ZwCloud2D.workerReady=!0)}var n}dealError(t){MF.instance().broardcast(_F.UpdatePage,{type:"loading",data:{isLoading:!1,loadingProgressPreset:{phase:OW.end}}});let e=$F.instance().getMessageService();e&&t.data.mess&&t.data.heap&&(t.data.heap>=2e3?MF.instance().broardcast(_F.GetFileData,{type:"OpenDWGFail",data:qF.mLanguagePackage.noSupport}):e.error(t.data.mess))}readLMFData(t,e,n,i){return new Promise(((r,a)=>{let o=300,s=150,l=BigInt(0);U5._instance.mGs&&U5._instance.mGs.mCanvas&&(o=U5._instance.mGs.mCanvas.width,s=U5._instance.mGs.mCanvas.height,l=BigInt(U5._instance.mGs.mCurLayoutHandle)),this.cloud2dWebAssemblyWorker.postMessage({type:e,dataBuffer:t,width:o,height:s,curLayoutHandle:l,layerHandle:n,allDeletedHandle:i||null},[t]),this.listener.set(hj.UncompressData,(t=>{let e=t.data.dataType;if(U5.mTotalUnzipSize+=t.data.unzipSize,"ArrayBuffer"===e)r(t.data.dataEnd);else{let e=new RZ(t.data.pageSize);e.mLastPageSize=t.data.lastPageSize,e.mArrayBuffers=t.data.arrayBuffers,r(e)}}))}))}readLMFCacheData(t,e,n,i){let r=300,a=150,o=BigInt(0);U5._instance.mGs&&U5._instance.mGs.mCanvas&&(r=U5._instance.mGs.mCanvas.width,a=U5._instance.mGs.mCanvas.height,o=BigInt(U5._instance.mGs.mCurLayoutHandle)),this.cloud2dWebAssemblyWorker.postMessage({type:e,dataBuffer:t,width:r,height:a,curLayoutHandle:o,layerHandle:n,allDeletedHandle:i||null},[t]),this.setMessageListener()}setMessageListener(){this.cloud2dWebAssemblyWorker.onmessage=t=>{if(this.isInitWam)try{this.processMessage(t)}catch(e){return this.isInitWam=!1,void this.messageArray.push(t)}else this.messageArray.push(t)}}checkoutMemory(t,e){return this.cloud2dWebAssemblyWorker.postMessage({type:hj.CheckOutMemory,lmfType:t,size:e}),new Promise(((t,e)=>{this.listener.set(hj.CheckOutMemory,(e=>{t(e.data.status)}))}))}resetLayoutManager(){this.cloud2dWebAssemblyWorker.postMessage({type:hj.TurnOffWorker})}wasmFontLoader(t){let e=t.data.slice();this.cloud2dWebAssemblyWorker.postMessage({type:hj.FrontLoad,fontdataBuffer:e,filename:t.name},[e])}initCharMapper(t){let e=t.slice();this.cloud2dWebAssemblyWorker.postMessage({type:hj.InitCharMapper,charMapperBuffer:e},[e])}setDimensionLayerHandle(t){U5._instance.mGs&&this.cloud2dWebAssemblyWorker.postMessage({type:hj.SetDimensionLayerHandle,layerHandle:t,layoutHandle:Number(U5._instance.mGs.mCurLayoutHandle)})}getSelectEntityHandle(t){return this.cloud2dWebAssemblyWorker.postMessage({type:hj.GetSelectHandle,layoutHandle:Number(t)}),new Promise((t=>{this.listener.set(hj.GetSelectHandle,(e=>{t(e.data.data)}))}))}deleteOldPlineComplete(t){return this.cloud2dWebAssemblyWorker.postMessage({type:hj.Delete,layoutHandle:Number(t),isPline:!0}),new Promise(((e,n)=>{this.listener.set(hj.DeleteOldPlineComplete+"_"+BigInt(Number(t)),(()=>{e(!0)}))}))}}uj._instance=new uj;class mj{constructor(){this.loadedLayoutMap=new Map,this.isFontLoaded=!1,this.layoutFileIndex=new Map,this.layoutLayerMap=new Map,this.lastDrawSection=0,this.curDrawSection=0,this.mIsOpenDwgDraw=!1,this.mIsFirstRegen=new Map,this.regenDataProcess=!1,this.regenProcessArr=[],this.drawViewArray=[],this.mLoadedDataNumber=0,this.isDataLoadEnd=!1,this.drawCanvasId="drawCanvas",this.deleteList=new Set,this.allDeletedHandle=new Set,this.needWaitImageLoad=!1,this.imageLoadedNumber=0,this.canvas=document.createElement("canvas"),this.lastPercent=0,this.GS=null,this.isChangingLayout=!1,this.addLayerHandle=BigInt(0)}static instance(){return mj._instance}wasmGLinit(){SF.log("该版本发布于2023/09/04/21:00"),this.resetWrapperStatus(),U5._instance&&U5._instance.mGs&&(this.GS=U5._instance.mGs,this.GS.drawManagerInit(),uj.instance().isInitWam&&(this.webGLCanvasInit(),this.GS.isDrawManagerInit=!0))}webGLCanvasInit(){if(this.GS)try{Module.GL.offscreenCanvases.drawCanvas=this.GS.mWebglCanvas}catch(t){Module.specialHTMLTargets["#drawmCanvas"]=this.GS.mWebglCanvas}}resetWrapperStatus(){try{Module.GL.offscreenCanvases=[]}catch(t){Module.specialHTMLTargets=[]}this.loadedLayoutMap.clear(),this.layoutFileIndex.clear(),this.drawViewArray=[],this.isFontLoaded=!1,this.mLoadedDataNumber=0,this.isDataLoadEnd=!1,this.deleteList.clear(),this.needWaitImageLoad=!1,this.imageLoadedNumber=0,this.lastPercent=0,this.GS=null;let t=this.canvas.getContext("2d");t&&t.clearRect(0,0,this.canvas.width,this.canvas.height),this.canvas.width=1,this.canvas.height=1,this.allDeletedHandle.clear(),this.layoutLayerMap.clear(),this.addLayerHandle=BigInt(0),this.lastDrawSection=0,this.curDrawSection=0,this.mIsOpenDwgDraw=!1}resetWorker(){this.resetWrapperStatus(),uj.instance().reset(),this.mIsFirstRegen=new Map,this.regenDataProcess=!1,this.regenProcessArr=[]}openDisplayData(t){SF.log("本次通过请求数据打开"),SF.log("获取到lmf开始处理"+(new Date).getTime()),this.isDataLoadEnd=!1,this.mIsOpenDwgDraw=!0,this.GS&&this.loadedLayoutMap.set(Number(this.GS.mCurLayoutHandle),!0),this.mLoadedDataNumber=0,this.isFontLoaded=!0;for(let t=0;t<zZ.mFontData_Storage.length;t++){let e=zZ.mFontData_Storage[t];uj.instance().wasmFontLoader(e)}this.GS&&this.GS.mCharMapper&&uj.instance().initCharMapper(this.GS.mCharMapper);let e=0;return this.GS&&(e=Number(this.GS.mDimensionLayerHandle)),uj.instance().readLMFData(t,hj.LoadLmf,e,this.allDeletedHandle).then((t=>t))}openCacheData(t){SF.log("本次通过缓存数据打开"),SF.log("获取到lmf开始处理"+(new Date).getTime()),this.isDataLoadEnd=!1,this.mIsOpenDwgDraw=!0,this.GS&&this.loadedLayoutMap.set(Number(this.GS.mCurLayoutHandle),!0),this.mLoadedDataNumber=0,this.isFontLoaded=!0;for(let t=0;t<zZ.mFontData_Storage.length;t++){let e=zZ.mFontData_Storage[t];uj.instance().wasmFontLoader(e)}if(this.GS&&this.GS.mCharMapper&&uj.instance().initCharMapper(this.GS.mCharMapper),t instanceof ArrayBuffer)this.GS&&uj.instance().readLMFCacheData(t,hj.LoadLmfCache,Number(this.GS.mDimensionLayerHandle));else{let e=this.mergeArrayBuffer(t);uj.instance().readLMFCacheData(e,hj.LoadLmfCache)}return!0}appendLayoutData(t){return SF.log("本次通过请求数据切换"),SF.log("获取到lmf开始处理"+(new Date).getTime()),this.isDataLoadEnd=!1,this.mLoadedDataNumber=0,this.lastPercent=0,uj.instance().checkoutMemory(hj.LoadLmf,t.byteLength).then((e=>{let n=hj.LoadLmf;if(e===dj.ERROR){let t=this.loadedLayoutMap.keys();for(let e of t)this.loadedLayoutMap.set(e,!1);uj.instance().reset();for(let t=0;t<zZ.mFontData_Storage.length;t++){let e=zZ.mFontData_Storage[t];uj.instance().wasmFontLoader(e)}this.GS&&this.GS.mCharMapper&&uj.instance().initCharMapper(this.GS.mCharMapper)}this.GS&&this.loadedLayoutMap.set(Number(this.GS.mCurLayoutHandle),!0);let i=0;return this.GS&&(i=Number(this.GS.mDimensionLayerHandle)),this.GS&&this.changeLayout(BigInt(this.GS.mCurLayoutHandle)),this.addLayerHandle!==BigInt(0)&&this.addLayer(this.addLayerHandle),uj.instance().readLMFData(t,n,i,this.allDeletedHandle).then((t=>t))}))}appendLayoutCache(t,e){SF.log("本次通过缓存数据切换"),SF.log("获取到lmf开始处理"+(new Date).getTime()),this.isDataLoadEnd=!1,this.mLoadedDataNumber=0,this.lastPercent=0;let n=0;return n=t instanceof ArrayBuffer?t.byteLength:t.mArrayBuffers.length*t.mPageSize-1+t.mLastPageSize,uj.instance().checkoutMemory(e,n).then((n=>{if(n===dj.ERROR){let t=this.loadedLayoutMap.keys();for(let e of t)this.loadedLayoutMap.set(e,!1);uj.instance().reset();for(let t=0;t<zZ.mFontData_Storage.length;t++){let e=zZ.mFontData_Storage[t];uj.instance().wasmFontLoader(e)}this.GS&&this.GS.mCharMapper&&uj.instance().initCharMapper(this.GS.mCharMapper)}if(this.GS&&this.loadedLayoutMap.set(Number(this.GS.mCurLayoutHandle),!0),this.GS&&this.changeLayout(BigInt(this.GS.mCurLayoutHandle)),this.addLayerHandle!==BigInt(0)&&this.addLayer(this.addLayerHandle),t instanceof ArrayBuffer)uj.instance().readLMFCacheData(t,e);else{SF.log("缓存过大,需要拼接数据");let n=this.mergeArrayBuffer(t);uj.instance().readLMFCacheData(n,e)}})),!1}reloadLayout(t,e){this.mLoadedDataNumber=0,SF.log("重新加载该布局下的数据");let n=0;n=t instanceof ArrayBuffer?t.byteLength:t.mArrayBuffers.length*t.mPageSize-1+t.mLastPageSize,uj.instance().checkoutMemory(e,n).then((n=>{if(n===dj.ERROR){let t=this.loadedLayoutMap.keys();for(let e of t)this.loadedLayoutMap.set(e,!1);uj.instance().reset();for(let t=0;t<zZ.mFontData_Storage.length;t++){let e=zZ.mFontData_Storage[t];uj.instance().wasmFontLoader(e)}this.GS&&this.GS.mCharMapper&&uj.instance().initCharMapper(this.GS.mCharMapper)}if(this.GS&&this.changeLayout(BigInt(this.GS.mCurLayoutHandle)),this.addLayerHandle!==BigInt(0)&&this.addLayer(this.addLayerHandle),t instanceof ArrayBuffer)uj.instance().readLMFCacheData(t,e);else{SF.log("缓存过大,需要拼接数据");let n=this.mergeArrayBuffer(t);uj.instance().readLMFCacheData(n,e)}let i=$F.instance().getMessageService();if(i&&i.warning("恢复布局数据中,请稍后"),this.GS&&this.GS.mCanvas&&this.GS.mGsDevice){this.loadedLayoutMap.set(Number(this.GS.mCurLayoutHandle),!0),mj.instance().resize(this.GS.mCanvas.width,this.GS.mCanvas.height);let t=this.GS.mGsDevice.getCurViews();if(t)for(let e=0;e<t.length;e++)this.dolly(Number(t[e].mVPHandle),t[e].mTarget,t[e].mPosition),this.zoom(Number(t[e].mVPHandle),t[e].mFieldWidth,t[e].mFieldHeight,t[e].mCurZoomFactor)}}))}increaseDisplayData(t){return this.isDataLoadEnd=!1,this.mLoadedDataNumber=0,this.lastPercent=0,uj.instance().readLMFCacheData(t,hj.Add),!1}loadImageData(t,e){let n=this.GS;if(n){let i=this.canvas.getContext("2d");if(i){i.clearRect(0,0,this.canvas.width,this.canvas.height),this.canvas.width=e.width,this.canvas.height=e.height,i.drawImage(e,0,0);let r=i.getImageData(0,0,e.width,e.height).data.buffer,a=VZ(new Uint8Array(r));n.drawManager.appendImage(this.drawCanvasId,t,a,r.byteLength,e.width,e.height),i.clearRect(0,0,this.canvas.width,this.canvas.height)}this.canvas.width=1,this.canvas.height=1,this.imageLoadedNumber--,0===this.imageLoadedNumber&&(this.needWaitImageLoad=!1,n.mNeedRepaint=!0,n.mDirtyLayer.set(1,!0),SF.log("图片下载完成"))}}loadxRefData(t){let e={type:hj.LoadXrefLmf,xRef:t};uj.instance().cloud2dWebAssemblyWorker.postMessage(e,[e.xRef])}regenLoadData(t){this.isDataLoadEnd=!1,this.mLoadedDataNumber=0,SF.log("重生成"),uj.instance().checkoutMemory(hj.ReloadLayout,t.byteLength).then((e=>{if(e===dj.ERROR){let t=this.loadedLayoutMap.keys();for(let e of t)this.loadedLayoutMap.set(e,!1);uj.instance().reset();for(let t=0;t<zZ.mFontData_Storage.length;t++){let e=zZ.mFontData_Storage[t];uj.instance().wasmFontLoader(e)}this.GS&&this.GS.mCharMapper&&uj.instance().initCharMapper(this.GS.mCharMapper)}if(this.resetCurLayoutLongterm(),uj.instance().readLMFCacheData(t,hj.Regen),this.GS&&this.GS.mCurView){this.GS.mIsFirstAddLmfData=!0;let t=this.GS.mCurView,e={type:hj.Regen,viewHandle:t.mVPHandle,points:[t.mTarget.mX,t.mTarget.mY,t.mTarget.mZ,t.mPosition.mX,t.mPosition.mY,t.mPosition.mZ],target:t.mTarget,position:t.mPosition,zoomFactor:t.mCurZoomFactor,fieldHeight:t.mFieldHeight,fieldWidth:t.mFieldWidth,eyeVecotr:t.mEyeVecotr,upVector:t.mUpVector,xAxis:t.mXAxis};uj.instance().cloud2dWebAssemblyWorker.postMessage(e),this.loadedLayoutMap.set(Number(this.GS.mCurLayoutHandle),!0)}}))}reload(){this.resetCurLayoutLongterm(),uj.instance().cloud2dWebAssemblyWorker.postMessage({type:hj.ReLoad})}regenPrimitiveData(t,e,n){n||!this.regenDataProcess?(this.regenDataProcess=!0,this.mIsFirstRegen.set(t,n),uj.instance().cloud2dWebAssemblyWorker.postMessage({type:hj.regenPrimitiveData,viewHandle:t,rect:e})):this.regenProcessArr.push({viewHandle:t,rect:e,isFirstRegen:n})}transferWasmPackageData(t){let e=t.data.buffer,n=t.data.index,i=t.data.percent,r=t.data.type,a=this.GS;if(0===n&&SF.log("开始生成显示数据"+(new Date).getTime()),i>=100&&(i=98,SF.log("显示数据生成完成"+(new Date).getTime()),this.isDataLoadEnd=!0,r===hj.Add&&this.GS&&(this.GS.mIncreaseDataLoaded=!0)),(i!==this.lastPercent||this.isDataLoadEnd)&&(MF.instance().broardcast(_F.UpdatePage,{type:"loading",data:{isLoading:!0,loadingProgressPreset:{phase:OW.drawData,precent:i}}}),this.lastPercent=i),a){this.mIsOpenDwgDraw&&this.prepareToolCanvas(t.data.curViewHandle,n);let i=!1;switch(r){case hj.LoadLmf:case hj.Add:i=!0,this.needWaitImageLoad?(a.mNeedRepaint=!1,a.mDirtyLayer.set(EB.kZcDrLongterm,!1)):(a.mNeedRepaint=!0,a.mDirtyLayer.set(EB.kZcDrLongterm,!0));break;case hj.Delete:{i=!0,a.mNeedRepaint=!0,a.mDirtyLayer.set(EB.kZcDrLongterm,!0),a.mDirtyLayer.set(EB.kZcDrLongtermHighlight,!0),0===n&&a.drawManager.resetHighLightViewDataMap(),a.mHighlightHandles=[];let t=a.mCanvasBuffer[EB.kZcDrLongtermHighlight].mOffsetCanvas.getContext("2d");t&&t.clearRect(0,0,a.mCanvasBuffer[EB.kZcDrLongtermHighlight].mOffsetCanvas.width,a.mCanvasBuffer[EB.kZcDrLongtermHighlight].mOffsetCanvas.height);break}case hj.Select:case hj.CancleSelect:case hj.ClearSelect:i=!1,this.needWaitImageLoad?(a.mNeedRepaint=!1,a.mHighlightChange=!1,a.mDirtyLayer.set(EB.kZcDrLongtermHighlight,!1)):(a.mNeedRepaint=!0,a.mHighlightChange=!0,a.mDirtyLayer.set(EB.kZcDrLongtermHighlight,!0)),0===n&&a.drawManager.resetHighLightViewDataMap()}if(e){let t=VZ(new Uint8Array(e));a.drawManager.loadVertexDataSelection(t,e.byteLength,this.drawCanvasId,i),Module._free(t),this.mLoadedDataNumber++}}}transferRegenWasmPackageData(t){if(t.data.status===dj.ERROR){if(this.regenDataProcess=!1,this.regenProcessArr.length>0){let t=this.regenProcessArr[this.regenProcessArr.length-1];this.regenProcessArr=[],this.regenPrimitiveData(t.viewHandle,t.rect,t.isFirstRegen)}return}let e=t.data.buffer,n=this.GS;if(n&&e){let t=VZ(new Uint8Array(e));n.drawManager.loadRegenVertexDataSelection(t,e.byteLength,this.drawCanvasId),Module._free(t)}this.regenDataProcess=!1;let i=this.mIsFirstRegen.get(t.data.curViewHandle);if(n&&i)n.mNeedRepaint=!0,n.mDirtyLayer.set(EB.kZcDrLongterm,!0);else if(this.regenProcessArr.length>0){let t=this.regenProcessArr[this.regenProcessArr.length-1];this.regenProcessArr=[],this.regenPrimitiveData(t.viewHandle,t.rect,t.isFirstRegen)}}requestImageData(t){SF.log("请求image数据中"),this.needWaitImageLoad=!0,MF.instance().broardcast(_F.GetFileData,{type:"image",data:t})}selectEntity(t,e){this.isDataLoadEnd=!1,this.mLoadedDataNumber=0,uj.instance().cloud2dWebAssemblyWorker.postMessage({type:hj.Select,handle:t,layoutHandle:Number(e),isChangingLayout:this.isChangingLayout}),this.isChangingLayout=!1,this.deleteList.add(String(t))}selectEntities(t,e){this.isDataLoadEnd=!1,this.mLoadedDataNumber=0,uj.instance().cloud2dWebAssemblyWorker.postMessage({type:hj.Select,handle:t,layoutHandle:Number(e),isChangingLayout:this.isChangingLayout}),this.isChangingLayout=!1,t.forEach((t=>{this.deleteList.add(String(t))}))}getSelectEntityHandle(t){return uj.instance().getSelectEntityHandle(t)}deleteOldPlineComplete(t){return uj.instance().deleteOldPlineComplete(t)}cancleSelectEntity(t,e){this.isDataLoadEnd=!1,this.mLoadedDataNumber=0,uj.instance().cloud2dWebAssemblyWorker.postMessage({type:hj.CancleSelect,handle:t,layoutHandle:Number(e)}),this.deleteList.delete(String(t))}clearSelect(){uj.instance().cloud2dWebAssemblyWorker.postMessage({type:hj.ClearSelect}),this.deleteList.clear()}deleteEntity(t){uj.instance().cloud2dWebAssemblyWorker.postMessage({type:hj.Delete,layoutHandle:Number(t)}),this.deleteList.clear()}loadxRefError(){let t={type:hj.LoadXrefLmf,xRef:null},e=$F.instance().getMessageService();e&&!rB.instance().mIsAnonymous&&e.warning("获取外部参照失败"),uj.instance().cloud2dWebAssemblyWorker.postMessage(t)}resize(t,e){uj.instance().cloud2dWebAssemblyWorker.postMessage({type:hj.resize,width:t,height:e})}setBackgroundForegroundColor(t,e){uj.instance().cloud2dWebAssemblyWorker.postMessage({type:hj.setBackgroundForegroundColor,backgroundColor:t,foregroundColor:e})}dolly(t,e,n){uj.instance().cloud2dWebAssemblyWorker.postMessage({type:hj.dolly,curViewHandle:t,points:[e.mX,e.mY,e.mZ,n.mX,n.mY,n.mZ]})}zoom(t,e,n,i){uj.instance().cloud2dWebAssemblyWorker.postMessage({type:hj.zoom,curViewHandle:t,fieldWidth:e,fieldHeight:n,zoomFactor:i})}changeLayout(t){this.regenDataProcess=!1,this.mIsFirstRegen=new Map,this.regenProcessArr=[],uj.instance().cloud2dWebAssemblyWorker.postMessage({type:hj.ChangeLayout,curLayoutHandle:t})}addLayer(t){this.addLayerHandle=t,uj.instance().cloud2dWebAssemblyWorker.postMessage({type:hj.AddLayer,layerHandle:t})}setCurViewPortData(t){let e={type:hj.setViewportData,viewHandle:t.mVPHandle,points:[t.mTarget.mX,t.mTarget.mY,t.mTarget.mZ,t.mPosition.mX,t.mPosition.mY,t.mPosition.mZ],target:t.mTarget,position:t.mPosition,zoomFactor:t.mCurZoomFactor,fieldHeight:t.mFieldHeight,fieldWidth:t.mFieldWidth,eyeVecotr:t.mEyeVecotr,upVector:t.mUpVector,xAxis:t.mXAxis};uj.instance().cloud2dWebAssemblyWorker.postMessage(e)}updateLayoutLayerMap(t,e,n){let i=this.layoutLayerMap.get(t);if(null==i){let i=new Map;i.set(e,n),this.layoutLayerMap.set(t,i)}else i.set(e,n)}setLayerTable(t,e){let n=this.GS;if(!n)return;let i=BigInt(n.mCurLayoutHandle),r=t.itemCount();n.drawManager.setLayerLength(r);let a=!1,o=!1;for(let s=0;s<r;s++){let r=t.getAt(s);if(void 0===r)break;a=!1,o=!1;let l=r.getLayerInfo();if(void 0!==l){a=l.mIsOff;let t=l.mViewportData;if(e){let n=t.get(e);n&&(o=n.mLayerIsFrozen)}}if(!a&&!o){let t=this.layoutLayerMap.get(i);if(null!=t){let e=t.get(l.mLayerHandle);if(null!=e){n.drawManager.setLayerImage(e);continue}}n.drawManager.setLayerImage(l.mIndex)}}}resetCurLayoutHighLight(){if(this.GS&&this.GS.mGsDevice){let t=this.GS.mGsDevice.getCurViews(),e=this.GS;if(t&&e&&e.mGsDevice)for(let n=0;n<t.length;n++)e.drawManager.resetTargetHighLightViewDataMap(t[n].mVPHandle)}}resetCurLayoutLongterm(){if(this.GS&&this.GS.mGsDevice){let t=this.GS.mGsDevice.getCurViews(),e=this.GS;if(t&&e)for(let n=0;n<t.length;n++)e.drawManager.resetTargetLongtermViewDataMap(t[n].mVPHandle)}}prepareToolCanvas(t,e){this.curDrawSection=e,!this.drawViewArray.includes(t)&&this.drawViewArray.push(t)}mergeArrayBuffer(t){let e=new Uint8Array(t.mArrayBuffers.length*t.mPageSize-1+t.mLastPageSize),n=0;for(let i of t.mArrayBuffers){let t=new Uint8Array(i);e.set(t,n),n+=i.byteLength}return e.buffer}}mj._instance=new mj;var pj,gj=((pj=gj||(gj={}))[pj.kNoDrawFlags=0]="kNoDrawFlags",pj[pj.kDrawBackfaces=1]="kDrawBackfaces",pj[pj.kDrawHatchGroup=2]="kDrawHatchGroup",pj[pj.kDrawFrontfacesOnly=4]="kDrawFrontfacesOnly",pj[pj.kDrawGradientFill=8]="kDrawGradientFill",pj[pj.kDrawSolidFill=16]="kDrawSolidFill",pj[pj.kDrawNoLineWeight=32]="kDrawNoLineWeight",pj[pj.kDrawNoOptimization=64]="kDrawNoOptimization",pj[pj.kDrawUseZcGiEntityForDgnLineType=128]="kDrawUseZcGiEntityForDgnLineType",pj[pj.kDrawFillTextBoundaryStart=256]="kDrawFillTextBoundaryStart",pj[pj.kDrawFillTextBoundaryEnd=512]="kDrawFillTextBoundaryEnd",pj[pj.kDrawFillSelectionWindow=1024]="kDrawFillSelectionWindow",pj[pj.kDrawNoForceByLayer=2048]="kDrawNoForceByLayer",pj[pj.kDrawXORColor=4096]="kDrawXORColor",gj);class fj{static colorToRgb(t){return{red:t>>16&255,green:t>>8&255,blue:255&t,alpha:t>>24&255}}}fj.DEFAULT_FOREGROUND_COLOR=zV.modalForegroundColor,fj.DEFAULT_BACKGROUND_COLOR=zV.modalBackgroundColor,fj.ZcDrDefaultOptions={cursorSize:15,zoomLevel:1.6};let bj=(()=>{class t{constructor(){this.color=4294967295}}return t.ZC_DR_HIGHLIGHT_COLOR="rgba(37,157,243,0.8)",t})();const yj=[[0,0,255],[0,255,255],[0,255,0],[255,255,0],[255,0,0],[255,0,255],[255,255,255],[128,128,128],[192,192,192],[0,0,255],[127,127,255],[0,0,204],[102,102,204],[0,0,153],[76,76,153],[0,0,127],[63,63,127],[0,0,76],[38,38,76],[0,63,255],[127,159,255],[0,51,204],[102,127,204],[0,38,153],[76,95,153],[0,31,127],[63,79,127],[0,19,76],[38,47,76],[0,127,255],[127,191,255],[0,102,204],[102,153,204],[0,76,153],[76,114,153],[0,63,127],[63,95,127],[0,38,76],[38,57,76],[0,191,255],[127,223,255],[0,153,204],[102,178,204],[0,114,153],[76,133,153],[0,95,127],[63,111,127],[0,57,76],[38,66,76],[0,255,255],[127,255,255],[0,204,204],[102,204,204],[0,153,153],[76,153,153],[0,127,127],[63,127,127],[0,76,76],[38,76,76],[0,255,191],[127,255,223],[0,204,153],[102,204,178],[0,153,114],[76,153,133],[0,127,95],[63,127,111],[0,76,57],[38,76,66],[0,255,127],[127,255,191],[0,204,102],[102,204,153],[0,153,76],[76,153,114],[0,127,63],[63,127,95],[0,76,38],[38,76,57],[0,255,63],[127,255,159],[0,204,51],[102,204,127],[0,153,38],[76,153,95],[0,127,31],[63,127,79],[0,76,19],[38,76,47],[0,255,0],[127,255,127],[0,204,0],[102,204,102],[0,153,0],[76,153,76],[0,127,0],[63,127,63],[0,76,0],[38,76,38],[63,255,0],[159,255,127],[51,204,0],[127,204,102],[38,153,0],[95,153,76],[31,127,0],[79,127,63],[19,76,0],[47,76,38],[127,255,0],[191,255,127],[102,204,0],[153,204,102],[76,153,0],[114,153,76],[63,127,0],[95,127,63],[38,76,0],[57,76,38],[191,255,0],[223,255,127],[153,204,0],[178,204,102],[114,153,0],[133,153,76],[95,127,0],[111,127,63],[57,76,0],[66,76,38],[255,255,0],[255,255,127],[204,204,0],[204,204,102],[153,153,0],[153,153,76],[127,127,0],[127,127,63],[76,76,0],[76,76,38],[255,191,0],[255,223,127],[204,153,0],[204,178,102],[153,114,0],[153,133,76],[127,95,0],[127,111,63],[76,57,0],[76,66,38],[255,127,0],[255,191,127],[204,102,0],[204,153,102],[153,76,0],[153,114,76],[127,63,0],[127,95,63],[76,38,0],[76,57,38],[255,63,0],[255,159,127],[204,51,0],[204,127,102],[153,38,0],[153,95,76],[127,31,0],[127,79,63],[76,19,0],[76,47,38],[255,0,0],[255,127,127],[204,0,0],[204,102,102],[153,0,0],[153,76,76],[127,0,0],[127,63,63],[76,0,0],[76,38,38],[255,0,63],[255,127,159],[204,0,51],[204,102,127],[153,0,38],[153,76,95],[127,0,31],[127,63,79],[76,0,19],[76,38,47],[255,0,127],[255,127,191],[204,0,102],[204,102,153],[153,0,76],[153,76,114],[127,0,63],[127,63,95],[76,0,38],[76,38,57],[255,0,191],[255,127,223],[204,0,153],[204,102,178],[153,0,114],[153,76,133],[127,0,95],[127,63,111],[76,0,57],[76,38,66],[255,0,255],[255,127,255],[204,0,204],[204,102,204],[153,0,153],[153,76,153],[127,0,127],[127,63,127],[76,0,76],[76,38,76],[191,0,255],[223,127,255],[153,0,204],[178,102,204],[114,0,153],[133,76,153],[95,0,127],[111,63,127],[57,0,76],[66,38,76],[127,0,255],[191,127,255],[102,0,204],[153,102,204],[76,0,153],[114,76,153],[63,0,127],[95,63,127],[38,0,76],[57,38,76],[63,0,255],[159,127,255],[51,0,204],[127,102,204],[38,0,153],[95,76,153],[31,0,127],[79,63,127],[19,0,76],[47,38,76],[51,51,51],[91,91,91],[132,132,132],[173,173,173],[214,214,214],[255,255,255]],vj=[[0,0,255],[0,255,255],[0,255,0],[255,255,0],[255,0,0],[255,0,255],[0,0,0],[128,128,128],[192,192,192],[0,0,255],[127,127,255],[0,0,165],[82,82,165],[0,0,127],[63,63,127],[0,0,76],[38,38,76],[0,0,38],[19,19,38],[0,63,255],[127,159,255],[0,41,165],[82,103,165],[0,31,127],[63,79,127],[0,19,76],[38,47,76],[0,9,38],[19,23,38],[0,127,255],[127,191,255],[0,82,165],[82,124,165],[0,63,127],[63,95,127],[0,38,76],[38,57,76],[0,19,38],[19,28,38],[0,191,255],[127,223,255],[0,124,165],[82,145,165],[0,95,127],[63,111,127],[0,57,76],[38,66,76],[0,28,38],[19,33,38],[0,255,255],[127,255,255],[0,165,165],[82,165,165],[0,127,127],[63,127,127],[0,76,76],[38,76,76],[0,38,38],[19,38,38],[0,255,191],[127,255,223],[0,165,124],[82,165,145],[0,127,95],[63,127,111],[0,76,57],[38,76,66],[0,38,28],[19,38,33],[0,255,127],[127,255,191],[0,165,82],[82,165,124],[0,127,63],[63,127,95],[0,76,38],[38,76,57],[0,38,19],[19,38,28],[0,255,63],[127,255,159],[0,165,41],[82,165,103],[0,127,31],[63,127,79],[0,76,19],[38,76,47],[0,38,9],[19,38,23],[0,255,0],[127,255,127],[0,165,0],[82,165,82],[0,127,0],[63,127,63],[0,76,0],[38,76,38],[0,38,0],[19,38,19],[63,255,0],[159,255,127],[41,165,0],[103,165,82],[31,127,0],[79,127,63],[19,76,0],[47,76,38],[9,38,0],[23,38,19],[127,255,0],[191,255,127],[82,165,0],[124,165,82],[63,127,0],[95,127,63],[38,76,0],[57,76,38],[19,38,0],[28,38,19],[191,255,0],[223,255,127],[124,165,0],[145,165,82],[95,127,0],[111,127,63],[57,76,0],[66,76,38],[28,38,0],[33,38,19],[255,255,0],[255,255,127],[165,165,0],[165,165,82],[127,127,0],[127,127,63],[76,76,0],[76,76,38],[38,38,0],[38,38,19],[255,191,0],[255,223,127],[165,124,0],[165,145,82],[127,95,0],[127,111,63],[76,57,0],[76,66,38],[38,28,0],[38,33,19],[255,127,0],[255,191,127],[165,82,0],[165,124,82],[127,63,0],[127,95,63],[76,38,0],[76,57,38],[38,19,0],[38,28,19],[255,63,0],[255,159,127],[165,41,0],[165,103,82],[127,31,0],[127,79,63],[76,19,0],[76,47,38],[38,9,0],[38,23,19],[255,0,0],[255,127,127],[165,0,0],[165,82,82],[127,0,0],[127,63,63],[76,0,0],[76,38,38],[38,0,0],[38,19,19],[255,0,63],[255,127,159],[165,0,41],[165,82,103],[127,0,31],[127,63,79],[76,0,19],[76,38,47],[38,0,9],[38,19,23],[255,0,127],[255,127,191],[165,0,82],[165,82,124],[127,0,63],[127,63,95],[76,0,38],[76,38,57],[38,0,19],[38,19,28],[255,0,191],[255,127,223],[165,0,124],[165,82,145],[127,0,95],[127,63,111],[76,0,57],[76,38,66],[38,0,28],[38,19,33],[255,0,255],[255,127,255],[165,0,165],[165,82,165],[127,0,127],[127,63,127],[76,0,76],[76,38,76],[38,0,38],[38,19,38],[191,0,255],[223,127,255],[124,0,165],[145,82,165],[95,0,127],[111,63,127],[57,0,76],[66,38,76],[28,0,38],[33,19,38],[127,0,255],[191,127,255],[82,0,165],[124,82,165],[63,0,127],[95,63,127],[38,0,76],[57,38,76],[19,0,38],[28,19,38],[63,0,255],[159,127,255],[41,0,165],[103,82,165],[31,0,127],[79,63,127],[19,0,76],[47,38,76],[9,0,38],[23,19,38],[0,0,0],[51,51,51],[102,102,102],[153,153,153],[204,204,204],[255,255,255],[0,0,0]],wj=[[0,0,255],[0,255,255],[0,255,0],[255,255,0],[255,0,0],[255,0,255],[255,255,255],[128,128,128],[192,192,192],[0,0,255],[127,127,255],[0,0,165],[82,82,165],[0,0,127],[63,63,127],[0,0,76],[38,38,76],[0,0,38],[19,19,88],[0,63,255],[127,159,255],[0,41,165],[82,103,165],[0,31,127],[63,79,127],[0,19,76],[38,47,76],[0,9,38],[19,23,88],[0,127,255],[127,191,255],[0,82,165],[82,124,165],[0,63,127],[63,95,127],[0,38,76],[38,57,76],[0,19,38],[19,28,88],[0,191,255],[127,223,255],[0,124,165],[82,145,165],[0,95,127],[63,111,127],[0,57,76],[38,66,76],[0,28,38],[19,88,88],[0,255,255],[127,255,255],[0,165,165],[82,165,165],[0,127,127],[63,127,127],[0,76,76],[38,76,76],[0,38,38],[19,88,88],[0,255,191],[127,255,223],[0,165,124],[82,165,145],[0,127,95],[63,127,111],[0,76,57],[38,76,66],[0,38,28],[19,88,88],[0,255,127],[127,255,191],[0,165,82],[82,165,124],[0,127,63],[63,127,95],[0,76,38],[38,76,57],[0,38,19],[19,88,28],[0,255,63],[127,255,159],[0,165,41],[82,165,103],[0,127,31],[63,127,79],[0,76,19],[38,76,47],[0,38,9],[19,88,23],[0,255,0],[127,255,127],[0,165,0],[82,165,82],[0,127,0],[63,127,63],[0,76,0],[38,76,38],[0,38,0],[19,88,19],[63,255,0],[159,255,127],[41,165,0],[103,165,82],[31,127,0],[79,127,63],[19,76,0],[47,76,38],[9,88,0],[23,88,19],[127,255,0],[191,255,127],[82,165,0],[124,165,82],[63,127,0],[95,127,63],[38,76,0],[57,76,38],[19,88,0],[28,88,19],[191,255,0],[223,255,127],[124,165,0],[145,165,82],[95,127,0],[111,127,63],[57,76,0],[66,76,38],[28,88,0],[88,88,19],[255,255,0],[255,255,127],[165,165,0],[165,165,82],[127,127,0],[127,127,63],[76,76,0],[76,76,38],[88,88,0],[88,88,19],[255,191,0],[255,223,127],[165,124,0],[165,145,82],[127,95,0],[127,111,63],[76,57,0],[76,66,38],[88,28,0],[88,88,19],[255,127,0],[255,191,127],[165,82,0],[165,124,82],[127,63,0],[127,95,63],[76,38,0],[76,57,38],[88,19,0],[88,28,19],[255,63,0],[255,159,127],[165,41,0],[165,103,82],[127,31,0],[127,79,63],[76,19,0],[76,47,38],[88,9,0],[88,23,19],[255,0,0],[255,127,127],[165,0,0],[165,82,82],[127,0,0],[127,63,63],[76,0,0],[76,38,38],[38,0,0],[88,19,19],[255,0,63],[255,127,159],[165,0,41],[165,82,103],[127,0,31],[127,63,79],[76,0,19],[76,38,47],[38,0,9],[88,19,23],[255,0,127],[255,127,191],[165,0,82],[165,82,124],[127,0,63],[127,63,95],[76,0,38],[76,38,57],[38,0,19],[88,19,28],[255,0,191],[255,127,223],[165,0,124],[165,82,145],[127,0,95],[127,63,111],[76,0,57],[76,38,66],[38,0,28],[88,19,88],[255,0,255],[255,127,255],[165,0,165],[165,82,165],[127,0,127],[127,63,127],[76,0,76],[76,38,76],[38,0,38],[88,19,88],[191,0,255],[223,127,255],[124,0,165],[145,82,165],[95,0,127],[111,63,127],[57,0,76],[66,38,76],[28,0,38],[88,19,88],[127,0,255],[191,127,255],[82,0,165],[124,82,165],[63,0,127],[95,63,127],[38,0,76],[57,38,76],[19,0,38],[28,19,88],[63,0,255],[159,127,255],[41,0,165],[103,82,165],[31,0,127],[79,63,127],[19,0,76],[47,38,76],[9,0,38],[23,19,88],[0,0,0],[101,101,101],[102,102,102],[153,153,153],[204,204,204],[255,255,255],[0,0,0]],xj=[[0,0,255],[0,255,255],[0,255,0],[255,255,0],[255,0,0],[255,0,255],[255,255,255],[128,128,128],[192,192,192],[0,0,255],[127,127,255],[0,0,165],[82,82,165],[0,0,127],[63,63,127],[0,0,76],[38,38,76],[0,0,38],[19,19,38],[0,63,255],[127,159,255],[0,41,165],[82,103,165],[0,31,127],[63,79,127],[0,19,76],[38,47,76],[0,9,38],[19,23,38],[0,127,255],[127,191,255],[0,82,165],[82,124,165],[0,63,127],[63,95,127],[0,38,76],[38,57,76],[0,19,38],[19,28,38],[0,191,255],[127,223,255],[0,124,165],[82,145,165],[0,95,127],[63,111,127],[0,57,76],[38,66,76],[0,28,38],[19,33,38],[0,255,255],[127,255,255],[0,165,165],[82,165,165],[0,127,127],[63,127,127],[0,76,76],[38,76,76],[0,38,38],[19,38,38],[0,255,191],[127,255,223],[0,165,124],[82,165,145],[0,127,95],[63,127,111],[0,76,57],[38,76,66],[0,38,28],[19,38,33],[0,255,127],[127,255,191],[0,165,82],[82,165,124],[0,127,63],[63,127,95],[0,76,38],[38,76,57],[0,38,19],[19,38,28],[0,255,63],[127,255,159],[0,165,41],[82,165,103],[0,127,31],[63,127,79],[0,76,19],[38,76,47],[0,38,9],[19,38,23],[0,255,0],[127,255,127],[0,165,0],[82,165,82],[0,127,0],[63,127,63],[0,76,0],[38,76,38],[0,38,0],[19,38,19],[63,255,0],[159,255,127],[41,165,0],[103,165,82],[31,127,0],[79,127,63],[19,76,0],[47,76,38],[9,38,0],[23,88,19],[127,255,0],[191,255,127],[82,165,0],[124,165,82],[63,127,0],[95,127,63],[38,76,0],[57,76,38],[19,38,0],[28,88,19],[191,255,0],[223,255,127],[124,165,0],[145,165,82],[95,127,0],[111,127,63],[57,76,0],[66,76,38],[28,38,0],[88,88,19],[255,255,0],[255,255,127],[165,165,0],[165,165,82],[127,127,0],[127,127,63],[76,76,0],[76,76,38],[38,38,0],[88,88,19],[255,191,0],[255,223,127],[165,124,0],[165,145,82],[127,95,0],[127,111,63],[76,57,0],[126,66,38],[38,28,0],[88,88,19],[255,127,0],[255,191,127],[165,82,0],[165,124,82],[127,63,0],[127,95,63],[76,38,0],[126,57,38],[38,19,0],[88,28,19],[255,63,0],[255,159,127],[165,41,0],[165,103,82],[127,31,0],[127,79,63],[76,19,0],[126,47,38],[38,9,0],[88,23,19],[255,0,0],[255,127,127],[165,0,0],[165,82,82],[127,0,0],[127,63,63],[76,0,0],[126,38,38],[38,0,0],[88,19,19],[255,0,63],[255,127,159],[165,0,41],[165,82,103],[127,0,31],[127,63,79],[76,0,19],[126,38,47],[38,0,9],[88,19,23],[255,0,127],[255,127,191],[165,0,82],[165,82,124],[127,0,63],[127,63,95],[76,0,38],[126,38,57],[38,0,19],[88,19,28],[255,0,191],[255,127,223],[165,0,124],[165,82,145],[127,0,95],[127,63,111],[76,0,57],[76,38,66],[38,0,28],[88,19,88],[255,0,255],[255,127,255],[165,0,165],[165,82,165],[127,0,127],[127,63,127],[76,0,76],[76,38,76],[38,0,38],[88,19,88],[191,0,255],[223,127,255],[124,0,165],[145,82,165],[95,0,127],[111,63,127],[57,0,76],[66,38,76],[28,0,38],[88,19,88],[127,0,255],[191,127,255],[82,0,165],[124,82,165],[63,0,127],[95,63,127],[38,0,76],[57,38,76],[19,0,38],[28,19,88],[63,0,255],[159,127,255],[41,0,165],[103,82,165],[31,0,127],[79,63,127],[19,0,76],[47,38,76],[9,0,38],[23,19,88],[0,0,0],[101,101,101],[102,102,102],[153,153,153],[204,204,204],[255,255,255],[48,40,33]],Cj=[[0,0,205,1],[0,0,205,10],[0,63,205,20],[63,0,205,240],[0,0,0,0]],kj=[[0,205,205,2],[0,205,205,50],[0,0,0,0]],Sj=[[0,205,0,3],[0,205,63,80],[0,205,0,90],[63,205,0,100],[0,0,0,0]],Pj=[[205,205,0,4],[205,205,0,130],[0,0,0,0]],_j=[[205,0,0,5],[205,63,0,160],[205,0,0,170],[205,0,63,180],[0,0,0,0]],Mj=[[205,0,205,6],[205,0,205,210],[0,0,0,0]],Dj=[[45,45,45,251],[91,91,91,252],[137,137,137,253],[183,183,183,254],[179,179,179,255],[0,0,0,0]],Ej=[[255,255,255,7],[178,178,178,8],[152,152,152,252],[203,203,203,253],[0,0,0,0]],Oj=[[242,242,242,9],[244,244,244,254],[0,0,0,0]],Aj=[[0,0,205,1],[0,0,205,10],[0,63,205,20],[63,0,205,240],[0,0,0,0]],Tj=[[127,127,205,11],[0,0,0,0]],Ij=[[0,0,0,0]],Lj=[[0,0,0,0]],zj=[[0,0,215,12],[0,0,177,14],[0,0,0,0]],Rj=[[82,82,215,13],[63,63,177,15],[82,103,215,23],[63,79,177,25],[63,95,177,35],[95,63,177,235],[103,82,215,243],[79,63,177,245],[0,0,0,0]],Fj=[[255,255,255,7],[0,0,177,14],[0,31,177,24],[31,0,177,244],[0,0,0,0]],Bj=[[255,255,255,7],[63,63,177,15],[63,79,177,25],[79,63,177,245],[0,0,0,0]],Vj=[[255,255,255,7],[0,0,126,16],[0,19,126,26],[19,0,126,246],[0,0,0,0]],Nj=[[255,255,255,7],[38,38,126,17],[38,47,126,27],[38,57,126,37],[38,66,126,47],[66,38,126,227],[57,38,126,237],[47,38,126,247],[101,101,101,251],[0,0,0,0]],Hj=[[0,0,205,1],[0,0,205,10],[0,63,205,20],[0,0,0,0]],Gj=[[127,159,205,21],[0,0,0,0]],Zj=[[0,0,0,0]],Uj=[[0,0,0,0]],Wj=[[0,41,215,22],[0,31,177,24],[0,63,177,34],[0,0,0,0]],Yj=[[82,82,215,13],[82,103,215,23],[63,79,177,25],[63,95,177,35],[63,111,177,45],[103,82,215,243],[0,0,0,0]],jj=[[255,255,255,7],[0,0,177,14],[0,31,177,24],[0,0,0,0]],Xj=[[255,255,255,7],[63,63,177,15],[63,79,177,25],[63,95,177,35],[79,63,177,245],[0,0,0,0]],qj=[[255,255,255,7],[0,0,126,16],[0,19,126,26],[0,38,126,36],[19,0,126,246],[0,0,0,0]],$j=[[255,255,255,7],[38,38,126,17],[38,47,126,27],[38,57,126,37],[38,66,126,47],[66,38,126,227],[57,38,126,237],[47,38,126,247],[101,101,101,251],[0,0,0,0]],Kj=[[0,127,205,30],[0,0,0,0]],Jj=[[127,191,205,31],[0,0,0,0]],Qj=[[0,0,0,0]],tX=[[0,0,0,0]],eX=[[0,82,215,32],[0,63,177,34],[0,95,177,44],[0,0,0,0]],nX=[[82,103,215,23],[82,124,215,33],[63,95,177,35],[63,111,177,45],[63,177,177,55],[0,0,0,0]],iX=[[255,255,255,7],[0,63,177,34],[0,0,0,0]],rX=[[255,255,255,7],[63,79,177,25],[63,95,177,35],[63,111,177,45],[0,0,0,0]],aX=[[255,255,255,7],[0,19,126,26],[0,38,126,36],[0,57,126,46],[0,0,0,0]],oX=[[255,255,255,7],[38,38,126,17],[38,47,126,27],[38,57,126,37],[38,66,126,47],[38,126,126,57],[38,126,66,67],[38,126,57,77],[66,38,126,227],[57,38,126,237],[47,38,126,247],[101,101,101,251],[0,0,0,0]],sX=[[0,191,205,40],[0,0,0,0]],lX=[[127,223,205,41],[0,0,0,0]],cX=[[0,0,0,0]],hX=[[0,0,0,0]],dX=[[0,124,215,42],[0,95,177,44],[0,177,177,54],[0,0,0,0]],uX=[[82,124,215,33],[82,145,215,43],[63,111,177,45],[63,177,177,55],[0,0,0,0]],mX=[[255,255,255,7],[0,95,177,44],[0,0,0,0]],pX=[[255,255,255,7],[63,95,177,35],[63,111,177,45],[63,177,177,55],[63,177,111,65],[0,0,0,0]],gX=[[255,255,255,7],[0,38,126,36],[0,57,126,46],[0,126,126,56],[0,126,57,66],[0,0,0,0]],fX=[[255,255,255,7],[38,38,126,17],[38,47,126,27],[38,57,126,37],[38,66,126,47],[38,126,126,57],[38,126,66,67],[38,126,57,77],[66,38,126,227],[57,38,126,237],[47,38,126,247],[101,101,101,251],[0,0,0,0]],bX=[[0,205,205,2],[0,205,205,50],[0,0,0,0]],yX=[[127,205,205,51],[0,0,0,0]],vX=[[0,0,0,0]],wX=[[0,0,0,0]],xX=[[0,215,215,52],[0,177,177,54],[0,0,0,0]],CX=[[82,145,215,43],[82,215,215,53],[63,177,177,55],[82,215,145,63],[0,0,0,0]],kX=[[255,255,255,7],[0,177,177,54],[0,0,0,0]],SX=[[255,255,255,7],[63,111,177,45],[63,177,177,55],[63,177,111,65],[0,0,0,0]],PX=[[255,255,255,7],[0,57,126,46],[0,126,126,56],[0,126,57,66],[0,0,0,0]],_X=[[255,255,255,7],[38,57,126,37],[38,66,126,47],[38,126,126,57],[38,126,66,67],[38,126,57,77],[101,101,101,251],[0,0,0,0]],MX=[[0,205,191,60],[0,0,0,0]],DX=[[127,205,223,61],[0,0,0,0]],EX=[[0,0,0,0]],OX=[[0,0,0,0]],AX=[[0,177,177,54],[0,215,124,62],[0,177,95,64],[0,0,0,0]],TX=[[63,177,177,55],[82,215,145,63],[63,177,111,65],[82,215,124,73],[0,0,0,0]],IX=[[255,255,255,7],[0,177,95,64],[0,0,0,0]],LX=[[255,255,255,7],[63,111,177,45],[63,177,177,55],[63,177,111,65],[63,177,95,75],[0,0,0,0]],zX=[[255,255,255,7],[0,57,126,46],[0,126,126,56],[0,126,57,66],[0,126,38,76],[0,0,0,0]],RX=[[255,255,255,7],[38,57,126,37],[38,66,126,47],[38,126,126,57],[38,126,66,67],[38,126,57,77],[38,126,47,87],[38,126,38,97],[47,126,38,107],[57,126,38,117],[66,126,38,127],[101,101,101,251],[0,0,0,0]],FX=[[0,205,127,70],[0,0,0,0]],BX=[[127,205,191,71],[0,0,0,0]],VX=[[0,0,0,0]],NX=[[0,0,0,0]],HX=[[0,177,95,64],[0,215,82,72],[0,177,63,74],[0,0,0,0]],GX=[[63,177,177,55],[63,177,111,65],[82,215,124,73],[63,177,95,75],[82,215,103,83],[0,0,0,0]],ZX=[[255,255,255,7],[0,177,63,74],[0,0,0,0]],UX=[[255,255,255,7],[63,177,111,65],[63,177,95,75],[63,177,79,85],[0,0,0,0]],WX=[[255,255,255,7],[0,126,57,66],[0,126,38,76],[0,126,19,86],[0,0,0,0]],YX=[[255,255,255,7],[38,57,126,37],[38,66,126,47],[38,126,126,57],[38,126,66,67],[38,126,57,77],[38,126,47,87],[38,126,38,97],[47,126,38,107],[57,126,38,117],[66,126,38,127],[101,101,101,251],[0,0,0,0]],jX=[[0,205,0,3],[0,205,63,80],[0,205,0,90],[0,0,0,0]],XX=[[127,205,159,81],[0,0,0,0]],qX=[[0,0,0,0]],$X=[[0,0,0,0]],KX=[[0,177,63,74],[0,215,41,82],[0,177,31,84],[0,0,0,0]],JX=[[63,177,111,65],[63,177,95,75],[82,215,103,83],[63,177,79,85],[82,215,82,93],[103,215,82,103],[0,0,0,0]],QX=[[255,255,255,7],[0,177,31,84],[0,177,0,94],[0,0,0,0]],tq=[[255,255,255,7],[63,177,95,75],[63,177,79,85],[63,177,63,95],[79,177,63,105],[0,0,0,0]],eq=[[255,255,255,7],[0,126,38,76],[0,126,19,86],[0,126,0,96],[19,126,0,106],[0,0,0,0]],nq=[[255,255,255,7],[38,126,66,67],[38,126,57,77],[38,126,47,87],[38,126,38,97],[47,126,38,107],[57,126,38,117],[66,126,38,127],[101,101,101,251],[0,0,0,0]],iq=[[0,205,0,3],[0,205,63,80],[0,205,0,90],[63,205,0,100],[0,0,0,0]],rq=[[127,205,127,91],[0,0,0,0]],aq=[[0,0,0,0]],oq=[[0,0,0,0]],sq=[[0,215,0,92],[0,177,0,94],[0,0,0,0]],lq=[[63,177,95,75],[82,215,103,83],[63,177,79,85],[82,215,82,93],[63,177,63,95],[103,215,82,103],[79,177,63,105],[95,177,63,115],[0,0,0,0]],cq=[[255,255,255,7],[0,177,31,84],[0,177,0,94],[31,177,0,104],[0,0,0,0]],hq=[[255,255,255,7],[63,177,79,85],[63,177,63,95],[79,177,63,105],[0,0,0,0]],dq=[[255,255,255,7],[0,126,19,86],[0,126,0,96],[19,126,0,106],[0,0,0,0]],uq=[[255,255,255,7],[38,126,66,67],[38,126,57,77],[38,126,47,87],[38,126,38,97],[47,126,38,107],[57,126,38,117],[66,126,38,127],[101,101,101,251],[0,0,0,0]],mq=[[63,205,0,100],[0,0,0,0]],pq=[[159,205,127,101],[0,0,0,0]],gq=[[0,0,0,0]],fq=[[0,0,0,0]],bq=[[41,215,0,102],[31,177,0,104],[63,177,0,114],[0,0,0,0]],yq=[[82,215,103,83],[82,215,82,93],[103,215,82,103],[79,177,63,105],[95,177,63,115],[111,177,63,125],[0,0,0,0]],vq=[[255,255,255,7],[31,177,0,104],[0,0,0,0]],wq=[[255,255,255,7],[63,177,79,85],[63,177,63,95],[79,177,63,105],[95,177,63,115],[0,0,0,0]],xq=[[255,255,255,7],[0,126,19,86],[0,126,0,96],[19,126,0,106],[38,126,0,116],[0,0,0,0]],Cq=[[255,255,255,7],[38,126,66,67],[38,126,57,77],[38,126,47,87],[38,126,38,97],[47,126,38,107],[57,126,38,117],[66,126,38,127],[101,101,101,251],[0,0,0,0]],kq=[[127,205,0,110],[0,0,0,0]],Sq=[[191,205,127,111],[0,0,0,0]],Pq=[[0,0,0,0]],_q=[[0,0,0,0]],Mq=[[82,215,0,112],[63,177,0,114],[95,177,0,124],[0,0,0,0]],Dq=[[103,215,82,103],[124,215,82,113],[95,177,63,115],[111,177,63,125],[177,177,63,135],[0,0,0,0]],Eq=[[255,255,255,7],[63,177,0,114],[0,0,0,0]],Oq=[[255,255,255,7],[79,177,63,105],[95,177,63,115],[111,177,63,125],[0,0,0,0]],Aq=[[255,255,255,7],[19,126,0,106],[38,126,0,116],[57,126,0,126],[0,0,0,0]],Tq=[[255,255,255,7],[38,126,66,67],[38,126,57,77],[38,126,47,87],[38,126,38,97],[47,126,38,107],[57,126,38,117],[66,126,38,127],[126,126,38,137],[126,66,38,147],[126,57,38,157],[101,101,101,251],[0,0,0,0]],Iq=[[191,205,0,120],[0,0,0,0]],Lq=[[223,205,127,121],[0,0,0,0]],zq=[[0,0,0,0]],Rq=[[0,0,0,0]],Fq=[[124,215,0,122],[95,177,0,124],[177,177,0,134],[0,0,0,0]],Bq=[[124,215,82,113],[145,215,82,123],[111,177,63,125],[177,177,63,135],[0,0,0,0]],Vq=[[255,255,255,7],[95,177,0,124],[0,0,0,0]],Nq=[[255,255,255,7],[95,177,63,115],[111,177,63,125],[177,177,63,135],[177,111,63,145],[0,0,0,0]],Hq=[[255,255,255,7],[38,126,0,116],[57,126,0,126],[126,126,0,136],[126,57,0,146],[0,0,0,0]],Gq=[[255,255,255,7],[38,126,66,67],[38,126,57,77],[38,126,47,87],[38,126,38,97],[47,126,38,107],[57,126,38,117],[66,126,38,127],[126,126,38,137],[126,66,38,147],[126,57,38,157],[101,101,101,251],[0,0,0,0]],Zq=[[205,205,0,4],[205,205,0,130],[0,0,0,0]],Uq=[[205,205,127,131],[0,0,0,0]],Wq=[[0,0,0,0]],Yq=[[0,0,0,0]],jq=[[215,215,0,132],[177,177,0,134],[0,0,0,0]],Xq=[[145,215,82,123],[215,215,82,133],[177,177,63,135],[215,145,82,143],[0,0,0,0]],qq=[[255,255,255,7],[177,177,0,134],[0,0,0,0]],$q=[[255,255,255,7],[111,177,63,125],[177,177,63,135],[177,111,63,145],[0,0,0,0]],Kq=[[255,255,255,7],[57,126,0,126],[126,126,0,136],[126,57,0,146],[0,0,0,0]],Jq=[[255,255,255,7],[57,126,38,117],[66,126,38,127],[126,126,38,137],[126,66,38,147],[126,57,38,157],[101,101,101,251],[0,0,0,0]],Qq=[[205,191,0,140],[0,0,0,0]],t$=[[205,223,127,141],[0,0,0,0]],e$=[[0,0,0,0]],n$=[[0,0,0,0]],i$=[[177,177,0,134],[215,124,0,142],[177,95,0,144],[0,0,0,0]],r$=[[177,177,63,135],[215,145,82,143],[177,111,63,145],[215,124,82,153],[0,0,0,0]],a$=[[255,255,255,7],[177,95,0,144],[0,0,0,0]],o$=[[255,255,255,7],[111,177,63,125],[177,177,63,135],[177,111,63,145],[177,95,63,155],[0,0,0,0]],s$=[[255,255,255,7],[57,126,0,126],[126,126,0,136],[126,57,0,146],[126,38,0,156],[0,0,0,0]],l$=[[255,255,255,7],[57,126,38,117],[66,126,38,127],[126,126,38,137],[126,66,38,147],[126,57,38,157],[126,47,38,167],[126,38,38,177],[126,38,47,187],[126,38,57,197],[126,38,66,207],[101,101,101,251],[0,0,0,0]],c$=[[205,127,0,150],[0,0,0,0]],h$=[[205,191,127,151],[0,0,0,0]],d$=[[0,0,0,0]],u$=[[0,0,0,0]],m$=[[177,95,0,144],[215,82,0,152],[177,63,0,154],[0,0,0,0]],p$=[[177,177,63,135],[177,111,63,145],[215,124,82,153],[177,95,63,155],[215,103,82,163],[0,0,0,0]],g$=[[255,255,255,7],[177,63,0,154],[0,0,0,0]],f$=[[255,255,255,7],[177,111,63,145],[177,95,63,155],[177,79,63,165],[0,0,0,0]],b$=[[255,255,255,7],[126,57,0,146],[126,38,0,156],[126,19,0,166],[0,0,0,0]],y$=[[255,255,255,7],[57,126,38,117],[66,126,38,127],[126,126,38,137],[126,66,38,147],[126,57,38,157],[126,47,38,167],[126,38,38,177],[126,38,47,187],[126,38,57,197],[126,38,66,207],[101,101,101,251],[0,0,0,0]],v$=[[205,63,0,160],[0,0,0,0]],w$=[[205,159,127,161],[0,0,0,0]],x$=[[0,0,0,0]],C$=[[0,0,0,0]],k$=[[177,63,0,154],[215,41,0,162],[177,31,0,164],[0,0,0,0]],S$=[[177,111,63,145],[177,95,63,155],[215,103,82,163],[177,79,63,165],[215,82,82,173],[215,82,103,183],[0,0,0,0]],P$=[[255,255,255,7],[177,31,0,164],[0,0,0,0]],_$=[[255,255,255,7],[177,95,63,155],[177,79,63,165],[177,63,63,175],[177,63,79,185],[0,0,0,0]],M$=[[255,255,255,7],[126,38,0,156],[126,19,0,166],[126,0,0,176],[126,0,19,186],[0,0,0,0]],D$=[[255,255,255,7],[126,66,38,147],[126,57,38,157],[126,47,38,167],[126,38,38,177],[126,38,47,187],[126,38,57,197],[126,38,66,207],[101,101,101,251],[0,0,0,0]],E$=[[205,0,0,5],[205,63,0,160],[205,0,0,170],[205,0,63,180],[0,0,0,0]],O$=[[205,127,127,171],[0,0,0,0]],A$=[[0,0,0,0]],T$=[[0,0,0,0]],I$=[[215,0,0,172],[177,0,0,174],[0,0,0,0]],L$=[[177,95,63,155],[215,103,82,163],[177,79,63,165],[215,82,82,173],[177,63,63,175],[215,82,103,183],[177,63,79,185],[177,63,95,195],[0,0,0,0]],z$=[[255,255,255,7],[177,31,0,164],[177,0,0,174],[177,0,31,184],[0,0,0,0]],R$=[[255,255,255,7],[177,79,63,165],[177,63,63,175],[177,63,79,185],[0,0,0,0]],F$=[[255,255,255,7],[126,19,0,166],[126,0,0,176],[126,0,19,186],[0,0,0,0]],B$=[[255,255,255,7],[126,66,38,147],[126,57,38,157],[126,47,38,167],[126,38,38,177],[126,38,47,187],[126,38,57,197],[126,38,66,207],[101,101,101,251],[0,0,0,0]],V$=[[205,0,0,5],[205,0,0,170],[205,0,63,180],[0,0,0,0]],N$=[[205,127,159,181],[0,0,0,0]],H$=[[0,0,0,0]],G$=[[0,0,0,0]],Z$=[[215,0,41,182],[177,0,31,184],[177,0,63,194],[0,0,0,0]],U$=[[215,103,82,163],[215,82,82,173],[215,82,103,183],[177,63,79,185],[177,63,95,195],[177,63,111,205],[0,0,0,0]],W$=[[255,255,255,7],[177,0,0,174],[177,0,31,184],[0,0,0,0]],Y$=[[255,255,255,7],[177,79,63,165],[177,63,63,175],[177,63,79,185],[177,63,95,195],[0,0,0,0]],j$=[[255,255,255,7],[126,19,0,166],[126,0,0,176],[126,0,19,186],[126,0,38,196],[0,0,0,0]],X$=[[255,255,255,7],[126,66,38,147],[126,57,38,157],[126,47,38,167],[126,38,38,177],[126,38,47,187],[126,38,57,197],[126,38,66,207],[101,101,101,251],[0,0,0,0]],q$=[[205,0,127,190],[0,0,0,0]],$$=[[205,127,191,191],[0,0,0,0]],K$=[[0,0,0,0]],J$=[[0,0,0,0]],Q$=[[215,0,82,192],[177,0,63,194],[177,0,95,204],[0,0,0,0]],tK=[[215,82,103,183],[215,82,124,193],[177,63,95,195],[177,63,111,205],[177,63,177,215],[0,0,0,0]],eK=[[255,255,255,7],[177,0,63,194],[0,0,0,0]],nK=[[255,255,255,7],[177,63,79,185],[177,63,95,195],[177,63,111,205],[0,0,0,0]],iK=[[255,255,255,7],[126,0,19,186],[126,0,38,196],[126,0,57,206],[0,0,0,0]],rK=[[255,255,255,7],[126,66,38,147],[126,57,38,157],[126,47,38,167],[126,38,38,177],[126,38,47,187],[126,38,57,197],[126,38,66,207],[126,38,126,217],[66,38,126,227],[57,38,126,237],[101,101,101,251],[0,0,0,0]],aK=[[205,0,191,200],[0,0,0,0]],oK=[[205,127,223,201],[0,0,0,0]],sK=[[0,0,0,0]],lK=[[0,0,0,0]],cK=[[215,0,124,202],[177,0,95,204],[177,0,177,214],[0,0,0,0]],hK=[[215,82,124,193],[215,82,145,203],[177,63,111,205],[177,63,177,215],[0,0,0,0]],dK=[[255,255,255,7],[177,0,95,204],[0,0,0,0]],uK=[[255,255,255,7],[177,63,95,195],[177,63,111,205],[177,63,177,215],[111,63,177,225],[0,0,0,0]],mK=[[255,255,255,7],[126,0,38,196],[126,0,57,206],[126,0,126,216],[57,0,126,226],[0,0,0,0]],pK=[[255,255,255,7],[126,66,38,147],[126,57,38,157],[126,47,38,167],[126,38,38,177],[126,38,47,187],[126,38,57,197],[126,38,66,207],[126,38,126,217],[66,38,126,227],[57,38,126,237],[101,101,101,251],[0,0,0,0]],gK=[[205,0,205,6],[205,0,205,210],[0,0,0,0]],fK=[[205,127,205,211],[0,0,0,0]],bK=[[0,0,0,0]],yK=[[0,0,0,0]],vK=[[215,0,215,212],[177,0,177,214],[0,0,0,0]],wK=[[215,82,145,203],[215,82,215,213],[177,63,177,215],[145,82,215,223],[0,0,0,0]],xK=[[255,255,255,7],[177,0,177,214],[0,0,0,0]],CK=[[255,255,255,7],[177,63,111,205],[177,63,177,215],[111,63,177,225],[0,0,0,0]],kK=[[255,255,255,7],[126,0,57,206],[126,0,126,216],[57,0,126,226],[0,0,0,0]],SK=[[255,255,255,7],[126,38,57,197],[126,38,66,207],[126,38,126,217],[66,38,126,227],[57,38,126,237],[101,101,101,251],[0,0,0,0]],PK=[[191,0,205,220],[0,0,0,0]],_K=[[223,127,205,221],[0,0,0,0]],MK=[[0,0,0,0]],DK=[[0,0,0,0]],EK=[[177,0,177,214],[124,0,215,222],[95,0,177,224],[0,0,0,0]],OK=[[177,63,177,215],[145,82,215,223],[111,63,177,225],[124,82,215,233],[0,0,0,0]],AK=[[255,255,255,7],[95,0,177,224],[0,0,0,0]],TK=[[255,255,255,7],[177,63,111,205],[177,63,177,215],[111,63,177,225],[95,63,177,235],[0,0,0,0]],IK=[[255,255,255,7],[126,0,57,206],[126,0,126,216],[57,0,126,226],[38,0,126,236],[0,0,0,0]],LK=[[255,255,255,7],[38,38,126,17],[38,47,126,27],[38,57,126,37],[38,66,126,47],[126,38,57,197],[126,38,66,207],[126,38,126,217],[66,38,126,227],[57,38,126,237],[47,38,126,247],[101,101,101,251],[0,0,0,0]],zK=[[127,0,205,230],[0,0,0,0]],RK=[[191,127,205,231],[0,0,0,0]],FK=[[0,0,0,0]],BK=[[0,0,0,0]],VK=[[95,0,177,224],[82,0,215,232],[63,0,177,234],[0,0,0,0]],NK=[[177,63,177,215],[111,63,177,225],[124,82,215,233],[95,63,177,235],[103,82,215,243],[0,0,0,0]],HK=[[255,255,255,7],[63,0,177,234],[0,0,0,0]],GK=[[255,255,255,7],[111,63,177,225],[95,63,177,235],[79,63,177,245],[0,0,0,0]],ZK=[[255,255,255,7],[57,0,126,226],[38,0,126,236],[19,0,126,246],[0,0,0,0]],UK=[[255,255,255,7],[38,38,126,17],[38,47,126,27],[38,57,126,37],[38,66,126,47],[126,38,57,197],[126,38,66,207],[126,38,126,217],[66,38,126,227],[57,38,126,237],[47,38,126,247],[101,101,101,251],[0,0,0,0]],WK=[[63,0,205,240],[0,0,0,0]],YK=[[159,127,205,241],[0,0,0,0]],jK=[[0,0,0,0]],XK=[[0,0,0,0]],qK=[[63,0,177,234],[41,0,215,242],[31,0,177,244],[0,0,0,0]],$K=[[82,82,215,13],[82,103,215,23],[111,63,177,225],[95,63,177,235],[103,82,215,243],[79,63,177,245],[0,0,0,0]],KK=[[255,255,255,7],[31,0,177,244],[0,0,0,0]],JK=[[255,255,255,7],[63,63,177,15],[63,79,177,25],[95,63,177,235],[79,63,177,245],[0,0,0,0]],QK=[[255,255,255,7],[0,0,126,16],[0,19,126,26],[38,0,126,236],[19,0,126,246],[0,0,0,0]],tJ=[[255,255,255,7],[38,38,126,17],[38,47,126,27],[38,57,126,37],[38,66,126,47],[66,38,126,227],[57,38,126,237],[47,38,126,247],[101,101,101,251],[0,0,0,0]],eJ=[[255,255,255,7],[38,38,126,17],[38,47,126,27],[38,57,126,37],[38,66,126,47],[38,126,126,57],[38,126,66,67],[38,126,57,77],[38,126,47,87],[38,126,38,97],[47,126,38,107],[57,126,38,117],[66,126,38,127],[126,126,38,137],[126,66,38,147],[126,57,38,157],[126,47,38,167],[126,38,38,177],[126,38,47,187],[126,38,57,197],[126,38,66,207],[126,38,126,217],[66,38,126,227],[57,38,126,237],[47,38,126,247],[101,101,101,251],[0,0,0,0]],nJ=[[255,255,255,7],[152,152,152,252],[0,0,0,0]],iJ=[[178,178,178,8],[203,203,203,253],[0,0,0,0]],rJ=[[242,242,242,9],[203,203,203,253],[0,0,0,0]],aJ=[[242,242,242,9],[244,244,244,254],[0,0,0,0]],oJ=[[45,45,45,251],[91,91,91,252],[137,137,137,253],[183,183,183,254],[179,179,179,255],[0,0,0,0]];function sJ(t,e){let n=!1;if(t&&null!=e){const i=e;let r=0;for(;(i[r][0]||i[r][1]||i[r][2]||i[r][3])&&i[r][3]>0;++r)t[i[r][3]-1][0]=i[r][0],t[i[r][3]-1][1]=i[r][1],t[i[r][3]-1][2]=i[r][2],n=!0}return n}function lJ(t){return JSON.parse(JSON.stringify(t))}let cJ=(()=>{class t{}return t.systemColorPalette=yj,t})();function hJ(t){let e=cJ.systemColorPalette;return(t-=1)>=e.length||t<0?4278190080:e[t][2]<<16|e[t][1]<<8|e[t][0]|4278190080}function dJ(t){switch(t){case 1:return Cj;case 2:return kj;case 3:return Sj;case 4:return Pj;case 5:return _j;case 6:return Mj;case 7:return Dj;case 8:return Ej;case 9:return Oj;case 10:return Aj;case 11:return Tj;case 12:return Ij;case 13:return Lj;case 14:return zj;case 15:return Rj;case 16:return Fj;case 17:return Bj;case 18:return Vj;case 19:return Nj;case 20:return Hj;case 21:return Gj;case 22:return Zj;case 23:return Uj;case 24:return Wj;case 25:return Yj;case 26:return jj;case 27:return Xj;case 28:return qj;case 29:return $j;case 30:return Kj;case 31:return Jj;case 32:return Qj;case 33:return tX;case 34:return eX;case 35:return nX;case 36:return iX;case 37:return rX;case 38:return aX;case 39:return oX;case 40:return sX;case 41:return lX;case 42:return cX;case 43:return hX;case 44:return dX;case 45:return uX;case 46:return mX;case 47:return pX;case 48:return gX;case 49:return fX;case 50:return bX;case 51:return yX;case 52:return vX;case 53:return wX;case 54:return xX;case 55:return CX;case 56:return kX;case 57:return SX;case 58:return PX;case 59:return _X;case 60:return MX;case 61:return DX;case 62:return EX;case 63:return OX;case 64:return AX;case 65:return TX;case 66:return IX;case 67:return LX;case 68:return zX;case 69:return RX;case 70:return FX;case 71:return BX;case 72:return VX;case 73:return NX;case 74:return HX;case 75:return GX;case 76:return ZX;case 77:return UX;case 78:return WX;case 79:return YX;case 80:return jX;case 81:return XX;case 82:return qX;case 83:return $X;case 84:return KX;case 85:return JX;case 86:return QX;case 87:return tq;case 88:return eq;case 89:return nq;case 90:return iq;case 91:return rq;case 92:return aq;case 93:return oq;case 94:return sq;case 95:return lq;case 96:return cq;case 97:return hq;case 98:return dq;case 99:return uq;case 100:return mq;case 101:return pq;case 102:return gq;case 103:return fq;case 104:return bq;case 105:return yq;case 106:return vq;case 107:return wq;case 108:return xq;case 109:return Cq;case 110:return kq;case 111:return Sq;case 112:return Pq;case 113:return _q;case 114:return Mq;case 115:return Dq;case 116:return Eq;case 117:return Oq;case 118:return Aq;case 119:return Tq;case 120:return Iq;case 121:return Lq;case 122:return zq;case 123:return Rq;case 124:return Fq;case 125:return Bq;case 126:return Vq;case 127:return Nq;case 128:return Hq;case 129:return Gq;case 130:return Zq;case 131:return Uq;case 132:return Wq;case 133:return Yq;case 134:return jq;case 135:return Xq;case 136:return qq;case 137:return $q;case 138:return Kq;case 139:return Jq;case 140:return Qq;case 141:return t$;case 142:return e$;case 143:return n$;case 144:return i$;case 145:return r$;case 146:return a$;case 147:return o$;case 148:return s$;case 149:return l$;case 150:return c$;case 151:return h$;case 152:return d$;case 153:return u$;case 154:return m$;case 155:return p$;case 156:return g$;case 157:return f$;case 158:return b$;case 159:return y$;case 160:return v$;case 161:return w$;case 162:return x$;case 163:return C$;case 164:return k$;case 165:return S$;case 166:return P$;case 167:return _$;case 168:return M$;case 169:return D$;case 170:return E$;case 171:return O$;case 172:return A$;case 173:return T$;case 174:return I$;case 175:return L$;case 176:return z$;case 177:return R$;case 178:return F$;case 179:return B$;case 180:return V$;case 181:return N$;case 182:return H$;case 183:return G$;case 184:return Z$;case 185:return U$;case 186:return W$;case 187:return Y$;case 188:return j$;case 189:return X$;case 190:return q$;case 191:return $$;case 192:return K$;case 193:return J$;case 194:return Q$;case 195:return tK;case 196:return eK;case 197:return nK;case 198:return iK;case 199:return rK;case 200:return aK;case 201:return oK;case 202:return sK;case 203:return lK;case 204:return cK;case 205:return hK;case 206:return dK;case 207:return uK;case 208:return mK;case 209:return pK;case 210:return gK;case 211:return fK;case 212:return bK;case 213:return yK;case 214:return vK;case 215:return wK;case 216:return xK;case 217:return CK;case 218:return kK;case 219:return SK;case 220:return PK;case 221:return _K;case 222:return MK;case 223:return DK;case 224:return EK;case 225:return OK;case 226:return AK;case 227:return TK;case 228:return IK;case 229:return LK;case 230:return zK;case 231:return RK;case 232:return FK;case 233:return BK;case 234:return VK;case 235:return NK;case 236:return HK;case 237:return GK;case 238:return ZK;case 239:return UK;case 240:return WK;case 241:return YK;case 242:return jK;case 243:return XK;case 244:return qK;case 245:return $K;case 246:return KK;case 247:return JK;case 248:return QK;case 249:return tJ;case 250:return eJ;case 251:return nJ;case 252:return iJ;case 253:return rJ;case 254:return aJ;case 255:return oJ;default:return null}}function uJ(t){let e=t>>24;return e&=255,195===e?hJ(16777215&t):(194===e&&(t&=16777215),t)}function mJ(t){let e=uJ(t);e>>24==0&&(e|=4278190080);let n=fj.colorToRgb(e);return"rgba("+n.red+","+n.green+","+n.blue+","+n.alpha/255+")"}var pJ,gJ=((pJ=gJ||(gJ={}))[pJ.kForRead=0]="kForRead",pJ[pJ.kForWrite=1]="kForWrite",pJ[pJ.kForNotify=2]="kForNotify",gJ);class fJ{constructor(){this.mObj=null}openObject(t,e,n){return void 0===e&&(e=!1),void 0===n&&(n=!1),this.mObj}setObject(t){this.mObj=t}getObject(){return this.mObj}}var bJ,yJ=((bJ=yJ||(yJ={}))[bJ.eOK=0]="eOK",bJ[bJ.eNotImplementYet=1]="eNotImplementYet",bJ[bJ.eAdded=2]="eAdded",bJ[bJ.eEmptyObject=3]="eEmptyObject",yJ);class vJ extends wB{constructor(){super(),this.mItems=new Array}itemCount(){return this.mItems.length}getAt(t){return t>this.mItems.length?null:this.mItems[t]}getAtHandle(t){let e=this.mItems.filter((e=>e.mHandle===t));return e.length>0?e[0]:null}}class wJ extends vJ{add(t){return this.mItems.push(t),yJ.eOK}}class xJ extends wB{constructor(){super(),this.mSymbolName=""}getSymbolName(){return this.mSymbolName}setSymbolName(t){this.mSymbolName=t}}class CJ extends xJ{constructor(){super(),this.mViews=new Array,this.mBlkStubs=new Array,this.mBlkMatrix3d=new JR,this.mHandleMap=new Map,this.mIsChildBlock=!1}setChild(t){this.mIsChildBlock=t}isChild(){return this.mIsChildBlock}setAttributes(){return super.setAttributes()|vB.kDrawableNone}appendZcDbEntity(t){this.mBlkStubs.push(t);let e=t.getObject();if(null===e)return yJ.eEmptyObject;if(null!==e&&null!==e.mHandle){if(void 0!==this.mHandleMap.get(e.mHandle))return SF.error("find same handle:",e.mHandle),yJ.eAdded;this.mHandleMap.set(e.mHandle,e)}return yJ.eOK}deleteZcDbEntity(t){for(let e=0;e<this.mBlkStubs.length;e++){const n=this.mBlkStubs[e].getObject();if(null!==n&&n.mHandle===t){this.mBlkStubs.splice(e,1);break}}return null!==t&&this.mHandleMap.get(t)&&(this.mHandleMap.delete(t),SF.log("find same handle:",t)),yJ.eOK}getZcDbObject(t){return this.mHandleMap.get(t)}setBlkMatrix3d(t){let e=[];for(let n=0;n<4;n++)for(let i=0;i<4;i++)e.push({row:n,col:i,value:t[4*n+i]});this.mBlkMatrix3d.setEntryRanks(e)}jsonIn(t,e,n,i){}worldDraw(t){let e=t.geometry();if(null===e)return!1;null===this.mGsNode&&(this.mGsNode=new CB),null!==this.mGsNode&&(this.mGsNode.mNodeChildren=new Array,this.mGsNode.mDrawable=this);for(let t=0;t<this.mBlkStubs.length;t++){let n=this.mBlkStubs[t].openObject(gJ.kForRead);null!==n&&(e.draw(n),null!==n.mGsNode&&null!==this.mGsNode&&null!==this.mGsNode.mNodeChildren&&this.mGsNode.mNodeChildren.push(n.mGsNode))}return!0}getNGDbObjectId(t){let e=new fJ;return e.setObject(t),e}addViewDbInfo(t){this.mViews.push(t)}checkViewInBTR(t){for(let e in this.mViews)if(t.getViewInfo().mHandle===this.mViews[e].mHandle)return!0;return!1}getViewCount(){return this.mViews.length}getViewInfoByIndex(t){return t>=0&&t<this.mViews.length?this.mViews[t]:null}getAllViewsInfo(){return this.mViews}}class kJ extends xB{}class SJ extends kJ{constructor(){super(...arguments),this.mLastPoint=null}create(){}}class PJ{constructor(){this.mOrigin=new QR(0,0,0),this.mXAxis=new qR(1,0,0),this.mYAxis=new qR(0,1,0)}set(t,e,n){this.mOrigin.copy(t),this.mXAxis.copy(e),this.mYAxis.copy(n)}copy(t){this.mOrigin.copy(t.mOrigin),this.mXAxis.copy(t.mXAxis),this.mYAxis.copy(t.mYAxis)}origin(){return this.mOrigin}xAxis(){return this.mXAxis}yAxis(){return this.mYAxis}zAxis(){return this.mXAxis.crossProduct(this.mYAxis)}wcsToMe(){return this.meToWcs().invert()}meToWcs(){let t=new JR;return t.setCoordSystem(this.mOrigin,this.mXAxis,this.mYAxis,this.mXAxis.crossProduct(this.mYAxis)),t}setZAxis(t){this.mXAxis=t.perpVector(),this.mYAxis=t.crossProduct(this.mXAxis),this.mYAxis.normalize()}setWCS(){this.mOrigin.copy(QR.Origin),this.mXAxis.copy(qR.XAxis()),this.mYAxis.copy(qR.YAxis())}}class _J{constructor(){this.mIsOverallView=!1,this.mIsNonRectRegion=!0,this.mLimmin=new oB,this.mLimmax=new oB,this.mHandle=BigInt(0),this.mViewportNum=0,this.mOffset=0,this.mVpNumber=1,this.mRenderMode=1,this.mFrontClipEnable=!1,this.mBackClipEnable=!1,this.mSnapBase=new oB,this.mSnapAngle=0,this.mSnapPair=0,this.mSnapIncrements=new oB,this.mGridIncrements=new oB,this.mbGridEnabled=!1,this.mbSnapEnabled=!1,this.mbIsometricSnap=!1,this.mbUcsFollowMode=!1,this.mbIsUcsSavedWithViewport=!1,this.mbUcsOn=!1,this.mbUcsAtOrigin=!1,this.mnCircleSides=1e3,this.mbLock=!1,this.mbOn=!1,this.mViewCenter=new oB,this.mTarget=new QR,this.mViewDirection=new qR(0,0,1),this.mCenterPoint=new QR,this.mViewHeight=1,this.mViewWidth=1,this.mPaperWidth=1,this.mPaperHeight=1,this.mLensLength=0,this.mFrontZ=0,this.mBackZ=0,this.mTwistAngle=0,this.mViewportName="",this.mIsDBViewport=!1,this.mLowerLeft=new oB(0,0),this.mUpperRight=new oB(1,1),this.mUcsOrigin=new QR(0,0,0),this.mUcsXAxis=new qR(1,0,0),this.mUcsYAxis=new qR(0,1,0),this.mUcsZAxis=new qR(0,0,1),this.mClipRegionCount=0,this.mClipRegionPtsNum=[],this.mClipRegionPtsNumList=new Array,this.mDBExtends=new NU,this.mViewExtends=new NU,this.mVirtualViewExtends=new NU,this.mColorMethod=yB.kNone,this.mBorderColor=null,this.mLayerHandle=BigInt(0),this.mIsActive=!0,this.mUcsOriginConstant=new QR(0,0,0),this.mUcsXAxisConstant=new qR(1,0,0),this.mUcsYAxisConstant=new qR(0,1,0),this.mUcsZAxisConstant=new qR(0,0,1),this.mDCSBoundary=new NU}copy(t,e){null!==t&&(this.mHandle=t.mHandle,this.mViewportNum=t.mViewportNum,this.mOffset=t.mOffset,this.mVpNumber=t.mVpNumber,this.mRenderMode=t.mRenderMode,this.mFrontClipEnable=t.mFrontClipEnable,this.mBackClipEnable=t.mBackClipEnable,this.mSnapBase.copy(t.mSnapBase),this.mSnapAngle=t.mSnapAngle,this.mSnapPair=t.mSnapPair,this.mSnapIncrements.copy(t.mSnapIncrements),this.mGridIncrements.copy(t.mGridIncrements),this.mbGridEnabled=t.mbGridEnabled,this.mbSnapEnabled=t.mbSnapEnabled,this.mbIsometricSnap=t.mbIsometricSnap,this.mbUcsFollowMode=t.mbUcsFollowMode,this.mbIsUcsSavedWithViewport=t.mbIsUcsSavedWithViewport,this.mbUcsOn=t.mbUcsOn,this.mbUcsAtOrigin=t.mbUcsAtOrigin,this.mnCircleSides=t.mnCircleSides,this.mbLock=t.mbLock,this.mbOn=t.mbOn,this.mViewCenter.copy(t.mViewCenter),this.mTarget.copy(t.mTarget),this.mViewDirection.copy(t.mViewDirection),this.mCenterPoint.copy(t.mCenterPoint),this.mViewHeight=t.mViewHeight,this.mViewWidth=t.mViewWidth,this.mPaperWidth=t.mPaperWidth,this.mPaperHeight=t.mPaperHeight,this.mLensLength=t.mLensLength,this.mFrontZ=t.mFrontZ,this.mBackZ=t.mBackZ,this.mTwistAngle=t.mTwistAngle,this.mViewportName=t.mViewportName,this.mIsOverallView=t.mIsOverallView,this.mIsDBViewport=t.mIsDBViewport,this.mLowerLeft.copy(t.mLowerLeft),this.mUpperRight.copy(t.mUpperRight),this.mUcsOrigin.copy(t.mUcsOrigin),this.mUcsXAxis.copy(t.mUcsXAxis),this.mUcsYAxis.copy(t.mUcsYAxis),this.mUcsZAxis.copy(t.mUcsZAxis),this.mClipRegionCount=t.mClipRegionCount,this.mClipRegionPtsNum=JSON.parse(JSON.stringify(t.mClipRegionPtsNum)),this.mClipRegionPtsNumList=JSON.parse(JSON.stringify(t.mClipRegionPtsNumList)),this.mDBExtends.copy(t.mDBExtends),this.mViewExtends.copy(t.mViewExtends),this.mVirtualViewExtends.copy(t.mVirtualViewExtends),this.mColorMethod=t.mColorMethod,this.mBorderColor=t.mBorderColor,this.mLayerHandle=t.mLayerHandle,this.mIsActive=t.mIsActive,"regen"!==e&&(this.mUcsOriginConstant.copy(t.mUcsOriginConstant),this.mUcsXAxisConstant.copy(t.mUcsXAxisConstant),this.mUcsYAxisConstant.copy(t.mUcsYAxisConstant),this.mUcsZAxisConstant.copy(t.mUcsZAxisConstant)),this.mDCSBoundary.copy(t.mDCSBoundary),this.mLimmin.copy(t.mLimmin),this.mLimmax.copy(t.mLimmax))}}var MJ,DJ=((MJ=DJ||(DJ={}))[MJ.kNonOrthoView=0]="kNonOrthoView",MJ[MJ.kTopView=1]="kTopView",MJ[MJ.kBottomView=2]="kBottomView",MJ[MJ.kFrontView=3]="kFrontView",MJ[MJ.kBackView=4]="kBackView",MJ[MJ.kLeftView=5]="kLeftView",MJ[MJ.kRightView=6]="kRightView",DJ);class EJ{constructor(){this.mUcsOrigin=new QR(0,0,0),this.mUcsXAxisDir=new qR(1,0,0),this.mUcsYAxisDir=new qR(0,1,0),this.mUcsElevation=0,this.mUcsOrthoViewType=DJ.kNonOrthoView,this.mBaseUcsId=null,this.mNamedUcsId=null,this.mViewInfo=new _J}copy(t){null!==t&&(this.mUcsOrigin.copy(t.mUcsOrigin),this.mUcsXAxisDir.copy(t.mUcsXAxisDir),this.mUcsYAxisDir.copy(t.mUcsYAxisDir),this.mUcsElevation=t.mUcsElevation,this.mBaseUcsId=t.mBaseUcsId,this.mNamedUcsId=t.mNamedUcsId,this.mViewInfo.copy(t.mViewInfo))}setUcsElevation(t=0){this.mUcsElevation=t}ucsOrignElevation(){return this.mUcsOrigin.asVector().dotProduct(this.mUcsXAxisDir.crossProduct(this.mUcsYAxisDir))}arbitraryElevation(){return this.mUcsElevation+this.ucsOrignElevation()}setArbitraryElevation(){this.mUcsElevation-=this.ucsOrignElevation()}worldToMe(){this.mUcsOrigin=QR.Origin,this.mUcsXAxisDir=qR.XAxis(),this.mUcsYAxisDir=qR.YAxis(),this.mUcsOrthoViewType=DJ.kNonOrthoView,this.setUcsElevation(0),this.mBaseUcsId=null,this.mNamedUcsId=null}getRelativeOrthoCS(t,e){let n=new QR;n.copy(this.mUcsOrigin);let i=new qR;i.copy(this.mUcsXAxisDir);let r=new qR;r.copy(this.mUcsYAxisDir);let a=new qR;switch(t){case DJ.kTopView:break;case DJ.kBottomView:i.mul(-1);break;case DJ.kFrontView:r.copy(i.crossProduct(r));break;case DJ.kLeftView:a.copy(r),a.mul(-1),i.copy(a),r.copy(this.mUcsXAxisDir.crossProduct(r));break;case DJ.kRightView:i.copy(r),r.copy(this.mUcsXAxisDir.crossProduct(r));break;case DJ.kBackView:r.copy(i.crossProduct(r)),i.mul(-1)}i.normalize(),r.normalize(),e.set(n,i,r)}applyUcsOrthoViewType(t,e){let n=new PJ,i=new QR;i.copy(n.origin());let r=new qR;r.copy(n.xAxis());let a=new qR;a.copy(n.yAxis());let o=new qR;switch(t){case DJ.kTopView:break;case DJ.kBottomView:r.mul(-1);break;case DJ.kFrontView:a.copy(r.crossProduct(a));break;case DJ.kLeftView:o.copy(a),o.mul(-1),r.copy(o),a.copy(n.xAxis().crossProduct(a));break;case DJ.kRightView:r.copy(a),a.copy(n.xAxis().crossProduct(a));break;default:a.copy(r.crossProduct(a)),r.mul(-1)}this.applyUcs(i,r,a,e),this.mUcsOrthoViewType=t}applyUcs(t,e,n,i){this.interanlApplyUcs(t,e,n,i),this.mBaseUcsId=null,this.mNamedUcsId=null,this.mUcsOrthoViewType=DJ.kNonOrthoView}interanlApplyUcs(t,e,n,i){this.mUcsOrigin.copy(t),this.mUcsXAxisDir.copy(e),this.mUcsYAxisDir.copy(n)}}class OJ{constructor(t,e,n,i){this.mX=t||0,this.mY=e||0,this.mWidth=n||0,this.mHeight=i||0}set(t,e,n,i){this.mX=t,this.mY=e,this.mWidth=n,this.mHeight=i}copy(t){this.mX=t.mX,this.mY=t.mY,this.mWidth=t.mWidth,this.mHeight=t.mHeight}contain(t,e){return!(t-this.mX<0||t-this.mX>this.mWidth||e-this.mY<0||e-this.mY>this.mHeight)}bottom(){return this.mY+this.mHeight}right(){return this.mX+this.mWidth}area(){return this.mWidth*this.mHeight}toString(){return"{ mX: "+this.mX+", mY: "+this.mY+", mWidth: "+this.mWidth+", mHeight: "+this.mHeight+" }"}}var AJ,TJ=((AJ=TJ||(TJ={}))[AJ.kDrCanvasRenderer=0]="kDrCanvasRenderer",AJ[AJ.kDrQuickRenderer=1]="kDrQuickRenderer",AJ[AJ.kDrWebGlRenderer=2]="kDrWebGlRenderer",TJ);class IJ{}IJ.mRendererType=TJ.kDrWebGlRenderer,IJ.mUsePipelineGenerate=!1,IJ.mUseSkiaMethod=!0,IJ.mMainFrameSize=108,IJ.mUseWebsocketDebug=!1,IJ.mLayerOverlimit=!1,IJ.mEnableWASMWrapper=!0;var LJ=l(604),zJ=l.n(LJ);class RJ{constructor(t,e,n){this.mStartPoint=new QR,this.mEndPoint=new QR,this.calculatePoint(t,e,n)}calculatePoint(t,e,n){const i=e.sub2vec(t);i.normalize();let r=Math.max(n.mWidth,n.mHeight);r+=Math.max(0,Math.abs(n.mX),Math.abs(n.mY)),i.mul(2*r),this.mStartPoint.copy(t),this.mEndPoint.copy(e),this.mEndPoint.addVector(i)}}class FJ{constructor(t,e,n){this.mStartPoint=new QR,this.mEndPoint=new QR,this.calculatePoint(t,e,n)}calculatePoint(t,e,n){const i=e.sub2vec(t);i.normalize();let r=Math.max(n.mWidth,n.mHeight);r+=Math.max(0,Math.abs(n.mX),Math.abs(n.mY)),i.mul(2*r),this.mStartPoint.copy(t),this.mStartPoint.subVector(i),this.mEndPoint.copy(e),this.mEndPoint.addVector(i)}}var BJ,VJ=((BJ=VJ||(VJ={}))[BJ.kZcGsRGB24=0]="kZcGsRGB24",BJ[BJ.kZcGsRGB32=1]="kZcGsRGB32",BJ[BJ.kZcGsBGR24=2]="kZcGsBGR24",BJ[BJ.kZcGsBGR32=3]="kZcGsBGR32",VJ);class NJ{constructor(){this.img=new Image,this.imageWidth=0,this.imageHeight=0,this.imageU=new qR,this.imageV=new qR,this.contrast=0,this.bright=0,this.alpha=0,this.imageFormat=VJ.kZcGsRGB24}}let HJ=(()=>{class t{static reset(){t.mCoordinateSwitch=!0,t.mLineWidthSwitch=!1;let e=XF.instance().getItem("osnapSwitch");e?t.mOsnapSwitch=e:(t.mOsnapSwitch=!1,XF.instance().setItem("osnapSwitch",!1))}}return t.mCoordinateSwitch=!0,t.mLineWidthSwitch=!1,t.mSnapSwitch=!1,t.mOrthoSwitch=!1,t.mPolarSwitch=!1,t.mOsnapSwitch=!1,t.mOtrackSwitch=!0,t.mDynamicUcsSwitch=!1,t.mDynamicInputSwitch=!1,t.mTransparencySwitch=!1,t.mCycleSelectSwitch=!1,t})();const GJ={projection(t,e,n,i){t.setEntry([[2/e,0,0,-1],[0,-2/n,0,1],[0,0,2/i,0],[0,0,0,1]])},multiply(t,e){t.mul(e)},translate(t,e,n,i){const r=new JR;r.setEntry([[1,0,0,e],[0,1,0,n],[0,0,1,i],[0,0,0,1]]),t.mul(r)},xRotate(t,e){const n=new JR,i=Math.cos(e),r=Math.sin(e);n.setEntry([[1,0,0,0],[0,i,-r,0],[0,r,i,0],[0,0,0,1]]),t.mul(n)},yRotate(t,e){const n=new JR,i=Math.cos(e),r=Math.sin(e);n.setEntry([[i,0,r,0],[0,1,0,0],[-r,0,i,0],[0,0,0,1]]),t.mul(n)},zRotate(t,e){const n=new JR,i=Math.cos(e),r=Math.sin(e);n.setEntry([[i,-r,0,0],[r,i,0,0],[0,0,1,0],[0,0,0,1]]),t.mul(n)},scale(t,e,n,i){const r=new JR;r.setEntry([[e,0,0,0],[0,n,0,0],[0,0,i,0],[0,0,0,1]]),t.mul(r)},toWebglMat(t){let e=t.getEntry();return[e[0][0],e[1][0],e[2][0],e[3][0],e[0][1],e[1][1],e[2][1],e[3][1],e[0][2],e[1][2],e[2][2],e[3][2],e[0][3],e[1][3],e[2][3],e[3][3]]}};function ZJ(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function UJ(t,e){this.source=t,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=e,this.destLen=0,this.ltree=new ZJ,this.dtree=new ZJ}var WJ,YJ;String.prototype.codePointAt||(WJ=function(){try{var t={},e=Object.defineProperty,n=e(t,t,t)&&e}catch(t){}return n}(),YJ=function(t){if(null==this)throw TypeError();var e=String(this),n=e.length,i=t?Number(t):0;if(i!=i&&(i=0),!(i<0||i>=n)){var r,a=e.charCodeAt(i);return a>=55296&&a<=56319&&n>i+1&&(r=e.charCodeAt(i+1))>=56320&&r<=57343?1024*(a-55296)+r-56320+65536:a}},WJ?WJ(String.prototype,"codePointAt",{value:YJ,configurable:!0,writable:!0}):String.prototype.codePointAt=YJ);var jJ=new ZJ,XJ=new ZJ,qJ=new Uint8Array(30),$J=new Uint16Array(30),KJ=new Uint8Array(30),JJ=new Uint16Array(30),QJ=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),tQ=new ZJ,eQ=new Uint8Array(320);function nQ(t,e,n,i){var r,a;for(r=0;r<n;++r)t[r]=0;for(r=0;r<30-n;++r)t[r+n]=r/n|0;for(a=i,r=0;r<30;++r)e[r]=a,a+=1<<t[r]}var iQ=new Uint16Array(16);function rQ(t,e,n,i){var r,a;for(r=0;r<16;++r)t.table[r]=0;for(r=0;r<i;++r)t.table[e[n+r]]++;for(t.table[0]=0,a=0,r=0;r<16;++r)iQ[r]=a,a+=t.table[r];for(r=0;r<i;++r)e[n+r]&&(t.trans[iQ[e[n+r]]++]=r)}function aQ(t){t.bitcount--||(t.tag=t.source[t.sourceIndex++],t.bitcount=7);var e=1&t.tag;return t.tag>>>=1,e}function oQ(t,e,n){if(!e)return n;for(;t.bitcount<24;)t.tag|=t.source[t.sourceIndex++]<<t.bitcount,t.bitcount+=8;var i=t.tag&65535>>>16-e;return t.tag>>>=e,t.bitcount-=e,i+n}function sQ(t,e){for(;t.bitcount<24;)t.tag|=t.source[t.sourceIndex++]<<t.bitcount,t.bitcount+=8;var n=0,i=0,r=0,a=t.tag;do{i=2*i+(1&a),a>>>=1,++r,n+=e.table[r],i-=e.table[r]}while(i>=0);return t.tag=a,t.bitcount-=r,e.trans[n+i]}function lQ(t,e,n){var i,r,a,o,s,l;for(i=oQ(t,5,257),r=oQ(t,5,1),a=oQ(t,4,4),o=0;o<19;++o)eQ[o]=0;for(o=0;o<a;++o){var c=oQ(t,3,0);eQ[QJ[o]]=c}for(rQ(tQ,eQ,0,19),s=0;s<i+r;){var h=sQ(t,tQ);switch(h){case 16:var d=eQ[s-1];for(l=oQ(t,2,3);l;--l)eQ[s++]=d;break;case 17:for(l=oQ(t,3,3);l;--l)eQ[s++]=0;break;case 18:for(l=oQ(t,7,11);l;--l)eQ[s++]=0;break;default:eQ[s++]=h}}rQ(e,eQ,0,i),rQ(n,eQ,i,r)}function cQ(t,e,n){for(;;){var i,r,a,o,s=sQ(t,e);if(256===s)return 0;if(s<256)t.dest[t.destLen++]=s;else for(i=oQ(t,qJ[s-=257],$J[s]),r=sQ(t,n),o=a=t.destLen-oQ(t,KJ[r],JJ[r]);o<a+i;++o)t.dest[t.destLen++]=t.dest[o]}}function hQ(t){for(var e,n;t.bitcount>8;)t.sourceIndex--,t.bitcount-=8;if((e=256*(e=t.source[t.sourceIndex+1])+t.source[t.sourceIndex])!==(65535&~(256*t.source[t.sourceIndex+3]+t.source[t.sourceIndex+2])))return-3;for(t.sourceIndex+=4,n=e;n;--n)t.dest[t.destLen++]=t.source[t.sourceIndex++];return t.bitcount=0,0}function dQ(t,e,n,i,r){return Math.pow(1-r,3)*t+3*Math.pow(1-r,2)*r*e+3*(1-r)*Math.pow(r,2)*n+Math.pow(r,3)*i}function uQ(){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN}function mQ(){this.commands=[],this.fill="black",this.stroke=null,this.strokeWidth=1}function pQ(t){throw new Error(t)}function gQ(t,e){t||pQ(e)}(function(t,e){var n;for(n=0;n<7;++n)t.table[n]=0;for(t.table[7]=24,t.table[8]=152,t.table[9]=112,n=0;n<24;++n)t.trans[n]=256+n;for(n=0;n<144;++n)t.trans[24+n]=n;for(n=0;n<8;++n)t.trans[168+n]=280+n;for(n=0;n<112;++n)t.trans[176+n]=144+n;for(n=0;n<5;++n)e.table[n]=0;for(e.table[5]=32,n=0;n<32;++n)e.trans[n]=n})(jJ,XJ),nQ(qJ,$J,4,3),nQ(KJ,JJ,2,1),qJ[28]=0,$J[28]=258,uQ.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},uQ.prototype.addPoint=function(t,e){"number"==typeof t&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=t,this.x2=t),t<this.x1&&(this.x1=t),t>this.x2&&(this.x2=t)),"number"==typeof e&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=e,this.y2=e),e<this.y1&&(this.y1=e),e>this.y2&&(this.y2=e))},uQ.prototype.addX=function(t){this.addPoint(t,null)},uQ.prototype.addY=function(t){this.addPoint(null,t)},uQ.prototype.addBezier=function(t,e,n,i,r,a,o,s){var l=[t,e],c=[n,i],h=[r,a],d=[o,s];this.addPoint(t,e),this.addPoint(o,s);for(var u=0;u<=1;u++){var m=6*l[u]-12*c[u]+6*h[u],p=-3*l[u]+9*c[u]-9*h[u]+3*d[u],g=3*c[u]-3*l[u];if(0!==p){var f=Math.pow(m,2)-4*g*p;if(!(f<0)){var b=(-m+Math.sqrt(f))/(2*p);0<b&&b<1&&(0===u&&this.addX(dQ(l[u],c[u],h[u],d[u],b)),1===u&&this.addY(dQ(l[u],c[u],h[u],d[u],b)));var y=(-m-Math.sqrt(f))/(2*p);0<y&&y<1&&(0===u&&this.addX(dQ(l[u],c[u],h[u],d[u],y)),1===u&&this.addY(dQ(l[u],c[u],h[u],d[u],y)))}}else{if(0===m)continue;var v=-g/m;0<v&&v<1&&(0===u&&this.addX(dQ(l[u],c[u],h[u],d[u],v)),1===u&&this.addY(dQ(l[u],c[u],h[u],d[u],v)))}}},uQ.prototype.addQuad=function(t,e,n,i,r,a){var o=t+2/3*(n-t),s=e+2/3*(i-e);this.addBezier(t,e,o,s,o+1/3*(r-t),s+1/3*(a-e),r,a)},mQ.prototype.moveTo=function(t,e){this.commands.push({type:"M",x:t,y:e})},mQ.prototype.lineTo=function(t,e){this.commands.push({type:"L",x:t,y:e})},mQ.prototype.curveTo=mQ.prototype.bezierCurveTo=function(t,e,n,i,r,a){this.commands.push({type:"C",x1:t,y1:e,x2:n,y2:i,x:r,y:a})},mQ.prototype.quadTo=mQ.prototype.quadraticCurveTo=function(t,e,n,i){this.commands.push({type:"Q",x1:t,y1:e,x:n,y:i})},mQ.prototype.close=mQ.prototype.closePath=function(){this.commands.push({type:"Z"})},mQ.prototype.extend=function(t){if(t.commands)t=t.commands;else if(t instanceof uQ){var e=t;return this.moveTo(e.x1,e.y1),this.lineTo(e.x2,e.y1),this.lineTo(e.x2,e.y2),this.lineTo(e.x1,e.y2),void this.close()}Array.prototype.push.apply(this.commands,t)},mQ.prototype.getBoundingBox=function(){for(var t=new uQ,e=0,n=0,i=0,r=0,a=0;a<this.commands.length;a++){var o=this.commands[a];switch(o.type){case"M":t.addPoint(o.x,o.y),e=i=o.x,n=r=o.y;break;case"L":t.addPoint(o.x,o.y),i=o.x,r=o.y;break;case"Q":t.addQuad(i,r,o.x1,o.y1,o.x,o.y),i=o.x,r=o.y;break;case"C":t.addBezier(i,r,o.x1,o.y1,o.x2,o.y2,o.x,o.y),i=o.x,r=o.y;break;case"Z":i=e,r=n;break;default:throw new Error("Unexpected path command "+o.type)}}return t.isEmpty()&&t.addPoint(0,0),t},mQ.prototype.draw=function(t){t.beginPath();for(var e=0;e<this.commands.length;e+=1){var n=this.commands[e];"M"===n.type?t.moveTo(n.x,n.y):"L"===n.type?t.lineTo(n.x,n.y):"C"===n.type?t.bezierCurveTo(n.x1,n.y1,n.x2,n.y2,n.x,n.y):"Q"===n.type?t.quadraticCurveTo(n.x1,n.y1,n.x,n.y):"Z"===n.type&&t.closePath()}this.fill&&(t.fillStyle=this.fill,t.fill()),this.stroke&&(t.strokeStyle=this.stroke,t.lineWidth=this.strokeWidth,t.stroke())},mQ.prototype.toPathData=function(t){function e(e){return Math.round(e)===e?""+Math.round(e):e.toFixed(t)}function n(){for(var t=arguments,n="",i=0;i<arguments.length;i+=1){var r=t[i];r>=0&&i>0&&(n+=" "),n+=e(r)}return n}t=void 0!==t?t:2;for(var i="",r=0;r<this.commands.length;r+=1){var a=this.commands[r];"M"===a.type?i+="M"+n(a.x,a.y):"L"===a.type?i+="L"+n(a.x,a.y):"C"===a.type?i+="C"+n(a.x1,a.y1,a.x2,a.y2,a.x,a.y):"Q"===a.type?i+="Q"+n(a.x1,a.y1,a.x,a.y):"Z"===a.type&&(i+="Z")}return i},mQ.prototype.toSVG=function(t){var e='<path d="';return e+=this.toPathData(t),e+='"',this.fill&&"black"!==this.fill&&(e+=null===this.fill?' fill="none"':' fill="'+this.fill+'"'),this.stroke&&(e+=' stroke="'+this.stroke+'" stroke-width="'+this.strokeWidth+'"'),e+"/>"},mQ.prototype.toDOMElement=function(t){var e=this.toPathData(t),n=document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttribute("d",e),n};var fQ={fail:pQ,argument:gQ,assert:gQ},bQ=2147483648,yQ={},vQ={},wQ={};function xQ(t){return function(){return t}}vQ.BYTE=function(t){return fQ.argument(t>=0&&t<=255,"Byte value should be between 0 and 255."),[t]},wQ.BYTE=xQ(1),vQ.CHAR=function(t){return[t.charCodeAt(0)]},wQ.CHAR=xQ(1),vQ.CHARARRAY=function(t){void 0===t&&(t="",r.warn("Undefined CHARARRAY encountered and treated as an empty string. This is probably caused by a missing glyph name."));for(var e=[],n=0;n<t.length;n+=1)e[n]=t.charCodeAt(n);return e},wQ.CHARARRAY=function(t){return void 0===t?0:t.length},vQ.USHORT=function(t){return[t>>8&255,255&t]},wQ.USHORT=xQ(2),vQ.SHORT=function(t){return t>=32768&&(t=-(65536-t)),[t>>8&255,255&t]},wQ.SHORT=xQ(2),vQ.UINT24=function(t){return[t>>16&255,t>>8&255,255&t]},wQ.UINT24=xQ(3),vQ.ULONG=function(t){return[t>>24&255,t>>16&255,t>>8&255,255&t]},wQ.ULONG=xQ(4),vQ.LONG=function(t){return t>=bQ&&(t=-(4294967296-t)),[t>>24&255,t>>16&255,t>>8&255,255&t]},wQ.LONG=xQ(4),vQ.FIXED=vQ.ULONG,wQ.FIXED=wQ.ULONG,vQ.FWORD=vQ.SHORT,wQ.FWORD=wQ.SHORT,vQ.UFWORD=vQ.USHORT,wQ.UFWORD=wQ.USHORT,vQ.LONGDATETIME=function(t){return[0,0,0,0,t>>24&255,t>>16&255,t>>8&255,255&t]},wQ.LONGDATETIME=xQ(8),vQ.TAG=function(t){return fQ.argument(4===t.length,"Tag should be exactly 4 ASCII characters."),[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]},wQ.TAG=xQ(4),vQ.Card8=vQ.BYTE,wQ.Card8=wQ.BYTE,vQ.Card16=vQ.USHORT,wQ.Card16=wQ.USHORT,vQ.OffSize=vQ.BYTE,wQ.OffSize=wQ.BYTE,vQ.SID=vQ.USHORT,wQ.SID=wQ.USHORT,vQ.NUMBER=function(t){return t>=-107&&t<=107?[t+139]:t>=108&&t<=1131?[247+((t-=108)>>8),255&t]:t>=-1131&&t<=-108?[251+((t=-t-108)>>8),255&t]:t>=-32768&&t<=32767?vQ.NUMBER16(t):vQ.NUMBER32(t)},wQ.NUMBER=function(t){return vQ.NUMBER(t).length},vQ.NUMBER16=function(t){return[28,t>>8&255,255&t]},wQ.NUMBER16=xQ(3),vQ.NUMBER32=function(t){return[29,t>>24&255,t>>16&255,t>>8&255,255&t]},wQ.NUMBER32=xQ(5),vQ.REAL=function(t){var e=t.toString(),n=/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(e);if(n){var i=parseFloat("1e"+((n[2]?+n[2]:0)+n[1].length));e=(Math.round(t*i)/i).toString()}for(var r="",a=0,o=e.length;a<o;a+=1){var s=e[a];r+="e"===s?"-"===e[++a]?"c":"b":"."===s?"a":"-"===s?"e":s}for(var l=[30],c=0,h=(r+=1&r.length?"f":"ff").length;c<h;c+=2)l.push(parseInt(r.substr(c,2),16));return l},wQ.REAL=function(t){return vQ.REAL(t).length},vQ.NAME=vQ.CHARARRAY,wQ.NAME=wQ.CHARARRAY,vQ.STRING=vQ.CHARARRAY,wQ.STRING=wQ.CHARARRAY,yQ.UTF8=function(t,e,n){for(var i=[],r=n,a=0;a<r;a++,e+=1)i[a]=t.getUint8(e);return String.fromCharCode.apply(null,i)},yQ.UTF16=function(t,e,n){for(var i=[],r=n/2,a=0;a<r;a++,e+=2)i[a]=t.getUint16(e);return String.fromCharCode.apply(null,i)},vQ.UTF16=function(t){for(var e=[],n=0;n<t.length;n+=1){var i=t.charCodeAt(n);e[e.length]=i>>8&255,e[e.length]=255&i}return e},wQ.UTF16=function(t){return 2*t.length};var CQ={"x-mac-croatian":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈ƫȅ ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ","x-mac-cyrillic":"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю","x-mac-gaelic":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ","x-mac-greek":"Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ","x-mac-icelandic":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-inuit":"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł","x-mac-ce":"ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ",macintosh:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-romanian":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-turkish":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ"};yQ.MACSTRING=function(t,e,n,i){var r=CQ[i];if(void 0!==r){for(var a="",o=0;o<n;o++){var s=t.getUint8(e+o);a+=s<=127?String.fromCharCode(s):r[127&s]}return a}};var kQ,SQ="function"==typeof WeakMap&&new WeakMap;function PQ(t){return t>=-128&&t<=127}function _Q(t,e,n){for(var i=0,r=t.length;e<r&&i<64&&0===t[e];)++e,++i;return n.push(128|i-1),e}function MQ(t,e,n){for(var i=0,r=t.length,a=e;a<r&&i<64;){var o=t[a];if(!PQ(o)||0===o&&a+1<r&&0===t[a+1])break;++a,++i}n.push(i-1);for(var s=e;s<a;++s)n.push(t[s]+256&255);return a}function DQ(t,e,n){for(var i=0,r=t.length,a=e;a<r&&i<64;){var o=t[a];if(0===o||PQ(o)&&a+1<r&&PQ(t[a+1]))break;++a,++i}n.push(64|i-1);for(var s=e;s<a;++s){var l=t[s];n.push(l+65536>>8&255,l+256&255)}return a}vQ.MACSTRING=function(t,e){var n=function(t){if(!kQ)for(var e in kQ={},CQ)kQ[e]=new String(e);var n=kQ[t];if(void 0!==n){if(SQ){var i=SQ.get(n);if(void 0!==i)return i}var r=CQ[t];if(void 0!==r){for(var a={},o=0;o<r.length;o++)a[r.charCodeAt(o)]=o+128;return SQ&&SQ.set(n,a),a}}}(e);if(void 0!==n){for(var i=[],r=0;r<t.length;r++){var a=t.charCodeAt(r);if(a>=128&&void 0===(a=n[a]))return;i[r]=a}return i}},wQ.MACSTRING=function(t,e){var n=vQ.MACSTRING(t,e);return void 0!==n?n.length:0},vQ.VARDELTAS=function(t){for(var e=0,n=[];e<t.length;){var i=t[e];e=0===i?_Q(t,e,n):i>=-128&&i<=127?MQ(t,e,n):DQ(t,e,n)}return n},vQ.INDEX=function(t){for(var e=1,n=[e],i=[],r=0;r<t.length;r+=1){var a=vQ.OBJECT(t[r]);Array.prototype.push.apply(i,a),n.push(e+=a.length)}if(0===i.length)return[0,0];for(var o=[],s=1+Math.floor(Math.log(e)/Math.log(2))/8|0,l=[void 0,vQ.BYTE,vQ.USHORT,vQ.UINT24,vQ.ULONG][s],c=0;c<n.length;c+=1){var h=l(n[c]);Array.prototype.push.apply(o,h)}return Array.prototype.concat(vQ.Card16(t.length),vQ.OffSize(s),o,i)},wQ.INDEX=function(t){return vQ.INDEX(t).length},vQ.DICT=function(t){for(var e=[],n=Object.keys(t),i=n.length,r=0;r<i;r+=1){var a=parseInt(n[r],0),o=t[a];e=(e=e.concat(vQ.OPERAND(o.value,o.type))).concat(vQ.OPERATOR(a))}return e},wQ.DICT=function(t){return vQ.DICT(t).length},vQ.OPERATOR=function(t){return t<1200?[t]:[12,t-1200]},vQ.OPERAND=function(t,e){var n=[];if(Array.isArray(e))for(var i=0;i<e.length;i+=1)fQ.argument(t.length===e.length,"Not enough arguments given for type"+e),n=n.concat(vQ.OPERAND(t[i],e[i]));else if("SID"===e)n=n.concat(vQ.NUMBER(t));else if("offset"===e)n=n.concat(vQ.NUMBER32(t));else if("number"===e)n=n.concat(vQ.NUMBER(t));else{if("real"!==e)throw new Error("Unknown operand type "+e);n=n.concat(vQ.REAL(t))}return n},vQ.OP=vQ.BYTE,wQ.OP=wQ.BYTE;var EQ="function"==typeof WeakMap&&new WeakMap;function OQ(t,e,n){if(e.length&&("coverageFormat"!==e[0].name||1===e[0].value))for(var i=0;i<e.length;i+=1){var r=e[i];this[r.name]=r.value}if(this.tableName=t,this.fields=e,n)for(var a=Object.keys(n),o=0;o<a.length;o+=1){var s=a[o];void 0!==this[s]&&(this[s]=n[s])}}function AQ(t,e,n){void 0===n&&(n=e.length);var i=new Array(e.length+1);i[0]={name:t+"Count",type:"USHORT",value:n};for(var r=0;r<e.length;r++)i[r+1]={name:t+r,type:"USHORT",value:e[r]};return i}function TQ(t,e,n){var i=e.length,r=new Array(i+1);r[0]={name:t+"Count",type:"USHORT",value:i};for(var a=0;a<i;a++)r[a+1]={name:t+a,type:"TABLE",value:n(e[a],a)};return r}function IQ(t,e,n){var i=e.length,r=[];r[0]={name:t+"Count",type:"USHORT",value:i};for(var a=0;a<i;a++)r=r.concat(n(e[a],a));return r}function LQ(t){1===t.format?OQ.call(this,"coverageTable",[{name:"coverageFormat",type:"USHORT",value:1}].concat(AQ("glyph",t.glyphs))):2===t.format?OQ.call(this,"coverageTable",[{name:"coverageFormat",type:"USHORT",value:2}].concat(IQ("rangeRecord",t.ranges,(function(t){return[{name:"startGlyphID",type:"USHORT",value:t.start},{name:"endGlyphID",type:"USHORT",value:t.end},{name:"startCoverageIndex",type:"USHORT",value:t.index}]})))):fQ.assert(!1,"Coverage format must be 1 or 2.")}function zQ(t){OQ.call(this,"scriptListTable",IQ("scriptRecord",t,(function(t,e){var n=t.script,i=n.defaultLangSys;return fQ.assert(!!i,"Unable to write GSUB: script "+t.tag+" has no default language system."),[{name:"scriptTag"+e,type:"TAG",value:t.tag},{name:"script"+e,type:"TABLE",value:new OQ("scriptTable",[{name:"defaultLangSys",type:"TABLE",value:new OQ("defaultLangSys",[{name:"lookupOrder",type:"USHORT",value:0},{name:"reqFeatureIndex",type:"USHORT",value:i.reqFeatureIndex}].concat(AQ("featureIndex",i.featureIndexes)))}].concat(IQ("langSys",n.langSysRecords,(function(t,e){var n=t.langSys;return[{name:"langSysTag"+e,type:"TAG",value:t.tag},{name:"langSys"+e,type:"TABLE",value:new OQ("langSys",[{name:"lookupOrder",type:"USHORT",value:0},{name:"reqFeatureIndex",type:"USHORT",value:n.reqFeatureIndex}].concat(AQ("featureIndex",n.featureIndexes)))}]}))))}]})))}function RQ(t){OQ.call(this,"featureListTable",IQ("featureRecord",t,(function(t,e){var n=t.feature;return[{name:"featureTag"+e,type:"TAG",value:t.tag},{name:"feature"+e,type:"TABLE",value:new OQ("featureTable",[{name:"featureParams",type:"USHORT",value:n.featureParams}].concat(AQ("lookupListIndex",n.lookupListIndexes)))}]})))}function FQ(t,e){OQ.call(this,"lookupListTable",TQ("lookup",t,(function(t){var n=e[t.lookupType];return fQ.assert(!!n,"Unable to write GSUB lookup type "+t.lookupType+" tables."),new OQ("lookupTable",[{name:"lookupType",type:"USHORT",value:t.lookupType},{name:"lookupFlag",type:"USHORT",value:t.lookupFlag}].concat(TQ("subtable",t.subtables,n)))})))}vQ.CHARSTRING=function(t){if(EQ){var e=EQ.get(t);if(void 0!==e)return e}for(var n=[],i=t.length,r=0;r<i;r+=1){var a=t[r];n=n.concat(vQ[a.type](a.value))}return EQ&&EQ.set(t,n),n},wQ.CHARSTRING=function(t){return vQ.CHARSTRING(t).length},vQ.OBJECT=function(t){var e=vQ[t.type];return fQ.argument(void 0!==e,"No encoding function for type "+t.type),e(t.value)},wQ.OBJECT=function(t){var e=wQ[t.type];return fQ.argument(void 0!==e,"No sizeOf function for type "+t.type),e(t.value)},vQ.TABLE=function(t){for(var e=[],n=t.fields.length,i=[],r=[],a=0;a<n;a+=1){var o=t.fields[a],s=vQ[o.type];fQ.argument(void 0!==s,"No encoding function for field type "+o.type+" ("+o.name+")");var l=t[o.name];void 0===l&&(l=o.value);var c=s(l);"TABLE"===o.type?(r.push(e.length),e=e.concat([0,0]),i.push(c)):e=e.concat(c)}for(var h=0;h<i.length;h+=1){var d=r[h],u=e.length;fQ.argument(u<65536,"Table "+t.tableName+" too big."),e[d]=u>>8,e[d+1]=255&u,e=e.concat(i[h])}return e},wQ.TABLE=function(t){for(var e=0,n=t.fields.length,i=0;i<n;i+=1){var r=t.fields[i],a=wQ[r.type];fQ.argument(void 0!==a,"No sizeOf function for field type "+r.type+" ("+r.name+")");var o=t[r.name];void 0===o&&(o=r.value),e+=a(o),"TABLE"===r.type&&(e+=2)}return e},vQ.RECORD=vQ.TABLE,wQ.RECORD=wQ.TABLE,vQ.LITERAL=function(t){return t},wQ.LITERAL=function(t){return t.length},OQ.prototype.encode=function(){return vQ.TABLE(this)},OQ.prototype.sizeOf=function(){return wQ.TABLE(this)},(LQ.prototype=Object.create(OQ.prototype)).constructor=LQ,(zQ.prototype=Object.create(OQ.prototype)).constructor=zQ,(RQ.prototype=Object.create(OQ.prototype)).constructor=RQ,(FQ.prototype=Object.create(OQ.prototype)).constructor=FQ;var BQ={Table:OQ,Record:OQ,Coverage:LQ,ScriptList:zQ,FeatureList:RQ,LookupList:FQ,ushortList:AQ,tableList:TQ,recordList:IQ};function VQ(t,e){return t.getUint8(e)}function NQ(t,e){return t.getUint16(e,!1)}function HQ(t,e){return t.getUint32(e,!1)}function GQ(t,e){return t.getInt16(e,!1)+t.getUint16(e+2,!1)/65535}var ZQ={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function UQ(t,e){this.data=t,this.offset=e,this.relativeOffset=0}UQ.prototype.parseByte=function(){var t=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,t},UQ.prototype.parseChar=function(){var t=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,t},UQ.prototype.parseCard8=UQ.prototype.parseByte,UQ.prototype.parseCard16=UQ.prototype.parseUShort=function(){var t=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,t},UQ.prototype.parseSID=UQ.prototype.parseUShort,UQ.prototype.parseOffset16=UQ.prototype.parseUShort,UQ.prototype.parseShort=function(){var t=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,t},UQ.prototype.parseF2Dot14=function(){var t=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,t},UQ.prototype.parseOffset32=UQ.prototype.parseULong=function(){var t=HQ(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,t},UQ.prototype.parseFixed=function(){var t=GQ(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,t},UQ.prototype.parseString=function(t){var e=this.data,n=this.offset+this.relativeOffset,i="";this.relativeOffset+=t;for(var r=0;r<t;r++)i+=String.fromCharCode(e.getUint8(n+r));return i},UQ.prototype.parseTag=function(){return this.parseString(4)},UQ.prototype.parseLongDateTime=function(){var t=HQ(this.data,this.offset+this.relativeOffset+4);return t-=2082844800,this.relativeOffset+=8,t},UQ.prototype.parseVersion=function(t){var e=NQ(this.data,this.offset+this.relativeOffset),n=NQ(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,void 0===t&&(t=4096),e+n/t/10},UQ.prototype.skip=function(t,e){void 0===e&&(e=1),this.relativeOffset+=ZQ[t]*e},UQ.prototype.parseULongList=function(t){void 0===t&&(t=this.parseULong());for(var e=new Array(t),n=this.data,i=this.offset+this.relativeOffset,r=0;r<t;r++)e[r]=n.getUint32(i),i+=4;return this.relativeOffset+=4*t,e},UQ.prototype.parseOffset16List=UQ.prototype.parseUShortList=function(t){void 0===t&&(t=this.parseUShort());for(var e=new Array(t),n=this.data,i=this.offset+this.relativeOffset,r=0;r<t;r++)e[r]=n.getUint16(i),i+=2;return this.relativeOffset+=2*t,e},UQ.prototype.parseShortList=function(t){for(var e=new Array(t),n=this.data,i=this.offset+this.relativeOffset,r=0;r<t;r++)e[r]=n.getInt16(i),i+=2;return this.relativeOffset+=2*t,e},UQ.prototype.parseByteList=function(t){for(var e=new Array(t),n=this.data,i=this.offset+this.relativeOffset,r=0;r<t;r++)e[r]=n.getUint8(i++);return this.relativeOffset+=t,e},UQ.prototype.parseList=function(t,e){e||(e=t,t=this.parseUShort());for(var n=new Array(t),i=0;i<t;i++)n[i]=e.call(this);return n},UQ.prototype.parseList32=function(t,e){e||(e=t,t=this.parseULong());for(var n=new Array(t),i=0;i<t;i++)n[i]=e.call(this);return n},UQ.prototype.parseRecordList=function(t,e){e||(e=t,t=this.parseUShort());for(var n=new Array(t),i=Object.keys(e),r=0;r<t;r++){for(var a={},o=0;o<i.length;o++){var s=i[o];a[s]=e[s].call(this)}n[r]=a}return n},UQ.prototype.parseRecordList32=function(t,e){e||(e=t,t=this.parseULong());for(var n=new Array(t),i=Object.keys(e),r=0;r<t;r++){for(var a={},o=0;o<i.length;o++){var s=i[o];a[s]=e[s].call(this)}n[r]=a}return n},UQ.prototype.parseStruct=function(t){if("function"==typeof t)return t.call(this);for(var e=Object.keys(t),n={},i=0;i<e.length;i++){var r=e[i];n[r]=t[r].call(this)}return n},UQ.prototype.parseValueRecord=function(t){if(void 0===t&&(t=this.parseUShort()),0!==t){var e={};return 1&t&&(e.xPlacement=this.parseShort()),2&t&&(e.yPlacement=this.parseShort()),4&t&&(e.xAdvance=this.parseShort()),8&t&&(e.yAdvance=this.parseShort()),16&t&&(e.xPlaDevice=void 0,this.parseShort()),32&t&&(e.yPlaDevice=void 0,this.parseShort()),64&t&&(e.xAdvDevice=void 0,this.parseShort()),128&t&&(e.yAdvDevice=void 0,this.parseShort()),e}},UQ.prototype.parseValueRecordList=function(){for(var t=this.parseUShort(),e=this.parseUShort(),n=new Array(e),i=0;i<e;i++)n[i]=this.parseValueRecord(t);return n},UQ.prototype.parsePointer=function(t){var e=this.parseOffset16();if(e>0)return new UQ(this.data,this.offset+e).parseStruct(t)},UQ.prototype.parsePointer32=function(t){var e=this.parseOffset32();if(e>0)return new UQ(this.data,this.offset+e).parseStruct(t)},UQ.prototype.parseListOfLists=function(t){for(var e=this.parseOffset16List(),n=e.length,i=this.relativeOffset,r=new Array(n),a=0;a<n;a++){var o=e[a];if(0!==o)if(this.relativeOffset=o,t){for(var s=this.parseOffset16List(),l=new Array(s.length),c=0;c<s.length;c++)this.relativeOffset=o+s[c],l[c]=t.call(this);r[a]=l}else r[a]=this.parseUShortList();else r[a]=void 0}return this.relativeOffset=i,r},UQ.prototype.parseCoverage=function(){var t=this.offset+this.relativeOffset,e=this.parseUShort(),n=this.parseUShort();if(1===e)return{format:1,glyphs:this.parseUShortList(n)};if(2===e){for(var i=new Array(n),r=0;r<n;r++)i[r]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:i}}throw new Error("0x"+t.toString(16)+": Coverage format must be 1 or 2.")},UQ.prototype.parseClassDef=function(){var t=this.offset+this.relativeOffset,e=this.parseUShort();if(1===e)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(2===e)return{format:2,ranges:this.parseRecordList({start:UQ.uShort,end:UQ.uShort,classId:UQ.uShort})};throw new Error("0x"+t.toString(16)+": ClassDef format must be 1 or 2.")},UQ.list=function(t,e){return function(){return this.parseList(t,e)}},UQ.list32=function(t,e){return function(){return this.parseList32(t,e)}},UQ.recordList=function(t,e){return function(){return this.parseRecordList(t,e)}},UQ.recordList32=function(t,e){return function(){return this.parseRecordList32(t,e)}},UQ.pointer=function(t){return function(){return this.parsePointer(t)}},UQ.pointer32=function(t){return function(){return this.parsePointer32(t)}},UQ.tag=UQ.prototype.parseTag,UQ.byte=UQ.prototype.parseByte,UQ.uShort=UQ.offset16=UQ.prototype.parseUShort,UQ.uShortList=UQ.prototype.parseUShortList,UQ.uLong=UQ.offset32=UQ.prototype.parseULong,UQ.uLongList=UQ.prototype.parseULongList,UQ.struct=UQ.prototype.parseStruct,UQ.coverage=UQ.prototype.parseCoverage,UQ.classDef=UQ.prototype.parseClassDef;var WQ={reserved:UQ.uShort,reqFeatureIndex:UQ.uShort,featureIndexes:UQ.uShortList};UQ.prototype.parseScriptList=function(){return this.parsePointer(UQ.recordList({tag:UQ.tag,script:UQ.pointer({defaultLangSys:UQ.pointer(WQ),langSysRecords:UQ.recordList({tag:UQ.tag,langSys:UQ.pointer(WQ)})})}))||[]},UQ.prototype.parseFeatureList=function(){return this.parsePointer(UQ.recordList({tag:UQ.tag,feature:UQ.pointer({featureParams:UQ.offset16,lookupListIndexes:UQ.uShortList})}))||[]},UQ.prototype.parseLookupList=function(t){return this.parsePointer(UQ.list(UQ.pointer((function(){var e=this.parseUShort();fQ.argument(1<=e&&e<=9,"GPOS/GSUB lookup type "+e+" unknown.");var n=this.parseUShort(),i=16&n;return{lookupType:e,lookupFlag:n,subtables:this.parseList(UQ.pointer(t[e])),markFilteringSet:i?this.parseUShort():void 0}}))))||[]},UQ.prototype.parseFeatureVariationsList=function(){return this.parsePointer32((function(){var t=this.parseUShort(),e=this.parseUShort();return fQ.argument(1===t&&e<1,"GPOS/GSUB feature variations table unknown."),this.parseRecordList32({conditionSetOffset:UQ.offset32,featureTableSubstitutionOffset:UQ.offset32})}))||[]};var YQ={getByte:VQ,getCard8:VQ,getUShort:NQ,getCard16:NQ,getShort:function(t,e){return t.getInt16(e,!1)},getULong:HQ,getFixed:GQ,getTag:function(t,e){for(var n="",i=e;i<e+4;i+=1)n+=String.fromCharCode(t.getInt8(i));return n},getOffset:function(t,e,n){for(var i=0,r=0;r<n;r+=1)i<<=8,i+=t.getUint8(e+r);return i},getBytes:function(t,e,n){for(var i=[],r=e;r<n;r+=1)i.push(t.getUint8(r));return i},bytesToString:function(t){for(var e="",n=0;n<t.length;n+=1)e+=String.fromCharCode(t[n]);return e},Parser:UQ};var jQ=function(t,e){var n={};n.version=YQ.getUShort(t,e),fQ.argument(0===n.version,"cmap table version should be 0."),n.numTables=YQ.getUShort(t,e+2);for(var i=-1,r=n.numTables-1;r>=0;r-=1){var a=YQ.getUShort(t,e+4+8*r),o=YQ.getUShort(t,e+4+8*r+2);if(3===a&&(0===o||1===o||10===o)||0===a&&(0===o||1===o||2===o||3===o||4===o)){i=YQ.getULong(t,e+4+8*r+4);break}}if(-1===i)throw new Error("No valid cmap sub-tables found.");var s=new YQ.Parser(t,e+i);if(n.format=s.parseUShort(),12===n.format)!function(t,e){var n;e.parseUShort(),t.length=e.parseULong(),t.language=e.parseULong(),t.groupCount=n=e.parseULong(),t.glyphIndexMap={};for(var i=0;i<n;i+=1)for(var r=e.parseULong(),a=e.parseULong(),o=e.parseULong(),s=r;s<=a;s+=1)t.glyphIndexMap[s]=o,o++}(n,s);else{if(4!==n.format)throw new Error("Only format 4 and 12 cmap tables are supported (found format "+n.format+").");!function(t,e,n,i,r){var a;t.length=e.parseUShort(),t.language=e.parseUShort(),t.segCount=a=e.parseUShort()>>1,e.skip("uShort",3),t.glyphIndexMap={};for(var o=new YQ.Parser(n,i+r+14),s=new YQ.Parser(n,i+r+16+2*a),l=new YQ.Parser(n,i+r+16+4*a),c=new YQ.Parser(n,i+r+16+6*a),h=i+r+16+8*a,d=0;d<a-1;d+=1)for(var u=void 0,m=o.parseUShort(),p=s.parseUShort(),g=l.parseShort(),f=c.parseUShort(),b=p;b<=m;b+=1)0!==f?(h=c.offset+c.relativeOffset-2,h+=f,0!==(u=YQ.getUShort(n,h+=2*(b-p)))&&(u=u+g&65535)):u=b+g&65535,t.glyphIndexMap[b]=u}(n,s,t,e,i)}return n},XQ=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","266 ff","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"],qQ=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls"],$Q=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"],KQ=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"];function JQ(t){this.font=t}function QQ(t){this.cmap=t}function t1(t,e){this.encoding=t,this.charset=e}function e1(t){switch(t.version){case 1:this.names=KQ.slice();break;case 2:this.names=new Array(t.numberOfGlyphs);for(var e=0;e<t.numberOfGlyphs;e++)this.names[e]=t.glyphNameIndex[e]<KQ.length?KQ[t.glyphNameIndex[e]]:t.names[t.glyphNameIndex[e]-KQ.length];break;case 2.5:this.names=new Array(t.numberOfGlyphs);for(var n=0;n<t.numberOfGlyphs;n++)this.names[n]=KQ[n+t.glyphNameIndex[n]];break;default:this.names=[]}}JQ.prototype.charToGlyphIndex=function(t){var e=t.codePointAt(0),n=this.font.glyphs;if(n)for(var i=0;i<n.length;i+=1)for(var r=n.get(i),a=0;a<r.unicodes.length;a+=1)if(r.unicodes[a]===e)return i;return null},QQ.prototype.charToGlyphIndex=function(t){return this.cmap.glyphIndexMap[t.codePointAt(0)]||this.cmap.glyphIndexMap[61440+t.codePointAt(0)]||0},t1.prototype.charToGlyphIndex=function(t){var e=t.codePointAt(0);return this.charset.indexOf(this.encoding[e])},e1.prototype.nameToGlyphIndex=function(t){return this.names.indexOf(t)},e1.prototype.glyphIndexToName=function(t){return this.names[t]};var n1=function(t,e,n,i,r){t.beginPath(),t.moveTo(e,n),t.lineTo(i,r),t.stroke()};function i1(t){this.bindConstructorValues(t)}function r1(t,e,n){Object.defineProperty(t,e,{get:function(){return t[n]},set:function(e){t[n]=e},enumerable:!0,configurable:!0})}function a1(t,e){if(this.font=t,this.glyphs={},Array.isArray(e))for(var n=0;n<e.length;n++){var i=e[n];i.path.unitsPerEm=t.unitsPerEm,this.glyphs[n]=i}this.length=e&&e.length||0}i1.prototype.bindConstructorValues=function(t){var e;this.index=t.index||0,this.name=t.name||null,this.unicode=t.unicode||void 0,this.unicodes=t.unicodes||void 0!==t.unicode?[t.unicode]:[],"xMin"in t&&(this.xMin=t.xMin),"yMin"in t&&(this.yMin=t.yMin),"xMax"in t&&(this.xMax=t.xMax),"yMax"in t&&(this.yMax=t.yMax),"advanceWidth"in t&&(this.advanceWidth=t.advanceWidth),Object.defineProperty(this,"path",(e=t.path||new mQ,{configurable:!0,get:function(){return"function"==typeof e&&(e=e()),e},set:function(t){e=t}}))},i1.prototype.addUnicode=function(t){0===this.unicodes.length&&(this.unicode=t),this.unicodes.push(t)},i1.prototype.getBoundingBox=function(){return this.path.getBoundingBox()},i1.prototype.getPath=function(t,e,n,i,r){var a,o;t=void 0!==t?t:0,e=void 0!==e?e:0,n=void 0!==n?n:72,i||(i={});var s=i.xScale,l=i.yScale;if(i.hinting&&r&&r.hinting&&(o=this.path&&r.hinting.exec(this,n)),o)a=r.hinting.getCommands(o),t=Math.round(t),e=Math.round(e),s=l=1;else{a=this.path.commands;var c=1/(this.path.unitsPerEm||1e3)*n;void 0===s&&(s=c),void 0===l&&(l=c)}for(var h=new mQ,d=0;d<a.length;d+=1){var u=a[d];"M"===u.type?h.moveTo(t+u.x*s,e+-u.y*l):"L"===u.type?h.lineTo(t+u.x*s,e+-u.y*l):"Q"===u.type?h.quadraticCurveTo(t+u.x1*s,e+-u.y1*l,t+u.x*s,e+-u.y*l):"C"===u.type?h.curveTo(t+u.x1*s,e+-u.y1*l,t+u.x2*s,e+-u.y2*l,t+u.x*s,e+-u.y*l):"Z"===u.type&&h.closePath()}return h},i1.prototype.getContours=function(){if(void 0===this.points)return[];for(var t=[],e=[],n=0;n<this.points.length;n+=1){var i=this.points[n];e.push(i),i.lastPointOfContour&&(t.push(e),e=[])}return fQ.argument(0===e.length,"There are still points left in the current contour."),t},i1.prototype.getMetrics=function(){for(var t=this.path.commands,e=[],n=[],i=0;i<t.length;i+=1){var r=t[i];"Z"!==r.type&&(e.push(r.x),n.push(r.y)),("Q"===r.type||"C"===r.type)&&(e.push(r.x1),n.push(r.y1)),"C"===r.type&&(e.push(r.x2),n.push(r.y2))}var a={xMin:Math.min.apply(null,e),yMin:Math.min.apply(null,n),xMax:Math.max.apply(null,e),yMax:Math.max.apply(null,n),leftSideBearing:this.leftSideBearing};return isFinite(a.xMin)||(a.xMin=0),isFinite(a.xMax)||(a.xMax=this.advanceWidth),isFinite(a.yMin)||(a.yMin=0),isFinite(a.yMax)||(a.yMax=0),a.rightSideBearing=this.advanceWidth-a.leftSideBearing-(a.xMax-a.xMin),a},i1.prototype.draw=function(t,e,n,i,r){this.getPath(e,n,i,r).draw(t)},i1.prototype.drawPoints=function(t,e,n,i){function r(e,n,i,r){t.beginPath();for(var a=0;a<e.length;a+=1)t.moveTo(n+e[a].x*r,i+e[a].y*r),t.arc(n+e[a].x*r,i+e[a].y*r,2,0,2*Math.PI,!1);t.closePath(),t.fill()}e=void 0!==e?e:0,n=void 0!==n?n:0;for(var a=1/this.path.unitsPerEm*(i=void 0!==i?i:24),o=[],s=[],l=this.path,c=0;c<l.commands.length;c+=1){var h=l.commands[c];void 0!==h.x&&o.push({x:h.x,y:-h.y}),void 0!==h.x1&&s.push({x:h.x1,y:-h.y1}),void 0!==h.x2&&s.push({x:h.x2,y:-h.y2})}t.fillStyle="blue",r(o,e,n,a),t.fillStyle="red",r(s,e,n,a)},i1.prototype.drawMetrics=function(t,e,n,i){var r;e=void 0!==e?e:0,n=void 0!==n?n:0,r=1/this.path.unitsPerEm*(i=void 0!==i?i:24),t.lineWidth=1,t.strokeStyle="black",n1(t,e,-1e4,e,1e4),n1(t,-1e4,n,1e4,n);var a=this.xMin||0,o=this.yMin||0,s=this.xMax||0,l=this.yMax||0,c=this.advanceWidth||0;t.strokeStyle="blue",n1(t,e+a*r,-1e4,e+a*r,1e4),n1(t,e+s*r,-1e4,e+s*r,1e4),n1(t,-1e4,n+-o*r,1e4,n+-o*r),n1(t,-1e4,n+-l*r,1e4,n+-l*r),t.strokeStyle="green",n1(t,e+c*r,-1e4,e+c*r,1e4)},a1.prototype.get=function(t){if(void 0===this.glyphs[t]){this.font._push(t),"function"==typeof this.glyphs[t]&&(this.glyphs[t]=this.glyphs[t]());var e=this.glyphs[t],n=this.font._IndexToUnicodeMap[t];if(n)for(var i=0;i<n.unicodes.length;i++)e.addUnicode(n.unicodes[i]);this.font.cffEncoding?e.name=this.font.isCIDFont?"gid"+t:this.font.cffEncoding.charset[t]:this.font.glyphNames.names&&(e.name=this.font.glyphNames.glyphIndexToName(t)),this.glyphs[t].advanceWidth=this.font._hmtxTableData[t].advanceWidth,this.glyphs[t].leftSideBearing=this.font._hmtxTableData[t].leftSideBearing}else"function"==typeof this.glyphs[t]&&(this.glyphs[t]=this.glyphs[t]());return this.glyphs[t]},a1.prototype.push=function(t,e){this.glyphs[t]=e,this.length++};var o1={GlyphSet:a1,glyphLoader:function(t,e){return new i1({index:e,font:t})},ttfGlyphLoader:function(t,e,n,i,r,a){return function(){var o=new i1({index:e,font:t});return o.path=function(){n(o,i,r);var e=a(t.glyphs,o);return e.unitsPerEm=t.unitsPerEm,e},r1(o,"xMin","_xMin"),r1(o,"xMax","_xMax"),r1(o,"yMin","_yMin"),r1(o,"yMax","_yMax"),o}},cffGlyphLoader:function(t,e,n,i){return function(){var r=new i1({index:e,font:t});return r.path=function(){var e=n(t,r,i);return e.unitsPerEm=t.unitsPerEm,e},r}}};function s1(t,e){if(t===e)return!0;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n+=1)if(!s1(t[n],e[n]))return!1;return!0}return!1}function l1(t){return t.length<1240?107:t.length<33900?1131:32768}function c1(t,e,n){var i,r,a=[],o=[],s=YQ.getCard16(t,e);if(0!==s){var l=YQ.getByte(t,e+2);i=e+(s+1)*l+2;for(var c=e+3,h=0;h<s+1;h+=1)a.push(YQ.getOffset(t,c,l)),c+=l;r=i+a[s]}else r=e+2;for(var d=0;d<a.length-1;d+=1){var u=YQ.getBytes(t,i+a[d],i+a[d+1]);n&&(u=n(u)),o.push(u)}return{objects:o,startOffset:e,endOffset:r}}function h1(t,e){if(28===e)return t.parseByte()<<8|t.parseByte();if(29===e)return t.parseByte()<<24|t.parseByte()<<16|t.parseByte()<<8|t.parseByte();if(30===e)return function(t){for(var e="",n=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"];;){var i=t.parseByte(),r=i>>4,a=15&i;if(15===r||(e+=n[r],15===a))break;e+=n[a]}return parseFloat(e)}(t);if(e>=32&&e<=246)return e-139;if(e>=247&&e<=250)return 256*(e-247)+t.parseByte()+108;if(e>=251&&e<=254)return 256*-(e-251)-t.parseByte()-108;throw new Error("Invalid b0 "+e)}function d1(t,e,n){var i=new YQ.Parser(t,e=void 0!==e?e:0),r=[],a=[];for(n=void 0!==n?n:t.length;i.relativeOffset<n;){var o=i.parseByte();o<=21?(12===o&&(o=1200+i.parseByte()),r.push([o,a]),a=[]):a.push(h1(i,o))}return function(t){for(var e={},n=0;n<t.length;n+=1){var i,r=t[n][0],a=t[n][1];if(i=1===a.length?a[0]:a,e.hasOwnProperty(r)&&!isNaN(e[r]))throw new Error("Object "+e+" already has key "+r);e[r]=i}return e}(r)}function u1(t,e){return e<=390?XQ[e]:t[e-391]}function m1(t,e,n){for(var i,r={},a=0;a<e.length;a+=1){var o=e[a];if(Array.isArray(o.type)){var s=[];s.length=o.type.length;for(var l=0;l<o.type.length;l++)void 0===(i=void 0!==t[o.op]?t[o.op][l]:void 0)&&(i=void 0!==o.value&&void 0!==o.value[l]?o.value[l]:null),"SID"===o.type[l]&&(i=u1(n,i)),s[l]=i;r[o.name]=s}else void 0===(i=t[o.op])&&(i=void 0!==o.value?o.value:null),"SID"===o.type&&(i=u1(n,i)),r[o.name]=i}return r}var p1=[{name:"version",op:0,type:"SID"},{name:"notice",op:1,type:"SID"},{name:"copyright",op:1200,type:"SID"},{name:"fullName",op:2,type:"SID"},{name:"familyName",op:3,type:"SID"},{name:"weight",op:4,type:"SID"},{name:"isFixedPitch",op:1201,type:"number",value:0},{name:"italicAngle",op:1202,type:"number",value:0},{name:"underlinePosition",op:1203,type:"number",value:-100},{name:"underlineThickness",op:1204,type:"number",value:50},{name:"paintType",op:1205,type:"number",value:0},{name:"charstringType",op:1206,type:"number",value:2},{name:"fontMatrix",op:1207,type:["real","real","real","real","real","real"],value:[.001,0,0,.001,0,0]},{name:"uniqueId",op:13,type:"number"},{name:"fontBBox",op:5,type:["number","number","number","number"],value:[0,0,0,0]},{name:"strokeWidth",op:1208,type:"number",value:0},{name:"xuid",op:14,type:[],value:null},{name:"charset",op:15,type:"offset",value:0},{name:"encoding",op:16,type:"offset",value:0},{name:"charStrings",op:17,type:"offset",value:0},{name:"private",op:18,type:["number","offset"],value:[0,0]},{name:"ros",op:1230,type:["SID","SID","number"]},{name:"cidFontVersion",op:1231,type:"number",value:0},{name:"cidFontRevision",op:1232,type:"number",value:0},{name:"cidFontType",op:1233,type:"number",value:0},{name:"cidCount",op:1234,type:"number",value:8720},{name:"uidBase",op:1235,type:"number"},{name:"fdArray",op:1236,type:"offset"},{name:"fdSelect",op:1237,type:"offset"},{name:"fontName",op:1238,type:"SID"}],g1=[{name:"subrs",op:19,type:"offset",value:0},{name:"defaultWidthX",op:20,type:"number",value:0},{name:"nominalWidthX",op:21,type:"number",value:0}];function f1(t,e,n,i){return m1(d1(t,e,n),g1,i)}function b1(t,e,n,i){for(var r=[],a=0;a<n.length;a+=1){var o=(d=new DataView(new Uint8Array(n[a]).buffer),u=i,m1(d1(d,0,d.byteLength),p1,u));o._subrs=[],o._subrsBias=0,o._defaultWidthX=0,o._nominalWidthX=0;var s=o.private[0],l=o.private[1];if(0!==s&&0!==l){var c=f1(t,l+e,s,i);if(o._defaultWidthX=c.defaultWidthX,o._nominalWidthX=c.nominalWidthX,0!==c.subrs){var h=c1(t,l+c.subrs+e);o._subrs=h.objects,o._subrsBias=l1(o._subrs)}o._privateDict=c}r.push(o)}var d,u;return r}function y1(t,e,n){var i,a,o,s,l,c,h,d,u=new mQ,m=[],p=0,g=!1,f=!1,b=0,y=0;if(t.isCIDFont){var v=t.tables.cff.topDict._fdArray[t.tables.cff.topDict._fdSelect[e.index]];l=v._subrs,c=v._subrsBias,h=v._defaultWidthX,d=v._nominalWidthX}else l=t.tables.cff.topDict._subrs,c=t.tables.cff.topDict._subrsBias,h=t.tables.cff.topDict._defaultWidthX,d=t.tables.cff.topDict._nominalWidthX;var w=h;function x(t,e){f&&u.closePath(),u.moveTo(t,e),f=!0}function C(){m.length%2!=0&&!g&&(w=m.shift()+d),p+=m.length>>1,m.length=0,g=!0}return function n(h){for(var v,k,S,P,_,M,D,E,O,A,T,I,L=0;L<h.length;){var z=h[L];switch(L+=1,z){case 1:case 3:case 18:case 23:C();break;case 4:m.length>1&&!g&&(w=m.shift()+d,g=!0),y+=m.pop(),x(b,y);break;case 5:for(;m.length>0;)b+=m.shift(),y+=m.shift(),u.lineTo(b,y);break;case 6:for(;m.length>0&&(b+=m.shift(),u.lineTo(b,y),0!==m.length);)y+=m.shift(),u.lineTo(b,y);break;case 7:for(;m.length>0&&(y+=m.shift(),u.lineTo(b,y),0!==m.length);)b+=m.shift(),u.lineTo(b,y);break;case 8:for(;m.length>0;)i=b+m.shift(),a=y+m.shift(),o=i+m.shift(),s=a+m.shift(),b=o+m.shift(),y=s+m.shift(),u.curveTo(i,a,o,s,b,y);break;case 10:_=m.pop()+c,(M=l[_])&&n(M);break;case 11:return;case 12:switch(z=h[L],L+=1,z){case 35:i=b+m.shift(),a=y+m.shift(),o=i+m.shift(),s=a+m.shift(),D=o+m.shift(),E=s+m.shift(),O=D+m.shift(),A=E+m.shift(),T=O+m.shift(),I=A+m.shift(),b=T+m.shift(),y=I+m.shift(),m.shift(),u.curveTo(i,a,o,s,D,E),u.curveTo(O,A,T,I,b,y);break;case 34:i=b+m.shift(),a=y,o=i+m.shift(),s=a+m.shift(),D=o+m.shift(),E=s,O=D+m.shift(),A=s,T=O+m.shift(),I=y,b=T+m.shift(),u.curveTo(i,a,o,s,D,E),u.curveTo(O,A,T,I,b,y);break;case 36:i=b+m.shift(),a=y+m.shift(),o=i+m.shift(),s=a+m.shift(),D=o+m.shift(),E=s,O=D+m.shift(),A=s,T=O+m.shift(),I=A+m.shift(),b=T+m.shift(),u.curveTo(i,a,o,s,D,E),u.curveTo(O,A,T,I,b,y);break;case 37:i=b+m.shift(),a=y+m.shift(),o=i+m.shift(),s=a+m.shift(),D=o+m.shift(),E=s+m.shift(),O=D+m.shift(),A=E+m.shift(),T=O+m.shift(),I=A+m.shift(),Math.abs(T-b)>Math.abs(I-y)?b=T+m.shift():y=I+m.shift(),u.curveTo(i,a,o,s,D,E),u.curveTo(O,A,T,I,b,y);break;default:r.log("Glyph "+e.index+": unknown operator 1200"+z),m.length=0}break;case 14:m.length>0&&!g&&(w=m.shift()+d,g=!0),f&&(u.closePath(),f=!1);break;case 19:case 20:C(),L+=p+7>>3;break;case 21:m.length>2&&!g&&(w=m.shift()+d,g=!0),y+=m.pop(),x(b+=m.pop(),y);break;case 22:m.length>1&&!g&&(w=m.shift()+d,g=!0),x(b+=m.pop(),y);break;case 24:for(;m.length>2;)i=b+m.shift(),a=y+m.shift(),o=i+m.shift(),s=a+m.shift(),b=o+m.shift(),y=s+m.shift(),u.curveTo(i,a,o,s,b,y);b+=m.shift(),y+=m.shift(),u.lineTo(b,y);break;case 25:for(;m.length>6;)b+=m.shift(),y+=m.shift(),u.lineTo(b,y);i=b+m.shift(),a=y+m.shift(),o=i+m.shift(),s=a+m.shift(),b=o+m.shift(),y=s+m.shift(),u.curveTo(i,a,o,s,b,y);break;case 26:for(m.length%2&&(b+=m.shift());m.length>0;)i=b,a=y+m.shift(),o=i+m.shift(),s=a+m.shift(),b=o,y=s+m.shift(),u.curveTo(i,a,o,s,b,y);break;case 27:for(m.length%2&&(y+=m.shift());m.length>0;)i=b+m.shift(),a=y,o=i+m.shift(),s=a+m.shift(),b=o+m.shift(),u.curveTo(i,a,o,s,b,y=s);break;case 28:m.push(((v=h[L])<<24|(k=h[L+1])<<16)>>16),L+=2;break;case 29:_=m.pop()+t.gsubrsBias,(M=t.gsubrs[_])&&n(M);break;case 30:for(;m.length>0&&(i=b,a=y+m.shift(),o=i+m.shift(),s=a+m.shift(),b=o+m.shift(),y=s+(1===m.length?m.shift():0),u.curveTo(i,a,o,s,b,y),0!==m.length);)i=b+m.shift(),a=y,o=i+m.shift(),s=a+m.shift(),y=s+m.shift(),b=o+(1===m.length?m.shift():0),u.curveTo(i,a,o,s,b,y);break;case 31:for(;m.length>0&&(i=b+m.shift(),a=y,o=i+m.shift(),s=a+m.shift(),y=s+m.shift(),b=o+(1===m.length?m.shift():0),u.curveTo(i,a,o,s,b,y),0!==m.length);)i=b,a=y+m.shift(),o=i+m.shift(),s=a+m.shift(),b=o+m.shift(),y=s+(1===m.length?m.shift():0),u.curveTo(i,a,o,s,b,y);break;default:z<32?r.log("Glyph "+e.index+": unknown operator "+z):z<247?m.push(z-139):z<251?(v=h[L],L+=1,m.push(256*(z-247)+v+108)):z<255?(v=h[L],L+=1,m.push(256*-(z-251)-v-108)):(v=h[L],k=h[L+1],S=h[L+2],P=h[L+3],L+=4,m.push((v<<24|k<<16|S<<8|P)/65536))}}}(n),e.advanceWidth=w,u}function v1(t,e){var n,i=XQ.indexOf(t);return i>=0&&(n=i),(i=e.indexOf(t))>=0?n=i+XQ.length:(n=XQ.length+e.length,e.push(t)),n}function w1(t,e,n){for(var i={},r=0;r<t.length;r+=1){var a=t[r],o=e[a.name];void 0!==o&&!s1(o,a.value)&&("SID"===a.type&&(o=v1(o,n)),i[a.op]={name:a.name,type:a.type,value:o})}return i}function x1(t,e){var n=new BQ.Record("Top DICT",[{name:"dict",type:"DICT",value:{}}]);return n.dict=w1(p1,t,e),n}function C1(t){var e=new BQ.Record("Top DICT INDEX",[{name:"topDicts",type:"INDEX",value:[]}]);return e.topDicts=[{name:"topDict_0",type:"TABLE",value:t}],e}function k1(t){var e=[],n=t.path;e.push({name:"width",type:"NUMBER",value:t.advanceWidth});for(var i=0,r=0,a=0;a<n.commands.length;a+=1){var o=void 0,s=void 0,l=n.commands[a];if("Q"===l.type){var c=1/3,h=2/3;l={type:"C",x:l.x,y:l.y,x1:Math.round(c*i+h*l.x1),y1:Math.round(c*r+h*l.y1),x2:Math.round(c*l.x+h*l.x1),y2:Math.round(c*l.y+h*l.y1)}}if("M"===l.type)o=Math.round(l.x-i),s=Math.round(l.y-r),e.push({name:"dx",type:"NUMBER",value:o}),e.push({name:"dy",type:"NUMBER",value:s}),e.push({name:"rmoveto",type:"OP",value:21}),i=Math.round(l.x),r=Math.round(l.y);else if("L"===l.type)o=Math.round(l.x-i),s=Math.round(l.y-r),e.push({name:"dx",type:"NUMBER",value:o}),e.push({name:"dy",type:"NUMBER",value:s}),e.push({name:"rlineto",type:"OP",value:5}),i=Math.round(l.x),r=Math.round(l.y);else if("C"===l.type){var d=Math.round(l.x1-i),u=Math.round(l.y1-r),m=Math.round(l.x2-l.x1),p=Math.round(l.y2-l.y1);o=Math.round(l.x-l.x2),s=Math.round(l.y-l.y2),e.push({name:"dx1",type:"NUMBER",value:d}),e.push({name:"dy1",type:"NUMBER",value:u}),e.push({name:"dx2",type:"NUMBER",value:m}),e.push({name:"dy2",type:"NUMBER",value:p}),e.push({name:"dx",type:"NUMBER",value:o}),e.push({name:"dy",type:"NUMBER",value:s}),e.push({name:"rrcurveto",type:"OP",value:8}),i=Math.round(l.x),r=Math.round(l.y)}}return e.push({name:"endchar",type:"OP",value:14}),e}var S1=function(t,e){var n=new YQ.Parser(t,e),i=n.parseULong();fQ.argument(1===i,"Unsupported ltag table version."),n.skip("uLong",1);for(var r=n.parseULong(),a=[],o=0;o<r;o++){for(var s="",l=e+n.parseUShort(),c=n.parseUShort(),h=l;h<l+c;++h)s+=String.fromCharCode(t.getInt8(h));a.push(s)}return a},P1=["copyright","fontFamily","fontSubfamily","uniqueID","fullName","version","postScriptName","trademark","manufacturer","designer","description","manufacturerURL","designerURL","license","licenseURL","reserved","preferredFamily","preferredSubfamily","compatibleFullName","sampleText","postScriptFindFontName","wwsFamily","wwsSubfamily"],_1={0:"en",1:"fr",2:"de",3:"it",4:"nl",5:"sv",6:"es",7:"da",8:"pt",9:"no",10:"he",11:"ja",12:"ar",13:"fi",14:"el",15:"is",16:"mt",17:"tr",18:"hr",19:"zh-Hant",20:"ur",21:"hi",22:"th",23:"ko",24:"lt",25:"pl",26:"hu",27:"es",28:"lv",29:"se",30:"fo",31:"fa",32:"ru",33:"zh",34:"nl-BE",35:"ga",36:"sq",37:"ro",38:"cz",39:"sk",40:"si",41:"yi",42:"sr",43:"mk",44:"bg",45:"uk",46:"be",47:"uz",48:"kk",49:"az-Cyrl",50:"az-Arab",51:"hy",52:"ka",53:"mo",54:"ky",55:"tg",56:"tk",57:"mn-CN",58:"mn",59:"ps",60:"ks",61:"ku",62:"sd",63:"bo",64:"ne",65:"sa",66:"mr",67:"bn",68:"as",69:"gu",70:"pa",71:"or",72:"ml",73:"kn",74:"ta",75:"te",76:"si",77:"my",78:"km",79:"lo",80:"vi",81:"id",82:"tl",83:"ms",84:"ms-Arab",85:"am",86:"ti",87:"om",88:"so",89:"sw",90:"rw",91:"rn",92:"ny",93:"mg",94:"eo",128:"cy",129:"eu",130:"ca",131:"la",132:"qu",133:"gn",134:"ay",135:"tt",136:"ug",137:"dz",138:"jv",139:"su",140:"gl",141:"af",142:"br",143:"iu",144:"gd",145:"gv",146:"ga",147:"to",148:"el-polyton",149:"kl",150:"az",151:"nn"},M1={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:5,11:1,12:4,13:0,14:6,15:0,16:0,17:0,18:0,19:2,20:4,21:9,22:21,23:3,24:29,25:29,26:29,27:29,28:29,29:0,30:0,31:4,32:7,33:25,34:0,35:0,36:0,37:0,38:29,39:29,40:0,41:5,42:7,43:7,44:7,45:7,46:7,47:7,48:7,49:7,50:4,51:24,52:23,53:7,54:7,55:7,56:7,57:27,58:7,59:4,60:4,61:4,62:4,63:26,64:9,65:9,66:9,67:13,68:13,69:11,70:10,71:12,72:17,73:16,74:14,75:15,76:18,77:19,78:20,79:22,80:30,81:0,82:0,83:0,84:4,85:28,86:28,87:28,88:0,89:0,90:0,91:0,92:0,93:0,94:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:7,136:4,137:26,138:0,139:0,140:0,141:0,142:0,143:28,144:0,145:0,146:0,147:0,148:6,149:0,150:0,151:0},D1={1078:"af",1052:"sq",1156:"gsw",1118:"am",5121:"ar-DZ",15361:"ar-BH",3073:"ar",2049:"ar-IQ",11265:"ar-JO",13313:"ar-KW",12289:"ar-LB",4097:"ar-LY",6145:"ary",8193:"ar-OM",16385:"ar-QA",1025:"ar-SA",10241:"ar-SY",7169:"aeb",14337:"ar-AE",9217:"ar-YE",1067:"hy",1101:"as",2092:"az-Cyrl",1068:"az",1133:"ba",1069:"eu",1059:"be",2117:"bn",1093:"bn-IN",8218:"bs-Cyrl",5146:"bs",1150:"br",1026:"bg",1027:"ca",3076:"zh-HK",5124:"zh-MO",2052:"zh",4100:"zh-SG",1028:"zh-TW",1155:"co",1050:"hr",4122:"hr-BA",1029:"cs",1030:"da",1164:"prs",1125:"dv",2067:"nl-BE",1043:"nl",3081:"en-AU",10249:"en-BZ",4105:"en-CA",9225:"en-029",16393:"en-IN",6153:"en-IE",8201:"en-JM",17417:"en-MY",5129:"en-NZ",13321:"en-PH",18441:"en-SG",7177:"en-ZA",11273:"en-TT",2057:"en-GB",1033:"en",12297:"en-ZW",1061:"et",1080:"fo",1124:"fil",1035:"fi",2060:"fr-BE",3084:"fr-CA",1036:"fr",5132:"fr-LU",6156:"fr-MC",4108:"fr-CH",1122:"fy",1110:"gl",1079:"ka",3079:"de-AT",1031:"de",5127:"de-LI",4103:"de-LU",2055:"de-CH",1032:"el",1135:"kl",1095:"gu",1128:"ha",1037:"he",1081:"hi",1038:"hu",1039:"is",1136:"ig",1057:"id",1117:"iu",2141:"iu-Latn",2108:"ga",1076:"xh",1077:"zu",1040:"it",2064:"it-CH",1041:"ja",1099:"kn",1087:"kk",1107:"km",1158:"quc",1159:"rw",1089:"sw",1111:"kok",1042:"ko",1088:"ky",1108:"lo",1062:"lv",1063:"lt",2094:"dsb",1134:"lb",1071:"mk",2110:"ms-BN",1086:"ms",1100:"ml",1082:"mt",1153:"mi",1146:"arn",1102:"mr",1148:"moh",1104:"mn",2128:"mn-CN",1121:"ne",1044:"nb",2068:"nn",1154:"oc",1096:"or",1123:"ps",1045:"pl",1046:"pt",2070:"pt-PT",1094:"pa",1131:"qu-BO",2155:"qu-EC",3179:"qu",1048:"ro",1047:"rm",1049:"ru",9275:"smn",4155:"smj-NO",5179:"smj",3131:"se-FI",1083:"se",2107:"se-SE",8251:"sms",6203:"sma-NO",7227:"sms",1103:"sa",7194:"sr-Cyrl-BA",3098:"sr",6170:"sr-Latn-BA",2074:"sr-Latn",1132:"nso",1074:"tn",1115:"si",1051:"sk",1060:"sl",11274:"es-AR",16394:"es-BO",13322:"es-CL",9226:"es-CO",5130:"es-CR",7178:"es-DO",12298:"es-EC",17418:"es-SV",4106:"es-GT",18442:"es-HN",2058:"es-MX",19466:"es-NI",6154:"es-PA",15370:"es-PY",10250:"es-PE",20490:"es-PR",3082:"es",1034:"es",21514:"es-US",14346:"es-UY",8202:"es-VE",2077:"sv-FI",1053:"sv",1114:"syr",1064:"tg",2143:"tzm",1097:"ta",1092:"tt",1098:"te",1054:"th",1105:"bo",1055:"tr",1090:"tk",1152:"ug",1058:"uk",1070:"hsb",1056:"ur",2115:"uz-Cyrl",1091:"uz",1066:"vi",1106:"cy",1160:"wo",1157:"sah",1144:"ii",1130:"yo"};function E1(t,e,n){switch(t){case 0:if(65535===e)return"und";if(n)return n[e];break;case 1:return _1[e];case 3:return D1[e]}}var O1="utf-16",A1={0:"macintosh",1:"x-mac-japanese",2:"x-mac-chinesetrad",3:"x-mac-korean",6:"x-mac-greek",7:"x-mac-cyrillic",9:"x-mac-devanagai",10:"x-mac-gurmukhi",11:"x-mac-gujarati",12:"x-mac-oriya",13:"x-mac-bengali",14:"x-mac-tamil",15:"x-mac-telugu",16:"x-mac-kannada",17:"x-mac-malayalam",18:"x-mac-sinhalese",19:"x-mac-burmese",20:"x-mac-khmer",21:"x-mac-thai",22:"x-mac-lao",23:"x-mac-georgian",24:"x-mac-armenian",25:"x-mac-chinesesimp",26:"x-mac-tibetan",27:"x-mac-mongolian",28:"x-mac-ethiopic",29:"x-mac-ce",30:"x-mac-vietnamese",31:"x-mac-extarabic"},T1={15:"x-mac-icelandic",17:"x-mac-turkish",18:"x-mac-croatian",24:"x-mac-ce",25:"x-mac-ce",26:"x-mac-ce",27:"x-mac-ce",28:"x-mac-ce",30:"x-mac-icelandic",37:"x-mac-romanian",38:"x-mac-ce",39:"x-mac-ce",40:"x-mac-ce",143:"x-mac-inuit",146:"x-mac-gaelic"};function I1(t,e,n){switch(t){case 0:return O1;case 1:return T1[n]||A1[e];case 3:if(1===e||10===e)return O1}}function L1(t){var e={};for(var n in t)e[t[n]]=parseInt(n);return e}function z1(t,e,n,i,r,a){return new BQ.Record("NameRecord",[{name:"platformID",type:"USHORT",value:t},{name:"encodingID",type:"USHORT",value:e},{name:"languageID",type:"USHORT",value:n},{name:"nameID",type:"USHORT",value:i},{name:"length",type:"USHORT",value:r},{name:"offset",type:"USHORT",value:a}])}function R1(t,e){var n=function(t,e){var n=t.length,i=e.length-n+1;t:for(var r=0;r<i;r++)for(;r<i;r++){for(var a=0;a<n;a++)if(e[r+a]!==t[a])continue t;return r}return-1}(t,e);if(n<0){n=e.length;for(var i=0,r=t.length;i<r;++i)e.push(t[i])}return n}var F1=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}],B1=function(t,e){var n={},i=new YQ.Parser(t,e);n.version=i.parseUShort(),n.xAvgCharWidth=i.parseShort(),n.usWeightClass=i.parseUShort(),n.usWidthClass=i.parseUShort(),n.fsType=i.parseUShort(),n.ySubscriptXSize=i.parseShort(),n.ySubscriptYSize=i.parseShort(),n.ySubscriptXOffset=i.parseShort(),n.ySubscriptYOffset=i.parseShort(),n.ySuperscriptXSize=i.parseShort(),n.ySuperscriptYSize=i.parseShort(),n.ySuperscriptXOffset=i.parseShort(),n.ySuperscriptYOffset=i.parseShort(),n.yStrikeoutSize=i.parseShort(),n.yStrikeoutPosition=i.parseShort(),n.sFamilyClass=i.parseShort(),n.panose=[];for(var r=0;r<10;r++)n.panose[r]=i.parseByte();return n.ulUnicodeRange1=i.parseULong(),n.ulUnicodeRange2=i.parseULong(),n.ulUnicodeRange3=i.parseULong(),n.ulUnicodeRange4=i.parseULong(),n.achVendID=String.fromCharCode(i.parseByte(),i.parseByte(),i.parseByte(),i.parseByte()),n.fsSelection=i.parseUShort(),n.usFirstCharIndex=i.parseUShort(),n.usLastCharIndex=i.parseUShort(),n.sTypoAscender=i.parseShort(),n.sTypoDescender=i.parseShort(),n.sTypoLineGap=i.parseShort(),n.usWinAscent=i.parseUShort(),n.usWinDescent=i.parseUShort(),n.version>=1&&(n.ulCodePageRange1=i.parseULong(),n.ulCodePageRange2=i.parseULong()),n.version>=2&&(n.sxHeight=i.parseShort(),n.sCapHeight=i.parseShort(),n.usDefaultChar=i.parseUShort(),n.usBreakChar=i.parseUShort(),n.usMaxContent=i.parseUShort()),n},V1=function(t){for(var e=0;e<F1.length;e+=1){var n=F1[e];if(t>=n.begin&&t<n.end)return e}return-1},N1=function(t,e){var n={},i=new YQ.Parser(t,e);switch(n.version=i.parseVersion(),n.italicAngle=i.parseFixed(),n.underlinePosition=i.parseShort(),n.underlineThickness=i.parseShort(),n.isFixedPitch=i.parseULong(),n.minMemType42=i.parseULong(),n.maxMemType42=i.parseULong(),n.minMemType1=i.parseULong(),n.maxMemType1=i.parseULong(),n.version){case 1:n.names=KQ.slice();break;case 2:n.numberOfGlyphs=i.parseUShort(),n.glyphNameIndex=new Array(n.numberOfGlyphs);for(var r=0;r<n.numberOfGlyphs;r++)n.glyphNameIndex[r]=i.parseUShort();n.names=[];for(var a=0;a<n.numberOfGlyphs;a++)if(n.glyphNameIndex[a]>=KQ.length){var o=i.parseChar();n.names.push(i.parseString(o))}break;case 2.5:n.numberOfGlyphs=i.parseUShort(),n.offset=new Array(n.numberOfGlyphs);for(var s=0;s<n.numberOfGlyphs;s++)n.offset[s]=i.parseChar()}return n},H1=new Array(9);H1[1]=function(){var t=this.offset+this.relativeOffset,e=this.parseUShort();return 1===e?{substFormat:1,coverage:this.parsePointer(UQ.coverage),deltaGlyphId:this.parseUShort()}:2===e?{substFormat:2,coverage:this.parsePointer(UQ.coverage),substitute:this.parseOffset16List()}:void fQ.assert(!1,"0x"+t.toString(16)+": lookup type 1 format must be 1 or 2.")},H1[2]=function(){var t=this.parseUShort();return fQ.argument(1===t,"GSUB Multiple Substitution Subtable identifier-format must be 1"),{substFormat:t,coverage:this.parsePointer(UQ.coverage),sequences:this.parseListOfLists()}},H1[3]=function(){var t=this.parseUShort();return fQ.argument(1===t,"GSUB Alternate Substitution Subtable identifier-format must be 1"),{substFormat:t,coverage:this.parsePointer(UQ.coverage),alternateSets:this.parseListOfLists()}},H1[4]=function(){var t=this.parseUShort();return fQ.argument(1===t,"GSUB ligature table identifier-format must be 1"),{substFormat:t,coverage:this.parsePointer(UQ.coverage),ligatureSets:this.parseListOfLists((function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}}))}};var G1={sequenceIndex:UQ.uShort,lookupListIndex:UQ.uShort};H1[5]=function(){var t=this.offset+this.relativeOffset,e=this.parseUShort();if(1===e)return{substFormat:e,coverage:this.parsePointer(UQ.coverage),ruleSets:this.parseListOfLists((function(){var t=this.parseUShort(),e=this.parseUShort();return{input:this.parseUShortList(t-1),lookupRecords:this.parseRecordList(e,G1)}}))};if(2===e)return{substFormat:e,coverage:this.parsePointer(UQ.coverage),classDef:this.parsePointer(UQ.classDef),classSets:this.parseListOfLists((function(){var t=this.parseUShort(),e=this.parseUShort();return{classes:this.parseUShortList(t-1),lookupRecords:this.parseRecordList(e,G1)}}))};if(3===e){var n=this.parseUShort(),i=this.parseUShort();return{substFormat:e,coverages:this.parseList(n,UQ.pointer(UQ.coverage)),lookupRecords:this.parseRecordList(i,G1)}}fQ.assert(!1,"0x"+t.toString(16)+": lookup type 5 format must be 1, 2 or 3.")},H1[6]=function(){var t=this.offset+this.relativeOffset,e=this.parseUShort();return 1===e?{substFormat:1,coverage:this.parsePointer(UQ.coverage),chainRuleSets:this.parseListOfLists((function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(G1)}}))}:2===e?{substFormat:2,coverage:this.parsePointer(UQ.coverage),backtrackClassDef:this.parsePointer(UQ.classDef),inputClassDef:this.parsePointer(UQ.classDef),lookaheadClassDef:this.parsePointer(UQ.classDef),chainClassSet:this.parseListOfLists((function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(G1)}}))}:3===e?{substFormat:3,backtrackCoverage:this.parseList(UQ.pointer(UQ.coverage)),inputCoverage:this.parseList(UQ.pointer(UQ.coverage)),lookaheadCoverage:this.parseList(UQ.pointer(UQ.coverage)),lookupRecords:this.parseRecordList(G1)}:void fQ.assert(!1,"0x"+t.toString(16)+": lookup type 6 format must be 1, 2 or 3.")},H1[7]=function(){var t=this.parseUShort();fQ.argument(1===t,"GSUB Extension Substitution subtable identifier-format must be 1");var e=this.parseUShort(),n=new UQ(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:e,extension:H1[e].call(n)}},H1[8]=function(){var t=this.parseUShort();return fQ.argument(1===t,"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1"),{substFormat:t,coverage:this.parsePointer(UQ.coverage),backtrackCoverage:this.parseList(UQ.pointer(UQ.coverage)),lookaheadCoverage:this.parseList(UQ.pointer(UQ.coverage)),substitutes:this.parseUShortList()}};var Z1=new Array(9);Z1[1]=function(t){return new BQ.Table("substitutionTable",1===t.substFormat?[{name:"substFormat",type:"USHORT",value:1},{name:"coverage",type:"TABLE",value:new BQ.Coverage(t.coverage)},{name:"deltaGlyphID",type:"USHORT",value:t.deltaGlyphId}]:[{name:"substFormat",type:"USHORT",value:2},{name:"coverage",type:"TABLE",value:new BQ.Coverage(t.coverage)}].concat(BQ.ushortList("substitute",t.substitute)))},Z1[2]=function(t){return fQ.assert(1===t.substFormat,"Lookup type 2 substFormat must be 1."),new BQ.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:1},{name:"coverage",type:"TABLE",value:new BQ.Coverage(t.coverage)}].concat(BQ.tableList("seqSet",t.sequences,(function(t){return new BQ.Table("sequenceSetTable",BQ.ushortList("sequence",t))}))))},Z1[3]=function(t){return fQ.assert(1===t.substFormat,"Lookup type 3 substFormat must be 1."),new BQ.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:1},{name:"coverage",type:"TABLE",value:new BQ.Coverage(t.coverage)}].concat(BQ.tableList("altSet",t.alternateSets,(function(t){return new BQ.Table("alternateSetTable",BQ.ushortList("alternate",t))}))))},Z1[4]=function(t){return fQ.assert(1===t.substFormat,"Lookup type 4 substFormat must be 1."),new BQ.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:1},{name:"coverage",type:"TABLE",value:new BQ.Coverage(t.coverage)}].concat(BQ.tableList("ligSet",t.ligatureSets,(function(t){return new BQ.Table("ligatureSetTable",BQ.tableList("ligature",t,(function(t){return new BQ.Table("ligatureTable",[{name:"ligGlyph",type:"USHORT",value:t.ligGlyph}].concat(BQ.ushortList("component",t.components,t.components.length+1)))})))}))))},Z1[6]=function(t){if(1===t.substFormat)return new BQ.Table("chainContextTable",[{name:"substFormat",type:"USHORT",value:t.substFormat},{name:"coverage",type:"TABLE",value:new BQ.Coverage(t.coverage)}].concat(BQ.tableList("chainRuleSet",t.chainRuleSets,(function(t){return new BQ.Table("chainRuleSetTable",BQ.tableList("chainRule",t,(function(t){var e=BQ.ushortList("backtrackGlyph",t.backtrack,t.backtrack.length).concat(BQ.ushortList("inputGlyph",t.input,t.input.length+1)).concat(BQ.ushortList("lookaheadGlyph",t.lookahead,t.lookahead.length)).concat(BQ.ushortList("substitution",[],t.lookupRecords.length));return t.lookupRecords.forEach((function(t,n){e=e.concat({name:"sequenceIndex"+n,type:"USHORT",value:t.sequenceIndex}).concat({name:"lookupListIndex"+n,type:"USHORT",value:t.lookupListIndex})})),new BQ.Table("chainRuleTable",e)})))}))));if(2===t.substFormat)fQ.assert(!1,"lookup type 6 format 2 is not yet supported.");else if(3===t.substFormat){var e=[{name:"substFormat",type:"USHORT",value:t.substFormat}];return e.push({name:"backtrackGlyphCount",type:"USHORT",value:t.backtrackCoverage.length}),t.backtrackCoverage.forEach((function(t,n){e.push({name:"backtrackCoverage"+n,type:"TABLE",value:new BQ.Coverage(t)})})),e.push({name:"inputGlyphCount",type:"USHORT",value:t.inputCoverage.length}),t.inputCoverage.forEach((function(t,n){e.push({name:"inputCoverage"+n,type:"TABLE",value:new BQ.Coverage(t)})})),e.push({name:"lookaheadGlyphCount",type:"USHORT",value:t.lookaheadCoverage.length}),t.lookaheadCoverage.forEach((function(t,n){e.push({name:"lookaheadCoverage"+n,type:"TABLE",value:new BQ.Coverage(t)})})),e.push({name:"substitutionCount",type:"USHORT",value:t.lookupRecords.length}),t.lookupRecords.forEach((function(t,n){e=e.concat({name:"sequenceIndex"+n,type:"USHORT",value:t.sequenceIndex}).concat({name:"lookupListIndex"+n,type:"USHORT",value:t.lookupListIndex})})),new BQ.Table("chainContextTable",e)}fQ.assert(!1,"lookup type 6 format must be 1, 2 or 3.")};function U1(t){return Math.log(t)/Math.log(2)|0}function W1(t){for(;t.length%4!=0;)t.push(0);for(var e=0,n=0;n<t.length;n+=4)e+=(t[n]<<24)+(t[n+1]<<16)+(t[n+2]<<8)+t[n+3];return e%Math.pow(2,32)}function Y1(t,e,n,i){return new BQ.Record("Table Record",[{name:"tag",type:"TAG",value:void 0!==t?t:""},{name:"checkSum",type:"ULONG",value:void 0!==e?e:0},{name:"offset",type:"ULONG",value:void 0!==n?n:0},{name:"length",type:"ULONG",value:void 0!==i?i:0}])}function j1(t,e,n){for(var i=0;i<e.length;i+=1){var r=t.charToGlyphIndex(e[i]);if(r>0)return t.glyphs.get(r).getMetrics()}return n}function X1(t){for(var e=0,n=0;n<t.length;n+=1)e+=t[n];return e/t.length}var q1=function(t){for(var e,n=[],i=[],a=[],o=[],s=[],l=[],c=[],h=0,d=0,u=0,m=0,p=0,g=0;g<t.glyphs.length;g+=1){var f=t.glyphs.get(g),b=0|f.unicode;if(isNaN(f.advanceWidth))throw new Error("Glyph "+f.name+" ("+g+"): advanceWidth is not a number.");(e>b||void 0===e)&&b>0&&(e=b),h<b&&(h=b);var y=V1(b);if(y<32)d|=1<<y;else if(y<64)u|=1<<y-32;else if(y<96)m|=1<<y-64;else{if(!(y<123))throw new Error("Unicode ranges bits > 123 are reserved for internal usage");p|=1<<y-96}if(".notdef"!==f.name){var v=f.getMetrics();n.push(v.xMin),i.push(v.yMin),a.push(v.xMax),o.push(v.yMax),l.push(v.leftSideBearing),c.push(v.rightSideBearing),s.push(f.advanceWidth)}}var w={xMin:Math.min.apply(null,n),yMin:Math.min.apply(null,i),xMax:Math.max.apply(null,a),yMax:Math.max.apply(null,o),advanceWidthMax:Math.max.apply(null,s),advanceWidthAvg:X1(s),minLeftSideBearing:Math.min.apply(null,l),maxLeftSideBearing:Math.max.apply(null,l),minRightSideBearing:Math.min.apply(null,c)};w.ascender=t.ascender,w.descender=t.descender;var x,C,k,S,P,_,M=(S={flags:3,unitsPerEm:t.unitsPerEm,xMin:w.xMin,yMin:w.yMin,xMax:w.xMax,yMax:w.yMax,lowestRecPPEM:3,createdTimestamp:t.createdTimestamp},P=Math.round((new Date).getTime()/1e3)+2082844800,_=P,S.createdTimestamp&&(_=S.createdTimestamp+2082844800),new BQ.Table("head",[{name:"version",type:"FIXED",value:65536},{name:"fontRevision",type:"FIXED",value:65536},{name:"checkSumAdjustment",type:"ULONG",value:0},{name:"magicNumber",type:"ULONG",value:1594834165},{name:"flags",type:"USHORT",value:0},{name:"unitsPerEm",type:"USHORT",value:1e3},{name:"created",type:"LONGDATETIME",value:_},{name:"modified",type:"LONGDATETIME",value:P},{name:"xMin",type:"SHORT",value:0},{name:"yMin",type:"SHORT",value:0},{name:"xMax",type:"SHORT",value:0},{name:"yMax",type:"SHORT",value:0},{name:"macStyle",type:"USHORT",value:0},{name:"lowestRecPPEM",type:"USHORT",value:0},{name:"fontDirectionHint",type:"SHORT",value:2},{name:"indexToLocFormat",type:"SHORT",value:0},{name:"glyphDataFormat",type:"SHORT",value:0}],S)),D=(k={ascender:w.ascender,descender:w.descender,advanceWidthMax:w.advanceWidthMax,minLeftSideBearing:w.minLeftSideBearing,minRightSideBearing:w.minRightSideBearing,xMaxExtent:w.maxLeftSideBearing+(w.xMax-w.xMin),numberOfHMetrics:t.glyphs.length},new BQ.Table("hhea",[{name:"version",type:"FIXED",value:65536},{name:"ascender",type:"FWORD",value:0},{name:"descender",type:"FWORD",value:0},{name:"lineGap",type:"FWORD",value:0},{name:"advanceWidthMax",type:"UFWORD",value:0},{name:"minLeftSideBearing",type:"FWORD",value:0},{name:"minRightSideBearing",type:"FWORD",value:0},{name:"xMaxExtent",type:"FWORD",value:0},{name:"caretSlopeRise",type:"SHORT",value:1},{name:"caretSlopeRun",type:"SHORT",value:0},{name:"caretOffset",type:"SHORT",value:0},{name:"reserved1",type:"SHORT",value:0},{name:"reserved2",type:"SHORT",value:0},{name:"reserved3",type:"SHORT",value:0},{name:"reserved4",type:"SHORT",value:0},{name:"metricDataFormat",type:"SHORT",value:0},{name:"numberOfHMetrics",type:"USHORT",value:0}],k)),E=(C=t.glyphs.length,new BQ.Table("maxp",[{name:"version",type:"FIXED",value:20480},{name:"numGlyphs",type:"USHORT",value:C}])),O=(x=Object.assign({xAvgCharWidth:Math.round(w.advanceWidthAvg),usFirstCharIndex:e,usLastCharIndex:h,ulUnicodeRange1:d,ulUnicodeRange2:u,ulUnicodeRange3:m,ulUnicodeRange4:p,sTypoAscender:w.ascender,sTypoDescender:w.descender,sTypoLineGap:0,usWinAscent:w.yMax,usWinDescent:Math.abs(w.yMin),ulCodePageRange1:1,sxHeight:j1(t,"xyvw",{yMax:Math.round(w.ascender/2)}).yMax,sCapHeight:j1(t,"HIKLEFJMNTZBDPRAGOQSUVWXY",w).yMax,usDefaultChar:t.hasChar(" ")?32:0,usBreakChar:t.hasChar(" ")?32:0},t.tables.os2),new BQ.Table("OS/2",[{name:"version",type:"USHORT",value:3},{name:"xAvgCharWidth",type:"SHORT",value:0},{name:"usWeightClass",type:"USHORT",value:0},{name:"usWidthClass",type:"USHORT",value:0},{name:"fsType",type:"USHORT",value:0},{name:"ySubscriptXSize",type:"SHORT",value:650},{name:"ySubscriptYSize",type:"SHORT",value:699},{name:"ySubscriptXOffset",type:"SHORT",value:0},{name:"ySubscriptYOffset",type:"SHORT",value:140},{name:"ySuperscriptXSize",type:"SHORT",value:650},{name:"ySuperscriptYSize",type:"SHORT",value:699},{name:"ySuperscriptXOffset",type:"SHORT",value:0},{name:"ySuperscriptYOffset",type:"SHORT",value:479},{name:"yStrikeoutSize",type:"SHORT",value:49},{name:"yStrikeoutPosition",type:"SHORT",value:258},{name:"sFamilyClass",type:"SHORT",value:0},{name:"bFamilyType",type:"BYTE",value:0},{name:"bSerifStyle",type:"BYTE",value:0},{name:"bWeight",type:"BYTE",value:0},{name:"bProportion",type:"BYTE",value:0},{name:"bContrast",type:"BYTE",value:0},{name:"bStrokeVariation",type:"BYTE",value:0},{name:"bArmStyle",type:"BYTE",value:0},{name:"bLetterform",type:"BYTE",value:0},{name:"bMidline",type:"BYTE",value:0},{name:"bXHeight",type:"BYTE",value:0},{name:"ulUnicodeRange1",type:"ULONG",value:0},{name:"ulUnicodeRange2",type:"ULONG",value:0},{name:"ulUnicodeRange3",type:"ULONG",value:0},{name:"ulUnicodeRange4",type:"ULONG",value:0},{name:"achVendID",type:"CHARARRAY",value:"XXXX"},{name:"fsSelection",type:"USHORT",value:0},{name:"usFirstCharIndex",type:"USHORT",value:0},{name:"usLastCharIndex",type:"USHORT",value:0},{name:"sTypoAscender",type:"SHORT",value:0},{name:"sTypoDescender",type:"SHORT",value:0},{name:"sTypoLineGap",type:"SHORT",value:0},{name:"usWinAscent",type:"USHORT",value:0},{name:"usWinDescent",type:"USHORT",value:0},{name:"ulCodePageRange1",type:"ULONG",value:0},{name:"ulCodePageRange2",type:"ULONG",value:0},{name:"sxHeight",type:"SHORT",value:0},{name:"sCapHeight",type:"SHORT",value:0},{name:"usDefaultChar",type:"USHORT",value:0},{name:"usBreakChar",type:"USHORT",value:0},{name:"usMaxContext",type:"USHORT",value:0}],x)),A=function(t){for(var e=new BQ.Table("hmtx",[]),n=0;n<t.length;n+=1){var i=t.get(n),r=i.leftSideBearing||0;e.fields.push({name:"advanceWidth_"+n,type:"USHORT",value:i.advanceWidth||0}),e.fields.push({name:"leftSideBearing_"+n,type:"SHORT",value:r})}return e}(t.glyphs),T=function(t){var e,n=!0;for(e=t.length-1;e>0;e-=1)if(t.get(e).unicode>65535){r.log("Adding CMAP format 12 (needed!)"),n=!1;break}var i=[{name:"version",type:"USHORT",value:0},{name:"numTables",type:"USHORT",value:n?1:2},{name:"platformID",type:"USHORT",value:3},{name:"encodingID",type:"USHORT",value:1},{name:"offset",type:"ULONG",value:n?12:20}];n||(i=i.concat([{name:"cmap12PlatformID",type:"USHORT",value:3},{name:"cmap12EncodingID",type:"USHORT",value:10},{name:"cmap12Offset",type:"ULONG",value:0}])),i=i.concat([{name:"format",type:"USHORT",value:4},{name:"cmap4Length",type:"USHORT",value:0},{name:"language",type:"USHORT",value:0},{name:"segCountX2",type:"USHORT",value:0},{name:"searchRange",type:"USHORT",value:0},{name:"entrySelector",type:"USHORT",value:0},{name:"rangeShift",type:"USHORT",value:0}]);var a,o,s,l=new BQ.Table("cmap",i);for(l.segments=[],e=0;e<t.length;e+=1){for(var c=t.get(e),h=0;h<c.unicodes.length;h+=1)a=l,o=c.unicodes[h],s=e,a.segments.push({end:o,start:o,delta:-(o-s),offset:0,glyphIndex:s});l.segments=l.segments.sort((function(t,e){return t.start-e.start}))}l.segments.push({end:65535,start:65535,delta:1,offset:0});var d=l.segments.length,u=0,m=[],p=[],g=[],f=[],b=[],y=[];for(e=0;e<d;e+=1){var v=l.segments[e];v.end<=65535&&v.start<=65535?(m=m.concat({name:"end_"+e,type:"USHORT",value:v.end}),p=p.concat({name:"start_"+e,type:"USHORT",value:v.start}),g=g.concat({name:"idDelta_"+e,type:"SHORT",value:v.delta}),f=f.concat({name:"idRangeOffset_"+e,type:"USHORT",value:v.offset}),void 0!==v.glyphId&&(b=b.concat({name:"glyph_"+e,type:"USHORT",value:v.glyphId}))):u+=1,!n&&void 0!==v.glyphIndex&&(y=(y=(y=y.concat({name:"cmap12Start_"+e,type:"ULONG",value:v.start})).concat({name:"cmap12End_"+e,type:"ULONG",value:v.end})).concat({name:"cmap12Glyph_"+e,type:"ULONG",value:v.glyphIndex}))}if(l.segCountX2=2*(d-u),l.searchRange=2*Math.pow(2,Math.floor(Math.log(d-u)/Math.log(2))),l.entrySelector=Math.log(l.searchRange/2)/Math.log(2),l.rangeShift=l.segCountX2-l.searchRange,l.fields=l.fields.concat(m),l.fields.push({name:"reservedPad",type:"USHORT",value:0}),l.fields=l.fields.concat(p),l.fields=l.fields.concat(g),l.fields=l.fields.concat(f),l.fields=l.fields.concat(b),l.cmap4Length=14+2*m.length+2+2*p.length+2*g.length+2*f.length+2*b.length,!n){var w=16+4*y.length;l.cmap12Offset=20+l.cmap4Length,l.fields=l.fields.concat([{name:"cmap12Format",type:"USHORT",value:12},{name:"cmap12Reserved",type:"USHORT",value:0},{name:"cmap12Length",type:"ULONG",value:w},{name:"cmap12Language",type:"ULONG",value:0},{name:"cmap12nGroups",type:"ULONG",value:y.length/3}]),l.fields=l.fields.concat(y)}return l}(t.glyphs),I=t.getEnglishName("fontFamily"),L=t.getEnglishName("fontSubfamily"),z=I+" "+L,R=t.getEnglishName("postScriptName");R||(R=I.replace(/\s/g,"")+"-"+L);var F={};for(var B in t.names)F[B]=t.names[B];F.uniqueID||(F.uniqueID={en:t.getEnglishName("manufacturer")+":"+z}),F.postScriptName||(F.postScriptName={en:R}),F.preferredFamily||(F.preferredFamily=t.names.fontFamily),F.preferredSubfamily||(F.preferredSubfamily=t.names.fontSubfamily);var V,N=[],H=function(t,e){var n,i=[],r={},a=L1(P1);for(var o in t){var s=a[o];if(void 0===s&&(s=o),n=parseInt(s),isNaN(n))throw new Error('Name table entry "'+o+'" does not exist, see nameTableNames for complete list.');r[n]=t[o],i.push(n)}for(var l=L1(_1),c=L1(D1),h=[],d=[],u=0;u<i.length;u++){var m=r[n=i[u]];for(var p in m){var g=m[p],f=1,b=l[p],y=M1[b],v=I1(f,y,b),w=vQ.MACSTRING(g,v);void 0===w&&(f=0,(b=e.indexOf(p))<0&&(b=e.length,e.push(p)),y=4,w=vQ.UTF16(g));var x=R1(w,d);h.push(z1(f,y,b,n,w.length,x));var C=c[p];if(void 0!==C){var k=vQ.UTF16(g),S=R1(k,d);h.push(z1(3,1,C,n,k.length,S))}}}h.sort((function(t,e){return t.platformID-e.platformID||t.encodingID-e.encodingID||t.languageID-e.languageID||t.nameID-e.nameID}));for(var P=new BQ.Table("name",[{name:"format",type:"USHORT",value:0},{name:"count",type:"USHORT",value:h.length},{name:"stringOffset",type:"USHORT",value:6+12*h.length}]),_=0;_<h.length;_++)P.fields.push({name:"record_"+_,type:"RECORD",value:h[_]});return P.fields.push({name:"strings",type:"LITERAL",value:d}),P}(F,N),G=N.length>0?function(t){for(var e=new BQ.Table("ltag",[{name:"version",type:"ULONG",value:1},{name:"flags",type:"ULONG",value:0},{name:"numTags",type:"ULONG",value:t.length}]),n="",i=12+4*t.length,r=0;r<t.length;++r){var a=n.indexOf(t[r]);a<0&&(a=n.length,n+=t[r]),e.fields.push({name:"offset "+r,type:"USHORT",value:i+a}),e.fields.push({name:"length "+r,type:"USHORT",value:t[r].length})}return e.fields.push({name:"stringPool",type:"CHARARRAY",value:n}),e}(N):void 0,Z=new BQ.Table("post",[{name:"version",type:"FIXED",value:196608},{name:"italicAngle",type:"FIXED",value:0},{name:"underlinePosition",type:"FWORD",value:0},{name:"underlineThickness",type:"FWORD",value:0},{name:"isFixedPitch",type:"ULONG",value:0},{name:"minMemType42",type:"ULONG",value:0},{name:"maxMemType42",type:"ULONG",value:0},{name:"minMemType1",type:"ULONG",value:0},{name:"maxMemType1",type:"ULONG",value:0}]),U=function(t,e){for(var n,i=new BQ.Table("CFF ",[{name:"header",type:"RECORD"},{name:"nameIndex",type:"RECORD"},{name:"topDictIndex",type:"RECORD"},{name:"stringIndex",type:"RECORD"},{name:"globalSubrIndex",type:"RECORD"},{name:"charsets",type:"RECORD"},{name:"charStringsIndex",type:"RECORD"},{name:"privateDict",type:"RECORD"}]),r=1/e.unitsPerEm,a={version:e.version,fullName:e.fullName,familyName:e.familyName,weight:e.weightName,fontBBox:e.fontBBox||[0,0,0,0],fontMatrix:[r,0,0,r,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},o=[],s=1;s<t.length;s+=1)n=t.get(s),o.push(n.name);var l=[];i.header=new BQ.Record("Header",[{name:"major",type:"Card8",value:1},{name:"minor",type:"Card8",value:0},{name:"hdrSize",type:"Card8",value:4},{name:"major",type:"Card8",value:1}]),i.nameIndex=function(t){var e=new BQ.Record("Name INDEX",[{name:"names",type:"INDEX",value:[]}]);e.names=[];for(var n=0;n<t.length;n+=1)e.names.push({name:"name_"+n,type:"NAME",value:t[n]});return e}([e.postScriptName]);var c,h,d=x1(a,l);i.topDictIndex=C1(d),i.globalSubrIndex=new BQ.Record("Global Subr INDEX",[{name:"subrs",type:"INDEX",value:[]}]),i.charsets=function(t,e){for(var n=new BQ.Record("Charsets",[{name:"format",type:"Card8",value:0}]),i=0;i<t.length;i+=1){var r=v1(t[i],e);n.fields.push({name:"glyph_"+i,type:"SID",value:r})}return n}(o,l),i.charStringsIndex=function(t){for(var e=new BQ.Record("CharStrings INDEX",[{name:"charStrings",type:"INDEX",value:[]}]),n=0;n<t.length;n+=1){var i=t.get(n),r=k1(i);e.charStrings.push({name:i.name,type:"CHARSTRING",value:r})}return e}(t),i.privateDict=(c=l,(h=new BQ.Record("Private DICT",[{name:"dict",type:"DICT",value:{}}])).dict=w1(g1,{},c),h),i.stringIndex=function(t){var e=new BQ.Record("String INDEX",[{name:"strings",type:"INDEX",value:[]}]);e.strings=[];for(var n=0;n<t.length;n+=1)e.strings.push({name:"string_"+n,type:"STRING",value:t[n]});return e}(l);var u=i.header.sizeOf()+i.nameIndex.sizeOf()+i.topDictIndex.sizeOf()+i.stringIndex.sizeOf()+i.globalSubrIndex.sizeOf();return a.charset=u,a.encoding=0,a.charStrings=a.charset+i.charsets.sizeOf(),a.private[1]=a.charStrings+i.charStringsIndex.sizeOf(),d=x1(a,l),i.topDictIndex=C1(d),i}(t.glyphs,{version:t.getEnglishName("version"),fullName:z,familyName:I,weightName:L,postScriptName:R,unitsPerEm:t.unitsPerEm,fontBBox:[0,w.yMin,w.ascender,w.advanceWidthMax]}),W=t.metas&&Object.keys(t.metas).length>0?function(t){var e=Object.keys(t).length,n="",i=16+12*e,r=new BQ.Table("meta",[{name:"version",type:"ULONG",value:1},{name:"flags",type:"ULONG",value:0},{name:"offset",type:"ULONG",value:i},{name:"numTags",type:"ULONG",value:e}]);for(var a in t){var o=n.length;n+=t[a],r.fields.push({name:"tag "+a,type:"TAG",value:a}),r.fields.push({name:"offset "+a,type:"ULONG",value:i+o}),r.fields.push({name:"length "+a,type:"ULONG",value:t[a].length})}return r.fields.push({name:"stringPool",type:"CHARARRAY",value:n}),r}(t.metas):void 0,Y=[M,D,E,O,H,T,Z,U,A];G&&Y.push(G),t.tables.gsub&&Y.push((V=t.tables.gsub,new BQ.Table("GSUB",[{name:"version",type:"ULONG",value:65536},{name:"scripts",type:"TABLE",value:new BQ.ScriptList(V.scripts)},{name:"features",type:"TABLE",value:new BQ.FeatureList(V.features)},{name:"lookups",type:"TABLE",value:new BQ.LookupList(V.lookups,Z1)}]))),W&&Y.push(W);for(var j=function(t){var e=new BQ.Table("sfnt",[{name:"version",type:"TAG",value:"OTTO"},{name:"numTables",type:"USHORT",value:0},{name:"searchRange",type:"USHORT",value:0},{name:"entrySelector",type:"USHORT",value:0},{name:"rangeShift",type:"USHORT",value:0}]);e.tables=t,e.numTables=t.length;var n=Math.pow(2,U1(e.numTables));e.searchRange=16*n,e.entrySelector=U1(n),e.rangeShift=16*e.numTables-e.searchRange;for(var i=[],r=[],a=e.sizeOf()+Y1().sizeOf()*e.numTables;a%4!=0;)a+=1,r.push({name:"padding",type:"BYTE",value:0});for(var o=0;o<t.length;o+=1){var s=t[o];fQ.argument(4===s.tableName.length,"Table name"+s.tableName+" is invalid.");var l=s.sizeOf(),c=Y1(s.tableName,W1(s.encode()),a,l);for(i.push({name:c.tag+" Table Record",type:"RECORD",value:c}),r.push({name:s.tableName+" table",type:"RECORD",value:s}),a+=l,fQ.argument(!isNaN(a),"Something went wrong calculating the offset.");a%4!=0;)a+=1,r.push({name:"padding",type:"BYTE",value:0})}return i.sort((function(t,e){return t.value.tag>e.value.tag?1:-1})),e.fields=e.fields.concat(i),e.fields=e.fields.concat(r),e}(Y),X=W1(j.encode()),q=j.fields,$=!1,K=0;K<q.length;K+=1)if("head table"===q[K].name){q[K].value.checkSumAdjustment=2981146554-X,$=!0;break}if(!$)throw new Error("Could not find head table with checkSum to adjust.");return j};function $1(t,e){for(var n=0,i=t.length-1;n<=i;){var r=n+i>>>1,a=t[r].tag;if(a===e)return r;a<e?n=r+1:i=r-1}return-n-1}function K1(t,e){for(var n=0,i=t.length-1;n<=i;){var r=n+i>>>1,a=t[r];if(a===e)return r;a<e?n=r+1:i=r-1}return-n-1}function J1(t,e){for(var n,i=0,r=t.length-1;i<=r;){var a=i+r>>>1,o=(n=t[a]).start;if(o===e)return n;o<e?i=a+1:r=a-1}if(i>0)return e>(n=t[i-1]).end?0:n}function Q1(t,e){this.font=t,this.tableName=e}function t0(t){Q1.call(this,t,"gpos")}function e0(t){Q1.call(this,t,"gsub")}function n0(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}function i0(t,e,n){for(var i=t.subtables,r=0;r<i.length;r++){var a=i[r];if(a.substFormat===e)return a}if(n)return i.push(n),n}function r0(t,e){if(!t)throw e}function a0(t,e,n,i,r){var a;return(e&i)>0?(a=t.parseByte(),0==(e&r)&&(a=-a),a=n+a):a=(e&r)>0?n:n+t.parseShort(),a}function o0(t,e,n){var i,r,a=new YQ.Parser(e,n);if(t.numberOfContours=a.parseShort(),t._xMin=a.parseShort(),t._yMin=a.parseShort(),t._xMax=a.parseShort(),t._yMax=a.parseShort(),t.numberOfContours>0){for(var o=t.endPointIndices=[],s=0;s<t.numberOfContours;s+=1)o.push(a.parseUShort());t.instructionLength=a.parseUShort(),t.instructions=[];for(var l=0;l<t.instructionLength;l+=1)t.instructions.push(a.parseByte());var c=o[o.length-1]+1;i=[];for(var h=0;h<c;h+=1)if(r=a.parseByte(),i.push(r),(8&r)>0)for(var d=a.parseByte(),u=0;u<d;u+=1)i.push(r),h+=1;if(fQ.argument(i.length===c,"Bad flags."),o.length>0){var m,p=[];if(c>0){for(var g=0;g<c;g+=1)(m={}).onCurve=!!(1&(r=i[g])),m.lastPointOfContour=o.indexOf(g)>=0,p.push(m);for(var f=0,b=0;b<c;b+=1)(m=p[b]).x=a0(a,r=i[b],f,2,16),f=m.x;for(var y=0,v=0;v<c;v+=1)(m=p[v]).y=a0(a,r=i[v],y,4,32),y=m.y}t.points=p}else t.points=[]}else if(0===t.numberOfContours)t.points=[];else{t.isComposite=!0,t.points=[],t.components=[];for(var w=!0;w;){i=a.parseUShort();var x={glyphIndex:a.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};(1&i)>0?(2&i)>0?(x.dx=a.parseShort(),x.dy=a.parseShort()):x.matchedPoints=[a.parseUShort(),a.parseUShort()]:(2&i)>0?(x.dx=a.parseChar(),x.dy=a.parseChar()):x.matchedPoints=[a.parseByte(),a.parseByte()],(8&i)>0?x.xScale=x.yScale=a.parseF2Dot14():(64&i)>0?(x.xScale=a.parseF2Dot14(),x.yScale=a.parseF2Dot14()):(128&i)>0&&(x.xScale=a.parseF2Dot14(),x.scale01=a.parseF2Dot14(),x.scale10=a.parseF2Dot14(),x.yScale=a.parseF2Dot14()),t.components.push(x),w=!!(32&i)}if(256&i){t.instructionLength=a.parseUShort(),t.instructions=[];for(var C=0;C<t.instructionLength;C+=1)t.instructions.push(a.parseByte())}}}function s0(t,e){for(var n=[],i=0;i<t.length;i+=1){var r=t[i];n.push({x:e.xScale*r.x+e.scale01*r.y+e.dx,y:e.scale10*r.x+e.yScale*r.y+e.dy,onCurve:r.onCurve,lastPointOfContour:r.lastPointOfContour})}return n}function l0(t){var e=new mQ;if(!t)return e;for(var n=function(t){for(var e=[],n=[],i=0;i<t.length;i+=1){var r=t[i];n.push(r),r.lastPointOfContour&&(e.push(n),n=[])}return fQ.argument(0===n.length,"There are still points left in the current contour."),e}(t),i=0;i<n.length;++i){var r=n[i],a=r[r.length-1],o=r[0];if(a.onCurve)e.moveTo(a.x,a.y);else if(o.onCurve)e.moveTo(o.x,o.y);else{var s={x:.5*(a.x+o.x),y:.5*(a.y+o.y)};e.moveTo(s.x,s.y)}for(var l=0;l<r.length;++l)if(a=o,o=r[(l+1)%r.length],a.onCurve)e.lineTo(a.x,a.y);else{var c=o;o.onCurve||(c={x:.5*(a.x+o.x),y:.5*(a.y+o.y)}),e.quadraticCurveTo(a.x,a.y,c.x,c.y)}e.closePath()}return e}function c0(t,e){if(e.isComposite)for(var n=0;n<e.components.length;n+=1){var i=e.components[n],r=t.get(i.glyphIndex);if(r.getPath(),r.points){var a=void 0;if(void 0===i.matchedPoints)a=s0(r.points,i);else{if(i.matchedPoints[0]>e.points.length-1||i.matchedPoints[1]>r.points.length-1)throw Error("Matched points out of range in "+e.name);var o=e.points[i.matchedPoints[0]],s=r.points[i.matchedPoints[1]],l={xScale:i.xScale,scale01:i.scale01,scale10:i.scale10,yScale:i.yScale,dx:0,dy:0};s=s0([s],l)[0],l.dx=o.x-s.x,l.dy=o.y-s.y,a=s0(r.points,l)}e.points=e.points.concat(a)}}return l0(e.points)}(t0.prototype=Q1.prototype={searchTag:$1,binSearch:K1,getTable:function(t){var e=this.font.tables[this.tableName];return!e&&t&&(e=this.font.tables[this.tableName]=this.createDefaultTable()),e},getScriptNames:function(){var t=this.getTable();return t?t.scripts.map((function(t){return t.tag})):[]},getDefaultScriptName:function(){var t=this.getTable();if(t){for(var e=!1,n=0;n<t.scripts.length;n++){var i=t.scripts[n].tag;if("DFLT"===i)return i;"latn"===i&&(e=!0)}if(e)return"latn"}},getScriptTable:function(t,e){var n=this.getTable(e);if(n){var i=n.scripts,r=$1(n.scripts,t=t||"DFLT");if(r>=0)return i[r].script;if(e){var a={tag:t,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return i.splice(-1-r,0,a),a.script}}},getLangSysTable:function(t,e,n){var i=this.getScriptTable(t,n);if(i){if(!e||"dflt"===e||"DFLT"===e)return i.defaultLangSys;var r=$1(i.langSysRecords,e);if(r>=0)return i.langSysRecords[r].langSys;if(n){var a={tag:e,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return i.langSysRecords.splice(-1-r,0,a),a.langSys}}},getFeatureTable:function(t,e,n,i){var r=this.getLangSysTable(t,e,i);if(r){for(var a,o=r.featureIndexes,s=this.font.tables[this.tableName].features,l=0;l<o.length;l++)if((a=s[o[l]]).tag===n)return a.feature;if(i){var c=s.length;return fQ.assert(0===c||n>=s[c-1].tag,"Features must be added in alphabetical order."),s.push(a={tag:n,feature:{params:0,lookupListIndexes:[]}}),o.push(c),a.feature}}},getLookupTables:function(t,e,n,i,r){var a=this.getFeatureTable(t,e,n,r),o=[];if(a){for(var s,l=a.lookupListIndexes,c=this.font.tables[this.tableName].lookups,h=0;h<l.length;h++)(s=c[l[h]]).lookupType===i&&o.push(s);if(0===o.length&&r){var d=c.length;return c.push(s={lookupType:i,lookupFlag:0,subtables:[],markFilteringSet:void 0}),l.push(d),[s]}}return o},getGlyphClass:function(t,e){switch(t.format){case 1:return t.startGlyph<=e&&e<t.startGlyph+t.classes.length?t.classes[e-t.startGlyph]:0;case 2:var n=J1(t.ranges,e);return n?n.classId:0}},getCoverageIndex:function(t,e){switch(t.format){case 1:var n=K1(t.glyphs,e);return n>=0?n:-1;case 2:var i=J1(t.ranges,e);return i?i.index+e-i.start:-1}},expandCoverage:function(t){if(1===t.format)return t.glyphs;for(var e=[],n=t.ranges,i=0;i<n.length;i++)for(var r=n[i],a=r.end,o=r.start;o<=a;o++)e.push(o);return e}}).init=function(){var t=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(t)},t0.prototype.getKerningValue=function(t,e,n){for(var i=0;i<t.length;i++)for(var r=t[i].subtables,a=0;a<r.length;a++){var o=r[a],s=this.getCoverageIndex(o.coverage,e);if(!(s<0))switch(o.posFormat){case 1:for(var l=o.pairSets[s],c=0;c<l.length;c++){var h=l[c];if(h.secondGlyph===n)return h.value1&&h.value1.xAdvance||0}break;case 2:var d=this.getGlyphClass(o.classDef1,e),u=this.getGlyphClass(o.classDef2,n),m=o.classRecords[d][u];return m.value1&&m.value1.xAdvance||0}}return 0},t0.prototype.getKerningTables=function(t,e){if(this.font.tables.gpos)return this.getLookupTables(t,e,"kern",2)},(e0.prototype=Q1.prototype).createDefaultTable=function(){return{version:1,scripts:[{tag:"DFLT",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}},e0.prototype.getSingle=function(t,e,n){for(var i=[],r=this.getLookupTables(e,n,t,1),a=0;a<r.length;a++)for(var o=r[a].subtables,s=0;s<o.length;s++){var l=o[s],c=this.expandCoverage(l.coverage),h=void 0;if(1===l.substFormat){var d=l.deltaGlyphId;for(h=0;h<c.length;h++){var u=c[h];i.push({sub:u,by:u+d})}}else{var m=l.substitute;for(h=0;h<c.length;h++)i.push({sub:c[h],by:m[h]})}}return i},e0.prototype.getMultiple=function(t,e,n){for(var i=[],r=this.getLookupTables(e,n,t,2),a=0;a<r.length;a++)for(var o=r[a].subtables,s=0;s<o.length;s++){var l=o[s],c=this.expandCoverage(l.coverage),h=void 0;for(h=0;h<c.length;h++)i.push({sub:c[h],by:l.sequences[h]})}return i},e0.prototype.getAlternates=function(t,e,n){for(var i=[],r=this.getLookupTables(e,n,t,3),a=0;a<r.length;a++)for(var o=r[a].subtables,s=0;s<o.length;s++)for(var l=o[s],c=this.expandCoverage(l.coverage),h=l.alternateSets,d=0;d<c.length;d++)i.push({sub:c[d],by:h[d]});return i},e0.prototype.getLigatures=function(t,e,n){for(var i=[],r=this.getLookupTables(e,n,t,4),a=0;a<r.length;a++)for(var o=r[a].subtables,s=0;s<o.length;s++)for(var l=o[s],c=this.expandCoverage(l.coverage),h=l.ligatureSets,d=0;d<c.length;d++)for(var u=c[d],m=h[d],p=0;p<m.length;p++){var g=m[p];i.push({sub:[u].concat(g.components),by:g.ligGlyph})}return i},e0.prototype.addSingle=function(t,e,n,i){var r=i0(this.getLookupTables(n,i,t,1,!0)[0],2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});fQ.assert(1===r.coverage.format,"Single: unable to modify coverage table format "+r.coverage.format);var a=e.sub,o=this.binSearch(r.coverage.glyphs,a);o<0&&(r.coverage.glyphs.splice(o=-1-o,0,a),r.substitute.splice(o,0,0)),r.substitute[o]=e.by},e0.prototype.addMultiple=function(t,e,n,i){fQ.assert(e.by instanceof Array&&e.by.length>1,'Multiple: "by" must be an array of two or more ids');var r=i0(this.getLookupTables(n,i,t,2,!0)[0],1,{substFormat:1,coverage:{format:1,glyphs:[]},sequences:[]});fQ.assert(1===r.coverage.format,"Multiple: unable to modify coverage table format "+r.coverage.format);var a=e.sub,o=this.binSearch(r.coverage.glyphs,a);o<0&&(r.coverage.glyphs.splice(o=-1-o,0,a),r.sequences.splice(o,0,0)),r.sequences[o]=e.by},e0.prototype.addAlternate=function(t,e,n,i){var r=i0(this.getLookupTables(n,i,t,3,!0)[0],1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});fQ.assert(1===r.coverage.format,"Alternate: unable to modify coverage table format "+r.coverage.format);var a=e.sub,o=this.binSearch(r.coverage.glyphs,a);o<0&&(r.coverage.glyphs.splice(o=-1-o,0,a),r.alternateSets.splice(o,0,0)),r.alternateSets[o]=e.by},e0.prototype.addLigature=function(t,e,n,i){var r=this.getLookupTables(n,i,t,4,!0)[0],a=r.subtables[0];a||(r.subtables[0]=a={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]}),fQ.assert(1===a.coverage.format,"Ligature: unable to modify coverage table format "+a.coverage.format);var o=e.sub[0],s=e.sub.slice(1),l={ligGlyph:e.by,components:s},c=this.binSearch(a.coverage.glyphs,o);if(c>=0){for(var h=a.ligatureSets[c],d=0;d<h.length;d++)if(n0(h[d].components,s))return;h.push(l)}else a.coverage.glyphs.splice(c=-1-c,0,o),a.ligatureSets.splice(c,0,[l])},e0.prototype.getFeature=function(t,e,n){if(/ss\d\d/.test(t))return this.getSingle(t,e,n);switch(t){case"aalt":case"salt":return this.getSingle(t,e,n).concat(this.getAlternates(t,e,n));case"dlig":case"liga":case"rlig":return this.getLigatures(t,e,n);case"ccmp":return this.getMultiple(t,e,n).concat(this.getLigatures(t,e,n));case"stch":return this.getMultiple(t,e,n)}},e0.prototype.add=function(t,e,n,i){if(/ss\d\d/.test(t))return this.addSingle(t,e,n,i);switch(t){case"aalt":case"salt":return"number"==typeof e.by?this.addSingle(t,e,n,i):this.addAlternate(t,e,n,i);case"dlig":case"liga":case"rlig":return this.addLigature(t,e,n,i);case"ccmp":return e.by instanceof Array?this.addMultiple(t,e,n,i):this.addLigature(t,e,n,i)}};var h0,d0,u0,m0,p0={getPath:l0,parse:function(t,e,n,i,r){return r.lowMemory?(a=t,o=e,s=n,l=i,c=new o1.GlyphSet(l),l._push=function(t){var e=s[t];c.push(t,e!==s[t+1]?o1.ttfGlyphLoader(l,t,o0,a,o+e,c0):o1.glyphLoader(l,t))},c):function(t,e,n,i){for(var r=new o1.GlyphSet(i),a=0;a<n.length-1;a+=1){var o=n[a];r.push(a,o!==n[a+1]?o1.ttfGlyphLoader(i,a,o0,t,e+o,c0):o1.glyphLoader(i,a))}return r}(t,e,n,i);var a,o,s,l,c}};function g0(t){this.font=t,this.getCommands=function(t){return p0.getPath(t).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function f0(t){return t}function b0(t){return Math.sign(t)*Math.round(Math.abs(t))}function y0(t){return Math.sign(t)*Math.round(Math.abs(2*t))/2}function v0(t){return Math.sign(t)*(Math.round(Math.abs(t)+.5)-.5)}function w0(t){return Math.sign(t)*Math.ceil(Math.abs(t))}function x0(t){return Math.sign(t)*Math.floor(Math.abs(t))}var C0=function(t){var e=this.srPeriod,n=this.srPhase,i=1;return t<0&&(t=-t,i=-1),t+=this.srThreshold-n,t=Math.trunc(t/e)*e,(t+=n)<0?n*i:t*i},k0={x:1,y:0,axis:"x",distance:function(t,e,n,i){return(n?t.xo:t.x)-(i?e.xo:e.x)},interpolate:function(t,e,n,i){var r,a,o,s,l,c,h;if(!i||i===this)return r=t.xo-e.xo,a=t.xo-n.xo,l=e.x-e.xo,c=n.x-n.xo,0===(h=(o=Math.abs(r))+(s=Math.abs(a)))?void(t.x=t.xo+(l+c)/2):void(t.x=t.xo+(l*s+c*o)/h);r=i.distance(t,e,!0,!0),a=i.distance(t,n,!0,!0),l=i.distance(e,e,!1,!0),c=i.distance(n,n,!1,!0),0!==(h=(o=Math.abs(r))+(s=Math.abs(a)))?k0.setRelative(t,t,(l*s+c*o)/h,i,!0):k0.setRelative(t,t,(l+c)/2,i,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(t,e,n,i,r){t.x=i&&i!==this?(r?e.xo:e.x)+n*i.x+(t.y-((r?e.yo:e.y)+n*i.y))/i.normalSlope:(r?e.xo:e.x)+n},slope:0,touch:function(t){t.xTouched=!0},touched:function(t){return t.xTouched},untouch:function(t){t.xTouched=!1}},S0={x:0,y:1,axis:"y",distance:function(t,e,n,i){return(n?t.yo:t.y)-(i?e.yo:e.y)},interpolate:function(t,e,n,i){var r,a,o,s,l,c,h;if(!i||i===this)return r=t.yo-e.yo,a=t.yo-n.yo,l=e.y-e.yo,c=n.y-n.yo,0===(h=(o=Math.abs(r))+(s=Math.abs(a)))?void(t.y=t.yo+(l+c)/2):void(t.y=t.yo+(l*s+c*o)/h);r=i.distance(t,e,!0,!0),a=i.distance(t,n,!0,!0),l=i.distance(e,e,!1,!0),c=i.distance(n,n,!1,!0),0!==(h=(o=Math.abs(r))+(s=Math.abs(a)))?S0.setRelative(t,t,(l*s+c*o)/h,i,!0):S0.setRelative(t,t,(l+c)/2,i,!0)},normalSlope:0,setRelative:function(t,e,n,i,r){t.y=i&&i!==this?(r?e.yo:e.y)+n*i.y+i.normalSlope*(t.x-((r?e.xo:e.x)+n*i.x)):(r?e.yo:e.y)+n},slope:Number.POSITIVE_INFINITY,touch:function(t){t.yTouched=!0},touched:function(t){return t.yTouched},untouch:function(t){t.yTouched=!1}};function P0(t,e){this.x=t,this.y=e,this.axis=void 0,this.slope=e/t,this.normalSlope=-t/e,Object.freeze(this)}function _0(t,e){var n=Math.sqrt(t*t+e*e);return e/=n,1==(t/=n)&&0===e?k0:0===t&&1===e?S0:new P0(t,e)}function M0(t,e,n,i){this.x=this.xo=Math.round(64*t)/64,this.y=this.yo=Math.round(64*e)/64,this.lastPointOfContour=n,this.onCurve=i,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}Object.freeze(k0),Object.freeze(S0),P0.prototype.distance=function(t,e,n,i){return this.x*k0.distance(t,e,n,i)+this.y*S0.distance(t,e,n,i)},P0.prototype.interpolate=function(t,e,n,i){var r,a,o,s,l,c,h;o=i.distance(t,e,!0,!0),s=i.distance(t,n,!0,!0),r=i.distance(e,e,!1,!0),a=i.distance(n,n,!1,!0),0!==(h=(l=Math.abs(o))+(c=Math.abs(s)))?this.setRelative(t,t,(r*c+a*l)/h,i,!0):this.setRelative(t,t,(r+a)/2,i,!0)},P0.prototype.setRelative=function(t,e,n,i,r){var a=(i=i||this).normalSlope,o=this.slope,s=t.x,l=t.y;t.x=(o*s-a*((r?e.xo:e.x)+n*i.x)+((r?e.yo:e.y)+n*i.y)-l)/(o-a),t.y=o*(t.x-s)+l},P0.prototype.touch=function(t){t.xTouched=!0,t.yTouched=!0},M0.prototype.nextTouched=function(t){for(var e=this.nextPointOnContour;!t.touched(e)&&e!==this;)e=e.nextPointOnContour;return e},M0.prototype.prevTouched=function(t){for(var e=this.prevPointOnContour;!t.touched(e)&&e!==this;)e=e.prevPointOnContour;return e};var D0=Object.freeze(new M0(0,0)),E0={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function O0(t,e){switch(this.env=t,this.stack=[],this.prog=e,t){case"glyf":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case"prep":this.fv=this.pv=this.dpv=k0,this.round=b0}}function A0(t){for(var e=t.tZone=new Array(t.gZone.length),n=0;n<e.length;n++)e[n]=new M0(0,0)}function T0(t,e){var n,i=t.prog,r=t.ip,a=1;do{if(88===(n=i[++r]))a++;else if(89===n)a--;else if(64===n)r+=i[r+1]+1;else if(65===n)r+=2*i[r+1]+1;else if(n>=176&&n<=183)r+=n-176+1;else if(n>=184&&n<=191)r+=2*(n-184+1);else if(e&&1===a&&27===n)break}while(a>0);t.ip=r}function I0(t,n){e.DEBUG&&r.log(n.step,"SVTCA["+t.axis+"]"),n.fv=n.pv=n.dpv=t}function L0(t,n){e.DEBUG&&r.log(n.step,"SPVTCA["+t.axis+"]"),n.pv=n.dpv=t}function z0(t,n){e.DEBUG&&r.log(n.step,"SFVTCA["+t.axis+"]"),n.fv=t}function R0(t,n){var i,a,o=n.stack,s=o.pop(),l=o.pop(),c=n.z2[s],h=n.z1[l];e.DEBUG&&r.log("SPVTL["+t+"]",s,l),t?(i=c.y-h.y,a=h.x-c.x):(i=h.x-c.x,a=h.y-c.y),n.pv=n.dpv=_0(i,a)}function F0(t,n){var i,a,o=n.stack,s=o.pop(),l=o.pop(),c=n.z2[s],h=n.z1[l];e.DEBUG&&r.log("SFVTL["+t+"]",s,l),t?(i=c.y-h.y,a=h.x-c.x):(i=h.x-c.x,a=h.y-c.y),n.fv=_0(i,a)}function B0(t){e.DEBUG&&r.log(t.step,"POP[]"),t.stack.pop()}function V0(t,n){var i=n.stack.pop(),a=n.z0[i],o=n.fv,s=n.pv;e.DEBUG&&r.log(n.step,"MDAP["+t+"]",i);var l=s.distance(a,D0);t&&(l=n.round(l)),o.setRelative(a,D0,l,s),o.touch(a),n.rp0=n.rp1=i}function N0(t,n){var i,a,o,s=n.z2,l=s.length-2;e.DEBUG&&r.log(n.step,"IUP["+t.axis+"]");for(var c=0;c<l;c++)!t.touched(i=s[c])&&(a=i.prevTouched(t))!==i&&(a===(o=i.nextTouched(t))&&t.setRelative(i,i,t.distance(a,a,!1,!0),t,!0),t.interpolate(i,a,o,t))}function H0(t,n){for(var i=n.stack,a=(t?n.z0:n.z1)[t?n.rp1:n.rp2],o=n.fv,s=n.pv,l=n.loop,c=n.z2;l--;){var h=i.pop(),d=c[h],u=s.distance(a,a,!1,!0);o.setRelative(d,d,u,s),o.touch(d),e.DEBUG&&r.log(n.step,(n.loop>1?"loop "+(n.loop-l)+": ":"")+"SHP["+(t?"rp1":"rp2")+"]",h)}n.loop=1}function G0(t,n){var i=(t?n.z0:n.z1)[t?n.rp1:n.rp2],a=n.fv,o=n.pv,s=n.stack.pop(),l=n.z2[n.contours[s]],c=l;e.DEBUG&&r.log(n.step,"SHC["+t+"]",s);var h=o.distance(i,i,!1,!0);do{c!==i&&a.setRelative(c,c,h,o),c=c.nextPointOnContour}while(c!==l)}function Z0(t,n){var i,a=(t?n.z0:n.z1)[t?n.rp1:n.rp2],o=n.fv,s=n.pv,l=n.stack.pop();switch(e.DEBUG&&r.log(n.step,"SHZ["+t+"]",l),l){case 0:i=n.tZone;break;case 1:i=n.gZone;break;default:throw new Error("Invalid zone")}for(var c,h=s.distance(a,a,!1,!0),d=i.length-2,u=0;u<d;u++)o.setRelative(c=i[u],c,h,s)}function U0(t,n){var i=n.stack,a=i.pop()/64,o=i.pop(),s=n.z1[o],l=n.fv;l.setRelative(s,n.z0[n.rp0],a,n.pv),l.touch(s),e.DEBUG&&r.log(n.step,"MSIRP["+t+"]",a,o),n.rp1=n.rp0,n.rp2=o,t&&(n.rp0=o)}function W0(t,n){var i=n.stack,a=i.pop(),o=i.pop(),s=n.z0[o],l=n.fv,c=n.pv,h=n.cvt[a];e.DEBUG&&r.log(n.step,"MIAP["+t+"]",a,"(",h,")",o);var d=c.distance(s,D0);t&&(Math.abs(d-h)<n.cvCutIn&&(d=h),d=n.round(d)),l.setRelative(s,D0,d,c),0===n.zp0&&(s.xo=s.x,s.yo=s.y),l.touch(s),n.rp0=n.rp1=o}function Y0(t,n){var i=n.stack,a=i.pop(),o=n.z2[a];e.DEBUG&&r.log(n.step,"GC["+t+"]",a),i.push(64*n.dpv.distance(o,D0,t,!1))}function j0(t,n){var i=n.stack,a=i.pop(),o=i.pop(),s=n.dpv.distance(n.z0[o],n.z1[a],t,t);e.DEBUG&&r.log(n.step,"MD["+t+"]",a,o,"->",s),n.stack.push(Math.round(64*s))}function X0(t,n){var i=n.stack,a=i.pop(),o=n.fv,s=n.pv,l=n.ppem,c=n.deltaBase+16*(t-1),h=n.deltaShift,d=n.z0;e.DEBUG&&r.log(n.step,"DELTAP["+t+"]",a,i);for(var u=0;u<a;u++){var m=i.pop(),p=i.pop();if(c+((240&p)>>4)===l){var g=(15&p)-8;g>=0&&g++,e.DEBUG&&r.log(n.step,"DELTAPFIX",m,"by",g*h);var f=d[m];o.setRelative(f,f,g*h,s)}}}function q0(t,n){var i=n.stack,a=i.pop();e.DEBUG&&r.log(n.step,"ROUND[]"),i.push(64*n.round(a/64))}function $0(t,n){var i=n.stack,a=i.pop(),o=n.ppem,s=n.deltaBase+16*(t-1),l=n.deltaShift;e.DEBUG&&r.log(n.step,"DELTAC["+t+"]",a,i);for(var c=0;c<a;c++){var h=i.pop(),d=i.pop();if(s+((240&d)>>4)===o){var u=(15&d)-8;u>=0&&u++;var m=u*l;e.DEBUG&&r.log(n.step,"DELTACFIX",h,"by",m),n.cvt[h]+=m}}}function K0(t,n){var i,a,o=n.stack,s=o.pop(),l=o.pop(),c=n.z2[s],h=n.z1[l];e.DEBUG&&r.log(n.step,"SDPVTL["+t+"]",s,l),t?(i=c.y-h.y,a=h.x-c.x):(i=h.x-c.x,a=h.y-c.y),n.dpv=_0(i,a)}function J0(t,n){var i=n.stack,a=n.prog,o=n.ip;e.DEBUG&&r.log(n.step,"PUSHB["+t+"]");for(var s=0;s<t;s++)i.push(a[++o]);n.ip=o}function Q0(t,n){var i=n.ip,a=n.prog,o=n.stack;e.DEBUG&&r.log(n.ip,"PUSHW["+t+"]");for(var s=0;s<t;s++){var l=a[++i]<<8|a[++i];32768&l&&(l=-(1+(65535^l))),o.push(l)}n.ip=i}function t2(t,n,i,a,o,s){var l,c,h,d,u=s.stack,m=t&&u.pop(),p=u.pop(),g=s.z0[s.rp0],f=s.z1[p],b=s.minDis,y=s.fv,v=s.dpv;h=(c=l=v.distance(f,g,!0,!0))>=0?1:-1,c=Math.abs(c),t&&(d=s.cvt[m],a&&Math.abs(c-d)<s.cvCutIn&&(c=d)),i&&c<b&&(c=b),a&&(c=s.round(c)),y.setRelative(f,g,h*c,v),y.touch(f),e.DEBUG&&r.log(s.step,(t?"MIRP[":"MDRP[")+(n?"M":"m")+(i?">":"_")+(a?"R":"_")+(0===o?"Gr":1===o?"Bl":2===o?"Wh":"")+"]",t?m+"("+s.cvt[m]+","+d+")":"",p,"(d =",l,"->",h*c,")"),s.rp1=s.rp0,s.rp2=p,n&&(s.rp0=p)}function e2(t){this.char=t,this.state={},this.activeState=null}function n2(t,e,n){this.contextName=n,this.startIndex=t,this.endOffset=e}function i2(t,e,n){this.contextName=t,this.openRange=null,this.ranges=[],this.checkStart=e,this.checkEnd=n}function r2(t,e){this.context=t,this.index=e,this.length=t.length,this.current=t[e],this.backtrack=t.slice(0,e),this.lookahead=t.slice(e+1)}function a2(t){this.eventId=t,this.subscribers=[]}function o2(t){var e=this,n=["start","end","next","newToken","contextStart","contextEnd","insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD","updateContextsRanges"];n.forEach((function(t){Object.defineProperty(e.events,t,{value:new a2(t)})})),t&&n.forEach((function(n){var i=t[n];"function"==typeof i&&e.events[n].subscribe(i)})),["insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD"].forEach((function(t){e.events[t].subscribe(e.updateContextsRanges)}))}function s2(t){this.tokens=[],this.registeredContexts={},this.contextCheckers=[],this.events={},this.registeredModifiers=[],o2.call(this,t)}function l2(t){return/[\u0600-\u065F\u066A-\u06D2\u06FA-\u06FF]/.test(t)}function c2(t){return/[\u0630\u0690\u0621\u0631\u0661\u0671\u0622\u0632\u0672\u0692\u06C2\u0623\u0673\u0693\u06C3\u0624\u0694\u06C4\u0625\u0675\u0695\u06C5\u06E5\u0676\u0696\u06C6\u0627\u0677\u0697\u06C7\u0648\u0688\u0698\u06C8\u0689\u0699\u06C9\u068A\u06CA\u066B\u068B\u06CB\u068C\u068D\u06CD\u06FD\u068E\u06EE\u06FE\u062F\u068F\u06CF\u06EF]/.test(t)}function h2(t){return/[\u0600-\u0605\u060C-\u060E\u0610-\u061B\u061E\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED]/.test(t)}function d2(t){return/[A-z]/.test(t)}function u2(t){this.font=t,this.features={}}function m2(t){this.id=t.id,this.tag=t.tag,this.substitution=t.substitution}function p2(t,e){if(!t)return-1;switch(e.format){case 1:return e.glyphs.indexOf(t);case 2:for(var n=e.ranges,i=0;i<n.length;i++){var r=n[i];if(t>=r.start&&t<=r.end)return r.index+(t-r.start)}break;default:return-1}return-1}function g2(t,e){return-1===p2(t,e.coverage)?null:t+e.deltaGlyphId}function f2(t,e){var n=p2(t,e.coverage);return-1===n?null:e.substitute[n]}function b2(t,e){for(var n=[],i=0;i<t.length;i++){var r=t[i],a=e.current,o=p2(a=Array.isArray(a)?a[0]:a,r);-1!==o&&n.push(o)}return n.length!==t.length?-1:n}function y2(t,e){if(t.context.length<e.inputCoverage.length+e.lookaheadCoverage.length+e.backtrackCoverage.length)return[];var n=b2(e.inputCoverage,t);if(-1===n)return[];if(t.lookahead.length<e.lookaheadCoverage.length)return[];for(var i=t.lookahead.slice(e.inputCoverage.length-1);i.length&&h2(i[0].char);)i.shift();var r=new r2(i,0),a=b2(e.lookaheadCoverage,r),o=[].concat(t.backtrack);for(o.reverse();o.length&&h2(o[0].char);)o.shift();if(o.length<e.backtrackCoverage.length)return[];var s=new r2(o,0),l=b2(e.backtrackCoverage,s),c=[];if(n.length===e.inputCoverage.length&&a.length===e.lookaheadCoverage.length&&l.length===e.backtrackCoverage.length)for(var h=0;h<e.lookupRecords.length;h++)for(var d=this.getLookupByIndex(e.lookupRecords[h].lookupListIndex),u=0;u<d.subtables.length;u++){var m=d.subtables[u],p=this.getLookupMethod(d,m);if("12"===this.getSubstitutionType(d,m))for(var g=0;g<n.length;g++){var f=p(t.get(g));f&&c.push(f)}}return c}function v2(t,e){var n=p2(t.current,e.coverage);if(-1===n)return null;for(var i,r=e.ligatureSets[n],a=0;a<r.length;a++){i=r[a];for(var o=0;o<i.components.length&&t.lookahead[o]===i.components[o];o++)if(o===i.components.length-1)return i}return null}function w2(t,e){var n=p2(t,e.coverage);return-1===n?null:e.sequences[n]}g0.prototype.exec=function(t,n){if("number"!=typeof n)throw new Error("Point size is not a number!");if(!(this._errorState>2)){var i=this.font,a=this._prepState;if(!a||a.ppem!==n){var o=this._fpgmState;if(!o){O0.prototype=E0,(o=this._fpgmState=new O0("fpgm",i.tables.fpgm)).funcs=[],o.font=i,e.DEBUG&&(r.log("---EXEC FPGM---"),o.step=-1);try{d0(o)}catch(t){return r.log("Hinting error in FPGM:"+t),void(this._errorState=3)}}O0.prototype=o,(a=this._prepState=new O0("prep",i.tables.prep)).ppem=n;var s=i.tables.cvt;if(s)for(var l=a.cvt=new Array(s.length),c=n/i.unitsPerEm,h=0;h<s.length;h++)l[h]=s[h]*c;else a.cvt=[];e.DEBUG&&(r.log("---EXEC PREP---"),a.step=-1);try{d0(a)}catch(t){this._errorState<2&&r.log("Hinting error in PREP:"+t),this._errorState=2}}if(!(this._errorState>1))try{return u0(t,a)}catch(t){return this._errorState<1&&(r.log("Hinting error:"+t),r.log("Note: further hinting errors are silenced")),void(this._errorState=1)}}},u0=function(t,n){var i,a,o,s=n.ppem/n.font.unitsPerEm,l=s,c=t.components;if(O0.prototype=n,c){var h=n.font;a=[],i=[];for(var d=0;d<c.length;d++){var u=c[d],m=h.glyphs.get(u.glyphIndex);o=new O0("glyf",m.instructions),e.DEBUG&&(r.log("---EXEC COMP "+d+"---"),o.step=-1),m0(m,o,s,l);for(var p=Math.round(u.dx*s),g=Math.round(u.dy*l),f=o.gZone,b=o.contours,y=0;y<f.length;y++){var v=f[y];v.xTouched=v.yTouched=!1,v.xo=v.x=v.x+p,v.yo=v.y=v.y+g}var w=a.length;a.push.apply(a,f);for(var x=0;x<b.length;x++)i.push(b[x]+w)}t.instructions&&!o.inhibitGridFit&&((o=new O0("glyf",t.instructions)).gZone=o.z0=o.z1=o.z2=a,o.contours=i,a.push(new M0(0,0),new M0(Math.round(t.advanceWidth*s),0)),e.DEBUG&&(r.log("---EXEC COMPOSITE---"),o.step=-1),d0(o),a.length-=2)}else o=new O0("glyf",t.instructions),e.DEBUG&&(r.log("---EXEC GLYPH---"),o.step=-1),m0(t,o,s,l),a=o.gZone;return a},m0=function(t,n,i,a){for(var o,s=t.points||[],l=s.length,c=n.gZone=n.z0=n.z1=n.z2=[],h=n.contours=[],d=0;d<l;d++)c[d]=new M0((o=s[d]).x*i,o.y*a,o.lastPointOfContour,o.onCurve);for(var u,m,p=0;p<l;p++)o=c[p],u||(u=o,h.push(p)),o.lastPointOfContour?(o.nextPointOnContour=u,u.prevPointOnContour=o,u=void 0):(o.nextPointOnContour=m=c[p+1],m.prevPointOnContour=o);if(!n.inhibitGridFit){if(e.DEBUG){r.log("PROCESSING GLYPH",n.stack);for(var g=0;g<l;g++)r.log(g,c[g].x,c[g].y)}if(c.push(new M0(0,0),new M0(Math.round(t.advanceWidth*i),0)),d0(n),c.length-=2,e.DEBUG){r.log("FINISHED GLYPH",n.stack);for(var f=0;f<l;f++)r.log(f,c[f].x,c[f].y)}}},d0=function(t){var n=t.prog;if(n){var i,r=n.length;for(t.ip=0;t.ip<r;t.ip++){if(e.DEBUG&&t.step++,!(i=h0[n[t.ip]]))throw new Error("unknown instruction: 0x"+Number(n[t.ip]).toString(16));i(t)}}},h0=[I0.bind(void 0,S0),I0.bind(void 0,k0),L0.bind(void 0,S0),L0.bind(void 0,k0),z0.bind(void 0,S0),z0.bind(void 0,k0),R0.bind(void 0,0),R0.bind(void 0,1),F0.bind(void 0,0),F0.bind(void 0,1),function(t){var n=t.stack,i=n.pop(),a=n.pop();e.DEBUG&&r.log(t.step,"SPVFS[]",i,a),t.pv=t.dpv=_0(a,i)},function(t){var n=t.stack,i=n.pop(),a=n.pop();e.DEBUG&&r.log(t.step,"SPVFS[]",i,a),t.fv=_0(a,i)},function(t){var n=t.stack,i=t.pv;e.DEBUG&&r.log(t.step,"GPV[]"),n.push(16384*i.x),n.push(16384*i.y)},function(t){var n=t.stack,i=t.fv;e.DEBUG&&r.log(t.step,"GFV[]"),n.push(16384*i.x),n.push(16384*i.y)},function(t){t.fv=t.pv,e.DEBUG&&r.log(t.step,"SFVTPV[]")},function(t){var n=t.stack,i=n.pop(),a=n.pop(),o=n.pop(),s=n.pop(),l=n.pop(),c=t.z0,h=t.z1,d=c[i],u=c[a],m=h[o],p=h[s],g=t.z2[l];e.DEBUG&&r.log("ISECT[], ",i,a,o,s,l);var f=d.x,b=d.y,y=u.x,v=u.y,w=m.x,x=m.y,C=p.x,k=p.y,S=(f-y)*(x-k)-(b-v)*(w-C),P=f*v-b*y,_=w*k-x*C;g.x=(P*(w-C)-_*(f-y))/S,g.y=(P*(x-k)-_*(b-v))/S},function(t){t.rp0=t.stack.pop(),e.DEBUG&&r.log(t.step,"SRP0[]",t.rp0)},function(t){t.rp1=t.stack.pop(),e.DEBUG&&r.log(t.step,"SRP1[]",t.rp1)},function(t){t.rp2=t.stack.pop(),e.DEBUG&&r.log(t.step,"SRP2[]",t.rp2)},function(t){var n=t.stack.pop();switch(e.DEBUG&&r.log(t.step,"SZP0[]",n),t.zp0=n,n){case 0:t.tZone||A0(t),t.z0=t.tZone;break;case 1:t.z0=t.gZone;break;default:throw new Error("Invalid zone pointer")}},function(t){var n=t.stack.pop();switch(e.DEBUG&&r.log(t.step,"SZP1[]",n),t.zp1=n,n){case 0:t.tZone||A0(t),t.z1=t.tZone;break;case 1:t.z1=t.gZone;break;default:throw new Error("Invalid zone pointer")}},function(t){var n=t.stack.pop();switch(e.DEBUG&&r.log(t.step,"SZP2[]",n),t.zp2=n,n){case 0:t.tZone||A0(t),t.z2=t.tZone;break;case 1:t.z2=t.gZone;break;default:throw new Error("Invalid zone pointer")}},function(t){var n=t.stack.pop();switch(e.DEBUG&&r.log(t.step,"SZPS[]",n),t.zp0=t.zp1=t.zp2=n,n){case 0:t.tZone||A0(t),t.z0=t.z1=t.z2=t.tZone;break;case 1:t.z0=t.z1=t.z2=t.gZone;break;default:throw new Error("Invalid zone pointer")}},function(t){t.loop=t.stack.pop(),e.DEBUG&&r.log(t.step,"SLOOP[]",t.loop)},function(t){e.DEBUG&&r.log(t.step,"RTG[]"),t.round=b0},function(t){e.DEBUG&&r.log(t.step,"RTHG[]"),t.round=v0},function(t){var n=t.stack.pop();e.DEBUG&&r.log(t.step,"SMD[]",n),t.minDis=n/64},function(t){e.DEBUG&&r.log(t.step,"ELSE[]"),T0(t,!1)},function(t){var n=t.stack.pop();e.DEBUG&&r.log(t.step,"JMPR[]",n),t.ip+=n-1},function(t){var n=t.stack.pop();e.DEBUG&&r.log(t.step,"SCVTCI[]",n),t.cvCutIn=n/64},void 0,void 0,function(t){var n=t.stack;e.DEBUG&&r.log(t.step,"DUP[]"),n.push(n[n.length-1])},B0,function(t){e.DEBUG&&r.log(t.step,"CLEAR[]"),t.stack.length=0},function(t){var n=t.stack,i=n.pop(),a=n.pop();e.DEBUG&&r.log(t.step,"SWAP[]"),n.push(i),n.push(a)},function(t){var n=t.stack;e.DEBUG&&r.log(t.step,"DEPTH[]"),n.push(n.length)},function(t){var n=t.stack,i=n.pop();e.DEBUG&&r.log(t.step,"CINDEX[]",i),n.push(n[n.length-i])},function(t){var n=t.stack,i=n.pop();e.DEBUG&&r.log(t.step,"MINDEX[]",i),n.push(n.splice(n.length-i,1)[0])},void 0,void 0,void 0,function(t){var n=t.stack,i=n.pop(),a=n.pop();e.DEBUG&&r.log(t.step,"LOOPCALL[]",i,a);var o=t.ip,s=t.prog;t.prog=t.funcs[i];for(var l=0;l<a;l++)d0(t),e.DEBUG&&r.log(++t.step,l+1<a?"next loopcall":"done loopcall",l);t.ip=o,t.prog=s},function(t){var n=t.stack.pop();e.DEBUG&&r.log(t.step,"CALL[]",n);var i=t.ip,a=t.prog;t.prog=t.funcs[n],d0(t),t.ip=i,t.prog=a,e.DEBUG&&r.log(++t.step,"returning from",n)},function(t){if("fpgm"!==t.env)throw new Error("FDEF not allowed here");var n=t.prog,i=t.ip,a=t.stack.pop(),o=i;for(e.DEBUG&&r.log(t.step,"FDEF[]",a);45!==n[++i];);t.ip=i,t.funcs[a]=n.slice(o+1,i)},void 0,V0.bind(void 0,0),V0.bind(void 0,1),N0.bind(void 0,S0),N0.bind(void 0,k0),H0.bind(void 0,0),H0.bind(void 0,1),G0.bind(void 0,0),G0.bind(void 0,1),Z0.bind(void 0,0),Z0.bind(void 0,1),function(t){for(var n=t.stack,i=t.loop,a=t.fv,o=n.pop()/64,s=t.z2;i--;){var l=n.pop(),c=s[l];e.DEBUG&&r.log(t.step,(t.loop>1?"loop "+(t.loop-i)+": ":"")+"SHPIX[]",l,o),a.setRelative(c,c,o),a.touch(c)}t.loop=1},function(t){for(var n=t.stack,i=t.rp1,a=t.rp2,o=t.loop,s=t.z0[i],l=t.z1[a],c=t.fv,h=t.dpv,d=t.z2;o--;){var u=n.pop(),m=d[u];e.DEBUG&&r.log(t.step,(t.loop>1?"loop "+(t.loop-o)+": ":"")+"IP[]",u,i,"<->",a),c.interpolate(m,s,l,h),c.touch(m)}t.loop=1},U0.bind(void 0,0),U0.bind(void 0,1),function(t){for(var n=t.stack,i=t.z0[t.rp0],a=t.loop,o=t.fv,s=t.pv,l=t.z1;a--;){var c=n.pop(),h=l[c];e.DEBUG&&r.log(t.step,(t.loop>1?"loop "+(t.loop-a)+": ":"")+"ALIGNRP[]",c),o.setRelative(h,i,0,s),o.touch(h)}t.loop=1},function(t){e.DEBUG&&r.log(t.step,"RTDG[]"),t.round=y0},W0.bind(void 0,0),W0.bind(void 0,1),function(t){var n=t.prog,i=t.ip,a=t.stack,o=n[++i];e.DEBUG&&r.log(t.step,"NPUSHB[]",o);for(var s=0;s<o;s++)a.push(n[++i]);t.ip=i},function(t){var n=t.ip,i=t.prog,a=t.stack,o=i[++n];e.DEBUG&&r.log(t.step,"NPUSHW[]",o);for(var s=0;s<o;s++){var l=i[++n]<<8|i[++n];32768&l&&(l=-(1+(65535^l))),a.push(l)}t.ip=n},function(t){var n=t.stack,i=t.store;i||(i=t.store=[]);var a=n.pop(),o=n.pop();e.DEBUG&&r.log(t.step,"WS",a,o),i[o]=a},function(t){var n=t.stack,i=t.store,a=n.pop();e.DEBUG&&r.log(t.step,"RS",a),n.push(i&&i[a]||0)},function(t){var n=t.stack,i=n.pop(),a=n.pop();e.DEBUG&&r.log(t.step,"WCVTP",i,a),t.cvt[a]=i/64},function(t){var n=t.stack,i=n.pop();e.DEBUG&&r.log(t.step,"RCVT",i),n.push(64*t.cvt[i])},Y0.bind(void 0,0),Y0.bind(void 0,1),void 0,j0.bind(void 0,0),j0.bind(void 0,1),function(t){e.DEBUG&&r.log(t.step,"MPPEM[]"),t.stack.push(t.ppem)},void 0,function(t){e.DEBUG&&r.log(t.step,"FLIPON[]"),t.autoFlip=!0},void 0,void 0,function(t){var n=t.stack,i=n.pop(),a=n.pop();e.DEBUG&&r.log(t.step,"LT[]",i,a),n.push(a<i?1:0)},function(t){var n=t.stack,i=n.pop(),a=n.pop();e.DEBUG&&r.log(t.step,"LTEQ[]",i,a),n.push(a<=i?1:0)},function(t){var n=t.stack,i=n.pop(),a=n.pop();e.DEBUG&&r.log(t.step,"GT[]",i,a),n.push(a>i?1:0)},function(t){var n=t.stack,i=n.pop(),a=n.pop();e.DEBUG&&r.log(t.step,"GTEQ[]",i,a),n.push(a>=i?1:0)},function(t){var n=t.stack,i=n.pop(),a=n.pop();e.DEBUG&&r.log(t.step,"EQ[]",i,a),n.push(i===a?1:0)},function(t){var n=t.stack,i=n.pop(),a=n.pop();e.DEBUG&&r.log(t.step,"NEQ[]",i,a),n.push(i!==a?1:0)},function(t){var n=t.stack,i=n.pop();e.DEBUG&&r.log(t.step,"ODD[]",i),n.push(Math.trunc(i)%2?1:0)},function(t){var n=t.stack,i=n.pop();e.DEBUG&&r.log(t.step,"EVEN[]",i),n.push(Math.trunc(i)%2?0:1)},function(t){var n=t.stack.pop();e.DEBUG&&r.log(t.step,"IF[]",n),n||(T0(t,!0),e.DEBUG&&r.log(t.step,"EIF[]"))},function(t){e.DEBUG&&r.log(t.step,"EIF[]")},function(t){var n=t.stack,i=n.pop(),a=n.pop();e.DEBUG&&r.log(t.step,"AND[]",i,a),n.push(i&&a?1:0)},function(t){var n=t.stack,i=n.pop(),a=n.pop();e.DEBUG&&r.log(t.step,"OR[]",i,a),n.push(i||a?1:0)},function(t){var n=t.stack,i=n.pop();e.DEBUG&&r.log(t.step,"NOT[]",i),n.push(i?0:1)},X0.bind(void 0,1),function(t){var n=t.stack.pop();e.DEBUG&&r.log(t.step,"SDB[]",n),t.deltaBase=n},function(t){var n=t.stack.pop();e.DEBUG&&r.log(t.step,"SDS[]",n),t.deltaShift=Math.pow(.5,n)},function(t){var n=t.stack,i=n.pop(),a=n.pop();e.DEBUG&&r.log(t.step,"ADD[]",i,a),n.push(a+i)},function(t){var n=t.stack,i=n.pop(),a=n.pop();e.DEBUG&&r.log(t.step,"SUB[]",i,a),n.push(a-i)},function(t){var n=t.stack,i=n.pop(),a=n.pop();e.DEBUG&&r.log(t.step,"DIV[]",i,a),n.push(64*a/i)},function(t){var n=t.stack,i=n.pop(),a=n.pop();e.DEBUG&&r.log(t.step,"MUL[]",i,a),n.push(a*i/64)},function(t){var n=t.stack,i=n.pop();e.DEBUG&&r.log(t.step,"ABS[]",i),n.push(Math.abs(i))},function(t){var n=t.stack,i=n.pop();e.DEBUG&&r.log(t.step,"NEG[]",i),n.push(-i)},function(t){var n=t.stack,i=n.pop();e.DEBUG&&r.log(t.step,"FLOOR[]",i),n.push(64*Math.floor(i/64))},function(t){var n=t.stack,i=n.pop();e.DEBUG&&r.log(t.step,"CEILING[]",i),n.push(64*Math.ceil(i/64))},q0.bind(void 0,0),q0.bind(void 0,1),q0.bind(void 0,2),q0.bind(void 0,3),void 0,void 0,void 0,void 0,function(t){var n=t.stack,i=n.pop(),a=n.pop();e.DEBUG&&r.log(t.step,"WCVTF[]",i,a),t.cvt[a]=i*t.ppem/t.font.unitsPerEm},X0.bind(void 0,2),X0.bind(void 0,3),$0.bind(void 0,1),$0.bind(void 0,2),$0.bind(void 0,3),function(t){var n,i=t.stack.pop();switch(e.DEBUG&&r.log(t.step,"SROUND[]",i),t.round=C0,192&i){case 0:n=.5;break;case 64:n=1;break;case 128:n=2;break;default:throw new Error("invalid SROUND value")}switch(t.srPeriod=n,48&i){case 0:t.srPhase=0;break;case 16:t.srPhase=.25*n;break;case 32:t.srPhase=.5*n;break;case 48:t.srPhase=.75*n;break;default:throw new Error("invalid SROUND value")}t.srThreshold=0==(i&=15)?0:(i/8-.5)*n},function(t){var n,i=t.stack.pop();switch(e.DEBUG&&r.log(t.step,"S45ROUND[]",i),t.round=C0,192&i){case 0:n=Math.sqrt(2)/2;break;case 64:n=Math.sqrt(2);break;case 128:n=2*Math.sqrt(2);break;default:throw new Error("invalid S45ROUND value")}switch(t.srPeriod=n,48&i){case 0:t.srPhase=0;break;case 16:t.srPhase=.25*n;break;case 32:t.srPhase=.5*n;break;case 48:t.srPhase=.75*n;break;default:throw new Error("invalid S45ROUND value")}t.srThreshold=0==(i&=15)?0:(i/8-.5)*n},void 0,void 0,function(t){e.DEBUG&&r.log(t.step,"ROFF[]"),t.round=f0},void 0,function(t){e.DEBUG&&r.log(t.step,"RUTG[]"),t.round=w0},function(t){e.DEBUG&&r.log(t.step,"RDTG[]"),t.round=x0},B0,B0,void 0,void 0,void 0,void 0,void 0,function(t){var n=t.stack.pop();e.DEBUG&&r.log(t.step,"SCANCTRL[]",n)},K0.bind(void 0,0),K0.bind(void 0,1),function(t){var n=t.stack,i=n.pop(),a=0;e.DEBUG&&r.log(t.step,"GETINFO[]",i),1&i&&(a=35),32&i&&(a|=4096),n.push(a)},void 0,function(t){var n=t.stack,i=n.pop(),a=n.pop(),o=n.pop();e.DEBUG&&r.log(t.step,"ROLL[]"),n.push(a),n.push(i),n.push(o)},function(t){var n=t.stack,i=n.pop(),a=n.pop();e.DEBUG&&r.log(t.step,"MAX[]",i,a),n.push(Math.max(a,i))},function(t){var n=t.stack,i=n.pop(),a=n.pop();e.DEBUG&&r.log(t.step,"MIN[]",i,a),n.push(Math.min(a,i))},function(t){var n=t.stack.pop();e.DEBUG&&r.log(t.step,"SCANTYPE[]",n)},function(t){var n=t.stack.pop(),i=t.stack.pop();switch(e.DEBUG&&r.log(t.step,"INSTCTRL[]",n,i),n){case 1:return void(t.inhibitGridFit=!!i);case 2:return void(t.ignoreCvt=!!i);default:throw new Error("invalid INSTCTRL[] selector")}},void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,J0.bind(void 0,1),J0.bind(void 0,2),J0.bind(void 0,3),J0.bind(void 0,4),J0.bind(void 0,5),J0.bind(void 0,6),J0.bind(void 0,7),J0.bind(void 0,8),Q0.bind(void 0,1),Q0.bind(void 0,2),Q0.bind(void 0,3),Q0.bind(void 0,4),Q0.bind(void 0,5),Q0.bind(void 0,6),Q0.bind(void 0,7),Q0.bind(void 0,8),t2.bind(void 0,0,0,0,0,0),t2.bind(void 0,0,0,0,0,1),t2.bind(void 0,0,0,0,0,2),t2.bind(void 0,0,0,0,0,3),t2.bind(void 0,0,0,0,1,0),t2.bind(void 0,0,0,0,1,1),t2.bind(void 0,0,0,0,1,2),t2.bind(void 0,0,0,0,1,3),t2.bind(void 0,0,0,1,0,0),t2.bind(void 0,0,0,1,0,1),t2.bind(void 0,0,0,1,0,2),t2.bind(void 0,0,0,1,0,3),t2.bind(void 0,0,0,1,1,0),t2.bind(void 0,0,0,1,1,1),t2.bind(void 0,0,0,1,1,2),t2.bind(void 0,0,0,1,1,3),t2.bind(void 0,0,1,0,0,0),t2.bind(void 0,0,1,0,0,1),t2.bind(void 0,0,1,0,0,2),t2.bind(void 0,0,1,0,0,3),t2.bind(void 0,0,1,0,1,0),t2.bind(void 0,0,1,0,1,1),t2.bind(void 0,0,1,0,1,2),t2.bind(void 0,0,1,0,1,3),t2.bind(void 0,0,1,1,0,0),t2.bind(void 0,0,1,1,0,1),t2.bind(void 0,0,1,1,0,2),t2.bind(void 0,0,1,1,0,3),t2.bind(void 0,0,1,1,1,0),t2.bind(void 0,0,1,1,1,1),t2.bind(void 0,0,1,1,1,2),t2.bind(void 0,0,1,1,1,3),t2.bind(void 0,1,0,0,0,0),t2.bind(void 0,1,0,0,0,1),t2.bind(void 0,1,0,0,0,2),t2.bind(void 0,1,0,0,0,3),t2.bind(void 0,1,0,0,1,0),t2.bind(void 0,1,0,0,1,1),t2.bind(void 0,1,0,0,1,2),t2.bind(void 0,1,0,0,1,3),t2.bind(void 0,1,0,1,0,0),t2.bind(void 0,1,0,1,0,1),t2.bind(void 0,1,0,1,0,2),t2.bind(void 0,1,0,1,0,3),t2.bind(void 0,1,0,1,1,0),t2.bind(void 0,1,0,1,1,1),t2.bind(void 0,1,0,1,1,2),t2.bind(void 0,1,0,1,1,3),t2.bind(void 0,1,1,0,0,0),t2.bind(void 0,1,1,0,0,1),t2.bind(void 0,1,1,0,0,2),t2.bind(void 0,1,1,0,0,3),t2.bind(void 0,1,1,0,1,0),t2.bind(void 0,1,1,0,1,1),t2.bind(void 0,1,1,0,1,2),t2.bind(void 0,1,1,0,1,3),t2.bind(void 0,1,1,1,0,0),t2.bind(void 0,1,1,1,0,1),t2.bind(void 0,1,1,1,0,2),t2.bind(void 0,1,1,1,0,3),t2.bind(void 0,1,1,1,1,0),t2.bind(void 0,1,1,1,1,1),t2.bind(void 0,1,1,1,1,2),t2.bind(void 0,1,1,1,1,3)],e2.prototype.setState=function(t,e){return this.state[t]=e,this.activeState={key:t,value:this.state[t]},this.activeState},e2.prototype.getState=function(t){return this.state[t]||null},s2.prototype.inboundIndex=function(t){return t>=0&&t<this.tokens.length},s2.prototype.composeRUD=function(t){var e=this,n=t.map((function(t){return e[t[0]].apply(e,t.slice(1).concat(!0))})),i=function(t){return"object"==typeof t&&t.hasOwnProperty("FAIL")};if(n.every(i))return{FAIL:"composeRUD: one or more operations hasn't completed successfully",report:n.filter(i)};this.dispatch("composeRUD",[n.filter((function(t){return!i(t)}))])},s2.prototype.replaceRange=function(t,e,n,i){e=null!==e?e:this.tokens.length;var r=n.every((function(t){return t instanceof e2}));if(!isNaN(t)&&this.inboundIndex(t)&&r){var a=this.tokens.splice.apply(this.tokens,[t,e].concat(n));return i||this.dispatch("replaceToken",[t,e,n]),[a,n]}return{FAIL:"replaceRange: invalid tokens or startIndex."}},s2.prototype.replaceToken=function(t,e,n){if(!isNaN(t)&&this.inboundIndex(t)&&e instanceof e2){var i=this.tokens.splice(t,1,e);return n||this.dispatch("replaceToken",[t,e]),[i[0],e]}return{FAIL:"replaceToken: invalid token or index."}},s2.prototype.removeRange=function(t,e,n){e=isNaN(e)?this.tokens.length:e;var i=this.tokens.splice(t,e);return n||this.dispatch("removeRange",[i,t,e]),i},s2.prototype.removeToken=function(t,e){if(!isNaN(t)&&this.inboundIndex(t)){var n=this.tokens.splice(t,1);return e||this.dispatch("removeToken",[n,t]),n}return{FAIL:"removeToken: invalid token index."}},s2.prototype.insertToken=function(t,e,n){return t.every((function(t){return t instanceof e2}))?(this.tokens.splice.apply(this.tokens,[e,0].concat(t)),n||this.dispatch("insertToken",[t,e]),t):{FAIL:"insertToken: invalid token(s)."}},s2.prototype.registerModifier=function(t,e,n){this.events.newToken.subscribe((function(i,r){if(null===e||!0===e.apply(this,[i,r])){var a=n.apply(this,[i,r]);i.setState(t,a)}})),this.registeredModifiers.push(t)},a2.prototype.subscribe=function(t){return"function"==typeof t?this.subscribers.push(t)-1:{FAIL:"invalid '"+this.eventId+"' event handler"}},a2.prototype.unsubscribe=function(t){this.subscribers.splice(t,1)},r2.prototype.setCurrentIndex=function(t){this.index=t,this.current=this.context[t],this.backtrack=this.context.slice(0,t),this.lookahead=this.context.slice(t+1)},r2.prototype.get=function(t){switch(!0){case 0===t:return this.current;case t<0&&Math.abs(t)<=this.backtrack.length:return this.backtrack.slice(t)[0];case t>0&&t<=this.lookahead.length:return this.lookahead[t-1];default:return null}},s2.prototype.rangeToText=function(t){if(t instanceof n2)return this.getRangeTokens(t).map((function(t){return t.char})).join("")},s2.prototype.getText=function(){return this.tokens.map((function(t){return t.char})).join("")},s2.prototype.getContext=function(t){return this.registeredContexts[t]||null},s2.prototype.on=function(t,e){var n=this.events[t];return n?n.subscribe(e):null},s2.prototype.dispatch=function(t,e){var n=this,i=this.events[t];i instanceof a2&&i.subscribers.forEach((function(t){t.apply(n,e||[])}))},s2.prototype.registerContextChecker=function(t,e,n){if(this.getContext(t))return{FAIL:"context name '"+t+"' is already registered."};if("function"!=typeof e)return{FAIL:"missing context start check."};if("function"!=typeof n)return{FAIL:"missing context end check."};var i=new i2(t,e,n);return this.registeredContexts[t]=i,this.contextCheckers.push(i),i},s2.prototype.getRangeTokens=function(t){return[].concat(this.tokens.slice(t.startIndex,t.startIndex+t.endOffset))},s2.prototype.getContextRanges=function(t){var e=this.getContext(t);return e?e.ranges:{FAIL:"context checker '"+t+"' is not registered."}},s2.prototype.resetContextsRanges=function(){var t=this.registeredContexts;for(var e in t)t.hasOwnProperty(e)&&(t[e].ranges=[])},s2.prototype.updateContextsRanges=function(){this.resetContextsRanges();for(var t=this.tokens.map((function(t){return t.char})),e=0;e<t.length;e++){var n=new r2(t,e);this.runContextCheck(n)}this.dispatch("updateContextsRanges",[this.registeredContexts])},s2.prototype.setEndOffset=function(t,e){var n=new n2(this.getContext(e).openRange.startIndex,t,e),i=this.getContext(e).ranges;return n.rangeId=e+"."+i.length,i.push(n),this.getContext(e).openRange=null,n},s2.prototype.runContextCheck=function(t){var e=this,n=t.index;this.contextCheckers.forEach((function(i){var r=i.contextName,a=e.getContext(r).openRange;if(!a&&i.checkStart(t)&&(a=new n2(n,null,r),e.getContext(r).openRange=a,e.dispatch("contextStart",[r,n])),a&&i.checkEnd(t)){var o=e.setEndOffset(n-a.startIndex+1,r);e.dispatch("contextEnd",[r,o])}}))},s2.prototype.tokenize=function(t){this.tokens=[],this.resetContextsRanges();var e=Array.from(t);this.dispatch("start");for(var n=0;n<e.length;n++){var i=e[n],r=new r2(e,n);this.dispatch("next",[r]),this.runContextCheck(r);var a=new e2(i);this.tokens.push(a),this.dispatch("newToken",[a,r])}return this.dispatch("end",[this.tokens]),this.tokens},u2.prototype.getDefaultScriptFeaturesIndexes=function(){for(var t=this.font.tables.gsub.scripts,e=0;e<t.length;e++){var n=t[e];if("DFLT"===n.tag)return n.script.defaultLangSys.featureIndexes}return[]},u2.prototype.getScriptFeaturesIndexes=function(t){if(!this.font.tables.gsub)return[];if(!t)return this.getDefaultScriptFeaturesIndexes();for(var e=this.font.tables.gsub.scripts,n=0;n<e.length;n++){var i=e[n];if(i.tag===t&&i.script.defaultLangSys)return i.script.defaultLangSys.featureIndexes;var r=i.langSysRecords;if(r)for(var a=0;a<r.length;a++){var o=r[a];if(o.tag===t)return o.langSys.featureIndexes}}return this.getDefaultScriptFeaturesIndexes()},u2.prototype.mapTagsToFeatures=function(t,e){for(var n={},i=0;i<t.length;i++)n[t[i].tag]=t[i].feature;this.features[e].tags=n},u2.prototype.getScriptFeatures=function(t){var e=this.features[t];if(this.features.hasOwnProperty(t))return e;var n=this.getScriptFeaturesIndexes(t);if(!n)return null;var i=this.font.tables.gsub;return e=n.map((function(t){return i.features[t]})),this.features[t]=e,this.mapTagsToFeatures(e,t),e},u2.prototype.getSubstitutionType=function(t,e){return t.lookupType.toString()+e.substFormat.toString()},u2.prototype.getLookupMethod=function(t,e){var n=this;switch(this.getSubstitutionType(t,e)){case"11":return function(t){return g2.apply(n,[t,e])};case"12":return function(t){return f2.apply(n,[t,e])};case"63":return function(t){return y2.apply(n,[t,e])};case"41":return function(t){return v2.apply(n,[t,e])};case"21":return function(t){return w2.apply(n,[t,e])};default:throw new Error("lookupType: "+t.lookupType+" - substFormat: "+e.substFormat+" is not yet supported")}},u2.prototype.lookupFeature=function(t){var e=t.contextParams,n=e.index,i=this.getFeature({tag:t.tag,script:t.script});if(!i)return new Error("font '"+this.font.names.fullName.en+"' doesn't support feature '"+t.tag+"' for script '"+t.script+"'.");for(var r=this.getFeatureLookups(i),a=[].concat(e.context),o=0;o<r.length;o++)for(var s=r[o],l=this.getLookupSubtables(s),c=0;c<l.length;c++){var h=l[c],d=this.getSubstitutionType(s,h),u=this.getLookupMethod(s,h),m=void 0;switch(d){case"11":(m=u(e.current))&&a.splice(n,1,new m2({id:11,tag:t.tag,substitution:m}));break;case"12":(m=u(e.current))&&a.splice(n,1,new m2({id:12,tag:t.tag,substitution:m}));break;case"63":m=u(e),Array.isArray(m)&&m.length&&a.splice(n,1,new m2({id:63,tag:t.tag,substitution:m}));break;case"41":(m=u(e))&&a.splice(n,1,new m2({id:41,tag:t.tag,substitution:m}));break;case"21":(m=u(e.current))&&a.splice(n,1,new m2({id:21,tag:t.tag,substitution:m}))}e=new r2(a,n),(!Array.isArray(m)||m.length)&&(m=null)}return a.length?a:null},u2.prototype.supports=function(t){if(!t.script)return!1;this.getScriptFeatures(t.script);var e=this.features.hasOwnProperty(t.script);if(!t.tag)return e;var n=this.features[t.script].some((function(e){return e.tag===t.tag}));return e&&n},u2.prototype.getLookupSubtables=function(t){return t.subtables||null},u2.prototype.getLookupByIndex=function(t){return this.font.tables.gsub.lookups[t]||null},u2.prototype.getFeatureLookups=function(t){return t.lookupListIndexes.map(this.getLookupByIndex.bind(this))},u2.prototype.getFeature=function(t){if(!this.font)return{FAIL:"No font was found"};this.features.hasOwnProperty(t.script)||this.getScriptFeatures(t.script);var e=this.features[t.script];return e?e.tags[t.tag]?this.features[t.script].tags[t.tag]:null:{FAIL:"No feature for script "+t.script}};var x2={startCheck:function(t){var e=t.current,n=t.get(-1);return null===n&&l2(e)||!l2(n)&&l2(e)},endCheck:function(t){var e=t.get(1);return null===e||!l2(e)}},C2={startCheck:function(t){var e=t.current,n=t.get(-1);return(l2(e)||h2(e))&&!l2(n)},endCheck:function(t){var e=t.get(1);switch(!0){case null===e:return!0;case!l2(e)&&!h2(e):var n=/\s/.test(e);if(!n)return!0;if(n&&!t.lookahead.some((function(t){return l2(t)||h2(t)})))return!0;break;default:return!1}}},k2={11:function(t,e,n){e[n].setState(t.tag,t.substitution)},12:function(t,e,n){e[n].setState(t.tag,t.substitution)},63:function(t,e,n){t.substitution.forEach((function(i,r){e[n+r].setState(t.tag,i)}))},41:function(t,e,n){var i=e[n];i.setState(t.tag,t.substitution.ligGlyph);for(var r=t.substitution.components.length,a=0;a<r;a++)(i=e[n+a+1]).setState("deleted",!0)}};function S2(t,e,n){t instanceof m2&&k2[t.id]&&k2[t.id](t,e,n)}function P2(t){var e=this,n="arab",i=this.featuresTags.arab,a=this.tokenizer.getRangeTokens(t);if(1!==a.length){var o=new r2(a.map((function(t){return t.getState("glyphIndex")})),0),s=new r2(a.map((function(t){return t.char})),0);a.forEach((function(t,l){if(!h2(t.char)){o.setCurrentIndex(l),s.setCurrentIndex(l);var c,h=0;switch(function(t){for(var e=[].concat(t.backtrack),n=e.length-1;n>=0;n--){var i=e[n],r=c2(i),a=h2(i);if(!r&&!a)return!0;if(r)return!1}return!1}(s)&&(h|=1),function(t){if(c2(t.current))return!1;for(var e=0;e<t.lookahead.length;e++)if(!h2(t.lookahead[e]))return!0;return!1}(s)&&(h|=2),h){case 1:c="fina";break;case 2:c="init";break;case 3:c="medi"}if(-1!==i.indexOf(c)){var d=e.query.lookupFeature({tag:c,script:n,contextParams:o});if(d instanceof Error)return r.info(d.message);d.forEach((function(t,e){t instanceof m2&&(S2(t,a,e),o.context[e]=t.substitution)}))}}}))}}function _2(t,e){return new r2(t.map((function(t){return t.activeState.value})),e||0)}function M2(t){var e=this,n=this.tokenizer.getRangeTokens(t),i=_2(n);i.context.forEach((function(t,r){i.setCurrentIndex(r);var a=e.query.lookupFeature({tag:"rlig",script:"arab",contextParams:i});a.length&&(a.forEach((function(t){return S2(t,n,r)})),i=_2(n))}))}var D2={startCheck:function(t){var e=t.current,n=t.get(-1);return null===n&&d2(e)||!d2(n)&&d2(e)},endCheck:function(t){var e=t.get(1);return null===e||!d2(e)}};function E2(t,e){return new r2(t.map((function(t){return t.activeState.value})),e||0)}function O2(t){var e=this,n=this.tokenizer.getRangeTokens(t),i=E2(n);i.context.forEach((function(t,r){i.setCurrentIndex(r);var a=e.query.lookupFeature({tag:"liga",script:"latn",contextParams:i});a.length&&(a.forEach((function(t){return S2(t,n,r)})),i=E2(n))}))}function A2(t){this.baseDir=t||"ltr",this.tokenizer=new s2,this.featuresTags={}}function T2(t){var e=this.contextChecks[t+"Check"];return this.tokenizer.registerContextChecker(t,e.startCheck,e.endCheck)}function I2(){return T2.call(this,"latinWord"),T2.call(this,"arabicWord"),T2.call(this,"arabicSentence"),this.tokenizer.tokenize(this.text)}function L2(){var t=this;this.tokenizer.getContextRanges("arabicSentence").forEach((function(e){var n=t.tokenizer.getRangeTokens(e);t.tokenizer.replaceRange(e.startIndex,e.endOffset,n.reverse())}))}function z2(){if(-1===this.tokenizer.registeredModifiers.indexOf("glyphIndex"))throw new Error("glyphIndex modifier is required to apply arabic presentation features.")}function R2(){var t=this;this.featuresTags.hasOwnProperty("arab")&&(z2.call(this),this.tokenizer.getContextRanges("arabicWord").forEach((function(e){P2.call(t,e)})))}function F2(){var t=this,e="arab";this.featuresTags.hasOwnProperty(e)&&-1!==this.featuresTags.arab.indexOf("rlig")&&(z2.call(this),this.tokenizer.getContextRanges("arabicWord").forEach((function(e){M2.call(t,e)})))}function B2(){var t=this,e="latn";this.featuresTags.hasOwnProperty(e)&&-1!==this.featuresTags.latn.indexOf("liga")&&(z2.call(this),this.tokenizer.getContextRanges("latinWord").forEach((function(e){O2.call(t,e)})))}function V2(t){(t=t||{}).tables=t.tables||{},t.empty||(r0(t.familyName,"When creating a new Font object, familyName is required."),r0(t.styleName,"When creating a new Font object, styleName is required."),r0(t.unitsPerEm,"When creating a new Font object, unitsPerEm is required."),r0(t.ascender,"When creating a new Font object, ascender is required."),r0(t.descender<=0,"When creating a new Font object, negative descender value is required."),this.names={fontFamily:{en:t.familyName||" "},fontSubfamily:{en:t.styleName||" "},fullName:{en:t.fullName||t.familyName+" "+t.styleName},postScriptName:{en:t.postScriptName||(t.familyName+t.styleName).replace(/\s/g,"")},designer:{en:t.designer||" "},designerURL:{en:t.designerURL||" "},manufacturer:{en:t.manufacturer||" "},manufacturerURL:{en:t.manufacturerURL||" "},license:{en:t.license||" "},licenseURL:{en:t.licenseURL||" "},version:{en:t.version||"Version 0.1"},description:{en:t.description||" "},copyright:{en:t.copyright||" "},trademark:{en:t.trademark||" "}},this.unitsPerEm=t.unitsPerEm||1e3,this.ascender=t.ascender,this.descender=t.descender,this.createdTimestamp=t.createdTimestamp,this.tables=Object.assign(t.tables,{os2:Object.assign({usWeightClass:t.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:t.widthClass||this.usWidthClasses.MEDIUM,fsSelection:t.fsSelection||this.fsSelectionValues.REGULAR},t.tables.os2)})),this.supported=!0,this.glyphs=new o1.GlyphSet(this,t.glyphs||[]),this.encoding=new JQ(this),this.position=new t0(this),this.substitution=new e0(this),this.tables=this.tables||{},this._push=null,this._hmtxTableData={},Object.defineProperty(this,"hinting",{get:function(){return this._hinting?this._hinting:"truetype"===this.outlinesFormat?this._hinting=new g0(this):void 0}})}function N2(t,e,n,i){var r={},a=new YQ.Parser(t,e);r.name=i[a.parseUShort()]||{},a.skip("uShort",1),r.coordinates={};for(var o=0;o<n.length;++o)r.coordinates[n[o].tag]=a.parseFixed();return r}A2.prototype.setText=function(t){this.text=t},A2.prototype.contextChecks={latinWordCheck:D2,arabicWordCheck:x2,arabicSentenceCheck:C2},A2.prototype.registerFeatures=function(t,e){var n=this,i=e.filter((function(e){return n.query.supports({script:t,tag:e})}));this.featuresTags[t]=this.featuresTags.hasOwnProperty(t)?this.featuresTags[t].concat(i):i},A2.prototype.applyFeatures=function(t,e){if(!t)throw new Error("No valid font was provided to apply features");this.query||(this.query=new u2(t));for(var n=0;n<e.length;n++){var i=e[n];!this.query.supports({script:i.script})||this.registerFeatures(i.script,i.tags)}},A2.prototype.registerModifier=function(t,e,n){this.tokenizer.registerModifier(t,e,n)},A2.prototype.checkContextReady=function(t){return!!this.tokenizer.getContext(t)},A2.prototype.applyFeaturesToContexts=function(){this.checkContextReady("arabicWord")&&(R2.call(this),F2.call(this)),this.checkContextReady("latinWord")&&B2.call(this),this.checkContextReady("arabicSentence")&&L2.call(this)},A2.prototype.processText=function(t){(!this.text||this.text!==t)&&(this.setText(t),I2.call(this),this.applyFeaturesToContexts())},A2.prototype.getBidiText=function(t){return this.processText(t),this.tokenizer.getText()},A2.prototype.getTextGlyphs=function(t){this.processText(t);for(var e=[],n=0;n<this.tokenizer.tokens.length;n++){var i=this.tokenizer.tokens[n];if(!i.state.deleted){var r=i.activeState.value;e.push(Array.isArray(r)?r[0]:r)}}return e},V2.prototype.hasChar=function(t){return null!==this.encoding.charToGlyphIndex(t)},V2.prototype.charToGlyphIndex=function(t){return this.encoding.charToGlyphIndex(t)},V2.prototype.charToGlyph=function(t){var e=this.charToGlyphIndex(t),n=this.glyphs.get(e);return n||(n=this.glyphs.get(0)),n},V2.prototype.updateFeatures=function(t){return this.defaultRenderOptions.features.map((function(e){return"latn"===e.script?{script:"latn",tags:e.tags.filter((function(e){return t[e]}))}:e}))},V2.prototype.stringToGlyphs=function(t,e){var n=this,i=new A2;i.registerModifier("glyphIndex",null,(function(t){return n.charToGlyphIndex(t.char)}));var r=e?this.updateFeatures(e.features):this.defaultRenderOptions.features;i.applyFeatures(this,r);for(var a=i.getTextGlyphs(t),o=a.length,s=new Array(o),l=this.glyphs.get(0),c=0;c<o;c+=1)s[c]=this.glyphs.get(a[c])||l;return s},V2.prototype.nameToGlyphIndex=function(t){return this.glyphNames.nameToGlyphIndex(t)},V2.prototype.nameToGlyph=function(t){var e=this.nameToGlyphIndex(t),n=this.glyphs.get(e);return n||(n=this.glyphs.get(0)),n},V2.prototype.glyphIndexToName=function(t){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(t):""},V2.prototype.getKerningValue=function(t,e){t=t.index||t,e=e.index||e;var n=this.position.defaultKerningTables;return n?this.position.getKerningValue(n,t,e):this.kerningPairs[t+","+e]||0},V2.prototype.defaultRenderOptions={kerning:!0,features:[{script:"arab",tags:["init","medi","fina","rlig"]},{script:"latn",tags:["liga","rlig"]}]},V2.prototype.forEachGlyph=function(t,e,n,i,r,a){e=void 0!==e?e:0,n=void 0!==n?n:0,i=void 0!==i?i:72,r=Object.assign({},this.defaultRenderOptions,r);var o,s=1/this.unitsPerEm*i,l=this.stringToGlyphs(t,r);if(r.kerning){var c=r.script||this.position.getDefaultScriptName();o=this.position.getKerningTables(c,r.language)}for(var h=0;h<l.length;h+=1){var d=l[h];a.call(this,d,e,n,i,r),d.advanceWidth&&(e+=d.advanceWidth*s),r.kerning&&h<l.length-1&&(e+=(o?this.position.getKerningValue(o,d.index,l[h+1].index):this.getKerningValue(d,l[h+1]))*s),r.letterSpacing?e+=r.letterSpacing*i:r.tracking&&(e+=r.tracking/1e3*i)}return e},V2.prototype.getPath=function(t,e,n,i,r){var a=new mQ;return this.forEachGlyph(t,e,n,i,r,(function(t,e,n,i){var o=t.getPath(e,n,i,r,this);a.extend(o)})),a},V2.prototype.getPaths=function(t,e,n,i,r){var a=[];return this.forEachGlyph(t,e,n,i,r,(function(t,e,n,i){var o=t.getPath(e,n,i,r,this);a.push(o)})),a},V2.prototype.getAdvanceWidth=function(t,e,n){return this.forEachGlyph(t,0,0,e,n,(function(){}))},V2.prototype.draw=function(t,e,n,i,r,a){this.getPath(e,n,i,r,a).draw(t)},V2.prototype.drawPoints=function(t,e,n,i,r,a){this.forEachGlyph(e,n,i,r,a,(function(e,n,i,r){e.drawPoints(t,n,i,r)}))},V2.prototype.drawMetrics=function(t,e,n,i,r,a){this.forEachGlyph(e,n,i,r,a,(function(e,n,i,r){e.drawMetrics(t,n,i,r)}))},V2.prototype.getEnglishName=function(t){var e=this.names[t];if(e)return e.en},V2.prototype.validate=function(){var t=this;function e(e){var n=t.getEnglishName(e);n&&n.trim()}e("fontFamily"),e("weightName"),e("manufacturer"),e("copyright"),e("version")},V2.prototype.toTables=function(){return q1(this)},V2.prototype.toBuffer=function(){return r.warn("Font.toBuffer is deprecated. Use Font.toArrayBuffer instead."),this.toArrayBuffer()},V2.prototype.toArrayBuffer=function(){for(var t=this.toTables().encode(),e=new ArrayBuffer(t.length),n=new Uint8Array(e),i=0;i<t.length;i++)n[i]=t[i];return e},V2.prototype.download=function(t){var e=this.getEnglishName("fontFamily"),n=this.getEnglishName("fontSubfamily");t=t||e.replace(/\s/g,"")+"-"+n+".otf";var i=this.toArrayBuffer();if("undefined"!=typeof window)if(window.URL=window.URL||window.webkitURL,window.URL){var a=new DataView(i),o=new Blob([a],{type:"font/opentype"}),s=document.createElement("a");s.href=window.URL.createObjectURL(o),s.download=t;var l=document.createEvent("MouseEvents");l.initEvent("click",!0,!1),s.dispatchEvent(l)}else r.warn("Font file could not be downloaded. Try using a different browser.")},V2.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512},V2.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9},V2.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};var H2=function(){return{coverage:this.parsePointer(UQ.coverage),attachPoints:this.parseList(UQ.pointer(UQ.uShortList))}},G2=function(){var t=this.parseUShort();return fQ.argument(1===t||2===t||3===t,"Unsupported CaretValue table version."),1===t?{coordinate:this.parseShort()}:2===t?{pointindex:this.parseShort()}:3===t?{coordinate:this.parseShort()}:void 0},Z2=function(){return this.parseList(UQ.pointer(G2))},U2=function(){return{coverage:this.parsePointer(UQ.coverage),ligGlyphs:this.parseList(UQ.pointer(Z2))}},W2=function(){return this.parseUShort(),this.parseList(UQ.pointer(UQ.coverage))},Y2=new Array(10);Y2[1]=function(){var t=this.offset+this.relativeOffset,e=this.parseUShort();return 1===e?{posFormat:1,coverage:this.parsePointer(UQ.coverage),value:this.parseValueRecord()}:2===e?{posFormat:2,coverage:this.parsePointer(UQ.coverage),values:this.parseValueRecordList()}:void fQ.assert(!1,"0x"+t.toString(16)+": GPOS lookup type 1 format must be 1 or 2.")},Y2[2]=function(){var t=this.offset+this.relativeOffset,e=this.parseUShort();fQ.assert(1===e||2===e,"0x"+t.toString(16)+": GPOS lookup type 2 format must be 1 or 2.");var n=this.parsePointer(UQ.coverage),i=this.parseUShort(),r=this.parseUShort();if(1===e)return{posFormat:e,coverage:n,valueFormat1:i,valueFormat2:r,pairSets:this.parseList(UQ.pointer(UQ.list((function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(i),value2:this.parseValueRecord(r)}}))))};if(2===e){var a=this.parsePointer(UQ.classDef),o=this.parsePointer(UQ.classDef),s=this.parseUShort(),l=this.parseUShort();return{posFormat:e,coverage:n,valueFormat1:i,valueFormat2:r,classDef1:a,classDef2:o,class1Count:s,class2Count:l,classRecords:this.parseList(s,UQ.list(l,(function(){return{value1:this.parseValueRecord(i),value2:this.parseValueRecord(r)}})))}}},Y2[3]=function(){return{error:"GPOS Lookup 3 not supported"}},Y2[4]=function(){return{error:"GPOS Lookup 4 not supported"}},Y2[5]=function(){return{error:"GPOS Lookup 5 not supported"}},Y2[6]=function(){return{error:"GPOS Lookup 6 not supported"}},Y2[7]=function(){return{error:"GPOS Lookup 7 not supported"}},Y2[8]=function(){return{error:"GPOS Lookup 8 not supported"}},Y2[9]=function(){return{error:"GPOS Lookup 9 not supported"}},new Array(10);function j2(t,e){}function X2(t,e){var n=new XMLHttpRequest;n.open("get",t,!0),n.responseType="arraybuffer",n.onload=function(){return n.response?e(null,n.response):e("Font could not be loaded: "+n.statusText)},n.onerror=function(){e("Font could not be loaded")},n.send()}function q2(t,e){for(var n=[],i=12,r=0;r<e;r+=1){var a=YQ.getTag(t,i),o=YQ.getULong(t,i+4),s=YQ.getULong(t,i+8),l=YQ.getULong(t,i+12);n.push({tag:a,checksum:o,offset:s,length:l,compression:!1}),i+=16}return n}function $2(t,e){if("WOFF"===e.compression){var n=new Uint8Array(t.buffer,e.offset+2,e.compressedLength-2),i=new Uint8Array(e.length);if(function(t,e){var n,i,r=new UJ(t,e);do{switch(n=aQ(r),oQ(r,2,0)){case 0:i=hQ(r);break;case 1:i=cQ(r,jJ,XJ);break;case 2:lQ(r,r.ltree,r.dtree),i=cQ(r,r.ltree,r.dtree);break;default:i=-3}if(0!==i)throw new Error("Data error")}while(!n);r.destLen<r.dest.length&&("function"==typeof r.dest.slice?r.dest.slice(0,r.destLen):r.dest.subarray(0,r.destLen))}(n,i),i.byteLength!==e.length)throw new Error("Decompression error: "+e.tag+" decompressed length doesn't match recorded length");return{data:new DataView(i.buffer,0),offset:0}}return{data:t,offset:e.offset}}function K2(t,e){e=null==e?{}:e;var n,i,a,o,s,l,c,h,d,u,m,p,g,f,b,y=new V2({empty:!0}),v=new DataView(t,0),w=[],x=YQ.getTag(v,0);if(x===String.fromCharCode(0,1,0,0)||"true"===x||"typ1"===x)y.outlinesFormat="truetype",w=q2(v,a=YQ.getUShort(v,4));else if("OTTO"===x)y.outlinesFormat="cff",w=q2(v,a=YQ.getUShort(v,4));else{if("wOFF"!==x)throw new Error("Unsupported OpenType signature "+x);var C=YQ.getTag(v,4);if(C===String.fromCharCode(0,1,0,0))y.outlinesFormat="truetype";else{if("OTTO"!==C)throw new Error("Unsupported OpenType flavor "+x);y.outlinesFormat="cff"}w=function(t,e){for(var n=[],i=44,r=0;r<e;r+=1){var a=YQ.getTag(t,i),o=YQ.getULong(t,i+4),s=YQ.getULong(t,i+8),l=YQ.getULong(t,i+12);n.push({tag:a,offset:o,compression:s<l&&"WOFF",compressedLength:s,length:l}),i+=20}return n}(v,a=YQ.getUShort(v,12))}for(var k,S,P,_,M,D,E,O,A,T,I,L,z=0;z<a;z+=1){var R=w[z],F=void 0;switch(R.tag){case"cmap":F=$2(v,R),y.tables.cmap=jQ(F.data,F.offset),y.encoding=new QQ(y.tables.cmap);break;case"cvt ":F=$2(v,R),L=new YQ.Parser(F.data,F.offset),y.tables.cvt=L.parseShortList(R.length/2);break;case"fvar":S=R;break;case"fpgm":F=$2(v,R),L=new YQ.Parser(F.data,F.offset),y.tables.fpgm=L.parseByteList(R.length);break;case"head":F=$2(v,R),y.tables.head=(p=F.data,g=F.offset,f=void 0,b=void 0,f={},b=new YQ.Parser(p,g),f.version=b.parseVersion(),f.fontRevision=Math.round(1e3*b.parseFixed())/1e3,f.checkSumAdjustment=b.parseULong(),f.magicNumber=b.parseULong(),fQ.argument(1594834165===f.magicNumber,"Font header has wrong magic number."),f.flags=b.parseUShort(),f.unitsPerEm=b.parseUShort(),f.created=b.parseLongDateTime(),f.modified=b.parseLongDateTime(),f.xMin=b.parseShort(),f.yMin=b.parseShort(),f.xMax=b.parseShort(),f.yMax=b.parseShort(),f.macStyle=b.parseUShort(),f.lowestRecPPEM=b.parseUShort(),f.fontDirectionHint=b.parseShort(),f.indexToLocFormat=b.parseShort(),f.glyphDataFormat=b.parseShort(),f),y.unitsPerEm=y.tables.head.unitsPerEm,n=y.tables.head.indexToLocFormat;break;case"hhea":F=$2(v,R),y.tables.hhea=(h=F.data,d=F.offset,u=void 0,m=void 0,u={},m=new YQ.Parser(h,d),u.version=m.parseVersion(),u.ascender=m.parseShort(),u.descender=m.parseShort(),u.lineGap=m.parseShort(),u.advanceWidthMax=m.parseUShort(),u.minLeftSideBearing=m.parseShort(),u.minRightSideBearing=m.parseShort(),u.xMaxExtent=m.parseShort(),u.caretSlopeRise=m.parseShort(),u.caretSlopeRun=m.parseShort(),u.caretOffset=m.parseShort(),m.relativeOffset+=8,u.metricDataFormat=m.parseShort(),u.numberOfHMetrics=m.parseUShort(),u),y.ascender=y.tables.hhea.ascender,y.descender=y.tables.hhea.descender,y.numberOfHMetrics=y.tables.hhea.numberOfHMetrics;break;case"hmtx":E=R;break;case"ltag":F=$2(v,R),i=S1(F.data,F.offset);break;case"maxp":F=$2(v,R),y.tables.maxp=(o=F.data,s=F.offset,l=void 0,c=void 0,l={},c=new YQ.Parser(o,s),l.version=c.parseVersion(),l.numGlyphs=c.parseUShort(),1===l.version&&(l.maxPoints=c.parseUShort(),l.maxContours=c.parseUShort(),l.maxCompositePoints=c.parseUShort(),l.maxCompositeContours=c.parseUShort(),l.maxZones=c.parseUShort(),l.maxTwilightPoints=c.parseUShort(),l.maxStorage=c.parseUShort(),l.maxFunctionDefs=c.parseUShort(),l.maxInstructionDefs=c.parseUShort(),l.maxStackElements=c.parseUShort(),l.maxSizeOfInstructions=c.parseUShort(),l.maxComponentElements=c.parseUShort(),l.maxComponentDepth=c.parseUShort()),l),y.numGlyphs=y.tables.maxp.numGlyphs;break;case"name":T=R;break;case"OS/2":F=$2(v,R),y.tables.os2=B1(F.data,F.offset);break;case"post":F=$2(v,R),y.tables.post=N1(F.data,F.offset),y.glyphNames=new e1(y.tables.post);break;case"prep":F=$2(v,R),L=new YQ.Parser(F.data,F.offset),y.tables.prep=L.parseByteList(R.length);break;case"glyf":P=R;break;case"loca":A=R;break;case"CFF ":k=R;break;case"kern":O=R;break;case"GDEF":_=R;break;case"GPOS":M=R;break;case"GSUB":D=R;break;case"meta":I=R}}var B=$2(v,T);if(y.tables.name=function(t,e,n){for(var i={},r=new YQ.Parser(t,e),a=r.parseUShort(),o=r.parseUShort(),s=r.offset+r.parseUShort(),l=0;l<o;l++){var c,h=r.parseUShort(),d=r.parseUShort(),u=r.parseUShort(),m=r.parseUShort(),p=P1[m]||m,g=r.parseUShort(),f=r.parseUShort(),b=E1(h,u,n),y=I1(h,d,u);if(void 0!==y&&void 0!==b&&(c=y===O1?yQ.UTF16(t,s+f,g):yQ.MACSTRING(t,s+f,g,y))){var v=i[p];void 0===v&&(v=i[p]={}),v[b]=c}}return 1===a&&r.parseUShort(),i}(B.data,B.offset,i),y.names=y.tables.name,P&&A){var V=0===n,N=$2(v,A),H=function(t,e,n,i){for(var r=new YQ.Parser(t,e),a=i?r.parseUShort:r.parseULong,o=[],s=0;s<n+1;s+=1){var l=a.call(r);i&&(l*=2),o.push(l)}return o}(N.data,N.offset,y.numGlyphs,V),G=$2(v,P);y.glyphs=p0.parse(G.data,G.offset,H,y,e)}else{if(!k)throw new Error("Font doesn't contain TrueType or CFF outlines.");var Z=$2(v,k);!function(t,e,n,i){n.tables.cff={};var r,a,o,s=(r=t,a=e,(o={}).formatMajor=YQ.getCard8(r,a),o.formatMinor=YQ.getCard8(r,a+1),o.size=YQ.getCard8(r,a+2),o.offsetSize=YQ.getCard8(r,a+3),o.startOffset=a,o.endOffset=a+4,o),l=c1(t,s.endOffset,YQ.bytesToString),c=c1(t,l.endOffset),h=c1(t,c.endOffset,YQ.bytesToString),d=c1(t,h.endOffset);n.gsubrs=d.objects,n.gsubrsBias=l1(n.gsubrs);var u=b1(t,e,c.objects,h.objects);if(1!==u.length)throw new Error("CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = "+u.length);var m=u[0];if(n.tables.cff.topDict=m,m._privateDict&&(n.defaultWidthX=m._privateDict.defaultWidthX,n.nominalWidthX=m._privateDict.nominalWidthX),void 0!==m.ros[0]&&void 0!==m.ros[1]&&(n.isCIDFont=!0),n.isCIDFont){var p=m.fdArray,g=m.fdSelect;if(0===p||0===g)throw new Error("Font is marked as a CID font, but FDArray and/or FDSelect information is missing");var f=c1(t,p+=e),b=b1(t,e,f.objects,h.objects);m._fdArray=b,m._fdSelect=function(t,e,n,i){var r,a=[],o=new YQ.Parser(t,e),s=o.parseCard8();if(0===s)for(var l=0;l<n;l++){if((r=o.parseCard8())>=i)throw new Error("CFF table CID Font FDSelect has bad FD index value "+r+" (FD count "+i+")");a.push(r)}else{if(3!==s)throw new Error("CFF Table CID Font FDSelect table has unsupported format "+s);var c=o.parseCard16(),h=o.parseCard16();if(0!==h)throw new Error("CFF Table CID Font FDSelect format 3 range has bad initial GID "+h);for(var d,u=0;u<c;u++){if(r=o.parseCard8(),d=o.parseCard16(),r>=i)throw new Error("CFF table CID Font FDSelect has bad FD index value "+r+" (FD count "+i+")");if(d>n)throw new Error("CFF Table CID Font FDSelect format 3 range has bad GID "+d);for(;h<d;h++)a.push(r);h=d}if(d!==n)throw new Error("CFF Table CID Font FDSelect format 3 range has bad final GID "+d)}return a}(t,g+=e,n.numGlyphs,b.length)}var y,v=e+m.private[1],w=f1(t,v,m.private[0],h.objects);if(n.defaultWidthX=w.defaultWidthX,n.nominalWidthX=w.nominalWidthX,0!==w.subrs){var x=c1(t,v+w.subrs);n.subrs=x.objects,n.subrsBias=l1(n.subrs)}else n.subrs=[],n.subrsBias=0;i.lowMemory?(y=function(t,e){var n,i,r=[],a=YQ.getCard16(t,e);if(0!==a){var o=YQ.getByte(t,e+2);n=e+(a+1)*o+2;for(var s=e+3,l=0;l<a+1;l+=1)r.push(YQ.getOffset(t,s,o)),s+=o;i=n+r[a]}else i=e+2;return{offsets:r,startOffset:e,endOffset:i}}(t,e+m.charStrings),n.nGlyphs=y.offsets.length):(y=c1(t,e+m.charStrings),n.nGlyphs=y.objects.length);var C=function(t,e,n,i){var r,a,o=new YQ.Parser(t,e);n-=1;var s=[".notdef"],l=o.parseCard8();if(0===l)for(var c=0;c<n;c+=1)r=o.parseSID(),s.push(u1(i,r));else if(1===l)for(;s.length<=n;){r=o.parseSID(),a=o.parseCard8();for(var h=0;h<=a;h+=1)s.push(u1(i,r)),r+=1}else{if(2!==l)throw new Error("Unknown charset format "+l);for(;s.length<=n;){r=o.parseSID(),a=o.parseCard16();for(var d=0;d<=a;d+=1)s.push(u1(i,r)),r+=1}}return s}(t,e+m.charset,n.nGlyphs,h.objects);if(n.cffEncoding=0===m.encoding?new t1(qQ,C):1===m.encoding?new t1($Q,C):function(t,e,n){var i,r={},a=new YQ.Parser(t,e),o=a.parseCard8();if(0===o)for(var s=a.parseCard8(),l=0;l<s;l+=1)r[i=a.parseCard8()]=l;else{if(1!==o)throw new Error("Unknown encoding format "+o);var c=a.parseCard8();i=1;for(var h=0;h<c;h+=1)for(var d=a.parseCard8(),u=a.parseCard8(),m=d;m<=d+u;m+=1)r[m]=i,i+=1}return new t1(r,n)}(t,e+m.encoding,C),n.encoding=n.encoding||n.cffEncoding,n.glyphs=new o1.GlyphSet(n),i.lowMemory)n._push=function(i){var r,a,o,s,l,c,h=(r=i,a=y.offsets,o=t,s=e+m.charStrings,c=0,0!==(l=YQ.getCard16(o,s))&&(c=s+(l+1)*YQ.getByte(o,s+2)+2),YQ.getBytes(o,c+a[r],c+a[r+1]));n.glyphs.push(i,o1.cffGlyphLoader(n,i,y1,h))};else for(var k=0;k<n.nGlyphs;k+=1)n.glyphs.push(k,o1.cffGlyphLoader(n,k,y1,y.objects[k]))}(Z.data,Z.offset,y,e)}var U,W,Y,j,X,q,$,K,J,Q,tt,et,nt,it,rt,at=$2(v,E);if(W=y,Y=at.data,j=at.offset,X=y.numberOfHMetrics,q=y.numGlyphs,$=y.glyphs,e.lowMemory?function(t,e,n,i,r){t._hmtxTableData={};for(var a,o,s=new YQ.Parser(e,n),l=0;l<r;l+=1)l<i&&(a=s.parseUShort(),o=s.parseShort()),t._hmtxTableData[l]={advanceWidth:a,leftSideBearing:o}}(W,Y,j,X,q):function(t,e,n,i,r){for(var a,o,s=new YQ.Parser(t,e),l=0;l<i;l+=1){l<n&&(a=s.parseUShort(),o=s.parseShort());var c=r.get(l);c.advanceWidth=a,c.leftSideBearing=o}}(Y,j,X,q,$),U=y,e.lowMemory?function(t){t._IndexToUnicodeMap={};for(var e=t.tables.cmap.glyphIndexMap,n=Object.keys(e),i=0;i<n.length;i+=1){var r=n[i],a=e[r];void 0===t._IndexToUnicodeMap[a]?t._IndexToUnicodeMap[a]={unicodes:[parseInt(r)]}:t._IndexToUnicodeMap[a].unicodes.push(parseInt(r))}}(U):function(t){for(var e,n=t.tables.cmap.glyphIndexMap,i=Object.keys(n),r=0;r<i.length;r+=1){var a=i[r];(e=t.glyphs.get(n[a])).addUnicode(parseInt(a))}for(var o=0;o<t.glyphs.length;o+=1)e=t.glyphs.get(o),t.cffEncoding?e.name=t.isCIDFont?"gid"+o:t.cffEncoding.charset[o]:t.glyphNames.names&&(e.name=t.glyphNames.glyphIndexToName(o))}(U),O){var ot=$2(v,O);y.kerningPairs=function(t,e){var n=new YQ.Parser(t,e),i=n.parseUShort();if(0===i)return function(t){var e={};t.skip("uShort");var n=t.parseUShort();fQ.argument(0===n,"Unsupported kern sub-table version."),t.skip("uShort",2);var i=t.parseUShort();t.skip("uShort",3);for(var r=0;r<i;r+=1){var a=t.parseUShort(),o=t.parseUShort(),s=t.parseShort();e[a+","+o]=s}return e}(n);if(1===i)return function(t){var e={};t.skip("uShort"),t.parseULong()>1&&r.warn("Only the first kern subtable is supported."),t.skip("uLong");var n=255&t.parseUShort();if(t.skip("uShort"),0===n){var i=t.parseUShort();t.skip("uShort",3);for(var a=0;a<i;a+=1){var o=t.parseUShort(),s=t.parseUShort(),l=t.parseShort();e[o+","+s]=l}}return e}(n);throw new Error("Unsupported kern table version ("+i+").")}(ot.data,ot.offset)}else y.kerningPairs={};if(_){var st=$2(v,_);y.tables.gdef=function(t,e){var n=new UQ(t,e=e||0),i=n.parseVersion(1);fQ.argument(1===i||1.2===i||1.3===i,"Unsupported GDEF table version.");var r={version:i,classDef:n.parsePointer(UQ.classDef),attachList:n.parsePointer(H2),ligCaretList:n.parsePointer(U2),markAttachClassDef:n.parsePointer(UQ.classDef)};return i>=1.2&&(r.markGlyphSets=n.parsePointer(W2)),r}(st.data,st.offset)}if(M){var lt=$2(v,M);y.tables.gpos=(K=lt.data,J=lt.offset,Q=new UQ(K,J=J||0),tt=Q.parseVersion(1),fQ.argument(1===tt||1.1===tt,"Unsupported GPOS table version "+tt),1===tt?{version:tt,scripts:Q.parseScriptList(),features:Q.parseFeatureList(),lookups:Q.parseLookupList(Y2)}:{version:tt,scripts:Q.parseScriptList(),features:Q.parseFeatureList(),lookups:Q.parseLookupList(Y2),variations:Q.parseFeatureVariationsList()}),y.position.init()}if(D){var ct=$2(v,D);y.tables.gsub=(et=ct.data,nt=ct.offset,it=new UQ(et,nt=nt||0),rt=it.parseVersion(1),fQ.argument(1===rt||1.1===rt,"Unsupported GSUB table version."),1===rt?{version:rt,scripts:it.parseScriptList(),features:it.parseFeatureList(),lookups:it.parseLookupList(H1)}:{version:rt,scripts:it.parseScriptList(),features:it.parseFeatureList(),lookups:it.parseLookupList(H1),variations:it.parseFeatureVariationsList()})}if(S){var ht=$2(v,S);y.tables.fvar=function(t,e,n){var i=new YQ.Parser(t,e),r=i.parseULong();fQ.argument(65536===r,"Unsupported fvar table version.");var a,o,s,l,c,h=i.parseOffset16();i.skip("uShort",1);for(var d=i.parseUShort(),u=i.parseUShort(),m=i.parseUShort(),p=i.parseUShort(),g=[],f=0;f<d;f++)g.push((a=t,o=e+h+f*u,s=n,l=void 0,c=void 0,l={},c=new YQ.Parser(a,o),l.tag=c.parseTag(),l.minValue=c.parseFixed(),l.defaultValue=c.parseFixed(),l.maxValue=c.parseFixed(),c.skip("uShort",1),l.name=s[c.parseUShort()]||{},l));for(var b=[],y=e+h+d*u,v=0;v<m;v++)b.push(N2(t,y+v*p,g,n));return{axes:g,instances:b}}(ht.data,ht.offset,y.names)}if(I){var dt=$2(v,I);y.tables.meta=function(t,e){var n=new YQ.Parser(t,e),i=n.parseULong();fQ.argument(1===i,"Unsupported META table version."),n.parseULong(),n.parseULong();for(var r=n.parseULong(),a={},o=0;o<r;o++){var s=n.parseTag(),l=n.parseULong(),c=n.parseULong(),h=yQ.UTF8(t,e+l,c);a[s]=h}return a}(dt.data,dt.offset),y.metas=y.tables.meta}return y}const J2=Object.freeze({__proto__:null,Font:V2,Glyph:i1,Path:mQ,BoundingBox:uQ,_parse:YQ,parse:K2,load:function(t,e,n){n=null==n?{}:n;var i="undefined"!=typeof window||n.isUrl?X2:j2;return new Promise((function(r,a){i(t,(function(t,i){if(t){if(e)return e(t);a(t)}var o;try{o=K2(i,n)}catch(t){if(e)return e(t);a(t)}if(e)return e(null,{font:o,arrayBuffer:i});r({font:o,arrayBuffer:i})}))}))},loadSync:function(t,e){}});function*Q2(){zZ.mParseData_Storage=[];for(let t=0;t<zZ.mFontData_Storage.length;t++){let e,n=zZ.mFontData_Storage[t];try{e=J2.parse(n.data)}catch(t){continue}yield;const i=-e.getPath("A",0,0,1024).getBoundingBox().y1;zZ.setParseData({name:n.name,fontFamily:e.names.fontFamily.en,fontFamilyZh:e.names.fontFamily.zh||e.names.fontFamily.en,aboveHeight:i,parseData:e}),new FontFace("Zw-"+e.names.fontFamily.en,n.ttfData).loaded.then((t=>{document.fonts.add(t)})).catch((t=>{}))}}const t6=(i6=jR((function*(){0===zZ.getFontData({name:"SimSun-01.ttf"}).length&&(yield fetch(tU.forSDK?vF+"textGlyph/SimSun-01.ttf":"/assets/textGlyph/SimSun-01.ttf").then((t=>t.arrayBuffer())).then((t=>{let e;try{e=J2.parse(t)}catch(t){return}const n=-e.getPath("A",0,0,1024).getBoundingBox().y1;zZ.setFontData({name:"SimSun-01.ttf",type:"TTF",data:t}),zZ.setParseData({name:"SimSun-01.ttf",fontFamily:e.names.fontFamily.en,fontFamilyZh:e.names.fontFamily.zh||e.names.fontFamily.en,aboveHeight:n,parseData:e}),new FontFace("Zw-"+e.names.fontFamily.en,t).loaded.then((t=>{document.fonts.add(t)})).catch((t=>{}))})))})),function(){return i6.apply(this,arguments)}),e6=t=>{let e=zZ.getParseData({fontFamily:t})[0];return e||(e=zZ.getParseData({fontFamily:"SimSun"})[0]),e},n6=new Map;var i6;n6.set("2205",[248]),n6.set("e100",[66]),n6.set("2104",[67]),n6.set("278",[934]),n6.set("e101",[70]),n6.set("e200",[9675]),n6.set("e102",[77]),n6.set("2126",[937]),n6.set("214a",[80]),n6.set("2082",[50]);const r6=(t,e)=>{let n=t.names.fontFamily.en,i=zZ.getWordData({fontFamily:n,word:e})[0];if(i)return i;let r=t.stringToGlyphs(e,t.defaultRenderOptions);if(void 0===r[0].unicode){if("SimSun"!==n){let t=zZ.getParseData({fontFamily:"SimSun"})[0];return t?r6(t.parseData,e):null}{let n=n6.get(e.charCodeAt(0).toString(16));if(n){let e=String.fromCharCode(...n);return r6(t,e)}}}const a=r[0],o=[];a.path.commands.forEach((({type:t,x:e,y:n,x1:i,y1:r,x2:a,y2:s})=>{switch(t){case"M":o.push(new s6),o[o.length-1].moveTo(new oB(e,n));break;case"L":o[o.length-1].moveTo(new oB(e,n));break;case"C":o[o.length-1].cubicTo(new oB(e,n),new oB(i,r),new oB(a,s));break;case"Q":o[o.length-1].conicTo(new oB(e,n),new oB(i,r));break;case"Z":o[o.length-1].close()}})),o.sort(((t,e)=>Math.abs(e.area)-Math.abs(t.area)));const s=[];for(let t=0;t<o.length;t++){let e;for(let n=t-1;n>=0;n--)if(o[n].inside(o[t].points[0])&&o[t].area*o[n].area<0){e=o[n];break}e?e.children.push(o[t]):s.push(o[t])}let l=[],c=[];const h=1024/t.unitsPerEm,d=a.advanceWidth*h;function u(t){let n=[],i=[];t.points.forEach((t=>n.push(t.mX*h,t.mY*h))),e.trim()&&l.push([...n]);for(let e=0;e<t.children.length;e++){let r=t.children[e];for(let t=0;t<r.children.length;t++)u(r.children[t]);i.push(n.length/2),r.points.forEach((t=>n.push(t.mX*h,t.mY*h)))}let r=zJ()(n,i,2);for(let t=0;t<r.length;t++)c.push(n[2*r[t]],n[2*r[t]+1])}for(let t=0;t<s.length;t++)u(s[t]);return i={fontFamily:n,word:e,advanceWidth:d,borderData:l,eacutData:c},zZ.setWordData(i),i};function a6(t,e){let n=t.mX-e.mX,i=t.mY-e.mY;return Math.sqrt(n*n+i*i)}function o6(t,e,n){return new oB((1-n)*t.mX+n*e.mX,(1-n)*t.mY+n*e.mY)}class s6{constructor(){this.points=[],this.children=[],this.area=0}moveTo(t){this.points.push(t)}lineTo(t){this.points.push(t)}cubicTo(t,e,n){const i=this.points[this.points.length-1],r=a6(i,e)+a6(e,n)+a6(n,t),a=Math.max(2,Math.min(2,r/3));for(let r=1;r<=a;r++){const o=r/a,s=o6(o6(i,e,o),o6(e,n,o),o),l=o6(o6(e,n,o),o6(n,t,o),o);this.points.push(o6(s,l,o))}}conicTo(t,e){const n=this.points[this.points.length-1],i=a6(n,e)+a6(e,t),r=Math.max(2,Math.min(2,i/3));for(let i=1;i<=r;i++){const a=i/r;this.points.push(o6(o6(n,e,a),o6(e,t,a),a))}}close(){let t=this.points[this.points.length-1];this.points.forEach((e=>{var n,i;this.area+=.5*(i=e,(n=t).mX*i.mY-n.mY*i.mX),t=e}))}inside(t){let e=0,n=this.points[this.points.length-1];return this.points.forEach((i=>{const r=n.mY<i.mY?n:i,a=n.mY<i.mY?i:n;r.mY<t.mY+1e-6&&a.mY>t.mY+1e-6&&(a.mX-r.mX)*(t.mY-r.mY)>(t.mX-r.mX)*(a.mY-r.mY)&&(e+=1),n=i})),e%2!=0}}var l6,c6=((l6=c6||(c6={}))[l6.reGenData=0]="reGenData",l6[l6.addNewData=1]="addNewData",l6[l6.modifyData=2]="modifyData",l6[l6.deleteData=3]="deleteData",l6[l6.noGenData=4]="noGenData",c6);class h6{constructor(){this.primitiveArray=[],this.pointArray=[],this.colorArray=[],this.normalArray=[],this.zIncreaseArray=[],this.layerIndexArray=[],this.extends=new NU}}class d6{constructor(){this.mPointArray=new h6,this.mPointBuffer=[],this.mLineStripArray=new h6,this.mLineStripBuffer=[],this.mTriangleArray=new h6,this.mTriangleBuffer=[],this.mShadedTriangleArray=new h6,this.mShadedTriangleBuffer=[],this.mHatchArray=[],this.mWipeoutArray=[],this.mImageArray=[],this.mLineWidthArray={lineWidthArray:[],startArray:[],endArray:[],uvArray:[],colorArray:[],zIncreaseArray:[],layerIndexArray:[],extends:new NU},this.mLineWidthBuffer=[],this.mXlineOrRayArray=[],this.mZIncrease=0}}class u6{constructor(){this.spliceDataArr=[],this.handleMap=new Map,this.regenArr=[],this.mZIncrease=0,this.mIsFirst=!0,this.mPosition=new QR}}class m6{constructor(){this.mCanvas=null,this.mGlContext=null,this.mRenderMethod=new Map,this.mProjectionMat=new JR,this.mCommonM4=new JR,this.mStart=new QR,this.mEnd=new QR,this.mConvertPt3d=new QR,this.mExtMultiDraw=null,this.mVAOExt=null,this.mWebGLFlag=c6.reGenData,this.mDrawLayer=0,this.mLongtermDrawDataMap=new Map,this.mHighlightDrawDataMap=new Map,this.viewDrawData=new u6,this.spliceData=new d6,this.regenIndex=-1,this.mLayerImage=new ImageData(1,1),this.mLayerLength=0,this.mImageTexture=new Map,this.TexCoordBuffer=null,this.mEnableZIncrease=!0,this.mZIncrease=0,this.mMaxIncrease=1e3,this.mCommitSize=0,this.mRenderMethod.set(RB.RAWPOLYLINE3D,((t,e,n)=>{this.drawRawPolyline3d(t,e,n)})),this.mRenderMethod.set(RB.POLYLINE3D,((t,e,n)=>{this.drawPolyline3d(t,e,n)})),this.mRenderMethod.set(RB.RAWLINESTRIPS3D,((t,e,n)=>{this.drawRawLineStrips3d(t,e,n)})),this.mRenderMethod.set(RB.LINESTRIPS3D,((t,e,n)=>{this.drawLineStrips3d(t,e,n)})),this.mRenderMethod.set(RB.SILHOUETTERAWPOLYLINE3D,((t,e,n)=>{this.drawSilhouetteRawPolyline3d(t,e,n)})),this.mRenderMethod.set(RB.SHADEDRAWPOLYLINE3D,((t,e,n)=>{this.drawShadedRawPolyline3d(t,e,n)})),this.mRenderMethod.set(RB.POLYTRIANGLE3D,((t,e,n)=>{this.drawPolytriangle3d(t,e,n)})),this.mRenderMethod.set(RB.SHADEDPOLYTRIANGLE3D,((t,e,n,i,r)=>{this.drawShadedPolytriangle3d(t,e,n,i,r)})),this.mRenderMethod.set(RB.COLORIZEDPOLYTRIANGLE3D,((t,e,n,i,r)=>{this.drawColorizedPolytriangle3d(t,e,n,i,r)})),this.mRenderMethod.set(RB.SHADEDCOLORIZEDPOLYTRIANGLE3D,((t,e,n,i,r)=>{this.drawShadedColorizedPolytriangle3d(t,e,n,i,r)})),this.mRenderMethod.set(RB.POLYGON3D,((t,e,n)=>{this.drawPolygon3d(t,e,n)})),this.mRenderMethod.set(RB.POLYPOLYGON3D,((t,e,n)=>{this.drawPolyPolygon3d(t,e,n)})),this.mRenderMethod.set(RB.WIPEOUTPOLYGON3D,((t,e,n)=>{this.drawWipeOutPolygon3d(t,e,n)})),this.mRenderMethod.set(RB.CIRCULARARC3D,((t,e,n)=>{this.drawCircularArc3d(t,e,n)})),this.mRenderMethod.set(RB.ELLIPTICALARC3D,((t,e,n)=>{this.drawEllipticalArc3d(t,e,n)})),this.mRenderMethod.set(RB.TEXT3D,((t,e,n)=>{this.drawText3d(t,e,n)})),this.mRenderMethod.set(RB.HATCH3D,((t,e,n,i,r)=>{this.drawHatch3d(t,e,n,i,r)})),this.mRenderMethod.set(RB.RASTERIMAGE,((t,e)=>{this.drawRasterImage(t,e)})),this.mRenderMethod.set(RB.XLINE,((t,e)=>{this.drawXLineOrRay(t,e)})),this.mRenderMethod.set(RB.RAY,((t,e)=>{this.drawXLineOrRay(t,e)}))}getCanvas(){return this.mCanvas}init(t){return null!==this.mGlContext||null===this.mGlContext&&(this.mCanvas=t,this.mGlContext=t.getContext("webgl2",{stencil:!0,antialias:!0,alpha:!0,powerPreference:"high-performance"}),this.mGlContext||(this.mGlContext=t.getContext("webgl",{stencil:!0,antialias:!0,alpha:!0,powerPreference:"high-performance"})),this.mGlContext&&(this.mGlContext.getExtension("OES_element_index_uint"),/safari|firefox/i.test(navigator.userAgent)||(this.mExtMultiDraw=this.mGlContext.getExtension("WEBGL_multi_draw")),this.mVAOExt=this.mGlContext.getExtension("OES_vertex_array_object"),m6.mShaderManager.init(this.mGlContext),this.mGlContext.enable(this.mGlContext.BLEND),this.mGlContext.blendFunc(this.mGlContext.SRC_ALPHA,this.mGlContext.ONE_MINUS_SRC_ALPHA))),!0}beginRender(t){null===this.mGlContext||null===this.mCanvas||(this.spliceData=new d6,t.setContext(this.mGlContext),this.mCommitSize=0,this.mZIncrease=0,this.mGlContext.enable(this.mGlContext.DEPTH_TEST),this.mGlContext.depthFunc(this.mGlContext.LEQUAL))}increaseCommitData(t){return!(null===t.mGraphicSystem||t.mGraphicSystem.mMouseStop||!t.mGraphicSystem.mZooming&&!t.mGraphicSystem.mDraging)&&(t.mGraphicSystem&&(t.mGraphicSystem.mZooming||t.mGraphicSystem.mDraging)&&(this.mCommitSize+=m6.PacketPtSize),this.mCommitSize>=m6.MaxPacketPtSize)}multiDraw(t){if(null===this.mGlContext||null===this.mCanvas)return;let e=t.mCurView;if(!e)return;let n=e.mViewportForwebAssembly,i=e.mPoint3dForwebAssembly;if(!n||!i)return;let r=(t,e)=>{if(null===t)return j6.kZcInBox;let r=new NU;if(e.mEyeVecotr.isEqualTo(qR.ZAxis()))r.mMax=UF(n,i,t.mMax.mX,t.mMax.mY,t.mMax.mZ),r.mMin=UF(n,i,t.mMin.mX,t.mMin.mY,t.mMin.mZ),r.transformBy(e.m2dLimitedToDevice);else{let a=new QR;a.copy(UF(n,i,t.mMax.mX,t.mMax.mY,t.mMax.mZ)),a.mulMatrix(e.m2dLimitedToDevice),r.addPoint(a),a.copy(UF(n,i,t.mMax.mX,t.mMin.mY,t.mMax.mZ)),a.mulMatrix(e.m2dLimitedToDevice),r.addPoint(a),a.copy(UF(n,i,t.mMin.mX,t.mMax.mY,t.mMax.mZ)),a.mulMatrix(e.m2dLimitedToDevice),r.addPoint(a),a.copy(UF(n,i,t.mMin.mX,t.mMin.mY,t.mMax.mZ)),a.mulMatrix(e.m2dLimitedToDevice),r.addPoint(a),a.copy(UF(n,i,t.mMax.mX,t.mMax.mY,t.mMin.mZ)),a.mulMatrix(e.m2dLimitedToDevice),r.addPoint(a),a.copy(UF(n,i,t.mMax.mX,t.mMin.mY,t.mMin.mZ)),a.mulMatrix(e.m2dLimitedToDevice),r.addPoint(a),a.copy(UF(n,i,t.mMin.mX,t.mMax.mY,t.mMin.mZ)),a.mulMatrix(e.m2dLimitedToDevice),r.addPoint(a),a.copy(UF(n,i,t.mMin.mX,t.mMin.mY,t.mMin.mZ)),a.mulMatrix(e.m2dLimitedToDevice),r.addPoint(a)}if(r.mMin.mX=Math.round(r.mMin.mX),r.mMin.mY=Math.round(r.mMin.mY),r.mMax.mX=Math.round(r.mMax.mX),r.mMax.mY=Math.round(r.mMax.mY),r.mMax.mX<r.mMin.mX){let t=r.mMax.mX;r.mMax.mX=r.mMin.mX,r.mMin.mX=t}if(r.mMax.mY<r.mMin.mY){let t=r.mMax.mY;r.mMax.mY=r.mMin.mY,r.mMin.mY=t}return r.mMax.mX<e.mScreenRect.mX-m6.ExpandSize||r.mMin.mX>e.mScreenRect.right()+m6.ExpandSize||r.mMax.mY<e.mScreenRect.mY-m6.ExpandSize||r.mMin.mY>e.mScreenRect.bottom()+m6.ExpandSize?j6.kZcOutBox:r.mMax.mX-r.mMin.mX<=1&&r.mMax.mY-r.mMin.mY<=1?j6.kZcFade:j6.kZcInBox};const a=this.mGlContext.createTexture();if(this.mGlContext.activeTexture(this.mGlContext.TEXTURE0),this.mGlContext.bindTexture(this.mGlContext.TEXTURE_2D,a),this.mGlContext.texParameteri(this.mGlContext.TEXTURE_2D,this.mGlContext.TEXTURE_WRAP_S,this.mGlContext.CLAMP_TO_EDGE),this.mGlContext.texParameteri(this.mGlContext.TEXTURE_2D,this.mGlContext.TEXTURE_WRAP_T,this.mGlContext.CLAMP_TO_EDGE),this.mGlContext.texParameteri(this.mGlContext.TEXTURE_2D,this.mGlContext.TEXTURE_MIN_FILTER,this.mGlContext.NEAREST),this.mGlContext.texParameteri(this.mGlContext.TEXTURE_2D,this.mGlContext.TEXTURE_MAG_FILTER,this.mGlContext.NEAREST),this.mGlContext.texImage2D(this.mGlContext.TEXTURE_2D,0,this.mGlContext.RGBA,this.mGlContext.RGBA,this.mGlContext.UNSIGNED_BYTE,this.mLayerImage),this.spliceData.mShadedTriangleBuffer.length>0){this.mGlContext.useProgram(m6.mShaderManager.mShadedProgram),this.mGlContext.uniform1f(m6.mShaderManager.mShadedLocation.maxIncrease,this.mMaxIncrease),this.mGlContext.uniformMatrix4fv(m6.mShaderManager.mShadedLocation.mat,!1,GJ.toWebglMat(this.mCommonM4)),this.mGlContext.uniform2fv(m6.mShaderManager.mShadedLocation.screen,[this.mCanvas.width,this.mCanvas.height]),this.mGlContext.uniform3fv(m6.mShaderManager.mShadedLocation.material.ka,[.3,.3,.3]),this.mGlContext.uniform3fv(m6.mShaderManager.mShadedLocation.material.kd,[.994988,.994988,.994988]),this.mGlContext.uniform3fv(m6.mShaderManager.mShadedLocation.material.ks,[.9,.9,.9]),this.mGlContext.uniform1f(m6.mShaderManager.mShadedLocation.material.shininess,10),this.mGlContext.uniform3fv(m6.mShaderManager.mShadedLocation.lightDir,[-.301511347,.301511347,-.904533982]),this.mGlContext.uniformMatrix4fv(m6.mShaderManager.mShadedLocation.viewingMat,!1,GJ.toWebglMat(t.m2dViewingMatrix)),this.mGlContext.uniform1i(m6.mShaderManager.mShadedLocation.useHighLight,0),this.mGlContext.uniform1i(m6.mShaderManager.mShadedLocation.layerInfo,0),this.mGlContext.uniform1f(m6.mShaderManager.mShadedLocation.layerLength,this.mLayerLength);for(let e=0;e<this.spliceData.mShadedTriangleBuffer.length;e++){let n=this.spliceData.mShadedTriangleBuffer[e];if(null===n.vao)continue;let i=r(n.extends,t);if(i&&(this.mVAOExt.bindVertexArrayOES(n.vao),i===j6.kZcFade?n&&n.length>2&&this.mGlContext.drawElements(this.mGlContext.TRIANGLES,3,this.mGlContext.UNSIGNED_INT,0):this.mGlContext.drawElements(this.mGlContext.TRIANGLES,n.length,this.mGlContext.UNSIGNED_INT,0),this.mVAOExt.bindVertexArrayOES(null),this.increaseCommitData(t)))return}}if(this.spliceData.mImageArray.length>0&&this.rawDrawRasterImage3dSkia(t),this.mGlContext.useProgram(m6.mShaderManager.mBaseProgram),this.mGlContext.uniform1f(m6.mShaderManager.mBaseLocation.maxIncrease,this.mMaxIncrease),this.mGlContext.uniformMatrix4fv(m6.mShaderManager.mBaseLocation.mat,!1,GJ.toWebglMat(this.mCommonM4)),this.mGlContext.uniform2fv(m6.mShaderManager.mBaseLocation.screen,[this.mCanvas.width,this.mCanvas.height]),this.mGlContext.uniform1i(m6.mShaderManager.mBaseLocation.useHighLight,0),this.mGlContext.uniform1i(m6.mShaderManager.mBaseLocation.layerInfo,0),this.mGlContext.uniform1f(m6.mShaderManager.mBaseLocation.layerLength,this.mLayerLength),this.spliceData.mLineStripBuffer.length>0)for(let e=0;e<this.spliceData.mLineStripBuffer.length;e++){let n=this.spliceData.mLineStripBuffer[e];if(null===n.vao)continue;let i=r(n.extends,t);if(i){if(this.mVAOExt.bindVertexArrayOES(n.vao),null===this.mExtMultiDraw)this.mGlContext.drawElements(this.mGlContext.LINES,n.length,this.mGlContext.UNSIGNED_INT,0);else{if(null===n.countList||null===n.offsetList)continue;i===j6.kZcFade?n.countList.length>1&&this.mExtMultiDraw.multiDrawElementsWEBGL(this.mGlContext.LINE_STRIP,n.countList,0,this.mGlContext.UNSIGNED_INT,n.offsetList,0,2):this.mExtMultiDraw.multiDrawElementsWEBGL(this.mGlContext.LINE_STRIP,n.countList,0,this.mGlContext.UNSIGNED_INT,n.offsetList,0,n.countList.length)}if(this.mVAOExt.bindVertexArrayOES(null),this.increaseCommitData(t))return}}if(this.spliceData.mTriangleBuffer.length>0)for(let e=0;e<this.spliceData.mTriangleBuffer.length;e++){let n=this.spliceData.mTriangleBuffer[e];if(null===n.vao)continue;let i=r(n.extends,t);if(i&&(this.mVAOExt.bindVertexArrayOES(n.vao),i===j6.kZcFade?n.length>2&&this.mGlContext.drawElements(this.mGlContext.TRIANGLES,3,this.mGlContext.UNSIGNED_INT,0):this.mGlContext.drawElements(this.mGlContext.TRIANGLES,n.length,this.mGlContext.UNSIGNED_INT,0),this.mVAOExt.bindVertexArrayOES(null),this.increaseCommitData(t)))return}if(this.spliceData.mWipeoutArray.length>0){this.mGlContext.enable(this.mGlContext.STENCIL_TEST);for(let e=0;e<this.spliceData.mWipeoutArray.length;e++){let n=this.spliceData.mWipeoutArray[e];if(null!==n.vao&&(this.mVAOExt.bindVertexArrayOES(n.vao),this.mGlContext.colorMask(!1,!1,!1,!1),this.mGlContext.stencilMask(255),this.mGlContext.clear(this.mGlContext.STENCIL_BUFFER_BIT),this.mGlContext.stencilOp(this.mGlContext.REPLACE,this.mGlContext.ZERO,this.mGlContext.ZERO),this.mGlContext.stencilFunc(this.mGlContext.EQUAL,1,255),this.mGlContext.drawArrays(this.mGlContext.TRIANGLE_FAN,0,n.length),this.mGlContext.colorMask(!0,!0,!0,!0),this.mGlContext.stencilMask(0),this.mGlContext.stencilOp(this.mGlContext.KEEP,this.mGlContext.KEEP,this.mGlContext.KEEP),this.mGlContext.stencilFunc(this.mGlContext.EQUAL,1,255),this.mGlContext.drawArrays(this.mGlContext.TRIANGLE_FAN,0,n.length),this.mVAOExt.bindVertexArrayOES(null),this.increaseCommitData(t)))return void this.mGlContext.disable(this.mGlContext.STENCIL_TEST)}this.mGlContext.disable(this.mGlContext.STENCIL_TEST)}if(this.spliceData.mHatchArray.length>0){this.mGlContext.enable(this.mGlContext.STENCIL_TEST);for(let e=0;e<this.spliceData.mHatchArray.length;e++){let n=this.spliceData.mHatchArray[e],i=n.clipArea,r=n.drawArea;if(null!==i.vao&&null!==r.vao&&(this.mVAOExt.bindVertexArrayOES(i.vao),this.mGlContext.colorMask(!1,!1,!1,!1),this.mGlContext.stencilMask(255),this.mGlContext.clear(this.mGlContext.STENCIL_BUFFER_BIT),this.mGlContext.stencilOp(this.mGlContext.REPLACE,this.mGlContext.ZERO,this.mGlContext.ZERO),this.mGlContext.stencilFunc(this.mGlContext.EQUAL,1,255),this.mGlContext.drawArrays(this.mGlContext.TRIANGLES,0,i.length),this.mVAOExt.bindVertexArrayOES(r.vao),this.mGlContext.colorMask(!0,!0,!0,!0),this.mGlContext.stencilMask(0),this.mGlContext.stencilOp(this.mGlContext.KEEP,this.mGlContext.KEEP,this.mGlContext.KEEP),this.mGlContext.stencilFunc(this.mGlContext.EQUAL,1,255),this.mGlContext.drawArrays(this.mGlContext.TRIANGLES,0,r.length),this.mVAOExt.bindVertexArrayOES(null),this.increaseCommitData(t)))return void this.mGlContext.disable(this.mGlContext.STENCIL_TEST)}this.mGlContext.disable(this.mGlContext.STENCIL_TEST)}if(this.spliceData.mPointBuffer.length>0)for(let e=0;e<this.spliceData.mPointBuffer.length;e++){let n=this.spliceData.mPointBuffer[e];if(null!==n.vao&&r(n.extends,t)&&(this.mVAOExt.bindVertexArrayOES(n.vao),this.mGlContext.drawElements(this.mGlContext.POINTS,n.length,this.mGlContext.UNSIGNED_INT,0),this.mVAOExt.bindVertexArrayOES(null),this.increaseCommitData(t)))return}if(this.spliceData.mXlineOrRayArray.length>0){let e=t.m2dLimitedToDevice,n=new OJ(e.getEntryRank(0,3)/t.getUnitPixelHeight(),e.getEntryRank(1,3)/t.getUnitPixelHeight(),this.mCanvas.width/t.getUnitPixelHeight(),this.mCanvas.height/t.getUnitPixelHeight()),i=[],r=[],a=[],o=[];for(let t=0;t<this.spliceData.mXlineOrRayArray.length;t++){let e=this.spliceData.mXlineOrRayArray[t],s=e.type===RB.XLINE?new FJ(e.mBasePoint,e.mUnitPoint,n):new RJ(e.mBasePoint,e.mUnitPoint,n);this.mStart.set(s.mStartPoint.mX,s.mStartPoint.mY,s.mStartPoint.mZ),this.mEnd.set(s.mEndPoint.mX,s.mEndPoint.mY,s.mEndPoint.mZ),i.push(this.mStart.mX,this.mStart.mY,this.mStart.mZ,this.mEnd.mX,this.mEnd.mY,this.mEnd.mZ),r.push(e.color.red,e.color.green,e.color.blue,e.color.alpha,e.color.red,e.color.green,e.color.blue,e.color.alpha),a.push(e.zIncrease,e.zIncrease),o.push(e.layerIndex,e.layerIndex)}const s=this.mGlContext.createBuffer(),l=this.mGlContext.createBuffer(),c=this.mGlContext.createBuffer(),h=this.mGlContext.createBuffer();this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,s),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Float32Array(i),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mBaseLocation.position,3,this.mGlContext.FLOAT,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mBaseLocation.position),this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,l),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Uint8Array(r),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mBaseLocation.color,4,this.mGlContext.UNSIGNED_BYTE,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mBaseLocation.color),this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,c),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Float32Array(a),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mBaseLocation.zIncrease,1,this.mGlContext.FLOAT,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mBaseLocation.zIncrease),this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,h),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Uint16Array(o),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mBaseLocation.layerIndex,1,this.mGlContext.UNSIGNED_SHORT,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mBaseLocation.layerIndex),this.mGlContext.drawArrays(this.mGlContext.LINES,0,i.length/3)}if(HJ.mLineWidthSwitch||this.mDrawLayer===EB.kZcDrLongtermHighlight){if(this.mGlContext.useProgram(m6.mShaderManager.mLineWidthProgram),this.mGlContext.uniform1f(m6.mShaderManager.mLineWidthLocation.maxIncrease,this.mMaxIncrease),this.mGlContext.uniformMatrix4fv(m6.mShaderManager.mLineWidthLocation.mat,!1,GJ.toWebglMat(this.mCommonM4)),this.mGlContext.uniform2fv(m6.mShaderManager.mLineWidthLocation.screen,[this.mCanvas.width,this.mCanvas.height]),this.mGlContext.uniform1i(m6.mShaderManager.mLineWidthLocation.useHighLight,0),this.mGlContext.uniform1i(m6.mShaderManager.mLineWidthLocation.layerInfo,0),this.mGlContext.uniform1f(m6.mShaderManager.mLineWidthLocation.layerLength,this.mLayerLength),this.spliceData.mLineWidthBuffer.length>0)for(let e=0;e<this.spliceData.mLineWidthBuffer.length;e++){let n=this.spliceData.mLineWidthBuffer[e];null===n.vao||!r(n.extends,t)||(this.mVAOExt.bindVertexArrayOES(n.vao),this.mGlContext.drawArrays(this.mGlContext.TRIANGLES,0,n.length),this.mVAOExt.bindVertexArrayOES(null))}if(this.spliceData.mXlineOrRayArray.length>0){let e=t.m2dLimitedToDevice,n=new OJ(e.getEntryRank(0,3)/t.getUnitPixelHeight(),e.getEntryRank(1,3)/t.getUnitPixelHeight(),this.mCanvas.width/t.getUnitPixelHeight(),this.mCanvas.height/t.getUnitPixelHeight());const i=[],r=[],a=[],o=[],s=[],l=[],c=[];for(let e=0;e<this.spliceData.mXlineOrRayArray.length;e++){let h=this.spliceData.mXlineOrRayArray[e],d=h.type===RB.XLINE?new FJ(h.mBasePoint,h.mUnitPoint,n):new RJ(h.mBasePoint,h.mUnitPoint,n);this.mStart.set(d.mStartPoint.mX,d.mStartPoint.mY,d.mStartPoint.mZ),this.mEnd.set(d.mEndPoint.mX,d.mEndPoint.mY,d.mEndPoint.mZ);for(let e=0;e<18;e++)i.push(t.mLineweight),r.push(this.mStart.mX,this.mStart.mY,this.mStart.mZ),a.push(this.mEnd.mX,this.mEnd.mY,this.mEnd.mZ),s.push(h.color.red,h.color.green,h.color.blue,h.color.alpha),l.push(h.zIncrease),c.push(h.layerIndex);o.push(-2,-1,-2,1,-1,-1,-2,1,-1,-1,-1,1,-1,-1,-1,1,1,-1,-1,1,1,-1,1,1,1,-1,1,1,2,-1,1,1,2,-1,2,1)}const h=this.mGlContext.createBuffer(),d=this.mGlContext.createBuffer(),u=this.mGlContext.createBuffer(),m=this.mGlContext.createBuffer(),p=this.mGlContext.createBuffer(),g=this.mGlContext.createBuffer(),f=this.mGlContext.createBuffer();this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,h),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Float32Array(i),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mLineWidthLocation.lineWidth,1,this.mGlContext.FLOAT,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mLineWidthLocation.lineWidth),this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,d),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Float32Array(r),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mLineWidthLocation.start,3,this.mGlContext.FLOAT,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mLineWidthLocation.start),this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,u),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Float32Array(a),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mLineWidthLocation.end,3,this.mGlContext.FLOAT,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mLineWidthLocation.end),this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,m),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Uint8Array(o),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mLineWidthLocation.uv,2,this.mGlContext.BYTE,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mLineWidthLocation.uv),this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,p),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Uint8Array(s),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mLineWidthLocation.color,4,this.mGlContext.UNSIGNED_BYTE,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mLineWidthLocation.color),this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,g),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Float32Array(l),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mLineWidthLocation.zIncrease,1,this.mGlContext.FLOAT,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mLineWidthLocation.zIncrease),this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,f),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Uint16Array(c),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mBaseLocation.layerIndex,1,this.mGlContext.UNSIGNED_SHORT,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mBaseLocation.layerIndex),this.mGlContext.drawArrays(this.mGlContext.TRIANGLES,0,r.length/3)}}}endCollection(){for(this.setArrayData(!1),this.mWebGLFlag===c6.reGenData&&this.setSpliceData(),this.mZIncrease>this.viewDrawData.mZIncrease&&(this.viewDrawData.mZIncrease=this.mZIncrease),this.viewDrawData.regenArr=[],this.regenIndex=-1;this.mZIncrease>this.mMaxIncrease&&this.mMaxIncrease<1e7;)this.mMaxIncrease*=10;this.mMaxIncrease=Math.max(this.mMaxIncrease,this.mZIncrease)}endRender(t){if(null!==this.mGlContext&&null!==this.mCanvas){for(let e=0;e<this.viewDrawData.spliceDataArr.length;e++)this.spliceData=this.viewDrawData.spliceDataArr[e],this.multiDraw(t);this.mGlContext.finish()}}clearRectContent(t){null===this.mGlContext||null===this.mCanvas||(this.mGlContext.clearColor(0,0,0,0),this.mGlContext.clear(this.mGlContext.COLOR_BUFFER_BIT|this.mGlContext.DEPTH_BUFFER_BIT))}clearContent(){null===this.mGlContext||null===this.mCanvas||(this.mGlContext.clearColor(0,0,0,0),this.mGlContext.clear(this.mGlContext.COLOR_BUFFER_BIT|this.mGlContext.DEPTH_BUFFER_BIT))}setupView(t){null===this.mGlContext||null===this.mCanvas||this.setBaseMatrix(t)}setConvertPts3d(t,e,n){let i=t.m2dWorldToObject;for(let r=e.start,a=0;r<e.end;r+=3,a++)this.mConvertPt3d.set(n[r],n[r+1],n[r+2]),this.mConvertPt3d.mulMatrix(i),t.mConvertPts3d.length<=a?t.mConvertPts3d.push(new QR(this.mConvertPt3d.mX,this.mConvertPt3d.mY,this.mConvertPt3d.mZ)):(t.mConvertPts3d[a].mX=this.mConvertPt3d.mX,t.mConvertPts3d[a].mY=this.mConvertPt3d.mY,t.mConvertPts3d[a].mZ=this.mConvertPt3d.mZ)}drawRawLineStrips3d(t,e,n){if(null===this.mGlContext||null===this.mCanvas||(this.setZIncrease(),e.getPtCount()<=0))return;this.setConvertPts3d(t,e,n);const i=t.mConvertPts3d;let r=e.mLineCount,a=0;for(let e=0;e<r;e++){let e=i.slice(a,a+2);this.rawDrawPolyline3d(t,e,2),a+=2}}drawRawPolyline3d(t,e,n){if(null===this.mGlContext||null===this.mCanvas)return;this.setZIncrease();let i=e.getPtCount();i<=0||(this.setConvertPts3d(t,e,n),i>1&&this.rawDrawPolyline3d(t,t.mConvertPts3d,i))}drawPolyline3d(t,e,n){if(null===this.mGlContext||null===this.mCanvas)return;this.setZIncrease();let i=e.getPtCount();i<=0||(this.setConvertPts3d(t,e,n),i>1&&this.rawDrawPolyline3d(t,t.mConvertPts3d,i))}drawLineStrips3d(t,e,n){if(null===this.mGlContext||null===this.mCanvas||(this.setZIncrease(),e.getPtCount()<=0))return;this.setConvertPts3d(t,e,n);const i=t.mConvertPts3d;let r=e.mLineCount,a=0;for(let e=0;e<r;e++){let e=i.slice(a,a+2);this.rawDrawPolyline3d(t,e,2),a+=2}}drawSilhouetteRawPolyline3d(t,e,n){if(null===this.mGlContext||null===this.mCanvas)return;this.setZIncrease();let i=e.getPtCount();i<=0||(this.setConvertPts3d(t,e,n),i>1&&this.rawDrawPolyline3d(t,t.mConvertPts3d,i))}drawShadedRawPolyline3d(t,e,n){if(null===this.mGlContext||null===this.mCanvas||t.mRenderMode===H6.kFlatShaded||t.mRenderMode===H6.kGouraudShaded)return;this.setZIncrease();let i=e.getPtCount();i<=0||(this.setConvertPts3d(t,e,n),i>1&&this.rawDrawPolyline3d(t,t.mConvertPts3d,i))}drawPolytriangle3d(t,e,n){if(null===this.mGlContext||null===this.mCanvas||(this.setZIncrease(),e.getPtCount()<=0))return;let i=t.m2dWorldToObject,r=e.mPointIndex;for(let e=0,a=r.length;e<a;e++)this.mConvertPt3d.set(n[r[e]],n[r[e]+1],n[r[e]+2]),this.mConvertPt3d.mulMatrix(i),t.mConvertPts3d.length<=e?t.mConvertPts3d.push(new QR(this.mConvertPt3d.mX,this.mConvertPt3d.mY,this.mConvertPt3d.mZ)):(t.mConvertPts3d[e].mX=this.mConvertPt3d.mX,t.mConvertPts3d[e].mY=this.mConvertPt3d.mY,t.mConvertPts3d[e].mZ=this.mConvertPt3d.mZ);this.rawDrawTriangle3ds(t,t.mConvertPts3d,r.length)}drawShadedPolytriangle3d(t,e,n,i,r){if(null===this.mGlContext||null===this.mCanvas||(this.setZIncrease(),e.getPtCount()<=0))return;let a=t.m2dWorldToObject,o=e.mPointIndex;for(let e=0,i=o.length;e<i;e++)this.mConvertPt3d.set(n[o[e]],n[o[e]+1],n[o[e]+2]),this.mConvertPt3d.mulMatrix(a),t.mConvertPts3d.length<=e?t.mConvertPts3d.push(new QR(this.mConvertPt3d.mX,this.mConvertPt3d.mY,this.mConvertPt3d.mZ)):(t.mConvertPts3d[e].mX=this.mConvertPt3d.mX,t.mConvertPts3d[e].mY=this.mConvertPt3d.mY,t.mConvertPts3d[e].mZ=this.mConvertPt3d.mZ);let s=[],l=e.mVectorIndex;for(let t=0,e=l.length;t<e;t++)s.push(new QR(r[l[t]],r[l[t]+1],r[l[t]+2]));this.rawDrawShadedTriangle3ds(t,t.mConvertPts3d,s,o.length)}drawColorizedPolytriangle3d(t,e,n,i,r){if(null===this.mGlContext||null===this.mCanvas||(this.setZIncrease(),e.getPtCount()<=0))return;let a=t.m2dWorldToObject,o=e.mPointIndex,s=e.mColorIndex,l=[];for(let e=0,r=o.length;e<r;e++)this.mConvertPt3d.set(n[o[e]],n[o[e]+1],n[o[e]+2]),this.mConvertPt3d.mulMatrix(a),t.mConvertPts3d.length<=e?t.mConvertPts3d.push(new QR(this.mConvertPt3d.mX,this.mConvertPt3d.mY,this.mConvertPt3d.mZ)):(t.mConvertPts3d[e].mX=this.mConvertPt3d.mX,t.mConvertPts3d[e].mY=this.mConvertPt3d.mY,t.mConvertPts3d[e].mZ=this.mConvertPt3d.mZ),l.push({color:i[s[e]]});this.rawDrawColorizedTriangle3ds(t,t.mConvertPts3d,l,o.length)}drawShadedColorizedPolytriangle3d(t,e,n,i,r){if(null===this.mGlContext||null===this.mCanvas||(this.setZIncrease(),e.getPtCount()<=0))return;let a=t.m2dWorldToObject,o=e.mPointIndex,s=e.mColorIndex,l=[];for(let e=0,r=o.length;e<r;e++)this.mConvertPt3d.set(n[o[e]],n[o[e]+1],n[o[e]+2]),this.mConvertPt3d.mulMatrix(a),t.mConvertPts3d.length<=e?t.mConvertPts3d.push(new QR(this.mConvertPt3d.mX,this.mConvertPt3d.mY,this.mConvertPt3d.mZ)):(t.mConvertPts3d[e].mX=this.mConvertPt3d.mX,t.mConvertPts3d[e].mY=this.mConvertPt3d.mY,t.mConvertPts3d[e].mZ=this.mConvertPt3d.mZ),l.push({color:i[s[e]]});this.rawDrawColorizedTriangle3ds(t,t.mConvertPts3d,l,o.length)}drawPolygon3d(t,e,n){if(null===this.mGlContext||null===this.mCanvas)return;this.setZIncrease();let i=e.getPtCount();i<=0||(this.setConvertPts3d(t,e,n),this.rawDrawPolygon3d(t,t.mConvertPts3d,i))}drawPolyPolygon3d(t,e,n){if(null===this.mGlContext||null===this.mCanvas)return;this.setZIncrease(),this.setConvertPts3d(t,e,n);const i=t.mConvertPts3d,r=e;let a=r.polygonPtsNumList,o=0;for(let e=0;e<r.mPolygonCount;e++){const n=a[e];if(n<=0)return;let r=i.slice(o,o+n);this.rawDrawPolygon3d(t,r,n),o+=n}}drawWipeOutPolygon3d(t,e,n){if(null===this.mGlContext||null===this.mCanvas)return;this.setZIncrease();let i=e.getPtCount();i<=0||(this.setConvertPts3d(t,e,n),this.rawDrawWipeOut3d(t,t.mConvertPts3d,i))}drawCircularArc3d(t,e,n){}drawEllipticalArc3d(t,e,n){}drawText3d(t,e,n){if(null===this.mGlContext||null===this.mCanvas)return;this.setZIncrease();let i=t.m2dWorldToObject;const r=e.mTextProperties.textPt;this.mConvertPt3d.set(r.mX,r.mY,r.mZ),this.mConvertPt3d.mulMatrix(i),this.rawDrawText3d(t,this.mConvertPt3d,e.mTextProperties)}drawHatch3d(t,e,n,i,r){if(null===this.mGlContext||null===this.mCanvas||(this.setZIncrease(),e.getPtCount()<=0))return;let a=t.m2dWorldToObject,o=e.mPoints,s=[];for(let t=0;t<o.length;t++){let e=new QR;e.copy(o[t]),e.mulMatrix(a),s.push(e)}const l=new gV(e.type,e.start,e.end,e.mContourCounts,s,e.mTriangle);l.mColor=t.mForegroundColor;let c=[],h=[];if(l.mTriangle){let t=l.mTriangle.mPointIndex,e=l.mTriangle.mColorIndex;for(let r=0;r<t.length;r++)this.mConvertPt3d.set(n[t[r]],n[t[r]+1],n[t[r]+2]),this.mConvertPt3d.mulMatrix(a),c.push(new QR(this.mConvertPt3d.mX,this.mConvertPt3d.mY,this.mConvertPt3d.mZ)),h.push({color:i[e[r]]})}this.rawDrawHatch3d(t,l,c,h)}drawRasterImage(t,e){if(null===this.mGlContext||null===this.mCanvas)return;this.setZIncrease();let n=t.m2dWorldToObject,i=e.mOriginPoint,r=new QR;r.copy(i),r.mulMatrix(n),this.rawDrawRasterImage3d(t,r,e)}drawXLineOrRay(t,e){if(null===this.mGlContext||null===this.mCanvas)return;this.setZIncrease();let n=t.m2dWorldToObject,i=new QR;i.copy(e.mBasePoint),i.mulMatrix(n);let r=new QR;r.copy(e.mUnitPoint),r.mulMatrix(n);let a=new CV(e.type,e.start,e.end);a.mBasePoint=i,a.mUnitPoint=r,this.rawDrawXLineOrRay3d(t,a)}setZIncrease(){this.mEnableZIncrease&&this.mZIncrease++}setBaseMatrix(t){if(null===this.mGlContext||null===this.mCanvas||null===t.mCurView)return;let e=t.mCurView,n=e.mViewportTableRec.getViewInfo(),i=new NU;i.copy(n.mDBExtends);let r=new JR,a=new JR;this.mEnableZIncrease=t.mRenderMode<H6.kHiddenLine;let o=this.focalLength(e),s=e.mTarget,l=e.mUpVector.normal(),c=e.mEyeVecotr.normal(),h=new QR;h.copy(s),h.addVector(c.mul2Vec(o)),r.setCoordSystem(h,l.crossProduct(c),l,c),r.invert(),i.mMax.mZ=Math.min(Math.pow(2,128),i.mMax.mZ),i.mMin.mZ=Math.max(-Math.pow(2,128),i.mMin.mZ);let d=i.minPoint(),u=i.maxPoint(),m=i.center();m.mulMatrix(e.mViewingMatrix);let p=Math.sqrt((u.mX-d.mX)*(u.mX-d.mX)+(u.mY-d.mY)*(u.mY-d.mY)+(u.mZ-d.mZ)*(u.mZ-d.mZ));0===p&&(p=100);let g=o+m.mZ-p*X6.EXPAND_RATIO,f=o+m.mZ+p*X6.EXPAND_RATIO,b=g,y=f;if(n.mFrontClipEnable){let t=n.mFrontZ;g<o-t&&(b=o-t)}if(n.mBackClipEnable){let t=n.mBackZ;f>o-t&&(y=o-t)}let v=e.mFieldWidth,w=e.mFieldHeight,x=e.mScreenRect,C=x.mX,k=x.mX+x.mWidth,S=x.mY,P=x.mY+x.mHeight,_=1,M=1,D=1,E=1;k!==C&&(_=(C+k-0)/(k-C),M=(2*this.mCanvas.width-(C+k))/(k-C)),P!==S&&(D=(S+P-0)/(P-S),E=(2*this.mCanvas.height-(S+P))/(P-S));let O=-.5*v*_,A=.5*v*M,T=.5*w*D,I=-.5*w*E;if(v=A-O,w=T-I,a.setToIdentity(),a.setEntryRank(0,0,2/v),a.setEntryRank(1,1,2/w),a.setEntryRank(2,2,2/(b-y)),a.setEntryRank(2,3,(b+y)/(b-y)),a.setEntryRank(0,3,-(A+O)/v),a.setEntryRank(1,3,-(T+I)/w),a.mul(r),this.mProjectionMat.copy(a),this.viewDrawData.mIsFirst){this.viewDrawData.mIsFirst=!1;let t=this.mProjectionMat.inverse();this.viewDrawData.mPosition.mulMatrix(t)}t.mPosition.copy(this.viewDrawData.mPosition),this.mCommonM4.copy(this.mProjectionMat),GJ.translate(this.mCommonM4,t.mPosition.mX,t.mPosition.mY,t.mPosition.mZ)}focalLength(t){return t.mLensLength/X6.PERSPECTIVE_CONST*Math.sqrt(t.mFieldWidth*t.mFieldWidth+t.mFieldHeight*t.mFieldHeight)}splitCircle(t,e,n){let i=[],r=360/n,a=0,o=new QR(0,0,0);for(let s=0;s<n;s++)o.mX=Math.sin(Math.PI/180*a)*e,o.mY=Math.cos(Math.PI/180*a)*e,o.mZ=0,o.mulMatrix(t),i.push(o.mX,o.mY,o.mZ),i.push(0,0,0),a+=r,o.mX=Math.sin(Math.PI/180*a)*e,o.mY=Math.cos(Math.PI/180*a)*e,o.mZ=0,o.mulMatrix(t),i.push(o.mX,o.mY,o.mZ);return i}rawDrawPolyline2d(t,e,n){}rawDrawLine2d(t,e,n){}rawDrawPoint2d(t,e){}rawDrawPoint2ds(t,e,n){}rawDrawText2d(t,e,n){}rawDrawPolygon2d(t,e,n){}rawDrawPolygon2ds(t,e,n){}rawDrawTriangle2d(t,e){}rawDrawTriangle2ds(t,e,n){}rawDrawColorizedTriangle2d(t,e,n){}rawDrawColorizedTriangle2ds(t,e,n,i){}rawDrawImage2d(t,e,n){}rawDrawRasterImage2d(t,e,n){}rawDrawHatch2d(t,e,n,i){}rawDrawWipeOut2d(t,e,n){}rawDrawPolyline3d(t,e,n){if(null===this.mGlContext||null===this.mCanvas)return;if(2===n&&e[0].mX===e[1].mX&&e[0].mY===e[1].mY&&e[0].mZ===e[1].mZ)return void this.rawDrawPoint3d(t,e[0]);let i;t.mEnableHighlight?(i={red:37,green:157,blue:243,alpha:255},t.mLineweight=3):i=fj.colorToRgb(t.mForegroundColor),this.spliceData.mLineStripArray.primitiveArray.push(null===this.mExtMultiDraw?2*n-2:n);for(let r=0;r<n;r++)this.spliceData.mLineStripArray.pointArray.push(e[r].mX-t.mPosition.mX,e[r].mY-t.mPosition.mY,e[r].mZ-t.mPosition.mZ),this.spliceData.mLineStripArray.colorArray.push(i.red,i.green,i.blue,i.alpha),this.spliceData.mLineStripArray.zIncreaseArray.push(this.mZIncrease),this.spliceData.mLineStripArray.layerIndexArray.push(t.mLayerIndex),r<n-2&&null===this.mExtMultiDraw&&(this.spliceData.mLineStripArray.pointArray.push(e[r+1].mX-t.mPosition.mX,e[r+1].mY-t.mPosition.mY,e[r+1].mZ-t.mPosition.mZ),this.spliceData.mLineStripArray.colorArray.push(i.red,i.green,i.blue,i.alpha),this.spliceData.mLineStripArray.zIncreaseArray.push(this.mZIncrease),this.spliceData.mLineStripArray.layerIndexArray.push(t.mLayerIndex));if(this.spliceData.mLineStripArray.extends.addExt(t.mExtends),t.mLineweight>1){for(let r=0;r<n-1;r++){let n=e[r],a=e[r+1];for(let e=0;e<18;e++)this.spliceData.mLineWidthArray.lineWidthArray.push(t.mLineweight),this.spliceData.mLineWidthArray.startArray.push(n.mX-t.mPosition.mX,n.mY-t.mPosition.mY,n.mZ-t.mPosition.mZ),this.spliceData.mLineWidthArray.endArray.push(a.mX-t.mPosition.mX,a.mY-t.mPosition.mY,a.mZ-t.mPosition.mZ),this.spliceData.mLineWidthArray.colorArray.push(i.red,i.green,i.blue,i.alpha),this.spliceData.mLineWidthArray.zIncreaseArray.push(this.mZIncrease),this.spliceData.mLineWidthArray.layerIndexArray.push(t.mLayerIndex);this.spliceData.mLineWidthArray.uvArray.push(-2,-1,-2,1,-1,-1,-2,1,-1,-1,-1,1,-1,-1,-1,1,1,-1,-1,1,1,-1,1,1,1,-1,1,1,2,-1,1,1,2,-1,2,1)}this.spliceData.mLineWidthArray.extends.addExt(t.mExtends)}else this.rawDrawPoint3ds(t,e,1);this.setArrayData(!0)}rawDrawLine3d(t,e,n){null===this.mGlContext||null===this.mCanvas||this.rawDrawPolyline3d(t,[e,n],2)}rawDrawPoint3d(t,e){null===this.mGlContext||null===this.mCanvas||this.rawDrawPoint3ds(t,[e],1)}rawDrawPoint3ds(t,e,n){if(null===this.mGlContext||null===this.mCanvas)return;const i=fj.colorToRgb(t.mForegroundColor);this.spliceData.mPointArray.primitiveArray.push(n);for(let r=0;r<n;r++)this.spliceData.mPointArray.pointArray.push(e[r].mX-t.mPosition.mX,e[r].mY-t.mPosition.mY,e[r].mZ-t.mPosition.mZ),this.spliceData.mPointArray.colorArray.push(i.red,i.green,i.blue,i.alpha),this.spliceData.mPointArray.zIncreaseArray.push(this.mZIncrease),this.spliceData.mPointArray.layerIndexArray.push(t.mLayerIndex);this.spliceData.mPointArray.extends.addExt(t.mExtends),this.setArrayData(!0)}rawDrawText3d(t,e,n){if(null===this.mGlContext||null===this.mCanvas||""===n.content.trim())return;let i=new qR;i.copy(n.textDir);let r=new qR;r.copy(n.textVerDir),i.transformBy(t.m2dWorldToObject),i.normalize(),i.mul(n.xScale),r.transformBy(t.m2dWorldToObject),r.normalize();let a=new JR;a.setCoordSystem(e,i,r,t.mEyeVecotr);let o,s=new JR,l=[];n.upsidedown&&l.push({row:1,col:1,value:-1}),n.backward&&l.push({row:0,col:0,value:-1}),l.push({row:0,col:1,value:Math.tan(n.obliquingAngle)}),s.setEntryRanks(l),a.mul(s),o=t.mEnableHighlight?{red:37,green:157,blue:243,alpha:255}:fj.colorToRgb(t.mForegroundColor);const c=e6(n.textStyle.fontFamily.replace("@",""));if(!c)return;const h=n.textHeight/c.aboveHeight,d=[],u=[],m=[];let p=c.parseData.ascender/c.parseData.unitsPerEm*1024,g=c.parseData.descender/c.parseData.unitsPerEm*1024,f=0,b=!1,y=!1,v=!1;for(let e=0;e<n.content.length;e++){const i=r6(c.parseData,n.content[e]);if(!i)continue;for(let e=0;e<i.borderData.length;e+=1){let n=i.borderData[e],r=[];for(let t=0;t<n.length;t+=2){let e=new QR((f+n[t])*h,n[t+1]*h,0);e.mulMatrix(a),r.push(e)}this.rawDrawPolyline3d(t,r,r.length)}let r=i.eacutData.length;for(let e=0;e<i.eacutData.length;e+=2)this.mConvertPt3d.set((f+i.eacutData[e])*h,i.eacutData[e+1]*h,0),this.mConvertPt3d.mulMatrix(a),this.spliceData.mTriangleArray.pointArray.push(this.mConvertPt3d.mX-t.mPosition.mX,this.mConvertPt3d.mY-t.mPosition.mY,this.mConvertPt3d.mZ-t.mPosition.mZ),this.spliceData.mTriangleArray.colorArray.push(o.red,o.green,o.blue,o.alpha),this.spliceData.mTriangleArray.zIncreaseArray.push(this.mZIncrease),this.spliceData.mTriangleArray.layerIndexArray.push(t.mLayerIndex);let s=f+i.advanceWidth*(1+.5*(n.trackingPercent-1));if(n.flags.length>0){const t=n.flags[e];0!==t&&(b=!!(2&t),y=!!(8&t),v=!!(32&t)),b&&d.push([f,s]),y&&u.push([f,s]),v&&m.push([f,s])}f=s,this.spliceData.mTriangleArray.extends.addExt(t.mExtends),this.spliceData.mTriangleArray.primitiveArray.push(r)}0===n.flags.length&&(1===n.overlined&&d.push([0,f]),1===n.underline&&u.push([0,f]),1===n.strikethrough&&m.push([0,f]));for(let e=0;e<d.length;e++)this.mStart.set(d[e][0]*h,p*h,0),this.mStart.mulMatrix(a),this.mEnd.set(d[e][1]*h,p*h,0),this.mEnd.mulMatrix(a),this.spliceData.mLineStripArray.primitiveArray.push(2),this.spliceData.mLineStripArray.pointArray.push(this.mStart.mX-t.mPosition.mX,this.mStart.mY-t.mPosition.mY,this.mStart.mZ-t.mPosition.mZ),this.spliceData.mLineStripArray.pointArray.push(this.mEnd.mX-t.mPosition.mX,this.mEnd.mY-t.mPosition.mY,this.mEnd.mZ-t.mPosition.mZ),this.spliceData.mLineStripArray.colorArray.push(o.red,o.green,o.blue,o.alpha,o.red,o.green,o.blue,o.alpha),this.spliceData.mLineStripArray.zIncreaseArray.push(this.mZIncrease,this.mZIncrease),this.spliceData.mLineStripArray.layerIndexArray.push(t.mLayerIndex,t.mLayerIndex);for(let e=0;e<u.length;e++)this.mStart.set(u[e][0]*h,g*h,0),this.mStart.mulMatrix(a),this.mEnd.set(u[e][1]*h,g*h,0),this.mEnd.mulMatrix(a),this.spliceData.mLineStripArray.primitiveArray.push(2),this.spliceData.mLineStripArray.pointArray.push(this.mStart.mX-t.mPosition.mX,this.mStart.mY-t.mPosition.mY,this.mStart.mZ-t.mPosition.mZ),this.spliceData.mLineStripArray.pointArray.push(this.mEnd.mX-t.mPosition.mX,this.mEnd.mY-t.mPosition.mY,this.mEnd.mZ-t.mPosition.mZ),this.spliceData.mLineStripArray.colorArray.push(o.red,o.green,o.blue,o.alpha,o.red,o.green,o.blue,o.alpha),this.spliceData.mLineStripArray.zIncreaseArray.push(this.mZIncrease,this.mZIncrease),this.spliceData.mLineStripArray.layerIndexArray.push(t.mLayerIndex,t.mLayerIndex);for(let e=0;e<m.length;e++)this.mStart.set(m[e][0]*h,(g+p)/2*h,0),this.mStart.mulMatrix(a),this.mEnd.set(m[e][1]*h,(g+p)/2*h,0),this.mEnd.mulMatrix(a),this.spliceData.mLineStripArray.primitiveArray.push(2),this.spliceData.mLineStripArray.pointArray.push(this.mStart.mX-t.mPosition.mX,this.mStart.mY-t.mPosition.mY,this.mStart.mZ-t.mPosition.mZ),this.spliceData.mLineStripArray.pointArray.push(this.mEnd.mX-t.mPosition.mX,this.mEnd.mY-t.mPosition.mY,this.mEnd.mZ-t.mPosition.mZ),this.spliceData.mLineStripArray.colorArray.push(o.red,o.green,o.blue,o.alpha,o.red,o.green,o.blue,o.alpha),this.spliceData.mLineStripArray.zIncreaseArray.push(this.mZIncrease,this.mZIncrease),this.spliceData.mLineStripArray.layerIndexArray.push(t.mLayerIndex,t.mLayerIndex);this.spliceData.mLineStripArray.extends.addExt(t.mExtends),this.setArrayData(!0)}rawDrawPolygon3d(t,e,n){if(null===this.mGlContext||null===this.mCanvas)return;let i;i=t.mEnableHighlight?{red:37,green:157,blue:243,alpha:255}:fj.colorToRgb(t.mForegroundColor);const r=[];for(let t=0;t<n;t++)r.push(e[t].mX,e[t].mY,e[t].mZ);if(r.push(e[0].mX,e[0].mY,e[0].mZ),this.rawDrawPolyline3d(t,e,n),1===t.mFillMode){const e=zJ()(r,void 0,3);this.spliceData.mTriangleArray.primitiveArray.push(e.length);for(let n=0;n<e.length;n++)this.spliceData.mTriangleArray.pointArray.push(r[3*e[n]]-t.mPosition.mX,r[3*e[n]+1]-t.mPosition.mY,r[3*e[n]+2]-t.mPosition.mZ),this.spliceData.mTriangleArray.colorArray.push(i.red,i.green,i.blue,i.alpha),this.spliceData.mTriangleArray.zIncreaseArray.push(this.mZIncrease),this.spliceData.mTriangleArray.layerIndexArray.push(t.mLayerIndex);this.spliceData.mTriangleArray.extends.addExt(t.mExtends),this.setArrayData(!0)}}rawDrawPolygon3ds(t,e,n){let i=n.length;for(let r=0;r<i;r++)this.rawDrawPolygon3d(t,e.splice(0,n[r]),n[r])}rawDrawTriangle3d(t,e){null===this.mGlContext||null===this.mCanvas||this.rawDrawTriangle3ds(t,e,3)}rawDrawTriangle3ds(t,e,n){if(null===this.mGlContext||null===this.mCanvas)return;let i;if(i=t.mEnableHighlight?{red:37,green:157,blue:243,alpha:255}:fj.colorToRgb(t.mForegroundColor),this.rawDrawPolyline3d(t,e,n),1===t.mFillMode){this.spliceData.mTriangleArray.primitiveArray.push(n);for(let r=0;r<n;r+=3)this.spliceData.mTriangleArray.pointArray.push(e[r].mX-t.mPosition.mX,e[r].mY-t.mPosition.mY,e[r].mZ-t.mPosition.mZ,e[r+1].mX-t.mPosition.mX,e[r+1].mY-t.mPosition.mY,e[r+1].mZ-t.mPosition.mZ,e[r+2].mX-t.mPosition.mX,e[r+2].mY-t.mPosition.mY,e[r+2].mZ-t.mPosition.mZ),this.spliceData.mTriangleArray.colorArray.push(i.red,i.green,i.blue,i.alpha,i.red,i.green,i.blue,i.alpha,i.red,i.green,i.blue,i.alpha),this.spliceData.mTriangleArray.zIncreaseArray.push(this.mZIncrease,this.mZIncrease,this.mZIncrease),this.spliceData.mTriangleArray.layerIndexArray.push(t.mLayerIndex,t.mLayerIndex,t.mLayerIndex);this.spliceData.mTriangleArray.extends.addExt(t.mExtends),this.setArrayData(!0)}}rawDrawShadedTriangle3d(t,e,n){null===this.mGlContext||null===this.mCanvas||this.rawDrawShadedTriangle3ds(t,e,n,3)}rawDrawShadedTriangle3ds(t,e,n,i){if(null!==this.mGlContext&&null!==this.mCanvas&&!(t.mRenderMode<H6.kHiddenLine))if(t.mRenderMode===H6.kHiddenLine){const n=fj.colorToRgb(t.mBackgroundColor);this.spliceData.mTriangleArray.primitiveArray.push(i);for(let r=0;r<i;r+=3)this.spliceData.mTriangleArray.pointArray.push(e[r].mX-t.mPosition.mX,e[r].mY-t.mPosition.mY,e[r].mZ-t.mPosition.mZ,e[r+1].mX-t.mPosition.mX,e[r+1].mY-t.mPosition.mY,e[r+1].mZ-t.mPosition.mZ,e[r+2].mX-t.mPosition.mX,e[r+2].mY-t.mPosition.mY,e[r+2].mZ-t.mPosition.mZ),this.spliceData.mTriangleArray.colorArray.push(n.red,n.green,n.blue,n.alpha,n.red,n.green,n.blue,n.alpha,n.red,n.green,n.blue,n.alpha),this.spliceData.mTriangleArray.zIncreaseArray.push(this.mZIncrease,this.mZIncrease,this.mZIncrease),this.spliceData.mTriangleArray.layerIndexArray.push(t.mLayerIndex,t.mLayerIndex,t.mLayerIndex);this.spliceData.mTriangleArray.extends.addExt(t.mExtends),this.setArrayData(!0)}else{const r=fj.colorToRgb(t.mForegroundColor);this.spliceData.mShadedTriangleArray.primitiveArray.push(i);for(let a=0;a<i;a+=3){if(this.spliceData.mShadedTriangleArray.pointArray.push(e[a].mX-t.mPosition.mX,e[a].mY-t.mPosition.mY,e[a].mZ-t.mPosition.mZ,e[a+1].mX-t.mPosition.mX,e[a+1].mY-t.mPosition.mY,e[a+1].mZ-t.mPosition.mZ,e[a+2].mX-t.mPosition.mX,e[a+2].mY-t.mPosition.mY,e[a+2].mZ-t.mPosition.mZ),t.mRenderMode===H6.kGouraudShaded||t.mRenderMode===H6.kGouraudShadedWithWireframe)this.spliceData.mShadedTriangleArray.normalArray.push(n[a].mX,n[a].mY,n[a].mZ,n[a+1].mX,n[a+1].mY,n[a+1].mZ,n[a+2].mX,n[a+2].mY,n[a+2].mZ);else{let t=this.autoTriangleFaceNormal(e[a],e[a+1],e[a+2]);this.spliceData.mShadedTriangleArray.normalArray.push(t.mX,t.mY,t.mZ,t.mX,t.mY,t.mZ,t.mX,t.mY,t.mZ)}this.spliceData.mShadedTriangleArray.colorArray.push(r.red,r.green,r.blue,r.alpha,r.red,r.green,r.blue,r.alpha,r.red,r.green,r.blue,r.alpha),this.spliceData.mShadedTriangleArray.zIncreaseArray.push(this.mZIncrease,this.mZIncrease,this.mZIncrease),this.spliceData.mShadedTriangleArray.layerIndexArray.push(t.mLayerIndex,t.mLayerIndex,t.mLayerIndex)}this.spliceData.mShadedTriangleArray.extends.addExt(t.mExtends),this.setArrayData(!0)}}autoTriangleFaceNormal(t,e,n){let i=t.sub2vec(e),r=t.sub2vec(n),a=i.crossProduct(r);return a.normalize(),a}rawDrawColorizedTriangle3d(t,e,n){null===this.mGlContext||null===this.mCanvas||this.rawDrawColorizedTriangle3ds(t,e,n,3)}rawDrawColorizedTriangle3ds(t,e,n,i){if(null!==this.mGlContext&&null!==this.mCanvas){this.spliceData.mTriangleArray.primitiveArray.push(i);for(let r=0;r<i;r+=3){this.spliceData.mTriangleArray.pointArray.push(e[r].mX-t.mPosition.mX,e[r].mY-t.mPosition.mY,e[r].mZ-t.mPosition.mZ,e[r+1].mX-t.mPosition.mX,e[r+1].mY-t.mPosition.mY,e[r+1].mZ-t.mPosition.mZ,e[r+2].mX-t.mPosition.mX,e[r+2].mY-t.mPosition.mY,e[r+2].mZ-t.mPosition.mZ);let i=fj.colorToRgb(n[r].color),a=fj.colorToRgb(n[r+1].color),o=fj.colorToRgb(n[r+2].color);this.spliceData.mTriangleArray.colorArray.push(i.red,i.green,i.blue,i.alpha,a.red,a.green,a.blue,a.alpha,o.red,o.green,o.blue,o.alpha),this.spliceData.mTriangleArray.zIncreaseArray.push(this.mZIncrease,this.mZIncrease,this.mZIncrease),this.spliceData.mTriangleArray.layerIndexArray.push(t.mLayerIndex,t.mLayerIndex,t.mLayerIndex)}this.spliceData.mTriangleArray.extends.addExt(t.mExtends),this.setArrayData(!0)}}rawDrawImage3d(t,e,n){}rawDrawRasterImage3d(t,e,n){if(null===this.mGlContext||null===this.mCanvas)return;let i=new NJ;i.contrast=10,i.bright=10,i.alpha=1e3;let r=new qR;r.copy(n.mUvector);let a=new qR;a.copy(n.mVvector);let o=r.length(),s=a.length(),l=t.m2dWorldToObject;r.transformBy(l),r.normalize(),a.transformBy(l),a.normalize();let c=new JR;c.setCoordSystem(e,r,a,t.mEyeVecotr);let h={},d=[],u=[];for(let e=0;e<n.mClipPointsList.length;e++){let i=n.mClipPointsList[e];this.mConvertPt3d.set(i.mX,i.mY,i.mZ),this.mConvertPt3d.mulMatrix(l),d.push(this.mConvertPt3d.mX-t.mPosition.mX,this.mConvertPt3d.mY-t.mPosition.mY,this.mConvertPt3d.mZ-t.mPosition.mZ),u.push(255,255,255,255)}let m=this.mVAOExt.createVertexArrayOES();this.mVAOExt.bindVertexArrayOES(m);let p=this.mGlContext.createBuffer();this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,p),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Float32Array(d),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mBaseLocation.position,3,this.mGlContext.FLOAT,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mBaseLocation.position);let g=this.mGlContext.createBuffer();this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,g),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Uint8Array(u),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mBaseLocation.color,4,this.mGlContext.UNSIGNED_BYTE,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mBaseLocation.color),this.mVAOExt.bindVertexArrayOES(null),h.clipArea={vao:m,length:d.length/3},d=[],u=[];let f=o,b=s,y=new QR;y.set(0,b,0),y.mulMatrix(c),d.push(y.mX-t.mPosition.mX,y.mY-t.mPosition.mY,y.mZ-t.mPosition.mZ),y.set(f,b,0),y.mulMatrix(c),d.push(y.mX-t.mPosition.mX,y.mY-t.mPosition.mY,y.mZ-t.mPosition.mZ),y.set(0,0,0),y.mulMatrix(c),d.push(y.mX-t.mPosition.mX,y.mY-t.mPosition.mY,y.mZ-t.mPosition.mZ),y.set(f,0,0),y.mulMatrix(c),d.push(y.mX-t.mPosition.mX,y.mY-t.mPosition.mY,y.mZ-t.mPosition.mZ);let v=this.mVAOExt.createVertexArrayOES();this.mVAOExt.bindVertexArrayOES(v);let w=this.mGlContext.createBuffer();this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,w),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Float32Array(d),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mImageLocation.position,3,this.mGlContext.FLOAT,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mImageLocation.position),null===this.TexCoordBuffer?(this.TexCoordBuffer=this.mGlContext.createBuffer(),this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,this.TexCoordBuffer),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Uint8Array([0,0,1,0,0,1,1,1]),this.mGlContext.STATIC_DRAW)):this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,this.TexCoordBuffer),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mImageLocation.texCoord,2,this.mGlContext.UNSIGNED_BYTE,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mImageLocation.texCoord),this.mVAOExt.bindVertexArrayOES(null),h.imageArea={vao:v},h.textPrimitive={vao:null,length:0};const x=e6("SimSun");if(x){d=[],u=[];let e=[],i=[];this.mConvertPt3d.set(n.mOriginPoint.mX+r.mX*(n.mUvector.length()/5)-r.mY*(n.mVvector.length()/2),n.mOriginPoint.mY+r.mX*(n.mVvector.length()/2)+r.mY*(n.mUvector.length()/5),n.mOriginPoint.mZ),this.mConvertPt3d.mulMatrix(l);let o=new JR;o.setCoordSystem(this.mConvertPt3d,r,a,t.mEyeVecotr);const c=s/10/x.aboveHeight,m=fj.colorToRgb(t.mForegroundColor);let p=0;for(let r=0;r<n.mUrlPath.length;r++){const a=r6(x.parseData,n.mUrlPath[r]);if(a){for(let n=0;n<a.eacutData.length;n+=2)this.mConvertPt3d.set((p+a.eacutData[n])*c,a.eacutData[n+1]*c,0),this.mConvertPt3d.mulMatrix(o),d.push(this.mConvertPt3d.mX-t.mPosition.mX,this.mConvertPt3d.mY-t.mPosition.mY,this.mConvertPt3d.mZ-t.mPosition.mZ),u.push(m.red,m.green,m.blue,m.alpha),e.push(this.mZIncrease),i.push(t.mLayerIndex);p+=a.advanceWidth}}let g=this.mVAOExt.createVertexArrayOES();this.mVAOExt.bindVertexArrayOES(g);let f=this.mGlContext.createBuffer();this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,f),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Float32Array(d),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mBaseLocation.position,3,this.mGlContext.FLOAT,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mBaseLocation.position);let b=this.mGlContext.createBuffer();this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,b),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Uint8Array(u),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mBaseLocation.color,4,this.mGlContext.UNSIGNED_BYTE,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mBaseLocation.color);let y=this.mGlContext.createBuffer();this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,y),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Float32Array(e),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mBaseLocation.zIncrease,1,this.mGlContext.FLOAT,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mBaseLocation.zIncrease);let v=this.mGlContext.createBuffer();this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,v),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Uint16Array(i),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mBaseLocation.layerIndex,1,this.mGlContext.UNSIGNED_SHORT,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mBaseLocation.layerIndex),this.mVAOExt.bindVertexArrayOES(null),h.textPrimitive.vao=g,h.textPrimitive.length=d.length/3}h.urlPath=n.mUrlPath,h.zIncrease=this.mZIncrease,h.layerIndex=t.mLayerIndex,this.spliceData.mImageArray.push(h)}rawDrawRasterImage3dSkia(t){if(null!==this.mGlContext&&null!==this.mCanvas)for(let e=0;e<this.spliceData.mImageArray.length;e++){let n=this.spliceData.mImageArray[e];if(t.mGraphicSystem&&t.mGraphicSystem.mImageMap.has(n.urlPath)){let e=t.mGraphicSystem.mImageMap.get(n.urlPath);if(!this.mImageTexture.has(n.urlPath)){const t=this.mGlContext.createTexture();this.mGlContext.activeTexture(this.mGlContext.TEXTURE1),this.mGlContext.bindTexture(this.mGlContext.TEXTURE_2D,t),this.mGlContext.texParameteri(this.mGlContext.TEXTURE_2D,this.mGlContext.TEXTURE_WRAP_S,this.mGlContext.CLAMP_TO_EDGE),this.mGlContext.texParameteri(this.mGlContext.TEXTURE_2D,this.mGlContext.TEXTURE_WRAP_T,this.mGlContext.CLAMP_TO_EDGE),this.mGlContext.texParameteri(this.mGlContext.TEXTURE_2D,this.mGlContext.TEXTURE_MIN_FILTER,this.mGlContext.NEAREST),this.mGlContext.texParameteri(this.mGlContext.TEXTURE_2D,this.mGlContext.TEXTURE_MAG_FILTER,this.mGlContext.NEAREST),this.mGlContext.texImage2D(this.mGlContext.TEXTURE_2D,0,this.mGlContext.RGBA,this.mGlContext.RGBA,this.mGlContext.UNSIGNED_BYTE,e),this.mImageTexture.set(n.urlPath,t)}this.mGlContext.enable(this.mGlContext.STENCIL_TEST),this.mGlContext.useProgram(m6.mShaderManager.mBaseProgram),this.mGlContext.uniform1f(m6.mShaderManager.mBaseLocation.maxIncrease,this.mMaxIncrease),this.mGlContext.uniformMatrix4fv(m6.mShaderManager.mBaseLocation.mat,!1,GJ.toWebglMat(this.mCommonM4)),this.mGlContext.uniform2fv(m6.mShaderManager.mBaseLocation.screen,[this.mCanvas.width,this.mCanvas.height]),this.mGlContext.uniform1i(m6.mShaderManager.mBaseLocation.useHighLight,0),this.mGlContext.uniform1i(m6.mShaderManager.mBaseLocation.layerInfo,0),this.mGlContext.uniform1f(m6.mShaderManager.mBaseLocation.layerLength,this.mLayerLength),this.mVAOExt.bindVertexArrayOES(n.clipArea.vao),this.mGlContext.colorMask(!1,!1,!1,!1),this.mGlContext.stencilMask(255),this.mGlContext.clear(this.mGlContext.STENCIL_BUFFER_BIT),this.mGlContext.stencilOp(this.mGlContext.REPLACE,this.mGlContext.ZERO,this.mGlContext.ZERO),this.mGlContext.stencilFunc(this.mGlContext.EQUAL,1,255),this.mGlContext.drawArrays(this.mGlContext.TRIANGLE_FAN,0,n.clipArea.length),this.mGlContext.useProgram(m6.mShaderManager.mImageProgram),this.mVAOExt.bindVertexArrayOES(n.imageArea.vao),this.mGlContext.uniform1f(m6.mShaderManager.mImageLocation.zIncrease,n.zIncrease),this.mGlContext.uniform1f(m6.mShaderManager.mImageLocation.layerIndex,n.layerIndex),this.mGlContext.uniform1f(m6.mShaderManager.mImageLocation.maxIncrease,this.mMaxIncrease),this.mGlContext.uniformMatrix4fv(m6.mShaderManager.mImageLocation.mat,!1,GJ.toWebglMat(this.mCommonM4)),this.mGlContext.uniform1i(m6.mShaderManager.mImageLocation.layerInfo,0),this.mGlContext.uniform1f(m6.mShaderManager.mImageLocation.layerLength,this.mLayerLength),this.mGlContext.uniform1i(m6.mShaderManager.mImageLocation.image,1),this.mGlContext.activeTexture(this.mGlContext.TEXTURE1),this.mGlContext.bindTexture(this.mGlContext.TEXTURE_2D,this.mImageTexture.get(n.urlPath)||null),this.mGlContext.colorMask(!0,!0,!0,!0),this.mGlContext.stencilMask(0),this.mGlContext.stencilOp(this.mGlContext.KEEP,this.mGlContext.KEEP,this.mGlContext.KEEP),this.mGlContext.stencilFunc(this.mGlContext.EQUAL,1,255),this.mGlContext.drawArrays(this.mGlContext.TRIANGLE_STRIP,0,4),this.mVAOExt.bindVertexArrayOES(null),this.mGlContext.disable(this.mGlContext.STENCIL_TEST)}else this.mGlContext.useProgram(m6.mShaderManager.mBaseProgram),this.mGlContext.uniform1f(m6.mShaderManager.mBaseLocation.maxIncrease,this.mMaxIncrease),this.mGlContext.uniformMatrix4fv(m6.mShaderManager.mBaseLocation.mat,!1,GJ.toWebglMat(this.mCommonM4)),this.mGlContext.uniform2fv(m6.mShaderManager.mBaseLocation.screen,[this.mCanvas.width,this.mCanvas.height]),this.mGlContext.uniform1i(m6.mShaderManager.mBaseLocation.useHighLight,0),this.mGlContext.uniform1i(m6.mShaderManager.mBaseLocation.layerInfo,0),this.mGlContext.uniform1f(m6.mShaderManager.mBaseLocation.layerLength,this.mLayerLength),this.mVAOExt.bindVertexArrayOES(n.textPrimitive.vao),this.mGlContext.drawArrays(this.mGlContext.TRIANGLES,0,n.textPrimitive.length),this.mVAOExt.bindVertexArrayOES(null)}}rawDrawHatch3d(t,e,n,i){var r,a;if(null===this.mGlContext||null===this.mCanvas||t.mEnableHighlight)return;const o=fj.colorToRgb(e.mColor),s=e.mPoints;let l=e.mContourCounts.map((t=>t/3)),c=0,h={};if(!(null===(r=e.mTriangle)||void 0===r?void 0:r.hasColorTriangle())){let e=!1,n=[];for(let t=0;t<l.length;t++){let i=new NU;for(let e=0;e<l[t];e++)i.addPoint(s[c+e]);if(!e)for(let t=0;t<n.length;t++)if(!(i.mMin.mX>=n[t].mMax.mX||i.mMax.mX<=n[t].mMin.mX||i.mMin.mY>=n[t].mMax.mY||i.mMax.mY<=n[t].mMin.mY)){e=!0;break}n.push(i),c+=l[t]}if(c=0,!e){let e=0;for(let n=0;n<l.length;n++){let i=[];for(let t=0;t<l[n];t++)i.push(s[c+t].mX,s[c+t].mY,s[c+t].mZ);const r=zJ()(i,void 0,3);for(let n=0;n<r.length;n++)e++,this.spliceData.mTriangleArray.pointArray.push(i[3*r[n]]-t.mPosition.mX,i[3*r[n]+1]-t.mPosition.mY,i[3*r[n]+2]-t.mPosition.mZ),this.spliceData.mTriangleArray.colorArray.push(o.red,o.green,o.blue,o.alpha),this.spliceData.mTriangleArray.zIncreaseArray.push(this.mZIncrease),this.spliceData.mTriangleArray.layerIndexArray.push(t.mLayerIndex);c+=l[n]}return this.spliceData.mTriangleArray.primitiveArray.push(e),this.spliceData.mTriangleArray.extends.addExt(t.mExtends),void this.setArrayData(!0)}}let d=[],u=[],m=[],p=[];for(let e=0;e<l.length;e++){let n=[];for(let t=0;t<l[e];t++)n.push(s[c+t].mX,s[c+t].mY,s[c+t].mZ);const i=zJ()(n,void 0,3);for(let e=0;e<i.length;e++)d.push(n[3*i[e]]-t.mPosition.mX,n[3*i[e]+1]-t.mPosition.mY,n[3*i[e]+2]-t.mPosition.mZ),u.push(o.red,o.green,o.blue,o.alpha),m.push(this.mZIncrease),p.push(t.mLayerIndex);c+=l[e]}let g=this.mVAOExt.createVertexArrayOES();this.mVAOExt.bindVertexArrayOES(g);let f=this.mGlContext.createBuffer();this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,f),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Float32Array(d),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mBaseLocation.position,3,this.mGlContext.FLOAT,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mBaseLocation.position);let b=this.mGlContext.createBuffer();this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,b),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Uint8Array(u),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mBaseLocation.color,4,this.mGlContext.UNSIGNED_BYTE,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mBaseLocation.color),this.mVAOExt.bindVertexArrayOES(null),h.clipArea={vao:g,length:d.length/3};let y=this.mVAOExt.createVertexArrayOES();if(this.mVAOExt.bindVertexArrayOES(y),null===(a=e.mTriangle)||void 0===a?void 0:a.hasColorTriangle()){d=[],u=[],m=[],p=[];for(let e=0;e<n.length;e++){d.push(n[e].mX-t.mPosition.mX,n[e].mY-t.mPosition.mY,n[e].mZ-t.mPosition.mZ);const r=fj.colorToRgb(i[e].color);u.push(r.red,r.green,r.blue,255),m.push(this.mZIncrease),p.push(t.mLayerIndex)}let e=this.mGlContext.createBuffer();this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,e),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Float32Array(d),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mBaseLocation.position,3,this.mGlContext.FLOAT,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mBaseLocation.position);let r=this.mGlContext.createBuffer();this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,r),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Uint8Array(u),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mBaseLocation.color,4,this.mGlContext.UNSIGNED_BYTE,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mBaseLocation.color)}else this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,f),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mBaseLocation.position,3,this.mGlContext.FLOAT,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mBaseLocation.position),this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,b),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mBaseLocation.color,4,this.mGlContext.UNSIGNED_BYTE,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mBaseLocation.color);const v=this.mGlContext.createBuffer();this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,v),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Float32Array(m),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mBaseLocation.zIncrease,1,this.mGlContext.FLOAT,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mBaseLocation.zIncrease);const w=this.mGlContext.createBuffer();this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,w),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Uint16Array(p),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mBaseLocation.layerIndex,1,this.mGlContext.UNSIGNED_SHORT,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mBaseLocation.layerIndex),this.mVAOExt.bindVertexArrayOES(null),h.drawArea={vao:y,length:d.length/3},this.spliceData.mHatchArray.push(h)}rawDrawWipeOut3d(t,e,n){if(null===this.mGlContext||null===this.mCanvas)return;let i;if(!t.mEnableHighlight&&(i=fj.colorToRgb(t.mBackgroundColor),1===t.mFillMode)){let r=[],a=[],o=[],s=[];for(let l=0;l<n;l++)r.push(e[l].mX-t.mPosition.mX,e[l].mY-t.mPosition.mY,e[l].mZ-t.mPosition.mZ),a.push(i.red,i.green,i.blue,i.alpha),o.push(this.mZIncrease),s.push(t.mLayerIndex);let l=this.mVAOExt.createVertexArrayOES();this.mVAOExt.bindVertexArrayOES(l);const c=this.mGlContext.createBuffer();this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,c),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Float32Array(r),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mBaseLocation.position,3,this.mGlContext.FLOAT,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mBaseLocation.position);const h=this.mGlContext.createBuffer();this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,h),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Uint8Array(a),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mBaseLocation.color,4,this.mGlContext.UNSIGNED_BYTE,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mBaseLocation.color);const d=this.mGlContext.createBuffer();this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,d),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Float32Array(o),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mBaseLocation.zIncrease,1,this.mGlContext.FLOAT,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mBaseLocation.zIncrease);const u=this.mGlContext.createBuffer();this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,u),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Uint16Array(s),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mBaseLocation.layerIndex,1,this.mGlContext.UNSIGNED_SHORT,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mBaseLocation.layerIndex),this.mVAOExt.bindVertexArrayOES(null),this.spliceData.mWipeoutArray.push({vao:l,length:r.length/3})}}rawDrawXLineOrRay3d(t,e){if(null===this.mGlContext||null===this.mCanvas)return;let n,i=new QR(e.mBasePoint.mX-t.mPosition.mX,e.mBasePoint.mY-t.mPosition.mY,e.mBasePoint.mZ-t.mPosition.mZ),r=new QR(e.mUnitPoint.mX-t.mPosition.mX,e.mUnitPoint.mY-t.mPosition.mY,e.mUnitPoint.mZ-t.mPosition.mZ);n=t.mEnableHighlight?{red:37,green:157,blue:243,alpha:255}:fj.colorToRgb(t.mForegroundColor),this.spliceData.mXlineOrRayArray.push({type:e.type,mBasePoint:i,mUnitPoint:r,color:n,lineWidth:t.mLineweight,zIncrease:this.mZIncrease,layerIndex:t.mLayerIndex})}setArrayData(t){if(null!==this.mGlContext&&null!==this.mCanvas){if(this.spliceData.mPointArray.pointArray.length>(t?m6.PacketPtSize:0)){let t=this.createBufferBase(this.spliceData.mPointArray);t&&t.extends&&t.extends.copy(this.spliceData.mPointArray.extends),t&&this.spliceData.mPointBuffer.push(t),this.spliceData.mPointArray.primitiveArray=[],this.spliceData.mPointArray.pointArray=[],this.spliceData.mPointArray.colorArray=[],this.spliceData.mPointArray.normalArray=[],this.spliceData.mPointArray.zIncreaseArray=[],this.spliceData.mPointArray.layerIndexArray=[],this.spliceData.mPointArray.extends=new NU}if(this.spliceData.mLineStripArray.pointArray.length>(t?m6.PacketPtSize:0)){let t=this.createBufferBase(this.spliceData.mLineStripArray);if(t){if(null!==this.mExtMultiDraw){let e=this.spliceData.mLineStripArray.primitiveArray,n=0,i=new Int32Array(e.length),r=new Int32Array(e.length);for(let t=0;t<e.length;t++)i[t]=e[t],r[t]=n,n+=4*e[t];t.countList=i,t.offsetList=r}t&&t.extends&&t.extends.copy(this.spliceData.mLineStripArray.extends),this.spliceData.mLineStripBuffer.push(t)}this.spliceData.mLineStripArray.primitiveArray=[],this.spliceData.mLineStripArray.pointArray=[],this.spliceData.mLineStripArray.colorArray=[],this.spliceData.mLineStripArray.normalArray=[],this.spliceData.mLineStripArray.zIncreaseArray=[],this.spliceData.mLineStripArray.layerIndexArray=[],this.spliceData.mLineStripArray.extends=new NU}if(this.spliceData.mTriangleArray.pointArray.length>(t?m6.PacketPtSize:0)){let t=this.createBufferBase(this.spliceData.mTriangleArray);t&&t.extends&&t.extends.copy(this.spliceData.mTriangleArray.extends),t&&this.spliceData.mTriangleBuffer.push(t),this.spliceData.mTriangleArray.primitiveArray=[],this.spliceData.mTriangleArray.pointArray=[],this.spliceData.mTriangleArray.colorArray=[],this.spliceData.mTriangleArray.normalArray=[],this.spliceData.mTriangleArray.zIncreaseArray=[],this.spliceData.mTriangleArray.layerIndexArray=[],this.spliceData.mTriangleArray.extends=new NU}if(this.spliceData.mShadedTriangleArray.pointArray.length>(t?m6.PacketPtSize:0)){let t=this.mVAOExt.createVertexArrayOES();this.mVAOExt.bindVertexArrayOES(t);const e=this.mGlContext.createBuffer();this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,e),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Float32Array(this.spliceData.mShadedTriangleArray.pointArray),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mShadedLocation.position,3,this.mGlContext.FLOAT,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mShadedLocation.position);const n=this.mGlContext.createBuffer();this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,n),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Float32Array(this.spliceData.mShadedTriangleArray.normalArray),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mShadedLocation.normal,3,this.mGlContext.FLOAT,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mShadedLocation.normal);const i=this.mGlContext.createBuffer();this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,i),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Uint8Array(this.spliceData.mShadedTriangleArray.colorArray),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mShadedLocation.color,4,this.mGlContext.UNSIGNED_BYTE,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mShadedLocation.color);const r=this.mGlContext.createBuffer();this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,r),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Float32Array(this.spliceData.mShadedTriangleArray.zIncreaseArray),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mShadedLocation.zIncrease,1,this.mGlContext.FLOAT,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mShadedLocation.zIncrease);const a=this.mGlContext.createBuffer();this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,a),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Uint16Array(this.spliceData.mShadedTriangleArray.layerIndexArray),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mShadedLocation.layerIndex,1,this.mGlContext.UNSIGNED_SHORT,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mShadedLocation.layerIndex);let o=new Int32Array(this.spliceData.mShadedTriangleArray.pointArray.length/3);for(let t=0;t<this.spliceData.mShadedTriangleArray.pointArray.length/3;++t)o[t]=t;const s=this.mGlContext.createBuffer();this.mGlContext.bindBuffer(this.mGlContext.ELEMENT_ARRAY_BUFFER,s),this.mGlContext.bufferData(this.mGlContext.ELEMENT_ARRAY_BUFFER,o,this.mGlContext.STATIC_DRAW),this.mVAOExt.bindVertexArrayOES(null);let l={vao:t,countList:null,offsetList:null,length:this.spliceData.mShadedTriangleArray.pointArray.length/3,extends:new NU};l&&l.extends&&l.extends.copy(this.spliceData.mShadedTriangleArray.extends),l&&this.spliceData.mShadedTriangleBuffer.push(l),this.spliceData.mShadedTriangleArray.primitiveArray=[],this.spliceData.mShadedTriangleArray.pointArray=[],this.spliceData.mShadedTriangleArray.colorArray=[],this.spliceData.mShadedTriangleArray.normalArray=[],this.spliceData.mShadedTriangleArray.zIncreaseArray=[],this.spliceData.mShadedTriangleArray.layerIndexArray=[],this.spliceData.mShadedTriangleArray.extends=new NU}if(this.spliceData.mLineWidthArray.startArray.length>(t?m6.PacketPtSize:0)){let t=this.mVAOExt.createVertexArrayOES();this.mVAOExt.bindVertexArrayOES(t);const e=this.mGlContext.createBuffer();this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,e),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Float32Array(this.spliceData.mLineWidthArray.lineWidthArray),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mLineWidthLocation.lineWidth,1,this.mGlContext.FLOAT,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mLineWidthLocation.lineWidth);const n=this.mGlContext.createBuffer();this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,n),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Float32Array(this.spliceData.mLineWidthArray.startArray),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mLineWidthLocation.start,3,this.mGlContext.FLOAT,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mLineWidthLocation.start);const i=this.mGlContext.createBuffer();this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,i),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Float32Array(this.spliceData.mLineWidthArray.endArray),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mLineWidthLocation.end,3,this.mGlContext.FLOAT,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mLineWidthLocation.end);const r=this.mGlContext.createBuffer();this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,r),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Uint8Array(this.spliceData.mLineWidthArray.uvArray),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mLineWidthLocation.uv,2,this.mGlContext.BYTE,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mLineWidthLocation.uv);const a=this.mGlContext.createBuffer();this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,a),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Uint8Array(this.spliceData.mLineWidthArray.colorArray),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mLineWidthLocation.color,4,this.mGlContext.UNSIGNED_BYTE,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mLineWidthLocation.color);const o=this.mGlContext.createBuffer();this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,o),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Float32Array(this.spliceData.mLineWidthArray.zIncreaseArray),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mLineWidthLocation.zIncrease,1,this.mGlContext.FLOAT,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mLineWidthLocation.zIncrease);const s=this.mGlContext.createBuffer();this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,s),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Uint16Array(this.spliceData.mLineWidthArray.layerIndexArray),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mLineWidthLocation.layerIndex,1,this.mGlContext.UNSIGNED_SHORT,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mLineWidthLocation.layerIndex),this.mVAOExt.bindVertexArrayOES(null);let l={vao:t,length:this.spliceData.mLineWidthArray.startArray.length/3,extends:new NU};l&&l.extends&&l.extends.copy(this.spliceData.mShadedTriangleArray.extends),l&&this.spliceData.mLineWidthBuffer.push(l),this.spliceData.mLineWidthArray.lineWidthArray=[],this.spliceData.mLineWidthArray.startArray=[],this.spliceData.mLineWidthArray.endArray=[],this.spliceData.mLineWidthArray.uvArray=[],this.spliceData.mLineWidthArray.colorArray=[],this.spliceData.mLineWidthArray.zIncreaseArray=[],this.spliceData.mLineStripArray.layerIndexArray=[],this.spliceData.mLineWidthArray.extends=new NU}}}createBufferBase(t){if(null===this.mGlContext||null===this.mCanvas)return null;let e=this.mVAOExt.createVertexArrayOES();this.mVAOExt.bindVertexArrayOES(e);const n=this.mGlContext.createBuffer();this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,n),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Float32Array(t.pointArray),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mBaseLocation.position,3,this.mGlContext.FLOAT,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mBaseLocation.position);const i=this.mGlContext.createBuffer();this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,i),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Uint8Array(t.colorArray),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mBaseLocation.color,4,this.mGlContext.UNSIGNED_BYTE,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mBaseLocation.color);const r=this.mGlContext.createBuffer();this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,r),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Float32Array(t.zIncreaseArray),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mBaseLocation.zIncrease,1,this.mGlContext.FLOAT,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mBaseLocation.zIncrease);const a=this.mGlContext.createBuffer();this.mGlContext.bindBuffer(this.mGlContext.ARRAY_BUFFER,a),this.mGlContext.bufferData(this.mGlContext.ARRAY_BUFFER,new Uint16Array(t.layerIndexArray),this.mGlContext.STATIC_DRAW),this.mGlContext.vertexAttribPointer(m6.mShaderManager.mBaseLocation.layerIndex,1,this.mGlContext.UNSIGNED_SHORT,!1,0,0),this.mGlContext.enableVertexAttribArray(m6.mShaderManager.mBaseLocation.layerIndex);let o=new Int32Array(t.pointArray.length/3);for(let e=0;e<t.pointArray.length/3;++e)o[e]=e;const s=this.mGlContext.createBuffer();return this.mGlContext.bindBuffer(this.mGlContext.ELEMENT_ARRAY_BUFFER,s),this.mGlContext.bufferData(this.mGlContext.ELEMENT_ARRAY_BUFFER,o,this.mGlContext.STATIC_DRAW),this.mVAOExt.bindVertexArrayOES(null),{vao:e,countList:null,offsetList:null,length:t.pointArray.length/3,extends:new NU}}setViewFlag(t,e){let n;if(this.mDrawLayer===EB.kZcDrLongterm&&(n=this.mLongtermDrawDataMap),this.mDrawLayer===EB.kZcDrLongtermHighlight&&(n=this.mHighlightDrawDataMap),!n)return;let i=n.get(t);void 0===i&&(i=new Map,n.set(t,i),this.mWebGLFlag=c6.reGenData);let r=i.get(e);void 0===r?(this.viewDrawData=new u6,i.set(e,this.viewDrawData)):(this.viewDrawData=r,this.viewDrawData.regenArr=Array.from(new Set(this.viewDrawData.regenArr)))}addHandle(t){this.viewDrawData.handleMap.set(t,this.viewDrawData.spliceDataArr.length)}doSplice(){this.getSpliceSize(this.spliceData)>m6.SpliceSize&&(this.setArrayData(!1),this.setSpliceData())}getSpliceSize(t){return t.mPointArray.pointArray.length+t.mPointBuffer.length*m6.PacketPtSize+t.mLineStripArray.pointArray.length+t.mLineStripBuffer.length*m6.PacketPtSize+t.mTriangleArray.pointArray.length+t.mTriangleBuffer.length*m6.PacketPtSize+t.mShadedTriangleArray.pointArray.length+t.mShadedTriangleBuffer.length*m6.PacketPtSize+t.mHatchArray.length*m6.PacketPtSize/100+t.mWipeoutArray.length*m6.PacketPtSize/100+t.mImageArray.length*m6.PacketPtSize/100+t.mLineWidthArray.startArray.length+t.mLineWidthBuffer.length*m6.PacketPtSize+t.mXlineOrRayArray.length*m6.PacketPtSize/100}setSpliceData(){this.viewDrawData.spliceDataArr.push(this.spliceData),this.viewDrawData.mZIncrease=this.mZIncrease,this.spliceData=new d6,this.spliceData.mZIncrease=this.mZIncrease}isReGenNode(t){let e=this.viewDrawData.handleMap.get(t);return!(void 0===e||!this.viewDrawData.regenArr.includes(e)||(this.regenIndex!==e&&(this.setArrayData(!1),this.spliceData=this.viewDrawData.spliceDataArr[e],this.mZIncrease=this.spliceData.mZIncrease,this.regenIndex=e),0))}clearHighlight(t,e){let n=this.mHighlightDrawDataMap.get(t);void 0===n&&(n=new Map,this.mHighlightDrawDataMap.set(t,n)),this.viewDrawData=new u6,n.set(e,this.viewDrawData),this.mWebGLFlag=c6.reGenData}getReDraw(){return this.mWebGLFlag}setReGenData(){this.mWebGLFlag=c6.reGenData,this.mLongtermDrawDataMap=new Map,this.mHighlightDrawDataMap=new Map}setAddNewData(t,e,n){this.mWebGLFlag=c6.addNewData;let i=this.mLongtermDrawDataMap.get(t);if(void 0===i)return;let r=i.get(e);if(void 0===r)return;let a=r.spliceDataArr.length-1,o=r.spliceDataArr[a];if(this.getSpliceSize(o)>m6.SpliceSize){let t=new d6;t.mZIncrease=r.mZIncrease,r.spliceDataArr[a+1]=t,r.handleMap.set(n,a+1),r.regenArr.push(a+1)}else{let t=new d6;t.mZIncrease=o.mZIncrease,r.spliceDataArr[a]=t,r.handleMap.set(n,a),r.regenArr.push(a)}}setModifyData(t,e,n){this.mWebGLFlag=c6.modifyData;let i=this.mLongtermDrawDataMap.get(t);if(void 0===i)return;let r=i.get(e);if(void 0===r)return;let a=r.handleMap.get(n);if(void 0!==a){if(!r.regenArr.includes(a)){let t=new d6;r.spliceDataArr[a]&&(t.mZIncrease=r.spliceDataArr[a].mZIncrease),r.spliceDataArr[a]=t,r.regenArr.push(a)}r.handleMap.set(n,a)}}setDeleteData(t){this.mWebGLFlag=c6.deleteData;for(let[e,n]of this.mLongtermDrawDataMap)for(let[e,i]of n){let e=i.handleMap.get(t);if(void 0!==e){if(!i.regenArr.includes(e)){let t=new d6;t.mZIncrease=i.spliceDataArr[e].mZIncrease,i.spliceDataArr[e]=t,i.regenArr.push(e)}i.handleMap.delete(t)}}}setNoGenData(){this.mWebGLFlag=c6.noGenData}setLayerTable(t,e){let n=t.itemCount();this.mLayerImage=new ImageData(n,1),this.mLayerLength=n;let i=!1,r=!1;for(let a=0;a<n;a++){let n=t.getAt(a);if(void 0===n)break;i=!1,r=!1;let o=n.getLayerInfo();if(void 0!==o){i=o.mIsOff;let t=o.mViewportData;if(e){let n=t.get(e);n&&(r=n.mLayerIsFrozen)}}(!i&&!r||IJ.mLayerOverlimit)&&(this.mLayerImage.data[4*a]=255)}}}m6.PacketPtSize=3e4,m6.MaxPacketPtSize=4e5,m6.SpliceSize=9e4,m6.ExpandSize=5,m6.mShaderManager=new class{constructor(){this.mBaseProgram=null,this.mBaseLocation={},this.mImageProgram=null,this.mImageLocation={},this.mShadedProgram=null,this.mShadedLocation={},this.mLineWidthProgram=null,this.mLineWidthLocation={}}createShader(t,e,n){const i=t.createShader(e);if(i){if(t.shaderSource(i,n),t.compileShader(i),t.getShaderParameter(i,t.COMPILE_STATUS))return SF.logInfo("Compile shader success"),i;SF.logError(t.getShaderInfoLog(i),SF.errorStatus.drawError),t.deleteShader(i)}return null}createProgram(t,e,n){const i=t.createProgram(),r=this.createShader(t,t.VERTEX_SHADER,e),a=this.createShader(t,t.FRAGMENT_SHADER,n);if(i&&r&&a){if(t.attachShader(i,r),t.attachShader(i,a),t.linkProgram(i),t.getProgramParameter(i,t.LINK_STATUS))return SF.logInfo("Compile progress success"),i;SF.logError(t.getProgramInfoLog(i),SF.errorStatus.drawError),t.deleteProgram(i)}return null}init(t){this.mBaseProgram=this.createProgram(t,"\nprecision highp float;\n\nattribute vec3 a_position;\nattribute vec4 a_color;\n\nattribute float a_zIncrease;\n\nuniform float u_maxIncrease;\n\nuniform mat4 u_mat;\nuniform vec2 u_screen;\n\nvarying vec3 v_position;\nvarying vec4 v_color;\n\nattribute float a_layerIndex;\nvarying float v_layerIndex;\n\nvoid main()\n{\n vec4 posDevice = u_mat * vec4(a_position, 1.0);\n\n float zPos = posDevice.w != 0.0 && posDevice.w != 1.0 ? posDevice.z / posDevice.w : posDevice.z;\n\tv_position = vec3((posDevice.x + 1.0) * 0.5 * u_screen.x, (posDevice.y + 1.0) * 0.5 * u_screen.y, zPos);\n\n\tv_color = vec4(a_color.r / 255.0, a_color.g / 255.0, a_color.b / 255.0, a_color.a / 255.0);\n\n\tv_layerIndex = a_layerIndex;\n\n\tgl_PointSize = 1.0;\n\tgl_Position = vec4(posDevice.x, posDevice.y, posDevice.z - a_zIncrease / u_maxIncrease, posDevice.w);\n}\n","\nprecision highp float;\n\nuniform bool u_useHighLight;\n\nvarying vec3 v_position;\nvarying vec4 v_color;\n\nuniform sampler2D u_layerInfo;\nuniform float u_layerLength;\nvarying float v_layerIndex;\n\nvoid main()\n{\n\tvec4 layer = texture2D(u_layerInfo, vec2((v_layerIndex + 0.5) / u_layerLength , 0 ));\n\tif (layer.r == 0.) {\n\t\tdiscard;\n\t}\n\t\n\tfloat posX = floor(mod(v_position.x, 4.0));\n\tfloat posY = floor(mod(v_position.y, 4.0));\n\n\tif (u_useHighLight && ((abs(posX) == abs(posY)) || ((4.0 - abs(posX)) == abs(posY)))) {\n\t\tgl_FragColor = vec4(0, 0, 0, 0);\n\t}\n\telse {\n\t\tif (v_color.a < 0.3) {\n\t\t\tgl_FragColor = vec4(v_color.rgb, 0.3);\n\t\t} else {\n\t\t\tgl_FragColor = v_color;\n\t\t}\n\t}\n}\n"),null!==this.mBaseProgram&&(this.mBaseLocation={position:t.getAttribLocation(this.mBaseProgram,"a_position"),color:t.getAttribLocation(this.mBaseProgram,"a_color"),zIncrease:t.getAttribLocation(this.mBaseProgram,"a_zIncrease"),layerIndex:t.getAttribLocation(this.mBaseProgram,"a_layerIndex"),maxIncrease:t.getUniformLocation(this.mBaseProgram,"u_maxIncrease"),mat:t.getUniformLocation(this.mBaseProgram,"u_mat"),screen:t.getUniformLocation(this.mBaseProgram,"u_screen"),useHighLight:t.getUniformLocation(this.mBaseProgram,"u_useHighLight"),layerInfo:t.getUniformLocation(this.mBaseProgram,"u_layerInfo"),layerLength:t.getUniformLocation(this.mBaseProgram,"u_layerLength")}),this.mImageProgram=this.createProgram(t,"\nprecision highp float;\n\nattribute vec3 a_position;\nattribute vec2 a_texCoord;\n\nuniform float u_zIncrease;\n\nuniform float u_maxIncrease;\n\nuniform mat4 u_mat;\n\nvarying vec2 v_texCoord;\n\nuniform float a_layerIndex;\nvarying float v_layerIndex;\n\nvoid main()\n{\n\tvec4 posDevice = u_mat * vec4(a_position, 1.0);\n\n\tv_texCoord = a_texCoord;\n\n\tv_layerIndex = a_layerIndex;\n\n\tgl_Position = vec4(posDevice.x, posDevice.y, posDevice.z - u_zIncrease / u_maxIncrease, posDevice.w);\n}\n","\nprecision highp float;\n\nuniform sampler2D u_image;\n\nvarying vec2 v_texCoord;\n\nuniform sampler2D u_layerInfo;\nuniform float u_layerLength;\nvarying float v_layerIndex;\n\nvoid main()\n{\n\tvec4 layer = texture2D(u_layerInfo, vec2((v_layerIndex + 0.5) / u_layerLength , 0 ));\n\tif (layer.r == 0.) {\n\t\tdiscard;\n\t}\n\n\tgl_FragColor = texture2D(u_image, v_texCoord);\n}\n"),null!==this.mImageProgram&&(this.mImageLocation={position:t.getAttribLocation(this.mImageProgram,"a_position"),texCoord:t.getAttribLocation(this.mImageProgram,"a_texCoord"),layerIndex:t.getUniformLocation(this.mImageProgram,"a_layerIndex"),zIncrease:t.getUniformLocation(this.mImageProgram,"u_zIncrease"),maxIncrease:t.getUniformLocation(this.mImageProgram,"u_maxIncrease"),mat:t.getUniformLocation(this.mImageProgram,"u_mat"),image:t.getUniformLocation(this.mImageProgram,"u_image"),layerInfo:t.getUniformLocation(this.mImageProgram,"u_layerInfo"),layerLength:t.getUniformLocation(this.mImageProgram,"u_layerLength")}),this.mShadedProgram=this.createProgram(t,"\nprecision highp float;\n\nattribute vec3 a_position;\nattribute vec3 a_normal;\nattribute vec4 a_color;\n\nattribute float a_zIncrease;\n\nuniform float u_maxIncrease;\n\nuniform mat4 u_mat;\nuniform vec2 u_screen;\n\nstruct MaterialInfo\n{\n\tvec3 ka;\t\t\t//Ambient reflectivity\n\tvec3 kd;\t\t\t//Diffuse reflectivity\n\tvec3 ks;\t\t\t//Specular reflectivity\n\tfloat shininess;\t//Specular shininess factor\n};\nuniform MaterialInfo u_material;\nuniform vec3 u_lightDir;\nuniform mat4 u_viewingMat;\n\nvarying vec3 v_position;\nvarying vec4 v_color;\n\nattribute float a_layerIndex;\nvarying float v_layerIndex;\n\nvoid main()\n{\n vec4 posDevice = u_mat * vec4(a_position, 1.0);\n\n float zPos = posDevice.w != 0.0 && posDevice.w != 1.0 ? posDevice.z / posDevice.w : posDevice.z;\n\tv_position = vec3((posDevice.x + 1.0) * 0.5 * u_screen.x, (posDevice.y + 1.0) * 0.5 * u_screen.y, zPos);\n\n\tgl_PointSize = 1.0;\n\tgl_Position = vec4(posDevice.x, posDevice.y, posDevice.z - a_zIncrease / u_maxIncrease, posDevice.w);\n\n\t//light calculate\n\tvec4 normTmp = u_viewingMat * vec4(a_normal, 0.0);\n\tvec3 normInEye = normalize(vec3(normTmp.x, normTmp.y, normTmp.z));\n\n\t//back face\n\tif (normInEye.z > 0.0)\n\tnormInEye.z = -normInEye.z;\n\n\tfloat lightDirDotN = max(dot(u_lightDir, normInEye), 0.0);\n\n vec3 tempColor = vec3(a_color.r / 255.0, a_color.g / 255.0, a_color.b / 255.0);\n\n\tvec3 ambientColor = tempColor * u_material.ka;\n\tvec3 diffuseColor = tempColor * u_material.kd * lightDirDotN;\n\tvec3 specularColor = vec3(0.0, 0.0, 0.0);\n\n\tvec3 reflectVec = reflect(-u_lightDir, normInEye);\n\tfloat diff = max(dot(reflectVec, vec3(0, 0, -1.0)), 0.0);\n\tif (lightDirDotN != 0.0) {\n\t\tspecularColor = u_material.ks * pow(diff, u_material.shininess);\n\t}\n\n\tv_layerIndex = a_layerIndex;\n\n\tv_color.rgb = ambientColor + diffuseColor + specularColor;\n\tv_color.a = a_color.a / 255.0;\n}\n","\nprecision highp float;\n\t\nuniform bool u_useHighLight;\n\nvarying vec3 v_position;\nvarying vec4 v_color;\n\nuniform sampler2D u_layerInfo;\nuniform float u_layerLength;\nvarying float v_layerIndex;\n\nvoid main()\n{\n\tvec4 layer = texture2D(u_layerInfo, vec2((v_layerIndex + 0.5) / u_layerLength , 0 ));\n\tif (layer.r == 0.) {\n\t\tdiscard;\n\t}\n\n\tfloat posX = floor(mod(v_position.x, 4.0));\n\tfloat posY = floor(mod(v_position.y, 4.0));\n\n\tif (u_useHighLight && ((abs(posX) == abs(posY)) || ((4.0 - abs(posX)) == abs(posY)))) {\n\t\tgl_FragColor = vec4(0, 0, 0, 0);\n\t}\n\telse {\n\t\tif (v_color.a < 0.3) {\n\t\t\tgl_FragColor = vec4(v_color.rgb, 0.3);\n\t\t} else {\n\t\t\tgl_FragColor = v_color;\n\t\t}\n\t}\n}\n"),null!==this.mShadedProgram&&(this.mShadedLocation={position:t.getAttribLocation(this.mShadedProgram,"a_position"),normal:t.getAttribLocation(this.mShadedProgram,"a_normal"),color:t.getAttribLocation(this.mShadedProgram,"a_color"),zIncrease:t.getAttribLocation(this.mShadedProgram,"a_zIncrease"),layerIndex:t.getAttribLocation(this.mShadedProgram,"a_layerIndex"),maxIncrease:t.getUniformLocation(this.mShadedProgram,"u_maxIncrease"),mat:t.getUniformLocation(this.mShadedProgram,"u_mat"),screen:t.getUniformLocation(this.mShadedProgram,"u_screen"),material:{ka:t.getUniformLocation(this.mShadedProgram,"u_material.ka"),kd:t.getUniformLocation(this.mShadedProgram,"u_material.kd"),ks:t.getUniformLocation(this.mShadedProgram,"u_material.ks"),shininess:t.getUniformLocation(this.mShadedProgram,"u_material.shininess")},lightDir:t.getUniformLocation(this.mShadedProgram,"u_lightDir"),viewingMat:t.getUniformLocation(this.mShadedProgram,"u_viewingMat"),useHighLight:t.getUniformLocation(this.mShadedProgram,"u_useHighLight"),layerInfo:t.getUniformLocation(this.mShadedProgram,"u_layerInfo"),layerLength:t.getUniformLocation(this.mShadedProgram,"u_layerLength")}),this.mLineWidthProgram=this.createProgram(t,"\nprecision highp float;\n\nattribute float a_lineWidth;\nattribute vec3 a_start;\nattribute vec3 a_end;\nattribute vec2 a_uv;\nattribute vec4 a_color;\n\nattribute float a_zIncrease;\n\nuniform float u_maxIncrease;\n\nuniform mat4 u_mat;\nuniform vec2 u_screen;\n\nvarying vec2 v_uv;\nvarying vec3 v_position;\nvarying vec4 v_color;\n\nattribute float a_layerIndex;\nvarying float v_layerIndex;\n\nvoid main()\n{\n\tv_uv = a_uv;\n\n\tvec4 startDevice = u_mat * vec4(a_start, 1.0);\n\tvec4 endDevice = u_mat * vec4(a_end, 1.0);\n\n\tfloat aspect = u_screen.x / u_screen.y;\n\n\tvec2 dir = endDevice.xy - startDevice.xy;\n\tdir.x *= aspect;\n\tdir = normalize(dir);\n\t\n\tvec2 offset = vec2(dir.y, -dir.x);\n\n\tdir.x /= aspect;\n\toffset.x /= aspect;\n\n\tif (a_uv.y > 0.0) {\n\t\toffset *= - 1.0;\n\t}\n\n\tif (a_uv.x < -1.0) {\n\t\toffset -= dir;\n\t} else if (a_uv.x > 1.0) {\n\t\toffset += dir;\n\t}\n\n\toffset /= u_screen.y;\n\toffset *= a_lineWidth;\n\n\tvec4 posDevice = ( a_uv.x < 0.0 ) ? startDevice : endDevice;\n\n\tposDevice.xy += offset;\n\n float zPos = posDevice.w != 0.0 && posDevice.w != 1.0 ? posDevice.z / posDevice.w : posDevice.z;\n\tv_position = vec3((posDevice.x + 1.0) * 0.5 * u_screen.x, (posDevice.y + 1.0) * 0.5 * u_screen.y, zPos);\n\n\tv_color = vec4(a_color.r / 255.0, a_color.g / 255.0, a_color.b / 255.0, a_color.a / 255.0);\n\n\tv_layerIndex = a_layerIndex;\n\n\tgl_PointSize = 1.0;\n\tgl_Position = vec4(posDevice.x, posDevice.y, posDevice.z - a_zIncrease / u_maxIncrease, posDevice.w);\n}\n","\nprecision highp float;\n\nuniform bool u_useHighLight;\n\nvarying vec2 v_uv;\nvarying vec3 v_position;\nvarying vec4 v_color;\n\nuniform sampler2D u_layerInfo;\nuniform float u_layerLength;\nvarying float v_layerIndex;\n\nvoid main()\n{\n\tvec4 layer = texture2D(u_layerInfo, vec2((v_layerIndex + 0.5) / u_layerLength , 0 ));\n\tif (layer.r == 0.) {\n\t\tdiscard;\n\t}\n\n\tif (abs(v_uv.x) > 1.0) {\n\t\tfloat a = (v_uv.x > 0.0) ? v_uv.x - 1.0 : v_uv.x + 1.0;\n\t\tfloat b = v_uv.y;\n\t\tfloat len2 = a * a + b * b;\n\n\t\tif ( len2 > 1.0 ) discard;\n\t}\n\n\tfloat posX = floor(mod(v_position.x, 4.0));\n\tfloat posY = floor(mod(v_position.y, 4.0));\n\n\tif (u_useHighLight && ((abs(posX) == abs(posY)) || ((4.0 - abs(posX)) == abs(posY)))) {\n\t\tgl_FragColor = vec4(0, 0, 0, 0);\n\t}\n\telse {\n\t\tif (v_color.a < 0.3) {\n\t\t\tgl_FragColor = vec4(v_color.rgb, 0.3);\n\t\t} else {\n\t\t\tgl_FragColor = v_color;\n\t\t}\n\t}\n}\n"),null!==this.mLineWidthProgram&&(this.mLineWidthLocation={lineWidth:t.getAttribLocation(this.mLineWidthProgram,"a_lineWidth"),start:t.getAttribLocation(this.mLineWidthProgram,"a_start"),end:t.getAttribLocation(this.mLineWidthProgram,"a_end"),uv:t.getAttribLocation(this.mLineWidthProgram,"a_uv"),color:t.getAttribLocation(this.mLineWidthProgram,"a_color"),zIncrease:t.getAttribLocation(this.mLineWidthProgram,"a_zIncrease"),layerIndex:t.getAttribLocation(this.mLineWidthProgram,"a_layerIndex"),maxIncrease:t.getUniformLocation(this.mLineWidthProgram,"u_maxIncrease"),mat:t.getUniformLocation(this.mLineWidthProgram,"u_mat"),screen:t.getUniformLocation(this.mLineWidthProgram,"u_screen"),useHighLight:t.getUniformLocation(this.mLineWidthProgram,"u_useHighLight"),layerInfo:t.getUniformLocation(this.mLineWidthProgram,"u_layerInfo"),layerLength:t.getUniformLocation(this.mLineWidthProgram,"u_layerLength")})}};class p6{constructor(){this.mPtStart=0,this.mPtCount=0,this.mExtends=new NU,this.mU1=0,this.mU2=1,this.threshold=120,this.m2dContext=null,this.mDefaultLW=pB.kLnWt025,this.mDisplayLW=!0,this.mEnlargeFactor=1,this.mLineweightToDcScale=.5,this.mUnitPixelHeight=1,this.mLayerHandle=-1,this.mFillMode=BB.kZcDrFillNever,this.mForegroundColor=fj.DEFAULT_FOREGROUND_COLOR,this.mBackgroundColor=fj.DEFAULT_BACKGROUND_COLOR,this.mLineweight=1,this.mPolygonWidth=1,this.m2dLimitedToDevice=new JR,this.m2dWorldToObject=new JR,this.m2dViewingMatrix=new JR,this.mBak2dLimitedToDevice=new gB,this.mBak2dWorldToObject=new gB,this.mEyeVecotr=new qR,this.mPrimitiveCollector=null,this.mConvertPts2d=new Array,this.mConvertPts3d=new Array,this.mPosition=new QR,this.mTranslation=new qR,this.mLayerIndex=0,this.mLayerOff=!1,this.mLayerVpFrozen=!1,this.mDrawflags=gj.kNoDrawFlags,this.mLineType=FB.kZcDrSolidLine,this.mIsFastDraw=!1,this.mRenderMode=0,this.mScreenRect=new OJ,this.mEnableHighlight=!1,this.mGraphicSystem=null,this.mCurView=null,this.mXrefActive=!1,this.mHighlightBubble={ids:[],color:""},this.patternCanvas=document.createElement("canvas"),this.patternCanvas.width=3,this.patternCanvas.height=3}getDrawflag(){return this.mDrawflags}setDrawflag(t){this.mDrawflags=t}saveZcGeMatrix3d(t){let e=new JR;e.copy(this.m2dLimitedToDevice),this.mBak2dLimitedToDevice.push(e),this.m2dLimitedToDevice.mul(t),e=new JR,e.copy(this.m2dWorldToObject),this.mBak2dWorldToObject.push(e),this.m2dWorldToObject.mul(t)}restoreZcGeMatrix3d(){let t=this.mBak2dLimitedToDevice.pop();if(null==t)throw new Error("mBak2dLimitedToDevice is empty");this.m2dLimitedToDevice=t;let e=this.mBak2dWorldToObject.pop();if(null==e)throw new Error("mBak2dWorldToObject is empty");this.m2dWorldToObject=e}ClipTest(t,e){let n,i=!0;return t<0?(n=e/t,n>this.mU2?i=!1:n>this.mU1&&(this.mU1=n,i=!0)):t>0?(n=e/t,n<this.mU1?i=!1:n<this.mU2&&(this.mU2=n,i=!0)):e<0&&(i=!1),i}setLineweight(t){null!=this.m2dContext&&(this.mDrawflags&gj.kDrawSolidFill||this.mDrawflags&gj.kDrawNoLineWeight||(this.mLineweight=this.convertLW2pixelWeight(t),this.m2dContext.lineWidth!==this.mLineweight&&(this.m2dContext.lineWidth=this.mLineweight)))}getLineweight(){return this.mLineweight}setHighLight(){this.mEnableHighlight=!0}setHighLightRestore(){this.mEnableHighlight=!1}setUnitPixelHeight(t){this.mUnitPixelHeight=t}getUnitPixelHeight(){return this.mUnitPixelHeight}convertLW2pixelWeight(t){switch(t){case pB.kLnWtByLayer:case pB.kLnWtByBlock:return 0;case pB.kLnWtByLwDefault:return this.convertLW2pixelWeight(this.mDefaultLW);case pB.kLnWt000:case pB.kLnWt005:case pB.kLnWt009:case pB.kLnWt013:case pB.kLnWt015:case pB.kLnWt018:case pB.kLnWt020:case pB.kLnWt025:return this.mDisplayLW?Math.trunc(this.mEnlargeFactor*(2*this.mLineweightToDcScale+.5)):1;case pB.kLnWt030:case pB.kLnWt035:return this.mDisplayLW?Math.trunc(this.mEnlargeFactor*(6*this.mLineweightToDcScale+.5)):1;case pB.kLnWt040:return this.mDisplayLW?Math.trunc(this.mEnlargeFactor*(8*this.mLineweightToDcScale+.5)):1;case pB.kLnWt050:case pB.kLnWt053:return this.mDisplayLW?Math.trunc(this.mEnlargeFactor*(10*this.mLineweightToDcScale+.5)):1;case pB.kLnWt060:return this.mDisplayLW?Math.trunc(this.mEnlargeFactor*(12*this.mLineweightToDcScale+.5)):1;case pB.kLnWt070:return this.mDisplayLW?Math.trunc(this.mEnlargeFactor*(14*this.mLineweightToDcScale+.5)):1;case pB.kLnWt080:return this.mDisplayLW?Math.trunc(this.mEnlargeFactor*(16*this.mLineweightToDcScale+.5)):1;case pB.kLnWt090:return this.mDisplayLW?Math.trunc(this.mEnlargeFactor*(18*this.mLineweightToDcScale+.5)):1;case pB.kLnWt100:case pB.kLnWt106:return this.mDisplayLW?Math.trunc(this.mEnlargeFactor*(20*this.mLineweightToDcScale+.5)):1;case pB.kLnWt120:return this.mDisplayLW?Math.trunc(this.mEnlargeFactor*(24*this.mLineweightToDcScale+.5)):1;case pB.kLnWt140:return this.mDisplayLW?Math.trunc(this.mEnlargeFactor*(26*this.mLineweightToDcScale+.5)):1;case pB.kLnWt158:return this.mDisplayLW?Math.trunc(this.mEnlargeFactor*(28*this.mLineweightToDcScale+.5)):1;case pB.kLnWt200:case pB.kLnWt211:return this.mDisplayLW?Math.trunc(this.mEnlargeFactor*(30*this.mLineweightToDcScale+.5)):1}return 1}setClipRect(t){null!=this.m2dContext&&(this.m2dContext.beginPath(),this.m2dContext.moveTo(t.mX,t.mY),this.m2dContext.lineTo(t.mX+t.mWidth,t.mY),this.m2dContext.lineTo(t.mX+t.mWidth,t.mY+t.mHeight),this.m2dContext.lineTo(t.mX,t.mY+t.mHeight),this.m2dContext.clip("evenodd"))}setClipPolyPolygon(t,e){if(null==this.m2dContext)return;this.m2dContext.save(),this.m2dContext.beginPath();let n=0;for(let i=0;i<t.length;++i){this.m2dContext.moveTo(e[n].mX,e[n].mY);for(let r=1;r<t[i];r++)this.m2dContext.lineTo(e[n+r].mX,e[n+r].mY);n+=t[i]}this.m2dContext.clip("evenodd")}setLineType(t){if(null!=this.m2dContext)switch(this.mLineType=t,t){case FB.kZcDrSolidLine:this.m2dContext.setLineDash([]);break;case FB.kZcDrDashline:this.m2dContext.setLineDash([5,5]);break;case FB.kZcDrLongDashline:this.m2dContext.setLineDash([15,15]);break;case FB.kZcDrDotline:this.m2dContext.setLineDash([5,3,1,3])}}getLineType(){return this.mLineType}setClipPolygon(t){if(null!=this.m2dContext){this.m2dContext.save(),this.m2dContext.beginPath(),this.m2dContext.moveTo(t[0].mX,t[0].mY);for(let e=1;e<t.length;e++)this.m2dContext.lineTo(t[e].mX,t[e].mY);this.m2dContext.clip("evenodd")}}restore(){null!=this.m2dContext&&this.m2dContext.restore()}getThreshold(){return this.threshold}setThreshold(t){this.threshold=t}clipLine(t,e,n,i,r,a){let o,s;if(this.mU1=0,this.mU2=1,o=a.mX-r.mX,this.ClipTest(-o,r.mX-t)&&this.ClipTest(o,n-r.mX)&&(s=a.mY-r.mY,this.ClipTest(-s,r.mY-e)&&this.ClipTest(s,i-r.mY))){let t=Math.round(r.mX+this.mU1*o),e=Math.round(r.mY+this.mU1*s),n=Math.round(r.mX+this.mU2*o),i=Math.round(r.mY+this.mU2*s);return r.set(t,e),a.set(n,i),!0}return!1}getContext(){return this.m2dContext}setContext(t){this.m2dContext=t,this.m2dContext.lineWidth=this.mLineweight}resetContext(){null!=this.m2dContext&&(this.mForegroundColor=fj.DEFAULT_FOREGROUND_COLOR,this.m2dContext.fillStyle="rgba(255,255,255,1)",this.m2dContext.strokeStyle="rgba(255,255,255,1)",this.m2dContext.lineWidth=1,this.mFillMode=BB.kZcDrFillNever,this.setForegroundColor(fj.DEFAULT_FOREGROUND_COLOR),this.mLineweight=1,this.mPolygonWidth=1,this.mDrawflags=gj.kNoDrawFlags)}getPolygonWidth(){return this.mPolygonWidth}setPolygonWidth(t){this.mPolygonWidth=t}setFillMode(t){this.mFillMode=t}getFillMode(){return this.mFillMode}setForegroundColor(t){if(null==this.m2dContext)return;this.mForegroundColor=t;let e=fj.colorToRgb(t);if(this.getXrefStatus()){let t={red:0,green:0,blue:0,alpha:0},n=.5,i=fj.colorToRgb(this.getBackgroundColor());t.red=n*e.red+(1-n)*i.red,t.green=n*e.green+(1-n)*i.green,t.blue=n*e.blue+(1-n)*i.blue,t.alpha=e.alpha,e=t}this.m2dContext.fillStyle="rgba("+e.red+","+e.green+","+e.blue+","+e.alpha/255+")",this.m2dContext.strokeStyle="rgba("+e.red+","+e.green+","+e.blue+","+e.alpha/255+")"}getForegroundColor(){return this.mForegroundColor}setBackgroundColor(t){this.mBackgroundColor=t}getBackgroundColor(){return this.mBackgroundColor}setTranslation(t){null!=this.m2dContext&&(this.mTranslation=t,this.m2dContext.save(),this.m2dContext.translate(t.mX,t.mY))}setLayerIndex(t){this.mLayerIndex=t}getLayerOff(){return this.mLayerOff}setLayerOff(t){this.mLayerOff=t}getLayerViewportFrozen(){return this.mLayerVpFrozen}setLayerViewportFrozen(t){this.mLayerVpFrozen=t}getRenderMode(){return this.mRenderMode}setRenderMode(t){this.mRenderMode=t}setXrefStatus(t){this.mXrefActive=t}getXrefStatus(){return this.mXrefActive}}class g6{constructor(){this.mPtStart=0,this.mPtCount=0,this.mExtends=new NU,this.mU1=0,this.mU2=1,this.threshold=120,this.mGlContext=null,this.mDefaultLW=pB.kLnWt025,this.mDisplayLW=!0,this.mEnlargeFactor=1,this.mLineweightToDcScale=.5,this.mUnitPixelHeight=1,this.mLayerHandle=-1,this.mFillMode=BB.kZcDrFillNever,this.mForegroundColor=fj.DEFAULT_FOREGROUND_COLOR,this.mBackgroundColor=fj.DEFAULT_BACKGROUND_COLOR,this.mLineweight=1,this.mPolygonWidth=1,this.m2dLimitedToDevice=new JR,this.m2dWorldToObject=new JR,this.m2dViewingMatrix=new JR,this.mBak2dLimitedToDevice=new gB,this.mBak2dWorldToObject=new gB,this.mEyeVecotr=new qR,this.mPrimitiveCollector=null,this.mConvertPts2d=new Array,this.mConvertPts3d=new Array,this.mPosition=new QR,this.mTranslation=new qR,this.mLayerIndex=0,this.mLayerOff=!1,this.mLayerVpFrozen=!1,this.mDrawflags=gj.kNoDrawFlags,this.mLineType=FB.kZcDrSolidLine,this.mIsFastDraw=!1,this.mRenderMode=0,this.mScreenRect=new OJ,this.mEnableHighlight=!1,this.mGraphicSystem=null,this.mCurView=null,this.mXrefActive=!1,this.mHighlightBubble={ids:[],color:""}}getDrawflag(){return this.mDrawflags}setDrawflag(t){this.mDrawflags=gj.kNoDrawFlags}saveZcGeMatrix3d(t){let e=new JR;e.copy(this.m2dLimitedToDevice),this.mBak2dLimitedToDevice.push(e),this.m2dLimitedToDevice.mul(t),e=new JR,e.copy(this.m2dWorldToObject),this.mBak2dWorldToObject.push(e),this.m2dWorldToObject.mul(t)}restoreZcGeMatrix3d(){let t=this.mBak2dLimitedToDevice.pop();if(null==t)throw new Error("mBak2dLimitedToDevice is empty");this.m2dLimitedToDevice=t;let e=this.mBak2dWorldToObject.pop();if(null==e)throw new Error("mBak2dWorldToObject is empty");this.m2dWorldToObject=e}setLineweight(t){this.mLineweight=this.convertLW2pixelWeight(t)}getLineweight(){return this.mLineweight}setHighLight(){this.mEnableHighlight=!0}setHighLightRestore(){this.mEnableHighlight=!1}setUnitPixelHeight(t){this.mUnitPixelHeight=t}getUnitPixelHeight(){return this.mUnitPixelHeight}convertLW2pixelWeight(t){switch(t){case pB.kLnWtByLayer:case pB.kLnWtByBlock:return 0;case pB.kLnWtByLwDefault:return this.convertLW2pixelWeight(this.mDefaultLW);case pB.kLnWt000:case pB.kLnWt005:case pB.kLnWt009:case pB.kLnWt013:case pB.kLnWt015:case pB.kLnWt018:case pB.kLnWt020:case pB.kLnWt025:return this.mDisplayLW?Math.trunc(this.mEnlargeFactor*(2*this.mLineweightToDcScale+.5)):1;case pB.kLnWt030:case pB.kLnWt035:return this.mDisplayLW?Math.trunc(this.mEnlargeFactor*(6*this.mLineweightToDcScale+.5)):1;case pB.kLnWt040:return this.mDisplayLW?Math.trunc(this.mEnlargeFactor*(8*this.mLineweightToDcScale+.5)):1;case pB.kLnWt050:case pB.kLnWt053:return this.mDisplayLW?Math.trunc(this.mEnlargeFactor*(10*this.mLineweightToDcScale+.5)):1;case pB.kLnWt060:return this.mDisplayLW?Math.trunc(this.mEnlargeFactor*(12*this.mLineweightToDcScale+.5)):1;case pB.kLnWt070:return this.mDisplayLW?Math.trunc(this.mEnlargeFactor*(14*this.mLineweightToDcScale+.5)):1;case pB.kLnWt080:return this.mDisplayLW?Math.trunc(this.mEnlargeFactor*(16*this.mLineweightToDcScale+.5)):1;case pB.kLnWt090:return this.mDisplayLW?Math.trunc(this.mEnlargeFactor*(18*this.mLineweightToDcScale+.5)):1;case pB.kLnWt100:case pB.kLnWt106:return this.mDisplayLW?Math.trunc(this.mEnlargeFactor*(20*this.mLineweightToDcScale+.5)):1;case pB.kLnWt120:return this.mDisplayLW?Math.trunc(this.mEnlargeFactor*(24*this.mLineweightToDcScale+.5)):1;case pB.kLnWt140:return this.mDisplayLW?Math.trunc(this.mEnlargeFactor*(26*this.mLineweightToDcScale+.5)):1;case pB.kLnWt158:return this.mDisplayLW?Math.trunc(this.mEnlargeFactor*(28*this.mLineweightToDcScale+.5)):1;case pB.kLnWt200:case pB.kLnWt211:return this.mDisplayLW?Math.trunc(this.mEnlargeFactor*(30*this.mLineweightToDcScale+.5)):1}return 1}setClipRect(t){}setClipPolygon(t){}setLineType(t){}getLineType(){return this.mLineType}setClipPolyPolygon(t,e){}restore(){}getThreshold(){return this.threshold}setThreshold(t){this.threshold=t}clipLine(t,e,n,i,r,a){return!1}getContext(){return this.mGlContext}setContext(t){this.mGlContext=t}resetContext(){this.mFillMode=BB.kZcDrFillNever,this.mForegroundColor=fj.DEFAULT_FOREGROUND_COLOR,this.mLineweight=1,this.mPolygonWidth=1,this.mDrawflags=gj.kNoDrawFlags}getPolygonWidth(){return this.mPolygonWidth}setPolygonWidth(t){this.mPolygonWidth=t}setFillMode(t){this.mFillMode=t}getFillMode(){return this.mFillMode}setForegroundColor(t){let e=fj.colorToRgb(t);if(this.getXrefStatus()){let t={red:0,green:0,blue:0,alpha:0},n=.8,i=fj.colorToRgb(this.getBackgroundColor());t.red=Math.floor(n*e.red+(1-n)*i.red),t.green=Math.floor(n*e.green+(1-n)*i.green),t.blue=Math.floor(n*e.blue+(1-n)*i.blue),t.alpha=e.alpha,e=t}this.mForegroundColor=e.alpha*Math.pow(2,24)+e.red*Math.pow(2,16)+e.green*Math.pow(2,8)+e.blue}getForegroundColor(){return this.mForegroundColor}setBackgroundColor(t){this.mBackgroundColor=t}getBackgroundColor(){return this.mBackgroundColor}setTranslation(t){this.mTranslation=t,this.mPosition.mX+=t.mX,this.mPosition.mY+=t.mY,this.mPosition.mZ+=t.mZ}setLayerIndex(t){this.mLayerIndex=t}getLayerOff(){return this.mLayerOff}setLayerOff(t){this.mLayerOff=t}getLayerViewportFrozen(){return this.mLayerVpFrozen}setLayerViewportFrozen(t){this.mLayerVpFrozen=t}getRenderMode(){return this.mRenderMode}setRenderMode(t){this.mRenderMode=t}setXrefStatus(t){this.mXrefActive=t}getXrefStatus(){return this.mXrefActive}}class f6{constructor(t,e,n,i){this.mMin=new oB(t||0,n||0),this.mMax=new oB(e||0,i||0)}set(t,e,n,i){this.mMin.set(t||0,n||0),this.mMax.set(e||0,i||0)}copy(t){this.mMin.mX=t.mX,this.mMin.mX=t.mX,this.mMin.mX=t.mX,this.mMin.mX=t.mX}round(){this.mMin.mX=Math.round(this.mMin.mX),this.mMin.mY=Math.round(this.mMin.mY),this.mMax.mX=Math.round(this.mMax.mX),this.mMax.mY=Math.round(this.mMax.mY)}}class b6{constructor(t){if(this.mGridUCS2WCSMat=new JR,this.mViewSCSRect=new f6(0,900,0,600),this.mGridUCSRect=new f6,this.mViewDir=new qR(0,0,1),this.mUcsOrg=new QR(0,0,0),this.mUcsXAxis=new qR(1,0,0),this.mUcsYAxis=new qR(0,1,0),this.mUcsZAxis=new qR(0,0,1),this.mLimitMin=new QR(0,0,0),this.mLimitMax=new QR(0,0,0),this.mMinorLeft=0,this.mMinorRight=0,this.mMinorBottom=0,this.mMinorTop=0,this.mMajorLeft=0,this.mMajorRight=0,this.mMajorBottom=0,this.mMajorTop=0,this.mXUnit=10,this.mYUnit=10,this.mXSnapUnit=10,this.mYSnapUnit=10,this.mXSnapBase=0,this.mYSnapBase=0,this.mSnapAngle=0,this.mSnapAngleSin=0,this.mSnapAngleCos=0,this.mElevation=0,this.mIsPaperLayout=!1,this.mIsSnapIsometric=!1,this.mIsGridBoundToLimits=!1,this.mIsGridAdaptive=!1,this.mIsGridSubdivisionRestricted=!1,this.mEyeDirIsParallelToGridUCSXY=!1,this.mXAxisClr="RGB(100, 0, 0)",this.mYAxisClr="RGB(0, 100, 0)",this.mMajorGridClr="RGB(45, 45, 45)",this.mMinorGridClr="RGB(28, 28, 28)",this.mGridMajor=5,this.mCurView=null,this.mWorld2EyeMat=new JR,null===t)return;this.mCurView=t,this.mIsGridSubdivisionRestricted=!0,this.mIsGridAdaptive=!0,this.mViewSCSRect.set(0,t.mScreenRect.mWidth,0,t.mScreenRect.mHeight);const e=t.mViewportTableRec.getViewInfo();e.mGridIncrements.mX>0&&(this.mXUnit=e.mGridIncrements.mX),e.mGridIncrements.mY>0&&(this.mYUnit=e.mGridIncrements.mY),this.mUcsOrg.copy(e.mUcsOriginConstant),this.mUcsXAxis.copy(e.mUcsXAxisConstant),this.mUcsYAxis.copy(e.mUcsYAxisConstant),this.mUcsZAxis.copy(e.mUcsZAxisConstant),this.mEyeDirIsParallelToGridUCSXY=this.isGridUCSXYPlanAlmostPerpendicularToRpPlane(e.mUcsZAxisConstant,e.mViewDirection);let n=new JR;n.setCoordSystem(t.mTarget,this.mCurView.mXAxis,this.mCurView.mUpVector,this.mCurView.mEyeVecotr),n.invert(),this.mWorld2EyeMat.copy(n);let i=new QR;i.copy(this.mUcsOrg);let r=this.mUcsZAxis.mul2Vec(this.mElevation);i.addVector(r);let a=new JR;a.setCoordSystem(i,this.mUcsXAxis,this.mUcsYAxis,this.mUcsZAxis);let o=new JR;const s=new qR(0,0,1),l=new QR(0,0,0);o.setToRotate(this.mSnapAngle,s,l),a.mul(o),this.mGridUCS2WCSMat.copy(a)}isGridUCSXYPlanAlmostPerpendicularToRpPlane(t,e){if(null===this.mCurView)return!1;let n=RV.radToDeg(RV.fixAngle(e.angleToWith2Vec(t,this.mCurView.mUpVector.normal().crossProduct(e.normal())))),i=Math.abs(270-n);return!!(i<2.5||(i=Math.abs(90-n),i<2.5))}}class y6{constructor(){this.mVpList=new Array,this.mRootNodeRefMap=new Set,this.mBufOffer=EB.kZcDrLongterm}setBufOffer(t){this.mBufOffer=t}addSceneGraphRoot(t){this.onDrawableAdded(t,null,!0),null!=t.mGsNode&&this.addRootRef(t.mGsNode)}onDrawableAdded(t,e,n){t.setAttributes(),this.bindGsNodeForDrawable(t)}bindGsNodeForDrawable(t){return null!=t.mGsNode||(t.setAttributes(),t.mGsNode=new CB,t.mGsNode.mDrawable=t,t.mGsNode.mObjectId=t.id()),t.mGsNode}addViewport(t){this.mVpList.push(t)}addRootRef(t){this.mRootNodeRefMap.add(t)}zorder(){return this.mBufOffer}}class v6 extends wB{constructor(t){super(),this.mGridContext=null,this.mCurView=null,this.mGridPrimitives=new Array,this.mZcGsPrimitiveCollector=new LV,this.mCurView=t}worldDraw(t){return!1}setAttributes(){let t=!1;return null!=this.mCurView&&(t=this.mCurView.mGridSwitch),t?vB.kDrawableViewIndependentViewportDraw:vB.kDrawableIsInvisible}viewportDraw(t){if(null===this.mCurView)return;let e=!1;if(e=this.mCurView.mGridSwitch,!e||this.mCurView.isOverallView()||(t.clearPrimitives(EB.kZcDrBottomMost),this.mGridPrimitives.length=0,this.mGridContext=new b6(this.mCurView),this.mGridContext.mEyeDirIsParallelToGridUCSXY))return;let n=this.getCurGridSetting();null!=n&&(this.mGridContext.mXUnit=Number(n.gridWidth),this.mGridContext.mYUnit=Number(n.gridHeight)),this.mZcGsPrimitiveCollector.clearCollector(),t.setCurPrimitveCollectorData(EB.kZcDrBottomMost,this.mZcGsPrimitiveCollector),this.generate(t,this.mGridContext),this.mGridPrimitives.length>0&&this.setGsNode(this.mGridContext)}generate(t,e){if(null!==e.mCurView&&!e.mEyeDirIsParallelToGridUCSXY){if(!this.calculateGridRect(e))return;let n=new JR;n.copy(e.mWorld2EyeMat);let i=n.mul(e.mGridUCS2WCSMat),r=e.mGridUCSRect.mMin.mX,a=e.mGridUCSRect.mMax.mX,o=e.mMinorBottom,s=e.mMinorTop,l=new Array(2),c=e.mYUnit,h=2*c,d=e.mGridMajor>1?e.mGridMajor-1:0,u=d>0,m=u,p=e.mGridMajor*e.mYUnit,g=new HB(RB.RESTATTR);this.mGridPrimitives.push(g);let f=e.mCurView.mGraphicSystem;if(null===f)return;let b=f.mGsManager,y=new UB(RB.COLORRGBA32);y.mColor=b.isInPaperSpace()||"light"===f.mCurTheme?zV.pMinorGridColor:zV.minorGridColor,this.mGridPrimitives.push(y);let v=[],w=0;for(;o<=s;)l[0]=new QR,l[0].mX=r,l[0].mY=o,l[0].mZ=0,l[1]=new QR,l[1].mX=a,l[1].mY=o,l[1].mZ=0,l[0]=i.mulPt(l[0]),l[1]=i.mulPt(l[1]),this.polylineEye(l,e,t,"minor"),v.push(Object.assign({},l)),m?(o+=c,XR.isZero(XR.getDotPart(o/p))&&(m=!1,o+=c)):u&&++w>=d?(w=0,o+=h):o+=c;let x=e.mMinorLeft;const C=e.mGridUCSRect.mMin.mY,k=e.mGridUCSRect.mMax.mY,S=e.mMinorRight;let P=e.mXUnit,_=2*P,M=e.mGridMajor*e.mXUnit;m=u;let D=[];for(w=0;x<=S;)l[0]=new QR,l[0].mX=x,l[0].mY=C,l[0].mZ=0,l[1]=new QR,l[1].mX=x,l[1].mY=k,l[1].mZ=0,l[0]=i.mulPt(l[0]),l[1]=i.mulPt(l[1]),this.polylineEye(l,e,t,"minor"),D.push(Object.assign({},l)),m?(x+=P,XR.isZero(XR.getDotPart(x/M))&&(m=!1,x+=P)):u&&++w>=d?(w=0,x+=_):x+=P;this.mGridPrimitives.push(g);let E=new UB(RB.COLORRGBA32);E.mColor=b.isInPaperSpace()||"light"===f.mCurTheme?zV.pMajorGridColor:zV.majorGridColor,this.mGridPrimitives.push(E);let O=[],A=[];if(u){o=e.mMajorBottom;const n=e.mMajorTop;for(c=e.mYUnit*e.mGridMajor;o<=n;)l[0]=new QR,l[0].mX=r,l[0].mY=o,l[0].mZ=0,l[1]=new QR,l[1].mX=a,l[1].mY=o,l[1].mZ=0,l[0]=i.mulPt(l[0]),l[1]=i.mulPt(l[1]),this.polylineEye(l,e,t),O.push(Object.assign({},l)),o+=c;e.mIsGridBoundToLimits&&(XR.isEqual(e.mMajorBottom,e.mGridUCSRect.mMin.mY)||(l[0]=new QR,l[0].mX=r,l[0].mY=e.mGridUCSRect.mMin.mY,l[0].mZ=0,l[1]=new QR,l[1].mX=a,l[1].mY=e.mGridUCSRect.mMin.mY,l[1].mZ=0,l[0]=i.mulPt(l[0]),l[1]=i.mulPt(l[1]),this.polylineEye(l,e,t)),XR.isEqual(e.mMajorTop,e.mGridUCSRect.mMax.mY)||(l[0]=new QR,l[0].mX=r,l[0].mY=e.mGridUCSRect.mMax.mY,l[0].mZ=0,l[1]=new QR,l[1].mX=a,l[1].mY=e.mGridUCSRect.mMax.mY,l[1].mZ=0,l[0]=i.mulPt(l[0]),l[1]=i.mulPt(l[1]),this.polylineEye(l,e,t))),x=e.mMajorLeft;const s=e.mMajorRight;for(P=e.mXUnit*e.mGridMajor;x<=s;)l[0]=new QR,l[0].mX=x,l[0].mY=C,l[0].mZ=0,l[1]=new QR,l[1].mX=x,l[1].mY=k,l[1].mZ=0,l[0]=i.mulPt(l[0]),l[1]=i.mulPt(l[1]),this.polylineEye(l,e,t),A.push(Object.assign({},l)),x+=P;e.mIsGridBoundToLimits&&(XR.isEqual(e.mMajorLeft,e.mGridUCSRect.mMin.mX)||(l[0]=new QR,l[0].mX=e.mGridUCSRect.mMin.mX,l[0].mY=C,l[0].mZ=0,l[1]=new QR,l[1].mX=e.mGridUCSRect.mMin.mX,l[1].mY=k,l[1].mZ=0,l[0]=i.mulPt(l[0]),l[1]=i.mulPt(l[1]),this.polylineEye(l,e,t)),XR.isEqual(e.mMajorRight,e.mGridUCSRect.mMax.mX)||(l[0]=new QR,l[0].mX=e.mGridUCSRect.mMax.mX,l[0].mY=C,l[0].mZ=0,l[1]=new QR,l[1].mX=e.mGridUCSRect.mMax.mX,l[1].mY=k,l[1].mZ=0,l[0]=i.mulPt(l[0]),l[1]=i.mulPt(l[1]),this.polylineEye(l,e,t)))}}}calculateGridRect(t){if(null===t.mCurView)return!1;let e,n,i=new QR,r=new QR;e=new QR(t.mViewSCSRect.mMin.mX,t.mViewSCSRect.mMin.mY,0),n=new QR(t.mViewSCSRect.mMax.mX,t.mViewSCSRect.mMax.mY,0),i.mX=e.mX,i.mY=n.mY,i.mZ=0,r.mX=n.mX,r.mY=e.mY,r.mZ=0;let a=new JR;a.copy(t.mCurView.deviceToWorldMatrix()),e.mulMatrix(a),n.mulMatrix(a),i.mulMatrix(a),r.mulMatrix(a);let o=new NU;if(!this.vportWcsCornerProject2GridUcsPlane(t,e,n,i,r,o))return!1;let s=new NU,l=new QR(1,1,1),c=new QR(-1,-1,-1);if(s.set(l,c),!this.zcgsAdapterTransformExtents(o,new JR,s))return!1;(!t.mIsPaperLayout&&XR.isZero(t.mXUnit)||XR.isZero(t.mYUnit))&&(t.mXUnit=t.mXSnapUnit,t.mYUnit=t.mYSnapUnit),(XR.isZero(t.mXUnit)||XR.isZero(t.mYUnit))&&(t.mXUnit=5,t.mYUnit=5);let h=s.maxPoint().mX-s.minPoint().mX,d=s.maxPoint().mY-s.minPoint().mY,u=0;if(t.mIsGridAdaptive){let e=t.mGridMajor>1?t.mGridMajor:2;if(h<=0)return!1;if(!t.mIsGridSubdivisionRestricted&&10*t.mXUnit)for(;h<10*t.mXUnit;)t.mXUnit/=e,t.mYUnit/=e;else for(d=s.maxPoint().mY-s.minPoint().mY,u=h/t.mXUnit+d/t.mYUnit;u<0||u>220;)t.mXUnit*=e,t.mYUnit*=e,u=h/t.mXUnit+d/t.mYUnit}if(u=h/t.mXUnit+d/t.mYUnit,u<0||u>220)return!1;let m,p=t.mXUnit*t.mGridMajor,g=t.mYUnit*t.mGridMajor;return t.mIsGridBoundToLimits?(t.mGridUCSRect.mMin.mX=s.minPoint().mX,t.mGridUCSRect.mMin.mY=s.minPoint().mY,t.mGridUCSRect.mMax.mX=s.maxPoint().mX,t.mGridUCSRect.mMax.mY=s.maxPoint().mY,t.mMajorLeft=Math.ceil(t.mGridUCSRect.mMin.mX/p)*p,t.mMajorRight=Math.floor(t.mGridUCSRect.mMax.mX/p)*p,t.mMajorBottom=Math.ceil(t.mGridUCSRect.mMin.mY/g)*g,t.mMajorTop=Math.floor(t.mGridUCSRect.mMax.mY/g)*g,t.mMinorLeft=Math.ceil(t.mGridUCSRect.mMin.mX/t.mXUnit)*t.mXUnit,t.mMinorRight=Math.floor(t.mGridUCSRect.mMax.mX/t.mXUnit)*t.mXUnit,t.mMinorBottom=Math.ceil(t.mGridUCSRect.mMin.mY/t.mYUnit)*t.mYUnit,t.mMinorTop=Math.floor(t.mGridUCSRect.mMax.mY/t.mYUnit)*t.mYUnit,XR.isEqual(t.mMajorLeft,t.mMinorLeft)&&(t.mMinorLeft+=t.mXUnit),XR.isEqual(t.mMajorRight,t.mMinorRight)&&(t.mMinorRight-=t.mXUnit),XR.isEqual(t.mMajorBottom,t.mMinorBottom)&&(t.mMinorBottom+=t.mYUnit),XR.isEqual(t.mMajorTop,t.mMinorTop)&&(t.mMinorTop-=t.mYUnit)):(m=XR.getIntegerPart(s.minPoint().mX/p),t.mGridUCSRect.mMin.mX=p*(m-1),m=XR.getIntegerPart(s.minPoint().mY/g),t.mGridUCSRect.mMin.mY=g*(m-1),m=XR.getIntegerPart(s.maxPoint().mX/p),t.mGridUCSRect.mMax.mX=p*(m+1),m=XR.getIntegerPart(s.maxPoint().mY/g),t.mGridUCSRect.mMax.mY=g*(m+1),t.mMajorLeft=t.mGridUCSRect.mMin.mX,t.mMajorRight=t.mGridUCSRect.mMax.mX,t.mMajorBottom=t.mGridUCSRect.mMin.mY,t.mMajorTop=t.mGridUCSRect.mMax.mY,t.mMinorLeft=t.mGridUCSRect.mMin.mX+t.mXUnit,t.mMinorRight=t.mGridUCSRect.mMax.mX-t.mXUnit,t.mMinorBottom=t.mGridUCSRect.mMin.mY+t.mYUnit,t.mMinorTop=t.mGridUCSRect.mMax.mY-t.mYUnit),!0}vportWcsCornerProject2GridUcsPlane(t,e,n,i,r,a){let o=t.mCurView;if(!o)return!1;let s=o.mViewportForwebAssembly,l=o.mPoint3dForwebAssembly;if(!s||!l)return!1;let c=new QR,h=new QR,d=new QR,u=new QR;return c.copy(UF(s,l,e.mX,e.mY,e.mZ)),h.copy(UF(s,l,n.mX,n.mY,n.mZ)),d.copy(UF(s,l,i.mX,i.mY,i.mZ)),u.copy(UF(s,l,r.mX,r.mY,r.mZ)),a.addPoint(c),a.addPoint(h),a.addPoint(d),a.addPoint(u),a.isValidExtents()}zcgsAdapterTransformExtents(t,e,n){let i=new Array(8);if(!t.getExtentsVertexes(i))return!1;i[0]=e.mulPt(i[0]),i[1]=e.mulPt(i[1]),i[2]=e.mulPt(i[2]),i[3]=e.mulPt(i[3]),i[4]=e.mulPt(i[4]),i[5]=e.mulPt(i[5]),i[6]=e.mulPt(i[6]),i[7]=e.mulPt(i[7]),n.addPoint(i[0]),n.addPoint(i[1]),n.addPoint(i[2]),n.addPoint(i[3]),n.addPoint(i[4]),n.addPoint(i[5]),n.addPoint(i[6]),n.addPoint(i[7]);let r=new QR;r.copy(n.maxPoint());let a=new QR;return a.copy(n.minPoint()),XR.isZero(r.mZ-a.mZ)&&(r.mZ+=1,a.mZ-=1,n.addPoint(r),n.addPoint(a)),XR.isZero(r.mX-a.mX)&&(r.mX+=1,a.mX-=1,n.addPoint(r),n.addPoint(a)),XR.isZero(r.mY-a.mY)&&(r.mY+=1,a.mY-=1,n.addPoint(r),n.addPoint(a)),!!n.isValidExtents()}polylineEye(t,e,n,i){if(null===e.mCurView)return;let r=new JR;r.copy(e.mWorld2EyeMat.inverse());let a=[...t];for(let t=0;t<a.length;t++){let e=r.mulPt(a[t]);a[t]=e}let o=n.geometry();if(null===o)return;if(o.convertPt(a,2),o.addPrimitives({data:{type:PB.kZcGsRawPolyline3d},points:a}),null===n.mPrimitiveCollector||null===n.mPrimitiveCollector.mPrimitives)return;let s=n.mPrimitiveCollector.mPrimitives;this.mGridPrimitives.push(s[s.length-1])}setGsNode(t){if(null===t.mCurView)return;let e=t.mCurView.getGsModelData(EB.kZcDrBottomMost);if(void 0===e)return;let n=new y6;this.mGsNode=new CB,this.mGsNode.mDrawable=this;const i=new CB;if(i.mPrimitivesData=new Map,null===this.mCurView)return;i.mPrimitivesData.set(this.mCurView.mVPNumber,this.mGridPrimitives),null===this.mGsNode.mNodeChildren&&(this.mGsNode.mNodeChildren=new Array),this.mGsNode.mNodeChildren.push(i),n.addRootRef(this.mGsNode);let r=new Array;r.push(this.mGsNode),e.set(n,r)}getCurGridSetting(){if(null===this.mCurView)return null;let t=this.mCurView.mVPNumber,e=XF.instance().getItem("gridSetting");if(e)for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&2===n.split("view").length&&n.split("view")[1]===String(t))return e[n]}}class w6{}w6.ZWGR_TWOPI=2*Math.PI,w6.ZWGR_PI=Math.PI,w6.ZWMAX_RANGE=1e20;class x6{constructor(t,e){this.mWidth=0,this.mHeight=0,this.mWidth=t||0,this.mHeight=e||0}}class C6{resetTree(){}}class k6{constructor(){this.mLayerHandle=BigInt(0)}layer(){return this.mLayerHandle}}class S6{constructor(t){this.mGsManager=null,this.mOverallViewW2D=null,this.mDeiveSize=new x6,this.mArrView=new Array,this.mModelSpaceIndexTree=new C6,this.mPaperSpaceIndexTree=new C6,this.mUserCommentEntity=new Array,this.mFastPanNeedUpdate=!0,this.mGsManager=t}setGsManager(t){this.mGsManager=t}getDeviceSize(){return this.mDeiveSize}add(t){return-1==this.find(t)&&(this.mArrView.push(t),t.setDevice(this),!0)}updateView(t){for(let e=0;e<this.mArrView.length;e++){let n=this.mArrView[e].mViewportTableRec.getViewInfo().mHandle;if(t.mViewportTableRec.getViewInfo().mHandle==n){this.mArrView[e]=t;break}}}find(t){for(let e=0;e<this.mArrView.length;e++){let n=this.mArrView[e].mViewportTableRec.getViewInfo().mHandle;if(t.mViewportTableRec.getViewInfo().mHandle==n)return e}return-1}findViewByHandle(t){let e=null;for(let n=0;n<this.mArrView.length;n++){const i=this.mArrView[n];if(t===i.mViewportTableRec.getViewInfo().mHandle){e=i;break}}return e}setSize(t,e){this.mDeiveSize.mHeight=e,this.mDeiveSize.mWidth=t}resize(t,e){if(null!=this.mGsManager){mj.instance().resize(t,e);for(let t=0;t<this.mArrView.length;++t)this.mGsManager.updateViewportMatrix(this.mArrView[t],this.mArrView[t].mViewportTableRec)}}getModelSpaceIndexTree(){return this.mModelSpaceIndexTree}getPaperSpaceIndexTree(){return this.mPaperSpaceIndexTree}getAllModel(t){for(let e=0;e<this.mArrView.length;e++){let n=this.mArrView[e],i=new Array;n.getModelList(i);for(let e=0;e<i.length;e++){const n=i[e];t.has(n)||t.add(n)}}return t}isSingleView(){if(null==this.mGsManager)return!1;let t=this.mGsManager.database();if(null==t)return!1;let e=t.getActiveBTR();return null!=e&&1===e.getAllViewsInfo().length}getViewIndex(t){for(let e=0;e<this.mArrView.length;++e)if(this.mArrView[e]==t)return e;return 0}hittestView(t,e,n,i=!0){if(null==this.mGsManager)return!1;let r=this.mGsManager.database();if(null==r)return!1;let a=r.getActiveBTR();if(null!=a){let n=a.getAllViewsInfo();if(0===n.length)return!1;if(this.mGsManager.isInPaperSpace()){let i=this.mGsManager.getGraphicSystem();if(i&&!i.isInEditMode())return!1;let r=this.getGsViewByInfo(n[0]);if(null==r)return!1;let a=[];for(let i=1;i<n.length;++i){let r=this.getGsViewByInfo(n[i]);r&&r.isPointInside(new oB(t,e))&&r.mViewportTableRec.getViewInfo().mbOn&&a.push(r)}a.reverse();let o=null;o=a.length>=1?a[0]:r;let s=this.mGsManager.getGraphicSystem().mCurView;return(null===s||s.mVPHandle!==o.mVPHandle)&&(this.mGsManager.getGraphicSystem().mCurView=o,MF.instance().broardcast(_F.CommentPanel,{type:"commentPermission",data:{view:o}}),this.resetActivedViewFlag(this.mGsManager.getGraphicSystem().mCurView,n),!0)}{let i=!1;for(let r=0;r<n.length;++r){let a=this.getGsViewByInfo(n[r]),o=new _J;if(a&&(o=a.mViewportTableRec.getViewInfo()),a&&a.isPointInside(new oB(t,e))){if(this.mGsManager.getGraphicSystem().mCurView==a)return!1;i=!0,this.mGsManager.getGraphicSystem().mCurView=a,o.mIsActive=!0}else o.mIsActive=!1}return i}}return!1}resetActivedViewFlag(t,e){if(t){let n=t.mViewportTableRec.getViewInfo();n.mIsActive=!0;for(let t=0;t<e.length;t++){let i=this.getGsViewByInfo(e[t]);if(i){let t=i.mViewportTableRec.getViewInfo();t.mHandle!==n.mHandle&&(t.mIsActive=!1)}}}}update(){if(null!=this.mGsManager)for(let t=0;t<this.mArrView.length;t++){let e=this.mArrView[t];e.updateGsView(this.mGsManager),e.mIsFirstRegen=!0;for(let t=0;t<e.mFastPanOffscreenCanvs.length;t++){let n=e.mFastPanOffscreenCanvs[t];if(!n)continue;let i=n.getContext("2d");i&&i.clearRect(0,0,e.mFastPanOffscreenCanvs[t].width,e.mFastPanOffscreenCanvs[t].height),e.mFastPanOffscreenCanvs[t].width=0,e.mFastPanOffscreenCanvs[t].height=0}}}repairScreenRect(){this.update(),null!=this.mGsManager&&this.mGsManager.getGraphicSystem().setDirtyLayer(EB.kZcDrAllLayer,!0)}drawBorder(t,e){if(null==this.mGsManager)return;let n=this.mGsManager.database();if(null==n)return;let i=n.getActiveBTR();if(null!=i){if(this.mGsManager.isInPaperSpace()){let i=this.mGsManager.getGraphicSystem();if(!i.mLayoutIsActive)return;let a=i.mCurView;if(null==a)return;let o=a.mViewportTableRec.getViewInfo();if(i.mDraging&&o.mbLock||a.isOverallView())return;let s=a.mViewportTableRec.getViewInfo(),l=s.mBorderColor,c=4278190080;switch(s.mColorMethod){case yB.kByLayer:let t=e.getForegroundColor(),i=n.getSymbolTable(o3.kZwDbLayerTable).get(s.mLayerHandle),a=0;i&&(a=i.mRealColor),c=4278190080&t|16777215&a;break;case yB.kByColor:c=(r=l).length<3?0:r[0]<<16|r[1]<<8|r[2]|4278190080;break;case yB.kByACI:c=hJ(l)}if(t.setupView(e),e.setForegroundColor(c),e.setLineweight(4),s.mIsNonRectRegion){let n=this.mOverallViewW2D;if(null!=n){let i=0;for(let r=0;r<s.mClipRegionCount;++r){let a=new Array,o=new Array,l=new Array,c=new Array,h=new Array,d=s.mClipRegionPtsNum[r];for(let t=0;t<d;++t){let e=new QR;e.copy(s.mClipRegionPtsNumList[i+t]),e.mulMatrix(n),a.push(new oB(e.mX,e.mY)),o.push(new oB(e.mX-1,e.mY)),l.push(new oB(e.mX+1,e.mY)),c.push(new oB(e.mX,e.mY-1)),h.push(new oB(e.mX,e.mY+1))}t.rawDrawPolyline2d(e,a,d),t.rawDrawPolyline2d(e,o,d),t.rawDrawPolyline2d(e,l,d),t.rawDrawPolyline2d(e,c,d),t.rawDrawPolyline2d(e,h,d),i+=d}}}else{let n=new oB,i=new oB;n.set(a.mScreenRect.mX-2,a.mScreenRect.mY-2),i.set(a.mScreenRect.mX+a.mScreenRect.mWidth+2,a.mScreenRect.mY-2),t.rawDrawLine2d(e,n,i),n.offset(0,1),i.offset(0,1),t.rawDrawLine2d(e,n,i),n.offset(0,1),i.offset(0,1),t.rawDrawLine2d(e,n,i),n.set(a.mScreenRect.mX+a.mScreenRect.mWidth+2,a.mScreenRect.mY-2),i.set(a.mScreenRect.mX+a.mScreenRect.mWidth+2,a.mScreenRect.mY+a.mScreenRect.mHeight+2),t.rawDrawLine2d(e,n,i),n.offset(-1,0),i.offset(-1,0),t.rawDrawLine2d(e,n,i),n.offset(-1,0),i.offset(-1,0),t.rawDrawLine2d(e,n,i),n.set(a.mScreenRect.mX+a.mScreenRect.mWidth+2,a.mScreenRect.mY+a.mScreenRect.mHeight+2),i.set(a.mScreenRect.mX-2,a.mScreenRect.mY+a.mScreenRect.mHeight+2),t.rawDrawLine2d(e,n,i),n.offset(0,-1),i.offset(0,-1),t.rawDrawLine2d(e,n,i),n.offset(0,-1),i.offset(0,-1),t.rawDrawLine2d(e,n,i),n.set(a.mScreenRect.mX-2,a.mScreenRect.mY+a.mScreenRect.mHeight+2),i.set(a.mScreenRect.mX-2,a.mScreenRect.mY-2),t.rawDrawLine2d(e,n,i),n.offset(1,0),i.offset(1,0),t.rawDrawLine2d(e,n,i),n.offset(1,0),i.offset(1,0),t.rawDrawLine2d(e,n,i)}return}{if(1==i.getAllViewsInfo().length)return;let n=this.mGsManager.getGraphicSystem().mCurView,r=e.getForegroundColor(),a=e.getLineweight();for(let r=0;r<this.mArrView.length;r++){let a=this.mArrView[r];if(!i.checkViewInBTR(a.mViewportTableRec))continue;let o=new oB,s=new oB,l=!1;a==n&&(l=!0),t.setupView(e),e.setForegroundColor(4284320435),o.set(a.mScreenRect.mX,a.mScreenRect.mY),s.set(a.mScreenRect.mX+a.mScreenRect.mWidth,a.mScreenRect.mY),t.rawDrawLine2d(e,o,s),l&&(o.offset(0,1),s.offset(0,1),t.rawDrawLine2d(e,o,s)),o.set(a.mScreenRect.mX+a.mScreenRect.mWidth-1,a.mScreenRect.mY),s.set(a.mScreenRect.mX+a.mScreenRect.mWidth-1,a.mScreenRect.mY+a.mScreenRect.mHeight),t.rawDrawLine2d(e,o,s),l&&(o.offset(-1,0),s.offset(-1,0),t.rawDrawLine2d(e,o,s)),o.set(a.mScreenRect.mX+a.mScreenRect.mWidth,a.mScreenRect.mY+a.mScreenRect.mHeight-1),s.set(a.mScreenRect.mX,a.mScreenRect.mY+a.mScreenRect.mHeight-1),t.rawDrawLine2d(e,o,s),l&&(o.offset(0,-1),s.offset(0,-1),t.rawDrawLine2d(e,o,s)),o.set(a.mScreenRect.mX,a.mScreenRect.mY+a.mScreenRect.mHeight),s.set(a.mScreenRect.mX,a.mScreenRect.mY),t.rawDrawLine2d(e,o,s),l&&(o.offset(1,0),s.offset(1,0),t.rawDrawLine2d(e,o,s))}e.setForegroundColor(r),e.setLineweight(a)}}var r}getGsViewByInfo(t){for(let e in this.mArrView)if(this.mArrView[e].mViewportTableRec.getViewInfo().mHandle===t.mHandle)return this.mArrView[e];return null}updateViews(){if(this.mArrView.length)if(this.mGsManager&&this.mGsManager.isInPaperSpace()){let t=this.mGsManager.database();if(null==t)return;let e=t.getActiveBTR();if(null==e)return;let n=e.getAllViewsInfo();if(0===n.length)return;let i=this.getGsViewByInfo(n[0]);if(null==i)return;let r=i.worldToDeviceMatrix();this.mOverallViewW2D=r;for(let t=1;t<n.length;++t){let e=this.getGsViewByInfo(n[t]);if(null==e)continue;let i=e.mViewportTableRec.getViewInfo(),a=i.mPaperWidth/2,o=i.mPaperHeight/2,s=new NU;s.mMin.set(i.mCenterPoint.mX-a,i.mCenterPoint.mY-o,0),s.mMax.set(i.mCenterPoint.mX+a,i.mCenterPoint.mY+o,0),s.transformBy(r);let l=s.mMax.mX-s.mMin.mX,c=s.mMax.mY-s.mMin.mY,h=this.getViewIndex(e);this.mArrView[h].setViewport(s.mMin.mX+1,s.mMin.mY+1,l-2,c-2)}}else this.mOverallViewW2D=null}getCurViews(){if(null===this.mGsManager)return null;let t=this.mGsManager.getGraphicSystem();if(null===t.mCanvas)return null;let e=t.mCurView;if(null===e)return null;let n=e.mViewportTableRec.getViewInfo(),i=this.mGsManager.database();if(null===i)return null;let r=i.getActiveBTR();if(null===r)return null;let a=[];if(this.mGsManager.isInPaperSpace())for(let i=0;i<this.mArrView.length;i++){let o=this.mArrView[i];o&&o.mViewportTableRec&&r.checkViewInBTR(o.mViewportTableRec)&&(!t.mDraging&&!t.mZooming||e.isOverallView()||n.mbLock||e.mVPNumber===o.mVPNumber||e.isViewOver(o)||o.isViewOver(e))&&a.push(o)}else for(let t=0;t<this.mArrView.length;t++){let e=this.mArrView[t];e&&e.mViewportTableRec&&r.checkViewInBTR(e.mViewportTableRec)&&a.push(e)}return a}draw(t,e,n){if(null===this.mGsManager)return;let i=this.mGsManager.getGraphicSystem();if(null===i.mCanvas)return;let r=i.mCurView;if(null===r)return;let a=r.mViewportTableRec.getViewInfo(),o=this.mGsManager.database();if(null===o)return;let s=o.getActiveBTR();if(null!==s){if(n==EB.kZcDrBottomMost&&this.updateViews(),this.mGsManager.isInPaperSpace()){let o=null,l=[];for(let t=0;t<this.mArrView.length;t++){let e=this.mArrView[t];if(e&&e.mViewportTableRec&&s.checkViewInBTR(e.mViewportTableRec)){if(null===o){o=e;continue}(!i.mDraging&&!i.mZooming||r.isOverallView()||a.mbLock||r.mVPNumber===e.mVPNumber||r.isViewOver(e)||e.isViewOver(r))&&l.push(e)}}if(null===o)return;if(i.mDraging&&!mF)if(r.isOverallView()||a.mbLock){t.clearContent(),n===EB.kZcDrBottomMost&&o.updateByFast(t,e,n,!0);for(let i=0;i<l.length;i++){let a=l[i];n===EB.kZcDrShorterm&&r.isOverallView()||(a.setClipArea(e),a.updateByFast(t,e,n,!0),e.restore())}e.restore(),n!==EB.kZcDrBottomMost&&o.updateByFast(t,e,n,!0)}else{r.setClipArea(e),t.clearContent(),n===EB.kZcDrBottomMost&&o.updateByFast(t,e,n,!1);for(let i=0;i<l.length;i++){let a=l[i];n===EB.kZcDrShorterm&&r.isOverallView()||(a.setClipArea(e),a.updateByFast(t,e,n,r.mVPNumber===a.mVPNumber),e.restore())}n!==EB.kZcDrBottomMost&&o.updateByFast(t,e,n,!1),e.restore()}else{i.mZooming&&!a.mbLock?(r.setClipArea(e),t.clearContent()):(o.setClipArea(e),n===EB.kZcDrLongterm&&mj.instance().mIsOpenDwgDraw||t.clearContent()),n===EB.kZcDrBottomMost&&o.update(t,e,n);for(let i=0;i<l.length;i++){let a=l[i];n===EB.kZcDrShorterm&&a.mVPHandle!==r.mVPHandle||n===EB.kZcDrDirectShorterm&&r.isOverallView()&&!a.isOverallView()||(a.setClipArea(e),a.initVpForWebAssembly(),a.update(t,e,n),e.restore())}n!==EB.kZcDrBottomMost&&(n===EB.kZcDrShorterm&&!r.isOverallView()||o.update(t,e,n)),e.restore()}}else{let a=[];if(i.mZooming||i.mDraging)a.push(r);else for(let t=0;t<this.mArrView.length;t++){let e=this.mArrView[t];e&&e.mViewportTableRec&&s.checkViewInBTR(e.mViewportTableRec)&&a.push(e)}if(i.mDraging&&!mF)for(let i=0;i<a.length;i++){let r=a[i];r.setClipArea(e),t.clearContent(),r.updateByFast(t,e,n,!0),e.restore()}else for(let i=0;i<a.length;i++){let o=a[i];n===EB.kZcDrShorterm&&o.mVPHandle!==r.mVPHandle||(o.setClipArea(e),n===EB.kZcDrLongterm&&mj.instance().mIsOpenDwgDraw||t.clearContent(),o.initVpForWebAssembly(),o.update(t,e,n),e.restore())}}i.mDraging&&this.mFastPanNeedUpdate&&n===EB.kZcDrSurface&&(this.mFastPanNeedUpdate=!1)}}deleteSelctedCommentEntity(t,e){if(null==this.mGsManager)return;let n=this.mGsManager.database();if(null==n)return;let i=n.getModelSpaceTableRecord();if(null==i)return;let r=i.mHandle,a=new Array;for(let t=0;t<this.mUserCommentEntity.length;t++){const n=this.mUserCommentEntity[t];if(null!=n.mHandle){if(n.mOwnerHandle==r&&n.mHandle===e)continue;a.push(n)}}this.mUserCommentEntity=a}regenerateCommentEntity(t){if(null==this.mGsManager)return;let e=this.mGsManager.database();if(null==e)return;let n=e.getModelSpaceTableRecord();if(null==n)return;let i=n.mHandle;this.mUserCommentEntity.forEach((e=>{let n=e;null!=n.mHandle&&n.mOwnerHandle==i&&null==t.getZcDbObject(n.mHandle)&&null!=n.mId&&(t.appendZcDbEntity(n.mId),this.generate(t,e,this.mUserCommentReader))}))}calcExtents(t,e,n){if(t.type<RB.RESTATTR){let i=new QR;if(t.type===RB.TEXT3D){let e=t,i=e.mTextProperties.textPt;n.addPoint(i),n.addPoint(new QR(i.mX,i.mY-e.mTextProperties.textHeight,0)),n.addPoint(new QR(i.mX+e.mTextProperties.content.length*e.mTextProperties.textHeight,i.mY-e.mTextProperties.textHeight,0)),n.addPoint(new QR(i.mX+e.mTextProperties.content.length*e.mTextProperties.textHeight,i.mY,0))}else{let r=t.getPtCount(),a=t.start;for(let t=0;t<r;t++)i.set(e[a],e[a+1],e[a+2]),a+=3,n.addPoint(i)}}}generate(t,e,n){if(void 0===n||null==this.mGsManager||null===t)return!1;let i=this.mGsManager.database();if(null==i)return!1;let r=i.getModelSpaceTableRecord();if(null===r)return!1;let a=i.getCurLayout();if(null===a)return!1;let o=t.mGsNode,s=this.mArrView.length,l=new CB;l.mPrimitivesData=new Map,l.mDrawable=e,l.mObjectId=e.id(),e.mGsNode=l;let c=n.getPrimitiveCollector();for(let n=0;n<s;++n){let i=new k6;i.mLayerHandle=e.mLayerHandle;let o=this.mArrView[n];if(!t.checkViewInBTR(o.mViewportTableRec)||o.isOverallView()&&r.mHandle===e.mOwnerHandle||!o.isOverallView()&&r.mHandle!==e.mOwnerHandle)continue;let s=o.getGsWorldDraw(),h=new LV;if(s.mPrimitiveCollector=h,s.mGiContext=i,e.worldDraw(s),null!=l.mPrimitivesData&&null!==c){let t=new NU;for(let e=0;e<c.mPrimitives.length;e++){const n=c.mPrimitives[e];n instanceof sV&&this.calcExtents(n,c.mPtBuffer,t)}if(null==l.mExtendsData&&(l.mExtendsData=new Map),l.mExtendsData.set(o.mVPNumber,t),null!==e.mGsNode&&null!==e.mGsNode.mPrimitivesData){let t=e.mGsNode.mPrimitivesData.get(o.mVPNumber);void 0!==t&&(l.mPrimitivesData.set(o.mVPNumber,t),l.mPtBuffer=c.mPtBuffer,l.mVectorBuffer=c.mVectorBuffer,l.mColorBuffer=c.mColorBuffer)}}let d=l.mDrawable.mHandle;d&&this.mGsManager.getGraphicSystem().setWebGLDrawFlag(c6.addNewData,a.handleId,o.mVPNumber,d),l.mLayHandle=e.mLayerHandle}return this.commentEntityExitst(e)||(this.mUserCommentReader=n,this.mUserCommentEntity.push(e)),null!=o&&null!=o.mNodeChildren&&o.mNodeChildren.push(l),!0}deleteGsNode(t,e){let n=[];for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&e[t].forEach((t=>{n.push(t)}));return t.forEach((t=>{let e=t.mGsNode;if(null!=e&&null!=e.mNodeChildren){let i=[];for(let r=0;r<e.mNodeChildren.length;r++){const a=e.mNodeChildren[r];if(null!==a){let e=a.mDrawable;if(e&&e.mHandle&&n.includes(e.mHandle)){this.deleteSelctedCommentEntity(t,e.mHandle),t.deleteZcDbEntity(e.mHandle),this.mGsManager&&this.mGsManager.getGraphicSystem().setWebGLDrawFlag(c6.deleteData,void 0,void 0,e.mHandle);continue}i.push(a)}}e.mNodeChildren=i}})),!0}commentEntityExitst(t){for(let e in this.mUserCommentEntity)if(this.mUserCommentEntity[e]==t)return!0;return!1}getOverallView(){if(null===this.mGsManager)return null;let t=null;if(this.mGsManager.isInPaperSpace()){let e=this.mGsManager.database();if(null===e)return null;let n=e.getActiveBTR();if(null===n)return null;for(let e=0;e<this.mArrView.length;e++){let i=this.mArrView[e];if(i&&i.mViewportTableRec&&n.checkViewInBTR(i.mViewportTableRec)&&null===t){t=i;break}}}return t}getViewByLockFlag(){if(null===this.mGsManager)return null;let t=this.mGsManager.getGraphicSystem().mCurView;if(null===t)return null;let e=null;return e=t.mViewportTableRec.getViewInfo().mbLock?this.getOverallView():t,e}clear(){this.mArrView.forEach((t=>{t.clear(),t.mDirectShortermCollector.clearCollector()})),this.mArrView=[]}getViewSize(){return this.mArrView.length}getArrView(){return this.mArrView}updateViewAfterRegen(t){let e=t.mView.getViews();for(let t=0;t<e.length;t++){const n=e[t];for(let t=0;t<this.mArrView.length;t++){let e=this.mArrView[t].mViewportTableRec.getViewInfo();if(n.mHandle===e.mHandle){e.copy(n,"regen");break}}}}}var P6,_6=((P6=_6||(_6={}))[P6.kParallel=0]="kParallel",P6[P6.kPerspective=1]="kPerspective",_6);class M6{constructor(t){this.mDatabase=null,this.mGUIDevice=null,this.mHwnd=null,this.mViewArray=new Array,this.mOriginBaseArrView=new Array,this.mGraphicSystem=t}createGsView(t){if(null==this.mHwnd)return null;let e=new X6(t);return e.setDevice(this.mGUIDevice),this.mViewArray.push(e),this.initGsViewFromViewportTableRec(e,t),e}updateViewportMatrix(t,e){if(null==this.mHwnd||null==this.mGUIDevice)return;let n=this.mHwnd.width,i=this.mHwnd.height;this.mGUIDevice.setSize(n,i);const r=this.mGUIDevice.getDeviceSize();t.setViewport(r.mWidth*t.mLowerLeft.mX,r.mHeight-r.mHeight*t.mUpperRight.mY,r.mWidth*(t.mUpperRight.mX-t.mLowerLeft.mX),r.mHeight*(t.mUpperRight.mY-t.mLowerLeft.mY));let a=0,o=0;a=e.getViewInfo().mViewHeight,o=a*n/i,t.mFieldHeight=a/t.mCurZoomFactor,t.mFieldWidth=o/t.mCurZoomFactor}initGsViewFromViewportTableRec(t,e){if(null==this.mHwnd)return;let n=this.mHwnd.width,i=this.mHwnd.height;t.setViewport(0,0,this.mHwnd.width,this.mHwnd.height);let r=new QR,a=new QR,o=0,s=0,l=_6.kParallel,c=e.getViewInfo();if(a.copy(c.mTarget),l==_6.kParallel){let t=new oB;this.isInPaperSpace()?t.set(c.mViewCenter.mX,c.mViewCenter.mY):t.set(c.mCenterPoint.mX,c.mCenterPoint.mY);let e=c.mViewDirection.normal(),n=e.prepVector().normal();n.rotateBy(-c.mTwistAngle,e);let i=e.crossProduct(n),r=n.normal();r.mul(t.mX),a.addVector(r),r=i.normal(),r.mul(t.mY),a.addVector(r)}r.addVector(c.mViewDirection),r.addPosition(a);let h=c.mViewDirection.prepVector().normal();h.rotateBy(-c.mTwistAngle,c.mViewDirection);let d=c.mViewDirection.crossProduct(h);o=c.mViewHeight,s=o*n/i;let u=r.sub2vec(a);u.normalize(),c.mUcsXAxis.copy(d.crossProduct(u)),c.mUcsYAxis.copy(d),c.mUcsZAxis.copy(u),c.mUcsXAxis.normalize(),c.mUcsYAxis.normalize(),t.setView(r,a,d,s,o,l),t.setLensLength(c.mLensLength),t.setRenderMode(c.mRenderMode)}changeViewDirection(t,e){if(null==this.mHwnd)return;let n=new QR,i=new QR,r=_6.kParallel,a=t.mViewportTableRec.getViewInfo();i.copy(a.mTarget);let o=this.getOrthographicView(a.mViewDirection);e||(o!==DJ.kNonOrthoView?t.setOrthoViewPt(o):this.isometricView(a.mViewDirection)&&t.setViewPt());let s=a.mViewDirection.prepVector().normal();s.rotateBy(-a.mTwistAngle,a.mViewDirection);let l=a.mViewDirection.crossProduct(s);t.mUpVector.copy(l);let c=t.getWorldDCSExt(t);this.isInPaperSpace()?(a.mViewCenter.mX=(c.maxPoint().mX+c.minPoint().mX)/2,a.mViewCenter.mY=(c.maxPoint().mY+c.minPoint().mY)/2):(a.mCenterPoint.mX=(c.maxPoint().mX+c.minPoint().mX)/2,a.mCenterPoint.mY=(c.maxPoint().mY+c.minPoint().mY)/2,a.mCenterPoint.mZ=(c.maxPoint().mZ+c.minPoint().mZ)/2);let h=c.maxPoint().mY-c.minPoint().mY,d=c.maxPoint().mX-c.minPoint().mX;if(h>XR.EPSILON6&&h<w6.ZWMAX_RANGE&&d>XR.EPSILON6&&d<w6.ZWMAX_RANGE){let e=t.adjustViewDrawingSize(d,h);a.mViewHeight=e.height,a.mViewWidth=e.width,this.updateViewportMatrix(t,t.mViewportTableRec)}if(r==_6.kParallel){let t=new oB;t.set(a.mCenterPoint.mX,a.mCenterPoint.mY);let e=a.mViewDirection.normal(),n=e.prepVector().normal();n.rotateBy(-a.mTwistAngle,e);let r=e.crossProduct(n),o=n.normal();o.mul(t.mX),i.addVector(o),o=r.normal(),o.mul(t.mY),i.addVector(o)}n.addVector(a.mViewDirection),n.addPosition(i);let u=n.sub2vec(i);u.normalize(),a.mUcsXAxis.copy(l.crossProduct(u)),a.mUcsYAxis.copy(l),a.mUcsZAxis.copy(u),a.mUcsXAxis.normalize(),a.mUcsYAxis.normalize(),a.mUcsZAxis.normalize(),t.setView(n,i,l,t.mFieldWidth,t.mFieldHeight,r),!e&&t.mGraphicSystem&&t.mVPHandle&&t.mGraphicSystem.updateUcsInfoAfterChangeViewDirection(t.mVPHandle,a,o),t.initVpForWebAssembly(),t.calculateVirtualBoundary(),t.recalVirtualBoundary(),mj.instance().setCurViewPortData(t)}createDevice(t){let e=new S6(this);return null==t?(SF.logError("Canvas is null when create device",SF.errorStatus.initError),e):(this.mHwnd=t,this.mGUIDevice=e,this.mGUIDevice.setSize(t.width,t.height),e)}createGsModel(t=EB.kZcDrLongterm){let e=new y6;return e.setBufOffer(t),e}getGUIDevice(){return this.mGUIDevice}updateAllView(){for(let t=0;t<this.mViewArray.length;t++)this.mViewArray[t].updateGsView(this)}getPrimitivePtCount(){let t=0;for(let e=0;e<this.mViewArray.length;e++){let n=this.mViewArray[e];null!=n.mWorldDraw.mPrimitiveCollector&&(t+=n.mWorldDraw.mPrimitiveCollector.mPtBuffer.length)}return t/3}invalidateAllView(){for(let t=0;t<this.mViewArray.length;t++){let e=this.mViewArray[t];if(e.viewingSpace()==G6.kModelSpace){let t=e.getModelSpaceIndexTree();null!=t&&t.resetTree()}}this.repairScreenRect()}repairScreenRect(){null!=this.mGUIDevice&&(this.mGUIDevice.update(),this.mGraphicSystem.setDirtyLayer(EB.kZcDrAllLayer,!0))}setDatabase(t){this.mDatabase=t}database(){return this.mDatabase}getGraphicSystem(){return this.mGraphicSystem}getViewArray(){return this.mViewArray}isInPaperSpace(){return null!=this.mDatabase&&this.mDatabase.isPaperSpaceActive()}updateOriginBaseViewAfterRegen(t){let e=t.mView.getViews();for(let t=0;t<e.length;t++){const n=e[t];for(let t=0;t<this.mOriginBaseArrView.length;t++){let e=this.mOriginBaseArrView[t].mViewportTableRec.getViewInfo();if(n.mHandle===e.mHandle){e.copy(n,"regen");break}}}}getOrthographicView(t){let e=DJ.kNonOrthoView;return t.isEqualTo(new qR(0,0,1))?e=DJ.kTopView:t.isEqualTo(new qR(0,0,-1))?e=DJ.kBottomView:t.isEqualTo(new qR(-1,0,0))?e=DJ.kLeftView:t.isEqualTo(new qR(1,0,0))?e=DJ.kRightView:t.isEqualTo(new qR(0,-1,0))?e=DJ.kFrontView:t.isEqualTo(new qR(0,1,0))&&(e=DJ.kBackView),e}isometricView(t){let e=!1;return(t.isEqualTo(new qR(-1,-1,1))||t.isEqualTo(new qR(1,-1,1))||t.isEqualTo(new qR(1,1,1))||t.isEqualTo(new qR(-1,1,1)))&&(e=!0),e}}class D6 extends class extends class{}{getSamplePoints(t){return new Array}}{constructor(){super(),this.mCenter=new QR,this.mMajorAxis=new qR,this.mMinorAxis=new qR,this.mMajorRadius=0,this.mMinorRadius=0,this.mStartParam=0,this.mIncludedParam=0}set(t,e,n){let i=e.prepVector();this.mMajorAxis=i.normal(),this.mMinorAxis=e.crossProduct(i).normal(),this.mMajorAxis.normalize(),this.mMinorAxis.normalize(),this.mCenter=t,this.mMajorRadius=this.mMinorRadius=n,this.mStartParam=0,this.mIncludedParam=XR.ZWGR_TWOPI}getSamplePoints(t){let e=new Array,n=this.mStartParam,i=this.mIncludedParam/--t,r=n;for(e.push(this.evalPoint(r));--t>0;)r+=i,e.push(this.evalPoint(r));return e.push(this.evalPoint(n)),e}evalPoint(t){let e=qR.ADD(this.mMajorAxis.mul2Vec(this.mMajorRadius*Math.cos(t)),this.mMinorAxis.mul2Vec(this.mMinorRadius*Math.sin(t)));return this.mCenter.add2Point(e)}}var E6,O6,A6=((O6=A6||(A6={}))[O6.kNGRegenTypeInvaild=0]="kNGRegenTypeInvaild",O6[O6.kNGStandardDisplay=2]="kNGStandardDisplay",O6[O6.kNGHideOrShadeCommand=3]="kNGHideOrShadeCommand",O6[O6.kNGRenderCommand=4]="kNGRenderCommand",O6[O6.kNGShadedDisplay=4]="kNGShadedDisplay",O6[O6.kNGForExplode=5]="kNGForExplode",O6[O6.kNGSaveWorldDrawForProxy=6]="kNGSaveWorldDrawForProxy",A6),T6=((E6=T6||(T6={}))[E6.kEntity2d=0]="kEntity2d",E6[E6.kEntity3d=1]="kEntity3d",E6[E6.kPointEnt2d=2]="kPointEnt2d",E6[E6.kPointEnt3d=3]="kPointEnt3d",E6[E6.kPosition2d=4]="kPosition2d",E6[E6.kPosition3d=5]="kPosition3d",E6[E6.kPointOnCurve2d=6]="kPointOnCurve2d",E6[E6.kPointOnCurve3d=7]="kPointOnCurve3d",E6[E6.kPointOnSurface=8]="kPointOnSurface",E6[E6.kBoundedPlane=9]="kBoundedPlane",E6[E6.kCircArc2d=10]="kCircArc2d",E6[E6.kCircArc3d=11]="kCircArc3d",E6[E6.kConic2d=12]="kConic2d",E6[E6.kConic3d=13]="kConic3d",E6[E6.kCurve2d=14]="kCurve2d",E6[E6.kCurve3d=15]="kCurve3d",E6[E6.kEllipArc2d=16]="kEllipArc2d",E6[E6.kEllipArc3d=17]="kEllipArc3d",E6[E6.kLine2d=18]="kLine2d",E6[E6.kLine3d=19]="kLine3d",E6[E6.kLinearEnt2d=20]="kLinearEnt2d",E6[E6.kLinearEnt3d=21]="kLinearEnt3d",E6[E6.kLineSeg2d=22]="kLineSeg2d",E6[E6.kLineSeg3d=23]="kLineSeg3d",E6[E6.kPlanarEnt=24]="kPlanarEnt",E6[E6.kPlane=25]="kPlane",E6[E6.kRay2d=26]="kRay2d",E6[E6.kRay3d=27]="kRay3d",E6[E6.kSurface=28]="kSurface",E6[E6.kSphere=29]="kSphere",E6[E6.kCylinder=30]="kCylinder",E6[E6.kTorus=31]="kTorus",E6[E6.kCone=32]="kCone",E6[E6.kSplineEnt2d=33]="kSplineEnt2d",E6[E6.kPolyline2d=34]="kPolyline2d",E6[E6.kAugPolyline2d=35]="kAugPolyline2d",E6[E6.kNurbCurve2d=36]="kNurbCurve2d",E6[E6.kDSpline2d=37]="kDSpline2d",E6[E6.kCubicSplineCurve2d=38]="kCubicSplineCurve2d",E6[E6.kSplineEnt3d=39]="kSplineEnt3d",E6[E6.kPolyline3d=40]="kPolyline3d",E6[E6.kAugPolyline3d=41]="kAugPolyline3d",E6[E6.kNurbCurve3d=42]="kNurbCurve3d",E6[E6.kDSpline3d=43]="kDSpline3d",E6[E6.kCubicSplineCurve3d=44]="kCubicSplineCurve3d",E6[E6.kTrimmedCrv2d=45]="kTrimmedCrv2d",E6[E6.kCompositeCrv2d=46]="kCompositeCrv2d",E6[E6.kCompositeCrv3d=47]="kCompositeCrv3d",E6[E6.kExternalSurface=48]="kExternalSurface",E6[E6.kNurbSurface=49]="kNurbSurface",E6[E6.kTrimmedSurface=50]="kTrimmedSurface",E6[E6.kOffsetSurface=51]="kOffsetSurface",E6[E6.kEnvelope2d=52]="kEnvelope2d",E6[E6.kCurveBoundedSurface=53]="kCurveBoundedSurface",E6[E6.kExternalCurve3d=54]="kExternalCurve3d",E6[E6.kExternalCurve2d=55]="kExternalCurve2d",E6[E6.kSurfaceCurve2dTo3d=56]="kSurfaceCurve2dTo3d",E6[E6.kSurfaceCurve3dTo2d=57]="kSurfaceCurve3dTo2d",E6[E6.kExternalBoundedSurface=58]="kExternalBoundedSurface",E6[E6.kCurveCurveInt2d=59]="kCurveCurveInt2d",E6[E6.kCurveCurveInt3d=60]="kCurveCurveInt3d",E6[E6.kBoundBlock2d=61]="kBoundBlock2d",E6[E6.kBoundBlock3d=62]="kBoundBlock3d",E6[E6.kOffsetCurve2d=63]="kOffsetCurve2d",E6[E6.kOffsetCurve3d=64]="kOffsetCurve3d",E6[E6.kPolynomCurve3d=65]="kPolynomCurve3d",E6[E6.kBezierCurve3d=66]="kBezierCurve3d",E6[E6.kObject=67]="kObject",E6[E6.kFitData3d=68]="kFitData3d",E6[E6.kHatch=69]="kHatch",E6[E6.kTrimmedCurve2d=70]="kTrimmedCurve2d",E6[E6.kTrimmedCurve3d=71]="kTrimmedCurve3d",E6[E6.kCurveSampleData=72]="kCurveSampleData",E6[E6.kEllipCone=73]="kEllipCone",E6[E6.kEllipCylinder=74]="kEllipCylinder",E6[E6.kIntervalBoundBlock=75]="kIntervalBoundBlock",E6[E6.kClipBoundary2d=76]="kClipBoundary2d",E6[E6.kExternalObject=77]="kExternalObject",E6[E6.kCurveSurfaceInt=78]="kCurveSurfaceInt",E6[E6.kSurfaceSurfaceInt=79]="kSurfaceSurfaceInt",E6[E6.kHelix=80]="kHelix",T6);class I6{constructor(t){this.mPrimitiveData=new Array,this.mPrimitiveCollector=null,this.mCurrendExtends=new NU,this.mGiContext=null,this.mCurView=t,this.mCurViewDispQuality=1e3,this.mDblMatrixScale=1,this.mDblChordHeight=2;for(let t=0;t<EB.kZcDrZOrderCount;t++)this.mPrimitiveData[t]=new LV}context(){return this.mGiContext}referenceAttr(t,e){return null!=this.mPrimitiveCollector&&(this.mPrimitiveCollector.addRefPrimitive(RB.ATTRIBUTEREFERENCE,t,e),!0)}fillModeAttr(t){return null!=this.mPrimitiveCollector&&(this.mPrimitiveCollector.addFillmodePrimitive(RB.FILLMODE,t),!0)}resetAttr(){return null!=this.mPrimitiveCollector&&(this.mPrimitiveCollector.addResetAttrPrimitive(),!0)}text3d(t,e){return null!=this.mPrimitiveCollector&&(this.mPrimitiveCollector.addPrimitiveText3d(RB.TEXT3D,0,e),!0)}polyline(t,e,n){if(null==this.mPrimitiveCollector)return!1;for(let t=0;t<e.length;++t)this.mPrimitiveCollector.mPtBuffer.push(e[t].mX),this.mPrimitiveCollector.mPtBuffer.push(e[t].mY),this.mPrimitiveCollector.mPtBuffer.push(e[t].mZ);return this.mPrimitiveCollector.addPrimitivePolyline3d(RB.POLYLINE3D,3*e.length,BigInt(0)),!0}polygon(t,e){if(null==this.mPrimitiveCollector)return!1;if(this.mCurView.mRenderMode<H6.kWireframe){let n=this.mCurView.wcsTo2dLimitMatrix();n.setToIdentity(),this.convertPtTo2d(e,t,n),this.mPrimitiveCollector.addPrimitivePolygon(RB.POLYGON3D,3*e.length)}return!0}hatch(t,e,n,i){if(null==this.mPrimitiveCollector)return!1;if(this.mCurView.mRenderMode<H6.kWireframe){let r=this.mCurView.wcsTo2dLimitMatrix();this.convertPtTo2d(e,t,r),this.mPrimitiveCollector.addPrimitiveHatch(RB.HATCH3D,3*e.length,n,i,e)}return!0}circle(t,e,n){if(null==this.mPrimitiveCollector)return!1;if(this.mCurView.mRenderMode<H6.kWireframe){let i=new D6;i.set(t,n,e);let r=this.getNumSampleOfCurve(T6.kCircArc3d,0,XR.ZWGR_TWOPI,e),a=i.getSamplePoints(r),o=this.mCurView.wcsTo2dLimitMatrix();this.convertPtTo2d(a,r,o),this.mPrimitiveCollector.addPrimitive(RB.POLYLINE3D,3*a.length)}return!0}convert1PtTo2d(t,e){if(null==this.mPrimitiveCollector)return;let n=this.mPrimitiveCollector.getBufferPoint(),i=e.getEntry();n.push(t.mX*i[0][0]+t.mY*i[0][1]+t.mZ*i[0][2]+i[0][3]),n.push(t.mX*i[1][0]+t.mY*i[1][1]+t.mZ*i[1][2]+i[1][3]),n.push(0)}convertPtTo2d(t,e,n){if(null==this.mPrimitiveCollector)return;let i=e<t.length?e:t.length,r=this.mPrimitiveCollector.getBufferPoint();for(let e=0;e<i;e++){let i=t[e],a=n.getEntry();r.push(i.mX*a[0][0]+i.mY*a[0][1]+i.mZ*a[0][2]+a[0][3]),r.push(i.mX*a[1][0]+i.mY*a[1][1]+i.mZ*a[1][2]+a[1][3]),r.push(0)}}convertPt(t,e){if(null==this.mPrimitiveCollector)return!1;let n=e<t.length?e:t.length,i=this.mPrimitiveCollector.getBufferPoint();for(let e=0;e<n;e++){let n=t[e];i.push(n.mX),i.push(n.mY),i.push(n.mZ)}return!0}addPrimitives(t){if(null==this.mPrimitiveCollector)return 0;switch(t.data.type){case PB.kZcGsRawPolyline3d:this.mPrimitiveCollector.addPrimitive(RB.POLYLINE3D,3*t.points.length);break;case PB.kZcGsPolygon3d:this.mPrimitiveCollector.addPrimitivePolygon(RB.POLYGON3D,3*t.points.length);break;case PB.kZcGsWipeOutPolygon3d:this.mPrimitiveCollector.addPrimitiveWipeOut(RB.WIPEOUTPOLYGON3D,3*t.points.length);break;case PB.kZcGsText3d:{let e={fontFamily:t.data.mFontFamilyName,fontSize:t.data.mTextSize,fontHeight:t.data.mFontHeight,fontWeight:t.data.mTextWeights,fontItalic:t.data.mItalic},n={max:t.data.mboundBox.m_max,min:t.data.mboundBox.m_min},i=t.data.mTextDir,r=new qR(i[0],i[1],i[2]);i=t.data.mTextVerDir;let a=new qR(i[0],i[1],i[2]);this.mPrimitiveCollector.addPrimitiveText(RB.TEXT2D,3,{text:t.data.mContent,textStyle:e,textHeight:t.data.mHeight,charset:t.data.mCharSet,xScale:t.data.mXScale,rotate:r,oblique:a,obliquingAngle:t.data.mObliquingAngle,upsidedown:t.data.mUpsidedown,backward:t.data.mBackward,boundBox:n});break}case PB.kZcGsPolyline3d:this.mPrimitiveCollector.addPrimitive(RB.POLYLINE3D,3*t.points.length);break;case PB.kZcGsPolytriangle3d:this.mPrimitiveCollector.addPritimivePolytriangle(RB.POLYTRIANGLE3D,3*t.points.length)}return this.mPrimitiveCollector.mPrimitives.length-1}draw(t){return this.internalDraw(t),!0}regenType(){return A6.kNGStandardDisplay}geometry(){return this}internalDraw(t){t.worldDraw(this)}getNumSampleOfCurve(t,e,n,i){let r=0,a=2;switch(t){case T6.kCircArc2d:case T6.kCircArc3d:case T6.kEllipArc2d:case T6.kEllipArc3d:{let o=n-e;o<0&&(o+=XR.ZWGR_TWOPI);let s=o/XR.ZWGR_TWOPI;if(a=t==T6.kCircArc3d||t==T6.kCircArc2d?8.99*s:20.99*s,a<2&&(a=2),r=.3222*Math.sqrt(this.mCurViewDispQuality*i/(this.mDblChordHeight/this.mDblMatrixScale))*s,r<a?r=a:r>400&&(r=400),Math.abs(s-1)<0){let t=r%4;0!=t&&(r+=4-t)}break}}return r+1}setCurPrimitveCollector(t){this.mPrimitiveCollector=this.mPrimitiveData[t]}setCurPrimitveCollectorData(t,e){this.mPrimitiveData[t]=e,this.mPrimitiveCollector=this.mPrimitiveData[t]}clearPrimitives(t){let e=this.mPrimitiveData[t];null!=e&&e.clearCollector()}generatePolyline(t,e){let n=this.mCurView.mScreenRect,i=new QR;for(let r=0;r<t.length;r++)i=new QR(t[r].mX-n.mX,t[r].mY-n.mY,0),i.mulMatrix(this.mCurView.deviceToWorldMatrix()),e.push(i.mX,i.mY,i.mZ)}generateText(t,e){let n=this.mCurView.mScreenRect,i=new QR;i=new QR(t.mX-n.mX,t.mY-n.mY,0),i.mulMatrix(this.mCurView.deviceToWorldMatrix()),e.push(i.mX,i.mY,i.mZ)}}var L6,z6,R6,F6,B6,V6,N6,H6=((N6=H6||(H6={}))[N6.k2DOptimized=0]="k2DOptimized",N6[N6.kWireframe=1]="kWireframe",N6[N6.kHiddenLine=2]="kHiddenLine",N6[N6.kFlatShaded=3]="kFlatShaded",N6[N6.kGouraudShaded=4]="kGouraudShaded",N6[N6.kFlatShadedWithWireframe=5]="kFlatShadedWithWireframe",N6[N6.kGouraudShadedWithWireframe=6]="kGouraudShadedWithWireframe",H6),G6=((V6=G6||(G6={}))[V6.kUndefine=-1]="kUndefine",V6[V6.kModelSpace=0]="kModelSpace",V6[V6.kPaperSpace=1]="kPaperSpace",G6),Z6=((B6=Z6||(Z6={}))[B6.kColor=1]="kColor",B6[B6.kLineWeight=2]="kLineWeight",B6[B6.kTransparency=4]="kTransparency",B6[B6.kAll=255]="kAll",Z6),U6=((F6=U6||(U6={}))[F6.kOutOfControl=-1]="kOutOfControl",F6[F6.kNorm=0]="kNorm",F6[F6.kZoomInMax=1]="kZoomInMax",F6[F6.kZoomOutMax=2]="kZoomOutMax",F6[F6.kNoChange=4]="kNoChange",F6[F6.kReachLeftBoundary=256]="kReachLeftBoundary",F6[F6.kReachTopBoundary=512]="kReachTopBoundary",F6[F6.kReachRightBoundary=1024]="kReachRightBoundary",F6[F6.kReachBottomBoundary=2048]="kReachBottomBoundary",U6),W6=((R6=W6||(W6={}))[R6.k0degrees=0]="k0degrees",R6[R6.k90degrees=1]="k90degrees",R6[R6.k180degrees=2]="k180degrees",R6[R6.k270degrees=3]="k270degrees",W6),Y6=((z6=Y6||(Y6={}))[z6.kInches=0]="kInches",z6[z6.kMillimeters=1]="kMillimeters",z6[z6.kPixels=2]="kPixels",Y6),j6=((L6=j6||(j6={}))[L6.kZcOutBox=0]="kZcOutBox",L6[L6.kZcInBox=1]="kZcInBox",L6[L6.kZcFade=2]="kZcFade",j6);let X6=(()=>{class t{constructor(t){this.mMinViewSize=1,this.mRegenScale=1,this.mAllEntInRegenBoundary=!1,this.mWorldDraw=new I6(this),this.mWorldExtends=new NU,this.mViewingSpace=G6.kUndefine,this.mRenderMode=H6.k2DOptimized,this.mLowerLeft=new oB,this.mUpperRight=new oB,this.mDCSOrigin=new QR,this.mPosition=new QR,this.mTarget=new QR,this.mUpVector=new qR,this.mEyeVecotr=new qR,this.mXAxis=new qR,this.mNeedToCalculate=!0,this.mWcsTo2dRpMatrix=new JR,this.mLimit2dToWcsMatrix=new JR,this.mWcsToLimit2dMatrix=new JR,this.mPixelToViewMatrix=new JR,this.mViewingMatrix=new JR,this.mProjectionMatrix=new JR,this.mScreenMatrix=new JR,this.mWorldToDeviceMatrix=new JR,this.mDeviceToWorldMatrix=new JR,this.mWcs2DcsMatrix=new JR,this.mUCSToWCSMatrix=new JR,this.mWCSToUCSMatrix=new JR,this.mSCSToUCSMatrix=new JR,this.mUCSToSCSMatrix=new JR,this.mGraphicRoots=new Map,this.mVirtualBoundary=[new QR,new QR],this.mVPNumber=-1,this.mVPHandle=null,this.mLensLength=50,this.mFieldWidth=0,this.mFieldHeight=0,this.unitPixelHeight=0,this.mScreenRect=new OJ,this.mGridSwitch=!1,this.mGridNode=new v6(this),this.mCalcExtends=new NU,this.mCurZoomFactor=1,this.mMINMATRIXDETVALUE=1e-300,this.mMinimumFieldHight=1,this.mIsFirstRegen=!0,this.mGraphicSystem=null,this.mFastPanOffscreenCanvs=[],this.mHighlightEntities=[],this.mDoJig=!1,this.mDirectShortermCollector=new LV,this.mOsnapPrimitiveCollector=new LV,this.mUcsIconPrimitiveCollector=new LV,this.mBorderList=[],this.mHasRayOrXline=!1,this.mHasLoadedShx=!1,this.mRayOrXlineHandle=[],this.mArrayItemData=null,this.mBuilderVBO=!1,this.mUcsHasModified=!1,this.mElevation=0,this.mViewportTableRec=t,this.mDevice=null}copy(t){this.mLowerLeft.copy(t.mLowerLeft),this.mUpperRight.copy(t.mUpperRight),this.mDCSOrigin.copy(t.mDCSOrigin),this.mPosition.copy(t.mPosition),this.mTarget.copy(t.mTarget),this.mUpVector.copy(t.mUpVector),this.mEyeVecotr.copy(t.mEyeVecotr),this.mXAxis.copy(t.mXAxis),this.mUpVector.normalize(),this.mEyeVecotr.normalize(),this.mXAxis.normalize(),this.mVPNumber=t.mVPNumber,this.mVPHandle=t.mVPHandle,this.mLensLength=t.mLensLength,this.mFieldWidth=t.mFieldWidth,this.mFieldHeight=t.mFieldHeight,this.unitPixelHeight=t.unitPixelHeight,this.mScreenRect.copy(t.mScreenRect),this.mViewportTableRec.copy(t.mViewportTableRec),this.mCalcExtends.copy(t.mCalcExtends),this.mCurZoomFactor=t.mCurZoomFactor,this.mMinimumFieldHight=t.mMinimumFieldHight,this.mElevation=t.mElevation}isPointInside(t){return t.isPointInside(this.mBorderList)}isViewOver(t){for(let e=0;e<t.mBorderList.length;e++)if(this.isPointInside(t.mBorderList[e]))return!0;return!1}isViewInside(t){for(let e=0;e<t.mBorderList.length;e++)if(!this.isPointInside(t.mBorderList[e]))return!1;return!0}setViewport(t,e,n,i){this.mScreenRect.set(t,e,n,i)}setFieldHeight(t){let e=t*this.mScreenRect.mWidth/this.mScreenRect.mHeight;this.mFieldHeight=t,this.mFieldWidth=e;let n=this.mViewportTableRec.getViewInfo();this.mCurZoomFactor=n.mViewHeight/t}setView(t,e,n,i,r,a){if(i<0||r<0)return;let o=t.sub2vec(e).length();o>1e13||o<1e-10||(this.mPosition.copy(t),this.mTarget=e,this.mUpVector=n,this.mEyeVecotr=this.mPosition.sub2vec(this.mTarget),this.mEyeVecotr.normalize(),this.mXAxis=this.mUpVector.crossProduct(this.mEyeVecotr),(!this.mGraphicSystem||this.mGraphicSystem&&!this.mGraphicSystem.m3DOrbit)&&(this.mFieldHeight=r/this.mCurZoomFactor,this.mFieldWidth=i/this.mCurZoomFactor))}height(){return this.mFieldHeight}width(){return this.mFieldWidth}setDevice(t){this.mDevice=t}setLensLength(t){this.mLensLength=t}setRenderMode(t){this.mRenderMode=t}setupGsView(t,e){this.mVPNumber=e,this.mVPHandle=t.getViewInfo().mHandle,this.synchroFromDBView(t)}synchroFromDBView(t){if(null==this.mDevice)return;this.mLowerLeft.copy(t.getLowerLeft()),this.mUpperRight.copy(t.getUpperRight());const e=this.mDevice.getDeviceSize();let n=e.mHeight,i=e.mWidth;this.setViewport(e.mWidth*this.mLowerLeft.mX,e.mHeight-e.mHeight*this.mUpperRight.mY,e.mWidth*(this.mUpperRight.mX-this.mLowerLeft.mX),e.mHeight*(this.mUpperRight.mY-this.mLowerLeft.mY));let r=new QR,a=new QR,o=0,s=0,l=_6.kParallel,c=t.getViewInfo();if(a=c.mTarget,this.mDCSOrigin.copy(c.mTarget),l==_6.kParallel){let t=c.mViewDirection.normal(),e=t.prepVector().normal();e.rotateBy(-c.mTwistAngle,t);let n=t.crossProduct(e);e.normal().mul(c.mViewCenter.mX),a.addVector(e),n.normal().mul(c.mViewCenter.mY),a.addVector(n)}r=c.mTarget,r.addPosition(a);let h=c.mViewDirection.prepVector().normal();h.rotateBy(-c.mTwistAngle,c.mViewDirection);let d=c.mViewDirection.crossProduct(h);o=this.height(),s=o*i/n,this.setView(r,a,d,s,o,l),this.setLensLength(c.mLensLength),this.setRenderMode(c.mRenderMode),this.mViewingSpace=c.mIsDBViewport?G6.kPaperSpace:G6.kModelSpace}getModelList(t){for(let e=0;e<EB.kZcDrZOrderCount;e++)if(this.mGraphicRoots.has(e)){let n=this.mGraphicRoots.get(e);if(null!=n)for(let e of n.keys())t.push(e)}}viewingSpace(){return this.mViewingSpace}getModelSpaceIndexTree(){return null==this.mDevice?null:this.mDevice.getModelSpaceIndexTree()}getPaperSpaceIndexTree(){return null==this.mDevice?null:this.mDevice.getPaperSpaceIndexTree()}static number2Rgb16(t){let e=t.toString(16),n=6-e.length,i="#";for(let t=0;t<n;t++)i+="0";return i+=e,i}static number2Rgba32(t){let e="#";if(t>16777215){let n=Math.floor(t/256/256/256),i=(t%16777216).toString(16),r=6-i.length;for(let t=0;t<r;t++)e+="0";e+=i;let a=n.toString(16);r=2-a.length;for(let t=0;t<r;t++)e+="0";return e+=a,e}return e+=t.toString(16),e+="FF",e}drawPaperspace(t,e){if(this.mGraphicSystem){let n=this.mGraphicSystem.mGsManager.database();if(null===n)return;let i=n.getCurLayout();if(null===i)return;let r=new oB,a=new oB,o=new oB,s=new oB,l=0;if(16&i.m_plotLayoutFlags)l=i.m_dScaleFactor,0===l&&(l=1);else{let t=i.m_dRealWorldUnits,e=i.m_dDrawingUnits;(0===t||0===e)&&(t=e=1),l=t/e}let c=i.m_OriginX/l,h=i.m_OriginY/l,d=i.m_plotRotation;if(W6.k90degrees==d||W6.k270degrees==d){let t=c;c=h,h=t}let u=i.m_dPaperWidth,m=i.m_dPaperHeight,p=Y6.kInches===i.m_plotPaperUnits,g=p?u/25.4:u,f=p?m/25.4:m,b=i.m_dLeftMarin,y=i.m_dBottomMarin,v=i.m_dRightMarin,w=i.m_dTopMarin,x=p?b/25.4:b,C=p?v/25.4:v,k=p?w/25.4:w,S=p?y/25.4:y,P=g<=f&&(W6.k0degrees===d||W6.k180degrees===d)||g>f&&(W6.k90degrees===d||W6.k270degrees===d);if(P&&g>f||!P&&f>=g){let t=x;x=k,k=C,C=S,S=t,t=g,g=f,f=t}if(W6.k180degrees===d||W6.k270degrees===d){let t=k;k=S,S=t,t=x,x=C,C=t}let _=i.m_PaperImageOriginX,M=i.m_PaperImageOriginY,D=p?(c+_)/25.4:c+_,E=p?(h+M)/25.4:h+M;r.mX=-D-x/l,r.mY=-E-S/l,a.mX=r.mX+g/l,a.mY=r.mY+f/l,o.mX=-D,o.mY=-E,s.mX=a.mX-C/l,s.mY=a.mY-k/l;let O=new Array,A=new NU,T=e.m2dLimitedToDevice,I=Math.abs(a.mX-r.mX),L=Math.abs(a.mY-r.mY),z=I<L?I:L;z*=.008,I-=z,L-=z;let R=0,F=0;switch(i.m_plotRotation){case W6.k180degrees:case W6.k270degrees:R=-z,F=2*z;break;default:R=2*z,F=-z}A.mMin.set(r.mX+R,r.mY+F,0),A.mMax.set(r.mX+I+R,r.mY+L+F,0);let B=this.mViewportForwebAssembly,V=this.mPoint3dForwebAssembly;if(!B||!V)return;A.mMin.copy(UF(B,V,A.mMin.mX,A.mMin.mY,A.mMin.mZ)),A.mMax.copy(UF(B,V,A.mMax.mX,A.mMax.mY,A.mMax.mZ)),A.transformBy(T),O.push(new oB(Math.round(A.mMin.mX),Math.round(A.mMin.mY))),O.push(new oB(Math.round(A.mMax.mX),Math.round(A.mMin.mY))),O.push(new oB(Math.round(A.mMax.mX),Math.round(A.mMax.mY))),O.push(new oB(Math.round(A.mMin.mX),Math.round(A.mMax.mY))),e.setForegroundColor(4278190080),t.rawDrawPolygon2d(e,O,4),O=[],A=new NU,A.mMin.set(r.mX,r.mY,0),A.mMax.set(a.mX,a.mY,0),A.mMin.copy(UF(B,V,A.mMin.mX,A.mMin.mY,A.mMin.mZ)),A.mMax.copy(UF(B,V,A.mMax.mX,A.mMax.mY,A.mMax.mZ)),A.transformBy(T),O.push(new oB(Math.round(A.mMin.mX),Math.round(A.mMin.mY))),O.push(new oB(Math.round(A.mMax.mX),Math.round(A.mMin.mY))),O.push(new oB(Math.round(A.mMax.mX),Math.round(A.mMax.mY))),O.push(new oB(Math.round(A.mMin.mX),Math.round(A.mMax.mY))),e.setForegroundColor(4294967295),t.rawDrawPolygon2d(e,O,4),e.setFillMode(BB.kZcDrFillNever),e.setForegroundColor(4278190080),t.rawDrawPolygon2d(e,O,4),O=[],A=new NU,A.mMin.set(o.mX,o.mY,0),A.mMax.set(s.mX,s.mY,0),A.mMin.copy(UF(B,V,A.mMin.mX,A.mMin.mY,A.mMin.mZ)),A.mMax.copy(UF(B,V,A.mMax.mX,A.mMax.mY,A.mMax.mZ)),A.transformBy(T),O.push(new oB(Math.round(A.mMin.mX),Math.round(A.mMin.mY))),O.push(new oB(Math.round(A.mMax.mX),Math.round(A.mMin.mY))),O.push(new oB(Math.round(A.mMax.mX),Math.round(A.mMax.mY))),O.push(new oB(Math.round(A.mMin.mX),Math.round(A.mMax.mY))),e.setForegroundColor(4278190080),e.setLineType(FB.kZcDrLongDashline),t.rawDrawPolygon2d(e,O,4),e.setLineType(FB.kZcDrSolidLine)}}setClipArea(t){let e=this.mViewportTableRec.getViewInfo();if(e.mIsNonRectRegion){let n=new Array;if(this.mDevice){let i=this.mDevice.mOverallViewW2D;if(null!=i){let r=0;for(let t=0;t<e.mClipRegionCount;++t){let a=e.mClipRegionPtsNum[t];for(let t=0;t<a;++t){let a=new QR;a.copy(e.mClipRegionPtsNumList[r+t]),a.mulMatrix(i),n.push(new oB(a.mX,a.mY))}r+=a}t.setClipPolyPolygon(e.mClipRegionPtsNum,n),this.mBorderList=n}}}else{let e=new Array;e.push(new oB(this.mScreenRect.mX,this.mScreenRect.mY)),e.push(new oB(this.mScreenRect.mX,this.mScreenRect.mY+this.mScreenRect.mHeight)),e.push(new oB(this.mScreenRect.mX+this.mScreenRect.mWidth,this.mScreenRect.mY+this.mScreenRect.mHeight)),e.push(new oB(this.mScreenRect.mX+this.mScreenRect.mWidth,this.mScreenRect.mY)),e.push(new oB(this.mScreenRect.mX,this.mScreenRect.mY)),t.setClipPolygon(e),this.mBorderList=e}}drawByWebAssembly(t,e,n,i){let r=i.getSymbolTable(o3.kZwDbLayerTable);if(r&&mj.instance().setLayerTable(r,this.mVPHandle),this.isOverallView()&&(t.mCommonM4.getEntry()[2][2]=0),this.mGraphicSystem){let i=this.mGraphicSystem.matptr;for(let e=0;e<4;++e)for(let n=0;n<4;++n)Module.HEAPF32[i>>2]=t.mCommonM4.getEntry()[e][n],i+=4;let r=this.mGraphicSystem.fcmpMatptr;if(r&&!this.mGraphicSystem.mGsManager.isInPaperSpace()){for(let t=0;t<4;++t){let e=[...n7.instance().mFcmpColors[t]];-1===e[0]?e=[-1,0,0,0]:e.shift();for(let t=0;t<4;++t)Module.HEAPF32[r>>2]=e[t],r+=4}let t=n7.instance().mFcmpColors[4];Module.HEAPF32[r>>2]=t,r+=4,this.mGraphicSystem.drawManager.setFcmpData()}t.mCanvas&&(Module.HEAPF32[i>>2]=t.mCanvas.width,i+=4,Module.HEAPF32[i>>2]=t.mCanvas.height,i+=4);for(let t=0;t<4;++t)for(let n=0;n<4;++n)Module.HEAPF32[i>>2]=e.m2dViewingMatrix.getEntry()[t][n],i+=4;i+=8;try{if(this.mGraphicSystem.drawManager.setVisible(HJ.mLineWidthSwitch),mj.instance().mIsOpenDwgDraw){let t=mj.instance().lastDrawSection,e=mj.instance().curDrawSection;this.mGraphicSystem.drawManager.openDwgDraw(this.mVPHandle,t,e,n)}else{if(n&&mj.instance().isDataLoadEnd&&(this.mIsFirstRegen||this.mGraphicSystem.needReload||this.mVPNumber===this.mGraphicSystem.mCurView.mVPNumber)){let t=new OJ;t.copy(this.mScreenRect),mj.instance().regenPrimitiveData(this.mVPHandle,t,this.mIsFirstRegen||this.mGraphicSystem.needReload),this.mIsFirstRegen=!1}this.mGraphicSystem.drawManager.drawView(this.mVPHandle,n)}}catch(t){SF.log(t),MF.instance().broardcast(_F.UpdatePage,{type:"loading",data:{isLoading:!1,loadingProgressPreset:{phase:OW.end}}}),this.mGraphicSystem.mMessageService&&this.mGraphicSystem.mMessageService.error("绘制出错,请尝试重生成图纸或联系管理员")}}}update(t,e,n){if(this.initVpForWebAssembly(),this.createUcsIcon(),null===this.mGraphicSystem||null===this.mGraphicSystem.mCanvas||null===this.mDevice)return;let i=this.mGraphicSystem.mOGL3dRenderer,r=this.mGraphicSystem.mOGL3dContext,a=this.mGraphicSystem.mWebglCanvas,o=this.mGraphicSystem.mGsManager.isInPaperSpace();e.mCurView=this,e.mLayerOff=!1,e.setRenderMode(this.mRenderMode);let s=new JR;if(s.setEntry([[1,0,0,this.mScreenRect.mX],[0,1,0,this.mScreenRect.mY],[0,0,1,0],[0,0,0,1]]),s.mul(this.ucsToScsMatrix()),e.m2dLimitedToDevice.copy(s),e.m2dViewingMatrix.copy(this.viewingMatrix()),e.mEyeVecotr.copy(this.mEyeVecotr),e.mPrimitiveCollector=this.mWorldDraw.mPrimitiveCollector,this.mScreenRect.mHeight&&this.mFieldHeight&&(this.unitPixelHeight=Math.abs(this.mScreenRect.mHeight/this.mFieldHeight),e.setUnitPixelHeight(this.unitPixelHeight)),e.setBackgroundColor(fj.DEFAULT_BACKGROUND_COLOR),t.setupView(e),this.mGraphicRoots.has(n)){let l=this.mGraphicRoots.get(n),c=this.mGraphicSystem.getMainApp();if(null===c)return;let h=null;switch(h=c.getPrimitiveEvaluator().mZcGsPrimitiveCollector,n){case EB.kZcDrLongterm:null!==h&&this.mWorldDraw.setCurPrimitveCollectorData(EB.kZcDrLongterm,h);break;case EB.kZcDrLongtermHighlight:void 0!==l&&this.mGraphicSystem&&this.mGraphicSystem.mHighlightChange&&(this.mWorldDraw.setCurPrimitveCollectorData(EB.kZcDrLongterm,h),this.generateHighlightNode(l));break;case EB.kZcDrBottomMost:break;case EB.kZcDrDirectShorterm:void 0!==l&&(this.setDirectShortermGsNode(l),this.mWorldDraw.setCurPrimitveCollectorData(EB.kZcDrDirectShorterm,this.mDirectShortermCollector));break;case EB.kZcDrShorterm:void 0!==l&&null!==this.mGraphicSystem&&(this.setShortermGsNode(l),this.mWorldDraw.setCurPrimitveCollectorData(EB.kZcDrShorterm,HZ.mZcGsPrimitiveCollector));break;case EB.kZcDrSurface:void 0!==l&&null!==this.mGraphicSystem&&this.setDrSurfaceGsNode(l)}if(null!=l)if(IJ.mRendererType!==TJ.kDrWebGlRenderer||n!==EB.kZcDrLongterm&&n!==EB.kZcDrLongtermHighlight){if(n===EB.kZcDrBottomMost){let n=t.getCanvas();if(null===n)return;let i=new Array;i.push(new oB(-n.width,-n.height)),i.push(new oB(-n.width,n.height)),i.push(new oB(n.width,n.height)),i.push(new oB(n.width,-n.height)),o?this.isOverallView()&&(e.setFillMode(BB.kZcDrFillAlways),e.setForegroundColor(fj.DEFAULT_BACKGROUND_COLOR),t.rawDrawPolygon2d(e,i,4),this.drawPaperspace(t,e)):(e.setFillMode(BB.kZcDrFillAlways),e.setForegroundColor(fj.DEFAULT_BACKGROUND_COLOR),t.rawDrawPolygon2d(e,i,4)),this.mGridNode.viewportDraw(this.mWorldDraw)}for(let i of l.values())if(null!=i)for(let r=0;r<i.length;++r)this.drawNode(i[r],t,e,n)}else{let t=this.mGraphicSystem.mGsManager.database();if(null===t)return;let o=t.getCurLayout();if(null===o||null===i||null===r||null===a)return;let c=this.mGraphicSystem.mCanvas.width,h=this.mGraphicSystem.mCanvas.height;if(a instanceof HTMLCanvasElement?(a.width=c,a.height=h,a.style.width=c+"px",a.style.height=h+"px"):(a.width=c,a.height=h),r.setRenderMode(this.mRenderMode),r.m2dLimitedToDevice.copy(s),r.m2dViewingMatrix.copy(this.viewingMatrix()),r.mEyeVecotr.copy(this.mEyeVecotr),r.mPrimitiveCollector=this.mWorldDraw.mPrimitiveCollector,this.mScreenRect.mHeight&&this.mFieldHeight&&r.setUnitPixelHeight(this.unitPixelHeight),r.setBackgroundColor(fj.DEFAULT_BACKGROUND_COLOR),r.mScreenRect.copy(this.mScreenRect),r.mCurView=this,i.mDrawLayer=n,i.setViewFlag(o.handleId,this.mVPNumber),IJ.mEnableWASMWrapper&&null!==this.mVPHandle){let o=n!==EB.kZcDrLongtermHighlight;i.beginRender(r),i.setupView(r),i.clearContent(),i.mGlContext&&i.mGlContext.viewport(0,0,a.width,a.height);let s=mj.instance();if(s.mIsOpenDwgDraw){if(!s.drawViewArray.includes(this.mVPHandle))return SF.log("该视口尚未准备好,跳过绘制"),void e.resetContext();this.drawByWebAssembly(i,r,o,t),i.endRender(r),e.getContext().drawImage(a,0,0,c,h)}else{if(this.mScreenRect.mX>c+5||this.mScreenRect.mX+this.mScreenRect.mWidth<-5||this.mScreenRect.mY>h+5||this.mScreenRect.mY+this.mScreenRect.mHeight<-5)return;this.drawByWebAssembly(i,r,o,t),i.endRender(r),e.getContext().drawImage(a,0,0,c,h)}}else{if(i.beginRender(r),i.setupView(r),i.clearContent(),i.getReDraw()!==c6.noGenData)for(let t of l.values())if(null!=t)for(let e=0;e<t.length;++e)this.drawNode(t[e],i,r,n);i.endCollection();let o=t.getSymbolTable(o3.kZwDbLayerTable);if(o&&i.setLayerTable(o,this.mVPHandle),i.mGlContext&&i.mGlContext.viewport(0,0,a.width,a.height),this.mScreenRect.mX>c+5||this.mScreenRect.mX+this.mScreenRect.mWidth<-5||this.mScreenRect.mY>h+5||this.mScreenRect.mY+this.mScreenRect.mHeight<-5)return;i.endRender(r),e.getContext().drawImage(a,0,0,c,h)}}}e.resetContext()}updateByFast(t,e,n,i){if(null!==this.mGraphicSystem&&null!==this.mGraphicSystem.mCanvas&&null!==this.mDevice)if(n<=EB.kZcDrLongtermHighlight){if((this.mDevice.mFastPanNeedUpdate||!this.mFastPanOffscreenCanvs[n])&&this.setFastCanvas(t,e,n),!this.mFastPanOffscreenCanvs[n])return;let r=this.mGraphicSystem.mCanvas.width,a=this.mGraphicSystem.mCanvas.height,o=e.getContext();i&&!this.mDevice.mFastPanNeedUpdate?o.drawImage(this.mFastPanOffscreenCanvs[n],r-this.mGraphicSystem.mCurCursorPT.mX,a-this.mGraphicSystem.mCurCursorPT.mY,r,a,0,0,r,a):o.drawImage(this.mFastPanOffscreenCanvs[n],r-this.mGraphicSystem.mMouseDownPt.mX,a-this.mGraphicSystem.mMouseDownPt.mY,r,a,0,0,r,a)}else this.update(t,e,n)}setFastCanvas(t,e,n){if(null===this.mGraphicSystem||null===this.mGraphicSystem.mCanvas||null===this.mDevice)return;let i=this.mGraphicSystem.mOGL3dRenderer,r=this.mGraphicSystem.mOGL3dContext,a=this.mGraphicSystem.mWebglCanvas,o=this.mGraphicSystem.mGsManager.isInPaperSpace();e.mCurView=this,e.mLayerOff=!1,e.setRenderMode(this.mRenderMode);let s=new JR;if(s.setEntry([[1,0,0,this.mScreenRect.mX],[0,1,0,this.mScreenRect.mY],[0,0,1,0],[0,0,0,1]]),s.mul(this.ucsToScsMatrix()),e.m2dLimitedToDevice.copy(s),e.m2dViewingMatrix.copy(this.viewingMatrix()),e.mEyeVecotr.copy(this.mEyeVecotr),e.mPrimitiveCollector=this.mWorldDraw.mPrimitiveCollector,this.mScreenRect.mHeight&&this.mFieldHeight&&(this.unitPixelHeight=Math.abs(this.mScreenRect.mHeight/this.mFieldHeight),e.setUnitPixelHeight(this.unitPixelHeight)),e.setBackgroundColor(fj.DEFAULT_BACKGROUND_COLOR),t.setupView(e),this.mGraphicRoots.has(n)){let l=this.mGraphicRoots.get(n),c=this.mGraphicSystem.getMainApp();if(null===c)return;let h=null;switch(h=c.getPrimitiveEvaluator().mZcGsPrimitiveCollector,n){case EB.kZcDrLongterm:null!==h&&this.mWorldDraw.setCurPrimitveCollectorData(EB.kZcDrLongterm,h);break;case EB.kZcDrLongtermHighlight:void 0!==l&&this.mGraphicSystem&&this.mGraphicSystem.mHighlightChange&&(this.mWorldDraw.setCurPrimitveCollectorData(EB.kZcDrLongterm,h),this.generateHighlightNode(l));break;case EB.kZcDrBottomMost:break;case EB.kZcDrDirectShorterm:void 0!==l&&(this.setDirectShortermGsNode(l),this.mWorldDraw.setCurPrimitveCollectorData(EB.kZcDrDirectShorterm,this.mDirectShortermCollector));break;case EB.kZcDrShorterm:void 0!==l&&null!==this.mGraphicSystem&&(this.setShortermGsNode(l),this.mWorldDraw.setCurPrimitveCollectorData(EB.kZcDrShorterm,HZ.mZcGsPrimitiveCollector));break;case EB.kZcDrSurface:void 0!==l&&null!==this.mGraphicSystem&&this.setDrSurfaceGsNode(l)}if(null!=l){let c=this.mGraphicSystem.mCanvas.width,h=this.mGraphicSystem.mCanvas.height,d=this.mFastPanOffscreenCanvs[n];if(void 0===d&&(yF?d=new OffscreenCanvas(2*c,2*h):(d=document.createElement("canvas"),d.width=2*c,d.height=2*h,d.style.width=2*c+"px",d.style.height=2*h+"px"),this.mFastPanOffscreenCanvs[n]=d),(d.width!==2*c||d.height!==2*h)&&(d instanceof HTMLCanvasElement?(d.width=2*c,d.height=2*h,d.style.width=2*c+"px",d.style.height=2*h+"px"):(d.width=2*c,d.height=2*h)),IJ.mRendererType!==TJ.kDrWebGlRenderer||n!==EB.kZcDrLongterm&&n!==EB.kZcDrLongtermHighlight){let i=t.getCanvas();if(t.init(this.mFastPanOffscreenCanvs[n]),t.beginRender(e),t.clearContent(),e.mIsFastDraw=!0,e.setTranslation(new qR(c-this.mGraphicSystem.mMouseDownPt.mX-1,h-this.mGraphicSystem.mMouseDownPt.mY,0)),n===EB.kZcDrBottomMost){let n=t.getCanvas();if(null===n)return;let i=new Array;i.push(new oB(-n.width,-n.height)),i.push(new oB(-n.width,n.height)),i.push(new oB(n.width,n.height)),i.push(new oB(n.width,-n.height)),o?this.isOverallView()&&(e.setFillMode(BB.kZcDrFillAlways),e.setForegroundColor(fj.DEFAULT_BACKGROUND_COLOR),t.rawDrawPolygon2d(e,i,4),this.drawPaperspace(t,e)):(e.setFillMode(BB.kZcDrFillAlways),e.setForegroundColor(fj.DEFAULT_BACKGROUND_COLOR),t.rawDrawPolygon2d(e,i,4)),this.mGridNode.viewportDraw(this.mWorldDraw)}for(let i of l.values())if(null!=i)for(let r=0;r<i.length;++r)this.drawNode(i[r],t,e,n);e.restore(),e.mIsFastDraw=!1,t.endRender(e),null!==i&&t.init(i),t.beginRender(e)}else{let t=this.mGraphicSystem.mGsManager.database();if(null===t)return;let e=t.getCurLayout();if(null===e||null===i||null===r||null===a)return;let o=this.mGraphicSystem.mCanvas.width,l=this.mGraphicSystem.mCanvas.height;if(a instanceof HTMLCanvasElement?(a.width=o,a.height=l,a.style.width=o+"px",a.style.height=l+"px"):(a.width=o,a.height=l),r.setRenderMode(this.mRenderMode),r.m2dLimitedToDevice.copy(s),r.m2dViewingMatrix.copy(this.viewingMatrix()),r.mEyeVecotr.copy(this.mEyeVecotr),r.mPrimitiveCollector=this.mWorldDraw.mPrimitiveCollector,this.mScreenRect.mHeight&&this.mFieldHeight&&r.setUnitPixelHeight(this.unitPixelHeight),r.setBackgroundColor(fj.DEFAULT_BACKGROUND_COLOR),r.mScreenRect.copy(this.mScreenRect),r.mCurView=this,i.mDrawLayer=n,i.setViewFlag(e.handleId,this.mVPNumber),IJ.mEnableWASMWrapper){let e=n!==EB.kZcDrLongtermHighlight;i.beginRender(r),i.setupView(r),i.clearContent();let s=this.mFastPanOffscreenCanvs[n].getContext("2d");if(!s||(s.clearRect(0,0,2*o,2*l),i.mGlContext&&i.mGlContext.viewport(0,0,a.width,a.height),this.mScreenRect.mX>this.mGraphicSystem.mMouseDownPt.mX+o+5||this.mScreenRect.mX+this.mScreenRect.mWidth<this.mGraphicSystem.mMouseDownPt.mX-o-5||this.mScreenRect.mY>this.mGraphicSystem.mMouseDownPt.mY+l+5||this.mScreenRect.mY+this.mScreenRect.mHeight<this.mGraphicSystem.mMouseDownPt.mY-l-5))return;let c=i.mProjectionMat.inverse(),h=new QR(this.mGraphicSystem.mMouseDownPt.mX/o*2-1,1-this.mGraphicSystem.mMouseDownPt.mY/l*2,0);h.mulMatrix(c);let d=new QR,u=new JR;u.copy(i.mCommonM4),d.set(1,-1,0),d.mulMatrix(c),GJ.translate(i.mCommonM4,d.mX-h.mX,d.mY-h.mY,d.mZ-h.mZ),i.clearContent(),r.mScreenRect.set(this.mGraphicSystem.mMouseDownPt.mX-o,this.mGraphicSystem.mMouseDownPt.mY-l,o,l),this.drawByWebAssembly(i,r,e,t),i.endRender(r),r.mScreenRect.copy(this.mScreenRect),s.drawImage(a,0,0,o,l),i.mCommonM4.copy(u),d.set(-1,-1,0),d.mulMatrix(c),GJ.translate(i.mCommonM4,d.mX-h.mX,d.mY-h.mY,d.mZ-h.mZ),i.clearContent(),r.mScreenRect.set(this.mGraphicSystem.mMouseDownPt.mX,this.mGraphicSystem.mMouseDownPt.mY-l,o,l),this.drawByWebAssembly(i,r,e,t),i.endRender(r),r.mScreenRect.copy(this.mScreenRect),s.drawImage(a,o,0,o,l),i.mCommonM4.copy(u),d.set(1,1,0),d.mulMatrix(c),GJ.translate(i.mCommonM4,d.mX-h.mX,d.mY-h.mY,d.mZ-h.mZ),i.clearContent(),r.mScreenRect.set(this.mGraphicSystem.mMouseDownPt.mX-o,this.mGraphicSystem.mMouseDownPt.mY,o,l),this.drawByWebAssembly(i,r,e,t),i.endRender(r),r.mScreenRect.copy(this.mScreenRect),s.drawImage(a,0,l,o,l),i.mCommonM4.copy(u),d.set(-1,1,0),d.mulMatrix(c),GJ.translate(i.mCommonM4,d.mX-h.mX,d.mY-h.mY,d.mZ-h.mZ),i.clearContent(),r.mScreenRect.set(this.mGraphicSystem.mMouseDownPt.mX,this.mGraphicSystem.mMouseDownPt.mY,o,l),this.drawByWebAssembly(i,r,e,t),i.endRender(r),r.mScreenRect.copy(this.mScreenRect),s.drawImage(a,o,l,o,l),i.mCommonM4.copy(u)}else{i.beginRender(r),i.setupView(r),i.clearContent();let t=this.mFastPanOffscreenCanvs[n].getContext("2d");if(!t||(t.clearRect(0,0,2*o,2*l),i.mGlContext&&i.mGlContext.viewport(0,0,a.width,a.height),this.mScreenRect.mX>this.mGraphicSystem.mMouseDownPt.mX+o+5||this.mScreenRect.mX+this.mScreenRect.mWidth<this.mGraphicSystem.mMouseDownPt.mX-o-5||this.mScreenRect.mY>this.mGraphicSystem.mMouseDownPt.mY+l+5||this.mScreenRect.mY+this.mScreenRect.mHeight<this.mGraphicSystem.mMouseDownPt.mY-l-5))return;let e=i.mProjectionMat.inverse(),s=new QR(this.mGraphicSystem.mMouseDownPt.mX/o*2-1,1-this.mGraphicSystem.mMouseDownPt.mY/l*2,0);s.mulMatrix(e);let c=new QR,h=new JR;h.copy(i.mCommonM4),c.set(1,-1,0),c.mulMatrix(e),GJ.translate(i.mCommonM4,c.mX-s.mX,c.mY-s.mY,c.mZ-s.mZ),i.clearContent(),r.mScreenRect.set(this.mGraphicSystem.mMouseDownPt.mX-o,this.mGraphicSystem.mMouseDownPt.mY-l,o,l),i.endRender(r),r.mScreenRect.copy(this.mScreenRect),t.drawImage(a,0,0,o,l),i.mCommonM4.copy(h),c.set(-1,-1,0),c.mulMatrix(e),GJ.translate(i.mCommonM4,c.mX-s.mX,c.mY-s.mY,c.mZ-s.mZ),i.clearContent(),r.mScreenRect.set(this.mGraphicSystem.mMouseDownPt.mX,this.mGraphicSystem.mMouseDownPt.mY-l,o,l),i.endRender(r),r.mScreenRect.copy(this.mScreenRect),t.drawImage(a,o,0,o,l),i.mCommonM4.copy(h),c.set(1,1,0),c.mulMatrix(e),GJ.translate(i.mCommonM4,c.mX-s.mX,c.mY-s.mY,c.mZ-s.mZ),i.clearContent(),r.mScreenRect.set(this.mGraphicSystem.mMouseDownPt.mX-o,this.mGraphicSystem.mMouseDownPt.mY,o,l),i.endRender(r),r.mScreenRect.copy(this.mScreenRect),t.drawImage(a,0,l,o,l),i.mCommonM4.copy(h),c.set(-1,1,0),c.mulMatrix(e),GJ.translate(i.mCommonM4,c.mX-s.mX,c.mY-s.mY,c.mZ-s.mZ),i.clearContent(),r.mScreenRect.set(this.mGraphicSystem.mMouseDownPt.mX,this.mGraphicSystem.mMouseDownPt.mY,o,l),i.endRender(r),r.mScreenRect.copy(this.mScreenRect),t.drawImage(a,o,l,o,l),i.mCommonM4.copy(h)}}}}e.resetContext()}getLayerByHandle(t){if(null==this.mDevice)throw SF.logError("mDevice is null",SF.errorStatus.initError),new Error("mDevice is null");let e=this.mDevice.mGsManager;if(null==e)throw SF.logError("gsManager is null",SF.errorStatus.initError),new Error("gsManager is null");let n=e.database();if(null==n)throw SF.logError("db is null",SF.errorStatus.initError),new Error("db is null");let i=n.getSymbolTable(o3.kZwDbLayerTable);if(i){let e=i.get(t);return null==e&&(e=i.getDefaultLayer()),e}}getSharedDataByHandle(t){if(null==this.mDevice)throw SF.logError("mDevice is null",SF.errorStatus.initError),new Error("mDevice is null");let e=this.mDevice.mGsManager;if(null==e)throw SF.logError("gsManager is null",SF.errorStatus.initError),new Error("gsManager is null");let n=e.database();if(null==n)throw SF.logError("db is null",SF.errorStatus.initError),new Error("db is null");let i=n.getActiveBTR();if(null!=i)return i.getZcDbObject(t)}getDashArrayByHandle(t){if(null==this.mDevice)throw SF.logError("mDevice is null",SF.errorStatus.initError),new Error("mDevice is null");let e=this.mDevice.mGsManager;if(null==e)throw SF.logError("gsManager is null",SF.errorStatus.initError),new Error("gsManager is null");let n=e.database();if(null==n)throw SF.logError("db is null",SF.errorStatus.initError),new Error("db is null");return n.getDashArray(t)}getTextStyleByStyleId(){if(null==this.mDevice)throw SF.logError("mDevice is null",SF.errorStatus.initError),new Error("mDevice is null");let t=this.mDevice.mGsManager;if(null==t)throw SF.logError("gsManager is null",SF.errorStatus.initError),new Error("gsManager is null");let e=t.database();if(null==e)throw SF.logError("db is null",SF.errorStatus.initError),new Error("db is null");return e.getTextStyle()}static changeTransparency(t,e){if(9==t.length){let n=t.substring(0,7),i=Math.floor(255*e),r=i.toString(16);return i<16&&(r="0"+r),n+=r,n}return t}procAttribute(t,e,n,i){switch(t.type){case RB.RESTATTR:e.resetContext();break;case RB.HIGHLIGHT:e.setHighLight();break;case RB.HIGHLIGHTRESTORE:e.setHighLightRestore();break;case RB.COLORINDEX8:break;case RB.COLORINDEX16:{let n=hJ(t.mColorIndex);e.setForegroundColor(n);break}case RB.COLORRGBA32:e.setForegroundColor(t.mColor);break;case RB.FILLMODE:e.setFillMode(t.mFillMode);break;case RB.LINEWEIGHT:e.setLineweight(HJ.mLineWidthSwitch||IJ.mRendererType===TJ.kDrWebGlRenderer?t.mLineweight:-3);break;case RB.DRAWFLAG:e.setDrawflag(t.mEnumflags);break;case RB.TRANSPARENCY:{let n=t,i=16777215&e.getForegroundColor(),r=Math.floor(255*n.mTrans)<<24;e.setForegroundColor(r|i);break}case RB.ATTRIBUTEREFERENCE:{let n=t,i=this.getLayerByHandle(n.mReference);if(void 0!==i){e.setLayerIndex(i.mIndex),e.setLayerOff(i.mIsOff);let t=i.mViewportData;if(this.mVPHandle){let n=t.get(this.mVPHandle);n&&e.setLayerViewportFrozen(n.mLayerIsFrozen)}}if(n.mAttrFlags&Z6.kColor){let t=e.getForegroundColor();e.setForegroundColor(4278190080&t|16777215&i.mRealColor)}if(n.mAttrFlags&Z6.kLineWeight)if(HJ.mLineWidthSwitch||IJ.mRendererType===TJ.kDrWebGlRenderer){let t=i.mLineWeight;if(this.mGraphicSystem&&this.mGraphicSystem.mGsManager.isInPaperSpace()){let e=this.mViewportTableRec.getViewInfo().mHandle,n=i.mViewportData.get(e);n&&(t=n.mLineWeight)}e.setLineweight(t)}else e.setLineweight(-3);if(n.mAttrFlags&Z6.kTransparency){let t=Math.floor(i.mTransparency%256),n=e.getForegroundColor();n=t<<24|16777215&n,e.setForegroundColor(n)}break}case RB.POLYGONWIDTHBEGIN:break;case RB.POLYGONWIDTHEND:e.setPolygonWidth(t.mMaxWidth);break;case RB.DRAWCLIPBOUNDARY:case RB.SHAREDFLAG:break;case RB.ARRAYITEMBEGIN:this.mArrayItemData={mColumnNum:t.mColumnNum,mColumnOffset:t.mColumnOffset,mRowNum:t.mRowNum,mRawOffset:t.mRawOffset};break;case RB.ARRAYITEMEND:this.mArrayItemData=null;break;case RB.PUSHTRANSFORM:e.saveZcGeMatrix3d(t.mMatrix);break;case RB.POPTRANSFORM:e.restoreZcGeMatrix3d();break;case RB.SHAREDNODEID:{let i=t;if(null!=i.mHandle&&null!=i.mBlockIndex&&null!=i.mViewIndex){let t=this.getSharedDataByHandle(i.mHandle);if(null==t)break;let r=t;if(null!=r){let t=r.mSharedBlockTraits.get(i.mViewIndex);if(null!=t){let r=t.get(i.mBlockIndex);if(null!=r)for(let t=0;t<r.length;t++){let i=r[t];if(i.type>=RB.RESTATTR)this.procAttribute(i,e,n);else{if(e.mLayerOff||e.mLayerVpFrozen)continue;if(null==this.mWorldDraw.mPrimitiveCollector)return;let t=this.mWorldDraw.mPrimitiveCollector.mPtBuffer,r=this.mWorldDraw.mPrimitiveCollector.mColorBuffer,a=this.mWorldDraw.mPrimitiveCollector.mVectorBuffer,o=n.mRenderMethod.get(i.type);if(null==o){SF.logInfo("DrawMethod of "+i.type+" is undefined.");continue}if(this.mArrayItemData)for(let n=0;n<this.mArrayItemData.mRowNum;n++)for(let s=0;s<this.mArrayItemData.mColumnNum;s++){let l=new qR;l.mX=this.mArrayItemData.mRawOffset.mX*n+this.mArrayItemData.mColumnOffset.mX*s,l.mY=this.mArrayItemData.mRawOffset.mY*n+this.mArrayItemData.mColumnOffset.mY*s,l.mZ=this.mArrayItemData.mRawOffset.mZ*n+this.mArrayItemData.mColumnOffset.mZ*s,e instanceof p6&&(l.mX=l.mX*this.unitPixelHeight,l.mY=-l.mY*this.unitPixelHeight,l.mZ=l.mZ*this.unitPixelHeight,e.setTranslation(l),o(e,i,t,r,a),e.restore()),e instanceof g6&&(l.mX=-l.mX,l.mY=-l.mY,e.setTranslation(l),o(e,i,t,r,a),e.setTranslation(l.mul2Vec(-1)))}else o(e,i,t,r,a)}}}}}break}case RB.XREF:break;case RB.GRAYSTART:e.setXrefStatus(!0);break;case RB.GRAYEND:e.setXrefStatus(!1)}}fastZoom(t){return!(null==this.mGraphicSystem||!this.mGraphicSystem.mZooming||t!==RB.POLYPOLYGON2D&&t!==RB.POLYPOLYGON3D&&t!==RB.POLYGON3D&&t!==RB.HATCH3D&&t!==RB.HATCH2D)}checkVisibility(t,e,n,i){if(IJ.mRendererType==TJ.kDrWebGlRenderer)return j6.kZcInBox;if(n.mDrawable instanceof MB){let r=n.mDrawable,a=r.mExterndsData.get(this.mVPNumber);if(r.mBoundingBoxJudge&&null!=a){let n=e.mCurView;if(!n)return j6.kZcInBox;let r=n.mViewportForwebAssembly,o=n.mPoint3dForwebAssembly;if(!r||!o)return j6.kZcInBox;if(this.mCalcExtends.mMin.copy(UF(r,o,a.mMin.mX,a.mMin.mY,a.mMin.mZ)),this.mCalcExtends.mMax.copy(UF(r,o,a.mMax.mX,a.mMax.mY,a.mMax.mZ)),this.mCalcExtends.transformBy(e.m2dLimitedToDevice),this.mCalcExtends.mMin.mX=Math.round(this.mCalcExtends.mMin.mX),this.mCalcExtends.mMin.mY=Math.round(this.mCalcExtends.mMin.mY),this.mCalcExtends.mMax.mX=Math.round(this.mCalcExtends.mMax.mX),this.mCalcExtends.mMax.mY=Math.round(this.mCalcExtends.mMax.mY),this.mCalcExtends.mMax.mX<this.mCalcExtends.mMin.mX){let t=this.mCalcExtends.mMax.mX;this.mCalcExtends.mMax.mX=this.mCalcExtends.mMin.mX,this.mCalcExtends.mMin.mX=t}if(this.mCalcExtends.mMax.mY<this.mCalcExtends.mMin.mY){let t=this.mCalcExtends.mMax.mY;this.mCalcExtends.mMax.mY=this.mCalcExtends.mMin.mY,this.mCalcExtends.mMin.mY=t}if(e.mIsFastDraw){let t=Math.ceil(1.5*this.mScreenRect.mWidth),e=Math.ceil(1.5*this.mScreenRect.mHeight);if(this.mCalcExtends.mMax.mX<-t||this.mCalcExtends.mMin.mX>this.mScreenRect.right()+t||this.mCalcExtends.mMax.mY<-e||this.mCalcExtends.mMin.mY>this.mScreenRect.bottom()+e)return j6.kZcOutBox}else if(this.mCalcExtends.mMax.mX<0||this.mCalcExtends.mMin.mX>this.mScreenRect.right()||this.mCalcExtends.mMax.mY<0||this.mCalcExtends.mMin.mY>this.mScreenRect.bottom())return j6.kZcOutBox;let s=this.mCalcExtends.mMax.mX-this.mCalcExtends.mMin.mX,l=this.mCalcExtends.mMax.mY-this.mCalcExtends.mMin.mY;if(s<2&&l<2){for(let n=0;n<Math.min(i.length,10);n++){let r=i[n];r.type>=RB.RESTATTR&&this.procAttribute(r,e,t)}return e.mLayerOff||e.mLayerVpFrozen?j6.kZcOutBox:(0===s&&0===l?t.rawDrawPoint2d(e,new oB(this.mCalcExtends.mMin.mX,this.mCalcExtends.mMin.mY)):s>l?(t.rawDrawLine2d(e,new oB(this.mCalcExtends.mMin.mX,this.mCalcExtends.mMin.mY),new oB(this.mCalcExtends.mMax.mX,this.mCalcExtends.mMin.mY)),1===l&&t.rawDrawLine2d(e,new oB(this.mCalcExtends.mMin.mX,this.mCalcExtends.mMax.mY),new oB(this.mCalcExtends.mMax.mX,this.mCalcExtends.mMax.mY))):(t.rawDrawLine2d(e,new oB(this.mCalcExtends.mMin.mX,this.mCalcExtends.mMin.mY),new oB(this.mCalcExtends.mMin.mX,this.mCalcExtends.mMax.mY)),1===s&&t.rawDrawLine2d(e,new oB(this.mCalcExtends.mMax.mX,this.mCalcExtends.mMin.mY),new oB(this.mCalcExtends.mMax.mX,this.mCalcExtends.mMax.mY))),j6.kZcFade)}}}return j6.kZcInBox}drawNode(t,e,n,i){if(i===EB.kZcDrBottomMost&&!this.mGridSwitch||null===this.mGraphicSystem||null===this.mWorldDraw.mPrimitiveCollector)return;let r=this.mWorldDraw.mPrimitiveCollector.mPtBuffer,a=this.mWorldDraw.mPrimitiveCollector.mColorBuffer,o=this.mWorldDraw.mPrimitiveCollector.mVectorBuffer,s=t.mNodeChildren;if(null!=s)for(let t=0,l=s.length;t<l;t++){let l=s[t];if(null==l)continue;if(e instanceof m6){let t=l.mDrawable;if(null===t)continue;let n=t.mHandle;if(null===n)continue;if(e.getReDraw()===c6.reGenData)e.addHandle(n);else if(!e.isReGenNode(n))continue}if(null==l.mPrimitivesData)continue;let c=l.mPrimitivesData.get(this.mVPNumber);if(null!=c&&this.checkVisibility(e,n,l,c)){if(l.mDrawable instanceof MB){let t=l.mDrawable.mExterndsData.get(this.mVPNumber);null!=t&&n.mExtends.addExt(t)}else if(l.mExtendsData){let t=l.mExtendsData.get(this.mVPNumber);null!=t&&n.mExtends.addExt(t)}for(let t=0,s=c.length;t<s;t++){let s=c[t];if(s.type>=RB.RESTATTR)this.procAttribute(s,n,e,i);else{if((IJ.mRendererType!==TJ.kDrWebGlRenderer||i!==EB.kZcDrLongterm&&i!==EB.kZcDrLongtermHighlight)&&(n.mLayerOff||n.mLayerVpFrozen))continue;let t=e.mRenderMethod.get(s.type);if(null==t){SF.logInfo("DrawMethod of "+s.type+" is undefined.");continue}let c=r;if(null!=l.mPtBuffer&&(c=l.mPtBuffer),this.mArrayItemData)for(let e=0;e<this.mArrayItemData.mRowNum;e++)for(let i=0;i<this.mArrayItemData.mColumnNum;i++){let r=new qR;r.mX=this.mArrayItemData.mRawOffset.mX*e+this.mArrayItemData.mColumnOffset.mX*i,r.mY=this.mArrayItemData.mRawOffset.mY*e+this.mArrayItemData.mColumnOffset.mY*i,r.mZ=this.mArrayItemData.mRawOffset.mZ*e+this.mArrayItemData.mColumnOffset.mZ*i,n instanceof p6&&(r.mX=r.mX*this.unitPixelHeight,r.mY=-r.mY*this.unitPixelHeight,r.mZ=r.mZ*this.unitPixelHeight,n.setTranslation(r),t(n,s,c,a,o),n.restore()),n instanceof g6&&(r.mX=-r.mX,r.mY=-r.mY,n.setTranslation(r),t(n,s,c,a,o),n.setTranslation(r.mul2Vec(-1)))}else t(n,s,c,a,o)}}e instanceof m6&&e.getReDraw()===c6.reGenData&&e.doSplice(),n.mExtends.reset()}}}updateGsView(t){if(null!=t&&null!=this.mWorldDraw.mPrimitiveData[EB.kZcDrLongterm]&&!this.mWorldDraw.mPrimitiveData[EB.kZcDrLongterm].hasPrimitive()){if(this.recalVirtualBoundary(),this.wcsTo2dLimitMatrix(!0),this.limit2dToWcsMatrix(!0),this.beginRegenDrawable(!0,this.mWorldDraw),this.mGraphicRoots.has(EB.kZcDrLongterm)){let e=t.getGraphicSystem().getMainApp(),n=this.mGraphicRoots.get(EB.kZcDrLongterm);if(null!=n)for(const t of n.keys()){let i=n.get(t);if(null!=i&&e){let t=e.getPrimitiveEvaluator().mZcGsPrimitiveCollector;if(null!=t){this.mWorldDraw.setCurPrimitveCollectorData(EB.kZcDrLongterm,t);for(let t=0;t<i.length;t++)this.regenDrawable(i[t].mDrawable)}}}}this.endRegenDrawable(this.mWorldDraw)}}getGraphRoot(t){let e=new Array,n=t.zorder();if(this.mGraphicRoots.has(n)){let i=this.mGraphicRoots.get(n);if(null!=i)for(const n of i.keys())if(n==t){let t=i.get(n);if(null!=t)for(let n=0;n<t.length;n++)return e.push(t[n]),e}}return e}endRegenDrawable(t){}beginRegenDrawable(t,e){}regenDrawable(t){null!=t&&this.mWorldDraw.internalDraw(t)}worldToDeviceMatrix(){return this.mWorldToDeviceMatrix.setToIdentity(),this.mWorldToDeviceMatrix.mul(this.screenMatrix()),this.mWorldToDeviceMatrix.mul(this.projectionMatrix()),this.mWorldToDeviceMatrix.mul(this.viewingMatrix()),this.mWorldToDeviceMatrix}deviceToWorldMatrix(){return this.mDeviceToWorldMatrix.setToIdentity(),this.mDeviceToWorldMatrix.mul(this.screenMatrix()),this.mDeviceToWorldMatrix.mul(this.projectionMatrix()),this.mDeviceToWorldMatrix.mul(this.viewingMatrix()),this.mDeviceToWorldMatrix.invert()}screenMatrix(){this.mScreenMatrix.setToIdentity();let t=new JR;return t.setEntryRanks([{row:0,col:0,value:this.mScreenRect.mWidth/2},{row:1,col:1,value:-this.mScreenRect.mHeight/2},{row:0,col:3,value:this.mScreenRect.mWidth/2},{row:1,col:3,value:this.mScreenRect.mHeight/2},{row:2,col:2,value:XR.ULONG_MAX/2}]),this.mScreenMatrix.copy(t),this.mScreenMatrix}projectionMatrix(){this.mFieldWidth=this.mFieldHeight*(this.mScreenRect.mWidth/this.mScreenRect.mHeight);let e=(this.mLensLength||50)/t.PERSPECTIVE_CONST;e*=Math.sqrt(this.mFieldWidth*this.mFieldWidth+this.mFieldHeight*this.mFieldHeight);let n=new JR;return n.setEntryRanks([{row:0,col:0,value:2/this.mFieldWidth},{row:1,col:1,value:2/this.mFieldHeight},{row:2,col:2,value:1/e}]),this.mProjectionMatrix.copy(n),this.mProjectionMatrix}viewingMatrix(){this.mViewingMatrix.setToIdentity(),this.mViewingMatrix.setCoordSystem(this.mTarget,this.mXAxis.normal(),this.mUpVector.normal(),this.mEyeVecotr.normal()),this.mViewingMatrix.invert();let t=new JR;return t.setEntryRank(2,2,-1),t.mul(this.mViewingMatrix),this.mViewingMatrix.copy(t),this.mViewingMatrix}wcsToDcsMatrix(){return this.mWcs2DcsMatrix.setToIdentity(),this.mWcs2DcsMatrix.setCoordSystem(this.mDCSOrigin,this.mXAxis.normal(),this.mUpVector.normal(),this.mEyeVecotr.normal()),this.mWcs2DcsMatrix.invert(),this.mWcs2DcsMatrix}wcsTo2dLimitMatrix(t){let e=this.wcsTo2dRpMatrix();this.mWcsToLimit2dMatrix.copy(e);let n=new JR;n.setEntryRanks([{row:0,col:3,value:-(this.mVirtualBoundary[1].mX+this.mVirtualBoundary[0].mX)/2},{row:1,col:3,value:-(this.mVirtualBoundary[1].mY+this.mVirtualBoundary[0].mY)/2}]),n.mul(this.mWcsToLimit2dMatrix),this.mWcsToLimit2dMatrix.copy(n);let i=Math.max(this.mVirtualBoundary[1].mX-this.mVirtualBoundary[0].mX,this.mVirtualBoundary[1].mY-this.mVirtualBoundary[0].mY),r=this.wcsTo2dRpMatrix();return XR.isZero(i)?r.setEntryRanks([{row:0,col:0,value:1},{row:1,col:1,value:1}]):r.setEntryRanks([{row:0,col:0,value:.5*(0+XR.INT_MAX-XR.INT_MIN)/i},{row:1,col:1,value:.5*(0+XR.INT_MAX-XR.INT_MIN)/i}]),r.mul(this.mWcsToLimit2dMatrix),this.mWcsToLimit2dMatrix.copy(r),this.mLimit2dToWcsMatrix.copy(this.mWcsToLimit2dMatrix),this.mLimit2dToWcsMatrix.invert(),this.mWcsToLimit2dMatrix}limit2dToWcsMatrix(t){return this.mLimit2dToWcsMatrix}ucsToWcsMatrix(){let t=this.mViewportTableRec.getViewInfo();return this.mUCSToWCSMatrix.setToIdentity(),this.mUCSToWCSMatrix.setCoordSystem(t.mUcsOriginConstant,t.mUcsXAxisConstant,t.mUcsYAxisConstant,t.mUcsZAxisConstant),this.mUCSToWCSMatrix}wcsToUcsMatrix(){return this.mWCSToUCSMatrix.copy(this.ucsToWcsMatrix().inverse()),this.mWCSToUCSMatrix}ucsToScsMatrix(){return this.mUCSToSCSMatrix.copy(this.worldToDeviceMatrix().mul(this.ucsToWcsMatrix())),this.mUCSToSCSMatrix}scsToUcsMatrix(){return this.mSCSToUCSMatrix.copy(this.wcsToUcsMatrix().mul(this.deviceToWorldMatrix())),this.mSCSToUCSMatrix}recalVirtualBoundary(){let t=this.mViewportTableRec.getViewInfo();this.mVirtualBoundary[0]=t.mDCSBoundary.minPoint(),this.mVirtualBoundary[1]=t.mDCSBoundary.maxPoint();let e=Math.max(Math.abs(this.mVirtualBoundary[0].mX),Math.abs(this.mVirtualBoundary[0].mY));e=Math.max(e,Math.max(Math.abs(this.mVirtualBoundary[1].mX),Math.abs(this.mVirtualBoundary[1].mY))),this.mMinViewSize=e/Math.pow(2,48)*Math.abs(this.mScreenRect.mHeight-this.mScreenRect.mY);let n=Math.max(Math.abs(this.mScreenRect.mWidth),Math.abs(this.mScreenRect.mHeight)),i=Math.pow(2,30)/n;this.mMinViewSize=Math.max(this.mMinViewSize,this.mFieldHeight/i*this.mRegenScale);let r=Math.pow(2,31),a=Math.pow(2,48);this.mMinimumFieldHight=e/r*this.mScreenRect.mHeight,this.mMinimumFieldHight=Math.max(this.mMinimumFieldHight,this.mScreenRect.mHeight/a)}pixelToViewMatrix(){this.mPixelToViewMatrix.setToIdentity(),this.mPixelToViewMatrix.copy(this.projectionMatrix()),this.mPixelToViewMatrix.invert();let t=new JR;return t.copy(this.mScreenMatrix),t.invert(),this.mPixelToViewMatrix.mul(t),this.mPixelToViewMatrix}wcsTo2dRpMatrix(){return this.mWcsTo2dRpMatrix.setToIdentity(),this.mWcsTo2dRpMatrix.setCoordSystem(QR.Origin,this.mXAxis.normal(),this.mUpVector.normal(),this.mEyeVecotr.normal()),this.mWcsTo2dRpMatrix.invert(),this.mWcsTo2dRpMatrix}intersectWith(t){let e=this.mViewportTableRec.getViewInfo(),n=new QR;n.copy(t);let i=new QR,r=e.mViewDirection.normal(),a=i.sub2vec(n),o=new qR(0,0,1),s=o.dotProduct(r),l=o.dotProduct(a);return XR.isNonZero(s)&&(r.mul(l/s),n.addVector(r)),n}scsPt2WcsPt(t){let e=new QR(t.mX-this.mScreenRect.mX,t.mY-this.mScreenRect.mY,0);return e.mulMatrix(this.deviceToWorldMatrix()),this.intersectWith(e)}wcsPt2ScsPt(t){let e=new QR;return e.copy(t),e.mulMatrix(this.worldToDeviceMatrix()),e.mX+=this.mScreenRect.mX,e.mY+=this.mScreenRect.mY,e}add(t,e){let n=e.zorder();if(n>=EB.kZcDrBottomMost&&n<EB.kZcDrZOrderCount){let n=new Map,i=new Array;i.push(t),n.set(e,i),this.mGraphicRoots.set(e.zorder(),n),e.addViewport(this)}}initLayoutInfo(t){}isOverallView(){return this.mViewportTableRec.getViewInfo().mIsOverallView}dolly(t){t.div(this.unitPixelHeight),t.mY=-t.mY,t.transformBy(this.viewingMatrix().inverse()),this.mPosition.addVector(t),this.mTarget.addVector(t),mj.instance().dolly(Number(this.mVPHandle),this.mTarget,this.mPosition)}zoom(t){this.mFieldHeight/=t,this.mFieldWidth/=t,this.mCurZoomFactor*=t,mj.instance().zoom(Number(this.mVPHandle),this.mFieldWidth,this.mFieldHeight,this.mCurZoomFactor)}canZoomOut(t,e){if(XR.isEqual(t,1))return U6.kNorm;let n=this.mFieldHeight,i=n*t,r=this.mMinimumFieldHight,a=t;if(i<=r){if(i=r,a=i/n,t<=1&&a<=1)return U6.kNorm;XR.isEqual(i,n)&&(a=1)}if(XR.isEqual(a,1))return U6.kZoomInMax;if(t>1){if(XR.isNonZero(a)){let t=Math.max(Math.abs(this.mScreenRect.mWidth),Math.abs(this.mScreenRect.mHeight)),e=Math.pow(2,30)/t;if(this.mMinViewSize=Math.max(this.mMinViewSize,this.mFieldHeight/e*this.mRegenScale),!(i/a>=this.mMinViewSize))return U6.kZoomInMax}}else{let t=new qR;t.copy(e);let n=new JR,r=(this.mViewportTableRec.getViewInfo(),new JR),o=this.mPosition.sub2vec(this.mTarget),s=this.mUpVector.crossProduct(o);r.setCoordSystem(this.mDCSOrigin,s.normal(),this.mUpVector.normal(),o.normal()),r.invert();let l=new JR;l.copy(this.screenMatrix()),l.mul(this.projectionMatrix()),l.mul(this.viewingMatrix());let c=new JR;c.copy(this.viewingMatrix()),c.mul(this.projectionMatrix()),c.mul(this.screenMatrix()),n.copy(r),n.mul(c),t.transformBy(n),t.mul(a-1);let h=new NU,d=new QR;d.copy(this.mPosition),d.mulMatrix(r),h.minPoint().mX=d.mX-this.mFieldWidth/2,h.minPoint().mY=d.mY-this.mFieldHeight/2,h.maxPoint().mX=d.mX+this.mFieldWidth/2,h.maxPoint().mY=d.mY+this.mFieldHeight/2,h.mMin.add2Point(t),h.mMax.add2Point(t);let u=h.center(),m=h.mMin.sub2vec(u);m.mul(a),h.mMin=u.add2Point(m),h.mMax=u.sub2Point(m);let p=new NU;if(this.mVirtualBoundary.forEach((t=>{p.addPoint(t)})),h.mMin.mX<=p.mMin.mX)return U6.kZoomOutMax;if(h.mMin.mY<=p.mMin.mY)return U6.kZoomOutMax;if(h.mMax.mX>=p.mMax.mX)return U6.kZoomOutMax;if(h.mMax.mY>=p.mMax.mY||(u=h.center(),i=h.mMax.mY-h.mMin.mY,i<XR.TOL_POTINT&&i>-XR.TOL_POTINT))return U6.kZoomOutMax}return U6.kNorm}canZoomIn(t){let e=U6.kNorm;return XR.isNonZero(t)&&(this.mFieldWidth/t>=this.mMinViewSize||(e=U6.kZoomInMax)),e}getGsModelData(t){return this.mGraphicRoots.get(t)}getGsWorldDraw(){return this.mWorldDraw}generateHighlightNode(t){if(null===this.mGraphicSystem)return;let e=t.values().next().value[0],n=this.mGraphicSystem.mHighlightHandles;if(0==n.length)return void(null!=e.mNodeChildren&&(e.mNodeChildren.length=0));null==e.mNodeChildren&&(e.mNodeChildren=new Array);let i=e.mNodeChildren,r=this.mGraphicSystem.mGsManager.database();if(null==r)return;let a=r.getActiveBTR();if(null==a)return;let o=r.getModelSpaceTableRecord();if(null!=o)for(let t=0;t<n.length;t++){const e=n[t];let r=a.getZcDbObject(e),s=!1;for(let t=0;t<i.length;++t)if(i[t].mDrawable.mHandle==e){s=!0;break}if(s||null==r||null==r.mGsNode||null==r.mGsNode.mPrimitivesData)continue;if(this.isOverallView()){if(r.mOwnerHandle==o.mHandle)continue}else if(r.mOwnerHandle!=o.mHandle)continue;let l=new CB,c=r.mGsNode.mPrimitivesData.get(this.mVPNumber);if(!c||0===c.length)return;let h=[];h.push(new HB(RB.HIGHLIGHT)),c.forEach((t=>{h.push(t)})),h.push(new HB(RB.HIGHLIGHTRESTORE)),l.mPrimitivesData=(new Map).set(this.mVPNumber,h),l.mPtBuffer=r.mGsNode.mPtBuffer,l.mVectorBuffer=r.mGsNode.mPtBuffer,l.mColorBuffer=r.mGsNode.mPtBuffer,l.mLayHandle=r.mLayerHandle,l.mDrawable=r,i.push(l)}}setDirectShortermGsNode(t){if(null===this.mGraphicSystem)return;let e=t.values().next().value[0];e.mNodeChildren=new Array;let n=new CB;n.mPrimitivesData=(new Map).set(this.mVPNumber,this.mDirectShortermCollector.mPrimitives),e.mNodeChildren.push(n)}setDrSurfaceGsNode(t){if(null===this.mGraphicSystem)return;let e=this.mGraphicSystem.mSurfacePrimitiveCollector;if(null===e)return;let n=t.values().next().value[0];n.mNodeChildren=new Array;let i=[],r=this.mGraphicSystem.mGsManager.database();if(r){let t=r.getAllLayoutInfo(),a=Number((t.find((t=>t.mIsModelSpace))||{}).handleId),o=r.getCurLayout(),s=o&&Number(o.handleId);i=this.mGraphicSystem.mGsManager.isInPaperSpace()&&!this.isOverallView()?e.mPrimitives.filter((t=>{if(t.type!==RB.RASTERIMAGE)return!1;{let e=t.mUrlPath.split("-").pop();return Number(e)===a}})):e.mPrimitives.filter((t=>{if(t.type!==RB.RASTERIMAGE)return!0;{let e=t.mUrlPath.split("-").pop();return Number(e)===s}}));let l=new CB;l.mPrimitivesData=(new Map).set(this.mVPNumber,i),n.mNodeChildren.push(l)}}setShortermGsNode(t){let e=HZ.mZcGsPrimitiveCollector;if(null===e||0===e.mPrimitives.length)return;let n=t.values().next().value[0];n.mNodeChildren=new Array;let i=new CB;i.mPrimitivesData=(new Map).set(this.mVPNumber,e.mPrimitives),n.mNodeChildren.push(i)}setDataToShorterm(t){if(null===this.mGraphicSystem)return;let e=this.mGraphicSystem.mShortermPrimitiveCollector;if(null===e)return;e.clearCollector();let n=e.getBufferPoint();for(let e=0;e<t.length;e++){let i=new QR;i.copy(this.scsPt2WcsPt(t[e])),n.push(i.mX,i.mY,i.mZ)}let i=new HB(RB.RESTATTR);this.mGraphicSystem.mShortermPrimitiveCollector.mPrimitives.push(i),this.mGraphicSystem.mShortermPrimitiveCollector.addPrimitive(RB.RAWPOLYLINE3D,3*t.length)}clearAllSnap(){if(this.mOsnapPrimitiveCollector.clearCollector(),null!==this.mGraphicSystem){let t=new HB(RB.RESTATTR);this.mOsnapPrimitiveCollector.mPrimitives.push(t)}}drawOSnapPt(t,e){null!==this.mGraphicSystem&&(this.mOsnapPrimitiveCollector.addPrimitiveSNAP(RB.OSNAP,e,t),this.generateDirectShortermData())}drawStorageSnapPt(t,e,n){null!==this.mGraphicSystem&&(this.mOsnapPrimitiveCollector.addPrimitiveSNAP(RB.OSNAP,e,t,n),this.generateDirectShortermData())}clear(){this.mGraphicRoots=new Map,this.mViewportForwebAssembly&&this.mViewportForwebAssembly.delete(),this.mPoint3dForwebAssembly&&this.mPoint3dForwebAssembly.delete(),this.mInitVpMatptr&&(this.mInitVpMatptr=null)}targetBoxPickSelect(t,e,n,i){return this.getWCSExtentsByRPPExtents(t,e,n,!0)}getWCSExtentsByRPPExtents(t,e,n,i){let r=this.projectionMatrix(),a=new JR;a=r.inverse();let o=e.sub2vec(t);o.mul(XR.TOL_POTINT);let s=t.sub2Point(o),l=e.add2Point(o),c=new NU;c.set(a.mulPt(s),a.mulPt(l));let h=new QR,d=new QR,u=this.mViewportTableRec.getViewInfo();d.copy(u.mViewExtends.mMin),h.copy(u.mViewExtends.mMax);let m=new JR;m.copy(this.viewingMatrix());let p=new NU;p.set(d,h),p.transformBy(m);let g=0;return i&&(g=this.unitPixelHeight/2),c.addPoint(new QR(c.minPoint().mX-g,c.minPoint().mY-g,p.minPoint().mZ-g)),c.addPoint(new QR(c.maxPoint().mX+g,c.maxPoint().mY+g,p.maxPoint().mZ+g)),this.mGridNode.zcgsAdapterTransformExtents(c,this.viewingMatrix().inverse(),n)}orbitXY(t,e){let n=this.mPosition,i=this.mTarget,r=this.mUpVector;r.normalize();let a=n.sub2vec(i);if(0!==t&&(a.rotateBy(t,r),n=i.add2Point(a)),0!==e){let t=r.crossProduct(a);a.rotateBy(-e,t),r.rotateBy(-e,t),n=i.add2Point(a)}this.setView(n,i,r,this.mFieldWidth,this.mFieldHeight,_6.kParallel)}rollDelta(t){if(0===t)return;let e=this.mPosition,n=this.mTarget,i=this.mUpVector.normal();i.rotateBy(-t,this.mEyeVecotr),this.setView(e,n,i,this.mFieldWidth,this.mFieldHeight,_6.kParallel)}dolly1(t){let e=new qR;e.copy(t),e.transformBy(this.viewingMatrix().inverse()),this.mTarget.addVector(e),this.mPosition.addVector(e)}initVpForWebAssembly(){this.mViewportForwebAssembly||(this.mViewportForwebAssembly=new Module.ZcadViewportForWebAssembly,this.mPoint3dForwebAssembly=new Module.Point3d(0,0,0),this.mInitVpMatptr||(this.mInitVpMatptr=this.mViewportForwebAssembly.getMat()));let t=this.mInitVpMatptr;Module.HEAPF64[t>>3]=this.mPosition.mX,t+=8,Module.HEAPF64[t>>3]=this.mPosition.mY,t+=8,Module.HEAPF64[t>>3]=this.mPosition.mZ,t+=8,Module.HEAPF64[t>>3]=this.mTarget.mX,t+=8,Module.HEAPF64[t>>3]=this.mTarget.mY,t+=8,Module.HEAPF64[t>>3]=this.mTarget.mZ,t+=8,this.mUpVector.normalize(),Module.HEAPF64[t>>3]=this.mUpVector.mX,t+=8,Module.HEAPF64[t>>3]=this.mUpVector.mY,t+=8,Module.HEAPF64[t>>3]=this.mUpVector.mZ,t+=8,Module.HEAPF64[t>>3]=this.mFieldWidth,t+=8,Module.HEAPF64[t>>3]=this.mFieldHeight,t+=8;let e=this.mViewportTableRec.getViewInfo();Module.HEAPF64[t>>3]=e.mUcsOriginConstant.mX,t+=8,Module.HEAPF64[t>>3]=e.mUcsOriginConstant.mY,t+=8,Module.HEAPF64[t>>3]=e.mUcsOriginConstant.mZ,t+=8,Module.HEAPF64[t>>3]=e.mUcsXAxisConstant.mX,t+=8,Module.HEAPF64[t>>3]=e.mUcsXAxisConstant.mY,t+=8,Module.HEAPF64[t>>3]=e.mUcsXAxisConstant.mZ,t+=8,Module.HEAPF64[t>>3]=e.mUcsYAxisConstant.mX,t+=8,Module.HEAPF64[t>>3]=e.mUcsYAxisConstant.mY,t+=8,Module.HEAPF64[t>>3]=e.mUcsYAxisConstant.mZ,t+=8;let n=e.mViewDirection;this.mGraphicSystem&&this.mGraphicSystem.m3DOrbitActive&&(n=this.mPosition.sub2vec(this.mTarget)),n.normalize(),Module.HEAPF64[t>>3]=n.mX,t+=8,Module.HEAPF64[t>>3]=n.mY,t+=8,Module.HEAPF64[t>>3]=n.mZ,t+=8,Module.HEAPF64[t>>3]=this.mElevation,t+=8,Module.HEAPF64[t>>3]=this.mScreenRect.mY,t+=8,Module.HEAPF64[t>>3]=this.mScreenRect.mX,t+=8,Module.HEAPF64[t>>3]=this.mScreenRect.bottom(),t+=8,Module.HEAPF64[t>>3]=this.mScreenRect.right(),t+=8,Module.HEAPF64[t>>3]=e.mFrontClipEnable?1:0,t+=8,Module.HEAPF64[t>>3]=e.mBackClipEnable?1:0,t+=8,Module.HEAPF64[t>>3]=e.mFrontZ,t+=8,Module.HEAPF64[t>>3]=e.mBackZ,t+=8,Module.HEAPF64[t>>3]=this.mXAxis.mX,t+=8,Module.HEAPF64[t>>3]=this.mXAxis.mY,t+=8,Module.HEAPF64[t>>3]=this.mXAxis.mZ,t+=8,Module.HEAPF64[t>>3]=this.mEyeVecotr.mX,t+=8,Module.HEAPF64[t>>3]=this.mEyeVecotr.mY,t+=8,Module.HEAPF64[t>>3]=this.mEyeVecotr.mZ,t+=8,Module.HEAPF64[t>>3]=e.mViewExtends.mMax.mX,t+=8,Module.HEAPF64[t>>3]=e.mViewExtends.mMax.mY,t+=8,Module.HEAPF64[t>>3]=e.mViewExtends.mMax.mZ,t+=8,Module.HEAPF64[t>>3]=e.mViewExtends.mMin.mX,t+=8,Module.HEAPF64[t>>3]=e.mViewExtends.mMin.mY,t+=8,Module.HEAPF64[t>>3]=e.mViewExtends.mMin.mZ,t+=8,Module.HEAPF64[t>>3]=e.mLensLength,t+=8,Module.HEAPF64[t>>3]=this.mDCSOrigin.mX,t+=8,Module.HEAPF64[t>>3]=this.mDCSOrigin.mY,t+=8,Module.HEAPF64[t>>3]=this.mDCSOrigin.mZ,t+=8,Module.HEAPF64[t>>3]=e.mLimmin.mX,t+=8,Module.HEAPF64[t>>3]=e.mLimmin.mY,t+=8,Module.HEAPF64[t>>3]=e.mLimmax.mX,t+=8,Module.HEAPF64[t>>3]=e.mLimmax.mY,t+=8,this.mViewportForwebAssembly.initializeViewport()}calculateVirtualBoundary(){let t=this.mViewportTableRec.getViewInfo(),e=this.mViewportForwebAssembly.getDCSBoundary3d(),n=[];for(let t=0;t<6;++t)n.push(Module.HEAPF64[e>>3]),e+=8;t.mDCSBoundary.mMin.mX=n[0],t.mDCSBoundary.mMin.mY=n[1],t.mDCSBoundary.mMin.mZ=n[2],t.mDCSBoundary.mMax.mX=n[3],t.mDCSBoundary.mMax.mY=n[4],t.mDCSBoundary.mMax.mZ=n[5]}getWorldDCSExt(t){t.initVpForWebAssembly(),t.mViewportForwebAssembly.zoomExtentsFactors();let e=t.mViewportForwebAssembly.getWorldDCSExt(),n=[];for(let t=0;t<6;++t)n.push(Module.HEAPF64[e>>3]),e+=8;let i=new NU;return i.mMax.mX=n[0],i.mMax.mY=n[1],i.mMax.mZ=n[2],i.mMin.mX=n[3],i.mMin.mY=n[4],i.mMin.mZ=n[5],i}adjustViewDrawingSize(t,e){return e+=6*e/this.mScreenRect.mHeight,{width:t+=6*t/this.mScreenRect.mWidth,height:e=Math.max(t/(this.mFieldWidth/this.mFieldHeight),e)}}dcsWorldExtend(){this.calcWorldExtents();let t=new NU,e=new JR,n=new QR;n.copy(this.mDCSOrigin);let i=new qR;i.copy(this.mXAxis),i.normalize();let r=new qR;return r.copy(this.mUpVector),r.normalize(),e.setCoordSystem(n,i,r,i.crossProduct(r)),this.mGridNode.zcgsAdapterTransformExtents(this.mWorldExtends,e.inverse(),t),t}calcWorldExtents(){if(this.mGraphicSystem){let t=this.mGraphicSystem.mGsManager.database();if(null===t)return;let e=t.getActiveBTR();if(null===e)return;let n=e.mGsNode;if(null!==n&&null!==n.mNodeChildren)for(let t=0;t<n.mNodeChildren.length;t++){const e=n.mNodeChildren[t];if(null!==e){let t=e.mDrawable.mExterndsData.get(this.mVPNumber);if(!t)continue;this.mWorldExtends.addExt(t)}}}}calUcsIconExt(){this.mViewportTableRec.getViewInfo();let t=new JR,e=this.mUpVector.normal(),n=this.mPosition.sub2vec(this.mTarget).normal(),i=e.crossProduct(n);t.setCoordSystem(this.mDCSOrigin,i,e,n);let r=new JR;r.copy(t.inverse().mul(this.deviceToWorldMatrix()));let a=new QR;a.set(0,this.mScreenRect.mHeight,0);let o=new QR;return o.set(this.mScreenRect.mWidth,0,0),a.mulMatrix(r),o.mulMatrix(r),{lowerLeft:a,upperRight:o}}createUcsIcon(){if(this.deleteOtherUcsIcon(),null===this.mGraphicSystem)return;this.mGraphicSystem.setDirtyLayer(EB.kZcDrDirectShorterm,!0),this.mGraphicSystem.mNeedRepaint=!0;let t=this.mGraphicSystem.mCurView;if(null===t||this.isOverallView()&&!t.isOverallView()||!this.isOverallView()&&t.isOverallView())return;let e=this.mViewportTableRec.getViewInfo();if(!e.mbUcsOn)return;const n=new Module.ZwExUcsIconForWebAssembly;this.mPoint3dForwebAssembly||(this.mPoint3dForwebAssembly=new Module.Point3d(0,0,0));let i=n.getMat(),r=this.mPosition.sub2vec(this.mTarget);r.normalize(),this.mUpVector.normalize(),this.mEyeVecotr.normalize(),Module.HEAPF64[i>>3]=r.mX,i+=8,Module.HEAPF64[i>>3]=r.mY,i+=8,Module.HEAPF64[i>>3]=r.mZ,i+=8,Module.HEAPF64[i>>3]=this.mDCSOrigin.mX,i+=8,Module.HEAPF64[i>>3]=this.mDCSOrigin.mY,i+=8,Module.HEAPF64[i>>3]=this.mDCSOrigin.mZ,i+=8,Module.HEAPF64[i>>3]=this.mUpVector.mX,i+=8,Module.HEAPF64[i>>3]=this.mUpVector.mY,i+=8,Module.HEAPF64[i>>3]=this.mUpVector.mZ,i+=8,Module.HEAPF64[i>>3]=this.mEyeVecotr.mX,i+=8,Module.HEAPF64[i>>3]=this.mEyeVecotr.mY,i+=8,Module.HEAPF64[i>>3]=this.mEyeVecotr.mZ,i+=8,Module.HEAPF64[i>>3]=e.mUcsOriginConstant.mX,i+=8,Module.HEAPF64[i>>3]=e.mUcsOriginConstant.mY,i+=8,Module.HEAPF64[i>>3]=e.mUcsOriginConstant.mZ,i+=8,Module.HEAPF64[i>>3]=e.mUcsXAxisConstant.mX,i+=8,Module.HEAPF64[i>>3]=e.mUcsXAxisConstant.mY,i+=8,Module.HEAPF64[i>>3]=e.mUcsXAxisConstant.mZ,i+=8,Module.HEAPF64[i>>3]=e.mUcsYAxisConstant.mX,i+=8,Module.HEAPF64[i>>3]=e.mUcsYAxisConstant.mY,i+=8,Module.HEAPF64[i>>3]=e.mUcsYAxisConstant.mZ,i+=8;let a=this.calUcsIconExt();a&&(Module.HEAPF64[i>>3]=a.lowerLeft.mX,i+=8,Module.HEAPF64[i>>3]=a.lowerLeft.mY,i+=8,Module.HEAPF64[i>>3]=a.lowerLeft.mZ,i+=8,Module.HEAPF64[i>>3]=a.upperRight.mX,i+=8,Module.HEAPF64[i>>3]=a.upperRight.mY,i+=8,Module.HEAPF64[i>>3]=a.upperRight.mZ,i+=8,Module.HEAPF64[i>>3]=e.mbUcsOn?1:0,i+=8,Module.HEAPF64[i>>3]=e.mbUcsAtOrigin?1:0,i+=8,Module.HEAPF64[i>>3]=1,i+=8,Module.HEAPF64[i>>3]=this.isOverallView()?1:0,i+=8),n.calUcsIconPts();let o=n.getUcsIcon(),s=n.m_ucsicon_ptnumber,l=[];for(let t=0;t<3*s;++t)l.push(Module.HEAPF64[o>>3]),o+=8;if(this.mUcsIconPrimitiveCollector.clearCollector(),null!==this.mGraphicSystem){let t=new HB(RB.RESTATTR);this.mUcsIconPrimitiveCollector.mPrimitives.push(t),this.mUcsIconPrimitiveCollector.addPrimitiveUcsIcon(RB.UCSICON,l,s),this.generateDirectShortermData()}n.delete(),i=null,o=null}deleteOtherUcsIcon(){null!==this.mDevice&&(this.mDevice.getArrView().forEach((t=>{t&&t.mUcsIconPrimitiveCollector.clearCollector()})),this.generateDirectShortermData())}setOrthoViewPt(t){let e=new EJ;e.applyUcsOrthoViewType(DJ.kTopView,this);let n=new PJ;e.getRelativeOrthoCS(t,n);let i=this.mViewportTableRec.getViewInfo();i.mViewDirection.isEqualTo(n.zAxis())||i.mViewDirection.copy(n.zAxis());let r=new qR;r.copy(n.zAxis());let a=new qR;a.copy(r.normal());let o=new qR;o.copy(a.perpVector().normal());let s=0;s=n.zAxis().dotProduct(n.zAxis().crossProduct(n.xAxis()))<0?XR.ZWGR_TWOPI-o.angleTo(n.xAxis()):o.angleTo(n.xAxis());let l=RV.fixAngle(-s);i.mTwistAngle=l,i.mUcsOriginConstant.copy(n.origin()),i.mUcsXAxisConstant.copy(n.xAxis()),i.mUcsYAxisConstant.copy(n.yAxis()),i.mUcsZAxisConstant=n.xAxis().crossProduct(n.yAxis())}setViewPt(t=!0){let e=this.mViewportTableRec.getViewInfo();if(e.mTwistAngle=0,t)return;let n=new PJ;n.mOrigin.copy(e.mTarget);let i=new qR;i.copy(e.mViewDirection.normal());let r=new qR;r.copy(i.perpVector()),r.rotateBy(e.mTwistAngle,i),n.mXAxis.copy(r),n.mYAxis.copy(i.crossProduct(n.mXAxis));let a=qR.ZAxis();if(a.transformBy(this.ucsToWcsMatrix()),a.transformBy(n.wcsToMe()),XR.isZero(a.mX,XR.EPSILON6)&&XR.isZero(a.mY,XR.EPSILON6)){let t=qR.YAxis();t.transformBy(this.ucsToWcsMatrix()),a.copy(t),a.transformBy(n.wcsToMe())}let o=Math.atan2(a.mY,a.mX)-XR.ZWGR_HALFPI;o=RV.fixAngle(-o),e.mTwistAngle=o}generateDirectShortermData(){this.mDirectShortermCollector.clearCollector(),this.mDirectShortermCollector.mergeCollector(this.mOsnapPrimitiveCollector),this.mDirectShortermCollector.mergeCollector(this.mUcsIconPrimitiveCollector)}isRegenRequiredAfterZoom(t,e){if(t>XR.TOL_POTINT&&t<=XR.TOL_POTINT)return!0;let n=t/this.mFieldHeight;if(t<this.mMinimumFieldHight)return!0;let i=this.mViewportTableRec.getViewInfo(),r=new QR;r.copy(this.mTarget);let a=new JR,o=new PJ;o.origin().copy(this.mDCSOrigin),o.xAxis().copy(this.mUpVector.crossProduct(i.mViewDirection)),o.yAxis().copy(this.mUpVector),r.mulMatrix(o.wcsToMe()),a=o.meToWcs();let s=new QR(e.mX,e.mY,0).sub2vec(r);return s.transformBy(this.viewingMatrix().mul(a)),U6.kNorm!==this.canZoom(n,s)}canZoom(t,e){if(XR.isEqual(t,1))return U6.kNorm;let n=this.mFieldHeight,i=n*t,r=this.mMinimumFieldHight,a=t;if(i<=r){if(i=r,a=i/n,t<=1&&a<=1)return U6.kNorm;XR.isEqual(i,n)&&(a=1)}if(XR.isEqual(a,1))return U6.kZoomInMax;let o=new qR;o.copy(e);let s=new JR,l=this.mViewportTableRec.getViewInfo(),c=new JR,h=this.mUpVector.crossProduct(l.mViewDirection);c.setCoordSystem(this.mDCSOrigin,h.normal(),this.mUpVector.normal(),l.mViewDirection.normal()),c.invert();let d=new JR;d.copy(this.screenMatrix()),d.mul(this.projectionMatrix()),d.mul(this.viewingMatrix());let u=new JR;u.copy(this.viewingMatrix()),u.mul(this.projectionMatrix()),u.mul(this.screenMatrix()),s.copy(c),s.mul(u),o.transformBy(s),o.mul(a-1);let m=new NU;this.mVirtualBoundary.forEach((t=>{m.addPoint(t)}));let p=m.mMax.mX-m.mMin.mX,g=m.mMax.mY-m.mMin.mY,f=new NU,b=new QR;b.copy(this.mPosition),b.mulMatrix(c),f.minPoint().mX=b.mX-this.mFieldWidth/2,f.minPoint().mY=b.mY-this.mFieldHeight/2,f.maxPoint().mX=b.mX+this.mFieldWidth/2,f.maxPoint().mY=b.mY+this.mFieldHeight/2,f.mMin.add2Point(o),f.mMax.add2Point(o);let y=f.center(),v=f.mMin.sub2vec(y);v.mul(a),f.mMin=y.add2Point(v),f.mMax=y.sub2Point(v);let w=!1;return(f.mMax.mX-f.mMin.mX>p||f.mMax.mY-f.mMin.mY>g)&&(w=!0),w?U6.kZoomOutMax:U6.kNorm}}return t.PERSPECTIVE_CONST=42,t.EXPAND_RATIO=1.05,t.PERSPECTIVE_CLIP=.05,t.DEFAULT_CLIP_DEPTH=1e5,t})();class q6 extends kJ{constructor(){super(),this.mPoints=new Array}normal(){return qR.ZAxis()}jsonIn(t){let e=0;for(;e<t.points.length;)this.mPoints.push(new QR(t.points[e][0],t.points[e][1],t.points[e][2])),e++}addVertex(t){this.mPoints.push(t)}worldDraw(t){let e=t.geometry();if(null!==e){e.resetAttr();let n=t.context();null!==n&&e.referenceAttr(n.layer(),Z6.kAll),e.polyline(this.mPoints.length,this.mPoints,this.normal())}return!0}create(){}}let $6=(()=>{class t extends xB{constructor(){super(),this.mPosition=new QR,this.mStrText="",this.mTextStyle={fontSize:255,fontFamily:"宋体",fontHeight:2.5,fontAbove:0,fontAverageWidth:0,fontAscent:0,fontWeight:0,fontItalic:0},this.mUnderline=0,this.mTextDir=new qR(1,0,0),this.mTextVerDir=new qR(0,1,0),this.mTextHeight=2.5,this.mTextWidth=0,this.mBoundMin=[0,0],this.mBoundMax=[-1,-1],this.charset=134,this.xScale=1,this.rotate=new qR(1,0,0),this.oblique=new qR(0,1,0),this.obliquingAngle=0,this.upsidedown=0,this.backward=0,this.boundBox={max:[0,0],min:[0,0]},this.trackingPercent=1}jsonIn(t){this.mPosition.set(t.location[0],t.location[1],t.location[2]),"text"in t&&(this.mStrText=t.text),"textStyle"in t&&(this.mTextStyle=t.textStyle),"textHeight"in t&&(this.mTextHeight=t.textHeight),"charset"in t&&(this.charset=t.charset),"xScale"in t&&(this.xScale=t.xScale),"rotate"in t&&(this.rotate=t.set(t.rotate[0],t.rotate[1],t.rotate[2])),"oblique"in t&&(this.oblique=t.set(t.oblique[0],t.oblique[1],t.oblique[2])),"obliquingAngle"in t&&(this.obliquingAngle=t.obliquingAngle),"upsidedown"in t&&(this.upsidedown=t.upsidedown),"backward"in t&&(this.backward=t.backward)}worldDraw(t){let e=t.geometry();if(null!==e){e.resetAttr();let n=t.context();null!==n&&e.referenceAttr(n.layer(),Z6.kAll),e.text3d(this.mPosition,{textPt:this.mPosition,textDir:this.mTextDir,textVerDir:this.mTextVerDir,boundBox:{max:this.mBoundMax,min:this.mBoundMin},textHeight:this.mTextHeight,textWidth:this.mTextWidth,xScale:this.xScale,obliquingAngle:this.obliquingAngle,content:this.mStrText,textNumber:this.mStrText.length,flags:[],textStyle:this.mTextStyle,trackingPercent:this.trackingPercent,charset:this.charset,renderMode:0,raw:0,underline:this.mUnderline,backward:this.backward,upsidedown:this.upsidedown,vertical:0,overlined:0,strikethrough:0})}return!0}setTextHeight(t){this.mTextHeight=t}setPosition(t){this.mPosition.copy(t)}setText(t){this.mStrText=t}}return t.mCanvas=null,t})();class K6 extends kJ{constructor(){super(),this.mCenter=new QR,this.mRadius=1}normal(){return qR.ZAxis()}jsonIn(t){this.setCenter(new QR(t.center[0],t.center[1],t.center[2])),this.setRadius(t.radius)}worldDraw(t){let e=t.geometry();return null!==e&&e.circle(this.mCenter,this.mRadius,this.normal()),!0}setCenter(t){this.mCenter=t}setRadius(t){this.mRadius=t}getCenter(){return this.mCenter}getRadius(){return this.mRadius}}class J6 extends kJ{constructor(){super(),this.mPoints=new Array,this.mColor="#000000",this.mContourCounts=[]}jsonIn(t){this.mColor=t.color,this.mContourCounts=t.contourCounts;let e=0;for(;e<t.points.length;)this.mPoints.push(new QR(t.points[e][0],t.points[e][1],t.points[e][2])),e++}worldDraw(t){let e=t.geometry();return null!==e&&e.hatch(this.mPoints.length,this.mPoints,this.mColor,this.mContourCounts),!0}}class Q6 extends vJ{constructor(){super(),this.mMaps=new Map}add(t){this.mItems.push(t);let e=t.getLayerInfo();return this.mMaps.set(e.mLayerHandle,e),yJ.eOK}get(t){return this.mMaps.get(t)}set(t,e){this.mMaps.set(t,e)}getDefaultLayer(){for(let t of this.mMaps.values())if("0"===t.mLayerName)return t}}class t3{constructor(){this.mViewportHandle=BigInt("0"),this.mColor=fj.DEFAULT_FOREGROUND_COLOR,this.mTransparency=1,this.mLineWeight=-3,this.mLayerIsFrozen=!1}}class e3{constructor(){this.mIndex=0,this.mVPDFLT=!1,this.mColor=fj.DEFAULT_FOREGROUND_COLOR,this.mRealColor=fj.DEFAULT_FOREGROUND_COLOR,this.mColorIndex=0,this.mEntityColor=fj.DEFAULT_FOREGROUND_COLOR,this.mTransparency=255,this.mLineWeight=-3,this.mPlotStyleName="C",this.mIsFrozen=!1,this.mIsHidden=!1,this.mIsInUse=!0,this.mIsLocked=!1,this.mHasOverrides=!1,this.mIsOff=!1,this.mIsPlottable=!0,this.mIsReconciled=!1,this.mLayerHandle=BigInt("0"),this.mLayerName="0",this.mViewportData=new Map}static GetLayerIndex(t){return 3271557120|t}}class n3 extends xJ{constructor(){super(),this.mLayerInfo=new e3}getLayerInfo(){return this.mLayerInfo}setLayerInfo(t){this.mLayerInfo=t}}class i3 extends vJ{add(t){return this.mItems.push(t),yJ.eOK}}class r3 extends xJ{constructor(){super(),this.mGsView=null,this.mLowerLeft=new oB,this.mUpperRight=new oB(1,1),this.mViewInfo=new _J}copy(t){this.mLowerLeft.copy(t.mLowerLeft),this.mUpperRight.copy(t.mUpperRight),this.mViewInfo.copy(t.mViewInfo)}getLowerLeft(){return this.mViewInfo.mLowerLeft}getUpperRight(){return this.mViewInfo.mUpperRight}setLowerLeft(t){this.mViewInfo.mLowerLeft=t}setUpperRight(t){this.mViewInfo.mUpperRight=t}setViewInfo(t){this.mViewInfo=t}getViewInfo(){return this.mViewInfo}setGsView(t){this.mGsView=t}getGsView(){return this.mGsView}}var a3,o3=((a3=o3||(o3={}))[a3.kZwDbBlockTable=0]="kZwDbBlockTable",a3[a3.kZwDbLayerTable=1]="kZwDbLayerTable",a3[a3.kZwDbViewTable=2]="kZwDbViewTable",o3);class s3{constructor(){this.mMinExt=new QR,this.mMaxExt=new QR,this.mCurLayout=null,this.mLayoutInfo=new Array,this.mActiveBtr=null,this.mLinetypeTables={},this.mTextStyle=new Uint8Array,this.mSymboleTables=new Map}getSymbolTable(t){return this.mSymboleTables.has(t)?this.mSymboleTables.get(t):null}addSymbolTable(t,e){return!this.mSymboleTables.has(t)&&(this.mSymboleTables.set(t,e),!0)}removeSymbolTable(t){return!!this.mSymboleTables.has(t)&&(this.mSymboleTables.delete(t),!0)}getZcDbObjectId(t){let e=new fJ;return e.setObject(t),e}readFromLMFData(t){this.mMinExt=t.mDbReader.mExtents.mMin,this.mMaxExt=t.mDbReader.mExtents.mMax;let e=t.mLayout.getCurLayout(),n=t.mLayer.getLayers(),i=e.handleId,r=new Q6;n.forEach((t=>{mj.instance().updateLayoutLayerMap(i,t.mLayerHandle,t.mIndex);let e=new n3;e.setLayerInfo(t),e.setSymbolName(t.mLayerName),r.add(e)}));let a=mj.instance().addLayerHandle,o=mj.instance().layoutLayerMap.get(i);a!==BigInt(0)&&void 0!==o&&!o.has(a)&&mj.instance().updateLayoutLayerMap(i,a,o.size),this.addSymbolTable(o3.kZwDbLayerTable,r);let s=new wJ,l=t.mLayout.getAllLayouts();for(let t in l){let e=new CJ;e.mHandle=l[t].mPaperSpaceId,s.add(e)}this.addSymbolTable(o3.kZwDbBlockTable,s),this.mCurLayout=e,this.mLayoutInfo=t.mLayout.getAllLayouts();let c=this.getBTRByHandle(e.mPaperSpaceId);if(null==c)return!1;this.mActiveBtr=c;let h=t.mView.getViews(),d=new i3;h.forEach((t=>{let e=new r3;e.setViewInfo(t),e.setSymbolName(t.mViewportName),d.add(e),this.mActiveBtr&&this.mActiveBtr.addViewDbInfo(t)})),this.addSymbolTable(o3.kZwDbViewTable,d);let u=t.mEntity.getAllEntity();for(let t=0;t<u.length;++t)try{let e=this.getZcDbObjectId(u[t]);c.appendZcDbEntity(e)}catch(t){SF.log(t);continue}let m=t.mShareBTR.getAllShareBTR();for(let t=0;t<m.length;++t)try{let e=this.getZcDbObjectId(m[t]);c.appendZcDbEntity(e)}catch(t){SF.log(t);continue}return this.mLinetypeTables=t.mLinetype.getLinetypeInfo(),this.mTextStyle=t.mTextStyle.getTextStyleInfo(),!0}setActiveLayout(t){for(let e in this.mLayoutInfo)if(this.mLayoutInfo[e].mPaperSpaceId===t)return this.mCurLayout=this.mLayoutInfo[e],!0;return!1}appendLMFData(t){let e=t.mLayout.getCurLayout();this.mCurLayout=e,null!=this.mLayoutInfo[t.mLayout.getCurLayoutIndex()]&&(this.mLayoutInfo[t.mLayout.getCurLayoutIndex()]=e);let n=this.getBTRByHandle(e.mPaperSpaceId);if(null==n)return!1;this.mActiveBtr=n;let i=t.mView.getViews(),r=this.getSymbolTable(o3.kZwDbViewTable);i.forEach((t=>{let e=new r3;e.setViewInfo(t),e.setSymbolName(t.mViewportName),r.add(e),this.mActiveBtr&&this.mActiveBtr.addViewDbInfo(t)}));let a=t.mLayer.getLayers(),o=e.handleId,s=this.getSymbolTable(o3.kZwDbLayerTable);a.forEach((t=>{if(mj.instance().updateLayoutLayerMap(o,t.mLayerHandle,t.mIndex),null==s.get(t.mLayerHandle)){let e=new n3;e.setLayerInfo(t),e.setSymbolName(t.mLayerName),s.add(e)}}));let l=mj.instance().addLayerHandle,c=mj.instance().layoutLayerMap.get(o);l!==BigInt(0)&&void 0!==c&&!c.has(l)&&mj.instance().updateLayoutLayerMap(o,l,c.size);let h=t.mEntity.getAllEntity();for(let t=0;t<h.length;++t)try{let e=this.getZcDbObjectId(h[t]);n.appendZcDbEntity(e)}catch(t){SF.log(t);continue}let d=jF.instance().getCurView(),u=[];d&&(u=d.mGraphicSystem.mEntitiesToBeDeleted.isNormallView),u&&u.length>0&&u.forEach((t=>{n&&n.deleteZcDbEntity(t)}));let m=t.mShareBTR.getAllShareBTR();for(let t=0;t<m.length;++t)try{let e=this.getZcDbObjectId(m[t]);n.appendZcDbEntity(e)}catch(t){SF.log(t);continue}return!0}appendIncrementalLMFData(t){if(null===this.getActiveBTR())return!1;let e=t.mEntity.getAllEntity();if(SF.log("新增实体数量:",e.length),SF.log("新增实体:",e),(new sB).getDB()){let e=jF.instance().getCurView();if(null===e)return!0;let n=e.mViewportTableRec.getViewInfo();n.mIsOverallView||(n.mViewExtends=t.mDbReader.mExtents)}return!0}regenLMFData(t){if(null===this.getActiveBTR())return!1;let e=jF.instance().getCurView();if(null===e)return!0;let n=e.mGraphicSystem;return null===n||null===n.mGsDevice||(n.mGsManager.updateOriginBaseViewAfterRegen(t),n.mGsDevice.updateViewAfterRegen(t)),!0}readFromJsonData(e){try{let n=JSON.parse(e);this.mMaxExt.set(n.extMax[0],n.extMax[1],0),this.mMinExt.set(n.extMin[0],n.extMin[1],0);let i=n.ZcDbBlockTable,r=new wJ;for(const e of i){let n=new CJ;for(const i of e.entity)try{const e=new t[i.type];e.jsonIn(i);let r=this.getZcDbObjectId(e);n.appendZcDbEntity(r)}catch(t){SF.log(t);continue}r.add(n)}this.addSymbolTable(o3.kZwDbBlockTable,r);let a=n.ZcDbViewPortTable,o=new i3;for(const t of a){let e=new r3;e.setSymbolName(t.name);let n=e.getViewInfo();n.mViewCenter.set(t.centerPoint.x,t.centerPoint.y),n.mViewHeight=t.viewHeight,n.mViewWidth=t.viewWidth,n.mLensLength=t.lensLength,o.add(e)}this.addSymbolTable(o3.kZwDbViewTable,o)}catch(t){SF.log(t)}return!0}readFromDisplayData(t){return!0}readFromStreamData(t){return!1}getBTRByHandle(t){if(!this.mSymboleTables.has(o3.kZwDbBlockTable))return null;let e=this.mSymboleTables.get(o3.kZwDbBlockTable);if(null==e)return null;let n=e.itemCount();for(let i=0;i<n;++i){let n=e.getAt(i);if(n&&n.mHandle===t)return n}return null}getModelSpaceTableRecord(){if(!this.mSymboleTables.has(o3.kZwDbBlockTable))return null;let t=this.mSymboleTables.get(o3.kZwDbBlockTable);if(null==t)return null;let e=this.mLayoutInfo.filter((t=>!0===t.mIsModelSpace))[0];if(null==e)return null;let n=t.getAtHandle(e.mPaperSpaceId);return null!=n?n:null}getAllSpaceTableRecord(){if(!this.mSymboleTables.has(o3.kZwDbBlockTable))return[];let t=this.mSymboleTables.get(o3.kZwDbBlockTable);if(null==t)return[];let e=[];return this.mLayoutInfo.forEach((n=>{if(t){let i=t.getAtHandle(n.mPaperSpaceId);null!=i&&e.push(i)}})),e}extMin(){return this.mMinExt}extMax(){return this.mMaxExt}setActiveBTR(t){this.mActiveBtr=t}getActiveBTR(){return this.mActiveBtr}getDashArray(t){return this.mLinetypeTables[t]}getTextStyle(){return this.mTextStyle}isPaperSpaceActive(){if(null===this.mActiveBtr||!this.mSymboleTables.has(o3.kZwDbBlockTable)||null===this.mSymboleTables.get(o3.kZwDbBlockTable))return!1;let t=this.mLayoutInfo.filter((t=>{var e;return t.mPaperSpaceId===(null===(e=this.mActiveBtr)||void 0===e?void 0:e.mHandle)}))[0];return!(t&&t.mIsModelSpace)}getLayoutPaperId(t){for(let e in this.mLayoutInfo)if(this.mLayoutInfo[e].handleId===t)return this.mLayoutInfo[e].mPaperSpaceId;return BigInt(0)}getLayoutName(t){for(let e in this.mLayoutInfo)if(this.mLayoutInfo[e].mPaperSpaceId===t)return this.mLayoutInfo[e].mLayoutName;return""}getCurLayout(){return this.mCurLayout}updateLayerColor(){let t=this.getSymbolTable(o3.kZwDbLayerTable),e=t.itemCount();for(let n=0;n<e;++n){let e=t.getAt(n).getLayerInfo();e.mRealColor=uJ(e.mColor)}}clear(){this.mCurLayout=null,this.mLayoutInfo=new Array,this.mActiveBtr=null,this.mSymboleTables=new Map,this.mLinetypeTables={},this.mTextStyle=new Uint8Array}getAllLayoutInfo(){return this.mLayoutInfo}}function l3(t,e,n=50){return function(...i){const r=t.call(e,...i);if("GeneratorFunction"===t.constructor.name){let t;return new Promise(function(){var e=jR((function*(e,a){try{const o=performance.now();do{t=r.next(yield null==t?void 0:t.value)}while(!t.done&&performance.now()-o<n);if(t.done)return e(t.value);setTimeout((()=>i(e,a)))}catch(t){a(t)}}));function i(t,n){return e.apply(this,arguments)}return i}())}return r()}}s3._instance=new s3;class c3 extends xJ{constructor(){super(),this.mOffset=0,this.mSharedBTRViewIndex=new Array,this.mSharedBlockTraits=new Map}jsonIn(t,e,n,i){}worldDraw(t){return!0}}class h3{constructor(){this.handleId=BigInt(0),this.mLayoutName="",this.mIsModelSpace=!1,this.mPaperSpaceId=BigInt(0),this.m_plotLayoutFlags=0,this.m_dLeftMarin=0,this.m_dBottomMarin=0,this.m_dRightMarin=0,this.m_dTopMarin=0,this.m_plotRotation=0,this.m_dRealWorldUnits=1,this.m_dDrawingUnits=1,this.m_dPaperWidth=0,this.m_dPaperHeight=0,this.m_plotPaperUnits=0,this.m_dScaleFactor=1,this.m_OriginX=0,this.m_OriginY=0,this.m_LimitMin=new oB,this.m_LimitMax=new oB,this.m_PaperImageOriginX=0,this.m_PaperImageOriginY=0}}class d3{constructor(){this.mLength=0,this.mShapeScale=0,this.mShapeRotation=0,this.mFlags=0,this.mShapeNumber=0,this.mShapeOffsetX=0,this.mShapeOffsetY=0,this.mTextString="",this.mStyleId=0}}var u3,m3,p3=((m3=p3||(p3={}))[m3[void 0]=0]="undefined",m3[m3.PolygonWidthBegin=1]="PolygonWidthBegin",m3[m3.PolygonWidthEnd=2]="PolygonWidthEnd",m3[m3.ResetDefaultAttr=3]="ResetDefaultAttr",m3[m3.ColorIndex8=4]="ColorIndex8",m3[m3.ColorIndex16=5]="ColorIndex16",m3[m3.ColorRGBA32=6]="ColorRGBA32",m3[m3.FillMode=7]="FillMode",m3[m3.Lineweight=8]="Lineweight",m3[m3.LinePattern=9]="LinePattern",m3[m3.PlotStyle=10]="PlotStyle",m3[m3.SelectionGeom=11]="SelectionGeom",m3[m3.DrawFlag=12]="DrawFlag",m3[m3.Transparency=13]="Transparency",m3[m3.DrawClipBoundary=14]="DrawClipBoundary",m3[m3.RefAttribute=15]="RefAttribute",m3[m3.SharedFlag=16]="SharedFlag",m3[m3.ArrayItemBegin=17]="ArrayItemBegin",m3[m3.ArrayItemEnd=18]="ArrayItemEnd",m3[m3.PushTransform=19]="PushTransform",m3[m3.PopTransform=20]="PopTransform",m3[m3.SharedNodeId=21]="SharedNodeId",m3[m3.Xref=22]="Xref",m3[m3.GrayStart=23]="GrayStart",m3[m3.GrayEnd=24]="GrayEnd",m3[m3.Polyline2d=101]="Polyline2d",m3[m3.ExtentsPolyline2d=102]="ExtentsPolyline2d",m3[m3.Polyline3d=103]="Polyline3d",m3[m3.LineStrips2d=104]="LineStrips2d",m3[m3.RawLineStrips2d=105]="RawLineStrips2d",m3[m3.LineStrips3d=106]="LineStrips3d",m3[m3.RawLineStrips3d=107]="RawLineStrips3d",m3[m3.RawPolyline2d=108]="RawPolyline2d",m3[m3.ExtentsRawPolyline2d=109]="ExtentsRawPolyline2d",m3[m3.RawPolyline3d=110]="RawPolyline3d",m3[m3.ShadedRawPolyline3d=111]="ShadedRawPolyline3d",m3[m3.SilhouetteRawPolyline3d=112]="SilhouetteRawPolyline3d",m3[m3.Polytriangle2d=113]="Polytriangle2d",m3[m3.Polytriangle3d=114]="Polytriangle3d",m3[m3.ShadedPolytriangle3d=115]="ShadedPolytriangle3d",m3[m3.ColorizedPolytriangle2d=116]="ColorizedPolytriangle2d",m3[m3.ColorizedPolytriangle3d=117]="ColorizedPolytriangle3d",m3[m3.ShadedColorizedPolytriangle3d=118]="ShadedColorizedPolytriangle3d",m3[m3.Polygon2d=119]="Polygon2d",m3[m3.ExtentsPolygon2d=120]="ExtentsPolygon2d",m3[m3.WipeOutPolygon2d=121]="WipeOutPolygon2d",m3[m3.Polygon3d=122]="Polygon3d",m3[m3.WipeOutPolygon3d=123]="WipeOutPolygon3d",m3[m3.PolyPolygon2d=124]="PolyPolygon2d",m3[m3.PolyPolygon3d=125]="PolyPolygon3d",m3[m3.CircularArc2d=126]="CircularArc2d",m3[m3.CircularArc3d=127]="CircularArc3d",m3[m3.EllipticalArc2d=128]="EllipticalArc2d",m3[m3.EllipticalArc3d=129]="EllipticalArc3d",m3[m3.Image2d=130]="Image2d",m3[m3.Text2d=131]="Text2d",m3[m3.Text3d=132]="Text3d",m3[m3.Hatch2d=133]="Hatch2d",m3[m3.Hatch3d=134]="Hatch3d",m3[m3.OwnerDrawObject=135]="OwnerDrawObject",m3[m3.OwnerUnderlay=136]="OwnerUnderlay",m3[m3.RasterImage=137]="RasterImage",m3[m3.Ray=138]="Ray",m3[m3.XLine=139]="XLine",m3[m3.LtPolyline=140]="LtPolyline",p3),g3=((u3=g3||(g3={}))[u3.kLMFZERO=0]="kLMFZERO",u3[u3.kLMFONE=1]="kLMFONE",u3[u3.kLMFONENegative=2]="kLMFONENegative",u3[u3.kLMFTRUE=3]="kLMFTRUE",u3[u3.kLMFFALSE=4]="kLMFFALSE",u3[u3.kLMFSTRING=5]="kLMFSTRING",u3[u3.kLMFUNDEFINED=6]="kLMFUNDEFINED",g3);let f3=function(t,e){if(null==t){let t=0;switch(e){case g3.kLMFZERO:t=0;break;case g3.kLMFONE:t=1;break;case g3.kLMFFALSE:t=!1;break;case g3.kLMFTRUE:t=!0;break;case g3.kLMFSTRING:t=""}return SF.logError("Some data is empty, please check data!",SF.errorStatus.readerError),t}return t};class b3{constructor(){this.mBytes=0,this.mZcGsPrimitiveCollector=new LV,this.mXrefHandleIds=new Array,this.mImageUrls=new Array,this.mIsReadingXref=!1}getPrimitive(t){this.mBytes=0;let e=t.readByte();this.mBytes+=1;let n=null;switch(e){case p3.ResetDefaultAttr:n=new HB(RB.RESTATTR);break;case p3.PolygonWidthEnd:n=new HB(RB.POLYGONWIDTHEND);break;case p3.ArrayItemEnd:n=new HB(RB.ARRAYITEMEND);break;case p3.PopTransform:n=new HB(RB.POPTRANSFORM);break;case p3.ColorIndex8:n=new GB(RB.COLORINDEX8),n.mColorIndex=f3(t.readByte(),g3.kLMFONENegative),this.mBytes+=1;break;case p3.ColorIndex16:n=new ZB(RB.COLORINDEX16),n.mColorIndex=f3(t.readShort(),g3.kLMFONENegative),this.mBytes+=2;break;case p3.ColorRGBA32:n=new UB(RB.COLORRGBA32),n.mColor=f3(t.readUInt(),g3.kLMFONENegative),this.mBytes+=4;break;case p3.FillMode:n=new XB(RB.FILLMODE),n.mFillMode=f3(t.readByte(),g3.kLMFONE),this.mBytes+=1;break;case p3.Lineweight:n=new qB(RB.LINEWEIGHT),n.mLineweight=f3(t.readInt(),g3.kLMFONENegative),this.mBytes+=4;break;case p3.LinePattern:n=new $B(RB.LINEPATTERN),n.mEnumflags=f3(t.readInt(),g3.kLMFZERO),this.mBytes+=4;break;case p3.PlotStyle:n=new JB(RB.PLOTSTYLE),n.mBDirect=f3(t.readBoolean(),g3.kLMFFALSE),this.mBytes+=1;break;case p3.SelectionGeom:n=new QB(RB.SELECTIONGEOM),n.mBSelectionGeom=f3(t.readBoolean(),g3.kLMFTRUE),n.mBDrawSelectionGeomHL=f3(t.readBoolean(),g3.kLMFTRUE),this.mBytes+=2;break;case p3.DrawFlag:n=new $B(RB.DRAWFLAG),n.mEnumflags=f3(t.readInt(),g3.kLMFZERO),this.mBytes+=4;break;case p3.Transparency:n=new tV(RB.TRANSPARENCY),n.mTrans=f3(t.readFloat(),g3.kLMFZERO),this.mBytes+=4;break;case p3.RefAttribute:n=new KB(RB.ATTRIBUTEREFERENCE),n.mReference=f3(t.readUnit64(),g3.kLMFZERO),n.mAttrFlags=f3(t.readByte(),g3.kLMFZERO),this.mBytes+=9;break;case p3.PolygonWidthBegin:n=new eV(RB.POLYGONWIDTHBEGIN),n.mMaxWidth=f3(t.readFloat(),g3.kLMFZERO),this.mBytes+=4;break;case p3.DrawClipBoundary:n=new nV(RB.DRAWCLIPBOUNDARY),n.mDrawFlag=f3(t.readBoolean(),g3.kLMFFALSE),this.mBytes+=1;break;case p3.SharedFlag:n=new WB(RB.SHAREDFLAG),n.mBegin=f3(t.readBoolean(),g3.kLMFFALSE),this.mBytes+=1;break;case p3.ArrayItemBegin:n=new iV(RB.ARRAYITEMBEGIN),n.mRowNum=f3(t.readInt(),g3.kLMFZERO),n.mColumnNum=f3(t.readInt(),g3.kLMFZERO),n.mRawOffset.mX=f3(t.readDouble(),g3.kLMFZERO),n.mRawOffset.mY=f3(t.readDouble(),g3.kLMFZERO),n.mRawOffset.mZ=f3(t.readDouble(),g3.kLMFZERO),n.mColumnOffset.mX=f3(t.readDouble(),g3.kLMFZERO),n.mColumnOffset.mY=f3(t.readDouble(),g3.kLMFZERO),n.mColumnOffset.mZ=f3(t.readDouble(),g3.kLMFZERO),this.mBytes+=56;break;case p3.PushTransform:n=new rV(RB.PUSHTRANSFORM);let i=[];for(let e=0;e<4;e++)for(let n=0;n<4;n++)i.push({row:e,col:n,value:f3(t.readDouble(),g3.kLMFZERO)});n.mMatrix.setEntryRanks(i),this.mBytes+=128;break;case p3.SharedNodeId:n=new YB(RB.SHAREDNODEID),n.mHandle=f3(t.readUnit64(),g3.kLMFUNDEFINED),n.mViewIndex=f3(t.readUInt(),g3.kLMFUNDEFINED),n.mBlockIndex=f3(t.readUInt(),g3.kLMFUNDEFINED),this.mBytes+=16;break;case p3.Xref:n=new jB(RB.XREF),n.mHandle=f3(t.readUnit64(),g3.kLMFUNDEFINED),this.mXrefHandleIds.includes(n.mHandle)||this.mXrefHandleIds.push(n.mHandle),this.mBytes+=8;break;case p3.GrayStart:n=new HB(RB.GRAYSTART);break;case p3.GrayEnd:n=new HB(RB.GRAYEND);break;case p3.RawLineStrips3d:n=this.saveLineSegmentToBuffer(t,RB.RAWLINESTRIPS3D);break;case p3.RawPolyline3d:n=this.savePointsToBuffer(t,RB.RAWPOLYLINE3D);break;case p3.Polyline3d:n=this.savePointsToBuffer(t,RB.POLYLINE3D);break;case p3.LineStrips3d:n=this.saveLineSegmentToBuffer(t,RB.LINESTRIPS3D);break;case p3.SilhouetteRawPolyline3d:n=this.savePointsToBuffer(t,RB.SILHOUETTERAWPOLYLINE3D);break;case p3.ShadedRawPolyline3d:n=this.savePointsToBuffer(t,RB.SHADEDRAWPOLYLINE3D);break;case p3.Polytriangle3d:n=this.saveTriangleToBuffer(t,RB.POLYTRIANGLE3D);break;case p3.ShadedPolytriangle3d:n=this.saveTriangleToBuffer(t,RB.SHADEDPOLYTRIANGLE3D);break;case p3.ColorizedPolytriangle3d:n=this.saveTriangleToBuffer(t,RB.COLORIZEDPOLYTRIANGLE3D);break;case p3.ShadedColorizedPolytriangle3d:n=this.saveTriangleToBuffer(t,RB.SHADEDCOLORIZEDPOLYTRIANGLE3D);break;case p3.Polygon3d:n=this.savePointsToBuffer(t,RB.POLYGON3D);break;case p3.WipeOutPolygon3d:n=this.savePointsToBuffer(t,RB.WIPEOUTPOLYGON3D);break;case p3.PolyPolygon3d:n=this.savePolyPolygon3dToBuffer(t,RB.POLYPOLYGON3D);break;case p3.CircularArc3d:n=new aV(RB.CIRCULARARC3D),n.mCenter.mX=f3(t.readDouble(),g3.kLMFZERO),n.mCenter.mY=f3(t.readDouble(),g3.kLMFZERO),n.mCenter.mZ=f3(t.readDouble(),g3.kLMFZERO),n.mRadius=f3(t.readDouble(),g3.kLMFZERO),n.mStartAngle.mX=f3(t.readDouble(),g3.kLMFZERO),n.mStartAngle.mY=f3(t.readDouble(),g3.kLMFZERO),n.mStartAngle.mZ=f3(t.readDouble(),g3.kLMFZERO),n.mSweepAngle=f3(t.readDouble(),g3.kLMFZERO),n.mArcType=f3(t.readByte(),g3.kLMFONENegative),n.mNormals.mX=f3(t.readDouble(),g3.kLMFZERO),n.mNormals.mY=f3(t.readDouble(),g3.kLMFZERO),n.mNormals.mZ=f3(t.readDouble(),g3.kLMFZERO),this.mBytes+=89;break;case p3.EllipticalArc3d:n=new oV(RB.ELLIPTICALARC3D),n.mCenter.mX=f3(t.readDouble(),g3.kLMFZERO),n.mCenter.mY=f3(t.readDouble(),g3.kLMFZERO),n.mCenter.mZ=f3(t.readDouble(),g3.kLMFZERO),n.mMajorAxis.mX=f3(t.readDouble(),g3.kLMFZERO),n.mMajorAxis.mY=f3(t.readDouble(),g3.kLMFZERO),n.mMajorAxis.mZ=f3(t.readDouble(),g3.kLMFZERO),n.mMinorAxis.mX=f3(t.readDouble(),g3.kLMFZERO),n.mMinorAxis.mY=f3(t.readDouble(),g3.kLMFZERO),n.mMinorAxis.mZ=f3(t.readDouble(),g3.kLMFZERO),n.mMajorAxisLength=f3(t.readDouble(),g3.kLMFZERO),n.mMinorAxisLength=f3(t.readDouble(),g3.kLMFZERO),n.mStartAngle=f3(t.readDouble(),g3.kLMFZERO),n.mEndAngle=f3(t.readDouble(),g3.kLMFZERO),n.mArcType=f3(t.readByte(),g3.kLMFONENegative),this.mBytes+=105;break;case p3.Text3d:let r=this.readText3dProperties(t);this.mZcGsPrimitiveCollector.addPrimitiveText3d(RB.TEXT3D,4,r),null!=this.mZcGsPrimitiveCollector&&(n=this.mZcGsPrimitiveCollector.mPrimitives[this.mZcGsPrimitiveCollector.mPrimitives.length-1]);break;case p3.Hatch3d:let a=f3(t.readUInt(),g3.kLMFZERO),o=new Array;for(let e=0;e<a;e++){let e=f3(t.readDouble(),g3.kLMFZERO),n=f3(t.readDouble(),g3.kLMFZERO),i=f3(t.readDouble(),g3.kLMFZERO);this.mZcGsPrimitiveCollector.getBufferPoint().push(e,n,i);let r=new QR(e,n,i);o.push(r)}this.mBytes+=4+8*a*3;let s=f3(t.readUInt(),g3.kLMFZERO),l=new Array;for(let e=0;e<s;e++){const e=f3(t.readUInt(),g3.kLMFZERO);l.push(3*e)}this.mBytes+=4+4*s;let c,h=f3(t.readUInt(),g3.kLMFZERO);if(this.mBytes+=4,h>0){c=new Array(s);for(let e=0;e<s;e++){const e=f3(t.readBoolean(),g3.kLMFFALSE);c.push(e),this.mBytes+=1}let e=new Array;for(let n=0;n<h;n++){const n=f3(t.readUInt(),g3.kLMFZERO);e.push(n),this.mBytes+=4}}const d=this.saveHatch3dTriangle(t);this.mZcGsPrimitiveCollector.addPrimitiveHatch3d(RB.HATCH3D,3*a,l,o,d),null!=this.mZcGsPrimitiveCollector&&(n=this.mZcGsPrimitiveCollector.mPrimitives[this.mZcGsPrimitiveCollector.mPrimitives.length-1]);break;case p3.RasterImage:n=this.saveRasterImageToBuffer(t,RB.RASTERIMAGE),n&&!this.mImageUrls.includes(n.mUrlPath)&&this.mImageUrls.push(n.mUrlPath);break;case p3.LtPolyline:n=new kV(RB.LTPOLYLINE),f3(t.readInt(),g3.kLMFZERO),this.mBytes+=4,n.mLk=f3(t.readByte(),g3.kLMFZERO),this.mBytes+=1,n.mNbPoints=f3(t.readInt(),g3.kLMFZERO),this.mBytes+=4;for(let e=0;e<n.mNbPoints;e++){let e=new QR;e.mX=f3(t.readDouble(),g3.kLMFZERO),e.mY=f3(t.readDouble(),g3.kLMFZERO),e.mZ=f3(t.readDouble(),g3.kLMFZERO),n.mVertexList.push(e),this.mBytes+=24}if(n.mLk==VB.kZcDrPolyline)for(let e=0;e<n.mNbPoints;e++){let e=new QR;e.mX=f3(t.readDouble(),g3.kLMFZERO),e.mY=f3(t.readDouble(),g3.kLMFZERO),e.mZ=f3(t.readDouble(),g3.kLMFZERO),n.mVertexList.push(e),this.mBytes+=24}n.mHandle=f3(t.readUnit64(),g3.kLMFZERO),this.mBytes+=8,n.mDeviation=f3(t.readDouble(),g3.kLMFZERO),this.mBytes+=8,n.mLtypeScale=f3(t.readDouble(),g3.kLMFZERO),this.mBytes+=8,n.mLBaseSubEntMarker=f3(t.readInt64(),g3.kLMFZERO),this.mBytes+=8,n.mThickness=f3(t.readDouble(),g3.kLMFZERO),this.mBytes+=8;break;case p3.Ray:case p3.XLine:n=new CV(e===p3.Ray?RB.RAY:RB.XLINE),n.mBasePoint.mX=f3(t.readDouble(),g3.kLMFZERO),n.mBasePoint.mY=f3(t.readDouble(),g3.kLMFZERO),n.mBasePoint.mZ=f3(t.readDouble(),g3.kLMFZERO),n.mUnitPoint.mX=f3(t.readDouble(),g3.kLMFZERO),n.mUnitPoint.mY=f3(t.readDouble(),g3.kLMFZERO),n.mUnitPoint.mZ=f3(t.readDouble(),g3.kLMFZERO),this.mBytes+=48}return n}saveColorArrayToBuffer(t,e){let n=this.mZcGsPrimitiveCollector.getColorBuffer();for(let i=0;i<e;i++){let e=f3(t.readUInt(),g3.kLMFONENegative);n.push(e)}}savePolyPolygon3dToBuffer(t,e){let n=f3(t.readUInt(),g3.kLMFZERO);if(n<=0)return null;this.mBytes+=4;let i=new Array(n),r=!1;for(let e=0;e<n;e++){let n=f3(t.readUInt(),g3.kLMFZERO);if(n<=0){r=!0;break}i[e]=n,this.mBytes+=4}if(r)return null;for(let e=0;e<n;e++){let n=i[e];for(let e=0;e<n;e++){let e=f3(t.readDouble(),g3.kLMFZERO),n=f3(t.readDouble(),g3.kLMFZERO),i=f3(t.readDouble(),g3.kLMFZERO);this.mZcGsPrimitiveCollector.getBufferPoint().push(e,n,i)}this.mBytes+=8*n*3}const a=i.reduce(((t,e)=>t+e));return this.mZcGsPrimitiveCollector.addPrimitivePolyPolygon(e,3*a,n,i),null!=this.mZcGsPrimitiveCollector?this.mZcGsPrimitiveCollector.mPrimitives[this.mZcGsPrimitiveCollector.mPrimitives.length-1]:null}savePointsToBuffer(t,e){let n=f3(t.readInt(),g3.kLMFZERO);if(n>0){for(let e=0;e<n;e++){let e=f3(t.readDouble(),g3.kLMFZERO),n=f3(t.readDouble(),g3.kLMFZERO),i=f3(t.readDouble(),g3.kLMFZERO);this.mZcGsPrimitiveCollector.getBufferPoint().push(e,n,i)}switch(this.mBytes+=4+8*n*3,e){case RB.POLYLINE3D:let i=f3(t.readUnit64(),g3.kLMFZERO);this.mBytes+=8,this.mZcGsPrimitiveCollector.addPrimitivePolyline3d(e,3*n,i);break;case RB.WIPEOUTPOLYGON3D:let r=f3(t.readBoolean(),g3.kLMFTRUE);this.mBytes+=1,this.mZcGsPrimitiveCollector.addPrimitiveWipeOut(e,3*n,r);break;case RB.SHADEDRAWPOLYLINE3D:let a=f3(t.readBoolean(),g3.kLMFTRUE);this.mBytes+=1,this.mZcGsPrimitiveCollector.addPrimitiveShadedRawPolyline3d(e,3*n,a);break;default:this.mZcGsPrimitiveCollector.addPrimitive(e,3*n)}}return null!=this.mZcGsPrimitiveCollector?this.mZcGsPrimitiveCollector.mPrimitives[this.mZcGsPrimitiveCollector.mPrimitives.length-1]:null}saveLineSegmentToBuffer(t,e){let n=f3(t.readInt(),g3.kLMFZERO);if(n<=0)return null;for(let e=0;e<2*n;e++){let e=f3(t.readDouble(),g3.kLMFZERO),n=f3(t.readDouble(),g3.kLMFZERO),i=f3(t.readDouble(),g3.kLMFZERO);this.mZcGsPrimitiveCollector.getBufferPoint().push(e,n,i)}if(this.mBytes+=4+2*n*8*3,e===RB.LINESTRIPS3D){let i=f3(t.readUnit64(),g3.kLMFZERO);this.mBytes+=8,this.mZcGsPrimitiveCollector.addPrimitiveLineStrips3d(e,2*n*3,n,i)}else e===RB.RAWLINESTRIPS3D&&this.mZcGsPrimitiveCollector.addPrimitiveRawLineStrips3d(e,2*n*3,n);return null!=this.mZcGsPrimitiveCollector?this.mZcGsPrimitiveCollector.mPrimitives[this.mZcGsPrimitiveCollector.mPrimitives.length-1]:null}saveRasterImageToBuffer(t,e){let n=f3(t.readDouble(),g3.kLMFZERO),i=f3(t.readDouble(),g3.kLMFZERO),r=f3(t.readDouble(),g3.kLMFZERO);this.mZcGsPrimitiveCollector.getBufferPoint().push(n,i,r);let a=new QR(n,i,r);this.mBytes+=24,n=f3(t.readDouble(),g3.kLMFZERO),i=f3(t.readDouble(),g3.kLMFZERO),r=f3(t.readDouble(),g3.kLMFZERO);let o=this.mZcGsPrimitiveCollector.getVectorBuffer();o.push(n,i,r);let s=new qR(n,i,r);n=f3(t.readDouble(),g3.kLMFZERO),i=f3(t.readDouble(),g3.kLMFZERO),r=f3(t.readDouble(),g3.kLMFZERO),o=this.mZcGsPrimitiveCollector.getVectorBuffer(),o.push(n,i,r);let l=new qR(n,i,r);this.mBytes+=48;let c=f3(t.readUInt(),g3.kLMFZERO),h=0,d=new Array(c),u=new Array(0);if(c){for(let e=0;e<c;e++){const n=f3(t.readUInt(),g3.kLMFZERO);d[e]=n,h+=n}u=new Array(h);for(let e=0;e<h;e++){let n=f3(t.readDouble(),g3.kLMFZERO),i=f3(t.readDouble(),g3.kLMFZERO),r=f3(t.readDouble(),g3.kLMFZERO);this.mZcGsPrimitiveCollector.getBufferPoint().push(n,i,r);let a=new QR(n,i,r);u[e]=a}this.mBytes+=4+4*c+24*h}let m=f3(t.readBoolean(),g3.kLMFTRUE);this.mBytes+=1;let p=f3(t.readUnit64(),g3.kLMFZERO),g=f3(t.readStringByLens(p),g3.kLMFSTRING);return this.mBytes+=8+Number(p),this.mZcGsPrimitiveCollector.addPritimiveRasterImage(e,a,s,l,d,u,m,g),null!=this.mZcGsPrimitiveCollector?this.mZcGsPrimitiveCollector.mPrimitives[this.mZcGsPrimitiveCollector.mPrimitives.length-1]:null}saveTriangleToBuffer(t,e){let n=f3(t.readInt(),g3.kLMFZERO),i=f3(t.readInt(),g3.kLMFZERO),r=new Array(i);for(let e=0;e<i;e++){const n=f3(t.readInt(),g3.kLMFZERO);r[e]=n}for(let e=0;e<n;e++){let e=f3(t.readDouble(),g3.kLMFZERO),n=f3(t.readDouble(),g3.kLMFZERO),i=f3(t.readDouble(),g3.kLMFZERO);this.mZcGsPrimitiveCollector.getBufferPoint().push(e,n,i)}for(let e=0;e<n;e++){let e=f3(t.readDouble(),g3.kLMFZERO),n=f3(t.readDouble(),g3.kLMFZERO),i=f3(t.readDouble(),g3.kLMFZERO);this.mZcGsPrimitiveCollector.getVectorBuffer().push(e,n,i)}this.mBytes+=8+4*i+8*n*3*2;let a=f3(t.readBoolean(),g3.kLMFTRUE);this.mBytes+=1;let o,s=!1;e===RB.SHADEDPOLYTRIANGLE3D?(o=f3(t.readBoolean(),g3.kLMFTRUE),this.mBytes+=1):(e===RB.COLORIZEDPOLYTRIANGLE3D||e===RB.SHADEDCOLORIZEDPOLYTRIANGLE3D)&&(s=!0,this.saveColorArrayToBuffer(t,n),this.mBytes+=4*n);let l=new Array(i),c=new Array(i),h=s?new Array(i):void 0,d=this.mZcGsPrimitiveCollector.getBufferPoint().length-3*n,u=this.mZcGsPrimitiveCollector.getVectorBuffer().length-3*n,m=s?this.mZcGsPrimitiveCollector.getColorBuffer().length-n:void 0;for(let t=0;t<i;t++){const e=r[t];l[t]=d+3*e,c[t]=u+3*e,s&&void 0!==h&&void 0!==m&&(h[t]=m+e)}return this.mZcGsPrimitiveCollector.addPritimivePolytriangle(e,3*n,l,c,a,h,o),null!=this.mZcGsPrimitiveCollector?this.mZcGsPrimitiveCollector.mPrimitives[this.mZcGsPrimitiveCollector.mPrimitives.length-1]:null}saveHatch3dTriangle(t){let e=f3(t.readInt(),g3.kLMFZERO),n=f3(t.readInt(),g3.kLMFZERO),i=new Array(n).fill(0);for(let e=0;e<n;e++){const n=f3(t.readInt(),g3.kLMFZERO);i[e]=n}for(let n=0;n<e;n++){let e=f3(t.readDouble(),g3.kLMFZERO),n=f3(t.readDouble(),g3.kLMFZERO),i=f3(t.readDouble(),g3.kLMFZERO);this.mZcGsPrimitiveCollector.getBufferPoint().push(e,n,i)}this.mBytes+=8+4*n+8*e*3;let r=f3(t.readBoolean(),g3.kLMFTRUE);this.mBytes+=1,this.saveColorArrayToBuffer(t,e),this.mBytes+=4*e;let a=new Array(n),o=new Array(n),s=this.mZcGsPrimitiveCollector.getBufferPoint().length-3*e,l=this.mZcGsPrimitiveCollector.getColorBuffer().length-e;for(let t=0;t<n;t++){const e=i[t];a[t]=s+3*e,o[t]=l+e}return this.mZcGsPrimitiveCollector.addPritimivePolytriangle(RB.COLORIZEDPOLYTRIANGLE3D,3*e,a,[],r,o)}readText3dProperties(t){let e={textPt:new QR,textDir:new qR(1,0,0),textVerDir:new qR(0,1,0),boundBox:{max:[0,0],min:[0,0]},textHeight:50,textWidth:50,xScale:1,obliquingAngle:0,content:"",textNumber:10,flags:[],textStyle:{fontSize:255,fontFamily:"宋体",fontHeight:50,fontAbove:10,fontAverageWidth:10,fontAscent:0,fontWeight:400,fontItalic:0},trackingPercent:20,charset:134,renderMode:0,raw:0,underline:0,backward:0,upsidedown:0,vertical:0,overlined:0,strikethrough:0};e.textPt.mX=f3(t.readDouble(),g3.kLMFZERO),e.textPt.mY=f3(t.readDouble(),g3.kLMFZERO),e.textPt.mZ=f3(t.readDouble(),g3.kLMFZERO),e.textDir.mX=f3(t.readDouble(),g3.kLMFZERO),e.textDir.mY=f3(t.readDouble(),g3.kLMFZERO),e.textDir.mZ=f3(t.readDouble(),g3.kLMFZERO),e.textVerDir.mX=f3(t.readDouble(),g3.kLMFZERO),e.textVerDir.mY=f3(t.readDouble(),g3.kLMFZERO),e.textVerDir.mZ=f3(t.readDouble(),g3.kLMFZERO),this.mBytes+=72;let n=f3(t.readDouble(),g3.kLMFZERO),i=f3(t.readDouble(),g3.kLMFZERO),r=f3(t.readDouble(),g3.kLMFZERO),a=f3(t.readDouble(),g3.kLMFZERO);e.boundBox.min[0]=n,e.boundBox.min[1]=i,e.boundBox.max[0]=r,e.boundBox.max[1]=a,this.mBytes+=32,e.textHeight=f3(t.readDouble(),g3.kLMFZERO),e.textWidth=f3(t.readDouble(),g3.kLMFZERO),e.xScale=f3(t.readDouble(),g3.kLMFZERO),e.obliquingAngle=f3(t.readDouble(),g3.kLMFZERO),e.textStyle.fontSize=f3(t.readDouble(),g3.kLMFZERO),this.mBytes+=40;let o=f3(t.readUnit64(),g3.kLMFZERO);e.content=f3(t.readStringByLens(o),g3.kLMFSTRING),this.mBytes+=8+parseInt(o);let s=f3(t.readUnit64(),g3.kLMFZERO);e.textStyle.fontFamily=f3(t.readStringByLens(s),g3.kLMFSTRING),this.mBytes+=8+parseInt(s),e.textNumber=f3(t.readUInt(),g3.kLMFZERO),this.mBytes+=4;let l=f3(t.readBoolean(),g3.kLMFFALSE);if(this.mBytes+=1,l&&e.textNumber>0){e.flags=new Array(e.textNumber);for(let n=0;n<e.textNumber;n++){const i=f3(t.readByte(),g3.kLMFZERO);this.mBytes+=1,e.flags[n]=i}}return e.textStyle.fontHeight=f3(t.readDouble(),g3.kLMFZERO),e.textStyle.fontAbove=f3(t.readDouble(),g3.kLMFZERO),e.textStyle.fontAverageWidth=f3(t.readDouble(),g3.kLMFZERO),e.textStyle.fontAscent=f3(t.readDouble(),g3.kLMFZERO),this.mBytes+=32,e.trackingPercent=f3(t.readDouble(),g3.kLMFZERO),this.mBytes+=8,e.textStyle.fontWeight=f3(t.readUInt(),g3.kLMFZERO),this.mBytes+=4,e.charset=f3(t.readUInt(),g3.kLMFZERO),e.renderMode=f3(t.readUInt(),g3.kLMFZERO),this.mBytes+=8,e.raw=f3(t.readByte(),g3.kLMFZERO),e.textStyle.fontItalic=f3(t.readByte(),g3.kLMFZERO),e.underline=f3(t.readByte(),g3.kLMFZERO),e.backward=f3(t.readByte(),g3.kLMFZERO),e.upsidedown=f3(t.readByte(),g3.kLMFZERO),e.vertical=f3(t.readByte(),g3.kLMFZERO),e.overlined=f3(t.readByte(),g3.kLMFZERO),e.strikethrough=f3(t.readByte(),g3.kLMFZERO),this.mBytes+=8,e}}var y3,v3,w3,x3,C3=((x3=C3||(C3={}))[x3.eMajorVersion0=0]="eMajorVersion0",x3[x3.eMajorVersion1=1]="eMajorVersion1",x3[x3.eLatestMajorVersion=1]="eLatestMajorVersion",x3[x3.eCurMajorVersion=1]="eCurMajorVersion",C3),k3=((w3=k3||(k3={}))[w3.eMinorVersion0=0]="eMinorVersion0",w3[w3.eMinorVersion1=1]="eMinorVersion1",w3[w3.eMinorVersion2=2]="eMinorVersion2",w3[w3.eMinorVersion3=3]="eMinorVersion3",w3[w3.eMinorVersion4=4]="eMinorVersion4",w3[w3.eMinorVersion5=5]="eMinorVersion5",w3[w3.eMinorVersion6=6]="eMinorVersion6",w3[w3.eMinorVersion7=7]="eMinorVersion7",w3[w3.eMinorVersion8=8]="eMinorVersion8",w3[w3.eMinorVersion9=9]="eMinorVersion9",w3[w3.eLatestMinorVersion=0]="eLatestMinorVersion",w3[w3.eCurMinorVersion=0]="eCurMinorVersion",k3),S3=((v3=S3||(S3={}))[v3.kLMFHeader=0]="kLMFHeader",v3[v3.kLMFLayer=1]="kLMFLayer",v3[v3.kLMFLayerData=2]="kLMFLayerData",v3[v3.kLMFShareBTR=3]="kLMFShareBTR",v3[v3.kLMFShareBTRData=4]="kLMFShareBTRData",v3[v3.kLMFEntity=5]="kLMFEntity",v3[v3.kLMFEntityData=6]="kLMFEntityData",v3[v3.kLMFView=7]="kLMFView",v3[v3.kLMFViewData=8]="kLMFViewData",v3[v3.kLMFDatabase=9]="kLMFDatabase",v3[v3.KLMFLayoutData=10]="KLMFLayoutData",v3[v3.KLMFAlternateFont=11]="KLMFAlternateFont",v3[v3.KLMFLinetype=12]="KLMFLinetype",v3[v3.KLMFTextStyle=13]="KLMFTextStyle",v3[v3.kLMFSectionCount=14]="kLMFSectionCount",S3),P3=((y3=P3||(P3={}))[y3.kLMFZERO=0]="kLMFZERO",y3[y3.kLMFONE=1]="kLMFONE",y3[y3.kLMFTRUE=2]="kLMFTRUE",y3[y3.kLMFFALSE=3]="kLMFFALSE",y3[y3.kLMFSTRING=4]="kLMFSTRING",y3[y3.kLMFUNDEFINED=5]="kLMFUNDEFINED",P3);class _3{constructor(){this.mPrimitiveEvaluator=null}readBlobData(t,e){return!1}safeReadLength(t){let e=t.readUInt();return null==e||(4294967295===e&&(e=0),e>t.totalByteLength())?null:e}}class M3 extends _3{constructor(){super(...arguments),this.sectionOffset=new Map}readBlobData(t){for(let e=S3.kLMFLayer;e<S3.kLMFSectionCount;++e){let n=this.safeReadLength(t);if(null==n)return!1;this.sectionOffset.set(e,n)}return!0}getSectionOffset(t){if(this.sectionOffset.has(t))return this.sectionOffset.get(t)}}class D3 extends _3{constructor(){super(...arguments),this.mExtents=new NU,this.mExtentsOverallView=new NU,this.mLimmin=new oB,this.mLimmax=new oB}readBlobData(t){if(0===this.safeReadLength(t))return!1;let e=f3(t.readDouble(),P3.kLMFZERO),n=f3(t.readDouble(),P3.kLMFZERO),i=f3(t.readDouble(),P3.kLMFZERO);return this.mExtents.mMin.set(e,n,i),e=f3(t.readDouble(),P3.kLMFZERO),n=f3(t.readDouble(),P3.kLMFZERO),i=f3(t.readDouble(),P3.kLMFZERO),this.mExtents.mMax.set(e,n,i),t.byVersion(C3.eMajorVersion0,k3.eMinorVersion8)&&(e=f3(t.readDouble(),P3.kLMFZERO),n=f3(t.readDouble(),P3.kLMFZERO),i=f3(t.readDouble(),P3.kLMFZERO),this.mExtentsOverallView.mMin.set(e,n,i),e=f3(t.readDouble(),P3.kLMFZERO),n=f3(t.readDouble(),P3.kLMFZERO),i=f3(t.readDouble(),P3.kLMFZERO),this.mExtentsOverallView.mMax.set(e,n,i),e=f3(t.readDouble(),P3.kLMFZERO),n=f3(t.readDouble(),P3.kLMFZERO),this.mLimmin.set(e,n),e=f3(t.readDouble(),P3.kLMFZERO),n=f3(t.readDouble(),P3.kLMFZERO),this.mLimmax.set(e,n)),!0}}class E3 extends _3{constructor(){super(...arguments),this.mBoundingBoxJudge=!0,this.mViewExtends=new Map,this.mEntity=new Array,this.mBtrRecords=null,this.mViewData=null,this.mPrimitiveAmount=0}*readBlobData(t){if(null==this.safeReadLength(t))return!1;let e=f3(t.readUnit64(),P3.kLMFZERO);if(e<0)return!1;if(e===BigInt(0))return!0;this.mEntity=new Array(e);for(let n=0;n<e;n++){let e=new MB;e.mHandle=f3(t.readUnit64(),P3.kLMFZERO),e.mOwnerHandle=f3(t.readUnit64(),P3.kLMFZERO),e.mLayerHandle=f3(t.readUnit64(),P3.kLMFZERO),f3(t.readUInt(),P3.kLMFZERO),this.mEntity[n]=e,yield}return!0}setBtrData(t){this.mBtrRecords=t}setViewData(t){this.mViewData=t,this.mViewData.forEach((t=>{t.mIsOverallView&&this.mViewExtends.set(t.mViewportNum,t.mViewExtends)}))}*readEntityDisplayData(t){let e=this.safeReadLength(t);if(null===e)return!1;if(0===e)return!0;let n=!0;for(let e=0;e<this.mEntity.length;e++){const i=this.mEntity[e];if(null==this.safeReadLength(t)){n=!1;break}let r=1,a=[];if(f3(t.readBoolean(),P3.kLMFFALSE)){r=f3(t.readUInt(),P3.kLMFZERO);let e=new Array(r);for(let n=0;n<r;n++)e[n]=f3(t.readUInt(),P3.kLMFZERO);let n=new Array(r);for(let e=0;e<r;e++)n[e]=f3(t.readUInt(),P3.kLMFZERO);a=new Array(r);for(let t=0;t<r;t++)a[t]=e[t]}else{let e=f3(t.readUInt(),P3.kLMFZERO);a.push(e)}for(let e=0;e<r;e++){let r=this.safeReadLength(t);if(null==r){n=!1;break}let o=this.readPrimitiveData(t,r);if(null==o){n=!1;break}this.mPrimitiveAmount+=o.length;let s=new NU,l=new Array,c=new JR;l.push(c);let h=null;this.mPrimitiveEvaluator&&this.mPrimitiveEvaluator.mZcGsPrimitiveCollector&&(h=this.mPrimitiveEvaluator.mZcGsPrimitiveCollector.mPtBuffer),null!=h&&(this.mBoundingBoxJudge=!0,this.procPrimitives(h,o,s,c,l),i.mBoundingBoxJudge=this.mBoundingBoxJudge),i.mExterndsData.set(a[e],s),i.mPrimitivesData.set(a[e],o);let d=this.mViewExtends.get(a[e]);null!=d&&d.addExt(s),yield}if(!n)break}return!!n&&(this.mPrimitiveEvaluator&&(this.mPrimitiveEvaluator.mIsReadingXref?this.mPrimitiveEvaluator.mIsReadingXref=!1:this.mPrimitiveEvaluator.mXrefHandleIds.forEach((t=>{for(let e=0;e<this.mEntity.length;e++)t===this.mEntity[e].mHandle&&this.mEntity.splice(e,1)}))),!0)}procPrimitives(t,e,n,i,r){let a=new QR;for(let o=0;o<e.length;++o){let s=e[o];switch(s.type){case RB.PUSHTRANSFORM:{let t=new JR;t.copy(i),t.mul(s.mMatrix),r.push(t),i=t}break;case RB.POPTRANSFORM:r.pop(),i=r[r.length-1];break;case RB.SHAREDNODEID:{if(null==this.mBtrRecords)break;let e=s;if(null!=e.mHandle&&null!=e.mBlockIndex&&null!=e.mViewIndex){let a=this.mBtrRecords.find((t=>t.mHandle==e.mHandle));if(null==a)break;let o=a;if(null!=o){let a=o.mSharedBlockTraits.get(e.mViewIndex);if(null!=a){let o=a.get(e.mBlockIndex);null!=o&&this.procPrimitives(t,o,n,i,r)}}}}break;default:if(s.type<RB.RESTATTR)if(s.type===RB.XLINE||s.type===RB.RAY)this.mBoundingBoxJudge=!1;else if(s.type===RB.TEXT3D){let t=s,e=t.mTextProperties.textPt,o=t.mTextProperties.boundBox.min,l=t.mTextProperties.boundBox.max,c=new qR;c.copy(t.mTextProperties.textDir);let h=new qR;h.copy(t.mTextProperties.textVerDir),c.normalize(),c.mul(t.mTextProperties.xScale),h.normalize();let d=new JR;d.setCoordSystem(e,c,h,new qR(0,0,1));let u=new JR,m=[];t.mTextProperties.upsidedown&&m.push({row:1,col:1,value:-1}),t.mTextProperties.backward&&m.push({row:0,col:0,value:-1}),m.push({row:0,col:1,value:Math.tan(t.mTextProperties.obliquingAngle)}),u.setEntryRanks(m),d.mul(u),a.set(o[0],o[1],0),a.mulMatrix(d),r.length>1&&a.mulMatrix(i),n.addPoint(a),a.set(o[0],l[1],0),a.mulMatrix(d),r.length>1&&a.mulMatrix(i),n.addPoint(a),a.set(l[0],o[1],0),a.mulMatrix(d),r.length>1&&a.mulMatrix(i),n.addPoint(a),a.set(l[0],l[1],0),a.mulMatrix(d),r.length>1&&a.mulMatrix(i),n.addPoint(a)}else{let e=s.getPtCount(),o=s.start;for(let s=0;s<e;s++)a.set(t[o],t[o+1],t[o+2]),o+=3,r.length>1&&a.mulMatrix(i),n.addPoint(a)}}}}readPrimitiveData(t,e){if(null==this.mPrimitiveEvaluator)return null;try{let n=new Array;for(;e>0;){let i=this.mPrimitiveEvaluator.getPrimitive(t);if(null===i)break;n.push(i),e-=this.mPrimitiveEvaluator.mBytes}return 0!==e?null:n}catch(t){return SF.log("解析实体图元数据报错"),null}}getAllEntity(){return this.mEntity}}class O3 extends _3{constructor(){super(...arguments),this.mLayers=new Array}readBlobData(t,e){if(null==this.safeReadLength(t))return!1;let n=t.readUnit64();if(null==n)return!1;if(n===BigInt(0))return!0;IJ.mLayerOverlimit=!1,Number(n)>65535&&(IJ.mLayerOverlimit=!0),this.mLayers=new Array;for(let e=0;e<n;e++)this.mLayers.push(new e3),this.mLayers[e].mLayerHandle=f3(t.readUnit64(),P3.kLMFZERO),t.readInt();return null!=e&&t.seek(e),this.mLayers.forEach(((e,n)=>{if(f3(t.readInt(),P3.kLMFZERO)>0){e.mIndex=n,e.mIsFrozen=f3(t.readBoolean(),P3.kLMFFALSE),e.mIsOff=f3(t.readBoolean(),P3.kLMFFALSE),e.mVPDFLT=f3(t.readBoolean(),P3.kLMFFALSE),e.mIsLocked=f3(t.readBoolean(),P3.kLMFFALSE),e.mColor=f3(t.readInt(),P3.kLMFONE),e.mEntityColor=f3(t.readInt(),P3.kLMFONE),e.mTransparency=f3(t.readInt(),P3.kLMFFALSE),e.mIsPlottable=f3(t.readBoolean(),P3.kLMFTRUE),e.mLineWeight=f3(t.readInt(),P3.kLMFONE);let i=f3(t.readInt(),P3.kLMFZERO);e.mPlotStyleName=f3(t.readStringByLens(i),P3.kLMFSTRING),e.mIsHidden=f3(t.readBoolean(),P3.kLMFFALSE),e.mIsInUse=f3(t.readBoolean(),P3.kLMFTRUE),e.mHasOverrides=f3(t.readBoolean(),P3.kLMFFALSE),e.mIsReconciled=f3(t.readBoolean(),P3.kLMFFALSE);let r=f3(t.readInt(),P3.kLMFZERO),a=f3(t.readStringByLens(r),P3.kLMFSTRING);e.mLayerName=a,"Annotation_182588"===a&&MF.instance().broardcast(_F.GsInteraction,{type:"setDimensionLayerHandle",data:{layerHandle:e.mLayerHandle}});let o=f3(t.readInt(),P3.kLMFZERO);for(let n=0;n<o;n++){let n=new t3;n.mViewportHandle=f3(t.readUnit64(),P3.kLMFZERO),n.mColor=f3(t.readInt(),P3.kLMFZERO),n.mLineWeight=f3(t.readInt(),P3.kLMFZERO),n.mTransparency=f3(t.readInt(),P3.kLMFZERO),t.byVersion(C3.eMajorVersion0,k3.eMinorVersion1)&&(n.mLayerIsFrozen=f3(t.readBoolean(),P3.kLMFFALSE)),e.mViewportData.set(n.mViewportHandle,n)}}})),!0}getLayers(){return this.mLayers}}class A3 extends _3{constructor(){super(...arguments),this.mViews=new Array}readBlobData(t,e){if(null==this.safeReadLength(t))return!1;let n=t.readUnit64();if(null==n)return!1;if(n===BigInt(0))return!0;this.mViews=new Array;for(let e=0;e<n;e++)this.mViews.push(new _J),this.mViews[e].mHandle=f3(t.readUnit64(),P3.kLMFZERO),this.mViews[e].mViewportNum=f3(t.readInt(),P3.kLMFZERO),this.mViews[e].mOffset=f3(t.readUInt(),P3.kLMFZERO);null!=e&&t.seek(e);let i=0;return f3(t.readInt(),P3.kLMFZERO)>0&&this.mViews.forEach((e=>{e.mViewCenter.mX=f3(t.readDouble(),P3.kLMFZERO),e.mViewCenter.mY=f3(t.readDouble(),P3.kLMFZERO),e.mViewHeight=f3(t.readDouble(),P3.kLMFONE),e.mViewDirection.mX=f3(t.readDouble(),P3.kLMFZERO),e.mViewDirection.mY=f3(t.readDouble(),P3.kLMFZERO),e.mViewDirection.mZ=f3(t.readDouble(),P3.kLMFONE),e.mViewDirection.isEqualTo(new qR)&&e.mViewDirection.copy(new qR(0,0,1)),e.mCenterPoint.mX=f3(t.readDouble(),P3.kLMFZERO),e.mCenterPoint.mY=f3(t.readDouble(),P3.kLMFZERO),e.mTarget.mX=f3(t.readDouble(),P3.kLMFZERO),e.mTarget.mY=f3(t.readDouble(),P3.kLMFZERO),e.mTarget.mZ=f3(t.readDouble(),P3.kLMFZERO),0==e.mViewHeight?(e.mViewHeight=f3(t.readDouble(),P3.kLMFONE),e.mViewWidth=f3(t.readDouble(),P3.kLMFONE)):(e.mPaperHeight=f3(t.readDouble(),P3.kLMFONE),e.mPaperWidth=f3(t.readDouble(),P3.kLMFONE)),e.mTwistAngle=f3(t.readDouble(),P3.kLMFZERO),e.mLensLength=f3(t.readDouble(),P3.kLMFZERO);let n=f3(t.readInt(),P3.kLMFZERO);if(e.mViewportName=f3(t.readStringByLens(n),P3.kLMFSTRING),e.mFrontZ=f3(t.readDouble(),P3.kLMFZERO),e.mBackZ=f3(t.readDouble(),P3.kLMFZERO),e.mVpNumber=f3(t.readShort(),P3.kLMFONE),e.mRenderMode=f3(t.readByte(),P3.kLMFONE),e.mFrontClipEnable=f3(t.readBoolean(),P3.kLMFFALSE),e.mBackClipEnable=f3(t.readBoolean(),P3.kLMFFALSE),t.byVersion(C3.eMajorVersion0,k3.eMinorVersion5)&&(e.mSnapBase=t.readGePoint2d(),e.mSnapAngle=f3(t.readDouble(),P3.kLMFZERO),e.mSnapPair=f3(t.readShort(),P3.kLMFONE),e.mSnapIncrements=t.readGePoint2d(),e.mGridIncrements=t.readGePoint2d(),e.mbGridEnabled=f3(t.readBoolean(),P3.kLMFFALSE),e.mbSnapEnabled=f3(t.readBoolean(),P3.kLMFFALSE),e.mbIsometricSnap=f3(t.readBoolean(),P3.kLMFFALSE),e.mbUcsFollowMode=f3(t.readBoolean(),P3.kLMFFALSE),e.mbIsUcsSavedWithViewport=f3(t.readBoolean(),P3.kLMFFALSE),e.mbUcsOn=f3(t.readBoolean(),P3.kLMFFALSE),e.mbUcsAtOrigin=f3(t.readBoolean(),P3.kLMFFALSE),e.mnCircleSides=f3(t.readShort(),P3.kLMFZERO),e.mbLock=f3(t.readBoolean(),P3.kLMFFALSE),e.mbOn=f3(t.readBoolean(),P3.kLMFTRUE)),e.mIsDBViewport=f3(t.readBoolean(),P3.kLMFFALSE),e.mIsDBViewport&&t.byVersion(C3.eMajorVersion0,k3.eMinorVersion4)){let n=f3(t.readByte(),P3.kLMFFALSE);switch(e.mColorMethod=n,n){case yB.kByLayer:break;case yB.kByColor:e.mBorderColor=[f3(t.readByte(),P3.kLMFFALSE),f3(t.readByte(),P3.kLMFFALSE),f3(t.readByte(),P3.kLMFFALSE)];break;case yB.kByACI:e.mBorderColor=f3(t.readShort(),P3.kLMFFALSE)}e.mLayerHandle=f3(t.readUnit64(),P3.kLMFZERO)}if(e.mIsNonRectRegion=f3(t.readBoolean(),P3.kLMFTRUE),e.mIsDBViewport){if(0==i&&(e.mIsOverallView=!0),e.mClipRegionCount=f3(t.readUInt(),P3.kLMFZERO),e.mClipRegionCount>0){let n=e.mClipRegionCount,i=0;for(let r=0;r<n;r++){let n=f3(t.readUInt(),P3.kLMFZERO);e.mClipRegionPtsNum.push(n),i+=n}e.mClipRegionPtsNumList=new Array(i);for(let n=0;n<i;n++)e.mClipRegionPtsNumList[n]=new QR,e.mClipRegionPtsNumList[n].mX=f3(t.readDouble(),P3.kLMFZERO),e.mClipRegionPtsNumList[n].mY=f3(t.readDouble(),P3.kLMFZERO),e.mClipRegionPtsNumList[n].mZ=f3(t.readDouble(),P3.kLMFZERO)}}else this.mViews.length>1&&(e.mLowerLeft.mX=f3(t.readDouble(),P3.kLMFZERO),e.mLowerLeft.mY=f3(t.readDouble(),P3.kLMFZERO),e.mUpperRight.mX=f3(t.readDouble(),P3.kLMFZERO),e.mUpperRight.mY=f3(t.readDouble(),P3.kLMFZERO));e.mVirtualViewExtends.mMin.mX=f3(t.readDouble(),P3.kLMFZERO),e.mVirtualViewExtends.mMin.mY=f3(t.readDouble(),P3.kLMFZERO),e.mVirtualViewExtends.mMax.mX=f3(t.readDouble(),P3.kLMFZERO),e.mVirtualViewExtends.mMax.mY=f3(t.readDouble(),P3.kLMFZERO),t.byVersion(C3.eMajorVersion0,k3.eMinorVersion6)&&(e.mIsActive=f3(t.readBoolean(),P3.kLMFFALSE),e.mUcsOriginConstant.mX=f3(t.readDouble(),P3.kLMFZERO),e.mUcsOriginConstant.mY=f3(t.readDouble(),P3.kLMFZERO),e.mUcsOriginConstant.mZ=f3(t.readDouble(),P3.kLMFZERO),e.mUcsXAxisConstant.mX=f3(t.readDouble(),P3.kLMFZERO),e.mUcsXAxisConstant.mY=f3(t.readDouble(),P3.kLMFZERO),e.mUcsXAxisConstant.mZ=f3(t.readDouble(),P3.kLMFZERO),e.mUcsYAxisConstant.mX=f3(t.readDouble(),P3.kLMFZERO),e.mUcsYAxisConstant.mY=f3(t.readDouble(),P3.kLMFZERO),e.mUcsYAxisConstant.mZ=f3(t.readDouble(),P3.kLMFZERO),e.mUcsZAxisConstant=e.mUcsXAxisConstant.crossProduct(e.mUcsYAxisConstant)),t.byVersion(C3.eMajorVersion0,k3.eMinorVersion7)&&(e.mDCSBoundary.mMin.mX=f3(t.readDouble(),P3.kLMFZERO),e.mDCSBoundary.mMin.mY=f3(t.readDouble(),P3.kLMFZERO),e.mDCSBoundary.mMin.mZ=f3(t.readDouble(),P3.kLMFZERO),e.mDCSBoundary.mMax.mX=f3(t.readDouble(),P3.kLMFZERO),e.mDCSBoundary.mMax.mY=f3(t.readDouble(),P3.kLMFZERO),e.mDCSBoundary.mMax.mZ=f3(t.readDouble(),P3.kLMFZERO)),t.byVersion(C3.eMajorVersion0,k3.eMinorVersion9)&&(e.mViewExtends.mMin.mX=f3(t.readDouble(),P3.kLMFZERO),e.mViewExtends.mMin.mY=f3(t.readDouble(),P3.kLMFZERO),e.mViewExtends.mMin.mZ=f3(t.readDouble(),P3.kLMFZERO),e.mViewExtends.mMax.mX=f3(t.readDouble(),P3.kLMFZERO),e.mViewExtends.mMax.mY=f3(t.readDouble(),P3.kLMFZERO),e.mViewExtends.mMax.mZ=f3(t.readDouble(),P3.kLMFZERO)),i++})),!0}getViews(){return this.mViews}}class T3 extends _3{constructor(){super(...arguments),this.mShareBTR=new Array}readBlobData(t,e){if(null==this.safeReadLength(t))return!1;let n=f3(t.readUnit64(),P3.kLMFZERO);if(n<0)return!1;if(n===BigInt(0))return!0;this.mShareBTR=new Array(n);for(let e=0;e<n;e++){let n=new c3;n.mHandle=f3(t.readUnit64(),P3.kLMFZERO),n.mOffset=f3(t.readUInt(),P3.kLMFZERO),this.mShareBTR[e]=n}return!0}readShareBTRDisplayData(t){let e=this.safeReadLength(t);if(null==e)return!1;if(0===e)return!0;let n=!0;for(let e=0;e<this.mShareBTR.length;e++){const i=this.mShareBTR[e];if(t.seek(i.mOffset),i.mHandle!==f3(t.readUnit64(),P3.kLMFZERO)){n=!1;break}let r=this.safeReadLength(t);if(null==r)return!1;for(i.mSharedBTRViewIndex=[],i.mSharedBlockTraits=new Map;r>0;){let e=f3(t.readInt(),P3.kLMFUNDEFINED);if(void 0===e||e<0){n=!1;break}r-=4,i.mSharedBTRViewIndex.push(e);let a=f3(t.readInt(),P3.kLMFZERO);if(r-=4,a<=0){n=!1;break}for(let o=0;o<a;o++){let a=f3(t.readInt(),P3.kLMFUNDEFINED);r-=4;let o=this.safeReadLength(t);if(r-=4,null==o||o<=0){n=!1;break}let s=this.readPrimitiveData(t,o);if(null==s){n=!1;break}r-=o;let l=i.mSharedBlockTraits.get(e);null==l&&(l=new Map),l.set(a,s),i.mSharedBlockTraits.set(e,l)}}}return!!n}readPrimitiveData(t,e){if(null!=this.mPrimitiveEvaluator)try{let n=new Array;for(;e>0;){let i=this.mPrimitiveEvaluator.getPrimitive(t);if(null===i)break;n.push(i),e-=this.mPrimitiveEvaluator.mBytes}return 0!==e?null:n}catch(t){return SF.log("解析共享块图元数据报错"),null}}getAllShareBTR(){return this.mShareBTR}}class I3 extends _3{constructor(){super(...arguments),this.mLayouts=new Array,this.mActiveLayoutIndex=0}readBlobData(t){if(null==this.safeReadLength(t))return!1;let e=f3(t.readUInt(),P3.kLMFZERO);if(e<=0)return!0;this.mActiveLayoutIndex=f3(t.readUInt(),P3.kLMFZERO),this.mLayouts=new Array(e);for(let n=0;n<Number(e);n++){let e=new h3;e.handleId=f3(t.readUnit64(),P3.kLMFZERO);let i=f3(t.readUInt(),P3.kLMFZERO);if(0===i)return SF.log("布局名称为空"),!1;e.mLayoutName=f3(t.readStringByLens(i),P3.kLMFSTRING),e.mIsModelSpace=f3(t.readBoolean(),P3.kLMFFALSE),e.mPaperSpaceId=f3(t.readUnit64(),P3.kLMFZERO),t.byVersion(C3.eMajorVersion0,k3.eMinorVersion0)&&(e.m_plotLayoutFlags=f3(t.readShort(),P3.kLMFZERO)),e.m_dLeftMarin=f3(t.readDouble(),P3.kLMFZERO),e.m_dBottomMarin=f3(t.readDouble(),P3.kLMFZERO),e.m_dRightMarin=f3(t.readDouble(),P3.kLMFZERO),e.m_dTopMarin=f3(t.readDouble(),P3.kLMFZERO),t.byVersion(C3.eMajorVersion0,k3.eMinorVersion0)&&(e.m_plotRotation=f3(t.readShort(),P3.kLMFZERO),e.m_dRealWorldUnits=f3(t.readDouble(),P3.kLMFONE),e.m_dDrawingUnits=f3(t.readDouble(),P3.kLMFONE)),e.m_dPaperWidth=f3(t.readDouble(),P3.kLMFZERO),e.m_dPaperHeight=f3(t.readDouble(),P3.kLMFZERO),t.byVersion(C3.eMajorVersion0,k3.eMinorVersion0)&&(e.m_plotPaperUnits=f3(t.readShort(),P3.kLMFZERO),e.m_dScaleFactor=f3(t.readDouble(),P3.kLMFONE)),e.m_OriginX=f3(t.readDouble(),P3.kLMFZERO),e.m_OriginY=f3(t.readDouble(),P3.kLMFZERO),e.m_LimitMin.mX=f3(t.readDouble(),P3.kLMFZERO),e.m_LimitMin.mY=f3(t.readDouble(),P3.kLMFZERO),e.m_LimitMax.mX=f3(t.readDouble(),P3.kLMFZERO),e.m_LimitMax.mY=f3(t.readDouble(),P3.kLMFZERO),t.byVersion(C3.eMajorVersion0,k3.eMinorVersion0)&&(e.m_PaperImageOriginX=f3(t.readDouble(),P3.kLMFZERO),e.m_PaperImageOriginY=f3(t.readDouble(),P3.kLMFZERO)),this.mLayouts[n]=e}return!0}getAllLayouts(){return this.mLayouts}getCurLayout(){return this.mLayouts[this.mActiveLayoutIndex]}getCurLayoutIndex(){return this.mActiveLayoutIndex}}class L3 extends _3{constructor(){super(...arguments),this.mAlternateFontInfo=new Array}readBlobData(t){if(null==this.safeReadLength(t))return!1;let e=f3(t.readUInt(),P3.kLMFZERO);if(e<=0)return!0;for(let n=0;n<e;n++){let e=f3(t.readUInt(),P3.kLMFZERO);0===e&&SF.error("srcNameLen === 0报错");let n=f3(t.readStringByLens(e),P3.kLMFSTRING),i=f3(t.readUInt(),P3.kLMFZERO);0===i&&SF.error("tarNameLen === 0报错");let r=f3(t.readStringByLens(i),P3.kLMFSTRING);"BIGFONTSHX"===r?U5._instance.checkAltFontsContain(r,n):U5._instance.checkAltFontsContain(n,r)}return!0}getAlternateFontInfo(){return this.mAlternateFontInfo}}class z3 extends _3{constructor(){super(...arguments),this.mLinetypeInfo={}}readBlobData(t){if(null==this.safeReadLength(t))return!1;let e=f3(t.readUInt(),P3.kLMFZERO);if(e<=0)return!0;for(;e--;){let e=f3(t.readUnit64(),P3.kLMFZERO),n=(f3(t.readUInt(),P3.kLMFZERO),f3(t.readUInt(),P3.kLMFZERO)),i=(f3(t.readStringByLens(n),P3.kLMFSTRING),f3(t.readDouble(),P3.kLMFZERO),f3(t.readByte(),P3.kLMFZERO),f3(t.readUInt(),P3.kLMFZERO)),r=new Array;for(let e=0;e<i;e++){let e=new d3;e.mLength=f3(t.readDouble(),P3.kLMFZERO),e.mShapeScale=f3(t.readDouble(),P3.kLMFZERO),e.mShapeRotation=f3(t.readDouble(),P3.kLMFZERO),e.mFlags=f3(t.readShort(),P3.kLMFZERO),e.mShapeNumber=f3(t.readShort(),P3.kLMFZERO),e.mShapeOffsetX=f3(t.readDouble(),P3.kLMFZERO),e.mShapeOffsetY=f3(t.readDouble(),P3.kLMFZERO);let n=f3(t.readUInt(),P3.kLMFZERO);e.mTextString=f3(t.readStringByLens(n),P3.kLMFSTRING),e.mStyleId=f3(t.readUInt(),P3.kLMFZERO),r.push(e)}this.mLinetypeInfo[e]=r}return!0}getLinetypeInfo(){return this.mLinetypeInfo}}class R3 extends _3{constructor(){super(...arguments),this.mTextStyleInfo=new Uint8Array}readBlobData(t){let e=this.safeReadLength(t);return null!=e&&(this.mTextStyleInfo=t.readUint8Array(e),!0)}getTextStyleInfo(){return this.mTextStyleInfo}}class F3{constructor(){this.mMinorVersion=0,this.mMajorVersion=0,this.mDataView=null,this.mPos=0,this.mData=null}prepareReadData(t){this.mData=t,this.mDataView=new DataView(t,0,t.byteLength)}seek(t){return!(null==this.mData||null==this.mDataView||t>this.mData.byteLength||(this.mPos=t,0))}readByte(){if(null==this.mData||null==this.mDataView||this.mPos+1>this.mData.byteLength)return null;let t=this.mDataView.getUint8(this.mPos);return this.mPos+=1,t}readUint8Array(t){if(null==this.mData||null==this.mDataView)return new Uint8Array;if(this.mPos+t>this.mData.byteLength)return new Uint8Array;let e=this.mData.slice(this.mPos,this.mPos+t);return this.mPos+=t,new Uint8Array(e)}readDouble(){if(null==this.mData||null==this.mDataView||this.mPos+8>this.mData.byteLength)return null;let t=this.mDataView.getFloat64(this.mPos,!0);return this.mPos+=8,t}readUnit64(){if(null==this.mData||null==this.mDataView||this.mPos+8>this.mData.byteLength)return null;let t=this.mDataView.getBigUint64(this.mPos,!0);return this.mPos+=8,t}readInt64(){if(null==this.mData||null==this.mDataView||this.mPos+8>this.mData.byteLength)return null;let t=this.mDataView.getBigInt64(this.mPos,!0);return this.mPos+=8,t}readFloat(){if(null==this.mData||null==this.mDataView||this.mPos+4>this.mData.byteLength)return null;let t=this.mDataView.getFloat32(this.mPos,!0);return this.mPos+=4,t}readBoolean(){if(null==this.mData||null==this.mDataView||this.mPos+1>this.mData.byteLength)return null;let t=this.mDataView.getInt8(this.mPos);return this.mPos+=1,0!=t}readInt(){if(null==this.mData||null==this.mDataView||this.mPos+4>this.mData.byteLength)return null;let t=this.mDataView.getInt32(this.mPos,!0);return this.mPos+=4,t}readUInt(){if(null==this.mData||null==this.mDataView||this.mPos+4>this.mData.byteLength)return null;let t=this.mDataView.getUint32(this.mPos,!0);return this.mPos+=4,t}readShort(){if(null==this.mData||null==this.mDataView||this.mPos+4>this.mData.byteLength)return null;let t=this.mDataView.getInt16(this.mPos,!0);return this.mPos+=2,t}readGePoint2d(){let t=new oB,e=this.readDouble();return t.mX=null==e?0:e,e=this.readDouble(),t.mY=null==e?0:e,t}readStringByLens(t){if(null==this.mData||null==this.mDataView||this.mPos+1>this.mData.byteLength)return null;let e=[];for(let n=1;n<=t;n++){let t=this.mDataView.getUint8(this.mPos);e.push(t),this.mPos+=1}return this.revertUTF8(e)}revertUTF8(t){let e,n,i,r="";for(let a=0;a<t.length&&(e=t[a],e);a++)128&e&&(32&e?(a++,n=t[a],a++,i=t[a],e=(15&e)<<12,n=(63&n)<<6,i&=63,e=e+n+i):(a++,n=t[a],e=(31&e)<<6,n&=63,e+=n)),r+=String.fromCharCode(e);return r}totalByteLength(){return null==this.mData?0:this.mData.byteLength}byVersion(t,e){return t<this.mMajorVersion||e<=this.mMinorVersion}}class B3{constructor(){this.V1HEADER=1,this.MAGICHEADER=52397,this.mVersion=0,this.mPrimitiveEvaluator=null,this.mHeader=new M3,this.mLayer=new O3,this.mEntity=new E3,this.mView=new A3,this.mShareBTR=new T3,this.mDbReader=new D3,this.mLayout=new I3,this.mAlternateFont=new L3,this.mLinetype=new z3,this.mTextStyle=new R3,this.mSteamReader=new F3}clear(){this.mPrimitiveEvaluator&&this.mPrimitiveEvaluator.mZcGsPrimitiveCollector.clearCollector(),this.mEntity.mPrimitiveEvaluator&&this.mEntity.mPrimitiveEvaluator.mZcGsPrimitiveCollector.clearCollector(),this.mShareBTR.mPrimitiveEvaluator&&this.mShareBTR.mPrimitiveEvaluator.mZcGsPrimitiveCollector.clearCollector(),this.mEntity.mPrimitiveEvaluator=null,this.mShareBTR.mPrimitiveEvaluator=null,this.mPrimitiveEvaluator=null,this.mPrimitiveEvaluator=new b3,this.mEntity=new E3,this.mShareBTR=new T3}setPrimitiveEvaluator(t){this.mPrimitiveEvaluator=t,this.mEntity.mPrimitiveEvaluator=this.mPrimitiveEvaluator,this.mShareBTR.mPrimitiveEvaluator=this.mPrimitiveEvaluator}loadLMFBlobData(t){var e=this;return jR((function*(){if(t instanceof ArrayBuffer){if(0===t.byteLength)return!1;e.mSteamReader=new F3,e.mSteamReader.prepareReadData(t)}else{let n=new RZ;if(n.mArrayBuffers=t.mArrayBuffers,n.mPageSize=t.mPageSize,n.mLastPageSize=t.mLastPageSize,e.mSteamReader=new FZ,e.mSteamReader.prepareReadData(n),0===n.totalLength())return!1}try{return yield e.parseLMF()}catch(t){return SF.log("浏览器内存不足,图纸加载异常"),!1}}))()}parseLMF(){var t=this;return jR((function*(){if(!t.readHeaderSection())return SF.error("Load Header Data Error."),!1;if(t.mSteamReader.mMajorVersion=t.mVersion>>16,t.mSteamReader.mMinorVersion=65535&t.mVersion,t.mSteamReader.mMajorVersion<C3.eLatestMajorVersion||t.mSteamReader.mMajorVersion<k3.eLatestMinorVersion){let t=qF.mLanguagePackage.versionPrompt.split("{}");MF.instance().broardcast(_F.History,{history:t[0]+" "+C3.eLatestMajorVersion+"."+k3.eLatestMinorVersion+t[1]})}return t.readLayerSection()?t.readLayoutSection()?t.readViewSection()?t.readDBSection()?!!t.readAlternateFontSection()||(SF.error("Load AlternateFont Data Error"),!1):(SF.error("Load DB Data Error."),!1):(SF.error("Load View Data Error."),!1):(SF.error("Load Layout Data Error"),!1):(SF.error("Load Layer Data Error."),!1)}))()}readHeaderSection(){if(this.mSteamReader.readInt()!=this.MAGICHEADER)return!1;let t=this.mSteamReader.readInt();return!(null==t||(this.mVersion=t,!this.mHeader.readBlobData(this.mSteamReader)))}readViewSection(){let t=this.mHeader.getSectionOffset(S3.kLMFView);if(null==t)return!1;if(0===t)return!0;this.mSteamReader.seek(t);let e=this.mHeader.getSectionOffset(S3.kLMFViewData);return!!this.mView.readBlobData(this.mSteamReader,e)}readDBSection(){let t=this.mHeader.getSectionOffset(S3.kLMFDatabase);if(null==t)return!1;if(0===t)return!0;this.mSteamReader.seek(t),this.mDbReader.readBlobData(this.mSteamReader);let e=this.mView.getViews();for(let t=0;t<e.length;++t)e[t].mDBExtends.copy(e[t].mIsOverallView?this.mDbReader.mExtentsOverallView:this.mDbReader.mExtents),e[t].mLimmin.copy(this.mDbReader.mLimmin),e[t].mLimmax.copy(this.mDbReader.mLimmax);return!0}readEntitySection(){var t=this;return jR((function*(){let e=t.mHeader.getSectionOffset(S3.kLMFEntity);return!(null==e||(t.mSteamReader.seek(e),!(yield l3(t.mEntity.readBlobData,t.mEntity)(t.mSteamReader)))||(e=t.mHeader.getSectionOffset(S3.kLMFEntityData),null==e)||(t.mEntity.setViewData(t.mView.getViews()),t.mEntity.setBtrData(t.mShareBTR.getAllShareBTR()),t.mSteamReader.seek(e),!(yield l3(t.mEntity.readEntityDisplayData,t.mEntity)(t.mSteamReader))))}))()}readShareBtrSection(){let t=this.mHeader.getSectionOffset(S3.kLMFShareBTR),e=this.mHeader.getSectionOffset(S3.kLMFShareBTRData);return!(null==t||null==e||0!==t&&4!==Math.abs(e-t)&&(this.mSteamReader.seek(t),!this.mShareBTR.readBlobData(this.mSteamReader)||(this.mSteamReader.seek(e),!this.mShareBTR.readShareBTRDisplayData(this.mSteamReader))))}readLayerSection(){let t=this.mHeader.getSectionOffset(S3.kLMFLayer);if(null==t)return!1;if(0===t)return!0;this.mSteamReader.seek(t);let e=this.mHeader.getSectionOffset(S3.kLMFLayerData);return!!this.mLayer.readBlobData(this.mSteamReader,e)}readLayoutSection(){let t=this.mHeader.getSectionOffset(S3.KLMFLayoutData);return null!=t&&(0===t||(this.mSteamReader.seek(t),!!this.mLayout.readBlobData(this.mSteamReader)))}readAlternateFontSection(){let t=this.mHeader.getSectionOffset(S3.KLMFAlternateFont);return null!=t&&(0===t||(this.mSteamReader.seek(t),!!this.mAlternateFont.readBlobData(this.mSteamReader)))}readLinetypeSection(){let t=this.mHeader.getSectionOffset(S3.KLMFLinetype);return null!=t&&(0===t||(this.mSteamReader.seek(t),!!this.mLinetype.readBlobData(this.mSteamReader)))}readTextStyleSection(){let t=this.mHeader.getSectionOffset(S3.KLMFTextStyle);return null!=t&&(0===t||(this.mSteamReader.seek(t),!!this.mTextStyle.readBlobData(this.mSteamReader)))}getPrimitiveEvalator(){return this.mPrimitiveEvaluator}getPrimitiveCollector(){return null==this.mPrimitiveEvaluator?null:this.mPrimitiveEvaluator.mZcGsPrimitiveCollector}}var V3=l(787),N3=l.n(V3);let H3=(()=>{class t{transform(t){return qF.mLanguagePackage[t]||t}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵpipe"]=ie({name:"translate",type:t,pure:!0}),t})();var G3,Z3=((G3=Z3||(Z3={}))[G3.endpoint=1]="endpoint",G3[G3.midpoint=2]="midpoint",G3[G3.center=4]="center",G3[G3.geometricCenter=1024]="geometricCenter",G3[G3.node=8]="node",G3[G3.quadrant=16]="quadrant",G3[G3.extension=16384]="extension",G3[G3.insertion=64]="insertion",G3[G3.perpendicular=128]="perpendicular",G3[G3.tangent=256]="tangent",G3[G3.nearest=512]="nearest",G3[G3.parallel=8192]="parallel",G3[G3.intersection=32]="intersection",G3[G3.apparentIntersect=2048]="apparentIntersect",Z3);let U3={endpoint:!0,midpoint:!1,center:!0,geometricCenter:!1,intersection:!0,apparentIntersect:!1},W3=(()=>{class t{constructor(){this.osnapModes=U3,this.mOriginalIsOSnap=HJ.mOsnapSwitch,this.mIsOSnap=HJ.mOsnapSwitch,this.mZcBroadcast=MF.instance()}ngOnInit(){let t=XF.instance().getItem("osnapModes");t?this.osnapModes=t:this.saveOSnapModes()}saveOSnapModes(){XF.instance().setItem("osnapModes",this.osnapModes)}judgeWhetherChangeOSnapSwitch(){if(this.mOriginalIsOSnap!==this.mIsOSnap){HJ.mOsnapSwitch=this.mIsOSnap;let t=qF.mLanguagePackage.command+":<";const e=" "+qF.mLanguagePackage.open+" >",n=" "+qF.mLanguagePackage.shutdown+" >";t+=HJ.mOsnapSwitch?""+qF.mLanguagePackage.oSnap+e:""+qF.mLanguagePackage.oSnap+n,HJ.mOsnapSwitch||this.mZcBroadcast.broardcast(_F.GsInteraction,{type:"draw",data:{type:"Shorterm",operate:"clearAllSnap"}}),this.mZcBroadcast.broardcast(_F.History,{history:t}),this.mZcBroadcast.broardcast(_F.StatusBar,{type:"switch",data:{switch:this.mIsOSnap,name:"OSNAP"}})}}sendOSnapModes(){this.mIsOSnap&&U5._instance.mGs&&U5._instance.mGs.webSocket&&U5._instance.mGs.webSocket.connectSuccess&&U5._instance.mGs.sendSetOSnapModesMessage()}submit(){this.cancel(),this.saveOSnapModes(),this.sendOSnapModes(),this.judgeWhetherChangeOSnapSwitch()}cancel(){0===Object.values(this.osnapModes).filter((t=>t)).length&&this.mIsOSnap&&(this.mIsOSnap=!1)}selectAll(){Object.keys(this.osnapModes).forEach((t=>{"apparentIntersect"!==t&&(this.osnapModes[t]=!0)})),this.mIsOSnap=!0}clearAll(){Object.keys(this.osnapModes).forEach((t=>{this.osnapModes[t]=!1}))}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵcmp"]=qt({type:t,selectors:[["app-object-snap-block"]],decls:53,vars:45,consts:[[1,"object-snap-check"],["nz-checkbox","",3,"ngModel","ngModelChange"],[1,"block-border"],[1,"block-title"],[1,"block-content"],[1,"block-content-colum"],[1,"iconfont","icon-duandian"],[1,"iconfont","icon-zhongdian"],[1,"iconfont","icon-yuanxin"],[1,"iconfont","icon-jihezhongxin"],[1,"iconfont","icon-jiaodian"],[1,"apparentIntersect"],[3,"ngModel","nzDisabled","ngModelChange"],["nz-radio","",3,"nzValue"],[1,"selectAll"],["nz-button","",3,"nzSize","click"]],template:function(t,e){1&t&&(Yo(0,"div",0),Yo(1,"label",1),es("ngModelChange",(function(t){return e.mIsOSnap=t})),Bs(2),Cc(3,"translate"),jo(),jo(),Yo(4,"div",2),Yo(5,"div",3),Bs(6),Cc(7,"translate"),jo(),Yo(8,"div",4),Yo(9,"div",5),Yo(10,"div"),Xo(11,"i",6),Yo(12,"label",1),es("ngModelChange",(function(t){return e.osnapModes.endpoint=t})),Bs(13),Cc(14,"translate"),jo(),jo(),Yo(15,"div"),Xo(16,"i",7),Yo(17,"label",1),es("ngModelChange",(function(t){return e.osnapModes.midpoint=t})),Bs(18),Cc(19,"translate"),jo(),jo(),Yo(20,"div"),Xo(21,"i",8),Yo(22,"label",1),es("ngModelChange",(function(t){return e.osnapModes.center=t})),Bs(23),Cc(24,"translate"),jo(),jo(),Yo(25,"div"),Xo(26,"i",9),Yo(27,"label",1),es("ngModelChange",(function(t){return e.osnapModes.geometricCenter=t})),Bs(28),Cc(29,"translate"),jo(),jo(),jo(),Yo(30,"div",5),Yo(31,"div"),Xo(32,"i",10),Yo(33,"label",1),es("ngModelChange",(function(t){return e.osnapModes.intersection=t}))("ngModelChange",(function(){return e.osnapModes.apparentIntersect=!1})),Bs(34),Cc(35,"translate"),jo(),jo(),Yo(36,"div",11),Yo(37,"nz-radio-group",12),es("ngModelChange",(function(t){return e.osnapModes.apparentIntersect=t})),Yo(38,"label",13),Bs(39),Cc(40,"translate"),jo(),Yo(41,"label",13),Bs(42),Cc(43,"translate"),jo(),jo(),jo(),jo(),Yo(44,"div",5),Yo(45,"div",14),Yo(46,"button",15),es("click",(function(){return e.selectAll()})),Bs(47),Cc(48,"translate"),jo(),jo(),Yo(49,"div"),Yo(50,"button",15),es("click",(function(){return e.clearAll()})),Bs(51),Cc(52,"translate"),jo(),jo(),jo(),jo(),jo()),2&t&&(sa(1),Uo("ngModel",e.mIsOSnap),sa(1),Vs(kc(3,23,"objectSnapOn")),sa(4),Vs(kc(7,25,"objectSnapMode")),sa(6),Uo("ngModel",e.osnapModes.endpoint),sa(1),Ns(" ",kc(14,27,"endpoint")," "),sa(4),Uo("ngModel",e.osnapModes.midpoint),sa(1),Ns(" ",kc(19,29,"midpoint")," "),sa(4),Uo("ngModel",e.osnapModes.center),sa(1),Ns(" ",kc(24,31,"center")," "),sa(4),Uo("ngModel",e.osnapModes.geometricCenter),sa(1),Ns(" ",kc(29,33,"geometricCenter")," "),sa(5),Uo("ngModel",e.osnapModes.intersection),sa(1),Ns(" ",kc(35,35,"intersection")," "),sa(3),Uo("ngModel",e.osnapModes.apparentIntersect)("nzDisabled",!e.osnapModes.intersection),sa(1),Uo("nzValue",!1),sa(1),Vs(kc(40,37,"defaultInter")),sa(2),Uo("nzValue",!0),sa(1),Vs(kc(43,39,"apparentIntersect")),sa(4),Uo("nzSize","small"),sa(1),Vs(kc(48,41,"selectAll")),sa(3),Uo("nzSize","small"),sa(1),Vs(kc(52,43,"clearAll")))},directives:[kM,xp,Np,cI,hI,bM,uM,sM],pipes:[H3],styles:[".object-snap-check[_ngcontent-%COMP%]{margin:0 20px 20px}.block-border[_ngcontent-%COMP%]{margin:20px;border:1px solid #d9d9d9;background-color:#f2f2f2}.block-border[_ngcontent-%COMP%] .block-title[_ngcontent-%COMP%]{position:absolute;margin:-12px 0 0 10px;background-color:#f2f2f2}.block-border[_ngcontent-%COMP%] .block-content[_ngcontent-%COMP%]{margin:20px 0 12px 12px;display:flex}.block-border[_ngcontent-%COMP%] .block-content[_ngcontent-%COMP%] .block-content-colum[_ngcontent-%COMP%]{flex-grow:1}.block-border[_ngcontent-%COMP%] .block-content[_ngcontent-%COMP%] .block-content-colum[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:14px;margin-right:5px}.block-border[_ngcontent-%COMP%] .block-content[_ngcontent-%COMP%] .block-content-colum[_ngcontent-%COMP%] .apparentIntersect[_ngcontent-%COMP%]{margin-left:19px}.block-border[_ngcontent-%COMP%] .block-content[_ngcontent-%COMP%] .selectAll[_ngcontent-%COMP%]{margin-bottom:5px}[_nghost-%COMP%] .ant-radio-group{flex-direction:column;border:1px solid #d9d9d9;padding:0 5px;margin-top:5px}[nz-button][_ngcontent-%COMP%]{width:75px}"]}),t})();class Y3 extends HZ{constructor(){super(...arguments),this.mRectRadius=0,this.mChamferDist1=0,this.mChamferDist2=0,this.mPtArray=[],this.mConvexity=[],this.mBranchStatus=X3.rNFirstBranch,this.mStartAngle=[],this.mEndAngle=[],this.mArc={center:new QR,radius:10,normal:new qR,thickness:0,startVec:new qR,sweepAngle:0},this.mCanJigWithoutEdit=!0}doJig(){if(this.mFirstPoint||this.mDistPt){if(null===this.mCurView||null===this.mCurView.mGraphicSystem)return;let t=this.mCurView.getGsWorldDraw();HZ.mZcGsPrimitiveCollector.clearCollector(),t.setCurPrimitveCollectorData(EB.kZcDrShorterm,HZ.mZcGsPrimitiveCollector);let e=HZ.mZcGsPrimitiveCollector.getBufferPoint(),n=this.mCurView.mGraphicSystem.mCurCursorPT,i=new QR(n.mX,n.mY,0);i=this.mCurView.scsPt2WcsPt(i);let r=new UB(RB.COLORRGBA32);if(r.mColor=zV.jigLeader,HZ.mZcGsPrimitiveCollector.mPrimitives.push(r),this.mDistPt&&(e.push(this.mDistPt.mX,this.mDistPt.mY,this.mDistPt.mZ),e.push(i.mX,i.mY,i.mZ),HZ.mZcGsPrimitiveCollector.addPrimitive(RB.RAWPOLYLINE3D,6)),!this.mFirstPoint)return;let a,o,s=Math.abs(this.mFirstPoint.mX-i.mX),l=Math.abs(this.mFirstPoint.mY-i.mY);if(this.mFirstPoint.mX>i.mX?this.mFirstPoint.mY>i.mY?(a=new QR(i.mX,this.mFirstPoint.mY,0),o=new QR(this.mFirstPoint.mX,i.mY,0)):(a=i,o=this.mFirstPoint):this.mFirstPoint.mY>i.mY?(a=this.mFirstPoint,o=i):(a=new QR(this.mFirstPoint.mX,i.mY,0),o=new QR(i.mX,this.mFirstPoint.mY,0)),this.mRectRadius&&2*this.mRectRadius<s&&2*this.mRectRadius<l){this.mArc.normal=new qR(0,0,1),this.mPtArray[0]=new QR(a.mX,a.mY-this.mRectRadius,0),this.mPtArray[1]=new QR(a.mX,o.mY+this.mRectRadius,0),this.mPtArray[2]=new QR(a.mX+this.mRectRadius,o.mY,0),this.mPtArray[3]=new QR(o.mX-this.mRectRadius,o.mY,0),this.mPtArray[4]=new QR(o.mX,o.mY+this.mRectRadius,0),this.mPtArray[5]=new QR(o.mX,a.mY-this.mRectRadius,0),this.mPtArray[6]=new QR(o.mX-this.mRectRadius,a.mY,0),this.mPtArray[7]=new QR(a.mX+this.mRectRadius,a.mY,0),this.mStartAngle=[90,180,270,0],this.mEndAngle=[180,270,0,90];let t=new QR(a.mX+this.mRectRadius,a.mY-this.mRectRadius,0),n=new QR(a.mX+this.mRectRadius,o.mY+this.mRectRadius,0),i=new QR(o.mX-this.mRectRadius,o.mY+this.mRectRadius,0),r=new QR(o.mX-this.mRectRadius,a.mY-this.mRectRadius,0),s=[];s.push(t,n,i,r);let l=new HB(RB.RESTATTR);HZ.mZcGsPrimitiveCollector.mPrimitives.push(l);for(let t=0;t<this.mStartAngle.length;t++)this.mArc.startVec.mX=Math.cos(this.mStartAngle[t]*XR.ZWGR_PI/180),this.mArc.startVec.mY=Math.sin(this.mStartAngle[t]*XR.ZWGR_PI/180),this.mArc.startVec.normalize(),this.mArc.sweepAngle=this.mEndAngle[t]*XR.ZWGR_PI/180-this.mStartAngle[t]*XR.ZWGR_PI/180,this.mArc.sweepAngle<0&&(this.mArc.sweepAngle+=XR.ZWGR_TWOPI),Math.abs(this.mArc.sweepAngle)>XR.ZWGR_TWOPI&&(this.mArc.sweepAngle=XR.ZWGR_TWOPI),this.mArc.center=s[t],this.mArc.radius=this.mRectRadius,this.generateArc(this.mArc,this.mCurView.mFieldHeight,1e3);for(let t=0;t<8;t++)e.push(this.mPtArray[t].mX,this.mPtArray[t].mY,this.mPtArray[t].mZ),e.push(this.mPtArray[t+1].mX,this.mPtArray[t+1].mY,this.mPtArray[t+1].mZ),HZ.mZcGsPrimitiveCollector.addPrimitive(RB.RAWPOLYLINE3D,6),t++;return}if(this.mChamferDist1&&this.mChamferDist2&&this.mChamferDist1+this.mChamferDist2<s&&this.mChamferDist1+this.mChamferDist2<l){let t,e;this.mFirstPoint.mX>i.mX?this.mFirstPoint.mY>i.mY?(t=new QR(i.mX,this.mFirstPoint.mY,0),e=new QR(this.mFirstPoint.mX,i.mY,0)):(t=i,e=this.mFirstPoint):this.mFirstPoint.mY>i.mY?(t=this.mFirstPoint,e=i):(t=new QR(this.mFirstPoint.mX,i.mY,0),e=new QR(i.mX,this.mFirstPoint.mY,0)),this.mPtArray[0]=new QR(t.mX,t.mY-this.mChamferDist1,0),this.mPtArray[1]=new QR(t.mX,e.mY+this.mChamferDist2,0),this.mPtArray[2]=new QR(t.mX+this.mChamferDist1,e.mY,0),this.mPtArray[3]=new QR(e.mX-this.mChamferDist2,e.mY,0),this.mPtArray[4]=new QR(e.mX,e.mY+this.mChamferDist1,0),this.mPtArray[5]=new QR(e.mX,t.mY-this.mChamferDist2,0),this.mPtArray[6]=new QR(e.mX-this.mChamferDist1,t.mY,0),this.mPtArray[7]=new QR(t.mX+this.mChamferDist2,t.mY,0)}else{let t=this.mFirstPoint;this.mPtArray[0]=t,this.mPtArray[1]=new QR(t.mX,i.mY,0),this.mPtArray[2]=i,this.mPtArray[3]=new QR(i.mX,t.mY,0),this.mPtArray.length=4}this.mPtArray.forEach((t=>{e.push(t.mX,t.mY,t.mZ)})),e.push(this.mPtArray[0].mX,this.mPtArray[0].mY,this.mPtArray[0].mZ);let c=new HB(RB.RESTATTR);if(HZ.mZcGsPrimitiveCollector.mPrimitives.push(c),n7.instance().mDrawCommentBubble){let t=n7.instance().mBubbleColor;HZ.mZcGsPrimitiveCollector.addPrimitiveRectangleBubble(RB.RECTANGLEBUBBLE,"",[this.mFirstPoint,i],t.str)}else HZ.mZcGsPrimitiveCollector.addPrimitive(RB.RAWPOLYLINE3D,3*(this.mPtArray.length+1))}else HZ.mZcGsPrimitiveCollector.clearCollector(),MF.instance().broardcast(_F.GsInteraction,{type:"draw",data:{type:"Shorterm"}})}addVertex(t){t&&this.mPtArray.push(t)}clear(){this.mRectangle=void 0,this.mFirstPoint=void 0,this.mRectRadius=0,this.mDistPt=void 0,this.mPtArray=[]}}var j3,X3=((j3=X3||(X3={}))[j3.rNFirstBranch=0]="rNFirstBranch",j3[j3.rNSecondBranch=1]="rNSecondBranch",j3[j3.rFilletRsBranch1=2]="rFilletRsBranch1",j3[j3.rFilletRsBranch2=3]="rFilletRsBranch2",j3[j3.rChamferBranch1=4]="rChamferBranch1",j3[j3.rChamferBranch2=5]="rChamferBranch2",j3[j3.rChamferBranchDt1=6]="rChamferBranchDt1",j3[j3.rChamferBranchDt2=7]="rChamferBranchDt2",X3);class q3{constructor(){this.exeCmd=function*(){let t=n7.instance(),e=t.mCmdExecutionStatus;if(!e)return!0;SF.log("Rectangle命令开始执行"),q3.resetFlags(),q3.mCurView=jF.instance().getCurView();let n=jF.instance().getInputContent(),i=jF.instance().getKeyboardFlags(),r=!1,a=new Y3;for(HZ._instance.setCurJig(a),a.mCurView=q3.mCurView,q3.mBranchStatus=X3.rNFirstBranch;;){if(i=jF.instance().getKeyboardFlags(),e=t.mCmdExecutionStatus,i.esc||!e){q3.mSaveFlag=!1;break}switch(q3.mBranchStatus){case X3.rNFirstBranch:if(!n7.instance().mDrawCommentBubble)switch(XF.instance().getItem("rectangleStatus","session")){case"chamfer":{let t=XF.instance().getItem("rectangleChamferDist1","session"),e=XF.instance().getItem("rectangleChamferDist2","session");t&&e&&(q3.mRectangle.chamferDist1=t,q3.mRectangle.chamferDist2=e);break}case"radius":{let t=XF.instance().getItem("rectangleRadius","session");t&&(q3.mRectangle.radius=t);break}}if(SF.log("指定第一个角点"),t.mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.rectFirstPt}),yield!1,n=jF.instance().getInputContent(),i=jF.instance().getKeyboardFlags(),i.esc)break;if("F"===n.trim().toUpperCase()){t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.rectFirstPt+n}),q3.mBranchStatus=X3.rFilletRsBranch1,q3.resetFlags();break}if("C"===n.trim().toUpperCase()){t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.rectFirstPt+n}),q3.mBranchStatus=X3.rChamferBranch1,q3.resetFlags();break}{let e=HZ.acquirePoint();e?(SF.log("获取第一个角点"),a.addVertex(e),a.mFirstPoint=e,q3.mRectangle.firstTarget.copy(e),q3.mBranchStatus=X3.rNSecondBranch,t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.rectFirstPt+n,label:qF.mLanguagePackage.rectAnotherPt})):""===n&&i.enter?(t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.rectFirstPt+n}),t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.ptOrKeyword})):(t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.rectFirstPt+n}),t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.errMsgCommon}))}break;case X3.rNSecondBranch:{if(SF.log("指定第二个角点"),yield!1,n=jF.instance().getInputContent(),i=jF.instance().getKeyboardFlags(),i.esc)break;let e=HZ.acquirePoint();if(t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.rectAnotherPt+n}),e){if(q3.mSaveFlag=!0,SF.log("获取第二个角点"),n7.instance().mDrawCommentBubble&&e.isEqual(q3.mRectangle.firstTarget))continue;q3.mRectangle.secondTarget.copy(e);let n=q3.mRectangle.firstTarget,i=q3.mRectangle.secondTarget,o=q3.mRectangle.radius,s=q3.mRectangle.chamferDist1,l=q3.mRectangle.chamferDist2,c=Math.abs(n.mX-i.mX),h=Math.abs(n.mY-i.mY);if(0!==o){let t,e,r,a,s,l,d,u,m,p;SF.log("圆角"),n.mX>i.mX?n.mY>i.mY?(m=new QR(i.mX,n.mY,0),p=new QR(n.mX,i.mY,0)):(m=i,p=n):n.mY>i.mY?(m=n,p=i):(m=new QR(n.mX,i.mY,0),p=new QR(i.mX,n.mY,0)),2*o>c||2*o>h?(t=new QR(m.mX,m.mY,0),e=new QR(m.mX,p.mY,0),r=new QR(m.mX,p.mY,0),a=new QR(p.mX,p.mY,0),s=new QR(p.mX,p.mY,0),l=new QR(p.mX,m.mY,0),d=new QR(p.mX,m.mY,0),u=new QR(m.mX,m.mY,0)):(t=new QR(m.mX,m.mY-o,0),e=new QR(m.mX,p.mY+o,0),r=new QR(m.mX+o,p.mY,0),a=new QR(p.mX-o,p.mY,0),s=new QR(p.mX,p.mY+o,0),l=new QR(p.mX,m.mY-o,0),d=new QR(p.mX-o,m.mY,0),u=new QR(m.mX+o,m.mY,0)),q3.mPoints.push(t,e,r,a,s,l,d,u),q3.mConvexity=[0,Math.tan(90*XR.ZWGR_PI/180/4),0,Math.tan(90*XR.ZWGR_PI/180/4),0,Math.tan(90*XR.ZWGR_PI/180/4),0,Math.tan(90*XR.ZWGR_PI/180/4)]}else if(0!==s&&0!==l){let t,e,r,a,o,d,u,m;if(SF.log("倒角"),s+l>c||s+l>h)t=new QR(n.mX,n.mY,0),e=new QR(n.mX,i.mY,0),r=new QR(n.mX,i.mY,0),a=new QR(i.mX,i.mY,0),o=new QR(i.mX,i.mY,0),d=new QR(i.mX,n.mY,0),u=new QR(i.mX,n.mY,0),m=new QR(n.mX,n.mY,0);else{let c,h;n.mX>i.mX?n.mY>i.mY?(c=new QR(i.mX,n.mY,0),h=new QR(n.mX,i.mY,0)):(c=i,h=n):n.mY>i.mY?(c=n,h=i):(c=new QR(n.mX,i.mY,0),h=new QR(i.mX,n.mY,0)),t=new QR(c.mX,c.mY-s,0),e=new QR(c.mX,h.mY+l,0),r=new QR(c.mX+s,h.mY,0),a=new QR(h.mX-l,h.mY,0),o=new QR(h.mX,h.mY+s,0),d=new QR(h.mX,c.mY-l,0),u=new QR(h.mX-s,c.mY,0),m=new QR(c.mX+l,c.mY,0)}q3.mConvexity=[0,0,0,0,0,0,0,0],q3.mPoints.push(t,e,r,a,o,d,u,m)}else{SF.log("普通");let t=n,e=new QR(n.mX,i.mY,0),r=i,a=new QR(i.mX,n.mY,0);q3.mPoints.push(t,e,r,a),q3.mConvexity=[0,0,0,0]}if(t.mDrawCommentBubble&&t.isContinuousDraw()){let e=t.mGs,n=new QR,i=new QR;n.copy(q3.mRectangle.firstTarget),i.copy(q3.mRectangle.secondTarget),e&&e.createRectangleBubble(cF(),[n,i]),q3.mBranchStatus=X3.rNFirstBranch,a.clear()}else r=!0}else t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.inputInvalid});break}case X3.rFilletRsBranch1:{let e=XF.instance().getItem("rectangleRadius","session");if(e=e||0,t.mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.rectRadius+"<"+e.toFixed(4)+">:"}),yield!1,n=jF.instance().getInputContent(),i=jF.instance().getKeyboardFlags(),i.esc)break;let r=HZ.acquirePoint();r?(q3.mRsFirstPt=r,a.mDistPt=r,q3.mBranchStatus=X3.rFilletRsBranch2,t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.rectRadius+"<"+q3.mRectangle.radius.toFixed(4)+">:"+n})):isNaN(n)||""===n?""===n&&i.enter?(q3.mRectangle.radius=e||0,XF.instance().setItem("rectangleStatus","radius","session"),t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.rectRadius+"<"+q3.mRectangle.radius.toFixed(4)+">:"+n}),q3.mBranchStatus=X3.rNFirstBranch):(t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.rectRadius+"<"+q3.mRectangle.radius.toFixed(4)+">:"+n}),t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.rectPtOrValue})):(t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.rectRadius+"<"+q3.mRectangle.radius.toFixed(4)+">:"+n}),q3.mRectangle.radius=Number(n),0===q3.mRectangle.radius&&(q3.mRectangle.chamferDist1=0,q3.mRectangle.chamferDist2=0),XF.instance().setItem("rectangleRadius",q3.mRectangle.radius,"session"),XF.instance().setItem("rectangleStatus","radius","session"),q3.mRectangle.chamferDist1=0,q3.mRectangle.chamferDist2=0,q3.mBranchStatus=X3.rNFirstBranch);break}case X3.rFilletRsBranch2:if(t.mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.nextDtPoint}),yield!1,n=jF.instance().getInputContent(),i=jF.instance().getKeyboardFlags(),i.esc)break;if(isNaN(n)||""===n)if(""===n&&i.enter)XF.instance().setItem("rectangleStatus","radius","session"),t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.nextDtPoint+n}),q3.mBranchStatus=X3.rNFirstBranch;else{let e=HZ.acquirePoint();e?(q3.mRsSecondPt=e,a.mDistPt=void 0,q3.mRectangle.radius=RV.zcutDistance(q3.mRsFirstPt,q3.mRsSecondPt),XF.instance().setItem("rectangleRadius",q3.mRectangle.radius,"session"),XF.instance().setItem("rectangleStatus","radius","session"),q3.mRectangle.chamferDist1=0,q3.mRectangle.chamferDist2=0,t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.nextDtPoint+n}),q3.mBranchStatus=X3.rNFirstBranch):(t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.nextDtPoint+n}),t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.rectPtOrValue}))}else t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.nextDtPoint+n}),q3.mRectangle.radius=Number(n),0===q3.mRectangle.radius&&(q3.mRectangle.chamferDist1=0,q3.mRectangle.chamferDist2=0),XF.instance().setItem("rectangleRadius",q3.mRectangle.radius,"session"),XF.instance().setItem("rectangleStatus","radius","session"),q3.mRectangle.chamferDist1=0,q3.mRectangle.chamferDist2=0,q3.mBranchStatus=X3.rNFirstBranch;break;case X3.rChamferBranch1:{let e=XF.instance().getItem("rectangleChamferDist1","session");if(e=e||0,t.mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.rectChamferDt1+"<"+e.toFixed(4)+">:"}),yield!1,n=jF.instance().getInputContent(),i=jF.instance().getKeyboardFlags(),i.esc)break;if(isNaN(n)||""===n)if(""===n&&i.enter)t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.rectChamferDt1+"<"+e.toFixed(4)+">: "+n}),q3.mRectangle.chamferDist1=e,q3.mBranchStatus=X3.rChamferBranch2;else{let i=HZ.acquirePoint();i?(t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.rectChamferDt1+"<"+e.toFixed(4)+">:"+n}),q3.mDt1FirstPt=i,a.mDistPt=i,q3.mBranchStatus=X3.rChamferBranchDt1):(t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.rectChamferDt1+"<"+e.toFixed(4)+">:"+n}),t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.rectPtOrValue}))}else t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.rectChamferDt1+"<"+e.toFixed(4)+">: "+n}),q3.mRectangle.chamferDist1=Number(n),q3.mBranchStatus=X3.rChamferBranch2;break}case X3.rChamferBranchDt1:if(t.mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.nextDtPoint}),yield!1,n=jF.instance().getInputContent(),i=jF.instance().getKeyboardFlags(),i.esc)break;if(isNaN(n)||""===n)if(""===n&&i.enter)t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.nextDtPoint+n}),q3.mBranchStatus=X3.rChamferBranch2;else{let e=HZ.acquirePoint();e?(q3.mDt1SecondPt=e,a.mDistPt=void 0,q3.mRectangle.chamferDist1=RV.zcutDistance(q3.mDt1FirstPt,q3.mDt1SecondPt),t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.nextDtPoint+n}),q3.mBranchStatus=X3.rChamferBranch2):(t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.nextDtPoint+n}),t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.rectPtOrValue}))}else t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.nextDtPoint+n}),q3.mRectangle.chamferDist1=Number(n),q3.mBranchStatus=X3.rChamferBranch2;break;case X3.rChamferBranch2:{let e=XF.instance().getItem("rectangleChamferDist2","session");if((""===e||0===e)&&(e=q3.mRectangle.chamferDist1),e=e||0,t.mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.rectChamferDt2+"<"+e.toFixed(4)+">:"}),yield!1,n=jF.instance().getInputContent(),i=jF.instance().getKeyboardFlags(),i.esc)break;if(isNaN(n)||""===n)if(""===n&&i.enter)q3.mRectangle.chamferDist2=e||0,XF.instance().setItem("rectangleChamferDist1",q3.mRectangle.chamferDist1,"session"),XF.instance().setItem("rectangleChamferDist2",q3.mRectangle.chamferDist2,"session"),XF.instance().setItem("rectangleStatus","chamfer","session"),q3.mRectangle.radius=0,t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.rectChamferDt2+"<"+e.toFixed(4)+">: "+n}),q3.mBranchStatus=X3.rNFirstBranch;else{let i=HZ.acquirePoint();i?(t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.rectChamferDt2+"<"+e.toFixed(4)+">:"+n}),q3.mDt2FirstPt=i,a.mDistPt=i,q3.mBranchStatus=X3.rChamferBranchDt2):(t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.rectChamferDt2+"<"+e.toFixed(4)+">:"+n}),t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.rectPtOrValue}))}else t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.rectChamferDt2+"<"+e.toFixed(4)+">: "+n}),q3.mRectangle.chamferDist2=Number(n),XF.instance().setItem("rectangleChamferDist1",q3.mRectangle.chamferDist1,"session"),XF.instance().setItem("rectangleChamferDist2",q3.mRectangle.chamferDist2,"session"),XF.instance().setItem("rectangleStatus","chamfer","session"),q3.mRectangle.radius=0,q3.mBranchStatus=X3.rNFirstBranch;break}case X3.rChamferBranchDt2:if(t.mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.nextDtPoint}),yield!1,n=jF.instance().getInputContent(),i=jF.instance().getKeyboardFlags(),i.esc)break;if(isNaN(n)||""===n)if(""===n&&i.enter)XF.instance().setItem("rectangleChamferDist1",q3.mRectangle.chamferDist1,"session"),XF.instance().setItem("rectangleChamferDist2",q3.mRectangle.chamferDist2,"session"),XF.instance().setItem("rectangleStatus","chamfer","session"),q3.mRectangle.radius=0,t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.nextDtPoint+n}),q3.mBranchStatus=X3.rNFirstBranch;else{let e=HZ.acquirePoint();e?(q3.mDt2SecondPt=e,a.mDistPt=void 0,q3.mRectangle.chamferDist2=RV.zcutDistance(q3.mDt2FirstPt,q3.mDt2SecondPt),XF.instance().setItem("rectangleChamferDist1",q3.mRectangle.chamferDist1,"session"),XF.instance().setItem("rectangleChamferDist2",q3.mRectangle.chamferDist2,"session"),XF.instance().setItem("rectangleStatus","chamfer","session"),q3.mRectangle.radius=0,t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.nextDtPoint+n}),q3.mBranchStatus=X3.rNFirstBranch):(t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.nextDtPoint+n}),t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.rectPtOrValue}))}else t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.nextDtPoint+n}),q3.mRectangle.chamferDist2=Number(n),XF.instance().setItem("rectangleChamferDist1",q3.mRectangle.chamferDist1,"session"),XF.instance().setItem("rectangleChamferDist2",q3.mRectangle.chamferDist2,"session"),XF.instance().setItem("rectangleStatus","chamfer","session"),q3.mRectangle.radius=0,q3.mBranchStatus=X3.rNFirstBranch}if(a.mRectRadius=q3.mRectangle.radius,a.mChamferDist1=q3.mRectangle.chamferDist1,a.mChamferDist2=q3.mRectangle.chamferDist2,r)break}return q3.saveRectangle(),SF.log("矩形的数据",q3.mPoints),q3.mPoints=[],q3.mSaveFlag=!1,q3.mBranchStatus=X3.rNFirstBranch,SF.log("Rectangle命令执行结束"),!0},this.mExeCmd=this.exeCmd()}execute(){return!!this.mExeCmd.next().done}cmdString(){return"rectangle"}static saveRectangle(){let t=HZ._instance.getCurJig(),e=n7.instance().mGs;if(!n7.instance().mkEscapeCaret&&!n7.instance().isContinuousDraw()&&null!==e&&n7.instance().mDrawCommentBubble){let t=new QR,n=new QR;t.copy(q3.mRectangle.firstTarget),n.copy(q3.mRectangle.secondTarget),e.createRectangleBubble(cF(),[t,n])}!t||!q3.mSaveFlag||null!==q3.mCurView&&null!==q3.mCurView.mGraphicSystem&&(t.mParams={entityType:_B.kZcDbPolyline,polyline:{curve:{entity:{color:yB.kByLayer,layer:String(q3.mCurView.mGraphicSystem.mDimensionLayerHandle),transparency:90,lineweight:pB.kLnWtByLayer}},points:Array.prototype.concat.apply([],q3.mPoints.map((t=>Object.values(t)))),isClosed:1,convexity:q3.mConvexity}})}static resetFlags(){let t=jF.instance();t.setPointFlag(!1),t.setInputContent(""),t.setCommandFlags({enter:null,esc:null})}resetCmd(){this.mExeCmd=this.exeCmd()}}q3.mPoints=new Array,q3.mCurView=null,q3.mBranchStatus=X3.rNFirstBranch,q3.mRectangle={firstTarget:new QR,secondTarget:new QR,radius:0,chamferDist1:0,chamferDist2:0},q3.mConvexity=[],q3.mRsFirstPt=new QR,q3.mRsSecondPt=new QR,q3.mDt1FirstPt=new QR,q3.mDt1SecondPt=new QR,q3.mDt2FirstPt=new QR,q3.mDt2SecondPt=new QR,q3.mSaveFlag=!1;class $3{constructor(){this.mCoreUIOContextService=jF.instance()}static instance(){return $3._instance}putEvent(t){this.mCoreUIOContextService.setInputQueue(t)}}$3._instance=new $3;class K3{constructor(){this.mZcadCoreInputQueue=new $3,this.mCoreUIOContextService=jF.instance(),this.mUIOEventService=new nF}static instance(){return K3._instance}putEvent(t){this.mZcadCoreInputQueue.putEvent(t)}doProcessor(){let t=this.mCoreUIOContextService.getInputQueue(),e=this.mCoreUIOContextService.getEvent();this.mUIOEventService.isTheEventType(e.mType,eF.kMouseLBDown)&&(this.mCoreUIOContextService.setPointFlag(!0),this.mCoreUIOContextService.setPoint(e.mX,e.mY)),t.mPosNextPut++}wastAllMouseEvent(){const t=this.mCoreUIOContextService.getEvent();null!==t&&this.mUIOEventService.isMouseEvent(t.mType)&&this.mCoreUIOContextService.getEvent()}}K3._instance=new K3;var J3,Q3=((J3=Q3||(Q3={}))[J3.TOP=0]="TOP",J3[J3.BOTTOM=1]="BOTTOM",J3[J3.LEFT=2]="LEFT",J3[J3.RIGHT=3]="RIGHT",J3[J3.FRONT=4]="FRONT",J3[J3.BACK=5]="BACK",J3[J3.SOUTHWEST=6]="SOUTHWEST",J3[J3.SOUTHEAST=7]="SOUTHEAST",J3[J3.NORTHEAST=8]="NORTHEAST",J3[J3.NORTHWEST=9]="NORTHWEST",J3[J3.Orbit=10]="Orbit",Q3);let t4=[new qR(0,0,1),new qR(0,0,-1),new qR(-1,0,0),new qR(1,0,0),new qR(0,-1,0),new qR(0,1,0),new qR(-1,-1,1),new qR(1,-1,1),new qR(1,1,1),new qR(-1,1,1)],e4=new Map;for(let t=Q3.TOP;t<=Q3.NORTHWEST;t++)e4.set(t,t4[t]);var n4,i4=((n4=i4||(i4={}))[n4.ZoomAllSelect=0]="ZoomAllSelect",n4[n4.ZoomCenterSelect=1]="ZoomCenterSelect",n4[n4.ZoomExtentsSelect=2]="ZoomExtentsSelect",n4[n4.ZoomPreviousSelect=3]="ZoomPreviousSelect",n4[n4.ZoomWindowSelect=4]="ZoomWindowSelect",n4[n4.ZoomScaleSelect=5]="ZoomScaleSelect",n4[n4.ZoomDynamicSelect=6]="ZoomDynamicSelect",n4[n4.ZoomObjectSelect=7]="ZoomObjectSelect",n4[n4.ZoomVmax=8]="ZoomVmax",n4[n4.ZoomInOrOut=9]="ZoomInOrOut",i4);class r4{constructor(){this.mCenterPt=new QR,this.mSecondPickPt=new QR,this.mDetalY=0,this.mFactor=fj.ZcDrDefaultOptions.zoomLevel,this.mDHeight=0,this.mDWidth=0,this.mCenterDcsPnt=new QR,this.mInputNumber=0,this.mCurView=null,this.mFactor=this.getSettingFactor()}static instance(){return r4._instance}getSettingFactor(){return fj.ZcDrDefaultOptions.zoomLevel}updateCurViewPortData(){if(null===this.mCurView)return;this.mCurView.mFieldHeight=this.mDHeight;let t=this.mCenterDcsPnt.sub2vec(new QR);this.mCurView.dolly(t),this.mCurView.zoom(this.mFactor)}doZoomOperate(t,e=null,n){if(e)this.mCurView=e;else{let t=n7.instance().mGs;if(null===t)return!0;let e=t.mGsDevice;if(null===e)return!0;this.mCurView=e.getViewByLockFlag()}switch(t){case i4.ZoomAllSelect:this.calCurViewPortData(!1);break;case i4.ZoomCenterSelect:this.centerSelect();break;case i4.ZoomExtentsSelect:this.calCurViewPortData(!0,n);break;case i4.ZoomInOrOut:this.zoomInOrOut()}if(this.mCurView){let t=this.mCurView.mGraphicSystem;this.mCurView.mViewportTableRec.getViewInfo().mIsOverallView&&t&&t.updateOverallView(this.mCurView,"zoom")}return MF.instance().broardcast(_F.GsInteraction,{type:"draw",data:{type:"AllLayers"}}),this.mCurView&&mj.instance().setCurViewPortData(this.mCurView),!0}zoomScale(t){let e=this.calcWidthHeightRatio();if(null===this.mCurView)return;let n=this.mCurView.mViewportTableRec.getUpperRight(),i=this.mCurView.mViewportTableRec.getLowerLeft();this.mDHeight=Math.max((n.mX-i.mX)/e,n.mY-i.mY),this.mDWidth=this.mDHeight*e,this.updateCurViewPortData(),this.clearCurViewPortData()}calCurViewPortData(t,e){if(null===this.mCurView)return!1;let n=new NU;if(t&&e)n.copy(e);else{let t=this.mCurView.mViewportTableRec.getViewInfo();n.copy(t.mViewExtends)}let i=new JR;i.copy(this.mCurView.viewingMatrix()),i.setEntryRank(0,3,0),i.setEntryRank(1,3,0),i.setEntryRank(2,3,0);let r=(n.mMax.mX-n.mMin.mX)/2+n.mMin.mX,a=(n.mMax.mY-n.mMin.mY)/2+n.mMin.mY,o=(n.mMax.mZ-n.mMin.mZ)/2+n.mMin.mZ;XR.isZero(r)&&(r=0),XR.isZero(a)&&(a=0),XR.isZero(o)&&(o=0);let s=new qR;s.copy(this.mCurView.mEyeVecotr);let l=new qR(r-this.mCurView.mTarget.mX,a-this.mCurView.mTarget.mY,o-this.mCurView.mTarget.mZ).dotProduct(s),c=new qR(r,a,o);c=qR.SUB(c,s.mul2Vec(l));let h=qR.SUB(c,this.mCurView.mTarget.asVector());this.mCurView.mTarget.addVector(h),this.mCurView.mPosition.addVector(h),this.mCurView.mCurZoomFactor=1;let d=this.mCurView.mScreenRect.mWidth,u=new Array;u.push(new qR(n.mMax.mX,n.mMax.mY,n.mMax.mZ)),u.push(new qR(n.mMax.mX,n.mMin.mY,n.mMax.mZ)),u.push(new qR(n.mMin.mX,n.mMax.mY,n.mMax.mZ)),u.push(new qR(n.mMin.mX,n.mMin.mY,n.mMax.mZ)),u.push(new qR(n.mMax.mX,n.mMax.mY,n.mMin.mZ)),u.push(new qR(n.mMax.mX,n.mMin.mY,n.mMin.mZ)),u.push(new qR(n.mMin.mX,n.mMax.mY,n.mMin.mZ)),u.push(new qR(n.mMin.mX,n.mMin.mY,n.mMin.mZ));let m=u[0].asPoint();m.mulMatrix(i);let p=m.mY,g=m.mY,f=m.mX,b=m.mX;for(let t=1;t<u.length;++t){let e=u[t].asPoint();e.mulMatrix(i),e.mY<p&&(p=e.mY),e.mY>g&&(g=e.mY),e.mX<f&&(f=e.mX),e.mX>b&&(b=e.mX)}let y=new qR(0,g-p,0);y.transformBy(i.inverse());let v=new qR(b-f,0,0);v.transformBy(i.inverse());let w=0;w=Math.abs(y.length());let x=w/this.mCurView.mScreenRect.mHeight,C=0,k=Math.abs(v.length());return C=k/x,C>d&&(x=k/this.mCurView.mScreenRect.mWidth,w=this.mCurView.mScreenRect.mHeight*x),w+=t?2*x:40*x,w>XR.EPSILON6&&w<w6.ZWMAX_RANGE&&this.mCurView.setFieldHeight(w),!0}centerSelect(){const t=this.mCenterPt;if(null===this.mCurView)return;if(0===this.mInputNumber){let e=t.asVector();e.substract(this.mSecondPickPt.asVector()),this.mInputNumber=2*Math.abs(e.mY)}let e=new oB;if(e.mX=t.mX,e.mY=t.mY,null===this.mCurView)return;let n=this.mCurView.mViewportTableRec.getViewInfo(),i=new NU;i.copy(n.mViewExtends);let r=new JR;r.copy(this.mCurView.viewingMatrix()),r.setEntryRank(0,3,0),r.setEntryRank(1,3,0),r.setEntryRank(2,3,0);let a=new qR(e.mX,e.mY,(i.mMax.mZ-i.mMin.mZ)/2+i.mMin.mZ),o=qR.SUB(a,this.mCurView.mTarget.asVector()),s=U6.kNorm,l=1;if(l=this.mInputNumber/this.mCurView.mFieldHeight,s=this.mCurView.canZoomOut(l,o),s!==U6.kNorm)return void this.promptInfo(s);this.mCurView.mTarget.addVector(o),this.mCurView.mPosition.addVector(o),this.mCurView.mCurZoomFactor=1,i.transformBy(r);let c=0;c=this.mInputNumber,this.mCurView.setFieldHeight(c)}zoomInOrOut(){if(this.mInputNumber>0&&null!==this.mCurView){let t=U6.kNorm;t=this.mCurView.canZoomOut(this.mInputNumber,new qR),t===U6.kNorm?this.mCurView.zoom(this.mInputNumber):this.promptInfo(t)}}promptInfo(t){t===U6.kZoomInMax?MF.instance().broardcast(_F.History,{history:qF.mLanguagePackage.CannotZoomIn}):t===U6.kZoomOutMax&&MF.instance().broardcast(_F.History,{history:qF.mLanguagePackage.CannotZoomOut})}calcWidthHeightRatio(){let t=1.5;return null===this.mCurView||(t=this.mCurView.mFieldWidth/this.mCurView.mFieldHeight,XR.isZero(t)&&(t=1.5)),t}clearCurViewPortData(){this.mDetalY=0,this.mFactor=this.getSettingFactor(),this.mDHeight=0,this.mDWidth=0,this.mCenterDcsPnt=new QR}}r4._instance=new r4;class a4{constructor(){this.exeCmd=function*(){let t=n7.instance();if(!t||!t.mGs)return;let e=t.mCmdExecutionStatus;if(!e)return!0;if(t.mGs.mCurView&&t.mGs.mCurView.isOverallView()&&!t.mGs.isInEditMode())return a4.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.command_permissionLimited}),!0;SF.log("-VIEW命令开始执行"),a4.mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.command_inputOptins+": ",history:""});let n=n7.instance().mCommandBranch.mainBranch;for(void 0===n&&(yield!1);;){e=t.mCmdExecutionStatus;let i=n||jF.instance().getInputContent(),r=i.toUpperCase();if(!e){a4.mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.command+":",history:"*"+qF.mLanguagePackage.cancel+"*"});break}if("O"===r){for(a4.mZcBroadcast.broardcast(_F.History,{label:""+(qF.mLanguagePackage.command_inputOptins+qF.mLanguagePackage.command_directionTip2),history:qF.mLanguagePackage.command_inputOptins+qF.mLanguagePackage.command_directionTip1+" : "+i+" "}),yield!1;;){if(e=t.mCmdExecutionStatus,!e){a4.mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.command+":",history:"*"+qF.mLanguagePackage.cancel+"*"});break}let n=jF.instance().getInputContent(),i=!0;switch(n.toUpperCase()){case"T":case"":if(a4.changeDir(Q3.TOP,n,!0)||(yield!1),a4.checkViewIsOverallView())continue;break;case"B":if(a4.changeDir(Q3.BOTTOM,n,!0)||(yield!1),a4.checkViewIsOverallView())continue;break;case"F":if(a4.changeDir(Q3.FRONT,n,!0)||(yield!1),a4.checkViewIsOverallView())continue;break;case"BA":if(a4.changeDir(Q3.BACK,n,!0)||(yield!1),a4.checkViewIsOverallView())continue;break;case"L":if(a4.changeDir(Q3.LEFT,n,!0)||(yield!1),a4.checkViewIsOverallView())continue;break;case"R":if(a4.changeDir(Q3.RIGHT,n,!0)||(yield!1),a4.checkViewIsOverallView())continue;break;default:a4.mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.command_inputOptins+qF.mLanguagePackage.command_directionTip2+": ",history:""+qF.mLanguagePackage.command_invalid_keywords}),i=!1,yield!1}if(i)break}break}if("TOP"===r||"_TOP"===r){if(a4.changeDir(Q3.TOP,i)||(yield!1),a4.checkViewIsOverallView())continue;break}if("BOTTOM"===r||"_BOTTOM"===r){if(a4.changeDir(Q3.BOTTOM,i)||(yield!1),a4.checkViewIsOverallView())continue;break}if("LEFT"===r||"_LEFT"===r){if(a4.changeDir(Q3.LEFT,i)||(yield!1),a4.checkViewIsOverallView())continue;break}if("RIGHT"===r||"_RIGHT"===r){a4.changeDir(Q3.RIGHT,i)||(yield!1);break}if("FRONT"===r||"_FRONT"===r){if(a4.changeDir(Q3.FRONT,i)||(yield!1),a4.checkViewIsOverallView())continue;break}if("BACK"===r||"_BACK"===r){if(a4.changeDir(Q3.BACK,i)||(yield!1),a4.checkViewIsOverallView())continue;break}if("SWISO"===r||"_SWISO"===r){if(a4.changeDir(Q3.SOUTHWEST,i)||(yield!1),a4.checkViewIsOverallView())continue;break}if("SEISO"===r||"_SEISO"===r){if(a4.changeDir(Q3.SOUTHEAST,i)||(yield!1),a4.checkViewIsOverallView())continue;break}if("NEISO"===r||"_NEISO"===r){if(a4.changeDir(Q3.NORTHEAST,i)||(yield!1),a4.checkViewIsOverallView())continue;break}if("NWISO"===r||"_NWISO"===r){if(a4.changeDir(Q3.NORTHWEST,i)||(yield!1),a4.checkViewIsOverallView())continue;break}if("LA"===r||"D"===r||"R"===r||"S"===r||"U"===r||"W"===r)for(;;){if(e=t.mCmdExecutionStatus,!e){a4.mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.command+":",history:"*"+qF.mLanguagePackage.cancel+"*"});break}let n=jF.instance().getInputContent().toUpperCase();if("LA"!==n&&"D"!==n&&"R"!==n&&"S"!==n&&"U"!==n&&"W"!==n)break;a4.mZcBroadcast.broardcast(_F.History,{label:"",history:""+(n+qF.mLanguagePackage.command_unfinished)}),yield!1}else a4.mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.command_inputOptins+qF.mLanguagePackage.command_directionTip1+": ",history:""+qF.mLanguagePackage.command_invalid_keywords}),yield!1}return a4.mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.command+":",history:""}),SF.log("-VIEW命令执行结束"),!0},this.mExeCmd=this.exeCmd()}execute(){return!!this.mExeCmd.next().done}cmdString(){return"-view"}resetCmd(){this.mExeCmd=this.exeCmd()}static changeDir(t,e,n){let i=n7.instance();if(!i||!i.mGs||!i.mGs.mGsManager)return;let r=i.mGs.mGsManager,a=i.mGs.mCurView;if(a){if(i.mGs.setViewDirection(t),i.mGs.setDirChangeStatus(!0),e&&a4.mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.command+":",history:(qF.mLanguagePackage.command_inputOptins+n?qF.mLanguagePackage.command_directionTip2:qF.mLanguagePackage.command_directionTip1)+": "+e}),r.isInPaperSpace()&&a.isOverallView())return a4.mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.command_selectViewport+":",history:""}),a4.mCanChangeLayout=!1,!1;{let e=a.mViewportTableRec.getViewInfo(),n=e4.get(t);return e.mViewDirection.copy(n),r.changeViewDirection(a),r4.instance().doZoomOperate(i4.ZoomExtentsSelect),i.mGs.setDirChangeStatus(!1),MF.instance().broardcast(_F.ChangeDirection,{data:t}),a.createUcsIcon(),a.initVpForWebAssembly(),r.getOrthographicView(e.mViewDirection)!==DJ.kNonOrthoView&&i.mGs.hasUCSVPOrUCSFollow(),!0}}}static checkViewIsOverallView(){let t=n7.instance();if(!t||!t.mGs||!t.mGs.mGsManager)return;let e=t.mGs.mCurView;return e?!(!t.mGs.mGsManager.isInPaperSpace()||!e.isOverallView()):void 0}}a4.mZcBroadcast=MF.instance(),a4.mCanChangeLayout=!0;class o4{constructor(){this.mZcadCoreInputQueue=new $3,this.mZcadCmdContext=new $F}static instance(){return o4._instance}putEvent(t){this.mZcadCoreInputQueue.putEvent(t)}doProcessor(){const t=this.mZcadCmdContext.mCoreUIOContextService.getInputQueue(),e=this.mZcadCmdContext.mCoreUIOContextService.getEvent();let n=document.getElementById("inputCommand");if(e)switch(e.mType){case eF.kKeyboard:break;case eF.kEnterCaret:if(null===n)break;this.mZcadCmdContext.mCoreUIOContextService.setInputContent(n.value),this.mZcadCmdContext.mCoreUIOContextService.setCommandFlags({enter:!0,esc:!1});break;case eF.kEscapeCaret:if(n7.instance().mTriggerByClickButton)break;this.mZcadCmdContext.mCoreUIOContextService.setCommandFlags({enter:null,esc:!0}),a4.mCanChangeLayout=!0;break;default:SF.log("unkown operation")}t.mPosNextPut++}}o4._instance=new o4;class s4{constructor(){this.mZcCmdEntity=null,this.mZcadCmdContext=new $F,this.mCoreUIOContextService=jF.instance()}static instance(){return s4._instance}tryToParseExecuteAsACommand(){const t=this.mCoreUIOContextService.getKeyboardFlags();if(t.enter){if(!n7.instance().mCmdExecutionStatus){let t=this.mCoreUIOContextService.getInputContent();if(""===t){const e=n7.instance().mCmdHistoryList.length;t=0===e?"HELP":n7.instance().mCmdHistoryList[e-1]}n7.instance().setExecuteCmd(t)||(MF.instance().broardcast(_F.History,{label:"",history:qF.mLanguagePackage.command+":"+t}),MF.instance().broardcast(_F.History,{label:"",history:qF.mLanguagePackage.unknownCommand+"“"+t+"”。"+qF.mLanguagePackage.getHelp}))}this.mCoreUIOContextService.clearInputContent()}return n7.instance().mCmdExecutionStatus&&t.enter||t.esc}getCommandEntity(){return this.mZcCmdEntity}}s4._instance=new s4;class l4{constructor(){this.mZcadCoreInputMouse=new K3,this.mZcadCoreInputKeyboard=new o4,this.mCoreUIOContextService=jF.instance(),this.mUIOEventService=new nF,this.mZcadCmdSchd=new s4,this.mCanExecuteCommand=!1,this.mZcadCmdContext=new $F}static instance(){return l4._instance}triggerCommandExe(){return n7.instance().isEndMobileContinuousBubbleCmd()&&(this.mCanExecuteCommand=!0),n7.instance().mInterruptCmdExe?(this.mZcadCoreInputKeyboard.putEvent({mX:null,mY:null,mType:eF.kEscapeCaret,mChar:"interrupt",mModifier:0}),(new OF).pub(EF.ESCAPE,{enter:null,esc:!0}),jF.instance().setCommandFlags({enter:!1,esc:!0}),n7.instance().mkEscapeCaret=!0):n7.instance().mAutoExecuteCmd&&(this.mZcadCoreInputKeyboard.putEvent({mX:null,mY:null,mType:eF.kEnterCaret,mChar:"enter",mModifier:0}),n7.instance().mAutoExecuteCmd=!1,this.mCanExecuteCommand=!0),(n7.instance().mTriggerByClickButton||""!==n7.instance().mNextExecuteCmd)&&(n7.instance().mTriggerByClickButton=!1,this.mCanExecuteCommand=!0),this.mCanExecuteCommand}resetCommandExeFlag(){this.mCanExecuteCommand=!1}putEvent(t,e=1){const n={mX:t.offsetX?t.offsetX*e:null,mY:t.offsetY?t.offsetY*e:null,mType:this.translateData(t),mChar:t.key&&1===t.key.length?t.key:null,mModifier:0};let i=jF.instance().getInputValue();if(this.mUIOEventService.isMouseEvent(n.mType)&&""===i){this.mZcadCoreInputMouse.putEvent(n);const i=jF.instance().getRightMenuStatus();this.mUIOEventService.isTheEventType(n.mType,eF.kMouseMove)?!i&&HJ.mCoordinateSwitch&&this.mZcadCmdSchd.mZcadCmdContext.moveWithMouse(t.offsetX*e,t.offsetY*e):this.mUIOEventService.isTheEventType(n.mType,eF.kMouseLBDown)?(this.mZcadCmdContext.keepFocusInCmdPanel(!1),HJ.mCoordinateSwitch&&this.mZcadCmdSchd.mZcadCmdContext.moveWithMouse(t.offsetX*e,t.offsetY*e)):this.mZcadCmdSchd.mZcadCmdContext.moveWithMouse(t.offsetX*e,t.offsetY*e,"reset")}else this.mUIOEventService.isKeyboardEvent(n.mType)&&this.mZcadCoreInputKeyboard.putEvent(n)}getCoreInput(){let t=jF.instance().getEvent();if(this.mCanExecuteCommand=!1,t)if(this.mUIOEventService.isKeyboardEvent(t.mType))jF.instance().setCommandFlags({enter:null,esc:null}),this.mZcadCoreInputKeyboard.doProcessor(),this.mCanExecuteCommand=this.mZcadCmdSchd.tryToParseExecuteAsACommand();else if(this.mUIOEventService.isMouseEvent(t.mType))if(this.mZcadCoreInputMouse.doProcessor(),this.mUIOEventService.isMouseDownEvent(t.mType))if(!n7.instance().mCmdExecutionStatus&&n7.instance()&&n7.instance().mGs){let t=n7.instance().mGs;t&&!t.getDirChangeStatus()&&MF.instance().broardcast(_F.History,{label:"",history:qF.mLanguagePackage.oppositeCorner+":"})}else this.mCanExecuteCommand=!0;else this.mCanExecuteCommand=!1}translateData(t){let e=eF.kInvalid,n=n7.instance().mCmdExecutionStatus;switch(n7.instance().mkEscapeCaret=!1,t.type){case"dblclick":e=eF.kMouseLBDblClick;break;case"mousemove":e=eF.kMouseMove;break;case"mousedown":e=2===t.button?eF.kMouseRBDown:1===t.button?eF.kMouseMBDown:eF.kMouseLBDown;break;case"mouseup":e=2===t.button?eF.kMouseRBUp:1===t.button?eF.kMouseMBDown:eF.kMouseLBUp;break;case"wheel":e=eF.kMouseMBWheel;break;case"keydown":switch(t.code){case"Space":if(jF.mBlankControl===YF.kInitialBlankTerminatesInput)break;n7.instance().mCmdExecutionStatus||MF.instance().broardcast(_F.History,{space:"Space"}),e=eF.kEnterCaret,n&&(this.mCanExecuteCommand=!0);break;case"NumpadEnter":case"Enter":n7.instance().mCmdExecutionStatus||MF.instance().broardcast(_F.History,{space:"Space"}),e=eF.kEnterCaret,n&&(this.mCanExecuteCommand=!0);break;case"Escape":e=eF.kEscapeCaret,n7.instance().mkEscapeCaret=!0,!n7.instance().mModalOpened&&MF.instance().broardcast(_F.History,{label:qF.mLanguagePackage.command+":",history:XF.instance().getItem("inputLabel","session")+"*"+qF.mLanguagePackage.cancel+"*"}),n7.instance().mCmdExecutionStatus=!1,n7.instance().mExecuteEditableCmd=!1,this.mCanExecuteCommand=!0,(new OF).pub(EF.ESCAPE,{enter:null,esc:!0});break;default:e=eF.kKeyboard}}return e}}l4._instance=new l4;class c4{constructor(){this.mZcUIOProcessor=l4.instance(),this.mCmd=null}clearExecuteCmd(){this.mCmd=null,n7.instance().resetExecuteCmd(),this.mZcUIOProcessor.resetCommandExeFlag()}getExecuteCmd(){return this.mZcUIOProcessor.triggerCommandExe()?(this.mCmd=n7.instance().mExecuteCmdEntity,this.mCmd):null}getUIOProcessor(){return this.mZcUIOProcessor}handleUserInput(){this.mZcUIOProcessor.getCoreInput()}}class h4{static swtichToCmdContext(){h4.mNGCmdContext.next()}}h4.mNGCmdContext=function*(){h4.mCmd=null;let t=new c4;for(;;){if(t.handleUserInput(),t.mZcUIOProcessor.triggerCommandExe()&&(null==h4.mCmd&&(h4.mCmd=t.getExecuteCmd()),null!=h4.mCmd))if(n7.instance().mInterruptCmdExe)MF.instance().broardcast(_F.History,{label:qF.mLanguagePackage.command+":",history:XF.instance().getItem("inputLabel","session")+"*"+qF.mLanguagePackage.cancel+"*"}),h4.mCmd.execute(),h4.mCmd=null,t.clearExecuteCmd();else{let e=h4.mCmd.execute();e?e instanceof Promise?e.then((e=>{e?null!==t.mCmd&&(h4.mCmd=null,t.clearExecuteCmd()):(t.getUIOProcessor().resetCommandExeFlag(),HZ._instance.doJig())})):null!==t.mCmd&&(h4.mCmd=null,t.clearExecuteCmd()):(t.getUIOProcessor().resetCommandExeFlag(),HZ._instance.doJig())}yield}}(),h4.mCmd=null;var d4,u4,m4=((u4=m4||(m4={}))[u4.PROJ_EDIT=20002]="PROJ_EDIT",u4[u4.PROJ_DELETE=20003]="PROJ_DELETE",u4[u4.PROJ_TURN=20005]="PROJ_TURN",u4[u4.PROJ_ROLE_MANAGE=20009]="PROJ_ROLE_MANAGE",u4[u4.MBR_INVITE=30001]="MBR_INVITE",u4[u4.MBR_UPDATE_ROLE=30003]="MBR_UPDATE_ROLE",u4[u4.MBR_REMOVE=30004]="MBR_REMOVE",u4[u4.MBR_LEAVE=30007]="MBR_LEAVE",u4[u4.DWG_CREATE_FOLDER=40001]="DWG_CREATE_FOLDER",u4[u4.DWG_READ=40002]="DWG_READ",u4[u4.DWG_EDIT=40003]="DWG_EDIT",u4[u4.DWG_UPLOAD=40004]="DWG_UPLOAD",u4[u4.DWG_DOWNLOAD=40005]="DWG_DOWNLOAD",u4[u4.DWG_SHARE=40007]="DWG_SHARE",u4[u4.DWG_DUPLICATE=40008]="DWG_DUPLICATE",u4[u4.DWG_MOVE=40009]="DWG_MOVE",u4[u4.DWG_RENAME=40010]="DWG_RENAME",u4[u4.DWG_DELETE_DOC=40011]="DWG_DELETE_DOC",u4[u4.DWG_ANNOTATION=40012]="DWG_ANNOTATION",u4[u4.DWG_CONCERN_DOC=40013]="DWG_CONCERN_DOC",u4[u4.DWG_PLOT=40014]="DWG_PLOT",u4[u4.DWG_LOCAL_OPEN=40019]="DWG_LOCAL_OPEN",u4[u4.DWG_DOC_DETAIL=40020]="DWG_DOC_DETAIL",u4[u4.DWG_DOC_CONVERSION=40021]="DWG_DOC_CONVERSION",u4[u4.DWG_VERSION_LIST=70001]="DWG_VERSION_LIST",u4[u4.DWG_VERSION_CREATE=70002]="DWG_VERSION_CREATE",u4[u4.DWG_VERSION_UPDATE_LOCAL=70003]="DWG_VERSION_UPDATE_LOCAL",u4[u4.DWG_VERSION_DELETE=70004]="DWG_VERSION_DELETE",u4[u4.DWG_VERSION_RESTORE=70005]="DWG_VERSION_RESTORE",u4[u4.DWG_VERSION_EDIT=70006]="DWG_VERSION_EDIT",u4[u4.DWG_VERSION_DIFF=70007]="DWG_VERSION_DIFF",u4[u4.DWG_VERSION_DETAIL=70008]="DWG_VERSION_DETAIL",u4[u4.DWG_VERSION_UPDATE_CLOUD=70009]="DWG_VERSION_UPDATE_CLOUD",u4[u4.FONT_UPLOAD=80001]="FONT_UPLOAD",u4[u4.FONT_DELETE=80002]="FONT_DELETE",u4[u4.FONT_DOWNLOAD=80003]="FONT_DOWNLOAD",u4[u4.FONT_CONFIG=80006]="FONT_CONFIG",u4[u4.FONT_SET_DEFAULT=20013]="FONT_SET_DEFAULT",m4),p4=((d4=p4||(p4={}))[d4.Open=0]="Open",d4[d4.Compare=1]="Compare",d4[d4.Restore=2]="Restore",d4[d4.EditVersion=3]="EditVersion",d4[d4.CreateVersion=4]="CreateVersion",d4[d4.Delete=5]="Delete",d4[d4.Switch=6]="Switch",d4[d4.SwitchEnd=7]="SwitchEnd",d4[d4.SetPermissions=8]="SetPermissions",d4[d4.EditEnd=9]="EditEnd",d4[d4.versionEmpty=10]="versionEmpty",d4[d4.detailReq=11]="detailReq",d4[d4.detailRes=12]="detailRes",p4);const g4=[p4.EditVersion,p4.CreateVersion],f4=[p4.Restore,p4.EditVersion,p4.Delete],b4=[{name:"打开",type:p4.Open,translate:"version_open"},{name:"版本对比",type:p4.Compare,permission:m4.DWG_VERSION_DIFF,translate:"version_compare"},{name:"编辑版本信息",type:p4.EditVersion,permission:m4.DWG_VERSION_EDIT,translate:"version_edit"},{name:"恢复到此版本",type:p4.Restore,permission:m4.DWG_VERSION_RESTORE,translate:"version_restore"},{name:"从此处创建版本",type:p4.CreateVersion,permission:m4.DWG_VERSION_CREATE,translate:"version_create"},{name:"删除",type:p4.Delete,permission:m4.DWG_VERSION_DELETE,translate:"version_delete"}];let y4=(()=>{class t{constructor(t){this.message=t,this.mApp=null,this.webSocket=null}initDwgService(){null==this.mApp?(this.mApp=new U5,this.mApp.init(),this.mApp.hideControl(!0)):this.mApp&&(this.mApp.init(),this.mApp.hideControl(!1))}setWebSocket(t){this.mApp&&(this.webSocket=t,this.mApp.setWebSocket(t))}setMessageService(t){this.mApp&&this.mApp.setMessageService(t)}changeLayout(t){if(null!=this.mApp){let e=this.mApp.database();if(null!==e){let n=e.getLayoutPaperId(t);if(n!=BigInt(0)){let e=this.mApp.checkLayoutBTRExist(n);if(null!=e&&e.getViewCount()>0)return this.mApp.showBTRModel(e),this.mApp.changeLayout(n),this.switchLayout(e7.MultipleChangeLayout,t),!0}}}return MF.instance().broardcast(_F.UpdatePage,{type:"loading",data:{isLoading:!0,loadingProgressPreset:{phase:OW.init}}}),!!this.switchLayout(e7.ChangeLayout,t)}switchLayout(t,e){if(null===this.mApp||null===this.mApp.mGs)return!1;if(this.webSocket&&this.mApp.mGs.isInEditMode()){let n={id:t,function:11,data:{docId:this.mApp.mGs.mDocId,layoutId:String(e)}};return this.webSocket.sendMessage(n),!0}return!1}hideDwgControl(t){null!=this.mApp&&this.mApp.hideControl(t)}loadDipslayData(t){var e=this;return jR((function*(){null!=e.mApp&&(null==e.mApp.database()?(yield e.mApp.openingBytesDrawing(t))||SF.logError(qF.mLanguagePackage.failedOpenDrawing,SF.errorStatus.loadingError):yield e.mApp.appendBytesDrawing(t),setTimeout((()=>{let t=jF.instance().getCurView();t&&MF.instance().broardcast(_F.StatusBar,{type:"switch",data:{switch:t.mGridSwitch,name:"GRID"}})}),0))}))()}loadDisplayDataFile(t,e){return sj.ajax({type:"get",data:"",url:t,dataType:e?"blob":"json"},((t,e)=>{if(0==t.byteLength)SF.logError("The LMF file size is zero.",SF.errorStatus.readerError);else if(IJ.mEnableWASMWrapper){let e=BZ(t);null==U5._instance.database()?(mj.instance().openDisplayData(t),this.loadDipslayData(e)):mj.instance().appendLayoutData(t)}else{let e=BZ(t);this.loadDipslayData(e)}})),!0}repaint(){this.mApp&&this.mApp.repaint()}clear(t=!0){null!=this.mApp&&this.mApp.clear(t),this.webSocket&&(this.webSocket.connectSuccess&&this.webSocket.closeSocket(),this.webSocket.clear())}getApp(){return this.mApp}}return t["ɵfac"]=function(e){return new(e||t)(wi(HA))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"],providedIn:"root"}),t})();const v4=["statusBar"],w4=["commentComponent"];function x4(t,e){if(1&t){const t=Jo();Yo(0,"i",34),es("click",(function(){return Ne(t),os(2).back()})),jo()}}const C4=function(t){return{color:t}};function k4(t,e){if(1&t&&(qo(0),Yo(1,"span",35),Yo(2,"span",36),Bs(3),jo(),Yo(4,"span"),Bs(5,"VS"),jo(),Yo(6,"span",36),Bs(7),jo(),jo(),$o()),2&t){const t=os(2);sa(2),Uo("ngStyle",fc(4,C4,t.fcmpBaseFileColor)),sa(1),Vs(t.fcmpBaseFileName),sa(3),Uo("ngStyle",fc(6,C4,t.fcmpCompareFileColor)),sa(1),Vs(t.fcmpCompareFileName)}}function S4(t,e){if(1&t&&(Yo(0,"span"),Bs(1),jo()),2&t){const t=os(2);sa(1),Vs(t.fileName)}}function P4(t,e){if(1&t&&(Yo(0,"div",30),Ho(1,x4,1,0,"i",31),Ho(2,k4,8,8,"ng-container",32),Ho(3,S4,2,1,"ng-template",null,33,Yc),jo()),2&t){const t=Go(4),e=os();sa(1),Uo("ngIf",!e.isForSDK),sa(1),Uo("ngIf",e.fcmpBaseFileName&&e.fcmpCompareFileName)("ngIfElse",t)}}function _4(t,e){if(1&t){const t=Jo();gn(),Yo(0,"svg",8,37),es("click",(function(){return Ne(t),os().toHome()})),Xo(2,"use",38),jo()}}function M4(t,e){if(1&t){const t=Jo();gn(),Yo(0,"svg",39,37),es("click",(function(){return Ne(t),os().toShare()})),Xo(2,"use",40),jo()}}function D4(t,e){if(1&t){const t=Jo();gn(),Yo(0,"use",44),es("click",(function(){return Ne(t),os(2).changeTheme("light")})),jo()}}function E4(t,e){if(1&t){const t=Jo();gn(),Yo(0,"use",45),es("click",(function(){return Ne(t),os(2).changeTheme("dark")})),jo()}}function O4(t,e){if(1&t&&(gn(),Yo(0,"svg",41),Ho(1,D4,1,0,"use",42),Ho(2,E4,1,0,"use",43),jo()),2&t){const t=os();sa(1),Uo("ngIf","dark"===t.getThemeColor()),sa(1),Uo("ngIf","light"===t.getThemeColor())}}function A4(t,e){1&t&&(gn(),Xo(0,"use",46))}function T4(t,e){1&t&&(gn(),Xo(0,"use",47))}function I4(t,e){1&t&&(gn(),Xo(0,"use",48))}function L4(t,e){if(1&t){const t=Jo();gn(),Yo(0,"svg",8,37),es("click",(function(){return Ne(t),os().moreActions()})),Xo(2,"use",49),jo()}}function z4(t,e){if(1&t){const t=Jo();Yo(0,"div",50),Yo(1,"div",51),es("click",(function(){return Ne(t),os().toHelp()})),gn(),Yo(2,"svg",25),Xo(3,"use",52),jo(),fn(),Yo(4,"span"),Bs(5),Cc(6,"translate"),jo(),jo(),jo()}2&t&&(sa(5),Vs(kc(6,1,"help")))}function R4(t,e){if(1&t){const t=Jo();Yo(0,"div",53),Xo(1,"img",54),Yo(2,"div",55),Yo(3,"span"),Bs(4),Cc(5,"translate"),jo(),Yo(6,"span"),Bs(7),Cc(8,"translate"),jo(),jo(),gn(),Yo(9,"svg",56),es("click",(function(){return Ne(t),os().mShowQrCode=!1})),Xo(10,"use",57),jo(),jo()}if(2&t){const t=os();sa(1),Uo("src",t.qrCode,Hr),sa(3),Vs(kc(5,3,"qr_code_tips_one")),sa(3),Vs(kc(8,5,"qr_code_tips_two"))}}function F4(t,e){if(1&t){const t=Jo();Yo(0,"div",24),es("click",(function(){Ne(t);const e=os();return e.activeComment(e.mobileCommentPanelType.commentToolPanel)})),gn(),Yo(1,"svg",25),Xo(2,"use",58),jo(),fn(),Yo(3,"span"),Bs(4),Cc(5,"translate"),jo(),jo()}2&t&&(sa(4),Vs(kc(5,1,"commentMobile_commentTool")))}function B4(t,e){if(1&t){const t=Jo();Yo(0,"div",24),es("click",(function(){Ne(t);const e=os();return e.activeComment(e.mobileCommentPanelType.commentPanel)})),Yo(1,"nz-badge",59),gn(),Yo(2,"svg",25),Xo(3,"use",60),jo(),jo(),fn(),Yo(4,"span"),Bs(5),Cc(6,"translate"),jo(),jo()}if(2&t){const t=os();sa(1),Uo("nzCount",t.mCommentCount),sa(4),Vs(kc(6,2,"commentMobile_comment"))}}function V4(t,e){1&t&&(gn(),fn(),Yo(0,"span"),Bs(1),Cc(2,"translate"),jo()),2&t&&(sa(1),Vs(kc(2,1,"editor_tool_layer")))}function N4(t,e){1&t&&(gn(),fn(),Yo(0,"span"),Bs(1),Cc(2,"translate"),jo()),2&t&&(sa(1),Vs(kc(2,1,"editor_xrefPanel")))}function H4(t,e){1&t&&(gn(),fn(),Yo(0,"span"),Bs(1),Cc(2,"translate"),jo()),2&t&&(sa(1),Vs(kc(2,1,"editor_layout")))}var G4,Z4=((G4=Z4||(Z4={}))[G4.commentToolPanel=1]="commentToolPanel",G4[G4.commentPanel=2]="commentPanel",Z4);let U4=(()=>{class t{constructor(t,e){this.changeDetectorRef=e,this.mLayoutList=[],this.mLayoutIndex=0,this.fileName="",this.qrCode="",this.selectLayout=new Dc,this.getShareInfo=new Dc,this.mZcadCmdContext=new $F,this.gridVis=!1,this.lineWeightVis=!1,this.moreActionsVis=!1,this.isFullscreen=!1,this.layerVis=!1,this.xrefVis=!1,this.layoutVis=!1,this.commentVis=!1,this.isForSDK=tU.forSDK,this.isMiniProgram=fF,this.mShowComment=!0,this.isAnonymous=!1,this.mShowQrCode=!0,this.mobileCommentPanel=Z4.commentToolPanel,this.mobileCommentPanelType=Z4,this.mCommentCount=0,this.isMaster="Master"===ZwCloud2D.type,this.hasHomeClick=!1,this.timeout=0,this.fcmpBaseFileName="",this.fcmpCompareFileName="",this.fcmpBaseFileColor="rgba(0,255,0,1)",this.fcmpCompareFileColor="rgba(255,0,0,1)",this.mDwgVisualize=t}ngOnInit(){MF.instance().subscribeBroardcast(_F.CommentPanel,this),MF.instance().subscribeBroardcast(_F.FileCompare,this),-1!==location.href.indexOf("/service/editor-miniProgram")&&(this.mShowComment=!1),-1!==location.href.indexOf("/anonymous")&&(this.isAnonymous=!0),document.addEventListener("fullscreenchange",(t=>{this.isFullscreen=document.fullscreen}),!1),document.addEventListener("webkitfullscreenchange",(t=>{this.isFullscreen=document.webkitIsFullScreen}),!1),document.addEventListener("mozfullscreenchange",(t=>{this.isFullscreen=document.mozFullScreen}),!1)}ifDisplay(t){return rB.instance().hasPermission(t),rB.instance().hasPermission(t)}notify(t,e){var n,i,r,a;if("object"==typeof e){switch(t){case _F.CommentPanel:"setCommentData"===e.type&&e.data&&(this.mCommentCount=e.data.commentList.data.rows.length);break;case _F.FileCompare:"setFcmpInfo"===e.type&&e.data&&(!0===e.data.isToolbarVisiable?(this.fcmpBaseFileName=null!==(i=null===(n=e.data)||void 0===n?void 0:n.baseFileName)&&void 0!==i?i:"",this.fcmpCompareFileName=null!==(a=null===(r=e.data)||void 0===r?void 0:r.compareFileName)&&void 0!==a?a:""):(this.fcmpBaseFileName="",this.fcmpCompareFileName="")),"updateFcmpColors"===e.type&&e.data&&(this.fcmpBaseFileColor=e.data.baseFileColor,this.fcmpCompareFileColor=e.data.compareFileColor)}this.changeDetectorRef.detectChanges()}}ngOnDestroy(){MF.instance().unsubscribeBroardcast(_F.CommentPanel,this),MF.instance().unsubscribeBroardcast(_F.FileCompare,this),this.isFullscreen&&this.fullScreen(),document.removeEventListener("fullscreenchange",(t=>{this.isFullscreen=document.fullscreen}),!1),document.removeEventListener("webkitfullscreenchange",(t=>{this.isFullscreen=document.webkitIsFullScreen}),!1),document.removeEventListener("mozfullscreenchange",(t=>{this.isFullscreen=document.mozFullScreen}),!1)}changeLayout(t){this.commentComponent&&this.commentComponent.onCancel(),this.selectLayout.emit(t)}back(){this.mDwgVisualize.hideDwgControl(!0),this.mDwgVisualize.clear(),-1!==location.href.indexOf("/service/editor-miniProgram")?location.href="./service/workspace":history.go(-1)}moreActions(){this.isFullscreen&&this.fullScreen(),MF.instance().broardcast(_F.FileOperate,{type:"operateVisible"})}activeLayer(){this.mShowQrCode=!1,this.layerVis||(this.xrefVis=!1,this.layoutVis=!1,this.commentVis=!1),this.layerVis=!this.layerVis}activeXref(){this.mShowQrCode=!1,this.isAnonymous?MF.instance().broardcast(_F.AnonymousCallback,{type:"showAnonymousModal"}):(this.xrefVis||(this.layerVis=!1,this.layoutVis=!1,this.commentVis=!1),this.xrefVis=!this.xrefVis)}activeLayout(){this.mShowQrCode=!1,this.layoutVis||(this.layerVis=!1,this.xrefVis=!1,this.commentVis=!1),this.layoutVis=!this.layoutVis}activeComment(t){this.mShowQrCode=!1,this.isAnonymous?MF.instance().broardcast(_F.AnonymousCallback,{type:"showAnonymousModal"}):(this.commentVis||(this.layerVis=!1,this.xrefVis=!1,this.layoutVis=!1),this.commentVis=this.mobileCommentPanel!==t||!this.commentVis,this.mobileCommentPanel=t)}isActiveOtherPanel(t){let e;switch(t){case"Layer":e=this.xrefVis||this.layoutVis||this.commentVis;break;case"Xref":e=this.layerVis||this.layoutVis||this.commentVis;break;case"Layout":e=this.xrefVis||this.layerVis||this.commentVis;break;case"Comment":e=this.xrefVis||this.layoutVis||this.layerVis;break;default:e=!0}return e}activeGrid(){this.gridVis=!this.gridVis,this.switch("GRID")}activeLineWeight(){this.lineWeightVis=!this.lineWeightVis,this.switch("LWEIGHT")}switch(t){switch(t){case"LWEIGHT":MF.instance().broardcast(_F.GsInteraction,{type:"draw",data:{type:"Longterm"}});break;case"GRID":let t=jF.instance().getCurView();null!==t&&(t.mGridSwitch=!t.mGridSwitch),MF.instance().broardcast(_F.GsInteraction,{type:"draw",data:{type:"BottomMost"}})}}fullScreen(){let t=document.getElementsByTagName("zw-cloud2d-editor");t=t[0],this.isFullscreen=!this.isFullscreen,this.isFullscreen?(t.requestFullScreen?t.requestFullScreen():t.webkitRequestFullScreen?t.webkitRequestFullScreen():t.mozRequestFullScreen?t.mozRequestFullScreen():r.error("不支持fullscreen"),MF.instance().broardcast(_F.StatusBar,{type:"setting",data:{type:"requestFullscreen"}})):(document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen&&document.mozCancelFullScreen(),MF.instance().broardcast(_F.StatusBar,{type:"setting",data:{type:"exitFullscreen"}})),this.changeDetectorRef.detectChanges()}toHelp(){window.open("/help")}ifShow(t){return"HELP"===t?KF.command[t]:"commentPanel"!==t||KF.panel[t]}activeCanvas(){this.layerVis=!1,this.xrefVis=!1,this.layoutVis=!1,this.commentVis=!1}toHome(){this.isFullscreen&&this.fullScreen(),this.hasHomeClick||(wx.miniProgram.reLaunch({url:"../recent/recent"}),this.hasHomeClick=!0)}toShare(){this.isFullscreen&&this.fullScreen();let t=(new Date).getTime();t-this.timeout>2e3&&(this.getShareInfo.emit(),this.timeout=t)}changeTheme(t){U5._instance&&U5._instance.mGs&&U5._instance.mGs.changeTheme(t)}getThemeColor(){return document.body.getAttribute("cloud2d-theme-style")}}return t["ɵfac"]=function(e){return new(e||t)(Zo(y4),Zo(Gl))},t["ɵcmp"]=qt({type:t,selectors:[["app-mobile-editor"]],viewQuery:function(t,e){if(1&t&&(Nc(v4,5),Nc(w4,5)),2&t){let t;Vc(t=Gc())&&(e.statusBar=t.first),Vc(t=Gc())&&(e.commentComponent=t.first)}},inputs:{mLayoutList:"mLayoutList",mLayoutIndex:"mLayoutIndex",fileName:"fileName",qrCode:"qrCode"},outputs:{selectLayout:"selectLayout",getShareInfo:"getShareInfo"},decls:40,vars:42,consts:[[1,"container","not-select"],[1,"title"],["title",""],["class","back",4,"ngIf"],[1,"action-btns"],["class","icon","aria-hidden","true",3,"click",4,"ngIf"],["class","icon share","aria-hidden","true",3,"click",4,"ngIf"],["class","icon","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"icon",3,"click"],[0,"xlink","href","#icon-FullScreen",4,"ngIf"],[0,"xlink","href","#icon-quanping",4,"ngIf"],[0,"xlink","href","#icon-ExitFullScreen",4,"ngIf"],[1,"main"],["browseMain",""],["class","more-action",4,"ngIf"],["id","mainCanvas",2,"width","100%","height","100%",3,"click"],[1,"panel"],[1,"panel",3,"mLayoutList","mLayoutIndex","changeLayout"],[1,"panel",3,"commentMobileVis","isActiveOtherPanel","mobileType","mActiveMobileCommentToolEvt","mActiveMobileCommentEvt"],["commentComponent",""],["class","miniprogram",4,"ngIf"],[1,"statusBar"],["statusBar",""],["class","action-btn",3,"click",4,"ngIf"],[1,"action-btn",3,"click"],["aria-hidden","true",1,"icon","svg-icon"],[0,"xlink","href","#icon-Layer"],[4,"ngIf"],[0,"xlink","href","#icon-waibucanzhao"],[0,"xlink","href","#icon-buju"],[1,"back"],["nz-icon","","nzType","left","nzTheme","outline",3,"click",4,"ngIf"],[4,"ngIf","ngIfElse"],["fileNameTemplate",""],["nz-icon","","nzType","left","nzTheme","outline",3,"click"],[1,"fcmpTitle"],[3,"ngStyle"],["moreAction",""],[0,"xlink","href","#icon-home"],["aria-hidden","true",1,"icon","share",3,"click"],[0,"xlink","href","#icon-fenxiang"],["aria-hidden","true",1,"icon"],[0,"xlink","href","#icon-qiehuanweiming",3,"click",4,"ngIf"],[0,"xlink","href","#icon-qiehuanweian",3,"click",4,"ngIf"],[0,"xlink","href","#icon-qiehuanweiming",3,"click"],[0,"xlink","href","#icon-qiehuanweian",3,"click"],[0,"xlink","href","#icon-FullScreen"],[0,"xlink","href","#icon-quanping"],[0,"xlink","href","#icon-ExitFullScreen"],[0,"xlink","href","#icon-gengduocaozuo"],[1,"more-action"],[1,"item",3,"click"],[0,"xlink","href","#icon-Help"],[1,"miniprogram"],[1,"qrCode",3,"src"],[1,"tips"],["aria-hidden","true",1,"close",3,"click"],[0,"xlink","href","#icon-guanbimianban"],[0,"xlink","href","#icon-pinglun"],[3,"nzCount"],[0,"xlink","href","#icon-liebiao2"]],template:function(t,e){if(1&t&&(Yo(0,"div",0),Yo(1,"div",1,2),Ho(3,P4,5,3,"div",3),Yo(4,"div",4),Ho(5,_4,3,0,"svg",5),Ho(6,M4,3,0,"svg",6),Ho(7,O4,3,2,"svg",7),gn(),Yo(8,"svg",8),es("click",(function(){return e.fullScreen()})),Ho(9,A4,1,0,"use",9),Ho(10,T4,1,0,"use",10),Ho(11,I4,1,0,"use",11),jo(),Ho(12,L4,3,0,"svg",5),jo(),jo(),fn(),Yo(13,"div",12,13),Ho(15,z4,7,3,"div",14),Yo(16,"canvas",15),es("click",(function(){return e.activeCanvas()})),jo(),Yo(17,"div"),Xo(18,"app-mobile-layer",16),Xo(19,"app-mobile-xref",16),Yo(20,"app-mobile-layout",17),es("changeLayout",(function(t){return e.changeLayout(t)})),jo(),Yo(21,"app-comment",18,19),es("mActiveMobileCommentToolEvt",(function(){return e.activeComment(e.mobileCommentPanelType.commentToolPanel)}))("mActiveMobileCommentEvt",(function(){return e.activeComment(e.mobileCommentPanelType.commentPanel)})),jo(),jo(),Ho(23,R4,11,7,"div",20),jo(),Yo(24,"div",21,22),Ho(26,F4,6,3,"div",23),Ho(27,B4,7,4,"div",23),Yo(28,"div",24),es("click",(function(){return e.activeLayer()})),gn(),Yo(29,"svg",25),Xo(30,"use",26),jo(),Ho(31,V4,3,3,"span",27),jo(),fn(),Yo(32,"div",24),es("click",(function(){return e.activeXref()})),gn(),Yo(33,"svg",25),Xo(34,"use",28),jo(),Ho(35,N4,3,3,"span",27),jo(),fn(),Yo(36,"div",24),es("click",(function(){return e.activeLayout()})),gn(),Yo(37,"svg",25),Xo(38,"use",29),jo(),Ho(39,H4,3,3,"span",27),jo(),jo(),jo()),2&t){const t=Go(2),n=Go(25);sa(1),Ps(e.isMaster&&e.isMiniProgram?"title-master":""),sa(2),Uo("ngIf",!(e.isMaster&&e.isMiniProgram)),sa(2),Uo("ngIf",e.isMaster&&e.isMiniProgram),sa(1),Uo("ngIf",e.isMaster&&e.isMiniProgram),sa(1),Uo("ngIf",!(e.isMaster&&e.isMiniProgram)),sa(2),Uo("ngIf",!(e.isMaster&&e.isMiniProgram||e.isFullscreen)),sa(1),Uo("ngIf",e.isMaster&&e.isMiniProgram&&!e.isFullscreen),sa(1),Uo("ngIf",e.isFullscreen),sa(1),Uo("ngIf",e.ifShow("HELP")&&!e.isMaster),sa(1),xs("height","calc(100% - "+(e.isMaster&&e.isMiniProgram?0:t.offsetHeight+(e.isFullscreen?0:n.offsetHeight))+"px)"),sa(2),Uo("ngIf",e.moreActionsVis),sa(3),Ps(e.layerVis&&!e.isFullscreen?"panelShow":e.isActiveOtherPanel("Layer")?"panelHidden":"panelHiddenTransition"),xs("bottom",e.isMaster&&e.layerVis?n.offsetHeight+"px":""),sa(1),Ps(e.xrefVis&&!e.isFullscreen?"panelShow":e.isActiveOtherPanel("Xref")?"panelHidden":"panelHiddenTransition"),xs("bottom",e.isMaster&&e.xrefVis?n.offsetHeight+"px":""),sa(1),Ps(e.layoutVis&&!e.isFullscreen?"panelShow":e.isActiveOtherPanel("Layout")?"panelHidden":"panelHiddenTransition"),xs("bottom",e.isMaster&&e.layoutVis?n.offsetHeight+"px":""),Uo("mLayoutList",e.mLayoutList)("mLayoutIndex",e.mLayoutIndex),sa(1),xs("bottom",e.isMaster&&e.commentVis?n.offsetHeight+"px":""),Uo("commentMobileVis",e.commentVis)("isActiveOtherPanel",e.isActiveOtherPanel("Comment"))("mobileType",e.mobileCommentPanel),sa(2),Uo("ngIf",!e.isMiniProgram&&e.qrCode&&e.mShowQrCode),sa(1),Ps(e.isMaster?"statusBar-master":""),xs("display",e.isFullscreen?"none":"flex"),sa(2),Uo("ngIf",!e.isMaster&&e.ifDisplay("批注面版")&&e.ifShow("commentPanel")),sa(1),Uo("ngIf",!e.isMaster&&e.ifDisplay("批注面版")&&e.ifShow("commentPanel")),sa(4),Uo("ngIf",!(e.isMaster&&e.isMiniProgram)),sa(4),Uo("ngIf",!(e.isMaster&&e.isMiniProgram)),sa(4),Uo("ngIf",!(e.isMaster&&e.isMiniProgram))}},styles:[".container[_ngcontent-%COMP%]{width:100vw;height:100vh;height:calc(100vh - var(--vh-offset, 0px));overflow:hidden;display:flex;flex-direction:column}.container[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{height:64px}.container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{height:45px;background-color:var(--editor_main_background);display:flex;justify-content:space-between;padding:0 10px;align-items:center;color:var(--main_font_mobile);font-size:18px}.container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .back[_ngcontent-%COMP%]{height:45px;max-width:70%}.container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .action-btns[_ngcontent-%COMP%]{height:45px;max-width:30%}.container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .fcmpTitle[_ngcontent-%COMP%]{display:flex;align-items:center;margin-left:5px}.container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .fcmpTitle[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(2){font-weight:700;margin:0 5px;overflow:visible}.container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:flex;align-items:center}.container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:16px;display:inline-block;word-break:keep-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin:0 5px;font-size:18px;color:var(--editor_tool_icon)}.container[_ngcontent-%COMP%] .title-master[_ngcontent-%COMP%]{justify-content:center;position:absolute;z-index:9;width:100%;background-color:unset!important;height:unset!important}.container[_ngcontent-%COMP%] .title-master[_ngcontent-%COMP%] .action-btns[_ngcontent-%COMP%]{max-width:100%;height:unset!important;width:-moz-fit-content;width:fit-content;background-color:#484747;border-radius:18px;padding:8px 20px;margin-top:10px}.container[_ngcontent-%COMP%] .title-master[_ngcontent-%COMP%] .action-btns[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{font-size:22px}.container[_ngcontent-%COMP%] .title-master[_ngcontent-%COMP%] .action-btns[_ngcontent-%COMP%] .share[_ngcontent-%COMP%]{margin:0 16px}.container[_ngcontent-%COMP%] .tool[_ngcontent-%COMP%]{max-width:calc(100% - 10px);position:absolute;top:5px;left:5px;z-index:11;overflow-x:auto;border-top:1px solid #3b3b3b;background-color:var(--editor_main_background);border-radius:10px}.container[_ngcontent-%COMP%] .main[_ngcontent-%COMP%]{position:relative;background-color:var(--editor_main_background);overflow:hidden}.container[_ngcontent-%COMP%] .main[_ngcontent-%COMP%] .panel[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}.container[_ngcontent-%COMP%] .main[_ngcontent-%COMP%] .panelShow[_ngcontent-%COMP%]{transition:all .1s linear}.container[_ngcontent-%COMP%] .main[_ngcontent-%COMP%] .panelHidden[_ngcontent-%COMP%]{transform:translateY(100%)}.container[_ngcontent-%COMP%] .main[_ngcontent-%COMP%] .panelHiddenTransition[_ngcontent-%COMP%]{transform:translateY(100%);transition:all .05s linear}.container[_ngcontent-%COMP%] .main[_ngcontent-%COMP%] .more-action[_ngcontent-%COMP%]{width:100px;font-size:14px;position:absolute;top:5px;right:10px;z-index:11;overflow-x:auto;background-color:var(--editor_main_background);color:#fff}.container[_ngcontent-%COMP%] .main[_ngcontent-%COMP%] .more-action[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{height:40px;border-bottom:1px solid var(--editor_main_border);padding:0 10px;display:flex;align-items:center}.container[_ngcontent-%COMP%] .main[_ngcontent-%COMP%] .more-action[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{font-size:18px;margin-right:10px}.container[_ngcontent-%COMP%] .main[_ngcontent-%COMP%] .layer-container[_ngcontent-%COMP%]{position:absolute;left:0;top:0;z-index:99}.container[_ngcontent-%COMP%] .main[_ngcontent-%COMP%] .painter[_ngcontent-%COMP%]{position:relative;height:100%;overflow:hidden;background-color:var(--editor_main_background)}.container[_ngcontent-%COMP%] .main[_ngcontent-%COMP%] .command[_ngcontent-%COMP%]{bottom:0px;height:150px;left:0px;position:absolute;width:100%;z-index:999}.container[_ngcontent-%COMP%] .main[_ngcontent-%COMP%] .miniprogram[_ngcontent-%COMP%]{display:flex;position:absolute;bottom:14px;right:6px;background-color:#fff;border-radius:4px;border:1px solid var(--editor_main_border_light)}.container[_ngcontent-%COMP%] .main[_ngcontent-%COMP%] .miniprogram[_ngcontent-%COMP%] .tips[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;margin:0 10px;color:#7f7f7f;font-size:12px}.container[_ngcontent-%COMP%] .main[_ngcontent-%COMP%] .miniprogram[_ngcontent-%COMP%] .qrCode[_ngcontent-%COMP%]{margin:4px 0 4px 10px;width:60px;height:60px}.container[_ngcontent-%COMP%] .main[_ngcontent-%COMP%] .miniprogram[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{margin:4px;font-size:12px}.container[_ngcontent-%COMP%] .statusBar[_ngcontent-%COMP%]{width:100%;font-size:16px;display:flex;align-items:center;justify-content:space-between;background-color:var(--editor_mobile_background);padding:0 20px;color:var(--main_font_light);position:absolute;bottom:0;padding-bottom:env(safe-area-inset-bottom)}.container[_ngcontent-%COMP%] .statusBar[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{color:var(--editor_tool_icon)}.container[_ngcontent-%COMP%] .statusBar[_ngcontent-%COMP%] .ant-badge{color:var(--main_font_mobile)}.container[_ngcontent-%COMP%] .statusBar[_ngcontent-%COMP%] .ant-badge .ant-badge-count{padding:0;transform:translate(25%,100%);min-width:16px;height:12px;line-height:12px;font-size:12px;border-radius:2px}.container[_ngcontent-%COMP%] .statusBar[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{font-size:24px;height:35px}.container[_ngcontent-%COMP%] .statusBar[_ngcontent-%COMP%] .action-btn[_ngcontent-%COMP%]{border-radius:5px;margin:5px;text-align:center;align-items:center;display:flex;flex-direction:column}.container[_ngcontent-%COMP%] .statusBar[_ngcontent-%COMP%] .action-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;font-size:12px;width:50px;word-break:keep-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.container[_ngcontent-%COMP%] .statusBar[_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{color:#078bed}.container[_ngcontent-%COMP%] .statusBar[_ngcontent-%COMP%] .quickBtn[_ngcontent-%COMP%]{display:flex;align-items:center;border:1px solid var(--editor_main_scrollBar);background-color:var(--editor_not_active);margin-left:10px}.container[_ngcontent-%COMP%] .statusBar[_ngcontent-%COMP%] .quickBtn[_ngcontent-%COMP%] .control-btn[_ngcontent-%COMP%]{padding:2px 8px;cursor:pointer;color:var(--main_font)}.container[_ngcontent-%COMP%] .statusBar[_ngcontent-%COMP%] .quickBtn[_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{background-color:var(--editor_active);color:var(--editor_active_font)}.container[_ngcontent-%COMP%] .statusBar[_ngcontent-%COMP%] .control-icon[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:30px;margin-right:10px}.container[_ngcontent-%COMP%] .statusBar[_ngcontent-%COMP%] .control-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{color:#fff;font-size:25px}.container[_ngcontent-%COMP%] .statusBar-master[_ngcontent-%COMP%]{justify-content:space-around;padding-bottom:env(safe-area-inset-bottom)}"]}),t})(),W4=(()=>{class t{constructor(t){this.sanitized=t}transform(t){return this.sanitized.bypassSecurityTrustHtml(t)}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Tu,16))},t["ɵpipe"]=ie({name:"safeHtml",type:t,pure:!0}),t})(),Y4=(()=>{class t{transform(t,e="yyyy-MM-dd HH:mm:ss"){return xF(new Date(t),e)}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵpipe"]=ie({name:"dateFormat",type:t,pure:!0}),t})();function j4(t,e){if(1&t&&(qo(0),Yo(1,"div"),gn(),Yo(2,"svg",20),Xo(3,"use"),jo(),jo(),$o()),2&t){const t=os().$implicit,e=os(2);sa(1),Ps(e.isHighLight(t.id)?"svgDiv selectSvgDiv":"svgDiv noSelectSvgDiv"),sa(1),xs("color",e.isHighLight(t.id)?e.toHighLightColor(t.color):e.toOpacityColor(t.color)),Uo("id",t.id),sa(1),Fo("href",t.href,null,"xlink")}}function X4(t,e){if(1&t&&(qo(0),Xo(1,"span",21),Cc(2,"safeHtml"),$o()),2&t){const t=os().$implicit;sa(1),xs("color",t.color),Uo("innerHTML",kc(2,3,t.text),Nr)}}function q4(t,e){if(1&t&&(qo(0),Xo(1,"span",21),Cc(2,"safeHtml"),$o()),2&t){const t=os().$implicit;sa(1),Uo("innerHTML",kc(2,1,t.text),Nr)}}function $4(t,e){if(1&t&&(qo(0),Ho(1,j4,4,6,"ng-container",19),Ho(2,X4,3,5,"ng-container",19),Ho(3,q4,3,3,"ng-container",19),$o()),2&t){const t=e.$implicit;sa(1),Uo("ngIf","svg"===t.type),sa(1),Uo("ngIf","at"===t.type),sa(1),Uo("ngIf","text"===t.type)}}function K4(t,e){if(1&t&&(Yo(0,"div",18),Ho(1,$4,4,3,"ng-container",14),Xo(2,"div"),jo()),2&t){const t=e.$implicit;sa(1),Uo("ngForOf",t.contentDataArr)}}function J4(t,e){1&t&&Ko(0)}function Q4(t,e){if(1&t){const t=Jo();Yo(0,"div",30),gn(),Yo(1,"svg",5),es("click",(function(){Ne(t);const e=os(2).$implicit;return os().editComment(e)})),Xo(2,"use",31),jo(),Yo(3,"svg",5),es("click",(function(){Ne(t);const e=os(2).$implicit;return os().deleteComment(e)})),Xo(4,"use",32),jo(),jo()}}const t8=function(t){return{$implicit:t}};function e8(t,e){if(1&t&&(Yo(0,"div",23),Yo(1,"div",24),Xo(2,"img",25),jo(),Yo(3,"div",26),Yo(4,"div",27),Bs(5),jo(),Ho(6,J4,1,0,"ng-container",12),Yo(7,"div",28),Bs(8),Cc(9,"dateFormat"),jo(),jo(),Ho(10,Q4,5,0,"div",29),jo()),2&t){const t=os().$implicit,e=os(),n=Go(17);sa(2),Uo("src","/assets/image/default_avatar.png",Hr),sa(3),Vs(t.creator),sa(1),Uo("ngTemplateOutlet",n)("ngTemplateOutletContext",fc(8,t8,t.content)),sa(2),Vs(kc(9,6,t.createTime)),sa(2),Uo("ngIf",t.createBy===e.mCurUserId)}}function n8(t,e){1&t&&Ho(0,e8,11,10,"div",22),2&t&&Uo("ngIf",e.$implicit)}function i8(t,e){1&t&&Ko(0)}function r8(t,e){1&t&&Ko(0)}function a8(t,e){if(1&t&&(qo(0),Ho(1,r8,1,0,"ng-container",12),$o()),2&t){const t=e.$implicit;os();const n=Go(19);sa(1),Uo("ngTemplateOutlet",n)("ngTemplateOutletContext",fc(2,t8,t))}}function o8(t){let e=[];return t&&t.split(/(<span.*?<\/span>)|(<div.*?<\/div>)/).filter((t=>t)).forEach(((t,n)=>{t.includes("<div")&&t.includes("<svg")?e.push({type:"svg",id:t.split('id="')[1].split('"')[0],href:t.split('xlink:href="')[1].split('"')[0],color:t.split("background-color:")[1].split(";")[0]}):t.includes("<span")?e.push({type:"at",text:t.slice(t.indexOf("@"),t.indexOf("</")),color:t.split("color: ")[1].split(";")[0]}):!t.includes("<div")&&t.includes("<svg")?t.split(/(<svg.*?<\/svg>)/).filter((t=>t)).forEach((t=>{t.includes("<svg")?e.push({type:"svg",id:t.split('id="')[1].split('"')[0],href:t.split('xlink:href="')[1].split('"')[0],color:t.split('style="color:')[1].split(";")[0]}):e.push({type:"text",text:t})})):e.push({type:"text",text:t})})),{contentDataArr:e}}let s8=(()=>{class t{constructor(){this.exportCommentEvt=new Dc,this.showBubbleEvt=new Dc,this.deleteCommentEvt=new Dc,this.toCommentToolReplyEvt=new Dc,this.editCommentEvt=new Dc,this.isDeleteLoading=!1,this.mHighlightIds=[]}ngOnInit(){MF.instance().subscribeBroardcast(_F.GsInteraction,this),this.commentData=JSON.parse(JSON.stringify(this.inputCommentData)),this.commentData.content=o8(this.commentData.content),this.commentData.replyList.forEach(((t,e)=>{t&&(this.commentData.replyList[e].content=o8(this.commentData.replyList[e].content))}))}notify(t,e){t===_F.GsInteraction&&"highlightBubble"===e.type&&e.data&&e.data.highlightBubble&&e.data.highlightBubble.ids&&(this.mHighlightIds=e.data.highlightBubble.ids)}isHighLight(t){return this.mHighlightIds.includes(t)}toHighLightColor(t){const e=t.split(/[(),]/).filter(Boolean);return e[4]="1","rgba("+e.slice(1).join(", ")+")"}toOpacityColor(t){const e=t.split(/[(),]/).filter(Boolean);return e[4]="0.5","rgba("+e.slice(1).join(", ")+")"}exportComment(){this.exportCommentEvt.emit()}showBubble(){this.showBubbleEvt.emit()}deleteComment(t){this.isDeleteLoading=!0,this.deleteCommentEvt.emit(t)}toCommentToolReply(){this.toCommentToolReplyEvt.emit()}editComment(t){this.editCommentEvt.emit(t)}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵcmp"]=qt({type:t,selectors:[["app-comment-mobile-card"]],inputs:{inputCommentData:["commentData","inputCommentData"],index:"index",total:"total",mBubbleOffBtnIcon:"mBubbleOffBtnIcon",mCurUserId:"mCurUserId"},outputs:{exportCommentEvt:"exportCommentEvt",showBubbleEvt:"showBubbleEvt",deleteCommentEvt:"deleteCommentEvt",toCommentToolReplyEvt:"toCommentToolReplyEvt",editCommentEvt:"editCommentEvt"},decls:28,vars:14,consts:[[1,"containerExternalBox"],[1,"container"],[1,"title"],[1,"tool-bar-left"],[1,"btn-item"],["aria-hidden","true",1,"icon",3,"click"],[0,"xlink","href","#icon-Download"],[1,"content"],[1,"list"],[1,"scrollContent"],["commentContent",""],["commentListItem",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"listItemReply"],[4,"ngFor","ngForOf"],[1,"replyExternalBox"],[1,"replyFoldBox",3,"click"],[1,"replyDefaultText"],[1,"infoContent"],[4,"ngIf"],["aria-hidden","true",1,"icon",3,"id"],[3,"innerHTML"],["class","listItem",4,"ngIf"],[1,"listItem"],[1,"avatar"],["alt","avatar",3,"src"],[1,"info"],[1,"name"],[1,"time"],["class","operate",4,"ngIf"],[1,"operate"],[0,"xlink","href","#icon-bianji"],[0,"xlink","href","#icon-FileDelete"]],template:function(t,e){if(1&t&&(Yo(0,"div",0),Yo(1,"div",1),Yo(2,"div",2),Yo(3,"div"),Bs(4),Cc(5,"translate"),jo(),Yo(6,"div",3),Yo(7,"div",4),gn(),Yo(8,"svg",5),es("click",(function(){return e.exportComment()})),Xo(9,"use",6),jo(),jo(),fn(),Yo(10,"div",4),gn(),Yo(11,"svg",5),es("click",(function(){return e.showBubble()})),Xo(12,"use"),jo(),jo(),jo(),jo(),fn(),Yo(13,"div",7),Yo(14,"div",8),Yo(15,"div",9),Ho(16,K4,3,1,"ng-template",null,10,Yc),Ho(18,n8,1,1,"ng-template",null,11,Yc),Ho(20,i8,1,0,"ng-container",12),Yo(21,"div",13),Ho(22,a8,2,4,"ng-container",14),jo(),jo(),jo(),Yo(23,"div",15),Yo(24,"div",16),es("click",(function(){return e.toCommentToolReply()})),Yo(25,"div",17),Bs(26),Cc(27,"translate"),jo(),jo(),jo(),jo(),jo(),jo()),2&t){const t=Go(19);sa(4),Gs("",kc(5,8,"commentMobile_comment"),"",e.index,"/",e.total,""),sa(8),Fo("href",e.mBubbleOffBtnIcon,null,"xlink"),sa(8),Uo("ngTemplateOutlet",t)("ngTemplateOutletContext",fc(12,t8,e.commentData)),sa(2),Uo("ngForOf",e.commentData.replyList),sa(4),Ns(" ",kc(27,10,"commentMobile_replyComment")," ")}},directives:[tu,Ud,Yd],pipes:[H3,W4,Y4],styles:[".containerExternalBox[_ngcontent-%COMP%]{width:100%;height:35vh;padding-bottom:.5vh;display:flex;justify-content:center}.container[_ngcontent-%COMP%]{width:98%;height:100%;border-radius:10px;border:1px solid #757575;background-color:var(--editor_mobile_background);color:var(--main_font)}.container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{padding:0 3%;height:10vw;border-bottom:1px solid var(--editor_mobile_border);display:flex;justify-content:space-between;align-items:center;color:#aaa}.container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .tool-bar-left[_ngcontent-%COMP%]{display:flex;flex-direction:row}.container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .tool-bar-left[_ngcontent-%COMP%] .btn-item[_ngcontent-%COMP%]:first-child{margin-right:3vw}.container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .tool-bar-left[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{height:4vw;width:4vw}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{height:calc(100% - 10vw);padding:2vw 3px 0;display:flex;flex-direction:column;justify-content:space-between}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .list[_ngcontent-%COMP%]{overflow-y:scroll;max-height:80%;width:100%}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .list[_ngcontent-%COMP%]::-webkit-scrollbar{width:3px}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .list[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:3px;background-color:#b0b0b080}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .list[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:transparent}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] .scrollContent[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] .scrollContent[_ngcontent-%COMP%] .listItem[_ngcontent-%COMP%]{width:calc(100% - 4vw);margin-bottom:2vw;display:flex;justify-content:flex-start}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] .scrollContent[_ngcontent-%COMP%] .listItem[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{flex-shrink:0}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] .scrollContent[_ngcontent-%COMP%] .listItem[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:5vw;height:5vw}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] .scrollContent[_ngcontent-%COMP%] .listItem[_ngcontent-%COMP%] .info[_ngcontent-%COMP%]{flex:1 1 0;margin-left:1vw;display:flex;flex-direction:column;justify-content:space-between;word-break:break-all}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] .scrollContent[_ngcontent-%COMP%] .listItem[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .infoContent[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] .scrollContent[_ngcontent-%COMP%] .listItem[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .infoContent[_ngcontent-%COMP%] .svgDiv[_ngcontent-%COMP%]{display:inline-block;width:6vw;height:6vw;position:relative;border-radius:3px}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] .scrollContent[_ngcontent-%COMP%] .listItem[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .infoContent[_ngcontent-%COMP%] .svgDiv[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:5vw;height:5vw;position:absolute;top:50%;left:50%;margin-top:-2.5vw;margin-left:-2.5vw}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] .scrollContent[_ngcontent-%COMP%] .listItem[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .infoContent[_ngcontent-%COMP%] .selectSvgDiv[_ngcontent-%COMP%]{background-color:#ffffff26}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] .scrollContent[_ngcontent-%COMP%] .listItem[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .infoContent[_ngcontent-%COMP%] .noSelectSvgDiv[_ngcontent-%COMP%]{background-color:transparent}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] .scrollContent[_ngcontent-%COMP%] .listItem[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .time[_ngcontent-%COMP%]{font-size:12px;color:#828282}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] .scrollContent[_ngcontent-%COMP%] .listItem[_ngcontent-%COMP%] .operate[_ngcontent-%COMP%]{flex-shrink:0;display:flex;justify-content:center;height:40%}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] .scrollContent[_ngcontent-%COMP%] .listItem[_ngcontent-%COMP%] .operate[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{font-size:4vw}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] .scrollContent[_ngcontent-%COMP%] .listItem[_ngcontent-%COMP%] .operate[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]:first-of-type{margin-right:5px}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] .scrollContent[_ngcontent-%COMP%] .listItem[_ngcontent-%COMP%] .operate[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:4vw}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] .scrollContent[_ngcontent-%COMP%] .listItemReply[_ngcontent-%COMP%]{width:calc(100% - 4vw)}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] .scrollContent[_ngcontent-%COMP%] .listItemReply[_ngcontent-%COMP%] .listItem[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] .scrollContent[_ngcontent-%COMP%] .listItemReply[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{margin-left:5vw}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .replyExternalBox[_ngcontent-%COMP%]{width:100%;height:20%;display:flex;flex-direction:column;align-items:center;justify-content:flex-start}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .replyExternalBox[_ngcontent-%COMP%] .replyFoldBox[_ngcontent-%COMP%]{background-color:var(--editor_command_input_mobile);border-radius:4px;width:96%;height:60%;margin-top:3px;padding:3px 5px}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .replyExternalBox[_ngcontent-%COMP%] .replyFoldBox[_ngcontent-%COMP%] .replyDefaultText[_ngcontent-%COMP%]{color:#8e8e8e;font-size:12px}"]}),t})(),l8=(()=>{class t{constructor(t){this.http=t,this.pageConfig$=new Lb({});let e=XF.instance().getItem("options"),n=JSON.parse(JSON.stringify(iF));e&&"object"==typeof e&&(n=Object.assign(Object.assign({},n),{options:Object.assign(Object.assign({},n.options),e)})),this.pageConfig$.next(n),this.pageConfig$.subscribe((t=>{let e=XF.instance().getItem("options");e&&"object"==typeof e?XF.instance().setItem("options",Object.assign(Object.assign({},e),t.options)):XF.instance().setItem("options",Object.assign({},t.options))}))}ngOnDestroy(){this.pageConfig$.complete()}getUserSetting(){return this.http.get(tU.baseUrl+"/api/user/setting").toPromise()}setUserSetting(t){return this.http.post(tU.baseUrl+"/api/user/setting",t,{headers:{"Content-type":"application/json"}}).toPromise()}getAboutInfo(){return this.http.get(tU.baseUrl+"/api/about").toPromise()}getWebsocketSite(){return this.http.get(tU.getService+"/CadService/GetService").toPromise()}getUserType(){return this.http.get(tU.baseUrl+"/api/user/type").toPromise()}postEditorError(t){return this.http.post(tU.baseUrl+"/api/callback/issue/deal",t,{headers:{"Content-type":"application/json"}}).toPromise()}}return t["ɵfac"]=function(e){return new(e||t)(wi(Am))},t["ɵprov"]=vt({token:t,factory:t["ɵfac"],providedIn:"root"}),t})();const c8=["editComponent"],h8=["replyComponent"],d8=["inputComponent"],u8=["mobileReplyInputPanel"],m8=["mobileReplyTextPanel"],p8=function(t,e,n){return{"btn-item-disable":t,"btn-item":e,"disabled-class":n}},g8=function(t){return{color:t}};function f8(t,e){if(1&t){const t=Jo();qo(0),Yo(1,"div",31),gn(),Yo(2,"svg",32),es("click",(function(){const e=Ne(t).$implicit;return os(3).drawBubble(e)})),Xo(3,"use"),jo(),jo(),$o()}if(2&t){const t=e.$implicit,n=os(3);sa(1),Uo("ngClass",yc(4,p8,n.mCommentDisabled,!n.mCommentDisabled,t.selected))("title",t.title),sa(1),Uo("ngStyle",fc(8,g8,t.selected?n.mCurColor:"")),sa(1),Fo("href",t.icon,null,"xlink")}}const b8=function(t){return{"background-color":t}};function y8(t,e){if(1&t){const t=Jo();Yo(0,"div",35),es("click",(function(){const e=Ne(t).$implicit;return os(4).setBubbleColor(e)})),jo()}2&t&&Uo("ngStyle",fc(1,b8,e.$implicit.str))}function v8(t,e){if(1&t&&(Yo(0,"div",33),Ho(1,y8,1,3,"div",34),jo()),2&t){const t=e.$implicit;sa(1),Uo("ngForOf",t)}}const w8=function(t){return{"disabled-class":t}},x8=function(t,e){return{"btn-item-disable":t,"btn-item":e}};function C8(t,e){if(1&t){const t=Jo();Yo(0,"div",18),Yo(1,"div",19,20),Yo(3,"div",21),Ho(4,f8,4,10,"ng-container",22),Yo(5,"div",23),Cc(6,"translate"),Xo(7,"div",24),jo(),jo(),Yo(8,"nz-dropdown-menu",null,25),Yo(10,"ul",26),Ho(11,v8,2,1,"div",27),jo(),jo(),jo(),Yo(12,"div",28),es("click",(function(){return Ne(t),os(2).replyComment({id:""})})),Yo(13,"app-comment-input",29,30),es("onSave",(function(e){return Ne(t),os(2).onSave(e)}))("onCancel",(function(e){return Ne(t),os(2).onCancel(e)}))("onFold",(function(e){return Ne(t),os(2).onFold(e)}))("onCheckPaperSpace",(function(e){return Ne(t),os(2).onCheckPaperSpace(e)})),jo(),jo(),jo()}if(2&t){const t=Go(9),e=os(2);Uo("ngClass",fc(16,w8,!e.isCurrentVersion)),sa(4),Uo("ngForOf",e.mBubbleCmd),sa(1),Uo("nzDropdownMenu",t)("nzPlacement","bottomLeft")("ngClass",bc(18,x8,e.mCommentDisabled,!e.mCommentDisabled))("title",kc(6,14,"editor_layerColor")),sa(2),Uo("ngStyle",fc(21,b8,e.mCurColor)),sa(4),Uo("ngForOf",e.mPalette),sa(2),Uo("mMemberList",e.mMemberList)("mGs",e.mGs)("mActivedReply",e.mActivedReply)("mActivedEdit",e.mActivedEdit)("mCommentDisabled",e.mCommentDisabled)("mCurUserId",e.mCurUserId)}}function k8(t,e){if(1&t){const t=Jo();Yo(0,"div",36),es("click",(function(){return Ne(t),os(2).unfold()})),Yo(1,"div",37),Bs(2),Cc(3,"translate"),jo(),Yo(4,"div",38),Yo(5,"span"),gn(),Yo(6,"svg",39),Xo(7,"use",40),jo(),jo(),jo(),jo()}if(2&t){const t=os(2);Uo("ngClass",fc(4,w8,!t.isCurrentVersion)),sa(2),Vs(kc(3,2,"inputComment"))}}function S8(t,e){if(1&t&&(Yo(0,"div",41),Bs(1),Cc(2,"translate"),jo()),2&t){const t=os(2);sa(1),Hs("",t.mTotalComments,"",kc(2,2,"totalComments"),"")}}function P8(t,e){1&t&&(Yo(0,"span"),Bs(1),Cc(2,"translate"),jo()),2&t&&(sa(1),Vs(kc(2,1,"reviewer")))}const _8=function(t){return{"item-title":t}};function M8(t,e){if(1&t&&(Yo(0,"span",58),Bs(1),jo()),2&t){const t=os(3);Uo("ngClass",fc(2,_8,void 0!==t.mMember.memberName&&t.mMember.memberName.length>3)),sa(1),Vs(t.mMember.memberName)}}function D8(t,e){if(1&t){const t=Jo();Yo(0,"li",69),es("click",(function(){const e=Ne(t).$implicit;return os(3).selectMember(e)})),Bs(1),jo()}if(2&t){const t=e.$implicit;sa(1),Ns(" ",t.memberName,"")}}function E8(t,e){1&t&&(Yo(0,"span"),Bs(1),Cc(2,"translate"),jo()),2&t&&(sa(1),Vs(kc(2,1,"keyword")))}function O8(t,e){if(1&t&&(Yo(0,"span",58),Bs(1),jo()),2&t){const t=os(3);Uo("ngClass",fc(2,_8,""!==t.mKeywordContent.trim()&&t.mKeywordContent.trim().length>3)),sa(1),Vs(t.mKeywordContent.trim())}}function A8(t,e){if(1&t){const t=Jo();Yo(0,"li",69),es("click",(function(){const e=Ne(t).$implicit;return os(3).selectTimeSlot(e)})),Bs(1),jo()}if(2&t){const t=e.$implicit;sa(1),Vs(t.name)}}function T8(t,e){if(1&t){const t=Jo();Yo(0,"div",42),Yo(1,"div",43),Ho(2,P8,3,3,"span",15),Ho(3,M8,2,4,"span",44),Yo(4,"span"),gn(),Yo(5,"svg",45),Xo(6,"use",46),jo(),jo(),jo(),fn(),Yo(7,"nz-dropdown-menu",47,48),Yo(9,"ul",49),Ho(10,D8,2,1,"li",50),jo(),jo(),Yo(11,"div",51),es("nzVisibleChange",(function(e){return Ne(t),os(2).mKeywordVisible=e})),Ho(12,E8,3,3,"span",15),Ho(13,O8,2,4,"span",44),Yo(14,"span"),gn(),Yo(15,"svg",45),Xo(16,"use",46),jo(),jo(),jo(),fn(),Yo(17,"nz-dropdown-menu",null,52),Yo(19,"ul",53),Yo(20,"textarea",54),es("ngModelChange",(function(e){return Ne(t),os(2).mKeyword=e})),Cc(21,"translate"),Bs(22," "),jo(),Yo(23,"div",55),Yo(24,"button",56),es("click",(function(){return Ne(t),os(2).filterComment()})),Bs(25),Cc(26,"translate"),jo(),jo(),jo(),jo(),Yo(27,"div",57),es("nzVisibleChange",(function(e){return Ne(t),os(2).mTimeSelectionVisible=e})),Yo(28,"span",58),Bs(29),jo(),Yo(30,"span"),gn(),Yo(31,"svg",45),Xo(32,"use",46),jo(),jo(),jo(),fn(),Yo(33,"nz-dropdown-menu",null,59),Yo(35,"ul",60),Ho(36,A8,2,1,"li",50),Xo(37,"li",61),Yo(38,"li",62),Cc(39,"translate"),Yo(40,"nz-range-picker",63),es("ngModelChange",(function(e){return Ne(t),os(2).mRangeDate=e}))("ngModelChange",(function(e){return Ne(t),os(2).onChange(e)})),jo(),jo(),Yo(41,"div",64),Yo(42,"div",65),Yo(43,"div"),Bs(44),Cc(45,"translate"),jo(),Yo(46,"div",66),Bs(47),jo(),jo(),Yo(48,"div",65),Yo(49,"div"),Bs(50),Cc(51,"translate"),jo(),Yo(52,"div",66),Bs(53),jo(),jo(),Yo(54,"div",67),Yo(55,"button",68),es("click",(function(){return Ne(t),os(2).confirmRangeDate()})),Bs(56),Cc(57,"translate"),jo(),jo(),jo(),jo(),jo(),jo()}if(2&t){const t=Go(8),e=Go(18),n=Go(34),i=os(2);sa(1),Uo("nzDropdownMenu",t),sa(1),Uo("ngIf",void 0===i.mMember.memberName),sa(1),Uo("ngIf",void 0!==i.mMember.memberName),sa(7),Uo("ngForOf",i.mMemberListForFilter),sa(1),Uo("nzDropdownMenu",e)("nzVisible",i.mKeywordVisible),sa(1),Uo("ngIf",""===i.mKeywordContent.trim()),sa(1),Uo("ngIf",""!==i.mKeywordContent.trim()),sa(7),hs("placeholder",kc(21,25,"searchInput")),Uo("ngModel",i.mKeyword),sa(5),Vs(kc(26,27,"ok")),sa(2),Uo("nzDropdownMenu",n)("nzClickHide",!1)("nzVisible",i.mTimeSelectionVisible),sa(1),Uo("ngClass",fc(37,_8,i.mSelectTimeOption.trim().length>3)),sa(1),Vs(i.mSelectTimeOption.trim()),sa(7),Uo("ngForOf",i.mTimeList),sa(2),hs("nzTitle",kc(39,29,"custom")),sa(2),Uo("nzAllowClear",!1)("ngModel",i.mRangeDate),sa(4),Vs(kc(45,31,"from")),sa(3),Vs(2===i.mRangeDateString.length?i.mRangeDateString[0].substring(0,10):""),sa(3),Vs(kc(51,33,"to")),sa(3),Vs(2===i.mRangeDateString.length?i.mRangeDateString[1].substring(0,10):""),sa(3),Vs(kc(57,35,"ok"))}}function I8(t,e){if(1&t){const t=Jo();gn(),Yo(0,"svg",12),es("click",(function(){return Ne(t),os(2).changeFilterIcon()})),Xo(1,"use",70),jo()}}function L8(t,e){if(1&t){const t=Jo();gn(),Yo(0,"svg",12),es("click",(function(){return Ne(t),os(2).changeFilterIcon()})),Xo(1,"use",71),jo()}}function z8(t,e){if(1&t){const t=Jo();gn(),Yo(0,"svg",12),es("click",(function(){return Ne(t),os(2).changeFilterIcon("clear")})),Xo(1,"use",72),jo()}}function R8(t,e){1&t&&(Yo(0,"div",85),gn(),Yo(1,"svg",45),Xo(2,"use",86),jo(),jo())}function F8(t,e){1&t&&Xo(0,"img",87),2&t&&Uo("src",os().$implicit.avatarUrl||"/assets/image/default_avatar.png",Hr)}function B8(t,e){if(1&t){const t=Jo();gn(),fn(),Yo(0,"div",90),Yo(1,"div",91),es("click",(function(){Ne(t);const e=os(2).$implicit;return os(3).editComment(e,e)})),Yo(2,"div",92),Yo(3,"div",93),gn(),Yo(4,"svg",45),Xo(5,"use",94),jo(),Bs(6),Cc(7,"translate"),jo(),jo(),jo(),fn(),Yo(8,"div",91),es("click",(function(){Ne(t);const e=os(2).$implicit;return os(3).deleteComment(e)})),Yo(9,"div",93),gn(),Yo(10,"svg",45),Xo(11,"use",95),jo(),Bs(12),Cc(13,"translate"),jo(),jo(),jo()}2&t&&(sa(6),Ns(" ",kc(7,2,"edit")," "),sa(6),Ns(" ",kc(13,4,"delete")," "))}function V8(t,e){if(1&t){const t=Jo();Yo(0,"div"),Yo(1,"div"),gn(),Yo(2,"svg",12),es("click",(function(){Ne(t);const e=os().$implicit;return os(3).showDeleteBtn(e)})),Xo(3,"use",88),jo(),jo(),Ho(4,B8,14,6,"div",89),jo()}if(2&t){const t=os().$implicit;sa(4),Uo("ngIf",t.showBtn)}}function N8(t,e){1&t&&Ko(0)}const H8=function(t){return{$implicit:t}};function G8(t,e){if(1&t&&(Yo(0,"div"),Ho(1,N8,1,0,"ng-container",96),Yo(2,"div",97),Bs(3),Cc(4,"dateFormat"),jo(),jo()),2&t){const t=os().$implicit;os(3);const e=Go(2);sa(1),Uo("ngTemplateOutlet",e)("ngTemplateOutletContext",fc(5,H8,t)),sa(2),Vs(kc(4,3,t.createTime))}}function Z8(t,e){if(1&t){const t=Jo();Yo(0,"div"),Yo(1,"app-comment-input",98,99),es("onSave",(function(e){Ne(t);const n=os().$implicit;return os(3).onSave(e,n)}))("onCancel",(function(e){Ne(t);const n=os().$implicit;return os(3).onCancel(e,n)}))("onCheckPaperSpace",(function(e){return Ne(t),os(4).onCheckPaperSpace(e)})),jo(),jo()}if(2&t){const t=os().$implicit,e=os(3);sa(1),Uo("mMemberList",e.mMemberList)("mGs",e.mGs)("comment",t)("mCommentDisabled",e.mCommentDisabled)("mCurUserId",e.mCurUserId)("mIsEdit",!0)("mCurEditedComment",e.mCurEditedComment)}}function U8(t,e){1&t&&(Yo(0,"div",85),gn(),Yo(1,"svg",45),Xo(2,"use",86),jo(),jo())}function W8(t,e){1&t&&Xo(0,"img",87),2&t&&Uo("src",os(2).$implicit.avatarUrl||"/assets/image/default_avatar.png",Hr)}function Y8(t,e){if(1&t){const t=Jo();gn(),fn(),Yo(0,"div",101),Yo(1,"div",91),es("click",(function(){Ne(t);const e=os(2).$implicit,n=os().$implicit;return os(3).editComment(e,n)})),Yo(2,"div",92),Yo(3,"div",93),gn(),Yo(4,"svg",45),Xo(5,"use",94),jo(),Bs(6),Cc(7,"translate"),jo(),jo(),jo(),fn(),Yo(8,"div",91),es("click",(function(){Ne(t);const e=os(2).$implicit;return os(4).deleteComment(e)})),Yo(9,"div",93),gn(),Yo(10,"svg",12),es("click",(function(){Ne(t);const e=os(2).$implicit;return os(4).showBtnChange(e)})),Xo(11,"use",95),jo(),Bs(12),Cc(13,"translate"),jo(),jo(),jo()}2&t&&(Uo("id","actionBtn"+os(2).$implicit.id),sa(6),Ns(" ",kc(7,3,"edit")," "),sa(6),Ns(" ",kc(13,5,"delete")," "))}function j8(t,e){if(1&t){const t=Jo();Yo(0,"div"),gn(),Yo(1,"svg",12),es("click",(function(){Ne(t);const e=os().$implicit;return os(4).showBtnChange(e)})),Xo(2,"use",88),jo(),Ho(3,Y8,14,7,"div",100),jo()}if(2&t){const t=os().$implicit;sa(3),Uo("ngIf",t.showBtn)}}function X8(t,e){1&t&&Ko(0)}function q8(t,e){if(1&t&&(Yo(0,"div"),Ho(1,X8,1,0,"ng-container",96),Yo(2,"div",97),Bs(3),Cc(4,"dateFormat"),jo(),jo()),2&t){const t=os().$implicit;os(4);const e=Go(2);sa(1),Uo("ngTemplateOutlet",e)("ngTemplateOutletContext",fc(5,H8,t)),sa(2),Vs(kc(4,3,t.createTime))}}function $8(t,e){if(1&t){const t=Jo();Yo(0,"div"),Yo(1,"app-comment-input",98,99),es("onSave",(function(e){Ne(t);const n=os(2).$implicit;return os(3).onSave(e,n)}))("onCancel",(function(e){Ne(t);const n=os(2).$implicit;return os(3).onCancel(e,n)}))("onCheckPaperSpace",(function(e){return Ne(t),os(5).onCheckPaperSpace(e)})),jo(),jo()}if(2&t){const t=os().$implicit,e=os(4);sa(1),Uo("mMemberList",e.mMemberList)("mGs",e.mGs)("comment",t)("mCommentDisabled",e.mCommentDisabled)("mCurUserId",e.mCurUserId)("mIsEdit",!0)("mCurEditedComment",e.mCurEditedComment)}}function K8(t,e){if(1&t&&(Yo(0,"div",75),Yo(1,"div",76,77),Ho(3,U8,3,0,"div",78),Ho(4,W8,1,1,"img",79),jo(),Yo(5,"div",80),Yo(6,"div",81),Yo(7,"div"),Bs(8),jo(),Yo(9,"div",82),Ho(10,j8,4,1,"div",15),jo(),jo(),Yo(11,"div",83),Ho(12,q8,5,7,"div",15),Ho(13,$8,3,7,"div",15),jo(),jo(),jo()),2&t){const t=e.$implicit,n=Go(2),i=os(4);sa(3),Uo("ngIf",i.environment.forSDK),sa(1),Uo("ngIf",!i.environment.forSDK),sa(1),xs("width","calc(100% -"+(n.offsetWidth+10)+"px)"),sa(3),Vs(t.creator),sa(1),Uo("ngClass",fc(9,w8,!i.isCurrentVersion)),sa(1),Uo("ngIf",t.createBy===i.mCurUserId),sa(2),Uo("ngIf",!t.showEdit),sa(1),Uo("ngIf",t.showEdit)}}function J8(t,e){if(1&t){const t=Jo();qo(0),Yo(1,"div",102),es("click",(function(){Ne(t);const e=os().$implicit;return os(3).replyComment(e,e)})),gn(),Yo(2,"svg",103),Xo(3,"use",104),jo(),jo(),fn(),Yo(4,"div",28),es("click",(function(){Ne(t);const e=os().$implicit;return os(3).replyComment(e,e)})),Bs(5),Cc(6,"translate"),jo(),$o()}2&t&&(sa(5),Vs(kc(6,1,"reply")))}function Q8(t,e){if(1&t){const t=Jo();Yo(0,"div"),Yo(1,"app-comment-input",105,106),es("onSave",(function(e){Ne(t);const n=os().$implicit;return os(3).onSave(e,n)}))("onCancel",(function(e){Ne(t);const n=os().$implicit;return os(3).onCancel(e,n)}))("onCheckPaperSpace",(function(e){return Ne(t),os(4).onCheckPaperSpace(e)})),jo(),jo()}if(2&t){const t=os().$implicit,e=os(3);sa(1),Uo("mMemberList",e.mMemberList)("mGs",e.mGs)("comment",t)("mCommentDisabled",e.mCommentDisabled)("mCurUserId",e.mCurUserId)("mIsReply",!0)}}const t5=function(t){return{"msg-card-hover":t}},e5=function(t,e){return{"reply-prompt":t,"disabled-class":e}};function n5(t,e){if(1&t&&(Yo(0,"div",74),Yo(1,"div"),Yo(2,"div",75),Yo(3,"div",76,77),Ho(5,R8,3,0,"div",78),Ho(6,F8,1,1,"img",79),jo(),Yo(7,"div",80),Yo(8,"div",81),Yo(9,"div"),Bs(10),jo(),Yo(11,"div",82),Ho(12,V8,5,1,"div",15),jo(),jo(),Yo(13,"div",83),Ho(14,G8,5,7,"div",15),Ho(15,Z8,3,7,"div",15),jo(),jo(),jo(),Ho(16,K8,14,11,"div",84),jo(),Yo(17,"div",58),Ho(18,J8,7,3,"ng-container",15),Ho(19,Q8,3,6,"div",15),jo(),jo()),2&t){const t=e.$implicit,n=Go(4),i=os(3);Uo("ngClass",fc(14,t5,!t.nohoverBackground)),sa(5),Uo("ngIf",i.environment.forSDK),sa(1),Uo("ngIf",!i.environment.forSDK),sa(1),xs("width","calc(100% -"+(n.offsetWidth+10)+"px)"),sa(3),Vs(t.creator),sa(1),Uo("ngClass",fc(16,w8,!i.isCurrentVersion)),sa(1),Uo("ngIf",t.createBy===i.mCurUserId),sa(2),Uo("ngIf",!t.showEdit),sa(1),Uo("ngIf",t.showEdit),sa(1),Uo("ngForOf",t.replyList),sa(1),Uo("ngClass",bc(18,e5,i.mCommentDisabled||!t.showReply,i.mCommentDisabled||!i.isCurrentVersion)),sa(1),Uo("ngIf",!t.showReply),sa(1),Uo("ngIf",t.showReply)}}function i5(t,e){if(1&t&&(qo(0),Ho(1,n5,20,21,"div",73),$o()),2&t){const t=os(2);sa(1),Uo("ngForOf",t.mTotalCommentList)}}function r5(t,e){1&t&&(Yo(0,"div",107),gn(),Yo(1,"svg",108),Xo(2,"use",109),jo(),fn(),Yo(3,"div",110),Bs(4),Cc(5,"translate"),jo(),Yo(6,"div",111),Bs(7),Cc(8,"translate"),jo(),jo()),2&t&&(sa(4),Vs(kc(5,2,"noComment")),sa(3),Vs(kc(8,4,"commentTip")))}function a5(t,e){if(1&t){const t=Jo();Yo(0,"div",112),Yo(1,"span",113),Cc(2,"translate"),gn(),Yo(3,"svg",12),es("click",(function(){return Ne(t),os(2).getMoreComments()})),Xo(4,"use",46),jo(),jo(),jo()}2&t&&(sa(1),Uo("title",kc(2,1,"moreComments")))}const o5=function(t){return{"center-style":t}};function s5(t,e){if(1&t){const t=Jo();Yo(0,"div",3),Ho(1,C8,15,23,"div",4),Ho(2,k8,8,6,"div",5),Yo(3,"div",6),Ho(4,S8,3,4,"div",7),Ho(5,T8,58,39,"div",8),Yo(6,"div",9),Yo(7,"div",10),Ho(8,I8,2,0,"svg",11),Ho(9,L8,2,0,"svg",11),Ho(10,z8,2,0,"svg",11),jo(),Yo(11,"div",10),Cc(12,"translate"),gn(),Yo(13,"svg",12),es("click",(function(){return Ne(t),os().exportComment()})),Xo(14,"use",13),jo(),jo(),fn(),Yo(15,"div",10),gn(),Yo(16,"svg",12),es("click",(function(){return Ne(t),os().showBubble()})),Xo(17,"use"),jo(),jo(),jo(),jo(),fn(),Yo(18,"div",14),Ho(19,i5,2,1,"ng-container",15),Ho(20,r5,9,6,"div",16),Ho(21,a5,5,3,"div",17),jo(),jo()}if(2&t){const t=os();Uo("ngClass",fc(18,w8,t.mCommentDisabled)),sa(1),Uo("ngIf",!t.mIsFold),sa(1),Uo("ngIf",t.mIsFold),sa(2),Uo("ngIf",!t.mFilter),sa(1),Uo("ngIf",t.mFilter),sa(2),Uo("title",t.mFilterTitle),sa(1),Uo("ngIf",!t.mFilter),sa(1),Uo("ngIf",t.showClearFilterIcon("fold")),sa(1),Uo("ngIf",t.showClearFilterIcon()),sa(1),Uo("title",kc(12,16,"exportComment")),sa(4),Uo("title",t.mBubbleOffBtn.title),sa(2),Fo("href",t.mBubbleOffBtn.icon,null,"xlink"),sa(1),Uo("ngClass",fc(20,o5,0===t.mTotalCommentList.length)),sa(1),Uo("ngIf",t.mTotalCommentList.length>0),sa(1),Uo("ngIf",0===t.mTotalCommentList.length),sa(1),Uo("ngIf",t.mTotalComments>t.mTotalCommentList.length)}}function l5(t,e){if(1&t){const t=Jo();qo(0),Yo(1,"div",28),es("click",(function(){Ne(t);const e=os().$implicit;return os(2).mHighLightId=e.id})),gn(),Yo(2,"svg",115),Xo(3,"use"),jo(),jo(),$o()}if(2&t){const t=os().$implicit,e=os(2);sa(1),Ps(e.mHighLightId===t.id?"svgDiv selectSvgDiv":"svgDiv noSelectSvgDiv"),sa(1),xs("color",e.mHighLightId===t.id?e.toHighLightColor(t.color):e.toOpacityColor(t.color)),Uo("id",t.id),sa(1),Fo("href",t.href,null,"xlink")}}function c5(t,e){if(1&t&&(qo(0),Xo(1,"span",116),Cc(2,"safeHtml"),$o()),2&t){const t=os().$implicit;sa(1),xs("color",t.color),Uo("innerHTML",kc(2,3,t.text),Nr)}}function h5(t,e){if(1&t&&(qo(0),Xo(1,"span",116),Cc(2,"safeHtml"),$o()),2&t){const t=os().$implicit;sa(1),Uo("innerHTML",kc(2,1,t.text),Nr)}}function d5(t,e){if(1&t&&(qo(0),Ho(1,l5,4,6,"ng-container",15),Ho(2,c5,3,5,"ng-container",15),Ho(3,h5,3,3,"ng-container",15),$o()),2&t){const t=e.$implicit;sa(1),Uo("ngIf","svg"===t.type),sa(1),Uo("ngIf","at"===t.type),sa(1),Uo("ngIf","text"===t.type)}}function u5(t,e){if(1&t&&(Yo(0,"div",114),Ho(1,d5,4,3,"ng-container",22),Xo(2,"div"),jo()),2&t){const t=e.$implicit;sa(1),Uo("ngForOf",t.contentDataArr)}}function m5(t,e){if(1&t){const t=Jo();qo(0),Yo(1,"div",31),gn(),Yo(2,"svg",32),es("click",(function(){const e=Ne(t).$implicit;return os(2).drawBubble(e)})),Xo(3,"use"),jo(),jo(),$o()}if(2&t){const t=e.$implicit,n=os(2);sa(1),Uo("ngClass",yc(4,p8,n.mCommentDisabled,!n.mCommentDisabled,t.selected))("title",t.title),sa(1),Uo("ngStyle",fc(8,g8,t.selected?n.mCurColor:"")),sa(1),Fo("href",t.icon,null,"xlink")}}function p5(t,e){if(1&t){const t=Jo();Yo(0,"div",130),es("click",(function(){const e=Ne(t).$implicit;return os(3).setBubbleColor(e)})),jo()}if(2&t){const t=e.$implicit;Ps(os(3).mCurColor===t.str?"circle selectColor":"circle"),Uo("ngStyle",fc(3,b8,t.str))}}function g5(t,e){if(1&t&&(Yo(0,"div",128),Ho(1,p5,1,5,"div",129),jo()),2&t){const t=e.$implicit;sa(1),Uo("ngForOf",t)}}function f5(t,e){if(1&t){const t=Jo();qo(0),Yo(1,"app-comment-input",131,132),es("onSave",(function(e){return Ne(t),os(2).onSave(e)}))("onCancel",(function(e){return Ne(t),os(2).onCancel(e)}))("onFold",(function(e){return Ne(t),os(2).onFold(e)}))("onCheckPaperSpace",(function(e){return Ne(t),os(2).onCheckPaperSpace(e)})),jo(),$o()}if(2&t){const t=os(2);sa(1),Uo("mMemberList",t.mMemberList)("mGs",t.mGs)("mActivedReply",t.mActivedReply)("mActivedEdit",t.mActivedEdit)("mCommentDisabled",t.mCommentDisabled)("mCurUserId",t.mCurUserId)("mIsEdit",t.mIsEdit)("mCurEditedComment",t.mCurEditedComment)("mIsMobileContenteditable",t.commentMobileVis&&t.mMobileType===t.mobileCommentPanelType.commentToolPanel)}}function b5(t,e){if(1&t){const t=Jo();Yo(0,"div",133,134),Yo(2,"div",135),es("click",(function(){return Ne(t),os(2).unfold()})),Yo(3,"div",136),Bs(4),Cc(5,"translate"),jo(),jo(),jo()}2&t&&(sa(4),Ns(" ",kc(5,1,"commentMobile_writeComment")," "))}function y5(t,e){if(1&t){const t=Jo();Yo(0,"app-comment-mobile-swipe",137),es("sliderIndexChangedEvt",(function(e){return Ne(t),os(2).mMobileCardCurrentIndex=e}))("exportCommentEvt",(function(){return Ne(t),os(2).exportComment()}))("showBubbleEvt",(function(){return Ne(t),os(2).showBubble()}))("deleteCommentEvt",(function(e){return Ne(t),os(2).deleteComment(e)}))("editCommentEvt",(function(e){return Ne(t),os(2).editComment(e)}))("toCommentMobileToolReplyEvt",(function(){return Ne(t),os(2).toCommentMobileToolReply()})),jo()}if(2&t){const t=os(2);Uo("startIndex",t.mMobileCardCurrentIndex)("mTotalCommentList",t.mTotalCommentList)("mBubbleOffBtnIcon",t.mBubbleOffBtn.icon)("mCurUserId",t.mCurUserId)}}function v5(t,e){if(1&t){const t=Jo();Yo(0,"div",117),Yo(1,"div",118),Yo(2,"app-comment-mobile-cmdTips",119),es("mCmdEndEvt",(function(){return Ne(t),os().mobileCmdEnd()})),jo(),Yo(3,"div",120),Yo(4,"div",9),Ho(5,m5,4,10,"ng-container",22),jo(),Yo(6,"div",121),Xo(7,"div",24),jo(),Yo(8,"nz-dropdown-menu",null,25),Yo(10,"ul",122),Ho(11,g5,2,1,"div",123),jo(),jo(),jo(),Yo(12,"div",124),Ho(13,f5,3,9,"ng-container",15),Ho(14,b5,6,3,"div",125),jo(),jo(),Yo(15,"div",126),Ho(16,y5,1,4,"app-comment-mobile-swipe",127),jo(),jo()}if(2&t){const t=Go(9),e=os();sa(1),Ps(e.commentMobileVis&&e.mMobileType===e.mobileCommentPanelType.commentToolPanel?"panelShow":e.isActiveOtherPanel||e.mMobileType!==e.mobileCommentPanelType.commentToolPanel?"panelHidden":"panelHiddenTransition"),sa(1),Uo("replyTargetUserName",e.mMobileParentId?e.mTotalCommentList[e.mMobileCardCurrentIndex].creator:"")("lastUpdateTime",e.mIsEdit?e.mTotalCommentList[e.mMobileCardCurrentIndex].createTime:"")("mobileType",e.mMobileType)("isActiveOtherPanel",e.isActiveOtherPanel),sa(3),Uo("ngForOf",e.mBubbleCmd),sa(1),Uo("nzDropdownMenu",t)("nzPlacement","bottomLeft")("ngClass",bc(20,x8,e.mCommentDisabled,!e.mCommentDisabled))("nzPlacement","topRight"),sa(1),Uo("ngStyle",fc(23,b8,e.mCurColor)),sa(4),Uo("ngForOf",e.mPalette),sa(1),xs("height",e.mMobileReplyPanelHeight,"px"),sa(1),Uo("ngIf",!e.mIsFold),sa(1),Uo("ngIf",e.mIsFold),sa(1),Ps(e.commentMobileVis&&e.mMobileType===e.mobileCommentPanelType.commentPanel?"panelShow":e.isActiveOtherPanel||e.mMobileType!==e.mobileCommentPanelType.commentPanel?"panelHidden":"panelHiddenTransition"),sa(1),Uo("ngIf",e.mTotalCommentList.length)}}var w5,x5=((w5=x5||(x5={}))[w5.Pin=0]="Pin",w5[w5.Circle=1]="Circle",w5[w5.Rectangle=2]="Rectangle",w5[w5.Polyline=3]="Polyline",w5[w5.Leader=4]="Leader",w5[w5.Revcloud=5]="Revcloud",w5[w5.Image=6]="Image",x5);let C5=(()=>{class t{constructor(t,e,n,i,r){this.settingService=t,this.changeDetectorRef=e,this.messageService=n,this.cdr=i,this.elementRef=r,this.destroy$=new A,this.mGs=null,this.mCurLayoutHandle="",this.mCurUserId=0,this.mCommentList={total:10,rows:[]},this.mTotalCommentList=[],this.mMemberList=[],this.mContent="",this.mState={},this.mPalette=[[{str:"rgba(255,0,0,1)",num:4294901760},{str:"rgba(255,255,0,1)",num:4294967040},{str:"rgba(0,128,0,1)",num:4278222848},{str:"rgba(0,255,255,1)",num:4278255615},{str:"rgba(0,0,255,1)",num:4278190335},{str:"rgba(255,0,255,1)",num:4294902015}],[{str:"rgb(0,0,0,1)",num:4278190080},{str:"rgba(255,255,255,1)",num:4294967295},{str:"rgba(130,130,130,1)",num:4286743170},{str:"rgba(155,124,111,1)",num:4288380015},{str:"rgba(28,163,184,1)",num:4280067e3},{str:"rgba(242,153,42,1)",num:4294089002}]],this.mBubbleCmd=[{name:"circle",title:qF.mLanguagePackage.circleTool,selected:!1,icon:"#icon-tuoyuangongju"},{name:"rectangle",title:qF.mLanguagePackage.rectangleTool,selected:!1,icon:"#icon-juxinggongju"},{name:"revcloud",title:qF.mLanguagePackage.revcloudTool,selected:!1,icon:"#icon-yunxian1"},{name:"pline",title:qF.mLanguagePackage.polylineTool,selected:!1,icon:"#icon-zidingyixingzhuanggongju"},{name:"leader",title:qF.mLanguagePackage.leaderTool,selected:!1,icon:"#icon-jiantou"},{name:"image",title:qF.mLanguagePackage.imageTool,selected:!1,icon:"#icon-tupianxinxi"},{name:"bubble",title:qF.mLanguagePackage.insertPin,selected:!1,icon:"#icon-zhirutuding"}],this.mAllInputMarks={},this.mHistoryMarks=[],this.mInputComment={},this.mBubbleOffBtn={switch:!0,icon:"#icon-yincangqipao",title:qF.mLanguagePackage.hideBubble},this.mActivedReply={},this.mActivedEdit={},this.mCommentDisabled=!1,this.mCommentsPageSize=40,this.mTotalComments=0,this.mPageNum=1,this.mCurColor=this.mPalette[0][0].str,this.mIsFold=mF,this.mFilter=!1,this.mFilterTitle="",this.mMemberListForFilter=[],this.mTimeList=[{id:"-1",name:qF.mLanguagePackage.unlimited},{id:"0",name:qF.mLanguagePackage.oneDay},{id:"1",name:qF.mLanguagePackage.oneWeek},{id:"2",name:qF.mLanguagePackage.oneMonth},{id:"3",name:qF.mLanguagePackage.OneYear}],this.mStartDate="",this.mEndDate="",this.mKeywordVisible=!1,this.mTimeSelectionVisible=!1,this.mRangeDate=null,this.mRangeDateString=[],this.mSelectTimeOption="",this.mKeyword="",this.mKeywordContent="",this.mMember={},this.isCurrentVersion=!0,this.commentMobileVis=!1,this.isActiveOtherPanel=!1,this.mActiveMobileCommentToolEvt=new Dc,this.mActiveMobileCommentEvt=new Dc,this.mMobileCardCurrentIndex=0,this.mMobileParentId="",this.mMobileReplyPanelHeight=0,this.mIsMobile=mF,this.mobileCommentPanelType=Z4,this.mIsEdit=!1,this.mIsUpdateCommentData=!1,this.mHighLightId="",this.environment=tU}ngOnChanges(t){this.mMobileType===Z4.commentPanel&&!this.mTotalCommentList.length&&this.commentMobileVis&&this.messageService.warning(qF.mLanguagePackage.commentMobile_noCommentData)}ngOnInit(){MF.instance().subscribeBroardcast(_F.CommentPanel,this),MF.instance().subscribeBroardcast(_F.LayoutInActive,this),MF.instance().subscribeBroardcast(_F.ZwEvtDrawEnd,this),MF.instance().subscribeBroardcast(_F.ResizePage,this),MF.instance().subscribeBroardcast(_F.VersionPanel,this),this.settingService.pageConfig$.pipe(aC(this.destroy$)).subscribe((t=>{this.mCommentsPageSize=t.options.commentsPageSize}))}ngAfterViewInit(){if(this.mFilterTitle=qF.mLanguagePackage.filterComment,this.mSelectTimeOption=qF.mLanguagePackage.unlimitedTime,this.initEvent(),!n7.instance().mBubbleImage){let t=new Image;t.src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjg2ODIxMjQxNjEzIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjEwNDc1IiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiPjxwYXRoIGQ9Ik01MTIuMjM4MTk2MTIgNS41MTE3MDYxN2MtMjc2LjExNjk0NzQxIDAtNTAwLjIxMTg2MTI2IDIyNC4wOTQ5MTM4Ni01MDAuMjExODYxMjYgNTAwLjIxMTg2MTI1czIyNC4wOTQ5MTM4NiA1MDAuMjExODYxMjYgNTAwLjIxMTg2MTI2IDUwMC4yMTE4NjEyOSA1MDAuMjExODYxMjYtMjI0LjA5NDkxMzg2IDUwMC4yMTE4NjEyNS01MDAuMjExODYxMjlTNzg4LjM1NTE0MzUzIDUuNTExNzA2MTcgNTEyLjIzODE5NjEyIDUuNTExNzA2MTd6IG0zNDQuMTQ1NzYwNTQgNDAxLjg4NDUwMTExYy01LjE0NTAzNjI4IDkuNzE4NDAxODgtMTQuODYzNDM4MTYgMTcuMTUwMTIwOTYtMzIuMDEzNTU5MTEgMTcuMTUwMTIwOTZINzc1LjIwNjcxNzQ4Yy02LjI4ODM3NzY4IDAtMTIuNTc2NzU1MzggMi44NTgzNTM0OS0xNi41Nzg0NTAyNyA3LjQzMTcxOTA5TDYyNi41NzIzMzU4NCA1ODYuOTAwODA2NjRjLTEyLjAwNTA4NDY4IDE0LjI5MTc2NzQ3LTE5LjQzNjgwMzc2IDMyLjAxMzU1OTEyLTIwLjU4MDE0NTE0IDUwLjg3ODY5MjE2bC00LjU3MzM2NTYgNzUuNDYwNTMyMjNjLTAuNTcxNjcwNjkgMTAuODYxNzQzMjgtNC41NzMzNjU1OCAyMC41ODAxNDUxNS0xMi4wMDUwODQ2NyAyOC41ODM1MzQ5My01LjE0NTAzNjI4IDUuMTQ1MDM2MjgtMTIuMDA1MDg0NjggOS43MTg0MDE4OC0yMC41ODAxNDUxNCAxMC44NjE3NDMyN2gtMi44NTgzNTM1MWMtOC4wMDMzODk3OCAwLTE1LjQzNTEwODg2LTMuNDMwMDI0MTktMjAuNTgwMTQ1MTMtOC41NzUwNjA0OUw0NDUuMzUyNzI0MzkgNjQyLjkyNDUzNTA3bC0xNjIuMzU0NDc4NDEgMTI0LjYyNDIxMjMxLTg4LjAzNzI4NzU3IDc2LjYwMzg3MzYzYy0wLjU3MTY3MDY5IDAuNTcxNjcwNjktMC41NzE2NzA2OSAwLjU3MTY3MDY5LTEuMTQzMzQxNCAwLjU3MTY3MDY4LTEuMTQzMzQxNCAwLjU3MTY3MDY5LTMuNDMwMDI0MTkgMS43MTUwMTIwOS02LjI4ODM3NzY5IDIuMjg2NjgyODJsLTUuMTQ1MDM2MjggMS4xNDMzNDEzN2MtNC4wMDE2OTQ5IDEuMTQzMzQxNC04LjAwMzM4OTc4LTIuODU4MzUzNDktNi44NjAwNDgzOC03LjQzMTcxOTA3IDEuMTQzMzQxNC0zLjQzMDAyNDE5IDEuNzE1MDEyMDktNS43MTY3MDY5OSAyLjI4NjY4MjgxLTYuODYwMDQ4MzkgMC0wLjU3MTY3MDY5IDAuNTcxNjcwNjktMS4xNDMzNDE0IDEuMTQzMzQxMzctMS43MTUwMTIwOUwyNDkuMjY5Njc0NzcgNzUwLjM5ODYyNjQybDEzMi4wNTU5MzEzOC0xNzIuMDcyODgwMjYtMTAxLjE4NTcxMzY1LTEwMC4wNDIzNzIyNWMtNi4yODgzNzc2OC02LjI4ODM3NzY4LTkuNzE4NDAxODgtMTQuODYzNDM4MTYtOC41NzUwNjA0Ny0yMy40Mzg0OTg2NiAwLjU3MTY3MDY5LTguNTc1MDYwNDggNS4xNDUwMzYyOC0xNS40MzUxMDg4NiAxMC44NjE3NDMyNi0yMC41ODAxNDUxMyA4LjAwMzM4OTc4LTcuNDMxNzE5MDggMTcuNzIxNzkxNjYtMTEuNDMzNDEzOTYgMjguNTgzNTM0OTMtMTIuMDA1MDg0NjhsNzUuNDYwNTMyMjEtNC41NzMzNjU1OGMxOC44NjUxMzMwNi0xLjE0MzM0MTQgMzYuNTg2OTI0NzEtOC41NzUwNjA0OCA1MC44Nzg2OTIxNi0yMC41ODAxNDUxNmwxNTQuMzUxMDg4NjMtMTMxLjQ4NDI2MDY1YzUuMTQ1MDM2MjgtNC4wMDE2OTQ5IDcuNDMxNzE5MDgtMTAuMjkwMDcyNTcgNy40MzE3MTkwNy0xNi41Nzg0NTAyOHYtNDQuMDE4NjQzNzljLTEuNzE1MDEyMDktMjAuNTgwMTQ1MTUgNi44NjAwNDgzOC0zMi4wMTM1NTkxMiAxNy4xNTAxMjA5Ni0zNy4xNTg1OTU0IDUuNzE2NzA2OTktMi44NTgzNTM0OSAxMi4wMDUwODQ2OC00LjU3MzM2NTU4IDE3LjcyMTc5MTY2LTQuNTczMzY1NjEgMTAuMjkwMDcyNTcgMCAyMC4wMDg0NzQ0NSA0LjAwMTY5NDkgMjcuNDQwMTkzNTMgMTEuNDMzNDEzOThsOTMuMTgyMzIzODcgOTMuNzUzOTk0NTggMC41NzE2NzA3MSAwLjU3MTY3MDY5TDg0OS41MjM5MDgyOSAzNjEuNjYyNTUxMzhjMTIuMDA1MDg0NjggMTIuMDA1MDg0NjggMTQuODYzNDM4MTYgMzAuODcwMjE3NzIgNi44NjAwNDgzNyA0NS43MzM2NTU5eiIgcC1pZD0iMTA0NzYiPjwvcGF0aD48L3N2Zz4=",t.onload=function(){n7.instance().mBubbleImage=t}}}ngAfterViewChecked(){if(this.mobileReplyInputPanel&&this.mobileReplyInputPanel.mobileReplyInputPanelContainner){let t=this.mobileReplyInputPanel.mobileReplyInputPanelContainner.nativeElement.offsetHeight;t&&(this.mMobileReplyPanelHeight=t),this.cdr.detectChanges()}this.mobileReplyTextPanel&&this.mobileReplyTextPanel.nativeElement&&(this.mMobileReplyPanelHeight=this.mobileReplyTextPanel.nativeElement.offsetHeight,this.cdr.detectChanges())}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.resetBubbleOffToSession(),MF.instance().unsubscribeBroardcast(_F.CommentPanel,this),MF.instance().unsubscribeBroardcast(_F.LayoutInActive,this),MF.instance().unsubscribeBroardcast(_F.ZwEvtDrawEnd,this),MF.instance().unsubscribeBroardcast(_F.ResizePage,this),MF.instance().unsubscribeBroardcast(_F.VersionPanel,this),document.removeEventListener("mousedown",this.mMousedownListener),document.removeEventListener("copy",this.mCopyListener),document.removeEventListener("paste",this.mPasteListener)}setBubbleOffToSession(t,e,n){let i=XF.instance().getItem("ZcBubbleOffs","session");if(!i||!Array.isArray(i)||i[0].docId!==t)return i=[{docId:t,bubbleOffs:[{layoutHandle:e,bubbleOff:n}]}],void XF.instance().setItem("ZcBubbleOffs",i,"session");let r=i[0].bubbleOffs.findIndex((t=>t.layoutHandle===e));-1!==r?i[0].bubbleOffs[r].bubbleOff=n:i[0].bubbleOffs.push({layoutHandle:e,bubbleOff:n}),XF.instance().setItem("ZcBubbleOffs",i,"session")}getBubbleOffFromSession(t,e){let n=XF.instance().getItem("ZcBubbleOffs","session");if(n&&Array.isArray(n))if(n[0].docId===t){let t=n[0].bubbleOffs.findIndex((t=>t.layoutHandle===e));if(-1!==t)return n[0].bubbleOffs[t].bubbleOff}else this.resetBubbleOffToSession();return"undefined"}resetBubbleOffToSession(){XF.instance().removeItem("ZcBubbleOffs","session")}notify(t,e){if("object"==typeof e)switch(t){case _F.CommentPanel:"setCommentData"===e.type?(this.mIsUpdateCommentData&&(this.mIsUpdateCommentData=!1,MF.instance().broardcast(_F.UpdatePage,{type:"loading",data:{isLoading:!1}})),this.mGs=n7.instance().mGs,this.showBubble(!1,"setCommentData"),e.data&&this.setCommentData(e.data),this.mBubbleOffBtn.switch&&this.mGs.bubblesOff(this.mBubbleOffBtn.switch),mF&&(n7.instance().resetExecuteCmd(),n7.instance().clear("keepHistory"),h4.mCmd=null,this.onFold(),this.mMobileParentId&&(this.mActiveMobileCommentEvt.emit(),this.mMobileParentId=""))):"updateCommentData"===e.type?!tU.forSDK&&e.data&&e.data.successful&&this.reset():"commentPermission"===e.type?this.onCheckPaperSpace(e.data.view):"endDraw"===e.type&&(this.mBubbleCmd.forEach((t=>{t.selected=!1})),this.changeDetectorRef.detectChanges());break;case _F.LayoutInActive:if(void 0===e.data)return;let{data:t}=e;t?this.onCheckPaperSpace():(this.mCommentDisabled=!0,this.changeDetectorRef.detectChanges());break;case _F.ZwEvtDrawEnd:MF.instance().broardcast(_F.GsInteraction,{type:"draw",data:{type:"DrSurface"}}),this.onCheckPaperSpace();break;case _F.ResizePage:this.calcHeight();break;case _F.VersionPanel:e.type===p4.SwitchEnd&&(this.isCurrentVersion=e.data.isCurrent)}}initEvent(){document.addEventListener("mousedown",this.mMousedownListener=t=>{let e=t.target;this.hideDeleteBtn(e),"atInput"===e.id&&(this.replyComponent&&this.replyComponent.cancel(),this.editComponent&&this.editComponent.cancel());let n=this.getBubbleId(e);if(n&&36===n.length){if(!this.getGs())return;for(let t=0;t<this.mHistoryMarks.length;t++)if(this.mHistoryMarks[t].id===n){this.mHighLightId=n,this.mGs.locateBubble(n);break}}else this.mHighLightId="",this.changeDetectorRef.detectChanges();if(this.mGs&&this.mGs.mDrContext&&this.mGs.mDrContext.mHighlightBubble){let t=this.mGs.mDrContext.mHighlightBubble.ids;JSON.stringify([n])!==JSON.stringify(t)&&MF.instance().broardcast(_F.GsInteraction,{type:"highlightBubble",data:{highlightBubble:{ids:[n]}}})}}),document.addEventListener("copy",this.mCopyListener=t=>{const e=window.getSelection();null!==e&&(t.preventDefault(),t.clipboardData.setData("text/plain",e.toString()))}),document.addEventListener("paste",this.mPasteListener=t=>{if(this.elementRef.nativeElement.contains(t.target)){let e=t.clipboardData.getData("text/plain");if(e){t.preventDefault();let n=document.createTextNode(e),i=window.getSelection();if(i){let t=i.getRangeAt(0);t.deleteContents(),t.insertNode(n)}}}})}getBubbleId(t){let e=t.parentNode,n="";return t.id&&36===t.id.length?n=t.id:e.id&&36===e.id.length?n=e.id:e.parentNode&&e.parentNode.id&&36===e.parentNode.id.length&&(n=e.parentNode.id),n}drawBubble(t){if(this.mCommentDisabled||!n7.instance().mDrawCommentBubble&&n7.instance().mExecuteEditableCmd)return void(n7.instance().mCmdExecutionStatus&&MF.instance().broardcast(_F.History,{history:qF.mLanguagePackage.commandBusy}));if(mF){this.unfold(!0);let t=[...this.mPalette[0],...this.mPalette[1]].filter((t=>t.str===this.mCurColor))[0];n7.instance().mBubbleColor=t}let e,n=t.name;switch(this.mBubbleCmd.forEach((t=>{t.selected=t.name===n})),n){case"rectangle":e={command:"rectangle",mainBranch:void 0,subBranch:X3.rNFirstBranch};break;case"circle":e={command:"circle",mainBranch:eW.cCenterBranch,subBranch:eW.cCenterRadiusBranch};break;case"bubble":e={command:"bubble"};break;case"pline":e={command:"pline"};break;case"revcloud":e={command:"revcloud",mainBranch:GU.RectangleFirstPtBranch};break;case"leader":e={command:"leader",mainBranch:dW.lStartBranch};break;case"image":e={command:"image"}}n7.instance().mDrawCommentBubble=!0,e&&n7.instance().setExecuteCmdByClickButton(e.command,e.mainBranch,e.subBranch)}setBubbleColor(t){n7.instance().mBubbleColor=t,this.mCurColor=t.str}replyComment(t,e){for(const e in this.mActivedReply)if(Object.prototype.hasOwnProperty.call(this.mActivedReply,e)){const n=this.mActivedReply[e];if(n.id!==t.id){if(!this.getGs())return;this.replyComponent&&this.mGs.deleteBubble(Object.keys(this.replyComponent.mAllInputMarks),"notSDK"),n.showEdit=!1,n.showReply=!1}}this.mActivedReply={},t.id&&(t.showEdit=!1,t.showReply||(t.showReply=!0,this.clearOtherComponent(t,this.editComponent)),this.mActivedReply[t.id]=t,e.nohoverBackground=!0),this.changeDetectorRef.detectChanges()}editComment(t,e){if(mF)this.toCommentMobileToolReply(),setTimeout((()=>{let e=document.getElementById("atInput");e&&(e.setAttribute("name",t.id),this.mCurEditedComment=this.getCommentById(t.id),this.mCurEditedComment&&(e.innerHTML=this.mCurEditedComment.content+" "))}),300);else{this.mCurEditedComment=t,t.showBtn=!1;let n=document.getElementById("actionBtn"+t.id);n&&(n.style.display="none");for(const e in this.mActivedEdit)if(Object.prototype.hasOwnProperty.call(this.mActivedEdit,e)){const n=this.mActivedEdit[e];if(n.id!==t.id){if(!this.getGs())return;this.editComponent&&this.mGs.deleteBubble(Object.keys(this.editComponent.mAllInputMarks),"notSDK"),n.showEdit=!1,n.showReply=!1}}this.mActivedEdit={},t.id&&(t.showReply=!1,t.showEdit||(t.showEdit=!0,this.clearOtherComponent(t,this.replyComponent)),this.mActivedEdit[t.id]=t,setTimeout((()=>{this.editComponent&&this.editComponent.backfill(t.content)}),0)),e.nohoverBackground=!0}this.mIsEdit=!0,this.changeDetectorRef.detectChanges()}clearOtherComponent(t,e){if(this.inputComponent&&this.inputComponent.cancel(),t.showReply){for(const n in this.mActivedEdit)if(Object.prototype.hasOwnProperty.call(this.mActivedEdit,n)){const i=this.mActivedEdit[n];if(!this.getGs())return;e&&this.mGs.deleteBubble(Object.keys(e.mAllInputMarks),"notSDK"),i.showEdit=!1,i.id!==t.id&&(i.showReply=!1),i.nohoverBackground=!1}this.mActivedEdit={}}if(t.showEdit){for(const n in this.mActivedReply)if(Object.prototype.hasOwnProperty.call(this.mActivedReply,n)){const i=this.mActivedReply[n];if(!this.getGs())return;e&&this.mGs.deleteBubble(Object.keys(e.mAllInputMarks),"notSDK"),i.id!==t.id&&(i.showEdit=!1),i.showReply=!1,i.nohoverBackground=!1}this.mActivedReply={}}}calcHeight(){setTimeout((()=>{let t=document.getElementById("main_c"),e=document.getElementById("commentList");t&&e&&(e.style.height=t.offsetHeight-103-30-60-35+"px")}),200)}reset(){this.mActivedReply={},this.mActivedEdit={},this.mIsEdit=!1,this.mLastUpdateRowData&&(this.mLastUpdateRowData.nohoverBackground=!1)}onSave(t,e){if(!this.getGs())return;this.mInputComment={},this.mCurInputComponent=t;let n=t.mInputContent;if(!n.content)return;if(this.mIsEdit&&this.mCurEditedComment&&n.content===this.mCurEditedComment.originContent){let t=!0;if(n.mark&&JSON.stringify(this.mCurEditedComment.mark)!==n.mark&&(t=!1),n.atUserIds&&n.atUserIds!==this.mCurEditedComment.atUserIds&&(t=!1),t)return this.mIsEdit=!1,this.editComponent.cancel(),void(this.mActivedEdit={})}this.mInputComment.content=n.content,n.realContent&&(this.mInputComment.realContent=n.realContent),this.mInputComment.handleId=this.mGs.mCurLayoutHandle,n.atUserIds&&(this.mInputComment.atUserIds=n.atUserIds),n.mark&&(this.mInputComment.mark=n.mark);let i="create";n.parentId&&(this.mInputComment.parentId=n.parentId,i="reply"),n.id&&(this.mInputComment.id=n.id,i="edit"),mF&&this.mMobileParentId&&!n.id&&(this.mInputComment.parentId=this.mMobileParentId,i="reply"),this.mIsUpdateCommentData=!0,MF.instance().broardcast(_F.GetFileData,{type:"updateCommentData",data:{type:i,data:Object.assign(Object.assign({},this.getCallBackParams(this.mInputComment)),{pageSize:this.mCommentsPageSize})}}),this.mLastUpdateRowData=e,tU.forSDK&&this.reset(),this.mBubbleCmd.forEach((t=>{t.selected=!1})),this.setCurColor()}getCallBackParams(t){return t.mark&&(t.withMark="YES"),t.atUserIds&&(t.withAt="YES"),t}onCancel(t,e){if(this.mIsEdit&&this.mCurEditedComment&&"YES"===this.mCurEditedComment.withMark&&JSON.parse(this.mCurEditedComment.originMark).forEach((t=>{this.generateSvg(t)})),this.mIsEdit=!1,t){e&&(e.nohoverBackground=!1);let n=document.getElementById("atInput"+t.comment.id);if(n){if(!this.getGs())return;this.mGs.deleteBubble(Object.keys(t.mAllInputMarks),"notSDK"),n.innerHTML="",t.comment.showReply&&(t.comment.showReply=!1),t.comment.showEdit&&(t.comment.showEdit=!1),t.showMemberList(!1),t.clear(),this.clearInputParam()}}mF&&(n7.instance().resetExecuteCmd(),n7.instance().clear("keepHistory"),h4.mCmd=null,this.mMobileParentId=""),this.changeDetectorRef.detectChanges()}onCheckPaperSpace(t){if(this.getGs()){if(this.mCommentDisabled=!1,this.mGs.mGsManager.isInPaperSpace()){let e=t||this.mGs.mCurView;if(!e)return;e.isOverallView()||(this.mCommentDisabled=!0,this.inputComponent&&this.inputComponent.cancel(),this.replyComponent&&this.replyComponent.cancel(),this.editComponent&&this.editComponent.cancel())}this.changeDetectorRef.detectChanges()}}setCommentData(t){this.onCheckPaperSpace(),t.memberList&&0===t.memberList.code&&(this.mMemberList=t.memberList.data.rows,this.mMemberList.unshift({memberId:"-1",memberName:qF.mLanguagePackage.zoomTip8}),this.mMemberListForFilter=JSON.parse(JSON.stringify(this.mMemberList)),this.mMemberListForFilter[0].memberName=qF.mLanguagePackage.unlimited),t.user&&(this.mCurUserId=t.user.userId),t.commentList&&0===t.commentList.code&&(this.mCommentList=t.commentList.data,this.mTotalComments=t.commentList.data.total,t.pageNum&&t.pageNum>1?(this.clearInputParam(),this.mTotalCommentList.push(...this.mCommentList.rows)):(this.clearCommentData(),this.mTotalCommentList=this.mCommentList.rows),this.mCommentList.rows.forEach((t=>{this.transferCommentData(t)})),this.changeDetectorRef.detectChanges())}transferCommentData(t){if(!t.content)return;let e=0;"YES"===t.withMark&&(t.originMark=JSON.stringify(JSON.parse(t.mark)),t.mark=JSON.parse(t.mark),this.mHistoryMarks.push(...t.mark));let n=[],i="";for(let e=0;e<t.content.length;e++)"+"!==t.content[e]&&(i+=t.content[e]);if(t.content=i,t.content=tU.forSDK?t.content:decodeURIComponent(t.content),t.originContent=t.content,t.content.indexOf("{")>-1&&t.content.indexOf("}")){let e=t.content.split("{")[1].split("}")[0];e.trim().length>0&&(n=e.split(",")),t.content=t.content.split("{")[0]}let r=t.content.split("");return r.forEach(((i,a)=>{switch(i){case"$":if(n.length>0){let t=n.shift(),e=this.getNameById(t);r[a]=i='<span class="atFont" id="'+t+'" contenteditable="fasle" style="color: orange;">@'+e+"</span>"}break;case"#":"YES"===t.withMark&&t.mark[e]&&(i=this.generateSvg(t.mark[e]),e++,r[a]=i)}})),t.content=r.join(""),t.contentDataArr=o8(t.content).contentDataArr,t.replyList&&t.replyList.length>0&&t.replyList.forEach((t=>{this.transferCommentData(t)})),t}generateSvg(t){if(!this.getGs())return"";let e="";if(null!=t.type)switch(t.type){case x5.Pin:e='<div contenteditable="false" id="'+t.id+'" style="vertical-align: -0.3em;width: 14px;height: 14px;background-color: '+t.color+';border-radius: 7px;margin-left: 5px;display: inline-block;border: 1px solid #fff;"><svg aria-hidden="true" style="margin: 0 0 6px 0px;height: 12px;width: 12px;cursor:pointer;z-index:1000;"><use xlink:href="#icon-zhirutuding"></use></svg></div>',t.pt=new QR(t.pt[0],t.pt[1],t.pt[2]),this.mGs.createPinBubble(t.id,t.pt,!1,t.color);break;case x5.Circle:e='<svg contenteditable="false" id="'+t.id+'" style="color:'+t.color+';margin-left: 5px;cursor:pointer;" aria-hidden="true"><use xlink:href="#icon-yuanxin"></use></svg>',t.center=new QR(t.center[0],t.center[1],t.center[2]),t.endPt=new QR(t.endPt[0],t.endPt[1],t.endPt[2]),this.mGs.createCircleBubble(t.id,t.center,t.endPt,!1,t.color);break;case x5.Rectangle:e='<svg contenteditable="false" id="'+t.id+'" style="color:'+t.color+';margin-left: 5px;cursor:pointer;" aria-hidden="true" ><use xlink:href="#icon-duandian"></use></svg>',t.points=[new QR(t.points[0],t.points[1],t.points[2]),new QR(t.points[3],t.points[4],t.points[5])],this.mGs.createRectangleBubble(t.id,t.points,!1,t.color);break;case x5.Polyline:e='<svg contenteditable="false" id="'+t.id+'" style="color:'+t.color+';margin-left: 5px;cursor:pointer;" aria-hidden="true" ><use xlink:href="#icon-zidingyixingzhuanggongju"></use></svg>';let n=[];for(let e=0;e<t.points.length;e+=3)n.push(new QR(t.points[e],t.points[e+1],t.points[e+2]));t.points=n,this.mGs.createPolylineBubble(t.id,t.points,!1,t.color);break;case x5.Leader:e='<svg contenteditable="false" id="'+t.id+'" style="color:'+t.color+';margin-left: 5px;cursor:pointer;" aria-hidden="true" ><use xlink:href="#icon-jiantou"></use></svg>';let i=[];for(let e=0;e<t.points.length;e+=3)i.push(new QR(t.points[e],t.points[e+1],t.points[e+2]));t.points=i;let r=[];for(let e=0;e<t.polygonPts.length;e+=3)r.push(new QR(t.polygonPts[e],t.polygonPts[e+1],t.polygonPts[e+2]));t.polygonPts=r,this.mGs.createLeaderBubble(t.id,t.points,t.polygonPts,!1,t.color);break;case x5.Image:e='<svg contenteditable="false" id="'+t.id+'" style="color:'+t.color+';margin-left: 5px;cursor:pointer;" aria-hidden="true" ><use xlink:href="#icon-tupianxinxi"></use></svg>',t.originPoint=new QR(t.originPoint[0],t.originPoint[1],t.originPoint[2]),t.uvector=new qR(t.uvector[0],t.uvector[1],t.uvector[2]),t.vvector=new qR(t.vvector[0],t.vvector[1],t.vvector[2]),this.mGs.createImageBubble(t.id,t.originPoint,t.uvector,t.vvector,t.imageName,t.filePath,!1,t.color);break;case x5.Revcloud:e='<svg contenteditable="false" id="'+t.id+'" style="color:'+t.color+';margin-left: 5px;cursor:pointer;" aria-hidden="true" ><use xlink:href="#icon-yunxian1"></use></svg>',t.diagonalPt=new QR(t.diagonalPt[0],t.diagonalPt[1],t.diagonalPt[2]),t.originPt=new QR(t.originPt[0],t.originPt[1],t.originPt[2]),this.mGs.createRevcloudBubble(t.id,t.diagonalPt,t.originPt,[],t.radius,!1,t.color)}return" "+e+" "}getNameById(t){let e="";for(let n=0;n<this.mMemberList.length;n++){const i=this.mMemberList[n];if(i.memberId===t){e=i.memberName;break}}return e}transferContent(t,e,n){if(!t)return;let i="";t.split("@").forEach((t=>{}));for(let e=0;e<t.length;e++)i+=i}onFold(t){this.mIsFold=!0}unfold(t){this.mIsFold=!1,mF&&setTimeout((()=>{t&&this.mActiveMobileCommentToolEvt.emit()}),0)}showDeleteBtn(t){t.showBtn=!t.showBtn,this.mDeleteBtnData=t;let e=document.getElementById("actionBtn"+t.id);e&&(e.style.display=t.showBtn?"block":"none"),this.changeDetectorRef.detectChanges()}deleteComment(t){t.showBtn=!1;let e=document.getElementById("actionBtn"+t.id);if(e&&(e.style.display="none"),t.id){if("YES"===t.withMark){if(!this.getGs())return;let e=[];"string"==typeof t.mark&&(t.mark=JSON.parse(t.mark)),t.mark.forEach((t=>{e.push(t.id)})),t.replyList&&t.replyList.length>0&&t.replyList.forEach((t=>{"YES"===t.withMark&&("string"==typeof t.mark&&(t.mark=JSON.parse(t.mark)),t.mark.forEach((t=>{e.push(t.id)})))})),this.mGs.deleteBubble(e)}this.mIsUpdateCommentData=!0,MF.instance().broardcast(_F.GetFileData,{type:"updateCommentData",data:{type:"delete",data:Object.assign(Object.assign({},t),{pageSize:this.mCommentsPageSize}),remainData:this.mTotalCommentList}})}this.changeDetectorRef.detectChanges()}showBubble(t,e){if("setCommentData"!==e){if(n7.instance().mDrawCommentBubble)return void MF.instance().broardcast(_F.History,{history:qF.mLanguagePackage.commandBusy});if(this.inputComponent&&this.inputComponent.isCommenting()||this.replyComponent&&this.replyComponent.isCommenting()||this.editComponent&&this.editComponent.isCommenting())return void MF.instance().broardcast(_F.History,{history:qF.mLanguagePackage.isCommenting})}else if(this.mGs.mDocId&&this.mGs.mCurLayoutHandle){let e=this.getBubbleOffFromSession(this.mGs.mDocId,this.mGs.mCurLayoutHandle);"undefined"!==e&&(t=e)}this.mBubbleOffBtn.switch=void 0===t?!this.mBubbleOffBtn.switch:t,this.mBubbleOffBtn.switch?(this.mBubbleOffBtn.icon="#icon-xianshiqipao",this.mBubbleOffBtn.title=qF.mLanguagePackage.showBubble):(this.mBubbleOffBtn.icon="#icon-yincangqipao",this.mBubbleOffBtn.title=qF.mLanguagePackage.hideBubble),this.getGs()&&(this.mGs.mDocId&&this.mGs.mCurLayoutHandle&&this.setBubbleOffToSession(this.mGs.mDocId,this.mGs.mCurLayoutHandle,this.mBubbleOffBtn.switch),this.mGs.bubblesOff(this.mBubbleOffBtn.switch))}getMoreComments(){let t=this.getParams();this.mPageNum++,t.pageNum=this.mPageNum,MF.instance().broardcast(_F.GetFileData,{type:"getCommentDataForNextPage",data:t})}clearInputParam(){this.mInputComment={}}clearCommentData(){this.mPageNum=1,this.mInputComment={},this.mTotalCommentList=[],this.mHistoryMarks=[],this.mGs&&this.mGs.clearBubble()}hideDeleteBtn(t){let e=document.getElementsByClassName("action-panel");if(!(null===e||e.length<=0))for(let n=0;n<e.length;n++){const i=e[n];if(null===i)return;i.contains(t)||(i.style.display="none")}}getGs(){if(!this.mGs){let t=n7.instance().mGs;if(!t)return!1;this.mGs=t}return!0}showBtnChange(t){t.showBtn=!t.showBtn,this.changeDetectorRef.detectChanges()}setFilterIconTitle(){this.mFilterTitle=this.mFilter?this.showClearFilterIcon()?qF.mLanguagePackage.clearFilter:qF.mLanguagePackage.foldFilter:qF.mLanguagePackage.filterComment}changeFilterIcon(t){this.mFilter=!this.mFilter,this.setFilterIconTitle(),"clear"===t&&(this.clearFilterParams(),this.dofilterComment())}selectTimeSlot(t){this.mSelectTimeOption=t.name,this.mTimeSelectionVisible=!1,this.mRangeDateString=[],this.setFilterIconTitle();let e=new Date;switch(this.mEndDate=xF(e,"yyyy-MM-dd"),t.id){case"0":this.mStartDate=xF(new Date(e.getTime()-864e5),"yyyy-MM-dd");break;case"1":this.mStartDate=xF(new Date(e.getTime()-6048e5),"yyyy-MM-dd");break;case"2":this.mStartDate=xF(new Date(e.getTime()-2592e6),"yyyy-MM-dd");break;case"3":this.mStartDate=xF(new Date(e.getTime()-31536e6),"yyyy-MM-dd");break;default:this.mStartDate="",this.mEndDate=""}this.dofilterComment()}onChange(t){t&&(this.mRangeDateString=[],t[0]<t[1]?(this.mRangeDateString.push(xF(t[0],"yyyy-MM-dd")),this.mRangeDateString.push(xF(t[1],"yyyy-MM-dd"))):(this.mRangeDateString.push(xF(t[1],"yyyy-MM-dd")),this.mRangeDateString.push(xF(t[0],"yyyy-MM-dd"))),this.setFilterIconTitle())}clearSelectedTimeSlot(){let t=document.getElementById("timeList");if(!t)return;let e=t.getElementsByTagName("li");for(let t=0;t<e.length;t++){const n=e[t];n.classList.contains("ant-dropdown-menu-item-selected")&&n.classList.remove("ant-dropdown-menu-item-selected")}}confirmRangeDate(){this.mTimeSelectionVisible=!1,2===this.mRangeDateString.length&&(this.mSelectTimeOption=this.mRangeDateString.join("~"),this.clearSelectedTimeSlot(),this.dofilterComment())}filterComment(){this.mKeywordContent=this.mKeyword,this.mKeywordVisible=!1,this.setFilterIconTitle(),this.dofilterComment()}selectMember(t){this.mMember=t,this.setFilterIconTitle(),this.dofilterComment()}showClearFilterIcon(t="clear"){return!!this.mFilter&&("clear"===t?""!==this.mKeywordContent.trim()||"{}"!==JSON.stringify(this.mMember)||this.mSelectTimeOption!==qF.mLanguagePackage.unlimitedTime||2===this.mRangeDateString.length:""===this.mKeywordContent.trim()&&"{}"===JSON.stringify(this.mMember)&&this.mSelectTimeOption===qF.mLanguagePackage.unlimitedTime&&this.mRangeDateString.length<2)}clearFilterParams(){this.mSelectTimeOption=qF.mLanguagePackage.unlimitedTime,this.mKeyword="",this.mKeywordContent="",this.mMember={},this.mRangeDateString=[],this.mFilterTitle=qF.mLanguagePackage.filterComment}getParams(){let t={};return this.mKeyword.trim()&&(t.keyword=this.mKeyword),"{}"!==JSON.stringify(this.mMember)&&"-1"!==this.mMember.memberId&&(t.userIds=this.mMember.memberId),this.mStartDate&&this.mEndDate&&(t.startTime=this.mStartDate+" 00:00:00",t.endTime=this.mEndDate+" 23:59:59"),2===this.mRangeDateString.length&&(t.startTime=this.mRangeDateString[0]+" 00:00:00",t.endTime=this.mRangeDateString[1]+" 23:59:59"),t}dofilterComment(){let t=this.getParams();"{}"===JSON.stringify(t)?MF.instance().broardcast(_F.GetFileData,{type:"loadCommentData"}):MF.instance().broardcast(_F.GetFileData,{type:"loadCommentData",data:t})}exportComment(){let t=this.getParams(),e=n7.instance().mGs;e&&(t.handleId=e.mCurLayoutHandle,MF.instance().broardcast(_F.GetFileData,{type:"exportCommentData",data:t}))}toCommentMobileToolReply(){this.mobileReplyInputPanel&&this.mobileReplyInputPanel.cancel(),this.mIsEdit=!1,this.mMobileParentId=this.mTotalCommentList[this.mMobileCardCurrentIndex].id,this.unfold(),this.mActiveMobileCommentToolEvt.emit()}mobileCmdEnd(){this.commentMobileVis||this.mActiveMobileCommentToolEvt.emit()}getCommentById(t){let e="";for(let n=0;n<this.mTotalCommentList.length;n++){const i=this.mTotalCommentList[n];if(i.id===t){e=i;break}{let n=i.replyList,r=!1;for(let i=0;i<n.length;i++){const a=n[i];if(a.id===t){e=a,r=!0;break}}if(r)break}}return e}toHighLightColor(t){const e=t.split(/[(),]/).filter(Boolean);return e[4]="1","rgba("+e.slice(1).join(", ")+")"}toOpacityColor(t){const e=t.split(/[(),]/).filter(Boolean);return e[4]="0.5","rgba("+e.slice(1).join(", ")+")"}setCurColor(){for(let t=0;t<this.mPalette.length;t++){const e=this.mPalette[t];let n=!1;for(let t=0;t<e.length;t++){const i=e[t];if(i.str===this.mCurColor){n7.instance().mBubbleColor=i,n=!0;break}}if(n)break}}}return t["ɵfac"]=function(e){return new(e||t)(Zo(l8),Zo(Gl),Zo(HA),Zo(Gl),Zo(bl))},t["ɵcmp"]=qt({type:t,selectors:[["app-comment"]],viewQuery:function(t,e){if(1&t&&(Nc(c8,5),Nc(h8,5),Nc(d8,5),Nc(u8,5),Nc(m8,5)),2&t){let t;Vc(t=Gc())&&(e.editComponent=t.first),Vc(t=Gc())&&(e.replyComponent=t.first),Vc(t=Gc())&&(e.inputComponent=t.first),Vc(t=Gc())&&(e.mobileReplyInputPanel=t.first),Vc(t=Gc())&&(e.mobileReplyTextPanel=t.first)}},inputs:{mMobileType:["mobileType","mMobileType"],commentMobileVis:"commentMobileVis",isActiveOtherPanel:"isActiveOtherPanel"},outputs:{mActiveMobileCommentToolEvt:"mActiveMobileCommentToolEvt",mActiveMobileCommentEvt:"mActiveMobileCommentEvt"},features:[pe],decls:4,vars:2,consts:[["class","container","id","commentContainer",3,"ngClass",4,"ngIf"],["commentContent",""],["class","containerMobile",4,"ngIf"],["id","commentContainer",1,"container",3,"ngClass"],["class","container__item",3,"ngClass",4,"ngIf"],["class","fold-box container__item",3,"ngClass","click",4,"ngIf"],[1,"tool-bar","container__item"],["style","color: #999;",4,"ngIf"],["class","expand-filter",4,"ngIf"],[1,"tool-bar-left"],[1,"btn-item",3,"title"],["class","icon","aria-hidden","true",3,"click",4,"ngIf"],["aria-hidden","true",1,"icon",3,"click"],[0,"xlink","href","#icon-Download"],["id","commentList",1,"content","container__item",3,"ngClass"],[4,"ngIf"],["class","pinglunkong-box",4,"ngIf"],["class","show-more",4,"ngIf"],[1,"container__item",3,"ngClass"],["id","toolBar",1,"tool-bar"],["toolBar",""],[1,"tool-bar-right"],[4,"ngFor","ngForOf"],["nz-dropdown","",3,"nzDropdownMenu","nzPlacement","ngClass","title"],[1,"select-color",3,"ngStyle"],["colorMenu","nzDropdownMenu"],["nz-menu",""],["style","display: flex;",4,"ngFor","ngForOf"],[3,"click"],[3,"mMemberList","mGs","mActivedReply","mActivedEdit","mCommentDisabled","mCurUserId","onSave","onCancel","onFold","onCheckPaperSpace"],["inputComponent",""],[3,"ngClass","title"],["aria-hidden","true",1,"icon",3,"ngStyle","click"],[2,"display","flex"],["class","rectangle",3,"ngStyle","click",4,"ngFor","ngForOf"],[1,"rectangle",3,"ngStyle","click"],[1,"fold-box","container__item",3,"ngClass","click"],[1,"fold-input"],[1,"unfold"],["aria-hidden","true",2,"height","13px","width","13px"],[0,"xlink","href","#icon-zhankai"],[2,"color","#999"],[1,"expand-filter"],["nz-dropdown","","nzTrigger","click",1,"item",3,"nzDropdownMenu"],[3,"ngClass",4,"ngIf"],["aria-hidden","true",1,"icon"],[0,"xlink","href","#icon-xiala"],[2,"background-color","#424242"],["memberList","nzDropdownMenu"],["nz-menu","","nzSelectable","",1,"dropdownMenu"],["nz-menu-item","",3,"click",4,"ngFor","ngForOf"],["nz-dropdown","","nzTrigger","click",1,"item",3,"nzDropdownMenu","nzVisible","nzVisibleChange"],["keyword","nzDropdownMenu"],["nz-menu","",1,"dropdownMenu",2,"margin","5px"],["id","searchInput","type","text","nz-input","","maxlength","500",2,"color","#000","margin","5px","width","150px","outline","none","height","80px","line-height","24px",3,"placeholder","ngModel","ngModelChange"],[2,"display","flex","justify-content","flex-end"],["nz-button","","nzType","primary","nzValue","small",2,"color","var(--main_font)","display","flex","align-items","center","justify-content","center","width","20px","height","20px","border-color","#424242","background","var(--editor_main_background)","margin","5px",3,"click"],["nz-dropdown","","nzTrigger","click",1,"item",3,"nzDropdownMenu","nzClickHide","nzVisible","nzVisibleChange"],[3,"ngClass"],["timeList","nzDropdownMenu"],["id","timeList","nz-menu","","nzSelectable","",1,"dropdownMenu"],["nz-menu-divider",""],["nz-submenu","",1,"dropdown-submenu",3,"nzTitle"],["nzInline","","nzFormat","yyyy-MM-dd",3,"nzAllowClear","ngModel","ngModelChange"],[1,"range-date-box"],[1,"range-date"],[1,"range-date-text"],[1,"btn"],["nz-button","","nzType","primary","nzValue","small",2,"display","flex","align-items","center","justify-content","center","width","20px","height","20px","border-color","#424242","background","var(--editor_main_background)",3,"click"],["nz-menu-item","",3,"click"],[0,"xlink","href","#icon-shaixuan"],[0,"xlink","href","#icon-shouqishaixuan"],[0,"xlink","href","#icon-qingchushaixuan"],["class","msg-card",3,"ngClass",4,"ngFor","ngForOf"],[1,"msg-card",3,"ngClass"],[1,"level"],[1,"img-box"],["imgBox",""],["class","img-box-sdk",4,"ngIf"],["alt","avatar",3,"src",4,"ngIf"],[1,"content-box"],[1,"label-box"],[1,"tool-box",3,"ngClass"],[1,"content-text"],["class","level",4,"ngFor","ngForOf"],[1,"img-box-sdk"],[0,"xlink","href","#icon-wo"],["alt","avatar",3,"src"],[0,"xlink","href","#icon-More"],["class","action-panel",4,"ngIf"],[1,"action-panel"],[1,"action-box",3,"click"],[1,"action-boder"],[1,"action"],[0,"xlink","href","#icon-bianji"],[0,"xlink","href","#icon-FileDelete"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"date"],[3,"mMemberList","mGs","comment","mCommentDisabled","mCurUserId","mIsEdit","mCurEditedComment","onSave","onCancel","onCheckPaperSpace"],["editComponent",""],["class","action-panel",3,"id",4,"ngIf"],[1,"action-panel",3,"id"],[1,"icon-box",3,"click"],["aria-hidden","true",1,"icon",2,"margin-right","5px"],[0,"xlink","href","#icon-huifu1"],[3,"mMemberList","mGs","comment","mCommentDisabled","mCurUserId","mIsReply","onSave","onCancel","onCheckPaperSpace"],["replyComponent",""],[1,"pinglunkong-box"],["aria-hidden","true",1,"pinglunkong"],[0,"xlink","href","#icon-pinglunkong"],[1,"line1"],[1,"line2"],[1,"show-more"],[3,"title"],[1,"infoContent"],["aria-hidden","true",1,"icon",3,"id"],[3,"innerHTML"],[1,"containerMobile"],[1,"commentToolPanel","panel"],[3,"replyTargetUserName","lastUpdateTime","mobileType","isActiveOtherPanel","mCmdEndEvt"],[1,"cmdPanel"],["nz-dropdown","",1,"tool-bar-right",3,"nzDropdownMenu","nzPlacement","ngClass"],["nz-menu","",1,"mobileColorMenu"],["class","colorRow",4,"ngFor","ngForOf"],[1,"replyPanel"],["class","replyPanelFold",4,"ngIf"],[1,"commentPanel","panel"],[3,"startIndex","mTotalCommentList","mBubbleOffBtnIcon","mCurUserId","sliderIndexChangedEvt","exportCommentEvt","showBubbleEvt","deleteCommentEvt","editCommentEvt","toCommentMobileToolReplyEvt",4,"ngIf"],[1,"colorRow"],[3,"class","ngStyle","click",4,"ngFor","ngForOf"],[3,"ngStyle","click"],[3,"mMemberList","mGs","mActivedReply","mActivedEdit","mCommentDisabled","mCurUserId","mIsEdit","mCurEditedComment","mIsMobileContenteditable","onSave","onCancel","onFold","onCheckPaperSpace"],["mobileReplyInputPanel",""],[1,"replyPanelFold"],["mobileReplyTextPanel",""],[1,"replyFoldBox",3,"click"],[1,"replyDefaultText"],[3,"startIndex","mTotalCommentList","mBubbleOffBtnIcon","mCurUserId","sliderIndexChangedEvt","exportCommentEvt","showBubbleEvt","deleteCommentEvt","editCommentEvt","toCommentMobileToolReplyEvt"]],template:function(t,e){1&t&&(Ho(0,s5,22,22,"div",0),Ho(1,u5,3,1,"ng-template",null,1,Yc),Ho(3,v5,17,25,"div",2)),2&t&&(Uo("ngIf",!e.mIsMobile),sa(3),Uo("ngIf",e.mIsMobile))},styles:[".container[_ngcontent-%COMP%]{height:100%;overflow:auto;display:flex;flex-direction:column;border:1px solid var(--editor_main_border);border-top:0}.container[_ngcontent-%COMP%]::-webkit-scrollbar{width:10px;height:10px}.container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:10px;background-color:var(--editor_main_scrollBar)}.container[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:var(--scrollbar_track)}.container[_ngcontent-%COMP%]::-webkit-scrollbar-corner{width:10px;height:10px;background-color:var(--editor_command_panel)}.container__item[_ngcontent-%COMP%]{min-width:300px}.ant-menu-vertical[_ngcontent-%COMP%]{border:none}.ant-dropdown-menu[_ngcontent-%COMP%]{padding:0;border:none}svg[_ngcontent-%COMP%]{width:16px;height:18px}.pin[_ngcontent-%COMP%]{margin:0 0 3px -14px;cursor:pointer;z-index:1000;width:12px;height:12px}.pin-div[_ngcontent-%COMP%]{width:14px;height:14px;border-radius:7px;display:inline-block;border:1px solid #fff}.title[_ngcontent-%COMP%]{display:flex;height:50px;border-bottom:1px solid #e0e0e0;align-items:center;padding:15px}.title[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{font-size:16px}.title[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{border:1px solid #e0e0e0;margin-left:20px;border-radius:5px;font-size:12px;padding:2px 10px;cursor:pointer;display:flex;align-items:center}.title[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%] .circle[_ngcontent-%COMP%]{width:16px;height:16px;background-color:red;border-radius:8px;margin-right:5px}.tool-bar[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--editor_main_border);padding:5px 5px 5px 10px}.tool-bar[_ngcontent-%COMP%] .tool-bar-right[_ngcontent-%COMP%], .tool-bar[_ngcontent-%COMP%] .tool-bar-left[_ngcontent-%COMP%]{display:flex;align-items:center}.tool-bar[_ngcontent-%COMP%] .btn-item[_ngcontent-%COMP%]{cursor:pointer;margin-right:5px}.tool-bar[_ngcontent-%COMP%] .btn-item[_ngcontent-%COMP%]:hover{color:orange}.tool-bar[_ngcontent-%COMP%] .btn-item[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:20px;height:20px;cursor:pointer}.tool-bar[_ngcontent-%COMP%] .btn-item-disable[_ngcontent-%COMP%]{margin-right:5px}.tool-bar[_ngcontent-%COMP%] .btn-item-disable[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:20px;height:20px}.tool-bar[_ngcontent-%COMP%] .select-color[_ngcontent-%COMP%]{width:18px;height:18px;border-radius:9px;margin-top:-3px;cursor:pointer}.center-style[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}#commentList[_ngcontent-%COMP%]{overflow:auto;overflow-y:auto;flex:1 1 0}#commentList[_ngcontent-%COMP%] .pinglunkong-box[_ngcontent-%COMP%]{text-align:center;color:#999}#commentList[_ngcontent-%COMP%] .pinglunkong-box[_ngcontent-%COMP%] .pinglunkong[_ngcontent-%COMP%]{width:100px;height:100px}#commentList[_ngcontent-%COMP%] .pinglunkong-box[_ngcontent-%COMP%] .line1[_ngcontent-%COMP%]{margin-bottom:5px;margin-top:20px;font-size:16px}#commentList[_ngcontent-%COMP%] .pinglunkong-box[_ngcontent-%COMP%] .line2[_ngcontent-%COMP%]{font-size:12px}#commentList[_ngcontent-%COMP%] .msg-card-hover[_ngcontent-%COMP%]:hover{border:1px solid rgba(153,153,153,.1);border-radius:5px;background-color:var(--editor_command_panel_hover)}#commentList[_ngcontent-%COMP%] .msg-card[_ngcontent-%COMP%]{border:1px solid transparent;border-bottom:1px solid rgba(153,153,153,.1)}#commentList[_ngcontent-%COMP%] .msg-card[_ngcontent-%COMP%] .level[_ngcontent-%COMP%]{display:flex}#commentList[_ngcontent-%COMP%] .msg-card[_ngcontent-%COMP%] .level[_ngcontent-%COMP%] .img-box[_ngcontent-%COMP%]{padding:10px}#commentList[_ngcontent-%COMP%] .msg-card[_ngcontent-%COMP%] .level[_ngcontent-%COMP%] .img-box-sdk[_ngcontent-%COMP%]{width:22px;height:22px;display:flex;align-items:center;justify-content:center;background:#40a9ff;border-radius:11px}#commentList[_ngcontent-%COMP%] .msg-card[_ngcontent-%COMP%] .level[_ngcontent-%COMP%] .content-box[_ngcontent-%COMP%]{height:11%;width:86%}#commentList[_ngcontent-%COMP%] .msg-card[_ngcontent-%COMP%] .level[_ngcontent-%COMP%] .content-box[_ngcontent-%COMP%] .label-box[_ngcontent-%COMP%]{padding-top:10px;display:flex;justify-content:space-between}#commentList[_ngcontent-%COMP%] .msg-card[_ngcontent-%COMP%] .level[_ngcontent-%COMP%] .content-box[_ngcontent-%COMP%] .label-box[_ngcontent-%COMP%] .tool-box[_ngcontent-%COMP%]{display:flex;margin-right:5px}#commentList[_ngcontent-%COMP%] .msg-card[_ngcontent-%COMP%] .level[_ngcontent-%COMP%] .content-box[_ngcontent-%COMP%] .label-box[_ngcontent-%COMP%] .tool-box[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{cursor:pointer}#commentList[_ngcontent-%COMP%] .msg-card[_ngcontent-%COMP%] .level[_ngcontent-%COMP%] .content-box[_ngcontent-%COMP%] .label-box[_ngcontent-%COMP%] .tool-box[_ngcontent-%COMP%] .action-panel[_ngcontent-%COMP%]{position:relative;background-color:var(--editor_comment_button);margin-left:-50px;margin-bottom:-61px;color:var(--editor_comment_button_font);z-index:99999}#commentList[_ngcontent-%COMP%] .msg-card[_ngcontent-%COMP%] .level[_ngcontent-%COMP%] .content-box[_ngcontent-%COMP%] .label-box[_ngcontent-%COMP%] .tool-box[_ngcontent-%COMP%] .action-panel[_ngcontent-%COMP%] .action-boder[_ngcontent-%COMP%]{border-bottom:1px solid var(--editor_main_border)}#commentList[_ngcontent-%COMP%] .msg-card[_ngcontent-%COMP%] .level[_ngcontent-%COMP%] .content-box[_ngcontent-%COMP%] .label-box[_ngcontent-%COMP%] .tool-box[_ngcontent-%COMP%] .action-panel[_ngcontent-%COMP%] .action-box[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:var(--editor_comment_button_hover)}#commentList[_ngcontent-%COMP%] .msg-card[_ngcontent-%COMP%] .level[_ngcontent-%COMP%] .content-box[_ngcontent-%COMP%] .label-box[_ngcontent-%COMP%] .tool-box[_ngcontent-%COMP%] .action-panel[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;margin:2px 8px}#commentList[_ngcontent-%COMP%] .msg-card[_ngcontent-%COMP%] .level[_ngcontent-%COMP%] .content-box[_ngcontent-%COMP%] .label-box[_ngcontent-%COMP%] .tool-box[_ngcontent-%COMP%] .action-panel[_ngcontent-%COMP%] .action[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:5px}#commentList[_ngcontent-%COMP%] .msg-card[_ngcontent-%COMP%] .level[_ngcontent-%COMP%] .content-box[_ngcontent-%COMP%] .content-text[_ngcontent-%COMP%]{border-radius:5px;min-width:calc(100% - 46px)}#commentList[_ngcontent-%COMP%] .msg-card[_ngcontent-%COMP%] .level[_ngcontent-%COMP%] .content-box[_ngcontent-%COMP%] .content-text[_ngcontent-%COMP%] .date[_ngcontent-%COMP%]{opacity:.3}#commentList[_ngcontent-%COMP%] .msg-card[_ngcontent-%COMP%] .level[_ngcontent-%COMP%] .content-box[_ngcontent-%COMP%] .content-text[_ngcontent-%COMP%] .comment[_ngcontent-%COMP%]{margin-right:5px;word-wrap:break-word;word-break:break-all;overflow:hidden;-webkit-line-clamp:2;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical}#commentList[_ngcontent-%COMP%] .msg-card[_ngcontent-%COMP%] .level[_ngcontent-%COMP%] .content-box[_ngcontent-%COMP%] .content-text[_ngcontent-%COMP%] .comment[_ngcontent-%COMP%]:active, #commentList[_ngcontent-%COMP%] .msg-card[_ngcontent-%COMP%] .level[_ngcontent-%COMP%] .content-box[_ngcontent-%COMP%] .content-text[_ngcontent-%COMP%] .comment[_ngcontent-%COMP%]:hover{-webkit-line-clamp:unset}#commentList[_ngcontent-%COMP%] .msg-card[_ngcontent-%COMP%] .level[_ngcontent-%COMP%] .content-box[_ngcontent-%COMP%] .content-text[_ngcontent-%COMP%] .infoContent[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap;word-break:break-all}#commentList[_ngcontent-%COMP%] .msg-card[_ngcontent-%COMP%] .level[_ngcontent-%COMP%] .content-box[_ngcontent-%COMP%] .content-text[_ngcontent-%COMP%] .infoContent[_ngcontent-%COMP%] .svgDiv[_ngcontent-%COMP%]{display:inline-block;width:18px;height:18px;position:relative;border-radius:3px}#commentList[_ngcontent-%COMP%] .msg-card[_ngcontent-%COMP%] .level[_ngcontent-%COMP%] .content-box[_ngcontent-%COMP%] .content-text[_ngcontent-%COMP%] .infoContent[_ngcontent-%COMP%] .svgDiv[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:13px;height:13px;position:absolute;top:50%;left:50%;margin-top:-6px;margin-left:-6px;cursor:pointer}#commentList[_ngcontent-%COMP%] .msg-card[_ngcontent-%COMP%] .level[_ngcontent-%COMP%] .content-box[_ngcontent-%COMP%] .content-text[_ngcontent-%COMP%] .infoContent[_ngcontent-%COMP%] .selectSvgDiv[_ngcontent-%COMP%]{background-color:#ffffff26}#commentList[_ngcontent-%COMP%] .msg-card[_ngcontent-%COMP%] .level[_ngcontent-%COMP%] .content-box[_ngcontent-%COMP%] .content-text[_ngcontent-%COMP%] .infoContent[_ngcontent-%COMP%] .noSelectSvgDiv[_ngcontent-%COMP%]{background-color:transparent}#commentList[_ngcontent-%COMP%] .msg-card[_ngcontent-%COMP%] .level[_ngcontent-%COMP%] .content-box[_ngcontent-%COMP%] .content-text-reply[_ngcontent-%COMP%]{border-bottom:1px solid #e0e0e0}#commentList[_ngcontent-%COMP%] .msg-card[_ngcontent-%COMP%] .reply-prompt[_ngcontent-%COMP%]{height:30px;cursor:pointer;opacity:.6;display:flex;align-items:center}#commentList[_ngcontent-%COMP%] .msg-card[_ngcontent-%COMP%] .reply-prompt[_ngcontent-%COMP%] .icon-box[_ngcontent-%COMP%]{width:46px;align-items:center;display:flex;justify-content:flex-end}#commentList[_ngcontent-%COMP%] .msg-card[_ngcontent-%COMP%] .reply-prompt[_ngcontent-%COMP%] .icon-box[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:18px;margin-right:5px;height:18px}#commentList[_ngcontent-%COMP%]::-webkit-scrollbar{width:10px;height:10px}#commentList[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:10px;background-color:var(--editor_main_scrollBar)}#commentList[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:var(--scrollbar_track)}#commentList[_ngcontent-%COMP%]::-webkit-scrollbar-corner{width:10px;height:10px;background-color:var(--editor_command_panel)}img[_ngcontent-%COMP%]{height:26px;width:26px}#memberList[_ngcontent-%COMP%]{display:none;border-bottom:1px solid var(--editor_main_border)}#memberList[_ngcontent-%COMP%] .member-list[_ngcontent-%COMP%]{border:1px solid #999;background:var(--editor_command_panel);margin:0 15px 5px}#memberList[_ngcontent-%COMP%] .member-list[_ngcontent-%COMP%] .userName-box[_ngcontent-%COMP%]:hover{background-color:var(--editor_command_panel);cursor:pointer}#memberList[_ngcontent-%COMP%] .member-list[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:24px;height:24px;margin-bottom:-4px}#memberList[_ngcontent-%COMP%] .member-list[_ngcontent-%COMP%] .userName[_ngcontent-%COMP%]{margin:5px 10px}.followers[_ngcontent-%COMP%]{color:#40a9ff}.rectangle[_ngcontent-%COMP%]{height:24px;width:24px;cursor:pointer}.rectangle[_ngcontent-%COMP%]:hover{box-shadow:inset 0 0 0 2px #fff}.disabled-class[_ngcontent-%COMP%]{pointer-events:none;color:#999}.show-more[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:30px}.show-more[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{cursor:pointer}.fold-box[_ngcontent-%COMP%]{cursor:pointer;color:#999}.fold-box[_ngcontent-%COMP%] .fold-input[_ngcontent-%COMP%]{border:1px solid var(--editor_main_border);height:24px;border-radius:5px;margin:15px 15px 0;background-color:var(--editor_command_panel)}.fold-box[_ngcontent-%COMP%] .unfold[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-bottom:1px solid var(--editor_main_border)}.expand-filter[_ngcontent-%COMP%]{display:flex;color:var(--main_font)}.expand-filter[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{cursor:pointer;display:flex;margin-right:10px;min-width:70px}.expand-filter[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .item-title[_ngcontent-%COMP%]{word-wrap:break-word;word-break:break-all;overflow:hidden;-webkit-line-clamp:1;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;width:57px}.expand-filter[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:12px;height:12px}.expand-filter[_ngcontent-%COMP%] .btn-box[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.range-date-box[_ngcontent-%COMP%]{margin:5px 10px}.range-date-box[_ngcontent-%COMP%] .range-date[_ngcontent-%COMP%]{display:flex;padding-bottom:10px;align-items:center}.range-date-box[_ngcontent-%COMP%] .range-date[_ngcontent-%COMP%] .range-date-text[_ngcontent-%COMP%]{color:#000;height:24px;width:80px;border:1px solid var(--editor_main_border);background-color:#fff}.range-date-box[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;padding-bottom:10px}.dropdownMenu[_ngcontent-%COMP%]{color:#fff;background-color:var(--editor_main_selected)}.dropdownMenu[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{color:#fff}.dropdownMenu[_ngcontent-%COMP%] li[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:5px}.dropdownMenu[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{background-color:#1b69a8}.dropdownMenu[_ngcontent-%COMP%] .ant-dropdown-menu-item-selected{background-color:#1890ff}.dropdown-submenu[_ngcontent-%COMP%] .ant-dropdown-menu-submenu-title{color:#fff;background-color:var(--editor_main_selected)}.dropdown-submenu[_ngcontent-%COMP%] .ant-dropdown-menu-submenu-title:hover{background-color:#1b69a8}.dropdown-submenu[_ngcontent-%COMP%] .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-expand-icon .ant-dropdown-menu-submenu-arrow-icon{color:#fff}.containerMobile[_ngcontent-%COMP%]{width:100%;font-size:14px}.containerMobile[_ngcontent-%COMP%] .panel[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}.containerMobile[_ngcontent-%COMP%] .panelShow[_ngcontent-%COMP%]{transition:all .1s linear}.containerMobile[_ngcontent-%COMP%] .panelHidden[_ngcontent-%COMP%]{transform:translateY(100%)}.containerMobile[_ngcontent-%COMP%] .panelHiddenTransition[_ngcontent-%COMP%]{transform:translateY(100%);transition:all .05s linear}.containerMobile[_ngcontent-%COMP%] .commentToolPanel[_ngcontent-%COMP%]{color:var(--main_font)}.containerMobile[_ngcontent-%COMP%] .commentToolPanel[_ngcontent-%COMP%] .cmdPanel[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;background-color:var(--editor_mobile_background);border-bottom:1px solid var(--editor_mobile_border);padding:0 2vw;height:12vw}.containerMobile[_ngcontent-%COMP%] .commentToolPanel[_ngcontent-%COMP%] .cmdPanel[_ngcontent-%COMP%] .tool-bar-right[_ngcontent-%COMP%], .containerMobile[_ngcontent-%COMP%] .commentToolPanel[_ngcontent-%COMP%] .cmdPanel[_ngcontent-%COMP%] .tool-bar-left[_ngcontent-%COMP%]{display:flex;align-items:center}.containerMobile[_ngcontent-%COMP%] .commentToolPanel[_ngcontent-%COMP%] .cmdPanel[_ngcontent-%COMP%] .tool-bar-right[_ngcontent-%COMP%]{height:9vw}.containerMobile[_ngcontent-%COMP%] .commentToolPanel[_ngcontent-%COMP%] .cmdPanel[_ngcontent-%COMP%] .btn-item[_ngcontent-%COMP%]{margin-right:10px}.containerMobile[_ngcontent-%COMP%] .commentToolPanel[_ngcontent-%COMP%] .cmdPanel[_ngcontent-%COMP%] .btn-item[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:24px;height:24px}.containerMobile[_ngcontent-%COMP%] .commentToolPanel[_ngcontent-%COMP%] .cmdPanel[_ngcontent-%COMP%] .btn-item-disable[_ngcontent-%COMP%]{margin-right:5px}.containerMobile[_ngcontent-%COMP%] .commentToolPanel[_ngcontent-%COMP%] .cmdPanel[_ngcontent-%COMP%] .btn-item-disable[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:20px;height:20px}.containerMobile[_ngcontent-%COMP%] .commentToolPanel[_ngcontent-%COMP%] .cmdPanel[_ngcontent-%COMP%] .select-color[_ngcontent-%COMP%]{width:5vw;height:5vw;border-radius:2.5vw;margin-top:-3px;cursor:pointer}.containerMobile[_ngcontent-%COMP%] .commentToolPanel[_ngcontent-%COMP%] .replyPanel[_ngcontent-%COMP%]{background-color:var(--editor_mobile_background);border-bottom:1px solid var(--editor_mobile_border);transition:all .1s linear;overflow:hidden}.containerMobile[_ngcontent-%COMP%] .commentToolPanel[_ngcontent-%COMP%] .replyPanel[_ngcontent-%COMP%] .replyPanelFold[_ngcontent-%COMP%]{padding:2vw}.containerMobile[_ngcontent-%COMP%] .commentToolPanel[_ngcontent-%COMP%] .replyPanel[_ngcontent-%COMP%] .replyPanelFold[_ngcontent-%COMP%] .replyFoldBox[_ngcontent-%COMP%]{background-color:var(--editor_command_input_mobile);border-radius:4px;padding:3px 5px;height:8vw}.containerMobile[_ngcontent-%COMP%] .commentToolPanel[_ngcontent-%COMP%] .replyPanel[_ngcontent-%COMP%] .replyPanelFold[_ngcontent-%COMP%] .replyFoldBox[_ngcontent-%COMP%] .replyDefaultText[_ngcontent-%COMP%]{color:#8e8e8e;font-size:12px}.containerMobile[_ngcontent-%COMP%] .commentPanel[_ngcontent-%COMP%] [nz-carousel-content][_ngcontent-%COMP%]{text-align:center;height:160px;line-height:160px;background:#364d79;color:#fff;overflow:hidden}.containerMobile[_ngcontent-%COMP%] .commentPanel[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:#fff;margin-bottom:0;-webkit-user-select:none;user-select:none}.mobileColorMenu[_ngcontent-%COMP%]{width:45vw;height:20vw;border:1px solid #797979;background-color:#393939;border-radius:5px;display:flex;flex-direction:column;justify-content:space-around;padding:1vw}.mobileColorMenu[_ngcontent-%COMP%] .colorRow[_ngcontent-%COMP%]{display:flex;justify-content:space-around;flex-direction:row-reverse}.mobileColorMenu[_ngcontent-%COMP%] .colorRow[_ngcontent-%COMP%] .circle[_ngcontent-%COMP%]{width:5vw;height:5vw;border-radius:2.5vw}.mobileColorMenu[_ngcontent-%COMP%] .colorRow[_ngcontent-%COMP%] .selectColor[_ngcontent-%COMP%]{border:2px solid white}"]}),t})();function k5(t=0,e=Jx){return(!eC(t)||t<0)&&(t=0),(!e||"function"!=typeof e.schedule)&&(e=Jx),new _((n=>(n.add(e.schedule(S5,t,{subscriber:n,counter:0,period:t})),n)))}function S5(t){const{subscriber:e,counter:n,period:i}=t;e.next(n),this.schedule({subscriber:e,counter:n+1,period:i},i)}var P5,_5,M5,D5=((M5=D5||(D5={}))[M5.WaitForRespond=0]="WaitForRespond",M5[M5.SendLastestOnIdle=1]="SendLastestOnIdle",M5[M5.SendOnIdle=2]="SendOnIdle",M5[M5.JustSend=3]="JustSend",D5),E5=((_5=E5||(E5={}))[_5.ConfirmToClose=10009]="ConfirmToClose",_5[_5.NoResource=10010]="NoResource",_5[_5.OpenRepeat=30002]="OpenRepeat",E5),O5=((P5=O5||(O5={}))[P5.Abnormal=1006]="Abnormal",P5[P5.PolicyViolation=1008]="PolicyViolation",P5[P5.NoResource=4e3]="NoResource",P5[P5.OpenRepeat=4001]="OpenRepeat",O5);let A5=(()=>{class t{constructor(){this.messageSubject=new A,this.dataSubject=new A,this.url="",this.ws=null,this.connectSuccess=!1,this.mCloseEventCode=O5.NoResource,this.lockReconnect=!1,this.runTimeSubscription=null,this.runTimePeriod=6e4,this.mDataQueue=[],this.mOpenDocObj={},this.mCreateLayerObj={},this.mCreateTextStyleObj={},this.mCreateDimStyleObj={},this.mWebSocketStatus=D5.SendOnIdle,this.mReceivedMsg={start:0,version:0,jsonLength:0,json:{id:-1,code:-1,handleId:-1,msg:"",data:{},entityHandles:[],angle:-360},type:0,len:0,data:{},end:0},this.mDatabase=null}connect(t){this.connectSuccess||(this.url=IJ.mUseWebsocketDebug?"ws://127.0.0.1:9123":t,this.createWebSocket())}createWebSocket(){this.ws=new WebSocket(this.url),this.ws.onopen=t=>this.onOpen(t),this.ws.onmessage=t=>this.onMessage(t),this.ws.onclose=t=>this.onClose(t),this.ws.onerror=t=>this.onError(t)}directSendMessage(t){tU.forSDK||new URL(location.href).searchParams.get("id")===t.data.docId?this.ws&&1===this.ws.readyState&&(SF.log("发送消息:----------------"),SF.log(t),this.ws.send(JSON.stringify(t))):SF.error("发送的请求中docId不是当前文档的id")}sendMessage(t,e=D5.WaitForRespond){this.mDataQueue.push({data:t,state:e}),!(this.mDataQueue.length>1)&&(this.mWebSocketStatus=e,this.directSendMessage(t))}onOpen(t){SF.log("websocket 已连接"),this.mCloseEventCode=0,this.messageSubject.next('{"type":"success", "data":"connect success"}'),this.pingTimer=setInterval((()=>{this.ws&&1===this.ws.readyState?this.ws.send("ping"):clearInterval(this.pingTimer)}),55e3)}onMessage(t){this.dataSubject.next(t.data)}onClose(t){SF.log("连接关闭",t),this.connectSuccess=!1,this.ws=null,this.messageSubject.next(JSON.stringify({type:"closed",code:this.mCloseEventCode?this.mCloseEventCode:t.code,data:t.reason})),this.stopRunTime(),this.messageSubject.unsubscribe(),this.messageSubject=new A,MF.instance().broardcast(_F.WebsocketStatus,{type:"websocketStatus",data:{isConnected:!1}})}onError(t){SF.log("连接异常",t)}reconnect(){this.ws&&1===this.ws.readyState||this.lockReconnect||(this.lockReconnect=!0,this.reconnectTimer=setTimeout((()=>{SF.log("尝试重连"),this.connect(this.url),this.lockReconnect=!1,clearTimeout(this.reconnectTimer)}),5e3))}closeSocket(t){SF.log("前端主动断开websocket"),clearInterval(this.pingTimer),clearTimeout(this.reconnectTimer),this.ws&&(t&&(this.mCloseEventCode=t),this.connectSuccess=!1,this.ws.close(),this.mDataQueue=[]),MF.instance().broardcast(_F.WebsocketStatus,{type:"websocketStatus",data:{isConnected:!1}})}clear(){this.mDataQueue=[],this.connectSuccess=!1,this.dataSubject.unsubscribe(),this.dataSubject=new A,this.messageSubject.unsubscribe(),this.messageSubject=new A,this.stopRunTime(),clearInterval(this.pingTimer),clearTimeout(this.reconnectTimer),this.ws=null}calcRunTime(){this.runTimeSubscription=k5(this.runTimePeriod).subscribe((t=>{SF.log("运行时间",t+"分钟")}))}stopRunTime(){null!=this.runTimeSubscription&&this.runTimeSubscription.unsubscribe()}readArrayBuffer(t){var e=this;return jR((function*(){let n=new F3;if(n.prepareReadData(t),e.mReceivedMsg.start=f3(n.readUInt(),g3.kLMFZERO),51931!==e.mReceivedMsg.start)return SF.log("数据头校验不正确"),!1;if(e.mReceivedMsg.version=f3(n.readByte(),g3.kLMFZERO),e.mReceivedMsg.jsonLength=f3(n.readUInt(),g3.kLMFZERO),0===e.mReceivedMsg.jsonLength)return SF.log("websocket返回的JSON长度为0"),!1;let i=f3(n.readStringByLens(e.mReceivedMsg.jsonLength),g3.kLMFSTRING);if(0===i.trim().length)return SF.log("websocket返回的JSON为空值"),!1;if(e.mReceivedMsg.json=JSON.parse(i),e.mReceivedMsg.type=f3(n.readByte(),g3.kLMFZERO),e.mReceivedMsg.len=f3(n.readUnit64(),g3.kLMFZERO),Number(e.mReceivedMsg.len)>0){let t=new Uint8Array(Number(e.mReceivedMsg.len));for(let i=0;i<e.mReceivedMsg.len;i++){const e=f3(n.readByte(),g3.kLMFZERO);t[i]=e}if(e.mReceivedMsg.end=f3(n.readUInt(),g3.kLMFZERO),51934!==e.mReceivedMsg.end)return SF.log("数据结尾校验不正确"),!1;let i=Number(e.mReceivedMsg.len),r=Module._malloc(i);Module.HEAPU8.set(t,r);let a=Module._malloc(8),o=Module._uncompressJs(i,r,a),s=Module.HEAPU32[a>>2],l=Module.HEAPU8.slice(o,o+s).buffer;Module._free(a);let c=new B3,h=new b3;c.setPrimitiveEvaluator(h),yield c.loadLMFBlobData(l),e.mReceivedMsg.data=c,SF.log("lmfReader",c),null===e.mDatabase&&(e.mDatabase=(new sB).getDB()),e7.getIncrementalDataById===e.mReceivedMsg.json.id||e7.getTempIncrementalDataById===e.mReceivedMsg.json.id?(IJ.mEnableWASMWrapper&&mj.instance().increaseDisplayData(l),e7.getIncrementalDataById===e.mReceivedMsg.json.id?HZ.clearJig():e7.getTempIncrementalDataById===e.mReceivedMsg.json.id&&HZ.clearTempJig()):(e7.regen===e.mReceivedMsg.json.id||e7.regenForZoomE===e.mReceivedMsg.json.id)&&(e.mDatabase&&e.mDatabase.regenLMFData(c),IJ.mEnableWASMWrapper&&mj.instance().regenLoadData(l))}else if(e.mReceivedMsg.end=f3(n.readUInt(),g3.kLMFZERO),51934!==e.mReceivedMsg.end)return SF.log("数据结尾校验不正确"),!1;return SF.log("解析接收到的二进制流消息:----------------"),SF.log("websocket接收的数据:",e.mReceivedMsg.json),SF.log("解析接收到二进制流消息时间",xF(new Date)),!0}))()}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵprov"]=vt({token:t,factory:t["ɵfac"],providedIn:"root"}),t})();class T5{constructor(t,e){this.mX=t||0,this.mY=e||0}set(t,e){this.mX=t,this.mY=e}dotProduct(t){return this.mX*t.mX+this.mY*t.mY}}const I5=["宋体","黑体","微软雅黑","思源宋体","思源雅黑","思源黑体"];class L5{constructor(){this.mCanvas=null,this.m2dContext=null,this.mOffscreenCanvas=null,this.mRenderMethod=new Map,this.mStart=new oB,this.mEnd=new oB,this.mConvertPt3d=new QR,yF?this.mOffscreenCanvas=new OffscreenCanvas(50,50):(this.mOffscreenCanvas=document.createElement("canvas"),this.mOffscreenCanvas.width=50,this.mOffscreenCanvas.height=50),this.mRenderMethod.set(RB.RAWPOLYLINE3D,((t,e,n)=>{this.drawRawPolyline3d(t,e,n)})),this.mRenderMethod.set(RB.POLYLINE3D,((t,e,n)=>{this.drawPolyline3d(t,e,n)})),this.mRenderMethod.set(RB.RAWLINESTRIPS3D,((t,e,n)=>{this.drawRawLineStrips3d(t,e,n)})),this.mRenderMethod.set(RB.LINESTRIPS3D,((t,e,n)=>{this.drawLineStrips3d(t,e,n)})),this.mRenderMethod.set(RB.SILHOUETTERAWPOLYLINE3D,((t,e,n)=>{this.drawSilhouetteRawPolyline3d(t,e,n)})),this.mRenderMethod.set(RB.SHADEDRAWPOLYLINE3D,((t,e,n)=>{this.drawShadedRawPolyline3d(t,e,n)})),this.mRenderMethod.set(RB.POLYTRIANGLE3D,((t,e,n)=>{this.drawPolytriangle3d(t,e,n)})),this.mRenderMethod.set(RB.SHADEDPOLYTRIANGLE3D,((t,e,n)=>{this.drawShadedPolytriangle3d(t,e,n)})),this.mRenderMethod.set(RB.COLORIZEDPOLYTRIANGLE3D,((t,e,n,i,r)=>{this.drawColorizedPolytriangle3d(t,e,n,i,r)})),this.mRenderMethod.set(RB.SHADEDCOLORIZEDPOLYTRIANGLE3D,((t,e,n,i,r)=>{this.drawShadedColorizedPolytriangle3d(t,e,n,i,r)})),this.mRenderMethod.set(RB.POLYGON3D,((t,e,n)=>{this.drawPolygon3d(t,e,n)})),this.mRenderMethod.set(RB.POLYPOLYGON3D,((t,e,n)=>{this.drawPolyPolygon3d(t,e,n)})),this.mRenderMethod.set(RB.WIPEOUTPOLYGON3D,((t,e,n)=>{this.drawWipeOutPolygon3d(t,e,n)})),this.mRenderMethod.set(RB.CIRCULARARC3D,((t,e,n)=>{this.drawCircularArc3d(t,e,n)})),this.mRenderMethod.set(RB.ELLIPTICALARC3D,((t,e,n)=>{this.drawEllipticalArc3d(t,e,n)})),this.mRenderMethod.set(RB.TEXT3D,((t,e,n)=>{this.drawText3d(t,e,n)})),this.mRenderMethod.set(RB.HATCH3D,((t,e,n,i,r)=>{this.drawHatch3d(t,e,n,i,r)})),this.mRenderMethod.set(RB.RASTERIMAGE,((t,e)=>{this.drawRasterImage(t,e)})),this.mRenderMethod.set(RB.XLINE,((t,e)=>{this.drawXLineOrRay(t,e)})),this.mRenderMethod.set(RB.RAY,((t,e)=>{this.drawXLineOrRay(t,e)})),this.mRenderMethod.set(RB.OSNAP,((t,e)=>{this.drawOSnapPt(t,e)})),this.mRenderMethod.set(RB.CIRCLEBUBBLE,((t,e)=>{this.drawCircleBubble(t,e)})),this.mRenderMethod.set(RB.RECTANGLEBUBBLE,((t,e)=>{this.drawRectangleBubble(t,e)})),this.mRenderMethod.set(RB.PINBUBBLE,((t,e)=>{this.drawPinBubble(t,e)})),this.mRenderMethod.set(RB.POLYLINEBUBBLE,((t,e)=>{this.drawPolylineBubble(t,e)})),this.mRenderMethod.set(RB.LEADERBUBBLE,((t,e)=>{this.drawLeaderBubble(t,e)})),this.mRenderMethod.set(RB.IMAGEBUBBLE,((t,e)=>{this.drawImageBubble(t,e)})),this.mRenderMethod.set(RB.REVCLOUDBUBBLE,((t,e)=>{this.drawRevcloudBubble(t,e)})),this.mRenderMethod.set(RB.UCSICON,((t,e)=>{this.drawUcsIcon(t,e)}))}getCanvas(){return this.mCanvas}init(t){return this.mCanvas=t,this.m2dContext=t.getContext("2d"),null===this.m2dContext?(SF.logError("No 2D Context"),!1):(this.m2dContext.imageSmoothingEnabled=!1,this.m2dContext.imageSmoothingQuality="low",this.m2dContext.lineCap="round",this.m2dContext.lineJoin="round",!0)}beginRender(t){null===this.m2dContext||null===this.mCanvas||t.setContext(this.m2dContext)}endRender(){}clearRectContent(t){null!=this.m2dContext&&null!=this.mCanvas&&this.m2dContext.clearRect(t.mX,t.mY,t.mWidth,t.mHeight)}clearContent(){null!=this.m2dContext&&null!=this.mCanvas&&this.m2dContext.clearRect(0,0,this.mCanvas.width,this.mCanvas.height)}setupView(t){}setConvertPts2d(t,e,n){let i=t.m2dLimitedToDevice,r=t.mCurView;if(!r)return;let a=r.mViewportForwebAssembly,o=r.mPoint3dForwebAssembly;if(a&&o)for(let r=e.start,s=0,l=e.end;r<l;r+=3,s++)this.mConvertPt3d.copy(UF(a,o,n[r],n[r+1],n[r+2])),this.mConvertPt3d.mulMatrix(i),t.mConvertPts2d.length<=s?t.mConvertPts2d.push(new oB(Math.round(this.mConvertPt3d.mX),Math.round(this.mConvertPt3d.mY))):(t.mConvertPts2d[s].mX=Math.round(this.mConvertPt3d.mX),t.mConvertPts2d[s].mY=Math.round(this.mConvertPt3d.mY))}setConvertPts2dForUCSIcon(t,e,n){let i=t.mCurView;if(!i)return;let r=new JR;r.setEntry([[1,0,0,i.mScreenRect.mX],[0,1,0,i.mScreenRect.mY],[0,0,1,0],[0,0,0,1]]),r.mul(i.worldToDeviceMatrix());for(let i=e.start,a=0,o=e.end;i<o;i+=3,a++)this.mConvertPt3d.set(n[i],n[i+1],n[i+2]),this.mConvertPt3d.mulMatrix(r),t.mConvertPts2d.length<=a?t.mConvertPts2d.push(new oB(Math.round(this.mConvertPt3d.mX),Math.round(this.mConvertPt3d.mY))):(t.mConvertPts2d[a].mX=Math.round(this.mConvertPt3d.mX),t.mConvertPts2d[a].mY=Math.round(this.mConvertPt3d.mY))}drawRawLineStrips3d(t,e,n){if(null===this.m2dContext||null===this.mCanvas||e.getPtCount()<=0)return;this.setConvertPts2d(t,e,n);const i=t.mConvertPts2d;let r=e.mLineCount,a=0;for(let e=0;e<r;e++){let e=i.slice(a,a+2);this.rawDrawPolyline2d(t,e,2),a+=2}}drawRawPolyline3d(t,e,n){if(null===this.m2dContext||null===this.mCanvas)return;let i=e.getPtCount();i<=0||(this.setConvertPts2d(t,e,n),i>1&&this.rawDrawPolyline2d(t,t.mConvertPts2d,i))}drawPolyline3d(t,e,n){if(null===this.m2dContext||null===this.mCanvas)return;let i=e.getPtCount();i<=0||(this.setConvertPts2d(t,e,n),i>1&&this.rawDrawPolyline2d(t,t.mConvertPts2d,i))}drawLineStrips3d(t,e,n){if(null===this.m2dContext||null===this.mCanvas||e.getPtCount()<=0)return;this.setConvertPts2d(t,e,n);const i=t.mConvertPts2d;let r=e.mLineCount,a=0;for(let e=0;e<r;e++){let e=i.slice(a,a+2);this.rawDrawPolyline2d(t,e,2),a+=2}}drawSilhouetteRawPolyline3d(t,e,n){if(null===this.m2dContext||null===this.mCanvas)return;let i=e.getPtCount();i<=0||(this.setConvertPts2d(t,e,n),i>1&&this.rawDrawPolyline2d(t,t.mConvertPts2d,i))}drawShadedRawPolyline3d(t,e,n){if(null===this.m2dContext||null===this.mCanvas)return;let i=e.getPtCount();i<=0||(this.setConvertPts2d(t,e,n),i>1&&this.rawDrawPolyline2d(t,t.mConvertPts2d,i))}drawPolytriangle3d(t,e,n){if(null===this.m2dContext||null===this.mCanvas)return;let i=t.mCurView;if(!i)return;let r=i.mViewportForwebAssembly,a=i.mPoint3dForwebAssembly;if(!r||!a||e.getPtCount()<=0)return;let o=t.m2dLimitedToDevice,s=e.mPointIndex;for(let e=0,i=s.length;e<i;e++)this.mConvertPt3d.copy(UF(r,a,n[s[e]],n[s[e]+1],n[s[e]+2])),this.mConvertPt3d.mulMatrix(o),t.mConvertPts2d.length<=e?t.mConvertPts2d.push(new oB(Math.round(this.mConvertPt3d.mX),Math.round(this.mConvertPt3d.mY))):(t.mConvertPts2d[e].mX=Math.round(this.mConvertPt3d.mX),t.mConvertPts2d[e].mY=Math.round(this.mConvertPt3d.mY));this.rawDrawTriangle2ds(t,t.mConvertPts2d,s.length)}drawShadedPolytriangle3d(t,e,n){if(null===this.m2dContext||null===this.mCanvas)return;let i=t.mCurView;if(!i)return;let r=i.mViewportForwebAssembly,a=i.mPoint3dForwebAssembly;if(!r||!a||e.getPtCount()<=0||t.getRenderMode()<H6.kHiddenLine)return;let o=t.m2dLimitedToDevice,s=e.mPointIndex;for(let e=0,i=s.length;e<i;e++)this.mConvertPt3d.copy(UF(r,a,n[s[e]],n[s[e]+1],n[s[e]+2])),this.mConvertPt3d.mulMatrix(o),t.mConvertPts2d.length<=e?t.mConvertPts2d.push(new oB(Math.round(this.mConvertPt3d.mX),Math.round(this.mConvertPt3d.mY))):(t.mConvertPts2d[e].mX=Math.round(this.mConvertPt3d.mX),t.mConvertPts2d[e].mY=Math.round(this.mConvertPt3d.mY));this.rawDrawTriangle2ds(t,t.mConvertPts2d,s.length)}drawColorizedPolytriangle3d(t,e,n,i,r){if(null===this.m2dContext||null===this.mCanvas)return;let a=t.mCurView;if(!a)return;let o=a.mViewportForwebAssembly,s=a.mPoint3dForwebAssembly;if(!o||!s||e.getPtCount()<=0)return;let l=t.m2dLimitedToDevice,c=e.mPointIndex,h=e.mColorIndex,d=[];for(let e=0,r=c.length;e<r;e++)this.mConvertPt3d.copy(UF(o,s,n[c[e]],n[c[e]+1],n[c[e]+2])),this.mConvertPt3d.mulMatrix(l),t.mConvertPts2d.length<=e?t.mConvertPts2d.push(new oB(Math.round(this.mConvertPt3d.mX),Math.round(this.mConvertPt3d.mY))):(t.mConvertPts2d[e].mX=Math.round(this.mConvertPt3d.mX),t.mConvertPts2d[e].mY=Math.round(this.mConvertPt3d.mY)),d.push({color:i[h[e]]});this.rawDrawColorizedTriangle2ds(t,t.mConvertPts2d,d,c.length)}drawShadedColorizedPolytriangle3d(t,e,n,i,r){if(null===this.m2dContext||null===this.mCanvas)return;let a=t.mCurView;if(!a)return;let o=a.mViewportForwebAssembly,s=a.mPoint3dForwebAssembly;if(!o||!s||e.getPtCount()<=0)return;let l=t.m2dLimitedToDevice,c=e.mPointIndex,h=e.mColorIndex,d=[];for(let e=0,r=c.length;e<r;e++)this.mConvertPt3d.copy(UF(o,s,n[c[e]],n[c[e]+1],n[c[e]+2])),this.mConvertPt3d.mulMatrix(l),t.mConvertPts2d.length<=e?t.mConvertPts2d.push(new oB(Math.round(this.mConvertPt3d.mX),Math.round(this.mConvertPt3d.mY))):(t.mConvertPts2d[e].mX=Math.round(this.mConvertPt3d.mX),t.mConvertPts2d[e].mY=Math.round(this.mConvertPt3d.mY)),d.push({color:i[h[e]]});this.rawDrawColorizedTriangle2ds(t,t.mConvertPts2d,d,c.length)}drawPolygon3d(t,e,n){if(null===this.m2dContext||null===this.mCanvas)return;let i=e.getPtCount();i<=0||(this.setConvertPts2d(t,e,n),this.rawDrawPolygon2d(t,t.mConvertPts2d,i))}drawPolyPolygon3d(t,e,n){if(null===this.m2dContext||null===this.mCanvas)return;this.setConvertPts2d(t,e,n);const i=t.mConvertPts2d,r=e;let a=r.polygonPtsNumList,o=0;for(let e=0;e<r.mPolygonCount;e++){const n=a[e];if(n<=0)return;let r=i.slice(o,o+n);this.rawDrawPolygon2d(t,r,n),o+=n}}drawWipeOutPolygon3d(t,e,n){if(null===this.m2dContext||null===this.mCanvas)return;let i=e.getPtCount();i<=0||(this.setConvertPts2d(t,e,n),this.rawDrawWipeOut2d(t,t.mConvertPts2d,i))}drawCircularArc3d(t,e,n){}drawEllipticalArc3d(t,e,n){}drawText3d(t,e,n){if(null===this.m2dContext||null===this.mCanvas)return;let i=t.mCurView;if(!i)return;let r=i.mViewportForwebAssembly,a=i.mPoint3dForwebAssembly;if(!r||!a)return;let o=t.m2dLimitedToDevice;const s=e.mTextProperties.textPt;this.mConvertPt3d.copy(UF(r,a,s.mX,s.mY,s.mZ)),this.mConvertPt3d.mulMatrix(o),this.rawDrawText2d(t,new oB(Math.round(this.mConvertPt3d.mX),Math.round(this.mConvertPt3d.mY)),e.mTextProperties)}drawHatch3d(t,e,n,i,r){if(null===this.m2dContext||null===this.mCanvas)return;let a=t.mCurView;if(!a)return;let o=a.mViewportForwebAssembly,s=a.mPoint3dForwebAssembly;if(!o||!s||e.getPtCount()<=0)return;let l=t.m2dLimitedToDevice,c=e.mPoints,h=[];for(let t=0;t<c.length;t++){let e=new QR;e.copy(UF(o,s,c[t].mX,c[t].mY,c[t].mZ)),e.mulMatrix(l),h.push(e)}const d=new gV(e.type,e.start,e.end,e.mContourCounts,h,e.mTriangle);d.mColor=t.mForegroundColor;let u=[],m=[];if(d.mTriangle){let t=d.mTriangle.mPointIndex,e=d.mTriangle.mColorIndex;for(let r=0;r<t.length;r++)this.mConvertPt3d.copy(UF(o,s,n[t[r]],n[t[r]+1],n[t[r]+2])),this.mConvertPt3d.mulMatrix(l),u.push(new oB(Math.round(this.mConvertPt3d.mX),Math.round(this.mConvertPt3d.mY))),m.push({color:i[e[r]]})}this.rawDrawHatch2d(t,d,u,m)}drawRasterImage(t,e){if(null===this.m2dContext||null===this.mCanvas)return;let n=t.mCurView;if(!n)return;let i=n.mViewportForwebAssembly,r=n.mPoint3dForwebAssembly;if(!i||!r)return;let a=t.m2dLimitedToDevice,o=e.mOriginPoint;this.mConvertPt3d.copy(UF(i,r,o.mX,o.mY,o.mZ)),this.mConvertPt3d.mulMatrix(a),this.mStart.set(Math.round(this.mConvertPt3d.mX),Math.round(this.mConvertPt3d.mY)),this.rawDrawRasterImage2d(t,this.mStart,e)}drawXLineOrRay(t,e){if(null===this.m2dContext||null===this.mCanvas)return;let n=t.mCurView;if(!n)return;let i=n.mViewportForwebAssembly,r=n.mPoint3dForwebAssembly;if(!i||!r)return;let a=t.m2dLimitedToDevice,o=new QR;o.copy(UF(i,r,e.mBasePoint.mX,e.mBasePoint.mY,e.mBasePoint.mZ)),o.mulMatrix(a);let s=new QR;s.copy(UF(i,r,e.mUnitPoint.mX,e.mUnitPoint.mY,e.mUnitPoint.mZ)),s.mulMatrix(a);let l=new CV(e.type,e.start,e.end);l.mBasePoint=o,l.mUnitPoint=s,this.rawDrawXLineOrRay2d(t,l)}rawDrawPolyline2d(t,e,n){if(null!==this.m2dContext&&null!==this.mCanvas){if(2===n&&e[0].mX===e[1].mX&&e[0].mY===e[1].mY)return void this.rawDrawPoint2d(t,e[0]);this.m2dContext.beginPath(),this.m2dContext.moveTo(e[0].mX,e[0].mY);for(let t=1;t<n;t++)this.m2dContext.lineTo(e[t].mX,e[t].mY);t.mEnableHighlight?(this.m2dContext.save(),this.m2dContext.strokeStyle="rgba(37,157,243,0.5)",this.m2dContext.lineWidth=3,this.m2dContext.stroke(),this.m2dContext.restore()):this.m2dContext.stroke()}}rawDrawLine2d(t,e,n){if(null!==this.m2dContext&&null!==this.mCanvas){if(e.mX===n.mX&&e.mY===n.mY)return void this.rawDrawPoint2d(t,e);this.m2dContext.beginPath(),this.m2dContext.moveTo(e.mX,e.mY),this.m2dContext.lineTo(n.mX,n.mY),t.mEnableHighlight?(this.m2dContext.save(),this.m2dContext.strokeStyle="rgba(37,157,243,0.5)",this.m2dContext.lineWidth=3,this.m2dContext.stroke(),this.m2dContext.restore()):this.m2dContext.stroke()}}rawDrawPoint2d(t,e){null===this.m2dContext||null===this.mCanvas||this.m2dContext.fillRect(e.mX-1,e.mY-1,2,2)}rawDrawPoint2ds(t,e,n){for(let i=0;i<n;i++)this.rawDrawPoint2d(t,e[i])}rawDrawText2d(t,e,n){if(null===this.m2dContext||null===this.mCanvas||""===n.content.trim())return;this.m2dContext.save();let i=new qR;i.copy(n.textDir);let r=new qR;r.copy(n.textVerDir),i.transformBy(t.m2dWorldToObject),i.transformBy(t.m2dViewingMatrix),i.normalize(),i.mul(n.xScale),r.transformBy(t.m2dWorldToObject),r.transformBy(t.m2dViewingMatrix),r.normalize(),this.m2dContext.transform(i.mX,-i.mY,-r.mX,r.mY,e.mX,e.mY),n.upsidedown&&this.m2dContext.scale(1,-1),n.backward&&this.m2dContext.scale(-1,1),this.m2dContext.transform(1,0,-Math.tan(n.obliquingAngle),1,0,0);let a=t.getUnitPixelHeight()*n.textDir.length(),o=n.boundBox.max[0]*a,s=n.boundBox.max[1]*a;this.m2dContext.save();let l=0,c=n.textStyle.fontFamily.replace("@","");const h=e6(c);if(h)l=h.aboveHeight;else{const t=document.createElement("canvas");t.width=1024,t.height=1024;const e=t.getContext("2d");if(null===e)return;e.font="1024px '"+c+"', 'Zw-"+c+"', "+I5.join(","),e.fillText("A",0,1024);const n=e.getImageData(0,0,1024,1024).data;for(let t=0;t<1024&&!l;t++)for(let e=0;e<1024&&!l;e++)n[1024*t*4+4*e+3]&&(l=1024-t)}let d=n.textHeight*t.getUnitPixelHeight()/l;this.m2dContext.transform(d,0,0,d,0,0),this.m2dContext.font="1024px '"+c+"', 'Zw-"+c+"', "+I5.join(","),n.textStyle.fontWeight&&(this.m2dContext.font=n.textStyle.fontWeight+" "+this.m2dContext.font),n.textStyle.fontItalic&&(this.m2dContext.font="italic "+this.m2dContext.font),this.m2dContext.textAlign="left",this.m2dContext.textBaseline="alphabetic";let u=this.m2dContext.measureText(n.content),m=u.width*d,p=(u.fontBoundingBoxAscent||u.actualBoundingBoxAscent)*d,g=(u.fontBoundingBoxDescent||u.actualBoundingBoxDescent)*d;(o<0||s<0)&&(o=u.actualBoundingBoxRight*d,s=u.actualBoundingBoxAscent*d);const f=[],b=[],y=[];0===n.flags.length&&(1===n.overlined&&f.push([0,m]),1===n.underline&&b.push([0,m]),1===n.strikethrough&&y.push([0,m]));let v=e=>{t.mEnableHighlight&&null!==this.m2dContext&&(this.m2dContext.save(),this.m2dContext.fillStyle=bj.ZC_DR_HIGHLIGHT_COLOR,this.m2dContext.fillText(e,0,0),this.m2dContext.strokeStyle=bj.ZC_DR_HIGHLIGHT_COLOR,this.m2dContext.lineWidth=6,this.m2dContext.strokeText(e,0,0),this.m2dContext.restore())};if(o>=6&&s>=6){if(/(?:(?=[\p{Script=Arabic}]))/u.test(n.content))this.m2dContext.fillText(n.content,0,0);else{let t=0,e=!1,i=!1,r=!1;for(let a=0;a<n.content.length;a++){const o=n.content[a];let s=0;const l=/[\u4E00-\u9FA5]/;if(n.textStyle.fontFamily.indexOf("@")>-1&&l.test(o)){this.m2dContext.save(),n.textStyle.fontItalic&&(this.m2dContext.font=this.m2dContext.font.replace("italic",""),this.m2dContext.transform(1,0,-Math.tan(Math.PI/10),1,0,0));const t=this.m2dContext.measureText(o);this.m2dContext.translate(-t.actualBoundingBoxLeft/2,0),this.m2dContext.translate(t.actualBoundingBoxAscent,(t.actualBoundingBoxRight-t.actualBoundingBoxLeft)/2-(t.actualBoundingBoxAscent-t.actualBoundingBoxDescent)/2),this.m2dContext.rotate(-Math.PI/2),this.m2dContext.fillText(o,0,0),v(o),s=t.actualBoundingBoxAscent+t.actualBoundingBoxDescent-t.actualBoundingBoxLeft,this.m2dContext.restore()}else{const t=this.m2dContext.measureText(o);this.m2dContext.fillText(o,0,0),v(o),s=t.width}s+=512*(n.trackingPercent-1);let c=t+s*d;if(n.flags.length>0){const o=n.flags[a];0!==o&&(e=!!(2&o),i=!!(8&o),r=!!(32&o)),e&&f.push([t,c]),i&&b.push([t,c]),r&&y.push([t,c])}t=c,this.m2dContext.translate(s,0)}}this.m2dContext.restore()}else this.m2dContext.restore(),t.mEnableHighlight&&(this.m2dContext.save(),this.m2dContext.fillStyle="rgba(37,157,243,0.5)"),o<1?this.m2dContext.fillRect(0,0,1,-s):this.m2dContext.fillRect(0,0,o,s<1?-1:-s),t.mEnableHighlight&&this.m2dContext.restore();this.m2dContext.beginPath();for(let t=0;t<f.length;t++)this.m2dContext.moveTo(f[t][0],-p),this.m2dContext.lineTo(f[t][1],-p);for(let t=0;t<b.length;t++)this.m2dContext.moveTo(b[t][0],g),this.m2dContext.lineTo(b[t][1],g);for(let t=0;t<y.length;t++)this.m2dContext.moveTo(y[t][0],(g-p)/2),this.m2dContext.lineTo(y[t][1],(g-p)/2);t.mEnableHighlight?(this.m2dContext.save(),this.m2dContext.strokeStyle="rgba(37,157,243,0.5)",this.m2dContext.stroke(),this.m2dContext.restore()):this.m2dContext.stroke(),this.m2dContext.restore()}rawDrawPolygon2d(t,e,n){if(null!==this.m2dContext&&null!==this.mCanvas){this.m2dContext.beginPath(),this.m2dContext.moveTo(e[0].mX,e[0].mY);for(let t=1;t<n;t++)this.m2dContext.lineTo(e[t].mX,e[t].mY);this.m2dContext.closePath(),this.m2dContext.save(),this.m2dContext.lineWidth=1,this.m2dContext.stroke(),this.m2dContext.restore(),1===t.mFillMode&&(t.mEnableHighlight?(this.m2dContext.save(),this.m2dContext.fillStyle="rgba(37,157,243,0.5)",this.m2dContext.fill(),this.m2dContext.restore()):this.m2dContext.fill())}}rawDrawPolygon2ds(t,e,n){let i=n.length;for(let r=0;r<i;r++)this.rawDrawPolygon2d(t,e.splice(0,n[r]),n[r])}rawDrawTriangle2d(t,e){null===this.m2dContext||null===this.mCanvas||(this.m2dContext.beginPath(),this.m2dContext.moveTo(e[0].mX,e[0].mY),this.m2dContext.lineTo(e[1].mX,e[1].mY),this.m2dContext.lineTo(e[2].mX,e[2].mY),this.m2dContext.closePath(),this.m2dContext.save(),this.m2dContext.lineWidth=1,this.m2dContext.stroke(),this.m2dContext.restore(),1===t.mFillMode&&(t.mEnableHighlight?(this.m2dContext.save(),this.m2dContext.fillStyle="rgba(37,157,243,0.5)",this.m2dContext.fill(),this.m2dContext.restore()):this.m2dContext.fill()))}rawDrawTriangle2ds(t,e,n){if(null!==this.m2dContext&&null!==this.mCanvas)for(let i=0;i<n;i+=3)this.rawDrawTriangle2d(t,e.slice(i,i+3))}rawDrawColorizedTriangle2d(t,e,n){if(null!==this.m2dContext&&null!==this.mCanvas)if(n[0].color===n[1].color&&n[0].color===n[2].color){this.m2dContext.beginPath(),this.m2dContext.moveTo(e[0].mX,e[0].mY),this.m2dContext.lineTo(e[1].mX,e[1].mY),this.m2dContext.lineTo(e[2].mX,e[2].mY);const t=fj.colorToRgb(n[0].color);this.m2dContext.fillStyle="rgba("+t.red+","+t.green+","+t.blue+","+t.alpha/255+")",this.m2dContext.fill()}else{t.setClipPolygon(e);let i=e[0].mX,r=e[0].mX,a=e[0].mY,o=e[0].mY;for(let t=1;t<3;t++)i=Math.min(i,e[t].mX),r=Math.max(r,e[t].mX),a=Math.min(a,e[t].mY),o=Math.max(o,e[t].mY);let s=r-i<1?1:r-i,l=o-a<1?1:o-a,c=1,h=1;s>50&&(c=Math.ceil(s/50)),l>50&&(h=Math.ceil(l/50));let d=Math.ceil(s/c),u=Math.ceil(l/h);if(null===this.mOffscreenCanvas)return void t.restore();let m=this.mOffscreenCanvas.getContext("2d");if(null===m)return void t.restore();let p=new ImageData(d,u);const g=fj.colorToRgb(n[0].color),f=fj.colorToRgb(n[1].color),b=fj.colorToRgb(n[2].color);let y=g.red,v=g.green,w=g.blue,x=f.red,C=f.green,k=f.blue,S=b.red,P=b.green,_=b.blue;const M=new T5(e[0].mX-i,e[0].mY-a),D=new T5(e[1].mX-i,e[1].mY-a),E=new T5(e[2].mX-i,e[2].mY-a);let O=D,A=new T5(M.mX-D.mX,M.mY-D.mY),T=new T5(E.mX-D.mX,E.mY-D.mY),I=A.dotProduct(A),L=A.dotProduct(T),z=T.dotProduct(T),R=I*z-L*L,F=function(t,e){let n=new T5(t-O.mX,e-O.mY),i=n.dotProduct(A),r=n.dotProduct(T),a=(z*i-L*r)/R,o=(I*r-L*i)/R;return{a,b:o,c:1-a-o}},B=0;for(let t=0;t<u;t++)for(let e=0;e<d;e++){let{a:n,b:i,c:r}=F(e*c,t*h),a=n*y+i*S+r*x,o=n*v+i*P+r*C,s=n*w+i*_+r*k;a<0&&(a=0),o<0&&(o=0),s<0&&(s=0),a>255&&(a=255),o>255&&(o=255),s>255&&(s=255),p.data[B]=a,p.data[B+1]=o,p.data[B+2]=s,p.data[B+3]=255,B+=4}m.putImageData(p,0,0),this.m2dContext.drawImage(this.mOffscreenCanvas,0,0,d-1||1,u-1||1,i,a,s,l),t.restore()}}rawDrawColorizedTriangle2ds(t,e,n,i){if(null!==this.m2dContext&&null!==this.mCanvas)for(let r=0;r<i;r+=3)this.rawDrawColorizedTriangle2d(t,e.slice(r,r+3),n.slice(r,r+3))}rawDrawImage2d(t,e,n){if(null===this.m2dContext||null===this.mCanvas)return;let i=null;yF?i=new OffscreenCanvas(n.img.width,n.img.height):(i=document.createElement("canvas"),i.width=n.img.width,i.height=n.img.height);let r=i.getContext("2d");if(null===r)return;r.drawImage(n.img,0,0);let a=r.getImageData(0,0,n.img.width,n.img.height),o=t.getThreshold(),s=n.contrast,l=n.bright;for(let t=0;t<a.data.length;t+=4){let e=a.data[t],i=a.data[t+1],r=a.data[t+2];s>=0?(e+=l,i+=l,r+=l,a.data[t]=e+(e-o)*(1/(1-s/255)-1),a.data[t+1]=i+(i-o)*(1/(1-s/255)-1),a.data[t+2]=r+(r-o)*(1/(1-s/255)-1)):(a.data[t]=e+(e-o)*s/255,a.data[t+1]=i+(i-o)*s/255,a.data[t+2]=r+(r-o)*s/255,a.data[t]+=l,a.data[t+1]+=l,a.data[t+2]+=l),a.data[t+3]=n.alpha}r.putImageData(a,0,0),this.m2dContext.save(),this.m2dContext.translate(e.mX,e.mY),this.m2dContext.drawImage(i,0,0,n.imageWidth,n.imageHeight,0,-n.imageHeight*t.getUnitPixelHeight(),n.imageWidth*t.getUnitPixelHeight(),n.imageHeight*t.getUnitPixelHeight()),this.m2dContext.restore()}rawDrawRasterImage2d(t,e,n){if(null===this.m2dContext||null===this.mCanvas)return;let i=t.mCurView;if(!i)return;let r=i.mViewportForwebAssembly,a=i.mPoint3dForwebAssembly;if(!r||!a)return;let o=new NJ;o.contrast=10,o.bright=10,o.alpha=1e3;let s=new qR;s.copy(n.mUvector);let l=new qR;l.copy(n.mVvector);let c=s.length()*t.getUnitPixelHeight(),h=l.length()*t.getUnitPixelHeight();s.transformBy(t.m2dWorldToObject),s.transformBy(t.m2dViewingMatrix),s.normalize(),l.transformBy(t.m2dWorldToObject),l.transformBy(t.m2dViewingMatrix),l.normalize();let d=t.m2dLimitedToDevice,u=[];for(let t=0;t<n.mClipPointsList.length;t++){let e=n.mClipPointsList[t];this.mConvertPt3d.copy(UF(r,a,e.mX,e.mY,e.mZ)),this.mConvertPt3d.mulMatrix(d),u.push(new oB(Math.round(this.mConvertPt3d.mX),Math.round(this.mConvertPt3d.mY)))}if(t.mGraphicSystem&&t.mGraphicSystem.mImageMap.has(n.mUrlPath))o.img=t.mGraphicSystem.mImageMap.get(n.mUrlPath),this.m2dContext.save(),t.setClipPolygon(u),this.m2dContext.transform(s.mX,-s.mY,-l.mX,l.mY,e.mX,e.mY),this.m2dContext.drawImage(o.img,0,0,c,-h),t.restore(),this.m2dContext.restore();else{let i=t.m2dLimitedToDevice;this.mConvertPt3d.copy(UF(r,a,n.mOriginPoint.mX+s.mX*(n.mUvector.length()/5)-s.mY*(n.mVvector.length()/2),n.mOriginPoint.mY+s.mX*(n.mVvector.length()/2)+s.mY*(n.mUvector.length()/5),n.mOriginPoint.mZ)),this.mConvertPt3d.mulMatrix(i),this.rawDrawText2d(t,new oB(this.mConvertPt3d.mX,this.mConvertPt3d.mY),{textPt:new QR(e.mX,e.mY,0),textDir:n.mUvector,textVerDir:n.mVvector,boundBox:{max:[-1,-1],min:[0,0]},textHeight:n.mVvector.length()/10,textWidth:0,xScale:1,obliquingAngle:0,content:n.mUrlPath,textNumber:n.mUrlPath.length,flags:[],textStyle:{fontSize:n.mVvector.length()/10,fontFamily:"SimSun",fontHeight:1483,fontAbove:752,fontAverageWidth:616,fontAscent:1188,fontWeight:400,fontItalic:0},trackingPercent:1,charset:1,renderMode:3,raw:0,underline:0,backward:0,upsidedown:0,vertical:0,overlined:0,strikethrough:0})}}rawDrawHatch2d(t,e,n,i){var r;if(null===this.m2dContext||null===this.mCanvas)return;if(t.mEnableHighlight)return;for(let n=0;n<e.mPoints.length;n++)t.mConvertPts2d.length<=n?t.mConvertPts2d.push(new oB(Math.round(e.mPoints[n].mX),Math.round(e.mPoints[n].mY))):(t.mConvertPts2d[n].mX=Math.round(e.mPoints[n].mX),t.mConvertPts2d[n].mY=Math.round(e.mPoints[n].mY));const a=t.mConvertPts2d.slice(0,e.mPoints.length);this.m2dContext.save();let o=e.mContourCounts.map((t=>t/3)),s=0;this.m2dContext.beginPath();for(let t=0;t<o.length;t++){this.m2dContext.moveTo(a[s].mX,a[s].mY);for(let e=1;e<o[t];e++)this.m2dContext.lineTo(a[s+e].mX,a[s+e].mY);s+=o[t]}this.m2dContext.closePath(),this.m2dContext.lineWidth=1,this.m2dContext.stroke(),this.m2dContext.clip("evenodd"),(null===(r=e.mTriangle)||void 0===r?void 0:r.hasColorTriangle())?this.rawDrawColorizedTriangle2ds(t,n,i,n.length):1===t.mFillMode&&this.m2dContext.fill(),this.m2dContext.restore()}rawDrawWipeOut2d(t,e,n){if(null!==this.m2dContext&&null!==this.mCanvas&&!t.mEnableHighlight){this.m2dContext.beginPath(),this.m2dContext.moveTo(e[0].mX,e[0].mY);for(let t=1;t<n;t++)this.m2dContext.lineTo(e[t].mX,e[t].mY);if(this.m2dContext.closePath(),1===t.mFillMode){this.m2dContext.save();const e=fj.colorToRgb(t.mBackgroundColor);this.m2dContext.fillStyle="rgba("+e.red+","+e.green+","+e.blue+","+e.alpha/255+")",this.m2dContext.fill(),this.m2dContext.restore()}}}rawDrawXLineOrRay2d(t,e){if(null===this.m2dContext||null===this.mCanvas)return;let n=t.m2dLimitedToDevice,i=new OJ(n.getEntryRank(0,3)/t.getUnitPixelHeight(),n.getEntryRank(1,3)/t.getUnitPixelHeight(),this.mCanvas.width/t.getUnitPixelHeight(),this.mCanvas.height/t.getUnitPixelHeight()),r=e.type===RB.XLINE?new FJ(e.mBasePoint,e.mUnitPoint,i):new RJ(e.mBasePoint,e.mUnitPoint,i);this.mStart.set(Math.round(r.mStartPoint.mX),Math.round(r.mStartPoint.mY)),this.mEnd.set(Math.round(r.mEndPoint.mX),Math.round(r.mEndPoint.mY)),this.rawDrawLine2d(t,this.mStart,this.mEnd)}rawDrawPolyline3d(t,e,n){if(null===this.m2dContext||null===this.mCanvas)return;let i=t.mCurView;if(!i)return;let r=i.mViewportForwebAssembly,a=i.mPoint3dForwebAssembly;if(!r||!a)return;let o=t.m2dLimitedToDevice;for(let i=0;i<n;i++)this.mConvertPt3d.copy(UF(r,a,e[i].mX,e[i].mY,e[i].mZ)),this.mConvertPt3d.mulMatrix(o),t.mConvertPts2d.length<=i?t.mConvertPts2d.push(new oB(Math.round(this.mConvertPt3d.mX),Math.round(this.mConvertPt3d.mY))):(t.mConvertPts2d[i].mX=Math.round(this.mConvertPt3d.mX),t.mConvertPts2d[i].mY=Math.round(this.mConvertPt3d.mY));this.rawDrawPolyline2d(t,t.mConvertPts2d,n)}rawDrawLine3d(t,e,n){if(null===this.m2dContext||null===this.mCanvas)return;let i=t.mCurView;if(!i)return;let r=i.mViewportForwebAssembly,a=i.mPoint3dForwebAssembly;if(!r||!a)return;let o=t.m2dLimitedToDevice;this.mConvertPt3d.copy(UF(r,a,e.mX,e.mY,e.mZ)),this.mConvertPt3d.mulMatrix(o),this.mStart.set(Math.round(this.mConvertPt3d.mX),Math.round(this.mConvertPt3d.mY)),this.mConvertPt3d.copy(UF(r,a,n.mX,n.mY,n.mZ)),this.mConvertPt3d.mulMatrix(o),this.mEnd.set(Math.round(this.mConvertPt3d.mX),Math.round(this.mConvertPt3d.mY)),this.rawDrawLine2d(t,this.mStart,this.mEnd)}rawDrawPoint3d(t,e){if(null===this.m2dContext||null===this.mCanvas)return;let n=t.mCurView;if(!n)return;let i=n.mViewportForwebAssembly,r=n.mPoint3dForwebAssembly;if(!i||!r)return;let a=t.m2dLimitedToDevice;this.mConvertPt3d.copy(UF(i,r,e.mX,e.mY,e.mZ)),this.mConvertPt3d.mulMatrix(a),this.mStart.set(Math.round(this.mConvertPt3d.mX),Math.round(this.mConvertPt3d.mY)),this.rawDrawPoint2d(t,this.mStart)}rawDrawPoint3ds(t,e,n){if(null!==this.m2dContext&&null!==this.mCanvas)for(let i=0;i<n;i++)this.rawDrawPoint3d(t,e[i])}rawDrawText3d(t,e,n){if(null===this.m2dContext||null===this.mCanvas)return;let i=t.mCurView;if(!i)return;let r=i.mViewportForwebAssembly,a=i.mPoint3dForwebAssembly;if(!r||!a)return;let o=t.m2dLimitedToDevice;this.mConvertPt3d.copy(UF(r,a,e.mX,e.mY,e.mZ)),this.mConvertPt3d.mulMatrix(o),this.mStart.set(Math.round(this.mConvertPt3d.mX),Math.round(this.mConvertPt3d.mY)),this.rawDrawText2d(t,this.mStart,n)}rawDrawPolygon3d(t,e,n){if(null===this.m2dContext||null===this.mCanvas)return;let i=t.mCurView;if(!i)return;let r=i.mViewportForwebAssembly,a=i.mPoint3dForwebAssembly;if(!r||!a)return;let o=t.m2dLimitedToDevice;for(let i=0;i<n;i++)this.mConvertPt3d.copy(UF(r,a,e[i].mX,e[i].mY,e[i].mZ)),this.mConvertPt3d.mulMatrix(o),t.mConvertPts2d.length<=i?t.mConvertPts2d.push(new oB(Math.round(this.mConvertPt3d.mX),Math.round(this.mConvertPt3d.mY))):(t.mConvertPts2d[i].mX=Math.round(this.mConvertPt3d.mX),t.mConvertPts2d[i].mY=Math.round(this.mConvertPt3d.mY));this.rawDrawPolygon2d(t,t.mConvertPts2d,n)}rawDrawPolygon3ds(t,e,n){if(null===this.m2dContext||null===this.mCanvas)return;let i=n.length;for(let r=0;r<i;r++)this.rawDrawPolygon3d(t,e.splice(0,n[r]),n[r])}rawDrawTriangle3d(t,e){if(null===this.m2dContext||null===this.mCanvas)return;let n=t.mCurView;if(!n)return;let i=n.mViewportForwebAssembly,r=n.mPoint3dForwebAssembly;if(!i||!r)return;let a=t.m2dLimitedToDevice;for(let n=0;n<3;n++)this.mConvertPt3d.copy(UF(i,r,e[n].mX,e[n].mY,e[n].mZ)),this.mConvertPt3d.mulMatrix(a),t.mConvertPts2d.length<=n?t.mConvertPts2d.push(new oB(Math.round(this.mConvertPt3d.mX),Math.round(this.mConvertPt3d.mY))):(t.mConvertPts2d[n].mX=Math.round(this.mConvertPt3d.mX),t.mConvertPts2d[n].mY=Math.round(this.mConvertPt3d.mY));this.rawDrawTriangle2d(t,t.mConvertPts2d)}rawDrawTriangle3ds(t,e,n){if(null!==this.m2dContext&&null!==this.mCanvas)for(let i=0;i<n;i+=3)this.rawDrawTriangle3d(t,e.slice(i,i+3))}rawDrawColorizedTriangle3d(t,e,n){if(null===this.m2dContext||null===this.mCanvas)return;let i=t.mCurView;if(!i)return;let r=i.mViewportForwebAssembly,a=i.mPoint3dForwebAssembly;if(!r||!a)return;let o=t.m2dLimitedToDevice;for(let n=0;n<3;n++)this.mConvertPt3d.copy(UF(r,a,e[n].mX,e[n].mY,e[n].mZ)),this.mConvertPt3d.mulMatrix(o),t.mConvertPts2d.length<=n?t.mConvertPts2d.push(new oB(Math.round(this.mConvertPt3d.mX),Math.round(this.mConvertPt3d.mY))):(t.mConvertPts2d[n].mX=Math.round(this.mConvertPt3d.mX),t.mConvertPts2d[n].mY=Math.round(this.mConvertPt3d.mY));this.rawDrawColorizedTriangle2d(t,t.mConvertPts2d,n)}rawDrawColorizedTriangle3ds(t,e,n,i){if(null!==this.m2dContext&&null!==this.mCanvas)for(let r=0;r<i;r+=3)this.rawDrawColorizedTriangle3d(t,e.slice(r,r+3),n.slice(r,r+3))}rawDrawImage3d(t,e,n){if(null===this.m2dContext||null===this.mCanvas)return;let i=t.mCurView;if(!i)return;let r=i.mViewportForwebAssembly,a=i.mPoint3dForwebAssembly;if(!r||!a)return;let o=t.m2dLimitedToDevice;this.mConvertPt3d.copy(UF(r,a,e.mX,e.mY,e.mZ)),this.mConvertPt3d.mulMatrix(o),this.mStart.set(Math.round(this.mConvertPt3d.mX),Math.round(this.mConvertPt3d.mY)),this.rawDrawImage2d(t,this.mStart,n)}rawDrawRasterImage3d(t,e,n){if(null===this.m2dContext||null===this.mCanvas)return;let i=t.mCurView;if(!i)return;let r=i.mViewportForwebAssembly,a=i.mPoint3dForwebAssembly;if(!r||!a)return;let o=t.m2dLimitedToDevice;this.mConvertPt3d.copy(UF(r,a,e.mX,e.mY,e.mZ)),this.mConvertPt3d.mulMatrix(o),this.mStart.set(Math.round(this.mConvertPt3d.mX),Math.round(this.mConvertPt3d.mY)),this.rawDrawRasterImage2d(t,this.mStart,n)}rawDrawHatch3d(t,e,n,i){if(null===this.m2dContext||null===this.mCanvas)return;let r=t.mCurView;if(!r)return;let a=r.mViewportForwebAssembly,o=r.mPoint3dForwebAssembly;if(!a||!o)return;let s=t.m2dLimitedToDevice;for(let n=0;n<e.mContourCounts.length;n++)this.mConvertPt3d.copy(UF(a,o,e.mPoints[n].mX,e.mPoints[n].mY,e.mPoints[n].mZ)),this.mConvertPt3d.mulMatrix(s),t.mConvertPts2d.length<=n?t.mConvertPts2d.push(new oB(Math.round(this.mConvertPt3d.mX),Math.round(this.mConvertPt3d.mY))):(t.mConvertPts2d[n].mX=Math.round(this.mConvertPt3d.mX),t.mConvertPts2d[n].mY=Math.round(this.mConvertPt3d.mY));let l=e.mContourCounts.map((t=>t/3)),c=e.mContourCounts.length,h=e.start;for(let e=0;e<c;e++){this.m2dContext.beginPath(),this.m2dContext.moveTo(t.mConvertPts2d[h].mX,t.mConvertPts2d[h].mY);for(let e=1;e<l[e];e++)h++,this.m2dContext.lineTo(t.mConvertPts2d[h].mX,t.mConvertPts2d[h].mY);h++,this.m2dContext.closePath(),this.m2dContext.stroke()}this.m2dContext.fill()}rawDrawWipeOut3d(t,e,n){let i=t.m2dLimitedToDevice,r=t.mCurView;if(!r)return;let a=r.mViewportForwebAssembly,o=r.mPoint3dForwebAssembly;if(a&&o){for(let r=0;r<n;r++)this.mConvertPt3d.copy(UF(a,o,e[r].mX,e[r].mY,e[r].mZ)),this.mConvertPt3d.mulMatrix(i),t.mConvertPts2d.length<=r?t.mConvertPts2d.push(new oB(Math.round(this.mConvertPt3d.mX),Math.round(this.mConvertPt3d.mY))):(t.mConvertPts2d[r].mX=Math.round(this.mConvertPt3d.mX),t.mConvertPts2d[r].mY=Math.round(this.mConvertPt3d.mY));this.rawDrawWipeOut2d(t,t.mConvertPts2d,n)}}drawOSnapPt(t,e){if(null===this.m2dContext||null===this.mCanvas)return;let n=t.mCurView;if(!n)return;let i=n.mViewportForwebAssembly,r=n.mPoint3dForwebAssembly;if(!i||!r)return;let a=t.m2dLimitedToDevice,o=new QR;o.copy(UF(i,r,e.mPoint.mX,e.mPoint.mY,e.mPoint.mZ)),o.mulMatrix(a),o.mX=Math.round(o.mX),o.mY=Math.round(o.mY),this.m2dContext.save(),this.m2dContext.strokeStyle=e.mColor;let s=Math.floor(window.screen.width/1e3);switch(0===s&&(s=1),e.mType){case NB.endpoint:this.m2dContext.strokeRect(o.mX-5*s,o.mY-5*s,10*s,10*s);break;case NB.midpoint:this.m2dContext.beginPath(),this.m2dContext.moveTo(o.mX,o.mY-5*s),this.m2dContext.lineTo(o.mX+5*s,o.mY+5*s),this.m2dContext.lineTo(o.mX-5*s,o.mY+5*s),this.m2dContext.lineTo(o.mX,o.mY-5*s),this.m2dContext.stroke();break;case NB.center:case NB.geometricCenter:this.m2dContext.beginPath(),this.m2dContext.arc(o.mX,o.mY,5*s,0,2*Math.PI,!1),this.m2dContext.stroke();break;case NB.node:this.m2dContext.beginPath(),this.m2dContext.arc(o.mX,o.mY,5*s,0,2*Math.PI,!1),this.m2dContext.moveTo(o.mX-5*s,o.mY-5*s),this.m2dContext.lineTo(o.mX+5*s,o.mY+5*s),this.m2dContext.moveTo(o.mX+5*s,o.mY-5*s),this.m2dContext.lineTo(o.mX-5*s,o.mY+5*s),this.m2dContext.stroke();break;case NB.quadrant:this.m2dContext.beginPath(),this.m2dContext.moveTo(o.mX,o.mY-5*s),this.m2dContext.lineTo(o.mX+5*s,o.mY),this.m2dContext.lineTo(o.mX,o.mY+5*s),this.m2dContext.lineTo(o.mX-5*s,o.mY),this.m2dContext.lineTo(o.mX,o.mY-5*s),this.m2dContext.stroke();break;case NB.extension:break;case NB.insertion:this.m2dContext.beginPath(),this.m2dContext.moveTo(o.mX-5*s,o.mY-5*s),this.m2dContext.lineTo(o.mX+1*s,o.mY-5*s),this.m2dContext.lineTo(o.mX+1*s,o.mY-1*s),this.m2dContext.lineTo(o.mX+5*s,o.mY-1*s),this.m2dContext.lineTo(o.mX+5*s,o.mY+5*s),this.m2dContext.lineTo(o.mX-1*s,o.mY+5*s),this.m2dContext.lineTo(o.mX-1*s,o.mY+1*s),this.m2dContext.lineTo(o.mX-5*s,o.mY+1*s),this.m2dContext.lineTo(o.mX-5*s,o.mY-5*s),this.m2dContext.stroke();break;case NB.perpendicular:this.m2dContext.beginPath(),this.m2dContext.moveTo(o.mX-5*s,o.mY-5*s),this.m2dContext.lineTo(o.mX-5*s,o.mY+5*s),this.m2dContext.lineTo(o.mX+5*s,o.mY+5*s),this.m2dContext.moveTo(o.mX-5*s,o.mY),this.m2dContext.lineTo(o.mX,o.mY),this.m2dContext.lineTo(o.mX,o.mY+5*s),this.m2dContext.stroke();break;case NB.tangent:this.m2dContext.beginPath(),this.m2dContext.arc(o.mX,o.mY,5*s,0,2*Math.PI,!1),this.m2dContext.moveTo(o.mX-5*s,o.mY-5*s),this.m2dContext.lineTo(o.mX+5*s,o.mY-5*s),this.m2dContext.stroke();break;case NB.nearest:this.m2dContext.beginPath(),this.m2dContext.moveTo(o.mX-5*s,o.mY-5*s),this.m2dContext.lineTo(o.mX+5*s,o.mY-5*s),this.m2dContext.lineTo(o.mX-5*s,o.mY+5*s),this.m2dContext.lineTo(o.mX+5*s,o.mY+5*s),this.m2dContext.lineTo(o.mX-5*s,o.mY-5*s),this.m2dContext.stroke();break;case NB.parallel:break;case NB.intersection:this.m2dContext.beginPath(),this.m2dContext.moveTo(o.mX-5*s,o.mY-5*s),this.m2dContext.lineTo(o.mX+5*s,o.mY+5*s),this.m2dContext.moveTo(o.mX+5*s,o.mY-5*s),this.m2dContext.lineTo(o.mX-5*s,o.mY+5*s),this.m2dContext.stroke();break;case NB.storageCenter:this.m2dContext.beginPath(),this.m2dContext.moveTo(o.mX,o.mY-4*s),this.m2dContext.lineTo(o.mX,o.mY+4*s),this.m2dContext.moveTo(o.mX-4*s,o.mY),this.m2dContext.lineTo(o.mX+4*s,o.mY),this.m2dContext.stroke();break;case NB.storageGeometricCenter:this.m2dContext.beginPath(),this.m2dContext.moveTo(o.mX,o.mY-4*s),this.m2dContext.lineTo(o.mX,o.mY+4*s),this.m2dContext.moveTo(o.mX-4*s,o.mY),this.m2dContext.lineTo(o.mX+4*s,o.mY),this.m2dContext.moveTo(o.mX-4*s,o.mY-4*s),this.m2dContext.lineTo(o.mX+4*s,o.mY+4*s),this.m2dContext.moveTo(o.mX+4*s,o.mY-4*s),this.m2dContext.lineTo(o.mX-4*s,o.mY+4*s),this.m2dContext.stroke()}this.m2dContext.restore()}drawCircleBubble(t,e){if(null===this.m2dContext||null===this.mCanvas)return;let n=t.mCurView;if(!n)return;let i=n.mViewportForwebAssembly,r=n.mPoint3dForwebAssembly;if(!i||!r)return;let a=t.m2dLimitedToDevice,o=new QR;o.copy(UF(i,r,e.mCenter.mX,e.mCenter.mY,e.mCenter.mZ)),o.mulMatrix(a),o.mX=Math.round(o.mX),o.mY=Math.round(o.mY),o.mZ=0;let s=new QR;s.copy(UF(i,r,e.mEndPt.mX,e.mEndPt.mY,e.mEndPt.mZ)),s.mulMatrix(a),s.mX=Math.round(s.mX),s.mY=Math.round(s.mY),s.mZ=0;let l=RV.zcutDistance(o,s);this.m2dContext.save(),this.m2dContext.beginPath(),this.m2dContext.strokeStyle=this.setBubbleHighlightColor(t,e),this.m2dContext.arc(o.mX,o.mY,l,0,XR.ZWGR_TWOPI,!1),this.m2dContext.stroke(),this.m2dContext.closePath(),this.m2dContext.restore()}drawRectangleBubble(t,e){if(null===this.m2dContext||null===this.mCanvas||2!==e.mPoints.length)return;let n=t.mCurView;if(!n)return;let i=n.mViewportForwebAssembly,r=n.mPoint3dForwebAssembly;if(!i||!r)return;let a=t.m2dLimitedToDevice,o=new QR;o.copy(UF(i,r,e.mPoints[1].mX,e.mPoints[1].mY,e.mPoints[1].mZ)),o.mulMatrix(a),o.mX=Math.round(o.mX),o.mY=Math.round(o.mY);let s=new QR;s.copy(UF(i,r,e.mPoints[0].mX,e.mPoints[0].mY,e.mPoints[0].mZ)),s.mulMatrix(a),s.mX=Math.round(s.mX),s.mY=Math.round(s.mY);let l=o.mX-s.mX,c=o.mY-s.mY;this.m2dContext.save(),this.m2dContext.strokeStyle=this.setBubbleHighlightColor(t,e),this.m2dContext.beginPath(),this.m2dContext.strokeRect(s.mX,s.mY,l,c),this.m2dContext.stroke(),this.m2dContext.closePath(),this.m2dContext.restore()}drawPinBubble(t,e){if(null===this.m2dContext||null===this.mCanvas)return;let n=t.mCurView;if(!n)return;let i=n.mViewportForwebAssembly,r=n.mPoint3dForwebAssembly;if(!i||!r)return;let a=t.m2dLimitedToDevice,o=mF?.5:.25,s=new QR;s.copy(UF(i,r,e.mPoint.mX,e.mPoint.mY,e.mPoint.mZ)),s.mulMatrix(a);let l=n7.instance().mBubbleImage;if(l){let n=l.width*o,i=l.height*o;if(this.m2dContext){let r;yF?r=new OffscreenCanvas(n,i):(r=document.createElement("canvas"),r.width=n,r.height=i);let a=r.getContext("2d");a&&(this.m2dContext.save(),a.drawImage(l,0,0,n,i),a.globalCompositeOperation="source-in",a.fillStyle=t.mHighlightBubble.ids.length>0&&t.mHighlightBubble.ids.includes(e.mId)?e.mColor:(t=>{const e=t.split(/[(),]/).filter(Boolean);return e[4]="0.5","rgba("+e.slice(1).join(", ")+")"})(e.mColor),a.fillRect(0,0,n,i),this.m2dContext.drawImage(r,Math.round(s.mX)-n/2,Math.round(s.mY)-i/2,n,i),this.m2dContext.restore())}}}drawPolylineBubble(t,e){if(null===this.m2dContext||null===this.mCanvas||e.mPoints.length<=0)return;let n=t.mCurView;if(!n)return;let i=n.mViewportForwebAssembly,r=n.mPoint3dForwebAssembly;if(!i||!r)return;let a=t.m2dLimitedToDevice,o=[];e.mPoints.forEach((t=>{let e=new QR;e.copy(UF(i,r,t.mX,t.mY,t.mZ)),e.mulMatrix(a),o.push(new oB(e.mX,e.mY))})),this.m2dContext.save(),this.m2dContext.strokeStyle=this.setBubbleHighlightColor(t,e),this.rawDrawPolyline2d(t,o,o.length),this.m2dContext.restore()}drawLeaderBubble(t,e){if(null===this.m2dContext||null===this.mCanvas||e.mPoints.length<=0)return;let n=t.mCurView;if(!n)return;let i=n.mViewportForwebAssembly,r=n.mPoint3dForwebAssembly;if(!i||!r)return;let a=t.m2dLimitedToDevice,o=[];e.mPoints.forEach((t=>{let e=new QR;e.copy(UF(i,r,t.mX,t.mY,t.mZ)),e.mulMatrix(a),o.push(new oB(e.mX,e.mY))})),this.m2dContext.save();let s=this.setBubbleHighlightColor(t,e);if(this.m2dContext.strokeStyle=s,this.rawDrawPolyline2d(t,o,o.length),this.m2dContext.restore(),e.mPolygonPts.length>0){let n=[];e.mPolygonPts.forEach((t=>{let e=new QR;e.copy(UF(i,r,t.mX,t.mY,t.mZ)),e.mulMatrix(a),n.push(new oB(e.mX,e.mY))})),this.m2dContext.save(),s=this.setBubbleHighlightColor(t,e),this.m2dContext.strokeStyle=s,this.m2dContext.fillStyle=s,t.mFillMode=1,this.rawDrawPolygon2d(t,n,n.length),this.m2dContext.restore()}}drawImageBubble(t,e){if(null===this.m2dContext||null===this.mCanvas)return;let n=t.mCurView;if(!n)return;let i=n.mViewportForwebAssembly,r=n.mPoint3dForwebAssembly;if(!i||!r)return;let a=t.m2dLimitedToDevice,o=e.mOriginPoint;this.mConvertPt3d.copy(UF(i,r,o.mX,o.mY,o.mZ)),this.mConvertPt3d.mulMatrix(a),this.mStart.set(Math.round(this.mConvertPt3d.mX),Math.round(this.mConvertPt3d.mY));let s=new Array;s.push(e.mOriginPoint);let l=new QR;l.copy(e.mOriginPoint),l.addVector(e.mUvector),s.push(l);let c=new QR;c.copy(e.mOriginPoint),c.addVector(e.mUvector),c.addVector(e.mVvector),s.push(c);let h=new QR;h.copy(e.mOriginPoint),h.addVector(e.mVvector),s.push(h),s.push(e.mOriginPoint);let d=[];s.forEach((t=>{let e=new QR;e.copy(UF(i,r,t.mX,t.mY,t.mZ)),e.mulMatrix(a),d.push(new oB(e.mX,e.mY))})),this.m2dContext.save(),this.m2dContext.lineWidth=2,this.m2dContext.strokeStyle=this.setBubbleHighlightColor(t,e),t.mHighlightBubble.ids.length>0&&t.mHighlightBubble.ids.includes(e.mId)&&(this.m2dContext.lineWidth=mF?10:8),this.rawDrawPolyline2d(t,d,d.length),this.m2dContext.restore(),this.m2dContext.save();let u=new mV(RB.RASTERIMAGE,0,0,e.mOriginPoint,e.mUvector,e.mVvector,[5],s,!0,e.mUrlPath);this.m2dContext.fillStyle=this.setBubbleHighlightColor(t,e),this.rawDrawRasterImage2d(t,this.mStart,u),this.m2dContext.restore()}drawRevcloudBubble(t,e){if(null===this.m2dContext||null===this.mCanvas)return;let n=t.mCurView;if(!n)return;let i=n.mViewportForwebAssembly,r=n.mPoint3dForwebAssembly;if(!i||!r)return;let a=t.m2dLimitedToDevice,o=[];0===e.mRevcloudPts.length&&(e.mRevcloudPts=jU.instance().revCloudTooSmall(e.mOriginPoint,e.mDiagonalPoint)),!(e.mRevcloudPts.length<=0)&&(e.mRevcloudPts.forEach((t=>{let e=new QR;e.copy(UF(i,r,t.mX,t.mY,t.mZ)),e.mulMatrix(a),o.push(new oB(e.mX,e.mY))})),this.m2dContext.save(),this.m2dContext.strokeStyle=this.setBubbleHighlightColor(t,e),t.mHighlightBubble.ids.length>0&&t.mHighlightBubble.ids.includes(e.mId)&&(this.m2dContext.lineWidth=6,this.m2dContext.strokeStyle=t.mHighlightBubble.color),this.rawDrawPolyline2d(t,o,o.length),this.m2dContext.restore())}setBubbleHighlightColor(t,e){let n=t.mHighlightBubble;return n.ids.length>0&&n.ids.includes(e.mId)?(this.m2dContext&&(this.m2dContext.lineWidth=3),n.color||e.mColor):e.mColor}drawUcsIcon(t,e){if(null===this.m2dContext||null===this.mCanvas||e.getPtCount()<=0)return;this.setConvertPts2dForUCSIcon(t,e,e.mPtBuffer);const n=t.mConvertPts2d;let i=[new oB,new oB];for(let r=0;r<e.mCountPts;r+=2)i[0].copy(n[r]),i[1].copy(n[r+1]),this.rawDrawPolyline2d(t,i,2)}}class z5{constructor(){this.mRenderMethod=new Map,this.mImageData=null,this.mCanvas=null,this.m2dContext=null,this.mStart=new oB,this.mEnd=new oB}init(t){return this.mCanvas=t,this.m2dContext=t.getContext("2d"),null!=this.m2dContext||(SF.logError("No 2D Context"),!1)}getCanvas(){return this.mCanvas}beginRender(t){null!=this.m2dContext&&null!=this.mCanvas&&(t.setContext(this.m2dContext),this.mImageData=this.m2dContext.getImageData(0,0,this.mCanvas.width,this.mCanvas.height))}endRender(t){null!=this.m2dContext&&null!=this.mCanvas&&null!=this.mImageData&&this.m2dContext.putImageData(this.mImageData,0,0)}clearRectContent(t){}clearContent(){}setupView(t){}rawDrawPolyline2d(t,e,n){for(let i=0;i<n-1;++i)this.rawDrawLine2d(t,e[i],e[i+1])}rawDrawLine2d(t,e,n){if(null==this.m2dContext||null==this.mCanvas||null==this.mImageData)return;let i=!1;t.getDrawflag()&gj.kDrawXORColor&&(i=!0);let r=t.getForegroundColor(),a=r>>16&255,o=r>>8&255,s=255&r,l=this.mCanvas.width;if(this.mStart.copy(e),this.mEnd.copy(n),!t.clipLine(0,0,l,this.mCanvas.height,this.mStart,this.mEnd))return;let c=this.mImageData.data,h=this.mStart.mY-this.mEnd.mY,d=this.mStart.mX-this.mEnd.mX;if(0==h){let t=Math.abs(d),e=this.mEnd.mY*l*4;e+=4*(this.mStart.mX>this.mEnd.mX?this.mEnd.mX:this.mStart.mX);for(let n=0;n<t;++n){let t=e+4*n;i?(c[t]=a-c[t],c[t+1]=o-c[t+1],c[t+2]=s-c[t+2]):(c[t]=a,c[t+1]=o,c[t+2]=s),c[t+3]=255}return}if(0==d){let t=Math.abs(h),e=(this.mStart.mY>this.mEnd.mY?this.mEnd.mY:this.mStart.mY)*l*4+4*this.mStart.mX,n=4*l;for(let r=0;r<t;++r){let t=e+n*r;i?(c[t]=a-c[t],c[t+1]=o-c[t+1],c[t+2]=s-c[t+2]):(c[t]=a,c[t+1]=o,c[t+2]=s),c[t+3]=255}return}if(d==h||d==-h){let t=Math.abs(h),e=0,n=0;e=this.mStart.mX>this.mEnd.mX?this.mEnd.mX:this.mStart.mX;let r=!1;this.mStart.mX<this.mEnd.mX?(e=this.mStart.mX,n=this.mStart.mY,r=!(n<this.mEnd.mY)):(e=this.mEnd.mX,n=this.mEnd.mY,r=!(n<this.mStart.mY));let d=n*l*4+4*e,u=0;u=r?4*-l+4:4*l+4;for(let e=0;e<t;++e){let t=d+u*e;i?(c[t]=a-c[t],c[t+1]=o-c[t+1],c[t+2]=s-c[t+2]):(c[t]=a,c[t+1]=o,c[t+2]=s),c[t+3]=255}return}let u=this.mStart.mX,m=this.mStart.mY;d=Math.abs(d),h=Math.abs(h);let p=this.mEnd.mX>this.mStart.mX?1:-1,g=this.mEnd.mY>this.mStart.mY?1:-1,f=0;if(h>d){let t=d;d=h,h=t,f=1}let b=2*h-d;for(let t=0;t<d;t++){let t=4*l*m+4*u;i?(c[t]=a-c[t],c[t+1]=o-c[t+1],c[t+2]=s-c[t+2],c[t+3]=255):(c[t]=a,c[t+1]=o,c[t+2]=s,c[t+3]=255),b>=0&&(f?u+=p:m+=g,b-=2*d),f?m+=g:u+=p,b+=2*h}}rawDrawPoint2d(t,e){throw new Error("Method not implemented.")}rawDrawPoint2ds(t,e,n){throw new Error("Method not implemented.")}rawDrawText2d(t,e,n){throw new Error("Method not implemented.")}rawDrawPolygon2d(t,e,n){throw new Error("Method not implemented.")}rawDrawPolygon2ds(t,e,n){throw new Error("Method not implemented.")}rawDrawTriangle2d(t,e){throw new Error("Method not implemented.")}rawDrawTriangle2ds(t,e,n){throw new Error("Method not implemented.")}rawDrawColorizedTriangle2d(t,e,n){throw new Error("Method not implemented.")}rawDrawColorizedTriangle2ds(t,e,n,i){throw new Error("Method not implemented.")}rawDrawImage2d(t,e,n){throw new Error("Method not implemented.")}rawDrawRasterImage2d(t,e,n){throw new Error("Method not implemented.")}rawDrawHatch2d(t,e,n,i){throw new Error("Method not implemented.")}rawDrawWipeOut2d(t,e,n){throw new Error("Method not implemented.")}rawDrawPolyline3d(t,e,n){throw new Error("Method not implemented.")}rawDrawLine3d(t,e,n){throw new Error("Method not implemented.")}rawDrawPoint3d(t,e){throw new Error("Method not implemented.")}rawDrawPoint3ds(t,e,n){throw new Error("Method not implemented.")}rawDrawText3d(t,e,n){throw new Error("Method not implemented.")}rawDrawPolygon3d(t,e,n){throw new Error("Method not implemented.")}rawDrawPolygon3ds(t,e,n){throw new Error("Method not implemented.")}rawDrawTriangle3d(t,e){throw new Error("Method not implemented.")}rawDrawTriangle3ds(t,e,n){throw new Error("Method not implemented.")}rawDrawColorizedTriangle3d(t,e,n){throw new Error("Method not implemented.")}rawDrawColorizedTriangle3ds(t,e,n,i){throw new Error("Method not implemented.")}rawDrawImage3d(t,e,n){throw new Error("Method not implemented.")}rawDrawRasterImage3d(t,e,n){throw new Error("Method not implemented.")}rawDrawHatch3d(t,e,n,i){throw new Error("Method not implemented.")}rawDrawWipeOut3d(t,e,n){throw new Error("Method not implemented.")}}var R5,F5,B5=((F5=B5||(B5={}))[F5.kNocursor=0]="kNocursor",F5[F5.kCrossHair=1]="kCrossHair",F5[F5.kArrow=2]="kArrow",F5[F5.kHand=3]="kHand",F5[F5.kEntSelect=4]="kEntSelect",F5[F5.kNoRectCrossHair=5]="kNoRectCrossHair",F5[F5.kCrossHairWithRect=6]="kCrossHairWithRect",F5[F5.kCrossHairWithAPBox=7]="kCrossHairWithAPBox",F5[F5.kNotRotated=8]="kNotRotated",F5[F5.kForceRotate=9]="kForceRotate",F5[F5.kRotatedCrossHair=10]="kRotatedCrossHair",F5[F5.kCrossHairNoRotate=11]="kCrossHairNoRotate",F5[F5.kRect=12]="kRect",F5[F5.kTargetBox=13]="kTargetBox",F5[F5.kInvisible=14]="kInvisible",F5[F5.kParallelogram=15]="kParallelogram",F5[F5.kEntSelectNoPerp=16]="kEntSelectNoPerp",F5[F5.kDialogue=17]="kDialogue",F5[F5.kWindowPop=18]="kWindowPop",F5[F5.kPkfirstOrGrips=19]="kPkfirstOrGrips",F5[F5.kUseCursel=20]="kUseCursel",F5[F5.kCount=21]="kCount",B5),V5=((R5=V5||(V5={}))[R5.kExePanCommand=1]="kExePanCommand",R5[R5.kNOTExePanCommand=2]="kNOTExePanCommand",V5);class N5 extends class{constructor(){this.mPoint=new oB}setPostion(t,e){this.mPoint.mX=t,this.mPoint.mY=e}draw(t,e,n){}}{constructor(){super(),this.mBox=new Array(5),this.mBox[0]=new oB,this.mBox[1]=new oB,this.mBox[2]=new oB,this.mBox[3]=new oB,this.mBox[4]=new oB,this.setBox(5)}setBox(t){this.mBox[2].mX-this.mBox[0].mX!==t&&(t<=1&&(t=2),this.mBox[0].mX=this.mBox[1].mX=this.mBox[4].mX=this.mBox[0].mY=this.mBox[3].mY=this.mBox[4].mY=-t,this.mBox[1].mY=this.mBox[2].mY=t,this.mBox[2].mX=this.mBox[3].mX=t)}draw(t,e,n){this.draw(t,e,n)}drawBox(t,e,n){let i=new oB,r=new oB;for(let n=0;n<4;++n)i.mX=this.mPoint.mX+this.mBox[n].mX,i.mY=this.mPoint.mY+this.mBox[n].mY,r.mX=this.mPoint.mX+this.mBox[n+1].mX,r.mY=this.mPoint.mY+this.mBox[n+1].mY,t.rawDrawLine2d(e,i,r)}}class H5 extends N5{constructor(){super(...arguments),this.mLen=50}setLength(t){this.mLen=t}draw(t,e,n){let i=n.mScreenRect,r=new Array;r.push(new oB(i.mX,i.mY)),r.push(new oB(i.mX,i.mY+i.mHeight)),r.push(new oB(i.mX+i.mWidth,i.mY+i.mHeight)),r.push(new oB(i.mX+i.mWidth,i.mY)),r.push(new oB(i.mX,i.mY)),e.setClipPolygon(r),(!n7.instance().mExecuteEditableCmd||n7.instance().mExecutingSelectEntityCmd)&&this.drawBox(t,e,n),n7.instance().mExecutingSelectEntityCmd||this.drawCross(t,e,n),e.restore(),e.resetContext()}drawCross(t,e,n){let i=new oB,r=new oB,a=new QR,o=new QR,s=-.2,l=.8,c=n.mViewportTableRec.getViewInfo(),h=new qR;h.copy(n.mPosition.sub2vec(n.mTarget)),h.transformBy(n.wcsToUcsMatrix());let d=XR.isEqual(Math.abs(c.mUcsXAxisConstant.mX)+Math.abs(c.mUcsXAxisConstant.mY),XR.EPSILON8)||XR.isEqual(Math.abs(c.mUcsXAxisConstant.mX)+Math.abs(c.mUcsXAxisConstant.mZ),XR.EPSILON8)||XR.isEqual(Math.abs(c.mUcsXAxisConstant.mZ)+Math.abs(c.mUcsXAxisConstant.mY),XR.EPSILON8),u=!((XR.isEqual(Math.abs(h.mX)+Math.abs(h.mY),XR.EPSILON8)||XR.isEqual(Math.abs(h.mX)+Math.abs(h.mZ),XR.EPSILON8)||XR.isEqual(Math.abs(h.mZ)+Math.abs(h.mY),XR.EPSILON8))&&d),m=!(h.isParallelTo(qR.XAxis())||h.isParallelTo(qR.YAxis())||h.isParallelTo(qR.ZAxis()));c.mbIsometricSnap?(s=-.5,l=.5):u||(s=-.5,l=.5),a.mX=s,a.mY=0,o.mX=l,o.mY=0;let p=0,g=0;if(c.mbIsometricSnap)switch(c.mSnapPair){case 0:p=5*Math.PI/6,g=0;break;case 1:p=5*Math.PI/6,g=-Math.PI/3;break;case 2:p=Math.PI/6,g=0}let f=new JR,b=new JR,y=new JR,v=new qR,w=new qR;v.copy(c.mUcsXAxisConstant),w.copy(c.mUcsYAxisConstant),v.transformBy(n.wcsToUcsMatrix()),w.transformBy(n.wcsToUcsMatrix());let x=v.crossProduct(w);x=x.normal();let C=new QR;C.mulMatrix(n.scsToUcsMatrix()),f.setCoordSystem(C,v,w,x),b.setCoordSystem(C,v,w,x),y.setCoordSystem(C,v,w,x),f.setToRotate(p,x,C),b.setToRotate(g,x,C),y.setToRotate(c.mSnapAngle,x,C),a.copy(C),o.copy(C),a.mX=a.mX+s*this.mLen,o.mX=o.mX+l*this.mLen;let k=new JR;k=new JR,k.copy(f),k.mul(y),a.mulMatrix(k),o.mulMatrix(k),a.mulMatrix(n.ucsToScsMatrix()),o.mulMatrix(n.ucsToScsMatrix()),!c.mIsDBViewport&&(m||u)&&e.setForegroundColor(4294901760),i.set(a.mX+this.mPoint.mX,a.mY+this.mPoint.mY),r.set(o.mX+this.mPoint.mX,o.mY+this.mPoint.mY),c.mbIsometricSnap||u?t.rawDrawLine2d(e,i,r):h.isParallelTo(qR.XAxis())||t.rawDrawLine2d(e,i,r),a.copy(C),o.copy(C),a.mY=a.mY+s*this.mLen,o.mY=o.mY+l*this.mLen,k=new JR,k.copy(b),k.mul(y),a.mulMatrix(k),o.mulMatrix(k),a.mulMatrix(n.ucsToScsMatrix()),o.mulMatrix(n.ucsToScsMatrix()),!c.mIsDBViewport&&(m||u)&&e.setForegroundColor(4278255360),i.set(a.mX+this.mPoint.mX,a.mY+this.mPoint.mY),r.set(o.mX+this.mPoint.mX,o.mY+this.mPoint.mY),c.mbIsometricSnap||u?t.rawDrawLine2d(e,i,r):h.isParallelTo(qR.YAxis())||t.rawDrawLine2d(e,i,r),a.copy(C),o.copy(C),c.mbIsometricSnap||(a.mZ=a.mZ+s*this.mLen,o.mZ=o.mZ+l*this.mLen),a.mulMatrix(n.ucsToScsMatrix()),o.mulMatrix(n.ucsToScsMatrix()),!c.mIsDBViewport&&(m||u)&&e.setForegroundColor(4278190335),i.set(a.mX+this.mPoint.mX,a.mY+this.mPoint.mY),r.set(o.mX+this.mPoint.mX,o.mY+this.mPoint.mY),(c.mbIsometricSnap||u||h.isParallelTo(qR.XAxis())||h.isParallelTo(qR.YAxis()))&&t.rawDrawLine2d(e,i,r)}}class G5{constructor(t){this.mCurCursorType=B5.kCrossHair,this.mRenderer=null,this.mRenderContext=null,this.mX=0,this.mY=0,this.mIsShow=!0,this.mCurview=null,this.mCursorMap=new Map,this.mBoxSize=5,this.mGraphicSystem=t,this.mCursorMap.set(B5.kCrossHair,new H5),this.mCursorMap.set(B5.kTargetBox,new N5)}setCurType(t){this.mCurCursorType=t}getCurType(){return this.mCurCursorType}setRenderer(t){this.mRenderer=t}setRenderContext(t){this.mRenderContext=t}draw(){!this.mIsShow||null===this.mRenderContext||this.mGraphicSystem&&!this.mGraphicSystem.mLayoutIsActive||this.mIsShow&&this.drawCrossCursor()}setCursorShow(t){this.mIsShow=t}setCurView(t){this.mCurview=t}drawCrossCursor(){switch(this.mCurCursorType){case B5.kTargetBox:case B5.kCrossHair:{let t=this.mCursorMap.get(this.mCurCursorType);void 0!==t&&null!==this.mRenderer&&null!==this.mRenderContext&&null!==this.mCurview&&(t.setBox(this.mBoxSize),t.setPostion(this.mX,this.mY),this.mRenderContext.setForegroundColor(fj.DEFAULT_FOREGROUND_COLOR),t.draw(this.mRenderer,this.mRenderContext,this.mCurview))}}}updatePostion(t,e){this.mX=t,this.mY=e}setCrossLength(t){let e=this.mGraphicSystem.mCanvas;if(null===e)return;const n=e.width,i=e.height,r=n>i?n:i;if(null===this.mCurview)return;const a=this.mCurview.height()/Math.abs(this.mCurview.mScreenRect.mHeight);let o=a*t/100*r/2;100===t&&(o=a*r*3);let s=this.mCursorMap.get(B5.kCrossHair);void 0!==s&&s.setLength(o)}setBoxSize(t){this.mBoxSize=t}}class Z5{constructor(t){this.mFps=100,this.mDocId="",this.mFileName="",this.mImageMap=new Map,this.mMarkCanvas=null,this.mBeforeMouseMovePt=new oB,this.mMouseDownPt=new oB,this.mCurCursorPT=new oB,this.mTouchCenterPT=new oB,this.touchScaleValue=1,this.mWheelTimer=null,this.mNeedRepaint=!1,this.mInUpdate=!1,this.needReload=!1,this.mCurTheme="dark",this.mLastModalTheme="dark",this.mDraging=!1,this.mZooming=!1,this.mMouseStop=!1,this.mMouseStopTimer=null,this.mFastZoomTime=0,this.mCanvasBuffer=new Array,this.mDirtyLayer=new Map,this.mRenderer=null,this.mCanvas=null,this.mSurfaceRender=new L5,this.mCurView=null,this.mGsManager=new M6(this),this.mZcUIOProcessor=l4.instance(),this.mGsDevice=null,this.mBreakZoomTimeSpan=200,this.mGsModelBottom=null,this.mGsModel=null,this.mMainApp=null,this.mDatabaseService=new sB,this.mOGL3dRenderer=null,this.mWebglCanvas=null,this.radio=1,this.mCursor=new G5(this),this.mCursorTypeController=V5.kNOTExePanCommand,this.mJigging=!1,this.mkeydownEventTimer=null,this.webSocket=null,this.mHighlightChange=!1,this.mHighlightHandles=[],this.mShortermPrimitiveCollector=new LV,this.mInShortermVPNumber=-1,this.mDocIsOpened=!1,this.mDimensionLayerHandle=null,this.mDimensionTextStyleHandle=null,this.mDimensionDimStyleHandle=null,this.mCurLayoutHandle="",this.mLayoutList=[],this.mAddedEntity=null,this.mEntitiesToBeDeleted={},this.mDocEditMode=EW.Readonly,this.mViewportIsActived=!1,this.mIsOpenChangeDir=!1,this.mViewDirection=Q3.TOP,this.mIncreasedEntHandles=[],this.mHasIncreasedEntities={},this.mTargetBoxDCSSize={cx:10,cy:10},this.mPreDateSecond=0,this.mPreIsAdsorb=!1,this.mMousePt=new oB,this.mOSnapPt=new QR,this.mIsAdsorb=!1,this.mIsOSnap=!1,this.mSnapPtStorage=[],this.mIsFirstAddLmfData=!1,this.mOpenReminder=!1,this.mCurTotalViewCount=0,this.mSurfaceData={},this.mSurfacePrimitiveCollector=new LV,this.mWSMessageSubjects=new A,this.mWatermarkOptions={text:"这是默认文字",color:"#FFFFFF3F",tiltAngle:-30,fontSize:"16px",fontName:"微软雅黑",rowOffset:150,colOffset:200,shadowColor:""},this.mShowWatermark=!1,this.mLayoutIsActive=!0,this.mEntitySelected=!1,this.mEntitySelectMode=AW.Muilty,this.mIsOpmInputing=!1,this.mSelectedEntityMap=new Map,this.mDuringVersionOper=!1,this.mHasExecEditCmd=!1,this.matptr=null,this.fcmpMatptr=null,this.isDrawManagerInit=!1,this.mSelectEntityHandle=[],this.mIncreaseDataLoaded=!0,this.mGlobalKeydownEvent=!0,this.mDbUCSInfo=new Map,this.mVpHandlesStack=[],this.m3DOrbitActive=!1,this.m3DOrbit=!1,this.m3DOriginPoint=new oB,this.signRegenLayoutMap=new Map,this.mMainApp=t,MF.instance().subscribeBroardcast(_F.GsInteraction,this),MF.instance().subscribeBroardcast(_F.WebsocketStatus,this),MF.instance().subscribeBroardcast(_F.LayoutInActive,this),MF.instance().subscribeBroardcast(_F.GetFileData,this),SF.logInfo("GraphicView init");let e=document.body.getAttribute("cloud2d-theme-style");"dark"===e&&(this.mCurTheme="dark"),"light"===e&&(this.mCurTheme="light"),this.mLastModalTheme=this.mCurTheme,this.mCanvas=document.getElementById("mainCanvas");let n=this.mCanvas.getContext("2d");if(n&&(this.radio=this.getPixelRatio(n)),null===this.mCanvas)return void SF.logError("No Canvas");const i=XF.instance().getItem("options");if(i&&(fj.ZcDrDefaultOptions=i),149===rB.instance().mFeatureId){this.mShowWatermark=!0;let t=new Date(rB.instance().mExpiredTime);this.mWatermarkOptions.text="Cloud2d Trial Version\n"+t.toLocaleString(),this.mWatermarkOptions.rowOffset=400}switch(IJ.mRendererType){case TJ.kDrCanvasRenderer:this.mRenderer=new L5,this.mDrContext=new p6,this.mDrContext.mGraphicSystem=this;break;case TJ.kDrQuickRenderer:this.mRenderer=new z5,this.mDrContext=new p6,this.mDrContext.mGraphicSystem=this;break;case TJ.kDrWebGlRenderer:this.mRenderer=new L5,this.mDrContext=new p6,this.mDrContext.mGraphicSystem=this,yF?(this.mWebglCanvas=new OffscreenCanvas(this.mCanvas.width,this.mCanvas.height),SF.log("启用OffscreenCanvas!")):(this.mWebglCanvas=document.createElement("canvas"),this.mWebglCanvas.width=this.mCanvas.width,this.mWebglCanvas.height=this.mCanvas.height,this.mWebglCanvas.style.width=this.mCanvas.width+"px",this.mWebglCanvas.style.height=this.mCanvas.height+"px"),this.mOGL3dRenderer=new m6,this.mOGL3dContext=new g6,this.mOGL3dContext.mGraphicSystem=this,this.mOGL3dRenderer.init(this.mWebglCanvas);break;default:this.mRenderer=new L5,this.mDrContext=new p6,this.mDrContext.mGraphicSystem=this}this.layoutControl(),new(N3())(this.mCanvas,{pointStart:t=>{},multipointStart:t=>{if(this.touchMoveEnd(t),null===this.mCanvas)return;this.touchScaleValue=1;let e=this.mCanvas.getBoundingClientRect().top,n=this.mCanvas.getBoundingClientRect().left;this.mTouchCenterPT.set((t.touches[0].clientX-n+t.touches[1].clientX-n)/2*this.radio,(t.touches[0].clientY-e+t.touches[1].clientY-e)/2*this.radio)},rotate:t=>{},pinch:t=>{this.touchScale(t)},multipointEnd:t=>{this.touchMoveEnd(t),this.touchScalEnd(t)},pressMove:t=>{this.touchMove(t)},tap:t=>{},doubleTap:t=>{},longTap:t=>{},swipe:t=>{},singleTap:t=>{}}),this.mCanvas.addEventListener("touchmove",(t=>{t.preventDefault()}),{passive:!1}),this.mCanvas.addEventListener("mousemove",(t=>{this.mouseMoveEvent(t)})),this.mCanvas.addEventListener("contextmenu",(t=>{t.preventDefault()})),this.mCanvas.addEventListener("mousedown",(t=>{this.mouseDownEvent(t)})),this.mCanvas.addEventListener("mouseup",(t=>{this.mouseUpEvent(t),null!=this.mZcUIOProcessor&&this.mZcUIOProcessor.putEvent(t,this.radio)})),this.mCanvas.addEventListener("dblclick",(t=>{this.dblclickEvent(t)})),this.mCanvas.addEventListener("mousewheel",(t=>{this.mouseWheelEvent(t)})),null!==this.mCanvas.parentElement&&new ResizeObserver((()=>{this.resizeEvent()})).observe(this.mCanvas.parentElement),this.mNeedRepaint=!0,this.mZcUIOProcessor=l4.instance(),this.onPaintTimer(),document.addEventListener("mousemove",this.mMousemoveListener=t=>{this.setReminder()}),document.addEventListener("mousedown",this.mMousedownListener=t=>{this.setReminder()}),document.addEventListener("mousewheel",this.mMousewheelListener=t=>{this.setReminder()}),document.addEventListener("keydown",this.mKeyDownListener=t=>{let e=t.target;if(e.id.indexOf("atInput")>-1||e.id.indexOf("searchInput")>-1||(this.setReminder(),!this.mGlobalKeydownEvent))return;let n=n7.instance();"Escape"!==t.code&&"NumpadEnter"!==t.code&&"Enter"!==t.code&&"Space"!==t.code&&"Delete"!==t.code||n.mModalOpened||n.mCmdExecutionStatus&&n.checkIsPlot(t.code)||(this.mkeydownEventTimer&&clearTimeout(this.mkeydownEventTimer),this.mkeydownEventTimer=setTimeout((()=>{this.keydownEvent(t),clearTimeout(this.mkeydownEventTimer)}),100))}),document.addEventListener("mouseup",this.mMouseupListener=t=>{this.mouseUpEvent(t)})}drawManagerInit(){try{this.drawManager=new Module.ZwCloudDrawManager,this.matptr=this.drawManager.getMat(),n7.instance().mIsInitFcmp?(this.fcmpMatptr=this.drawManager.getFcmpData(),n7.instance().mIsInitFcmp=!1):this.fcmpMatptr=null}catch(t){uj.instance().isInitWam=!1,Module.onRuntimeInitialized=function(){mj.instance().webGLCanvasInit();let t=mj.instance().GS;t&&(t.drawManager=new Module.ZwCloudDrawManager,t.matptr=t.drawManager.getMat(),t.isDrawManagerInit=!0),SF.log("加载完成,开始处理堆积的消息");let e=uj.instance().messageArray.length;for(let t=0;t<e;t++)uj.instance().processMessage(uj.instance().messageArray[t]);uj.instance().messageArray=[],uj.instance().isInitWam=!0}}}onPaintTimer(){this.mNeedRepaint&&!this.mInUpdate&&(this.mNeedRepaint=!1,this.mCanvas&&this.mCanvas.width&&this.mCanvas.height&&(this.mInUpdate=!0,this.update(),this.mInUpdate=!1)),requestAnimationFrame(this.onPaintTimer.bind(this))}getCanvasWidth(){return null===this.mCanvas?0:this.mCanvas.width}getCanvasHeight(){return null===this.mCanvas?0:this.mCanvas.height}update(){if(null===this.mRenderer||null===this.mCanvas||null===this.mCurView)return;let t=this.mCanvas.getContext("2d");if(null===t)return;for(let t=EB.kZcDrBottomMost;t<=EB.kZcDrSurface;++t)this.mDirtyLayer.get(t)&&(this.mRenderer.init(this.mCanvasBuffer[t].mOffsetCanvas),this.mRenderer.beginRender(this.mDrContext),null!=this.mGsDevice&&this.mGsDevice.draw(this.mRenderer,this.mDrContext,t),this.mRenderer.endRender(this.mDrContext),t===EB.kZcDrLongterm&&(mj.instance().lastDrawSection=mj.instance().curDrawSection),this.mDirtyLayer.set(t,!1),t===EB.kZcDrLongtermHighlight&&this.mHighlightChange&&(this.mHighlightChange=!1));mj.instance().mLoadedDataNumber--,mj.instance().mLoadedDataNumber>0?(mj.instance().isDataLoadEnd&&(mj.instance().mLoadedDataNumber=1,mj.instance().mIsOpenDwgDraw=!1),this.mNeedRepaint=!0,this.mDirtyLayer.set(EB.kZcDrLongterm,!0)):(mj.instance().mLoadedDataNumber=0,mj.instance().mIsOpenDwgDraw=!1,mj.instance().curDrawSection=0,mj.instance().lastDrawSection=mj.instance().curDrawSection),t.imageSmoothingEnabled=!1,t.clearRect(-1,-1,this.mCanvas.width+1,this.mCanvas.height+1),t.globalAlpha=1;for(let e=EB.kZcDrBottomMost;e<=EB.kZcDrSurface;++e)t.drawImage(this.mCanvasBuffer[e].mOffsetCanvas,0,0,this.mCanvas.width,this.mCanvas.height);this.setWebGLDrawFlag(c6.noGenData),this.mIsFirstAddLmfData&&mj.instance().isDataLoadEnd&&!mj.instance().mIsOpenDwgDraw&&0===mj.instance().mLoadedDataNumber&&(SF.log("绘制结束"+(new Date).getTime()),this.mIsFirstAddLmfData=!1,MF.instance().broardcast(_F.UpdatePage,{type:"loading",data:{isLoading:!1,loadingProgressPreset:{phase:OW.end}}})),this.mShowWatermark&&this.mMarkCanvas&&t.drawImage(this.mMarkCanvas,0,0,this.mCanvas.width,this.mCanvas.height),this.m3DOrbitActive&&uB.drawCircle();let e=Number(fj.ZcDrDefaultOptions.cursorSize);this.mCursor.setCrossLength(e),this.mSurfaceRender.init(this.mCanvas),this.mSurfaceRender.beginRender(this.mDrContext),null!==this.mGsDevice&&(!mF&&!this.m3DOrbitActive&&(this.mCursor.setRenderContext(this.mDrContext),this.mCursor.setRenderer(this.mSurfaceRender),this.mCursor.setCurView(this.mCurView),this.mIsAdsorb||this.mCursor.updatePostion(this.mCurCursorPT.mX,this.mCurCursorPT.mY),this.mDrContext.setLineweight(1),this.mDrContext.setDrawflag(gj.kDrawXORColor),this.mCursor.draw(),this.mDrContext.setDrawflag(gj.kNoDrawFlags)),this.mGsDevice.drawBorder(this.mSurfaceRender,this.mDrContext)),this.mSurfaceRender.endRender(),this.needReload&&this.mCurTheme!==this.mLastModalTheme&&(document.body.setAttribute("cloud2d-theme-style",this.mCurTheme),MF.instance().broardcast(_F.UpdatePage,{type:"changeTheme",data:{theme:this.mCurTheme}}),ZwCloud2D.ZwEditor.ZwSetLoadingState(!1),this.mLastModalTheme=this.mCurTheme,this.needReload=!1),this.mMouseStop=!1,this.mZooming=!1}initGraphics(){SF.logInfo("GraphicView initGraphics"),this.mGsManager.createDevice(this.mCanvas)}onDrawableAdded(t,e){e.addSceneGraphRoot(t)}changeLayout(t){this.mHighlightHandles.length>0&&(this.drawManager.resetHighLightViewDataMap(),mj.instance().clearSelect());let e=mj.instance().loadedLayoutMap.get(Number(this.mCurLayoutHandle));if(e)mj.instance().changeLayout(BigInt(this.mCurLayoutHandle));else{SF.log("重新load该布局缓存");let t=mj.instance().layoutFileIndex.get(Number(this.mCurLayoutHandle));zZ.getLmfData(t).then((t=>{if(t&&IJ.mEnableWASMWrapper){this.initTheme();let e=t.data;mj.instance().reloadLayout(e,hj.ReloadLayout)}}))}let n=this.mDatabaseService.getDB();if(null!=n&&null!=this.mGsDevice&&n.setActiveLayout(t)){this.resetColorPalette();let t=n.getActiveBTR();if(null!==t){let e=t.getAllViewsInfo();if(this.isInEditMode())for(let t=0;t<e.length;t++){const n=this.mGsDevice.getGsViewByInfo(e[t]);if(null!==n&&n.mViewportTableRec.getViewInfo().mIsActive){this.mCurView=n,this.setActiveView(this.mCurView);break}}else if(0!==e.length){let t=this.mGsDevice.getGsViewByInfo(e[0]);null!==t&&(this.mCurView=t,this.setActiveView(this.mCurView))}MF.instance().broardcast(_F.LayoutInActive,{data:!0})}e&&!this.mGsManager.isInPaperSpace()&&this.mCurTheme!==this.mLastModalTheme&&this.changeTheme(this.mCurTheme),n.updateLayerColor(),this.invalidate(),MF.instance().broardcast(_F.UpdatePage,{type:"updateLayoutList"})}}initTheme(){"dark"===this.mCurTheme&&(zV.modalBackgroundColor=4280363056,zV.modalForegroundColor=4294967295),"light"===this.mCurTheme&&(zV.modalBackgroundColor=4294967295,zV.modalForegroundColor=4278190080),mj.instance().setBackgroundForegroundColor(zV.modalBackgroundColor,zV.modalForegroundColor)}changeTheme(t){this.mCurTheme=t,this.initTheme(),this.mGsManager.isInPaperSpace()?(document.body.setAttribute("cloud2d-theme-style",this.mCurTheme),MF.instance().broardcast(_F.UpdatePage,{type:"changeTheme",data:{theme:this.mCurTheme}})):(this.resetColorPalette(),ZwCloud2D.ZwEditor.ZwSetLoadingState(),mj.instance().reload())}resetColorPalette(){this.mGsManager.isInPaperSpace()?(fj.DEFAULT_BACKGROUND_COLOR=zV.layoutBackgroundColor,fj.DEFAULT_FOREGROUND_COLOR=zV.layoutForegroundColor):(fj.DEFAULT_BACKGROUND_COLOR=zV.modalBackgroundColor,fj.DEFAULT_FOREGROUND_COLOR=zV.modalForegroundColor),cJ.systemColorPalette=function(t){let e=[],n=!1;return 4279901730==t?(e=lJ(wj),e):4280363056==t?(e=lJ(xj),e):(function(t){let e=uJ(t);e>>24==0&&(e|=4278190080);let n=fj.colorToRgb(e);return n.red>127||n.green>127||n.blue>127}(t)?(e=lJ(vj),n=!0):(e=lJ(vj),e=yj),sJ(e,function(t,e){let n=function(t){let e=-1,n=cJ.systemColorPalette.length,i=1e8,r=-1;for(let s=0;s<n;++s){let n=(a=cJ.systemColorPalette[s],o=t,(Math.abs(a[0]-o[0])+Math.abs(a[1]-o[1])+Math.abs(a[2]-o[2]))/3);if(n<i&&(i=n,r=s,0===i))return e=r,e}var a,o;return e=r,e}([e>>16&255,e>>8&255,255&e]);return-1!=n?dJ(n):null}(0,t)),n&&sJ(e,dJ(7)),e)}(fj.DEFAULT_BACKGROUND_COLOR)}initLayout(){let t=this.mDatabaseService.getDB();if(null==t)return;this.mGsManager.setDatabase(t),this.resetColorPalette(),this.mGsManager.isInPaperSpace()||(this.mLastModalTheme=this.mCurTheme),null===this.mGsModel&&null==this.mGsModelBottom&&(this.mGsModel=this.mGsManager.createGsModel(),this.mGsModelBottom=this.mGsManager.createGsModel(EB.kZcDrBottomMost));let e=this.mGsManager.createGsModel(EB.kZcDrLongtermHighlight),n=this.mGsManager.createGsModel(EB.kZcDrDirectShorterm),i=this.mGsManager.createGsModel(EB.kZcDrShorterm),r=this.mGsManager.createGsModel(EB.kZcDrSurface),a=t.getActiveBTR();if(null==a)return void SF.logError("Get Active BlockTableRecord failed",SF.errorStatus.initError);this.mGsModel&&this.onDrawableAdded(a,this.mGsModel);let o=t.getSymbolTable(o3.kZwDbViewTable);if(null==o)return;let s=this.mGsManager.getGUIDevice();if(null==s)return;let l=0;for(let t=0;t<o.itemCount();t++){let e=o.getAt(t);null!=e&&(!a.checkViewInBTR(e)||l++)}this.mCurTotalViewCount=l;let c=null;for(let t=0;t<o.itemCount();t++){let l=o.getAt(t);if(null==l||!a.checkViewInBTR(l))continue;let h=this.mGsManager.createGsView(l);if(null==h)continue;let d=l.getViewInfo();h.mGridSwitch=d.mbGridEnabled,h.mGraphicSystem=this,this.saveUcsInfo(d),s.add(h)&&(this.mGsDevice=s,l.setGsView(h),h.setupGsView(l,l.getViewInfo().mViewportNum),null!=a.mGsNode&&this.mGsModel&&h.add(a.mGsNode,this.mGsModel),this.mGsModelBottom&&h.add(new CB,this.mGsModelBottom),h.add(new CB,e),h.add(new CB,n),h.add(new CB,i),h.add(new CB,r),null===c&&(this.mGsManager.isInPaperSpace()?this.isInEditMode()?d.mIsActive&&(c=h):c=h:d.mIsActive&&(c=h)))}c?(c.mVPHandle&&this.mVpHandlesStack.push(c.mVPHandle),this.setActiveView(c),this.hasUCSVPOrUCSFollow(!0),MF.instance().broardcast(_F.LayoutInActive,{data:!0})):MF.instance().broardcast(_F.LayoutInActive,{data:!1}),this.resizeEvent()}setActiveView(t){this.mCurView=t,this.mCurView.initVpForWebAssembly();let e=Number(fj.ZcDrDefaultOptions.cursorSize);if(this.mCursor.setCrossLength(e),this.mCursor.setRenderContext(this.mDrContext),this.mCursor.setRenderer(this.mSurfaceRender),this.mCursor.setCurView(this.mCurView),this.mCursor.updatePostion(this.mCurCursorPT.mX,this.mCurCursorPT.mY),this.mCursor.draw(),null!=this.mZcUIOProcessor&&(this.mZcUIOProcessor.mCoreUIOContextService.setCurView(t),MF.instance().broardcast(_F.UpdatePage,{type:"updateViewportInfo",data:t.mViewportTableRec.getViewInfo()})),!this.mGsManager.isInPaperSpace()||!t.isOverallView()){if(!this.mIsOpenChangeDir)return;t.mViewportTableRec.getViewInfo().mViewDirection=e4.get(this.mViewDirection),this.mGsManager.changeViewDirection(t),r4.instance().doZoomOperate(i4.ZoomExtentsSelect),MF.instance().broardcast(_F.ChangeDirection,{data:this.mViewDirection}),this.mIsOpenChangeDir=!1,this.mViewDirection=Q3.TOP,a4.mZcBroadcast.broardcast(_F.History,{label:"",history:qF.mLanguagePackage.command_selectViewport+":"}),a4.mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.command+":",history:""}),a4.mCanChangeLayout=!0}}getPixelRatio(t){return(window.devicePixelRatio||1)/(t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)}layoutControl(){if(null!=this.mCanvas)if(null!=this.mCanvas.parentElement&&(this.mCanvas.width=this.mCanvas.parentElement.clientWidth*this.radio,this.mCanvas.height=this.mCanvas.parentElement.clientHeight*this.radio,this.mCanvas.style.width=this.mCanvas.parentElement.clientWidth+"px",this.mCanvas.style.height=this.mCanvas.parentElement.clientHeight+"px"),0==this.mCanvasBuffer.length)for(let t=0;t<EB.kZcDrZOrderCount;++t)null==this.mCanvasBuffer[t]&&(this.mCanvasBuffer[t]=new OB(this.mCanvas.width,this.mCanvas.height)),this.mDirtyLayer.set(t,!0);else for(let t in this.mCanvasBuffer)this.mCanvasBuffer[t].resize(this.mCanvas.width,this.mCanvas.height)}resizeEvent(){if(null==this.mCanvas)return;MF.instance().broardcast(_F.ResizePage,{type:"resize",data:{canvasWidth:this.mCanvas.width}});let t=this.mGsManager.getGUIDevice();null!=t&&(this.layoutControl(),t.resize(this.mCanvas.width,this.mCanvas.height),this.setDirtyLayer(EB.kZcDrAllLayer,!0),this.setMarkImage(),this.mNeedRepaint=!0)}setDirtyLayer(t,e){if(t===EB.kZcDrAllLayer)for(let t=0;t<EB.kZcDrTopmost;t++)this.mDirtyLayer.set(t,e);else this.mDirtyLayer.set(t,e)}touchMove(t){if(null===this.mCanvas||!this.mLayoutIsActive||null===this.mGsDevice)return;let e=this.mGsDevice.getViewByLockFlag();if(null===e)return;let n=this.mCanvas.getBoundingClientRect().top,i=this.mCanvas.getBoundingClientRect().left;if(this.mCurCursorPT.set((t.touches[0].clientX-i)*this.radio,(t.touches[0].clientY-n)*this.radio),this.mCurCursorPT.mX<0||this.mCurCursorPT.mY<0||this.mCurCursorPT.mX>this.mCanvas.width||this.mCurCursorPT.mY>this.mCanvas.height)this.touchMoveEnd(t);else{if(!1===this.mDraging&&(this.mDraging=!0,this.mMouseDownPt.copy(this.mCurCursorPT),this.mBeforeMouseMovePt.copy(this.mCurCursorPT)),this.mDraging&&!this.mGsDevice.mFastPanNeedUpdate){let n=new qR(-t.deltaX*this.radio,-t.deltaY*this.radio,0);e.dolly(n),this.mBeforeMouseMovePt.copy(this.mCurCursorPT),e.createUcsIcon()}this.setDirtyLayer(EB.kZcDrAllLayer,!0),this.mNeedRepaint=!0}}touchMoveEnd(t){if(this.mLayoutIsActive){if(this.mDraging=!1,this.mGsDevice){this.mGsDevice.mFastPanNeedUpdate=!0;let t=this.mGsDevice.getViewByLockFlag();if(null===t)return;this.updateOverallView(t),t.createUcsIcon()}this.mMouseDownPt.copy(this.mCurCursorPT),this.mBeforeMouseMovePt.copy(this.mCurCursorPT),this.setDirtyLayer(EB.kZcDrAllLayer,!0),this.mNeedRepaint=!0}}touchScale(t){if(!this.mLayoutIsActive||null===this.mCanvas||null===this.mGsDevice||this.mInUpdate)return;let e=this.mGsDevice.getViewByLockFlag();if(null===e)return;let n=!0;if(t.zoom>this.touchScaleValue)n=!0;else{if(!(t.zoom<this.touchScaleValue))return;n=!1}this.mZooming=!0;let i=e.mScreenRect,r=new QR(i.mWidth/2,i.mHeight/2,0),a=new QR;a.set(this.mTouchCenterPT.mX-i.mX,this.mTouchCenterPT.mY-i.mY,0);let o=r.sub2vec(a);e.pixelToViewMatrix();let s=t.zoom/this.touchScaleValue,l=e.canZoomOut(s,o);l===U6.kNorm?(o.mul(1/s-1),(Math.abs(o.mX)>0||Math.abs(o.mY)>0)&&e.dolly(o),e.zoom(s),this.touchScaleValue=t.zoom,this.updateOverallView(e),e.createUcsIcon(),this.setDirtyLayer(EB.kZcDrAllLayer,!0),this.mNeedRepaint=!0):l===U6.kZoomInMax?(e.mCurZoomFactor=1,MF.instance().broardcast(_F.History,{history:qF.mLanguagePackage.CannotZoomIn})):l===U6.kZoomOutMax&&MF.instance().broardcast(_F.History,{history:qF.mLanguagePackage.CannotZoomOut})}touchScalEnd(t){this.mZooming=!1,this.touchScaleValue=1}checkActionInvalid(t,e){const n=n7.instance().mCmdExecutionStatus;let i=n7.instance().getCurView();if(null!==i)return!(!n||null===t||null===e||i.mScreenRect.contain(t,e))}mouseMoveEvent(t){if(null===this.mGsDevice)return;let e=this.mGsDevice.getViewByLockFlag();if(!n7.instance().mDrawCommentBubble&&!this.mIsOpmInputing&&n7.instance().mZcadCmdContext.keepFocusInCmdPanel(!0),(!this.mIsAdsorb||this.mDraging)&&this.mCurCursorPT.set(t.offsetX*this.radio,t.offsetY*this.radio),null!==e){if(this.mDraging&&!this.mGsDevice.mFastPanNeedUpdate){let t=new qR(this.mBeforeMouseMovePt.mX-this.mCurCursorPT.mX,this.mBeforeMouseMovePt.mY-this.mCurCursorPT.mY,0);e.dolly(t),e.createUcsIcon(),this.mBeforeMouseMovePt.copy(this.mCurCursorPT),this.setDirtyLayer(EB.kZcDrAllLayer,!0),this.mNeedRepaint=!0}if(this.m3DOrbitActive&&!this.mDraging){let e=new oB(t.offsetX*this.radio,t.offsetY*this.radio);this.m3DOrbit?(uB.transformView(this.m3DOriginPoint,e),this.setDirtyLayer(EB.kZcDrAllLayer,!0),this.mNeedRepaint=!0,this.m3DOriginPoint=e):uB.setCursorStyle(e)}else if(null!=this.mGsDevice){if(null==this.mCurView)return;this.mCursorTypeController===V5.kNOTExePanCommand&&(this.mCurView.isPointInside(new oB(t.offsetX*this.radio,t.offsetY*this.radio))?this.setCanvasCursor(this.mDraging?"dragging":this.mJigging?"cross":"normal"):this.setCanvasCursor(this.mDraging?"dragging":"default"))}if(!this.checkActionInvalid(t.offsetX*this.radio,t.offsetY*this.radio)&&(this.mNeedRepaint=!0,null!=this.mZcUIOProcessor&&this.mZcUIOProcessor.putEvent(t,this.radio),!this.mDraging))if(HZ._instance.doJig(),HJ.mOsnapSwitch&&n7.instance().mCmdExecutionStatus&&!n7.instance().mDrawCommentBubble&&n7.instance().mExecuteEditableCmd&&!n7.instance().mExecutingSelectEntityCmd){let e=(new Date).getTime();this.mMousePt=new oB(t.offsetX*this.radio,t.offsetY*this.radio),e-this.mPreDateSecond>100&&(this.sendOSnapMessage(t),this.mIsOSnap=!0,this.mPreDateSecond=e)}else this.mIsAdsorb&&(this.mIsAdsorb=!1),this.mIsOSnap&&(this.mIsOSnap=!1,e.clearAllSnap(),this.mDirtyLayer.set(EB.kZcDrDirectShorterm,!0),this.mNeedRepaint=!0),this.mSnapPtStorage=[]}}mouseDownEvent(t){if(this.mIsOpmInputing||n7.instance().mZcadCmdContext.keepFocusInCmdPanel(!0),null!==this.mCurView&&this.mLayoutIsActive){if(1===t.button)this.mDraging=!0,this.setCanvasCursor("dragging");else if(0===t.button){this.m3DOrbitActive&&(this.m3DOrbit=!0,this.m3DOriginPoint=new oB(t.offsetX*this.radio,t.offsetY*this.radio),uB.setCursorStyle(this.m3DOriginPoint));let e=n7.instance().mCmdExecutionStatus;if(this.mCursorTypeController===V5.kExePanCommand&&!this.mDraging&&this.mCurView.mScreenRect.contain(t.offsetX*this.radio,t.offsetY*this.radio)&&(this.mDraging=!0),!e&&!this.mDraging&&null!==this.mGsDevice&&!this.mGsDevice.isSingleView()&&this.mCursorTypeController===V5.kNOTExePanCommand)if(this.mGsManager.isInPaperSpace()){if(!this.mCurView.isOverallView()&&this.mGsDevice.hittestView(t.offsetX*this.radio,t.offsetY*this.radio,!1)){this.activeViewport("switchViewport");let t=this.mCurView;return this.setActiveView(t),this.setCanvasCursor("normal"),this.hasUCSVPOrUCSFollow(),this.mNeedRepaint=!0,void(null!=this.mZcUIOProcessor&&MF.instance().broardcast(_F.StatusBar,{type:"switch",data:{switch:t.mGridSwitch,name:"GRID"}}))}}else if(this.mGsDevice.hittestView(t.offsetX*this.radio,t.offsetY*this.radio,!0)){this.activeViewport("switchViewport");let t=this.mCurView;return this.setActiveView(t),this.setCanvasCursor("normal"),this.hasUCSVPOrUCSFollow(),this.mNeedRepaint=!0,void(null!=this.mZcUIOProcessor&&MF.instance().broardcast(_F.StatusBar,{type:"switch",data:{switch:t.mGridSwitch,name:"GRID"}}))}e||this.selectEntity(t)}this.checkActionInvalid(t.offsetX*this.radio,t.offsetY*this.radio)||(this.mMouseDownPt.set(t.offsetX*this.radio,t.offsetY*this.radio),this.mBeforeMouseMovePt.copy(this.mMouseDownPt),"Master"===ZwCloud2D.type&&!this.m3DOrbitActive&&(this.mJigging?this.mDraging=!1:(this.mDraging=!0,this.setCanvasCursor("dragging"))),this.mDraging&&(this.setDirtyLayer(EB.kZcDrAllLayer,!0),this.mNeedRepaint=!0),null!==this.mZcUIOProcessor&&this.mZcUIOProcessor.putEvent(t,this.radio))}}mouseUpEvent(t){if(this.mLayoutIsActive&&(1==t.button||0===t.button)&&this.mDraging){if(this.mDirtyLayer.set(EB.kZcDrBottomMost,!0),this.mDirtyLayer.set(EB.kZcDrLongterm,!0),this.mDirtyLayer.set(EB.kZcDrDirectShorterm,!0),this.setCanvasCursor(this.mCursorTypeController===V5.kNOTExePanCommand?"normal":"drag"),this.mDraging=!1,this.mGsDevice){this.mGsDevice.mFastPanNeedUpdate=!0;let t=this.mGsDevice.getViewByLockFlag();if(null===t)return;let e=new qR(this.mBeforeMouseMovePt.mX-this.mCurCursorPT.mX,this.mBeforeMouseMovePt.mY-this.mCurCursorPT.mY,0);t.dolly(e),this.updateOverallView(t),t.createUcsIcon()}this.mNeedRepaint=!0}this.m3DOrbit=!1}mouseWheelEvent(t){if(!this.mLayoutIsActive||null===this.mCanvas||null===this.mGsDevice||this.mDraging||this.mInUpdate)return;this.mZooming=!0,this.mFastZoomTime=(new Date).getTime();let e=this.mGsDevice.getViewByLockFlag();if(null===e)return;let n=e.mScreenRect,i=new QR(n.mWidth/2,n.mHeight/2,0),r=new QR;r.set(t.offsetX*this.radio-n.mX,t.offsetY*this.radio-n.mY,0);let a=i.sub2vec(r);e.pixelToViewMatrix();let o=-t.deltaY>0,s=r4.instance().getSettingFactor();s=o?s:1/s;let l=e.canZoomOut(s,a);l===U6.kNorm?(a.mul(1/s-1),(Math.abs(a.mX)>0||Math.abs(a.mY)>0)&&e.dolly(a),e.zoom(s),this.updateOverallView(e),e.createUcsIcon(),this.setDirtyLayer(EB.kZcDrAllLayer,!0),this.mNeedRepaint=!0):l===U6.kZoomInMax?(e.mCurZoomFactor=1,MF.instance().broardcast(_F.History,{history:qF.mLanguagePackage.CannotZoomIn})):l===U6.kZoomOutMax&&MF.instance().broardcast(_F.History,{history:qF.mLanguagePackage.CannotZoomOut})}dblclickEvent(t){if(null===this.mCurView)return;this.mDraging=!1,null!==this.mZcUIOProcessor&&this.mZcUIOProcessor.putEvent(t,this.radio);let e=n7.instance(),n=e.mCmdExecutionStatus;if(null!==this.mGsDevice&&!this.mGsDevice.isSingleView()&&this.mCursorTypeController===V5.kNOTExePanCommand&&(!n||n&&"-VIEW"===e.mCmdHistoryList[e.mCmdHistoryList.length-1])&&this.mGsManager.isInPaperSpace()&&this.mGsDevice.hittestView(t.offsetX*this.radio,t.offsetY*this.radio,!0)){this.activeViewport("switchViewport");let t=this.mCurView;return this.setActiveView(t),this.hasUCSVPOrUCSFollow(),this.mNeedRepaint=!0,null!==this.mZcUIOProcessor&&MF.instance().broardcast(_F.StatusBar,{type:"switch",data:{switch:t.mGridSwitch,name:"GRID"}}),void(n&&(e.clear("keepHistory"),h4.mCmd=null))}}keydownEvent(t){switch(t.code){case"Escape":this.clearHighlight(),HZ.clearJig(),this.mEntitySelected=!1,this.sendOpmViewData();break;case"Delete":this.mHighlightHandles.length>0&&this.deleteEntities()}null!==this.mZcUIOProcessor&&this.mZcUIOProcessor.putEvent(t,this.radio)}invalidate(){null!=this.mGsDevice&&this.mGsDevice.repairScreenRect(),this.mNeedRepaint=!0,this.mIsFirstAddLmfData=!0}notify(t,e){switch(t){case _F.GsInteraction:switch(e.type){case"draw":if(e.data)switch(e.data.type){case"DrSurface":this.mDirtyLayer.set(EB.kZcDrSurface,!0),this.mNeedRepaint=!0;break;case"Shorterm":if(null==this.mCurView)return;this.mInShortermVPNumber=this.mCurView.mVPNumber,"clearAllSnap"===e.data.operate&&(this.mCurView.clearAllSnap(),this.mZcUIOProcessor&&(this.mZcUIOProcessor.mCoreUIOContextService.mSnapPoints=[])),this.mDirtyLayer.set(EB.kZcDrDirectShorterm,!0),this.mDirtyLayer.set(EB.kZcDrShorterm,!0),this.mNeedRepaint=!0;break;case"Highlight":if(this.m3DOrbitActive)break;this.mDirtyLayer.set(EB.kZcDrLongtermHighlight,!0),this.mHighlightChange=!0,this.mNeedRepaint=!0;break;case"BottomMost":this.mDirtyLayer.set(EB.kZcDrBottomMost,!0),this.mNeedRepaint=!0;break;case"Longterm":this.mDirtyLayer.set(EB.kZcDrLongterm,!0),this.mNeedRepaint=!0;break;case"AllLayers":this.setDirtyLayer(EB.kZcDrAllLayer,!0),this.mNeedRepaint=!0}break;case"drawCursor":if(e.data)switch(e.data.type){case"normal":this.mCursorTypeController=V5.kNOTExePanCommand,this.setCanvasCursor("normal"),this.mJigging=!1;break;case"jig":this.mCursorTypeController=V5.kNOTExePanCommand,this.setCanvasCursor("cross"),this.mJigging=!0;break;case"drag":this.mCursorTypeController=V5.kExePanCommand,this.setCanvasCursor("drag")}break;case"makeOptionsEffective":const t=XF.instance().getItem("options");t&&(fj.ZcDrDefaultOptions=t),this.setCanvasCursor("normal"),this.mDirtyLayer.set(EB.kZcDrLongterm,!0),this.mNeedRepaint=!0;break;case"updateViewData":this.updateAllViewData();break;case"updateViewDataHttp":this.updateViewDataHttp();break;case"bubblesOff":e.data&&this.bubblesOff(e.data.bubblesOff);break;case"setBubblesData":e.data&&this.setBubblesData(e.data.marks);break;case"deleteBubbles":e.data&&this.deleteBubble(e.data.ids);break;case"locateBubble":e.data&&this.locateBubble(e.data.id);break;case"highlightBubble":e.data&&this.highlightBubble(e.data.highlightBubble);break;case"cancelBubbleHighlight":e.data&&this.cancelBubbleHighlight(e.data.ids);break;case"watermark":if(e.data){this.mShowWatermark=!0;for(let t in e.data.options)this.mWatermarkOptions[t]=e.data.options[t];this.setMarkImage()}break;case"setDimensionLayerHandle":e.data&&(this.mDimensionLayerHandle=String(e.data.layerHandle));break;case"setSignHistoryData":if(e.data){let t=e.data.signHistory;this.clearSign(),this.setSignHistoryData(t)}}break;case _F.WebsocketStatus:if("websocketStatus"===e.type&&e.data)if(e.data.isConnected)this.mDocEditMode=EW.Edit;else{if(this.mGsManager.isInPaperSpace()&&this.mGsDevice){let t=this.mGsDevice.getOverallView();t&&this.setActiveView(t)}this.exitCommand(),this.clearHighlight(),this.mDirtyLayer.set(EB.kZcDrDirectShorterm,!0),MF.instance().broardcast(_F.CommentPanel,{type:"commentPermission",data:{}}),this.webSocket&&this.webSocket.connectSuccess&&this.webSocket.closeSocket(),this.mDocEditMode=EW.Readonly}break;case _F.LayoutInActive:if(void 0===e.data)break;let{data:t}=e;this.mLayoutIsActive=t;break;case _F.GetFileData:"setImageList"===e.type&&e.data&&n7.instance().setImageList(e.data)}}modifyParams(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){let n=t[e];"string"==typeof n?"layer"===e?"null"===n&&(SF.log("发现了layer为null,修改参数为正确值"),t[e]=this.mDimensionLayerHandle):"style"===e&&"null"===n&&(SF.log("发现了style为null,修改参数为正确值"),t[e]=this.mDimensionTextStyleHandle):n instanceof Object&&this.modifyParams(n)}return t}handleEntityParams(t){if(1===t.function&&t.data&&t.data.content&&t.data.content.add){let e=t.data.content.add.entityType;e!==_B.kZcDbLayer&&e!==_B.kZcDbTextStyle&&(t.data.content.add=this.modifyParams(t.data.content.add))}return t}setCanvasCursor(t){if(null!=this.mCanvas)switch(t){case"default":this.mCanvas.style.cursor="default",this.mCursor.setCursorShow(!1);break;case"normal":"Master"===ZwCloud2D.type?(this.mCanvas.style.cursor="grab",this.mCursor.setCursorShow(!1)):(this.mCanvas.style.cursor="none",this.mCursor.setCursorShow(!0));break;case"cross":this.mCanvas.style.cursor="none",this.mCursor.setCursorShow(!0);break;case"drag":this.mCanvas.style.cursor="grab",this.mCursor.setCursorShow(!1);break;case"dragging":"Master"===ZwCloud2D.type?(this.mCanvas.style.cursor="grabbing",this.mCursor.setCursorShow(!1)):(this.mCanvas.style.cursor="grab",this.mCursor.setCursorShow(!1));break;case"hide":this.mCanvas.style.cursor="none",this.mCursor.setCursorShow(!1)}}updateAllViewData(t){if(SF.log("updateAllViewData"),this.isInEditMode()&&this.webSocket&&this.webSocket.connectSuccess&&this.mDocIsOpened){if(null===this.mCurView)return;let e=this.mGsDevice;if(!e)return;let n=this.mDatabaseService.getDB();if(null===n)return;let i=n.getActiveBTR();if(null===i)return;let r=e.getArrView(),a=new Array;for(let t=0;t<r.length;++t){let e=r[t];i.checkViewInBTR(e.mViewportTableRec)&&a.push(e)}let o=this.mDocId;for(let e=0;e<a.length;++e){let n=a[e].mViewportTableRec.getViewInfo(),i={id:"updateViewData"===t||e!==a.length-1?e7.updateViewData:e7.lastUpdateView,function:18,data:{docId:o,viewportId:String(a[e].mVPHandle),centerPoint:[n.mCenterPoint.mX,n.mCenterPoint.mY],height:a[e].mFieldHeight,width:a[e].mFieldWidth,viewDirection:Object.values(n.mViewDirection),viewCenter:Object.values(n.mViewCenter),viewHeight:a[e].mFieldHeight,twistAngle:n.mTwistAngle}};this.webSocket.sendMessage(i)}}}updateViewDataHttp(){var t=this;return jR((function*(){if(SF.log("updateViewDataHttp"),null===t.mCurView)return;let e=t.mDocId,n=t.mGsDevice,i=t.mDatabaseService.getDB();if(null===t.mCurView||!n||null===i)return;let r=i.getActiveBTR(),a=n.getArrView(),o=[];a.forEach((t=>{if(null!==r&&r.checkViewInBTR(t.mViewportTableRec)){let e=t.mViewportTableRec.getViewInfo(),n={viewportId:String(t.mVPHandle),center:Object.values(e.mCenterPoint),target:Object.values(t.mTarget),viewDirection:Object.values(e.mViewDirection),upVector:Object.values(t.mUpVector),height:t.mFieldHeight,width:t.mFieldWidth};o.push(n)}}));let s=new QR,l=new QR(t.mCurView.mFieldWidth/2,-t.mCurView.mFieldHeight/2,0);s.mulMatrix(t.mCurView.scsToUcsMatrix()),s.addPosition(l);let c={docId:e,handleId:String(t.mCurLayoutHandle),viewportId:String(t.mCurView.mVPHandle),centerPoint:Object.values(s),height:t.mCurView.mFieldHeight,width:t.mCurView.mFieldWidth,viewDirection:Object.values(t.mCurView.mViewportTableRec.getViewInfo().mViewDirection),viewCenter:Object.values(t.mCurView.mViewportTableRec.getViewInfo().mViewCenter),viewHeight:t.mCurView.mFieldHeight,twistAngle:t.mCurView.mViewportTableRec.getViewInfo().mTwistAngle},h=null;if(t.fcmpMatptr&&!t.mGsManager.isInPaperSpace()){MF.instance().broardcast(_F.FileCompare,{type:"getFcmpRegenData",data:{data:n7.instance().mFcmpParams,viewport:{viewportId:c.viewportId,centerPoint:c.centerPoint,viewDirection:c.viewDirection,viewCenter:c.viewCenter,height:c.height,width:c.width,twistAngle:c.twistAngle,viewHeight:c.viewHeight},handleId:c.handleId}});let t=yield function(){let t=new OF;return new Promise(((e,n)=>{t.addCb(EF.fcmpRegenData,(t=>{e(t)}))}))}();h=null==t?void 0:t.lmfData,MF.instance().broardcast(_F.FileCompare,{type:"setFcmpInfo",data:Object.assign({isToolbarVisiable:!0},t)})}else MF.instance().broardcast(_F.GetFileData,{type:"regenData",data:c}),h=yield function(){let t=new OF;return new Promise(((e,n)=>{t.addCb(EF.regenData,(t=>{e(t)}))}))}();if(h){MF.instance().broardcast(_F.UpdatePage,{type:"loading",data:{isLoading:!0,loadingProgressPreset:{phase:OW.readData}}});let t=BZ(h),e=new B3,n=new b3;if(e.setPrimitiveEvaluator(n),!(yield e.loadLMFBlobData(t)))return;let i=(new sB).getDB();if(i&&i.regenLMFData(e),IJ.mEnableWASMWrapper)if(t instanceof ArrayBuffer)mj.instance().regenLoadData(t);else{let e=mj.instance().mergeArrayBuffer(t);mj.instance().regenLoadData(e)}}else n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.vpSyncErr}),MF.instance().broardcast(_F.UpdatePage,{type:"loading",data:{isLoading:!1}})}))()}regen(t){if(SF.log("regen"),this.isInEditMode()&&this.webSocket&&this.webSocket.connectSuccess&&this.mDocIsOpened){if(null===this.mCurView)return;this.webSocket.sendMessage({id:t||e7.regen,function:21,data:{docId:this.mDocId}})}}setWebSocket(t){if(this.webSocket=t,this.mDocId){XF.instance().getItem("options");let t="";this.webSocket.mOpenDocObj={id:e7.OpenDoc,function:0,data:t?{docId:this.mDocId,dwgVer:t}:{docId:this.mDocId}},this.webSocket.mCreateLayerObj={id:e7.CreateLayer,function:1,data:{docId:this.mDocId,content:{opt:2,add:{entityType:_B.kZcDbLayer,layertablerecord:{symboltablerecord:{object:{xdata:""},name:"Annotation_182588"},frozen:0}}}}},this.webSocket.mCreateTextStyleObj={id:e7.CreateTextStyle,function:1,data:{docId:this.mDocId,content:{opt:2,add:{entityType:_B.kZcDbTextStyle,textstyletablerecord:{symboltablerecord:{name:"Dim_style_182588"},textFont:"SimSun"}}}}}}this.webSocket.dataSubject.subscribe((t=>{if(t instanceof Blob){let e=new FileReader,n=this;e.readAsArrayBuffer(t),e.onload=jR((function*(){let t=this.result;if(n.webSocket)try{(yield n.webSocket.readArrayBuffer(t))?n.checkWebsocketStatus()&&n.handleWebsocketMsg():n.webSocket&&n.webSocket.closeSocket()}catch(t){SF.error("webSocket.readArrayBuffer error")}}))}})),this.connectWebsocket()}handleWebsocketMsg(){if(null==this.webSocket||void 0===this.mMessageService)return;let t=this.webSocket.mReceivedMsg.json;switch(this.mWSMessageSubjects.next(t),t.id){case e7.OpenDoc:0===t.code?this.mDocIsOpened||(SF.logInfo("Open document successfully."),this.mDocIsOpened=!0,this.getLmfFileIdByLayoutHandle(),this.webSocket&&this.webSocket.connectSuccess&&(MF.instance().broardcast(_F.WebsocketStatus,{type:"websocketStatus",data:{isConnected:!0}}),MF.instance().broardcast(_F.History,{history:qF.mLanguagePackage.editModeSuccessfully}),this.mMessageService.success(qF.mLanguagePackage.editModeSuccessfully),this.sendSetOSnapModesMessage())):(this.mDocIsOpened=!1,30002===t.code||433===t.code?this.mMessageService.warning(qF.mLanguagePackage.editModeBusy):this.mMessageService.error(qF.mLanguagePackage.editModeFail),this.webSocket&&this.webSocket.closeSocket());break;case e7.GetGraphicData:0===t.code&&(MF.instance().broardcast(_F.UpdatePage,{type:"loading",data:{isLoading:!1}}),this.mLayoutIsActive||(MF.instance().broardcast(_F.SwitchLayout,{data:{handle:this.mCurLayoutHandle}}),MF.instance().broardcast(_F.LayoutInActive,{data:!0})));break;case e7.SaveDoc:0===t.code?(SF.logInfo("Save successfully."),this.mDuringVersionOper||this.mMessageService.success(qF.mLanguagePackage.editModeTip2)):(this.mMessageService.error(qF.mLanguagePackage.editModeTip4),this.webSocket&&this.webSocket.closeSocket());break;case e7.SaveBeforeDownload:0===t.code?(SF.logInfo("Download successfully."),MF.instance().broardcast(_F.UpdatePage,{type:"downloadFile"})):this.mMessageService.error(qF.mLanguagePackage.editModeTip4);break;case e7.CloseDoc:0===t.code&&(SF.logInfo("Close document successfully."),this.mDocIsOpened=!1,this.mMessageService.info(qF.mLanguagePackage.editModeExit),MF.instance().broardcast(_F.History,{history:qF.mLanguagePackage.editModeExit}));break;case e7.CreateLayer:0!==t.code&&26!==t.code||!t.handleId?(this.mMessageService.error(qF.mLanguagePackage.editModeFail),this.webSocket&&this.webSocket.closeSocket()):(this.mDimensionLayerHandle=String(t.handleId),0===t.code&&(this.addLayer(BigInt(t.handleId)),SF.logInfo("Create layer successfully.")));break;case e7.CreateTextStyle:(0===t.code||26===t.code)&&t.handleId&&(this.mDimensionTextStyleHandle=t.handleId,0===t.code&&SF.logInfo("Create textStyle successfully."),this.mDimensionDimStyleHandle||(this.webSocket.mCreateDimStyleObj={id:e7.CreateDimStyle,function:1,data:{docId:this.mDocId,content:{opt:2,add:{entityType:_B.kZcDbDimStyle,dimstyletablerecord:{symboltablerecord:{name:"Dim_style_182588"},textStyle:String(this.mDimensionTextStyleHandle)}}}}},this.webSocket.sendMessage(this.webSocket.mCreateDimStyleObj)));break;case e7.CreateDimStyle:(0===t.code||26===t.code)&&t.handleId&&(this.mDimensionDimStyleHandle=t.handleId,0===t.code&&SF.logInfo("Create dimStyle successfully."));break;case e7.OSnap:if(null!==this.mCurView){let e,n=new QR,i=new oB,r=new JR;if(r.setEntry([[1,0,0,this.mCurView.mScreenRect.mX],[0,1,0,this.mCurView.mScreenRect.mY],[0,0,1,0],[0,0,0,1]]),r.mul(this.mCurView.worldToDeviceMatrix()),0===t.code){let a=[],o=[];if(t.data.osnapArr.forEach((t=>{let e=JSON.parse(t.point),n=new QR(e[0],e[1],e[2]),i=Number(t.type);0!==i&&(i===NB.center||i===NB.geometricCenter?o.push({point:n,type:i}):a.push({point:n,type:i}))})),0!==a.length){let t=new QR;t.copy(a[0].point),t.mulMatrix(r);let o=new oB(Math.round(t.mX),Math.round(t.mY));n=a[0].point,e=a[0].type,i=o}else if(0!==o.length){let t=new QR;t.copy(o[0].point),t.mulMatrix(r);let a=new oB(Math.round(t.mX),Math.round(t.mY));n=o[0].point,e=o[0].type,i=a}0!==o.length&&o.forEach((t=>{0===this.mSnapPtStorage.filter((e=>e.point.isEqual(t.point)&&e.type===t.type)).length&&(this.mSnapPtStorage.length>=6&&this.mSnapPtStorage.shift(),this.mSnapPtStorage.push({point:t.point,type:t.type,color:"red"}))}))}if(20121===t.code||!e){let t=XF.instance().getItem("osnapModes");if((t.center||t.geometricCenter)&&0!==this.mSnapPtStorage.length){let t=this.mSnapPtStorage.map((t=>{let e=new QR;e.copy(t.point),e.mulMatrix(r);let n=new oB(Math.round(e.mX),Math.round(e.mY));return{point:t.point,point2d:n,type:t.type,distance2d:RV.zcutDistance2d(n,this.mMousePt)}}));t.sort(((t,e)=>t.distance2d-e.distance2d)),t[0].distance2d<20&&(n=t[0].point,i=t[0].point2d,e=t[0].type)}}this.mIsAdsorb=RV.zcutDistance2d(i,this.mMousePt)<10,this.mCurView.clearAllSnap(),this.mDirtyLayer.set(EB.kZcDrDirectShorterm,!0),this.mNeedRepaint=!0,e?(this.mOSnapPt=n,this.mZcUIOProcessor&&(this.mZcUIOProcessor.mCoreUIOContextService.mSnapPoints=[n]),this.mCurView.drawOSnapPt(e,n),this.mIsAdsorb&&(this.mCurCursorPT.set(i.mX,i.mY),this.mCursor.updatePostion(i.mX,i.mY),HZ._instance.doJig()),this.mPreIsAdsorb!==this.mIsAdsorb&&(this.mCurCursorPT.set(i.mX,i.mY),this.mCursor.updatePostion(i.mX,i.mY),this.mCursor.draw()),this.mPreIsAdsorb=this.mIsAdsorb):(this.mOSnapPt=new QR,this.mZcUIOProcessor&&(this.mZcUIOProcessor.mCoreUIOContextService.mSnapPoints=[])),0!==this.mSnapPtStorage.length&&this.mSnapPtStorage.forEach((t=>{t.type===NB.center&&this.mCurView.drawStorageSnapPt(NB.storageCenter,t.point,t.color),t.type===NB.geometricCenter&&this.mCurView.drawStorageSnapPt(NB.storageGeometricCenter,t.point,t.color)}))}break;case e7.setOSnapModes:0===t.code&&(SF.logInfo("Set OSnapModes successfully."),this.mSnapPtStorage=[]);break;case e7.SelectEntity:t.handleId?(this.filterSelectedEntities(BigInt(t.handleId)),this.mEntitySelected=!0,(new OF).pub(EF.SELECTENTITY,t.handleId)):(this.mEntitySelected=!1,this.mEntitySelectMode===AW.Single&&this.sendOpmViewData(),(new OF).pub(EF.SELECTENTITY,""));break;case e7.DeleteEntity:0===t.code&&(SF.logInfo("Delete entity successfully."),this.deleteGsNode());break;case e7.ActiveViewport:0===t.code?(SF.logInfo("Active viewport successfully."),this.mViewportIsActived=!0,this.sendOpmViewData()):this.mMessageService.error(qF.mLanguagePackage.failToActiveViewport);break;case e7.SetCurLayout:0===t.code?(SF.logInfo("Switch layout successfully."),this.clearHighlight(),this.mViewportIsActived=!1,this.iterateIncreasedEntFlags()):this.mMessageService.error(qF.mLanguagePackage.failToSwitchLayout);break;case e7.ChangeLayout:0===t.code?(SF.logInfo("Switch layout successfully."),this.mViewportIsActived=!1,this.clearHighlight(),MF.instance().broardcast(_F.SwitchLayout,{data:{handle:this.mCurLayoutHandle}})):this.mMessageService.error(qF.mLanguagePackage.failToSwitchLayout);break;case e7.MultipleChangeLayout:0===t.code?(SF.logInfo("Switch layout successfully."),this.mViewportIsActived=!1,this.clearHighlight(),this.iterateIncreasedEntFlags(),this.invalidate()):this.mMessageService.error(qF.mLanguagePackage.failToSwitchLayout);break;case e7.SaveEntityParams:if(0===t.code){SF.logInfo("Entity params save successfully.");let e=[];t.handleId?(this.mTempHandleId=BigInt(t.handleId),this.mIncreasedEntHandles.includes(t.handleId)||(this.setIncreasedEntFlag(),this.mIncreasedEntHandles.push(String(t.handleId)),e.push(String(t.handleId)))):t.entityHandles&&t.entityHandles.length>0&&t.entityHandles.forEach((t=>{this.mIncreasedEntHandles.includes(t)||(this.setIncreasedEntFlag(),this.mIncreasedEntHandles.push(String(t)),e.push(String(t)))})),e.length>0&&this.iterateIncreasedEntFlags(e)}else this.mMessageService.error(qF.mLanguagePackage.editModeTip4);break;case e7.SaveTempEntityParams:if(0===t.code){SF.logInfo("Entity params save successfully.");let e=[];t.handleId?this.mIncreasedEntHandles.includes(t.handleId)||(this.setIncreasedEntFlag(),this.mIncreasedEntHandles.push(t.handleId),e.push(t.handleId)):t.entityHandles&&t.entityHandles.length>0&&t.entityHandles.forEach((t=>{this.setIncreasedEntFlag(),this.mIncreasedEntHandles.includes(t)||(this.mIncreasedEntHandles.push(t),e.push(t))})),e.length>0&&this.iterateIncreasedEntFlags(e,"pline");let n=HZ._instance.getCurJig();n&&n.mLineArray&&(SF.log(n.mLineArray.length),n.mLineArray.length>2&&this.deleteTempEntities()),this.mTempHandleId=BigInt(t.handleId)}else this.mMessageService.error(qF.mLanguagePackage.editModeTip4);break;case e7.getDist:{let e=t.data;SF.log(e);let n=[];for(let t in e)n.push(Number(e[t]));n.length>1?oW.misEnd?(n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.totalDistance+n[2]+","+qF.mLanguagePackage.angleXY+n[1]+","+qF.mLanguagePackage.angleWith+n[0]}),n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.xAdd+n[3]+","+qF.mLanguagePackage.yAdd+n[4]+","+qF.mLanguagePackage.zAdd+n[5]})):n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.totalDistance+n[2]}):n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.totalDistance+n[0]});break}case e7.getArea:if(0===t.code){let e=t.data;n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.areaCount+e.area+" , "+qF.mLanguagePackage.areaLength+e.distance}),-1===e.wrongarea&&n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.noSelfIntersecting})}else n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.wrongArea});HZ.clearJig(),(new OF).pub(EF.WAITAREA,t.code);break;case e7.updateViewData:0!==t.code&&n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.vpSyncErr});break;case e7.lastUpdateView:0===t.code?(this.regen(),this.clearHighlight()):n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.vpSyncErr});break;case e7.getIncrementalDataById:SF.logInfo("Get incremental data successfully.");break;case e7.getAngle:{let e=Number(t.angle),n=t.data;if(SF.log(n),e<0||void 0===e||e!=e)if(-1===e){let t=[];for(let e in n)SF.log("坐标"+n[e]),t.push(n[e]);fW.mCenterPoint=new QR(t[0],t[1],t[2]),SF.log("圆心"+fW.mCenterPoint),fW.mAngleNum=2}else-2===e&&(fW.mAngleNum=2);else{let t=Number(n7.instance().getSystemVal("ANGDIR")),n=Number(n7.instance().getSystemVal("ANGBASE")),i=RV.fixAngle((t?n-e:e-n)*XR.ZWGR_PI/180);i=Math.round(180*i/XR.ZWGR_PI),n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.angleResult+i})}(new OF).pub(EF.WAITANGLE,e);break}case e7.regenForZoomE:case e7.regen:this.mCurView&&0===t.code?(this.mCurView.mViewportTableRec.getViewInfo().mbLock&&(this.mViewportIsActived=!1),MF.instance().broardcast(_F.History,{history:qF.mLanguagePackage.regenDone}),this.mCurView.recalVirtualBoundary(),t.id===e7.regenForZoomE&&r4.instance().doZoomOperate(i4.ZoomExtentsSelect)):this.mMessageService.error(qF.mLanguagePackage.regenFail);break;case e7.zoomView:if(0===t.code){let e=t;if(SF.log("接受消息"),null===this.mGsDevice)return;let n=this.mGsDevice.getViewByLockFlag(),i=new X6(new r3);if(n){i.copy(n);let t=i.mViewportTableRec.getViewInfo(),r=new QR(e.minx,e.miny,t.mViewExtends.minPoint().mZ),a=new QR(e.maxx,e.maxy,t.mViewExtends.maxPoint().mZ),o=new NU;o.set(r,a),t.mViewExtends.copy(o);let s=i.getWorldDCSExt(i);this.mGsManager.isInPaperSpace()?(t.mViewCenter.mX=(s.maxPoint().mX+s.minPoint().mX)/2,t.mViewCenter.mY=(s.maxPoint().mY+s.minPoint().mY)/2):(t.mCenterPoint.mX=(s.maxPoint().mX+s.minPoint().mX)/2,t.mCenterPoint.mY=(s.maxPoint().mY+s.minPoint().mY)/2,t.mCenterPoint.mZ=(s.maxPoint().mZ+s.minPoint().mZ)/2);let l=s.maxPoint().mY-s.minPoint().mY,c=s.maxPoint().mX-s.minPoint().mX;if(l>XR.EPSILON6&&l<w6.ZWMAX_RANGE&&c>XR.EPSILON6&&c<w6.ZWMAX_RANGE){let e=i.adjustViewDrawingSize(c,l);t.mViewHeight=e.height,t.mViewWidth=e.width,this.mGsManager.updateViewportMatrix(i,i.mViewportTableRec)}n.isRegenRequiredAfterZoom(t.mViewHeight,t.mCenterPoint)?(n.copy(i),this.updateAllViewData("updateViewData"),this.regen(e7.regenForZoomE),i.mCurZoomFactor=1,MF.instance().broardcast(_F.UpdatePage,{type:"loading",data:{isLoading:!0,loadingProgressPreset:{phase:OW.init}}}),MF.instance().broardcast(_F.UpdatePage,{type:"loading",data:{isLoading:!0,loadingMessage:qF.mLanguagePackage.regening+", "+qF.mLanguagePackage.OpenDwgPhaseGetData+"..."}})):r4.instance().doZoomOperate(i4.ZoomExtentsSelect),this.updateOverallView(n)}}else SF.log("zoom命令失败,采用无编辑权限方法"),r4.instance().doZoomOperate(i4.ZoomExtentsSelect);break;default:if(t.code>0&&t.msg.indexOf("docId")>-1&&this.mDocId===t.msg.split("docId:")[1].split(",")[0].trim())switch(this.mDocIsOpened=!1,t.code){case E5.OpenRepeat:this.webSocket.closeSocket(O5.OpenRepeat);break;case E5.NoResource:this.webSocket.closeSocket(O5.NoResource)}}}saveDoc(t){if(null==this.webSocket)return;let e={id:void 0===t?t=e7.SaveDoc:t,function:2,data:{docId:this.mDocId}};this.webSocket.directSendMessage(e)}sendSetOSnapModesMessage(t){let e=t||XF.instance().getItem("osnapModes");e||(XF.instance().setItem("osnapModes",U3),e=U3);let n=[];Object.keys(e).forEach((t=>{"intersection"===t?e.intersection&&n.push(e.apparentIntersect?Z3.apparentIntersect:Z3.intersection):"apparentIntersect"!==t&&e[t]&&n.push(Z3[t])})),0!==n.length&&this.webSocket&&this.webSocket.connectSuccess&&this.mDocIsOpened&&this.webSocket.sendMessage({id:e7.setOSnapModes,function:22,data:{docId:this.mDocId,osnapMode:n,osnapKey:1}})}getIncreasedLmfData(t,e){0!==this.mIncreasedEntHandles.length&&this.webSocket&&this.webSocket.connectSuccess&&this.mDocIsOpened&&this.webSocket.sendMessage({id:"pline"===e?e7.getTempIncrementalDataById:e7.getIncrementalDataById,function:17,data:{docId:this.mDocId,entityHandles:t||this.mIncreasedEntHandles}})}connectWebsocket(){this.webSocket&&(this.webSocket.connectSuccess?this.mDocIsOpened||this.webSocket.sendMessage(this.webSocket.mOpenDocObj):(MF.instance().broardcast(_F.History,{history:qF.mLanguagePackage.editModeWait}),this.webSocket.messageSubject.subscribe((t=>{let e=JSON.parse(t);if(SF.log("websocket链接状态返回结果:",t),this.webSocket&&SF.log(this.webSocket),"success"===e.type)SF.log("websocket收到链接成功的消息"),this.webSocket&&!this.webSocket.connectSuccess&&(this.webSocket.connectSuccess=!0,this.mDocIsOpened||(SF.log("发送opendoc的请求"),this.webSocket.sendMessage(this.webSocket.mOpenDocObj)));else if("closed"===e.type&&(SF.log("websocket收到断开链接的消息"),this.mDocIsOpened=!1,this.webSocket&&(this.webSocket.mDataQueue=[]),this.mMessageService)){let t=qF.mLanguagePackage.editModeExit;switch(this.webSocket&&this.webSocket.clear(),e.code){case O5.PolicyViolation:if(e.data)switch(JSON.parse(e.data).code){case 400:t=qF.mLanguagePackage.invalidRequest+","+qF.mLanguagePackage.unableToEnterEditMode,this.mMessageService.warning(t,{nzDuration:4500});break;case 401:t=qF.mLanguagePackage.userAuthorizationFailed+","+qF.mLanguagePackage.unableToEnterEditMode,this.mMessageService.warning(t,{nzDuration:4500});break;default:this.mMessageService.warning(t)}break;case O5.NoResource:t=qF.mLanguagePackage.noResourceAvailable+", "+qF.mLanguagePackage.unableToEnterEditMode,this.mMessageService.warning(t,{nzDuration:5e3});break;case O5.OpenRepeat:t=qF.mLanguagePackage.docIsBussy+", "+qF.mLanguagePackage.unableToEnterEditMode,this.mMessageService.warning(t,{nzDuration:5e3});break;default:this.mDuringVersionOper||this.mMessageService.info(t)}MF.instance().broardcast(_F.History,{history:e.data}),MF.instance().broardcast(_F.History,{history:t})}}))))}checkWebsocketStatus(){if(this.webSocket){if(SF.log(this.webSocket.mDataQueue),0===this.webSocket.mDataQueue.length)return!0;let t=this.webSocket.mDataQueue[0],e=t.data,n=this.webSocket.mReceivedMsg.json,i="";if(SF.log(n),n.id===e7.Exception)return!0;if(n.msg){let t=n.msg.split("docId:");t.length>1&&(i=t[1].trim())}if(SF.log(i,e.data.docId),i&&e.data.docId!==i||e.id!==n.id)return SF.log("websocket返回的消息与发送的消息不匹配"),!1;this.webSocket.mDataQueue.splice(0,1);let r=this.webSocket.mDataQueue.length;if(r){let n=0,i=0;for(let t of this.webSocket.mDataQueue){if(t.state===D5.WaitForRespond){i=n,n++;break}t.state===D5.JustSend?this.webSocket.connectSuccess&&this.mDocIsOpened&&(e=t.data,this.webSocket.directSendMessage(e),i=n):t.state===D5.SendLastestOnIdle&&(i=n),n++}0!==i&&(this.webSocket.mDataQueue.splice(0,i),n=1),this.webSocket.connectSuccess&&this.mDocIsOpened&&(t=this.webSocket.mDataQueue[n-1],e=t.data,e=this.handleEntityParams(e),this.webSocket.directSendMessage(e))}return 0===r&&(new OF).pub(EF.waitWsQueueEmpty,!0),!0}return!1}sendOSnapMessage(t){if(this.isInEditMode()&&this.webSocket&&this.webSocket.connectSuccess&&this.mDocIsOpened){if(null===this.mCurView)return;this.mViewportIsActived||this.activeViewport();let e={id:e7.OSnap,function:16,data:{docId:this.mDocId,viewportId:String(this.mCurView.mVPHandle),content:{osnap:{targetWorld3D:[0,0,0,0,0,0],targetWorld2D:[0,0,0,0,0,0],point:[0,0,0],unitPixelHeight:100}}}};this.mTargetBoxDCSSize={cx:20,cy:20};let n=this.getMouseBox(t);n&&(e.data.content.osnap.targetWorld3D=n.box,e.data.content.osnap.targetWorld2D=n.box2,e.data.content.osnap.point=n.point,e.data.content.osnap.unitPixelHeight=n.unitPixelHeight),this.webSocket.sendMessage(e,D5.SendLastestOnIdle),this.mTargetBoxDCSSize={cx:10,cy:10}}}selectEntity(t){if(this.isInEditMode()&&(this.mEntitySelectMode===AW.Single&&this.clearHighlight(),this.webSocket&&this.webSocket.connectSuccess&&this.mDocIsOpened)){if(null===this.mCurView)return;this.mViewportIsActived||this.activeViewport();let e={id:e7.SelectEntity,function:9,data:{docId:this.mDocId,layoutId:String(this.mCurLayoutHandle),viewportId:String(this.mCurView.mVPHandle),content:{entSelection:{box:[0,0,0,0,0,0],box2:[0,0,0,0,0,0],point:[0,0,0],unitPixelHeight:100}}}},n=this.getMouseBox(t);n&&(e.data.content.entSelection=n),this.webSocket.sendMessage(e)}}getMouseBox(t){let e=this.mTargetBoxDCSSize.cx/2,n={box:[0,0,0,0,0,0],box2:[0,0,0,0,0,0],point:[0,0,0],unitPixelHeight:100};if(null===this.mCurView)return n;let i=this.mCurView.mScreenRect,r=this.hoverHLSel(t.offsetX*this.radio-i.mX,t.offsetY*this.radio-i.mY);if(void 0===r)return n;let a=new QR(t.offsetX*this.radio-e,t.offsetY*this.radio-e,0),o=new QR(t.offsetX*this.radio+e,t.offsetY*this.radio+e,0),s=new QR(t.offsetX*this.radio,t.offsetY*this.radio,0),l=new NU;return a=this.mCurView.scsPt2WcsPt(a),o=this.mCurView.scsPt2WcsPt(o),s=this.mCurView.scsPt2WcsPt(s),l.addPoint(a),l.addPoint(o),n.box[0]=r.mMin.mX,n.box[1]=r.mMin.mY,n.box[2]=r.mMin.mZ,n.box[3]=r.mMax.mX,n.box[4]=r.mMax.mY,n.box[5]=r.mMax.mZ,n.box2[0]=l.mMin.mX,n.box2[1]=l.mMin.mY,n.box2[2]=l.mMin.mZ,n.box2[3]=l.mMax.mX,n.box2[4]=l.mMax.mY,n.box2[5]=l.mMax.mZ,n.point[0]=s.mX,n.point[1]=s.mY,n.point[2]=s.mZ,n.unitPixelHeight=this.mCurView.unitPixelHeight,n}hoverHLSel(t,e){if(null===this.mCurView)return;let n=this.mTargetBoxDCSSize,i=n.cx/2,r=n.cy/2;i<=0&&(i=1),r<=0&&(r=1);let a=new QR(t-i,e-r,0),o=new QR(t+i,e+r,0),s=this.mCurView.screenMatrix().inverse(),l=new NU;a.mulMatrix(s),l.addPoint(a),o.mulMatrix(s),l.addPoint(o),new QR(t,e,0);let c=new NU;return this.mCurView.targetBoxPickSelect(l.minPoint(),l.maxPoint(),c,!0)?c:void 0}getMainApp(){return this.mMainApp}deleteEntities(){!this.isInEditMode()||mj.instance().getSelectEntityHandle(this.mCurLayoutHandle).then((t=>{this.mSelectEntityHandle=t,this.mSelectEntityHandle.length>0&&this.webSocket&&this.webSocket.connectSuccess&&this.mDocIsOpened?this.webSocket.sendMessage({id:e7.DeleteEntity,function:1,data:{docId:this.mDocId,content:{opt:0,remove:this.mSelectEntityHandle}}}):this.mMessageService&&this.mMessageService.info(qF.mLanguagePackage.deleteEntity)}))}deleteTempEntities(){if(!this.isInEditMode()||void 0===this.mTempHandleId)return;let t=[],e=this.mDocId;if(t.push(String(this.mTempHandleId)),t.length>0&&this.webSocket&&this.webSocket.connectSuccess&&this.mDocIsOpened){this.webSocket.sendMessage({id:e7.DeleteEntity,function:1,data:{docId:e,content:{opt:0,remove:t}}}),mj.instance().allDeletedHandle.add(this.mTempHandleId);let n=new Array,i=mj.instance().loadedLayoutMap;for(let t of i.keys())mj.instance().isChangingLayout=!0,mj.instance().selectEntity(this.mTempHandleId,String(t)),n.push(mj.instance().deleteOldPlineComplete(String(t)));Promise.all(n).finally((()=>{j5.isLastDeleted(!0)}))}else this.mMessageService&&this.mMessageService.info(qF.mLanguagePackage.deleteEntity)}filterSelectedEntities(t){this.mHighlightHandles.includes(t)||(this.mHighlightHandles.push(t),mj.instance().selectEntity(t,this.mCurLayoutHandle))}addEntity(t){this.mShortermPrimitiveCollector.clearCollector();let e=this.mDatabaseService.getDB();if(null===e||null===this.mAddedEntity)return;let n=e.getActiveBTR();if(null===n)return;let i=e.getZcDbObjectId(this.mAddedEntity);if(this.mAddedEntity.mId=i,this.mAddedEntity.mHandle=BigInt(t),this.mDimensionLayerHandle&&(this.mAddedEntity.mLayerHandle=BigInt(this.mDimensionLayerHandle)),n.appendZcDbEntity(i),this.mCurView)if(this.mCurView.isOverallView()){let t=e.getActiveBTR();t&&(this.mAddedEntity.mOwnerHandle=t.mHandle)}else{let t=e.getModelSpaceTableRecord();t&&(this.mAddedEntity.mOwnerHandle=t.mHandle)}null!==this.mGsDevice&&null!==n.mGsNode&&(this.mGsDevice.generate(n,this.mAddedEntity),this.mDirtyLayer.set(EB.kZcDrLongterm,!0),this.mDirtyLayer.set(EB.kZcDrLongtermHighlight,!0),this.mNeedRepaint=!0)}deleteGsNode(){let t=this.mDatabaseService.getDB();if(null===t||0===mj.instance().deleteList.size)return;let e=[...mj.instance().deleteList];for(let t=0;t<e.length;t++)mj.instance().allDeletedHandle.add(BigInt(e[t]));let n=mj.instance().loadedLayoutMap;for(let t of n.keys())String(t)!==this.mCurLayoutHandle&&(mj.instance().isChangingLayout=!0,mj.instance().selectEntities(e,String(t))),mj.instance().deleteEntity(String(t));let i=t.getAllSpaceTableRecord();0!==i.length&&(null!==this.mGsDevice&&i.length>0&&(this.mGsDevice.deleteGsNode(i,this.mEntitiesToBeDeleted),this.mDirtyLayer.set(EB.kZcDrLongterm,!0)),this.mHighlightHandles=[],this.mDirtyLayer.set(EB.kZcDrLongtermHighlight,!0),this.mHighlightChange=!0,this.mNeedRepaint=!0)}activeViewport(t){if(this.isInEditMode()&&(("switchViewport"!==t||this.mGsManager.isInPaperSpace())&&this.clearHighlight(),this.mCurView&&this.webSocket&&this.webSocket.connectSuccess&&this.mDocIsOpened)){let t={id:e7.ActiveViewport,function:14,data:{docId:this.mDocId,viewportId:String(this.mCurView.mVPHandle)}};this.webSocket.sendMessage(t)}}getLmfFileIdByLayoutHandle(){if(this.webSocket&&this.webSocket.connectSuccess&&this.mDocIsOpened){let t=this.mDocId;if(!tU.forSDK&&this.mMainApp){let e=this.mMainApp.database();this.mLayoutList.forEach((n=>{if(e&&this.mMainApp){let i=e.getLayoutPaperId(BigInt(n.handleId));if(i!=BigInt(0)){let r=this.mMainApp.checkLayoutBTRExist(i),a=new NU;if(a.mMin=e.mMinExt,a.mMax=e.mMaxExt,null!=r&&r.getViewCount()<=0){let e={id:e7.GetGraphicData,function:6,data:{docId:t,handleId:n.handleId,ext:[a.mMin.mX,a.mMin.mY,a.mMin.mZ,a.mMax.mX,a.mMax.mY,a.mMax.mZ]}},i=D5.JustSend;n.handleId===this.mCurLayoutHandle&&!this.mLayoutIsActive&&(i=D5.WaitForRespond,MF.instance().broardcast(_F.UpdatePage,{type:"loading",data:{isLoading:!0,loadingMessage:qF.mLanguagePackage.readingDwg}})),this.webSocket&&this.webSocket.sendMessage(e,i)}}}}))}this.webSocket.sendMessage({id:e7.SetCurLayout,function:11,data:{docId:t,layoutId:this.mCurLayoutHandle}})}}saveEntities(t){this.updateAllViewData("updateViewData"),this.mViewportIsActived||this.activeViewport(),this.webSocket&&this.webSocket.connectSuccess&&this.mDocIsOpened&&this.webSocket.sendMessage(t)}addLayer(t){mj.instance().addLayer(t);let e=this.mDatabaseService.getDB();if(null===e)return;let n=e.getSymbolTable(o3.kZwDbLayerTable);if(SF.log("addLayer: layerTable = ",n),null===n)return;let i=new e3;i.mLayerName="Annotation_182588",i.mLayerHandle=t,i.mRealColor=-1,i.mIndex=n.itemCount();let r=new t3;this.mCurView&&this.mCurView.mVPHandle&&(r.mViewportHandle=this.mCurView.mVPHandle),i.mColor=e3.GetLayerIndex(7),i.mViewportData.set(r.mViewportHandle,r);let a=new n3;a.setLayerInfo(i),a.setSymbolName(i.mLayerName),n.add(a),e.updateLayerColor(),MF.instance().broardcast(_F.UpdatePage,{type:"updateLayerList",data:e})}checkLayerIsClosed(){if(this.mDimensionLayerHandle){let t=this.mDatabaseService.getDB();if(null===t)return;let e=t.getSymbolTable(o3.kZwDbLayerTable);if(null===e)return;let n=e.get(BigInt(this.mDimensionLayerHandle));n&&n.mIsOff&&(n.mIsOff=!1,this.mDirtyLayer.set(EB.kZcDrLongterm,!0),this.setWebGLDrawFlag(c6.reGenData),this.mNeedRepaint=!0,MF.instance().broardcast(_F.UpdatePage,{type:"updateLayerList",data:t}))}}clearHighlight(){this.mHighlightHandles.length>0&&(this.drawManager.resetHighLightViewDataMap(),mj.instance().clearSelect()),this.mHighlightHandles=[],this.mSelectedEntityMap.clear(),this.mDirtyLayer.set(EB.kZcDrLongtermHighlight,!0),this.mHighlightChange=!0,this.mNeedRepaint=!0}popLastHighlight(){if(this.mHighlightHandles){let t=this.mHighlightHandles[this.mHighlightHandles.length-1];this.mHighlightHandles.pop(),this.mDirtyLayer.set(EB.kZcDrLongtermHighlight,!0),this.mHighlightChange=!0,this.mNeedRepaint=!0,mj.instance().cancleSelectEntity(t,this.mCurLayoutHandle)}}setWebGLDrawFlag(t,e,n,i){if(this.mOGL3dRenderer)switch(t){case c6.reGenData:this.mOGL3dRenderer.setReGenData();break;case c6.addNewData:if(void 0===e||void 0===n||void 0===i)return;this.mOGL3dRenderer.setAddNewData(e,n,i);break;case c6.modifyData:if(void 0===e||void 0===n||void 0===i)return;this.mOGL3dRenderer.setModifyData(e,n,i);break;case c6.deleteData:if(void 0===i)return;this.mOGL3dRenderer.setDeleteData(i);break;case c6.noGenData:this.mOGL3dRenderer.setNoGenData()}}setDirChangeStatus(t){this.mIsOpenChangeDir=t}getDirChangeStatus(){return this.mIsOpenChangeDir}setViewDirection(t){this.mViewDirection=t}getViewDirection(){return this.mViewDirection}setIncreasedEntFlag(){for(const t in this.mHasIncreasedEntities)Object.prototype.hasOwnProperty.call(this.mHasIncreasedEntities,t)&&(this.mHasIncreasedEntities[t]=!0);Object.prototype.hasOwnProperty.call(this.mHasIncreasedEntities,this.mCurLayoutHandle)||(this.mHasIncreasedEntities[this.mCurLayoutHandle]=!0)}iterateIncreasedEntFlags(t,e){Object.prototype.hasOwnProperty.call(this.mHasIncreasedEntities,this.mCurLayoutHandle)?this.mHasIncreasedEntities[this.mCurLayoutHandle]&&(this.getIncreasedLmfData(t,e),this.mHasIncreasedEntities[this.mCurLayoutHandle]=!1):(this.mHasIncreasedEntities[this.mCurLayoutHandle]=!1,this.getIncreasedLmfData(t,e))}clear(){if(n7.instance().clear(),this.isDrawManagerInit&&(this.drawManager.delete(),this.drawManager=null,this.matptr=null,this.fcmpMatptr=null,this.isDrawManagerInit=!1,mj.instance().resetWorker()),this.mCanvas){let t=this.mCanvas.getContext("2d");t&&t.clearRect(0,0,this.mCanvas.width,this.mCanvas.height),this.mCanvas.width=0,this.mCanvas.height=0}if(this.mOGL3dRenderer&&this.mOGL3dRenderer.mGlContext){let t=this.mOGL3dRenderer.mGlContext.createBuffer();this.mOGL3dRenderer.mGlContext.bindBuffer(this.mOGL3dRenderer.mGlContext.ARRAY_BUFFER,t);let e=this.mOGL3dRenderer.mGlContext.getParameter(this.mOGL3dRenderer.mGlContext.MAX_VERTEX_ATTRIBS);for(let t=0;t<e;t++)this.mOGL3dRenderer.mGlContext.vertexAttribPointer(t,1,this.mOGL3dRenderer.mGlContext.FLOAT,!1,0,0);this.mOGL3dRenderer.mGlContext.canvas.width=0,this.mOGL3dRenderer.mGlContext.canvas.height=0}for(let t=0;t<this.mCanvasBuffer.length;t++){let e=this.mCanvasBuffer[t].mOffsetCanvas.getContext("2d");e&&e.clearRect(0,0,this.mCanvasBuffer[t].mOffsetCanvas.width,this.mCanvasBuffer[t].mOffsetCanvas.height),this.mCanvasBuffer[t].mOffsetCanvas.width=0,this.mCanvasBuffer[t].mOffsetCanvas.height=0}if(this.mCanvasBuffer=[],this.mCurView){for(let t=0;t<this.mCurView.mFastPanOffscreenCanvs.length;t++){let e=this.mCurView.mFastPanOffscreenCanvs[t];if(!e)continue;let n=e.getContext("2d");n&&n.clearRect(0,0,this.mCurView.mFastPanOffscreenCanvs[t].width,this.mCurView.mFastPanOffscreenCanvs[t].height),this.mCurView.mFastPanOffscreenCanvs[t].width=0,this.mCurView.mFastPanOffscreenCanvs[t].height=0}this.mCurView.mFastPanOffscreenCanvs=[]}this.mCurView=null,this.mGsModelBottom=null,this.mGsModel=null,this.mDocIsOpened=!1,this.mDocEditMode=EW.Readonly,this.mViewportIsActived=!1,this.mDimensionLayerHandle=null,this.mDimensionTextStyleHandle=null,this.mIncreasedEntHandles=[],this.mHasIncreasedEntities={},this.mReminderTimeout&&clearTimeout(this.mReminderTimeout),null!==this.mGsDevice&&(this.mGsDevice.clear(),this.mGsDevice=null)}clearListener(){document.removeEventListener("keydown",this.mKeyDownListener),document.removeEventListener("mouseup",this.mMouseupListener),document.removeEventListener("mousemove",this.mMousemoveListener),document.removeEventListener("mousedown",this.mMousedownListener),document.removeEventListener("mousewheel",this.mMousewheelListener),MF.instance().unsubscribeBroardcast(_F.GsInteraction,this),MF.instance().unsubscribeBroardcast(_F.WebsocketStatus,this),MF.instance().unsubscribeBroardcast(_F.LayoutInActive,this),MF.instance().unsubscribeBroardcast(_F.GetFileData,this)}setReminder(){!this.mOpenReminder&&this.mDocIsOpened&&(void 0!==this.mReminderTimeout&&clearTimeout(this.mReminderTimeout),this.mReminderTimeout=setTimeout((()=>{if(this.mReminderTimeout&&clearTimeout(this.mReminderTimeout),this.webSocket&&this.webSocket.connectSuccess){this.webSocket.closeSocket();let t=n7.instance().mZcadCmdContext.getModalService().confirm({nzTitle:qF.mLanguagePackage.inactiveMsg,nzContent:qF.mLanguagePackage.reminder,nzClosable:!0,nzOkText:qF.mLanguagePackage.continueEdit,nzOnOk:()=>{XF.instance().setItem("reconnectWebsocket","true"),window.location.reload()},nzOnCancel:()=>{}});t.afterOpen.subscribe((()=>{this.mOpenReminder=!0})),t.afterClose.subscribe((()=>{this.mOpenReminder=!1}))}}),9e5))}isInEditMode(){return this.mDocEditMode===EW.Edit}setImageData(t){0===t.size&&(SF.log("未请求到图片"),mj.instance().imageLoadedNumber=0,mj.instance().needWaitImageLoad=!1,this.mNeedRepaint=!0,this.mDirtyLayer.set(1,!0)),t.forEach(((t,e)=>{let n=new Image;if(n.onload=()=>{0!==n.width&&0!==n.height&&(this.mImageMap.set(e,n),this.setDirtyLayer(EB.kZcDrSurface,!0),this.mNeedRepaint=!0,mj.instance().loadImageData(e,n))},t instanceof ArrayBuffer){let e="",i=new Uint8Array(t),r=i.byteLength;for(let t=0;t<r;t++)e+=String.fromCharCode(i[t]);let a=btoa(e);n.src="data:image/jpeg;base64,"+a,mj.instance().imageLoadedNumber++}else{if("string"!=typeof t)return;n.src=t,mj.instance().imageLoadedNumber++}}))}setMarkImage(){if(!this.mShowWatermark||(null===this.mMarkCanvas&&(this.mMarkCanvas=document.createElement("canvas")),null===this.mCanvas))return;this.mMarkCanvas.width=this.mCanvas.width,this.mMarkCanvas.height=this.mCanvas.height,this.mMarkCanvas.style.width=this.mCanvas.width+"px",this.mMarkCanvas.style.height=this.mCanvas.height+"px";let t=this.mMarkCanvas.getContext("2d");if(null===t)return;t.save(),t.translate(this.mMarkCanvas.width/2,this.mMarkCanvas.height/2),t.rotate(this.mWatermarkOptions.tiltAngle*Math.PI/180);let e=Math.max(this.mMarkCanvas.width,this.mMarkCanvas.height)*Math.SQRT2;t.translate(-e/2,-e/2),t.font=Number(this.mWatermarkOptions.fontSize.split("px")[0])*window.devicePixelRatio+"px "+this.mWatermarkOptions.fontName,t.fillStyle=this.mWatermarkOptions.color,t.shadowColor=this.mWatermarkOptions.shadowColor?this.mWatermarkOptions.shadowColor:this.mWatermarkOptions.color,t.shadowOffsetX=.1,t.shadowOffsetY=.1;let n=this.mWatermarkOptions.rowOffset*this.radio,i=this.mWatermarkOptions.colOffset*this.radio,r=Math.ceil(e/n),a=Math.ceil(e/i);for(let e=0;e<r;e++)for(let r=0;r<a;r++)if(-1!==this.mWatermarkOptions.text.indexOf("\n")){let a=this.mWatermarkOptions.text.split("\n"),o=Number(this.mWatermarkOptions.fontSize.split("px")[0])*window.devicePixelRatio;a.forEach(((a,s)=>{null!==t&&t.fillText(a,n*e,i*r+o*s*1.5)}))}else t.fillText(this.mWatermarkOptions.text,n*e,i*r);t.restore()}createRectangleBubble(t,e,n=!0,i){if(!this.mSurfaceData[t]){i=n7.instance().getBubbleColor(i);let r=new LV;r.addPrimitiveRectangleBubble(RB.RECTANGLEBUBBLE,t,e,i),this.mSurfacePrimitiveCollector.addPrimitiveRectangleBubble(RB.RECTANGLEBUBBLE,t,e,i),this.mSurfaceData[t]=r,this.broadcastBubbleData(n,{type:x5.Rectangle,data:{id:t,points:e,color:i}})}}createCircleBubble(t,e,n,i=!0,r){if(!this.mSurfaceData[t]){r=n7.instance().getBubbleColor(r);let a=new LV;a.addPrimitiveCircleBubble(RB.CIRCLEBUBBLE,t,e,n,r),this.mSurfacePrimitiveCollector.addPrimitiveCircleBubble(RB.CIRCLEBUBBLE,t,e,n,r),this.mSurfaceData[t]=a,this.broadcastBubbleData(i,{type:x5.Circle,data:{id:t,center:e,endPt:n,color:r}})}}createPolylineBubble(t,e,n=!0,i){if(!this.mSurfaceData[t]){i=n7.instance().getBubbleColor(i);let r=new LV;r.addPrimitivePolylineBubble(RB.POLYLINEBUBBLE,t,e,i),this.mSurfacePrimitiveCollector.addPrimitivePolylineBubble(RB.POLYLINEBUBBLE,t,e,i),this.mSurfaceData[t]=r,this.broadcastBubbleData(n,{type:x5.Polyline,data:{id:t,points:e,color:i}})}}createPinBubble(t,e,n=!0,i){if(!this.mSurfaceData[t]){i=n7.instance().getBubbleColor(i);let r=new LV;r.addPrimitivePinBubble(RB.PINBUBBLE,t,e,i),this.mSurfacePrimitiveCollector.addPrimitivePinBubble(RB.PINBUBBLE,t,e,i),this.mSurfaceData[t]=r,this.broadcastBubbleData(n,{type:x5.Pin,data:{id:t,pt:e,color:i}})}}createLeaderBubble(t,e,n,i=!0,r){if(!this.mSurfaceData[t]){r=n7.instance().getBubbleColor(r);let a=new LV;a.addPrimitiveLeaderBubble(RB.LEADERBUBBLE,t,e,n,r),this.mSurfacePrimitiveCollector.addPrimitiveLeaderBubble(RB.LEADERBUBBLE,t,e,n,r),this.mSurfaceData[t]=a,this.broadcastBubbleData(i,{type:x5.Leader,data:{id:t,points:e,polygonPts:n,color:r}})}}createImageBubble(t,e,n,i,r,a,o=!0,s){if(!this.mSurfaceData[t]){s=n7.instance().getBubbleColor(s);let l=new LV;l.addPrimitiveImageBubble(RB.IMAGEBUBBLE,t,e,n,i,r,a,s),this.mSurfacePrimitiveCollector.addPrimitiveImageBubble(RB.IMAGEBUBBLE,t,e,n,i,r,a,s),this.mSurfaceData[t]=l,this.broadcastBubbleData(o,{type:x5.Image,data:{id:t,origin:e,uVec:n,vVec:i,imageName:r,filePath:a,color:s}})}}createRevcloudBubble(t,e,n,i=[],r=0,a=!0,o){if(!this.mSurfaceData[t]){Number(r)>0&&(jU.mRadius=r,jU.mMaxRadius=2.5*jU.mRadius);let s=[];RV.zcutDistance(e,n)<jU.mMaxRadius?s=jU.instance().revCloudTooSmall(e,n):a&&i.length>0?s=i:(s=jU.instance().createByRectangle([e,n],"createPrimitive"),0===s.length&&(s=jU.instance().revCloudTooSmall(e,n))),o=n7.instance().getBubbleColor(o);let l=new LV;l.addPrimitiveRevcloudBubble(RB.REVCLOUDBUBBLE,t,e,n,s,jU.mRadius,o),this.mSurfacePrimitiveCollector.addPrimitiveRevcloudBubble(RB.REVCLOUDBUBBLE,t,e,n,s,jU.mRadius,o),this.mSurfaceData[t]=l,this.broadcastBubbleData(a,{type:x5.Revcloud,data:{id:t,originPt:e,diagonalPt:n,radius:jU.mRadius,color:o}})}}broadcastBubbleData(t,e){MF.instance().broardcast(_F.GsInteraction,{type:"draw",data:{type:"DrSurface"}}),t&&(MF.instance().broardcast(_F.GetFileData,{type:"drawCommentBubble",data:e}),n7.instance().mDrawCommentBubbleBySdk||MF.instance().broardcast(_F.CommentPanel,{type:"drawCommentBubble",data:e}))}deleteBubble(t,e){if(this.isPaperspaceSmallVp()&&"notSDK"!==e)MF.instance().broardcast(_F.GetFileData,{type:"drawCommentBubble",data:null});else if(t&&t.length>0){let e=!1;for(let n=0;n<t.length;n++){const i=t[n];this.mSurfaceData[i]&&(e=!0,delete this.mSurfaceData[i])}if(e){this.mSurfacePrimitiveCollector.clearCollector();for(const t in this.mSurfaceData)Object.prototype.hasOwnProperty.call(this.mSurfaceData,t)&&this.mSurfacePrimitiveCollector.mPrimitives.push(...this.mSurfaceData[t].mPrimitives);MF.instance().broardcast(_F.GsInteraction,{type:"draw",data:{type:"DrSurface"}})}}}clearBubble(){this.mSurfacePrimitiveCollector.clearCollector();for(const t in this.mSurfaceData)Object.prototype.hasOwnProperty.call(this.mSurfaceData,t)&&(/^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$/.test(t)?delete this.mSurfaceData[t]:this.mSurfacePrimitiveCollector.mPrimitives.push(...this.mSurfaceData[t].mPrimitives))}bubblesOff(t){if(this.mSurfacePrimitiveCollector.clearCollector(),!t)for(const t in this.mSurfaceData)Object.prototype.hasOwnProperty.call(this.mSurfaceData,t)&&this.mSurfacePrimitiveCollector.mPrimitives.push(...this.mSurfaceData[t].mPrimitives);MF.instance().broardcast(_F.GsInteraction,{type:"draw",data:{type:"DrSurface"}})}setBubblesData(t){this.isPaperspaceSmallVp()?MF.instance().broardcast(_F.GetFileData,{type:"drawCommentBubble",data:null}):("string"==typeof t&&(t=JSON.parse(t)),t&&t.length>0&&(t.forEach((t=>{if(null!=t.type)switch(t.type){case x5.Pin:t.pt=new QR(t.pt[0],t.pt[1],t.pt[2]),this.createPinBubble(t.id,t.pt,!1,t.color);break;case x5.Circle:t.center=new QR(t.center[0],t.center[1],t.center[2]),t.endPt=new QR(t.endPt[0],t.endPt[1],t.endPt[2]),this.createCircleBubble(t.id,t.center,t.endPt,!1,t.color);break;case x5.Rectangle:t.points=[new QR(t.points[0],t.points[1],t.points[2]),new QR(t.points[3],t.points[4],t.points[5])],this.createRectangleBubble(t.id,t.points,!1,t.color);break;case x5.Polyline:let e=[];for(let n=0;n<t.points.length;n+=3)e.push(new QR(t.points[n],t.points[n+1],t.points[n+2]));t.points=e,this.createPolylineBubble(t.id,t.points,!1,t.color)}})),MF.instance().broardcast(_F.GsInteraction,{type:"draw",data:{type:"DrSurface"}})))}locateBubble(t){if(this.isPaperspaceSmallVp())return void MF.instance().broardcast(_F.GetFileData,{type:"drawCommentBubble",data:null});let e=null;for(const n in this.mSurfaceData){let i=new NU;if(Object.prototype.hasOwnProperty.call(this.mSurfaceData,n)){const r=this.mSurfaceData[n];if(r.mPrimitives&&r.mPrimitives.length>0&&(e=r.mPrimitives[0],this.mCurView&&e&&t===e.mId)){let t=new QR;switch(e.type){case RB.PINBUBBLE:let n=new qR(200,200,0);i.comparingSet(e.mPoint.sub2Point(n),e.mPoint.add2Point(n)),t.copy(e.mPoint);break;case RB.CIRCLEBUBBLE:let r=RV.zcutDistance(e.mCenter,e.mEndPt),a=new QR;a.mX=e.mCenter.mX-r,a.mY=e.mCenter.mY-r;let o=new QR;o.mX=e.mCenter.mX+r,o.mY=e.mCenter.mY+r,i.comparingSet(a,o),t.copy(e.mCenter);break;case RB.RECTANGLEBUBBLE:i.comparingSet(e.mPoints[0],e.mPoints[1]),t.copy(RV.zdsMidPt(e.mPoints[0],e.mPoints[1]));break;case RB.POLYLINEBUBBLE:i.comparingSet(e.mPoints[0],e.mPoints[1]);for(let t=2;t<e.mPoints.length;t++)i.addPoint(e.mPoints[t]);t.copy(RV.zdsPolylineMidPt(e.mPoints));break;case RB.LEADERBUBBLE:i.comparingSet(e.mPoints[0],e.mPoints[1]);for(let t=2;t<e.mPoints.length;t++)i.addPoint(e.mPoints[t]);t.copy(RV.zdsPolylineMidPt(e.mPoints));break;case RB.IMAGEBUBBLE:let s=new QR;s.copy(e.mOriginPoint),s.addVector(e.mUvector),s.addVector(e.mVvector),i.comparingSet(e.mOriginPoint,s),t.copy(RV.zdsMidPt(e.mOriginPoint,s));break;case RB.REVCLOUDBUBBLE:if(e.mRevcloudPts.length>=2){i.comparingSet(e.mRevcloudPts[0],e.mRevcloudPts[1]);for(let t=2;t<e.mRevcloudPts.length;t++)i.addPoint(e.mRevcloudPts[t])}t.copy(RV.zdsMidPt(e.mOriginPoint,e.mDiagonalPoint))}r4.instance().doZoomOperate(i4.ZoomExtentsSelect,this.mCurView,i);break}}}}highlightBubble(t){let e=t.ids,n=t.color;if(e&&e.length>0){if(this.isPaperspaceSmallVp()){if(1===e.length&&""===e[0])return;return void MF.instance().broardcast(_F.GetFileData,{type:"drawCommentBubble",data:null})}this.mDrContext.mHighlightBubble={ids:e,color:n},this.setDirtyLayer(EB.kZcDrSurface,!0),this.mNeedRepaint=!0}}cancelBubbleHighlight(t){if(t&&t.length>0&&this.mDrContext.mHighlightBubble.ids.length>0){if(this.isPaperspaceSmallVp())return void MF.instance().broardcast(_F.GetFileData,{type:"drawCommentBubble",data:null});let e=[],n=this.mDrContext.mHighlightBubble.ids;for(let i=0;i<n.length;i++){const r=n[i];t.includes(r)||e.push(r)}this.mDrContext.mHighlightBubble.ids=e,this.setDirtyLayer(EB.kZcDrSurface,!0),this.mNeedRepaint=!0}}isPaperspaceSmallVp(){if(!this.mLayoutIsActive||null===this.mCurView)return!1;let t=this.mCurView.mViewportTableRec.getViewInfo();return!(!this.mGsManager.isInPaperSpace()||t.mIsOverallView)}updateOverallView(t,e){if(this.mCurView&&this.mGsManager.isInPaperSpace()&&(this.mCurView.mViewportTableRec.getViewInfo().mbLock||"zoom"===e)){let e=this.mGsDevice;if(!e)return;let n=e.getArrView();for(let e=0;e<n.length;e++){let i=n[e];if(i.mVPHandle===t.mVPHandle){i.copy(t);break}}}}sendOpmViewData(){let t=this.mCurView;if(!t)return;let e={centerPoint:t.mTarget,height:t.mFieldHeight,width:t.mFieldWidth};MF.instance().broardcast(_F.GetFileData,{type:"opmList",data:{type:"view",data:e}})}selectModeChange(){this.mEntitySelectMode=this.mEntitySelectMode===AW.Muilty?AW.Single:AW.Muilty}clearSign(){this.mSurfacePrimitiveCollector.clearCollector();for(const t in this.mSurfaceData)Object.prototype.hasOwnProperty.call(this.mSurfaceData,t)&&"sign"===t.split("-")[0]&&delete this.mSurfaceData[t];MF.instance().broardcast(_F.GsInteraction,{type:"draw",data:{type:"DrSurface"}})}deleteSign(t){this.mSurfacePrimitiveCollector.clearCollector(),this.mSurfaceData[t]&&(delete this.mSurfaceData[t],MF.instance().broardcast(_F.GsInteraction,{type:"draw",data:{type:"DrSurface"}}))}setSignHistoryData(t){t&&t.length>0&&(t.forEach((t=>{t.position.forEach(((e,n)=>{t.position[n].id="sign-"+n+"-"+e.id;let i=new QR(e.ptLeftTop[0],e.ptLeftTop[1],e.ptLeftTop[2]),r=new QR(e.ptLeftBottom[0],e.ptLeftBottom[1],e.ptLeftBottom[2]),a=new QR(e.ptRightBottom[0],e.ptRightBottom[1],e.ptRightBottom[2]);this.createSignature(e.id,t.signData,i,r,a),this.setImageData((new Map).set(e.id,t.signData))}))})),MF.instance().broardcast(_F.GsInteraction,{type:"draw",data:{type:"DrSurface"}})),MF.instance().broardcast(_F.SignPanel,{type:"addSignRecord",data:{signRecordList:t}})}createSignature(t,e,n,i,r){let a=new QR(n.mX+r.mX-i.mX,n.mY+r.mY-i.mY,n.mZ+r.mZ-i.mZ),o=new qR(n.mX-i.mX,n.mY-i.mY,n.mZ-i.mZ),s=new qR(r.mX-i.mX,r.mY-i.mY,r.mZ-i.mZ);this.mSurfacePrimitiveCollector.addPritimiveRasterImage(RB.RASTERIMAGE,i,s,o,[5],[i,n,a,r,i],!0,t);let l=new LV;l.addPritimiveRasterImage(RB.RASTERIMAGE,i,s,o,[5],[i,n,a,r,i],!0,t),this.mSurfaceData[t]=l,MF.instance().broardcast(_F.GsInteraction,{type:"draw",data:{type:"DrSurface"}})}locateSign(t){let e=null;for(const n in this.mSurfaceData)if(Object.prototype.hasOwnProperty.call(this.mSurfaceData,n)){const i=this.mSurfaceData[n];if(i.mPrimitives&&i.mPrimitives.length>0&&(e=i.mPrimitives[0],this.mCurView&&e&&t===e.mUrlPath)){let t=new QR;e.type===RB.RASTERIMAGE&&(t.mX=e.mOriginPoint.mX+(e.mUvector.mX+e.mVvector.mX)/2,t.mY=e.mOriginPoint.mY+(e.mUvector.mY+e.mVvector.mY)/2);let n=r4.instance();n.mCenterPt.copy(t),n.mCurView=this.mCurView,n.mInputNumber=this.mCurView.mFieldHeight,n.doZoomOperate(i4.ZoomCenterSelect);break}}}setSignRegenLayout(t,e){this.signRegenLayoutMap.set(t,e)}getSignRegenLayout(t){return this.signRegenLayoutMap.get(t)||!1}setDuringVersionOper(t){this.mDuringVersionOper=t}setGlobalKeydownEvent(t){this.mGlobalKeydownEvent=t}saveUcsInfo(t){if(null===t)return;let e=new EJ;e.mUcsOrigin.copy(t.mUcsOriginConstant),e.mUcsXAxisDir.copy(t.mUcsXAxisConstant),e.mUcsYAxisDir.copy(t.mUcsYAxisConstant),e.mViewInfo.copy(t),this.mDbUCSInfo.set(t.mHandle,e)}getUcsInfo(t){let e=null;for(const[n,i]of this.mDbUCSInfo)if(n===t){e=new EJ,e.copy(i);break}return e}updateUcsInfoAfterChangeViewDirection(t,e,n){for(const[i,r]of this.mDbUCSInfo)if(i===t){r.mUcsOrthoViewType=n,r.mUcsOrigin.copy(e.mUcsOriginConstant),r.mUcsXAxisDir.copy(e.mUcsXAxisConstant),r.mUcsYAxisDir.copy(e.mUcsYAxisConstant),r.mViewInfo.copy(e);break}}hasUCSVPOrUCSFollow(t){if(null===this.mCurView||null===this.mCurView.mVPHandle)return;if(this.mCurView.isOverallView())return this.mCurView.createUcsIcon(),void this.setDirtyLayer(EB.kZcDrDirectShorterm,!0);this.mVpHandlesStack.length<2||this.mVpHandlesStack.splice(0,1),this.mVpHandlesStack.push(this.mCurView.mVPHandle);let e=!1,n=this.mDatabaseService.getDB();if(null===n)return;let i=n.getActiveBTR();if(null===i)return;let r=n.getSymbolTable(o3.kZwDbViewTable);if(null===r)return;let a=0,o=[];for(let t=0;t<r.itemCount();t++){let n=r.getAt(t);if(null===n||!i.checkViewInBTR(n))continue;a++;let s=n.getViewInfo();s.mIsOverallView||(o.push(s.mHandle),(!s.mbIsUcsSavedWithViewport||s.mbUcsFollowMode&&!s.mbLock)&&(e=!0))}(!this.mGsManager.isInPaperSpace()&&a>1&&e||this.mGsManager.isInPaperSpace()&&a>2&&e)&&this.applyUCS(o,t),this.mCurView.createUcsIcon(),this.setDirtyLayer(EB.kZcDrDirectShorterm,!0)}applyUCS(t,e){if(t.length<=0||null===this.mGsDevice||null===this.mCurView)return;let n=this.mCurView.mViewportTableRec.getViewInfo();!e&&n.mbIsUcsSavedWithViewport&&n.mbUcsFollowMode&&!n.mbLock&&this.resetViewport(n);for(let e=0;e<t.length;e++){const i=t[e];if(i!==n.mHandle){let t=this.mGsDevice.findViewByHandle(i);if(null===t)continue;let e=t.mViewportTableRec.getViewInfo();e.mbUcsFollowMode&&!e.mbLock&&this.viewFollowUCS(n,e,t),e.mbIsUcsSavedWithViewport||(e.mUcsOriginConstant.copy(n.mUcsOriginConstant),e.mUcsXAxisConstant.copy(n.mUcsXAxisConstant),e.mUcsYAxisConstant.copy(n.mUcsYAxisConstant),e.mUcsZAxisConstant.copy(n.mUcsZAxisConstant))}}this.setDirtyLayer(EB.kZcDrBottomMost,!0),this.setDirtyLayer(EB.kZcDrLongterm,!0)}viewFollowUCS(t,e,n){if(null===this.mCurView)return;let i=t.mUcsXAxisConstant.crossProduct(t.mUcsYAxisConstant);this.mCurView.initVpForWebAssembly(),this.mCurView.mViewportForwebAssembly.calUCSFollowTwistAngle(),e.mTwistAngle=-this.mCurView.mViewportForwebAssembly.m_UCSFollow_TwistAngle,e.mViewDirection.copy(i),this.mGsManager.changeViewDirection(n,!0),r4.instance().doZoomOperate(i4.ZoomExtentsSelect,n)}resetViewport(t){let e=this.getUcsInfo(t.mHandle),n=this.getUcsInfo(this.mVpHandlesStack[0]);if(e){if(n&&n.mViewInfo.mIsOverallView||(t.copy(e.mViewInfo),null===this.mCurView))return;t.mViewDirection=t.mUcsXAxisConstant.crossProduct(t.mUcsYAxisConstant),this.mCurView.initVpForWebAssembly(),this.mCurView.mViewportForwebAssembly.calUCSFollowTwistAngle(),t.mTwistAngle=-this.mCurView.mViewportForwebAssembly.m_UCSFollow_TwistAngle,this.mGsManager.changeViewDirection(this.mCurView,!0),r4.instance().doZoomOperate(i4.ZoomExtentsSelect)}}locateFcmpDiff(t,e){let n=new QR;n.mX=(t.x+e.x)/2,n.mY=(t.y+e.y)/2;let i=e.x-t.x,r=e.y-t.y,a=n.mX-i/2*1.2,o=n.mY-r/2*1.2,s=n.mX+i/2*1.2,l=n.mY+r/2*1.2;if(this.mCurView){let t=new NU;t.comparingSet(new QR(a,o,0),new QR(s,l,0)),r4.instance().doZoomOperate(i4.ZoomExtentsSelect,this.mCurView,t)}}setOrbitActive(t){this.m3DOrbitActive=t}exitCommand(){n7.instance().clear("keepHistory"),h4.mCmd=null,uB.unInitialize()}}let U5=(()=>{class t{constructor(){this.databaseService=new sB,this.mPrimitiveEvaluator=new b3,this.mDatabase=null,this.mAlternateFontMap=new Map,this.mGs=null,t._instance=this}init(){SF.logInfo("MainApp init"),this.mGs=new Z5(this),this.mGs.initGraphics(),setInterval(this.onIdle,10),n7.instance().mGs=this.mGs,this.initwebAssembly(),mj.instance().wasmGLinit()}showBTRModel(t){return null!==this.mDatabase&&(this.mDatabase.setActiveBTR(t),!0)}checkLayoutBTRExist(t){return null==this.mDatabase?null:this.mDatabase.getBTRByHandle(t)}hideControl(t){null==this.mGs||null==this.mGs.mCanvas||(this.mGs.mCanvas.style.visibility=t?"hidden":"visible")}onIdle(){h4.swtichToCmdContext()}appendBytesDrawing(e){var n=this;return jR((function*(){if(null==n.mGs||null==n.mDatabase)return!1;MF.instance().broardcast(_F.UpdatePage,{type:"loading",data:{isLoading:!0,loadingProgressPreset:{phase:OW.readData}}}),SF.time("读取二进制数据时间");let i=new B3;if(i.setPrimitiveEvaluator(n.mPrimitiveEvaluator),t.mTotalUnzipSize>838860800&&i.clear(),!(yield i.loadLMFBlobData(e)))return SF.logError("Load LMF Blob Data Error.",SF.errorStatus.readerError),!1;if(SF.timeEnd("读取二进制数据时间"),SF.time("绘制图纸时间"),n.mDatabase.appendLMFData(i),null===i.mPrimitiveEvaluator)return!1;n.mGs.initLayout(),n.mGs.layoutControl(),n.mDatabase.updateLayerColor(),n.mGs.mIncreasedEntHandles.length>0&&n.mGs.iterateIncreasedEntFlags(),n.mGs.invalidate(),SF.timeEnd("绘制图纸时间");let r=[];return n.mAlternateFontMap.forEach(((t,e)=>{t.forEach("BIGFONTSHX"===e?t=>{r.push(qF.mLanguagePackage.missingBigFont+"["+t+"].")}:t=>{r.push(qF.mLanguagePackage.alternateFont1+"["+t+"]"+qF.mLanguagePackage.alternateFont2+"["+e+"].")})})),MF.instance().broardcast(_F.GetFileData,{type:"alternateFontInfo",data:{data:[...n.mAlternateFontMap.entries()],message:r}}),MF.instance().broardcast(_F.History,{history:r.join("<br>")}),n.mAlternateFontMap.clear(),!0}))()}openingBytesDrawing(t){var e=this;return jR((function*(){e.mDatabase=s3._instance,e.databaseService.setDB(e.mDatabase),MF.instance().broardcast(_F.UpdatePage,{type:"loading",data:{isLoading:!0,loadingProgressPreset:{phase:OW.readData}}}),SF.time("读取二进制数据时间");let n=new B3;if(n.setPrimitiveEvaluator(e.mPrimitiveEvaluator),!(yield n.loadLMFBlobData(t)))return SF.logError("Load LMF Blob Data Error.",SF.errorStatus.readerError),!1;if(SF.timeEnd("读取二进制数据时间"),SF.time("绘制图纸时间"),e.mDatabase.readFromLMFData(n),null===n.mPrimitiveEvaluator||null===e.mGs||null===e.mDatabase)return!1;e.mGs.initLayout(),e.mDatabase.updateLayerColor(),e.mGs.invalidate(),SF.timeEnd("绘制图纸时间"),MF.instance().broardcast(_F.UpdatePage,{type:"updateLayerList",data:e.mDatabase});let i=[];return e.mAlternateFontMap.forEach(((t,e)=>{t.forEach("BIGFONTSHX"===e?t=>{i.push(qF.mLanguagePackage.missingBigFont+"["+t+"].")}:t=>{i.push(qF.mLanguagePackage.alternateFont1+"["+t+"]"+qF.mLanguagePackage.alternateFont2+"["+e+"].")})})),MF.instance().broardcast(_F.GetFileData,{type:"alternateFontInfo",data:{data:[...e.mAlternateFontMap.entries()],message:i}}),MF.instance().broardcast(_F.History,{history:i.join("<br>")}),e.mAlternateFontMap.clear(),!0}))()}handleXrefData(t){var e=this;return jR((function*(){let n=new B3;if(n.setPrimitiveEvaluator(e.getPrimitiveEvaluator()),n.mPrimitiveEvaluator&&(n.mPrimitiveEvaluator.mIsReadingXref=!0),!(yield n.loadLMFBlobData(BZ(t))))return;let i=n.mEntity.getAllEntity(),r=e.mDatabase;if(null===r)return;let a=r.getActiveBTR();if(null===a)return;for(let t=0;t<i.length;++t)try{let e=r.getZcDbObjectId(i[t]);a.appendZcDbEntity(e)}catch(t){SF.log(t);continue}SF.log(i,a,e.getPrimitiveEvaluator());let o=n.mLayout.getCurLayout().handleId,s=n.mLayer.getLayers(),l=new Q6,c=r.getSymbolTable(o3.kZwDbLayerTable);s.forEach((t=>{let e=c.get(t.mLayerHandle);void 0!==e&&(t.mIsOff=e.mIsOff,t.mIsFrozen=e.mIsFrozen,t.mIsLocked=e.mIsLocked),mj.instance().updateLayoutLayerMap(o,t.mLayerHandle,t.mIndex);let n=new n3;n.setLayerInfo(t),n.setSymbolName(t.mLayerName),l.add(n)})),r.removeSymbolTable(o3.kZwDbLayerTable),r.addSymbolTable(o3.kZwDbLayerTable,l),r.updateLayerColor(),MF.instance().broardcast(_F.UpdatePage,{type:"updateLayerList",data:r})}))()}repaint(){null!=this.mGs&&(IJ.mLayerOverlimit&&this.mGs.setWebGLDrawFlag(c6.reGenData),this.mGs.invalidate())}setWebSocket(t){null!=this.mGs&&this.mGs.setWebSocket(t)}setMessageService(t){null!=this.mGs&&(this.mGs.mMessageService=t)}changeLayout(t){null!=this.mGs&&this.mGs.changeLayout(t)}database(){return this.mDatabase}getPrimitiveEvaluator(){return this.mPrimitiveEvaluator}initwebAssembly(){sj.ajax({type:"get",data:"",url:tU.forSDK?vF+"adinit.dat":"/assets/wasm/adinit.dat",dataType:"blob"},(t=>{this.mGs&&(this.mGs.mCharMapper=t)}))}clear(t=!0){null!==this.mDatabase&&(this.mDatabase.clear(),this.mDatabase=null,this.databaseService.setDB(this.mDatabase)),h4.mCmd=null,(new OF).pub(EF.ESCAPE,{enter:null,esc:!0}),null!==this.mGs&&(this.mGs.clear(),this.mGs.setWebGLDrawFlag(c6.reGenData),t&&this.mGs.clearListener()),this.mPrimitiveEvaluator=new b3,this.mAlternateFontMap=new Map}checkAltFontsContain(t,e){let n=this.mAlternateFontMap.get(t);n||(n=[]),n.includes(e)||(n.push(e),this.mAlternateFontMap.set(t,n))}}return t.mTotalUnzipSize=0,t})();var W5,Y5=((W5=Y5||(Y5={}))[W5.pStartBranch=0]="pStartBranch",W5[W5.pNextPtBranch=1]="pNextPtBranch",W5[W5.pNextArcPtBranch=2]="pNextArcPtBranch",Y5);class j5{constructor(){this.exeCmd=function*(){let t=n7.instance().mCmdExecutionStatus;if(!t)return!0;SF.log("PLINE命令开始执行"),j5.resetFlags(),j5.mCurView=jF.instance().getCurView();let e=jF.instance().getInputContent(),n=jF.instance().getKeyboardFlags(),i=!1,r=new PW;for(HZ._instance.setCurJig(r),r.mCurView=j5.mCurView;t=n7.instance().mCmdExecutionStatus,t&&null!==j5.mCurView&&null!==j5.mCurView.mGraphicSystem;){switch(jF.instance().setCommandFlags({enter:null,esc:null}),j5.mBranchStatus){case Y5.pStartBranch:{if(SF.log("指定第一个点"),n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.plineFirstPoint}),yield!1,n7.instance().mkEscapeCaret){i=!0;break}if(e=jF.instance().getInputContent(),n=jF.instance().getKeyboardFlags(),n.esc)break;let t=HZ.acquirePoint();if(t)SF.log("获取第一个点"),j5.mPoints.push(t),r.addVertex(t),XF.instance().setItem("pLineLastPoint",t,"session"),j5.mBranchStatus=Y5.pNextPtBranch,n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.plineFirstPoint+e,label:qF.mLanguagePackage.plineNextPoint});else if(""===e&&n.enter){let t=XF.instance().getItem("pLineLastPoint","session");t||(t=new QR(0,0,0)),r.addVertex(t),j5.mPoints.push(t),XF.instance().setItem("pLineLastPoint",t,"session"),j5.mBranchStatus=Y5.pNextPtBranch,n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.plineFirstPoint+e})}else n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.plineFirstPoint+e}),n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.needAPoint});break}case Y5.pNextPtBranch:{if(SF.log("指定其他的点"),n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.plineNextPoint}),yield!1,n7.instance().mkEscapeCaret){i=!0;break}if(e=jF.instance().getInputContent(),n=jF.instance().getKeyboardFlags(),n.esc)break;let t=HZ.acquirePoint();if(n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.plineNextPoint+e}),n7.instance().mDrawCommentBubble&&t&&t.isEqual(j5.mPoints[j5.mPoints.length-1]))continue;t&&U5._instance.mGs&&U5._instance.mGs.mIncreaseDataLoaded&&j5.mIsLastDeleted?(SF.log("获取其他的点"),j5.mConvexity.push(0),j5.mPoints.push(t),r.addVertex(t),XF.instance().setItem("pLineLastPoint",t,"session"),n7.instance().mDrawCommentBubble||(U5._instance.mGs.mIncreaseDataLoaded=!1,j5.mPoints.length>2&&(j5.mIsLastDeleted=!1),j5.savePline())):"A"===e.trim().toUpperCase()?(j5.mBranchStatus=Y5.pNextArcPtBranch,r.mLineType="arc",n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.areaArcPt1})):""===e&&n.enter||n7.instance().isEndMobileContinuousBubbleCmd()?(HZ.clearJig(),i=!0):n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.plinePointOrKey});break}case Y5.pNextArcPtBranch:{if(SF.log("指定圆弧的点"),n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.areaArcPt2}),yield!1,n7.instance().mkEscapeCaret){i=!0;break}if(e=jF.instance().getInputContent(),n=jF.instance().getKeyboardFlags(),n.esc)break;let t=HZ.acquirePoint();if(n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.areaArcPt2+e}),t){j5.mPoints.push(t),n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.areaArcPt1});let e=Math.tan(r.addArc(t)/4);j5.mConvexity.push(e),n7.instance().mDrawCommentBubble||j5.savePline()}else"L"===e.trim().toUpperCase()?(r.mLineType="line",j5.mBranchStatus=Y5.pNextPtBranch):""===e&&n.enter?(HZ.clearJig(),i=!0):n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.plinePointOrKey});break}}if(i)break}let a=n7.instance().mGs;return!n7.instance().mkEscapeCaret&&null!==a&&n7.instance().mDrawCommentBubble&&a.createPolylineBubble(cF(),j5.mPoints),j5.mPoints=[],j5.mConvexity=[],j5.mBranchStatus=Y5.pStartBranch,n7.instance().isEndMobileContinuousBubbleCmd()&&n7.instance().resetMobileContinuousBubbleCmdEndFlag(),SF.log("PLINE命令执行结束"),!0},this.mExeCmd=this.exeCmd()}execute(){return!!this.mExeCmd.next().done}cmdString(){return"pline"}static savePline(){if(j5.mPoints.length<=1)return;let t=HZ._instance.getCurJig();if(t&&(t.mEndJig=!0),null!==j5.mCurView&&null!==j5.mCurView.mGraphicSystem){let t=[];for(let e=0;e<j5.mPoints.length;e++){let n=j5.mPoints[e],i=new QR;i.copy(n),j5.mCurView.unitPixelHeight<3&&(i.mX=Number(i.mX.toFixed(5)),i.mY=Number(i.mY.toFixed(5)),i.mZ=Number(i.mZ.toFixed(5))),t.push(i.mX,i.mY,i.mZ)}SF.log("pline:",j5.mPoints);let e={id:e7.SaveTempEntityParams,function:1,data:{docId:j5.mCurView.mGraphicSystem.mDocId,content:{opt:2,add:{entityType:102,polyline:{curve:{entity:{color:yB.kByLayer,layer:String(j5.mCurView.mGraphicSystem.mDimensionLayerHandle),transparency:90,lineweight:pB.kLnWtByLayer}},points:t,convexity:j5.mConvexity,isClosed:0}}}}};j5.mCurView.mGraphicSystem.saveEntities(e)}}static resetFlags(){jF.instance().setPointFlag(!1)}resetCmd(){this.mExeCmd=this.exeCmd(),j5.mIsLastDeleted=!0}static isLastDeleted(t){j5.mIsLastDeleted=t}}j5.mConvexity=[],j5.mBranchStatus=Y5.pStartBranch,j5.mPoints=new Array,j5.mCurView=null,j5.mIsLastDeleted=!0;class X5{constructor(){this.exeCmd=function(){return Nk(this,arguments,(function*(){if(X5.resetFlags(),!n7.instance().mCmdExecutionStatus)return yield Vk(!0);if(SF.log("Text命令开始执行"),X5.mCurView=n7.instance().getCurView(),null===X5.mCurView||null===X5.mCurView.mDevice)return yield Vk(!0);let t=XF.instance().getItem("textHeight","session");t?(X5.textHeight=Number(t),t=Number(Number(t).toFixed(4))):t=X5.textHeight;let e=qF.mLanguagePackage.textCmd1+"<"+t+">:";const n=(i=jR((function*(){n7.instance().mZcBroadcast.broardcast(_F.History,{label:e,history:""});let t=yield IF();return!1!==t&&(""===t.trim()?(n7.instance().mZcBroadcast.broardcast(_F.History,{history:e+X5.textHeight}),!0):(t=Number(t),!isNaN(t)&&t>0?t>n7.instance().mMaxTextHeight?(n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.textCmd1+": "+t}),n7.instance().mZcBroadcast.broardcast(_F.History,{history:""+qF.mLanguagePackage.textHeightExceededLimit+n7.instance().mMaxTextHeight.toFixed(4)}),yield n()):(X5.textHeight=t,n7.instance().mZcBroadcast.broardcast(_F.History,{history:e+X5.textHeight}),XF.instance().setItem("textHeight",X5.textHeight,"session"),!0):(n7.instance().mZcBroadcast.broardcast(_F.History,{history:""+e+qF.mLanguagePackage.revCloudError}),yield n())))})),function(){return i.apply(this,arguments)});var i;if(!(yield Vk(n())))return yield Vk(!1);for(;;){n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.textCmd2+":",history:""});let t=yield Vk(AF());if(!t)return yield Vk(!1);t.point&&(X5.point=t.point,n7.instance().mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.textCmd2+":"}),n7.instance().mModalOpened=!0,yield Vk(BF()),n7.instance().mModalOpened=!1)}return yield Vk(!0)}))},this.mExeCmd=this.exeCmd()}execute(){var t=this;return jR((function*(){let e=yield t.mExeCmd.next();return!(!e.done&&!e.value)}))()}cmdString(){return"text"}resetCmd(){this.mExeCmd=this.exeCmd()}static resetFlags(){jF.instance().setPointFlag(!1),jF.instance().clearInputContent(),jF.instance().setCommandFlags({enter:null,esc:null})}static fillText(){if(!n7.instance().mCmdExecutionStatus||null===X5.mCurView||null===X5.mCurView.mDevice)return!1;let t={textPt:X5.point,textDir:new qR(1,0,0),textVerDir:new qR(0,1,0),boundBox:{max:[-1,-1],min:[0,0]},textHeight:X5.textHeight,textWidth:0,xScale:1,obliquingAngle:0,content:X5.textContent,textNumber:11,flags:[],textStyle:{fontSize:2.5,fontFamily:"SimSun",fontHeight:1483,fontAbove:752,fontAverageWidth:616,fontAscent:1188,fontWeight:400,fontItalic:0},trackingPercent:1,charset:134,renderMode:3,raw:0,underline:0,backward:0,upsidedown:0,vertical:0,overlined:0,strikethrough:0};return X5.saveText(t),!0}static setInputText(t){t&&t.trim()&&(X5.textContent=t.trim(),X5.fillText())}static saveText(t){if(null!==X5.mCurView&&null!==X5.mCurView.mGraphicSystem){let e={id:e7.SaveEntityParams,function:1,data:{docId:X5.mCurView.mGraphicSystem.mDocId,content:{opt:2,add:{entityType:_B.kZcDbText,text:{entity:{color:yB.kByLayer,layer:String(X5.mCurView.mGraphicSystem.mDimensionLayerHandle),transparency:90,lineweight:pB.kLnWtByLayer},textContent:t.content,style:String(X5.mCurView.mGraphicSystem.mDimensionTextStyleHandle),height:Number(t.textHeight),rotation:0,location:[t.textPt.mX,t.textPt.mY,t.textPt.mZ],isInversed:0,isReversed:0}}}}};X5.mCurView.mGraphicSystem.saveEntities(e)}}}X5.textHeight=2.5,X5.textContent="",X5.point=new QR,X5.mCurView=null,new $F;class q5{constructor(){this.exeCmd=function(){return Nk(this,arguments,(function*(){return n7.instance().mCmdExecutionStatus?(SF.log("ucsman命令开始执行"),n7.instance().mModalOpened=!0,yield Vk(HF()),n7.instance().mModalOpened=!1,SF.log("ucsman命令执行结束"),yield Vk(!0)):yield Vk(!0)}))},this.mExeCmd=this.exeCmd()}execute(){var t=this;return jR((function*(){let e=yield t.mExeCmd.next();return!(!e.done&&!e.value)}))()}cmdString(){return"ucsman"}resetCmd(){this.mExeCmd=this.exeCmd()}}let $5=(()=>{class t{constructor(){this.exeCmd=function*(){const e=r4.instance();let n=n7.instance().mCmdExecutionStatus;if(!n)return!0;SF.log("Zoom命令开始执行"),n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.zoomTip3+": ",history:""});let i=n7.instance().mGs;if(null===i)return!0;let r=i.mGsDevice;if(null===r)return!0;t.mCurView=r.getViewByLockFlag();let a=n7.instance().mCommandBranch.mainBranch;for(void 0===a&&(yield!1);;){n=n7.instance().mCmdExecutionStatus;let i=a||jF.instance().getInputContent(),r=i.toUpperCase();if(!n)break;if("A"===r||"_A"===r){e.doZoomOperate(i4.ZoomAllSelect),n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.command+":",history:qF.mLanguagePackage.zoomTip3+": "+i});break}if("C"===r||"_C"===r){n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.zoomTip5+":",history:qF.mLanguagePackage.zoomTip3+": "+i}),yield!1;let r=jF.instance().getKeyboardFlags();if(r.esc)break;for(;n=n7.instance().mCmdExecutionStatus,n;){let n=jF.instance().getPointFlag();i=jF.instance().getInputContent();let a=HZ.acquirePoint();if(t.mHasInputCenterPt||!a){""===i||isNaN(i)?n&&a&&(a.isEqual(e.mCenterPt)||(e.mSecondPickPt.copy(a),e.doZoomOperate(i4.ZoomCenterSelect))):0!==Number(i)&&(e.mInputNumber=Number(i),e.doZoomOperate(i4.ZoomCenterSelect)),e.mInputNumber=0,n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.command+":",history:qF.mLanguagePackage.zoomTip7+": "+i});break}{e.mCenterPt.copy(a);let o=1;if(!isNaN(i)||n){n&&(i=""),""!==i&&(o=Number(i)),t.mHasInputCenterPt=!0;let e=jF.instance().getCurView();if(null===e)break;n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.zoomTip7+"<"+e.mFieldHeight.toFixed(4)+">:",history:qF.mLanguagePackage.zoomTip5+": "+i}),yield!1}else n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.zoomTip5+":",history:qF.mLanguagePackage.zoomTip5+": "+i}),n7.instance().mZcBroadcast.broardcast(_F.History,{label:"",history:qF.mLanguagePackage.zoomTip6+"!"}),yield!1;if(r=jF.instance().getKeyboardFlags(),r.esc)break}}break}if("E"===r||"_E"===r){let n=n7.instance().mGs;n&&n.isInEditMode()?t.saveZoom():e.doZoomOperate(i4.ZoomExtentsSelect),n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.command+":",history:qF.mLanguagePackage.zoomTip3+": "+i});break}if("2X"===r||".5X"===r){let t=i.split("x")[0];e.mInputNumber=Number(t),e.doZoomOperate(i4.ZoomInOrOut),n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.command+":",history:qF.mLanguagePackage.zoomTip3+": "+i});break}n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.zoomTip3+": ",history:qF.mLanguagePackage.zoomTip3+": "+i}),n7.instance().mZcBroadcast.broardcast(_F.History,{label:"",history:""+qF.mLanguagePackage.zoomTip11}),yield!1}return t.mHasInputCenterPt=!1,n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.command+":",history:""}),SF.log("Zoom命令执行结束"),!0},this.mExeCmd=this.exeCmd()}execute(){return!!this.mExeCmd.next().done}cmdString(){return"zoom"}static saveZoom(){if(null!==t.mCurView&&null!==t.mCurView.mGraphicSystem){let e=t.mCurView.mGraphicSystem,n=e.mDocId,i={id:e7.zoomView,function:25,data:{docId:n,content:{opt:6,zoom:{zoomType:2}}}},r={id:e7.ActiveViewport,function:14,data:{docId:n,viewportId:String(t.mCurView.mVPHandle)}};e.webSocket&&e.webSocket.connectSuccess&&e.mDocIsOpened&&(e.webSocket.sendMessage(r),e.webSocket.sendMessage(i))}}resetCmd(){this.mExeCmd=this.exeCmd()}}return t.mHasInputCenterPt=!1,t.mCurView=null,t})();class K5{constructor(){this.exeCmd=function*(){return n7.instance().mCmdExecutionStatus&&(SF.log("Regen命令开始执行"),MF.instance().broardcast(_F.GetFileData,{type:"regen"}),SF.log("Regen命令执行结束")),!0},this.mExeCmd=this.exeCmd()}execute(){return!!this.mExeCmd.next().done}cmdString(){return"regen"}resetCmd(){this.mExeCmd=this.exeCmd()}}class J5{constructor(){this.exeCmd=function(){return Nk(this,arguments,(function*(){let t=n7.instance(),e=t.mGs;if(!n7.instance().mCmdExecutionStatus||null===e)return yield Vk(!0);SF.log("开始设置系统变量");let n=qF.mLanguagePackage.inputSystemVal;n=n.replace("${}",t.mCurSystemVar),t.mZcBroadcast.broardcast(_F.History,{label:n+"<"+t.getSystemVal()+">: "});let i=[];for(;;){let e=yield Vk(AF()),r=jF.instance().getKeyboardFlags();if(!e.point&&!e.str&&r.enter){t.mZcBroadcast.broardcast(_F.History,{history:n+"<"+t.getSystemVal()+">: ",label:qF.mLanguagePackage.command+":"});break}if(!e)break;if(void 0===e.point){if("ANGDIR"===t.mCurSystemVar&&0!==Number(e.str)&&1!==Number(e.str)){t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.angleDirTip});continue}if(isNaN(Number(e.str))){t.mZcBroadcast.broardcast(_F.History,{history:qF.mLanguagePackage.systemValErrorTip});continue}t.mZcBroadcast.broardcast(_F.History,{history:n+"<"+t.getSystemVal()+">: "+Number(e.str).toFixed(4),label:qF.mLanguagePackage.command+":"}),t.setSystemVal(Number(e.str));break}i.length>0&&(yield yield Vk(!1))}return SF.log("系统变量设置结束"),yield Vk(!0)}))},this.mExeCmd=this.exeCmd()}execute(){var t=this;return jR((function*(){let e=yield t.mExeCmd.next();return!(!e.done&&!e.value)}))()}cmdString(){return"systemVar"}resetCmd(){this.mExeCmd=this.exeCmd()}}class Q5{constructor(){this.exeCmd=function(){return Nk(this,arguments,(function*(){for(;;){SF.log("Fcmp命令开始执行"),MF.instance().broardcast(_F.FileCompare,{type:"enterFcmp"}),SF.log("Fcmp命令执行结束");break}}))},this.mExeCmd=this.exeCmd()}execute(){var t=this;return jR((function*(){let e=yield t.mExeCmd.next();return!(!e.done&&!e.value)}))()}cmdString(){return"fcmp"}resetCmd(){this.mExeCmd=this.exeCmd()}}Q5.mZcBroadcast=MF.instance();var t7,e7=((t7=e7||(e7={}))[t7.OpenDoc=0]="OpenDoc",t7[t7.SaveDoc=1]="SaveDoc",t7[t7.SaveBeforeDownload=2]="SaveBeforeDownload",t7[t7.CloseDoc=3]="CloseDoc",t7[t7.CreateLayer=4]="CreateLayer",t7[t7.UpdateLayer=5]="UpdateLayer",t7[t7.CreateTextStyle=6]="CreateTextStyle",t7[t7.SelectEntity=7]="SelectEntity",t7[t7.DeleteEntity=8]="DeleteEntity",t7[t7.ActiveViewport=9]="ActiveViewport",t7[t7.GetGraphicData=10]="GetGraphicData",t7[t7.SetCurLayout=11]="SetCurLayout",t7[t7.ChangeLayout=12]="ChangeLayout",t7[t7.MultipleChangeLayout=13]="MultipleChangeLayout",t7[t7.SaveEntityParams=14]="SaveEntityParams",t7[t7.getIncrementalDataById=15]="getIncrementalDataById",t7[t7.SaveTempEntityParams=16]="SaveTempEntityParams",t7[t7.getTempIncrementalDataById=17]="getTempIncrementalDataById",t7[t7.getDist=18]="getDist",t7[t7.updateViewData=19]="updateViewData",t7[t7.lastUpdateView=20]="lastUpdateView",t7[t7.regen=21]="regen",t7[t7.regenForZoomE=22]="regenForZoomE",t7[t7.getArea=23]="getArea",t7[t7.getAngle=24]="getAngle",t7[t7.OSnap=25]="OSnap",t7[t7.setOSnapModes=26]="setOSnapModes",t7[t7.zoomView=27]="zoomView",t7[t7.CreateDimStyle=28]="CreateDimStyle",t7[t7.Exception=99999]="Exception",e7);class n7{constructor(){this.mCommandRegistry=new Map,this.mAllCommandRegistry=new Map,this.mCmdNameCollection={},this.mEditableCmd=[],this.mCmdHistoryList=[],this.mCommandBranch={mainBranch:void 0,subBranch:void 0},this.mExecuteCmdEntity=null,this.mCmdExecutionStatus=!1,this.mTriggerByClickButton=!1,this.mLastExecuteCmd="",this.mNextExecuteCmd="",this.mInterruptCmdExe=!1,this.mExecutingNextCmd=!1,this.mExecutingSelectEntityCmd=!1,this.mAutoExecuteCmd=!1,this.mkEscapeCaret=!1,this.mZcBroadcast=MF.instance(),this.mZcadCmdContext=$F.instance(),this.mDatabaseService=new sB,this.mExecuteEditableCmd=!1,this.mModalOpened=!1,this.mMaxTextHeight=0,this.mDrawCommentBubble=!1,this.mBubbleDefaultColor={str:"rgba(255,0,0,1)",num:4294901760},this.mBubbleColor=this.mBubbleDefaultColor,this.mDrawCommentBubbleBySdk=!1,this.mHighlightColorForBubble="rgba(255,0,0,1)",this.mBubbleHighlightTime=3e3,this.mEditCommand=["DIST","AREA","MEASUREGEOM","TEXT","REVCLOUD","LEADER","MLEADER","IMAGE","PLINE","RECTANGLE","CIRCLE","ARC"],this.mMeasureCommand=["DIST","AREA","MEASUREGEOM"],this.mImagelist=[],this.mIsEndMobileContinuousBubbleCmd=!1,this.mSystemVarNameList=["ANGBASE","ANGDIR"],this.mSystemVarList={},this.mCurSystemVar="",this.mIsInitFcmp=!1,this.mFcmpColors=[[1,0,255,0,255],[1,255,0,0,255],[1,130,130,130,255],[1,255,255,0,255],2],this.mFcmpParams={fcmpRcShape:0,fcmpRcMargin:5,fcmpHatch:1,fcmpText:1},this.mAllCommandRegistry.set("DIST",oW),this.mAllCommandRegistry.set("AREA",WZ),this.mAllCommandRegistry.set("MEASUREGEOM",fW),this.mAllCommandRegistry.set("TEXT",X5),this.mAllCommandRegistry.set("REVCLOUD",ZU),this.mAllCommandRegistry.set("LEADER",uW),this.mAllCommandRegistry.set("MLEADER",CW),this.mAllCommandRegistry.set("IMAGE",$Z),this.mAllCommandRegistry.set("PLINE",j5),this.mAllCommandRegistry.set("RECTANGLE",q3),this.mAllCommandRegistry.set("CIRCLE",nW),this.mAllCommandRegistry.set("ARC",KU),this.mAllCommandRegistry.set("PLOT",RU),this.mAllCommandRegistry.set("ABOUT",FU),this.mAllCommandRegistry.set("OPTIONS",kW),this.mAllCommandRegistry.set("GRID",sW),this.mAllCommandRegistry.set("PAN",SW),this.mAllCommandRegistry.set("ZOOM",$5),this.mAllCommandRegistry.set("HELP",lW),this.mAllCommandRegistry.set("DEBUG",YZ),this.mAllCommandRegistry.set("VIEW",a4),this.mAllCommandRegistry.set("BUBBLE",JU),this.mAllCommandRegistry.set("UCSMAN",q5),this.mAllCommandRegistry.set("systemVar",J5),this.mAllCommandRegistry.set("3DORBIT",uB),this.mAllCommandRegistry.set("FCMP",Q5),this.mAllCommandRegistry.set("REGEN",K5)}static instance(){return n7._instance}registerCmdByPermission(t){let e=rB.instance().mFeatureId;switch(t){case"400":if(149!==e&&166!==e&&167!==e&&177!==e)return;this.registerCommand(oW),this.registerCommand(WZ),this.registerCommand(fW);break;case"500":if(149!==e&&167!==e&&177!==e)return;this.registerCommand(X5);break;case"501":if(149!==e&&167!==e&&177!==e)return;this.registerCommand(ZU);break;case"502":if(149!==e&&167!==e&&177!==e)return;this.registerCommand(uW);break;case"503":if(149!==e&&167!==e&&177!==e)return;this.registerCommand(CW);break;case"504":if(149!==e&&167!==e&&177!==e)return;this.registerCommand($Z);break;case"505":if(149!==e&&167!==e&&177!==e)return;this.registerCommand(j5);break;case"506":if(149!==e&&167!==e&&177!==e)return;this.registerCommand(q3);break;case"507":if(149!==e&&167!==e&&177!==e)return;this.registerCommand(nW);break;case"508":if(149!==e&&167!==e&&177!==e)return;this.registerCommand(KU);break;case"600":case"601":case"602":this.registerCommand(RU)}}updateCommand(){this.registerCommand(FU),this.registerCommand(kW),this.registerCommand(sW),this.registerCommand(SW),this.registerCommand($5),this.registerCommand(lW),this.registerCommand(YZ),this.registerCommand(a4),this.registerCommand(JU),this.registerCommand(q5),this.registerCommand(J5),this.registerCommand(uB),this.registerCommand(Q5),this.registerCommand(K5)}registerCommand(t,e=null){try{let n=new t,i=n.cmdString();i=i.toUpperCase();let r=KF.command;if("-VIEW"!==i&&!r[i])return;-1!==this.mEditCommand.indexOf(i)&&-1===this.mEditableCmd.indexOf(i)&&this.mEditableCmd.push(i),this.mCommandRegistry.set(i,n),this.mCmdNameCollection[i]||(this.mCmdNameCollection[i]=e||i)}catch(t){return void SF.error(t)}}setUserCommand(t,e){let n=eB.command;if(e){if(!n[t]||this.mCommandRegistry.get(t))return;{let e;e=this.mSystemVarNameList.includes(t)?new J5:this.mAllCommandRegistry.get(t),e&&this.registerCommand(e)}}else{if(!n[t]||!this.mCommandRegistry.get(t))return;{this.mCommandRegistry.delete(t);let e=this.mEditableCmd.indexOf(t);e>=0&&(this.mEditableCmd.splice(e,1),delete this.mCmdNameCollection[t])}}}setExecuteCmd(t){if(this.mDrawCommentBubble)return MF.instance().broardcast(_F.History,{history:qF.mLanguagePackage.commandBusy}),!1;const e=this.cmdString(t);if(""!==e){let t;return this.clearCanvas(),this.mCmdHistoryList.push(e),t=this.mSystemVarNameList.includes(e)?new J5:this.mCommandRegistry.get(e),this.mExecuteCmdEntity=t,this.mCmdExecutionStatus=!0,MF.instance().broardcast(_F.History,{label:"",history:qF.mLanguagePackage.command+":"+e}),!0}return!1}setExecuteCmdByClickButton(t,e,n){let i=document.getElementById("inputCommand");i&&(i.value=""),this.mTriggerByClickButton=!0;const r=this.mDrawCommentBubble?t.toUpperCase():this.getCmdByClickButton(t);if(this.mCommandBranch={mainBranch:e,subBranch:n},this.interruptCommand(r),!this.mDrawCommentBubble&&this.checkAvailableStatus(r),this.mInterruptCmdExe)return void(this.mNextExecuteCmd=r);this.clearCanvas(),this.mCmdHistoryList.push(r);const a=this.mCommandRegistry.get(r);this.mExecuteCmdEntity=a,this.mCmdExecutionStatus=!0,MF.instance().broardcast(_F.History,{label:"",history:qF.mLanguagePackage.command+":’_"+r.toLocaleLowerCase()})}getCmdByClickButton(t){let e="";if(t.indexOf("’_")>-1){let n=t.split("’_");2===n.length&&(e=this.cmdString(n[1].toUpperCase()))}else e=t.toUpperCase();for(let t=0;t<this.mEditableCmd.length;t++)if(this.mEditableCmd[t].indexOf(e)>-1){this.mExecuteEditableCmd=!0;break}return e}cmdString(t){const e=Object.keys(this.mCmdNameCollection);let n="",i=!1;for(let r=0;r<e.length;r++){const a=e[r];if(t.toUpperCase()===a.toUpperCase()){n=a,i=!0;break}}if(!i){const r=Object.values(this.mCmdNameCollection);for(let a=0;a<r.length;a++){const o=r[a];if(t.toUpperCase()===o.toUpperCase()){n=e[a],i=!0;break}}}for(let e=0;e<this.mSystemVarNameList.length;e++){const i=this.mSystemVarNameList[e];if(t.toUpperCase()===i.toUpperCase()){n=i,this.mCurSystemVar=i;break}}if(!this.mDrawCommentBubble&&!this.checkAvailableStatus(n))return"";if(this.mDrawCommentBubble){if(null===this.mGs)return"";if(this.mGs.isPaperspaceSmallVp()&&(this.mEditableCmd.includes(n)||"BUBBLE"===n))return MF.instance().broardcast(_F.GetFileData,{type:"drawCommentBubble",data:null}),""}return n=this.filterCommand(n),this.mLastExecuteCmd=n,n}filterCommand(t){return this.mGs&&!this.mGs.mLayoutIsActive&&"HELP"!==t&&"ABOUT"!==t&&"OPTIONS"!==t?"":t}interruptCommand(t){this.mInterruptCmdExe=!(!this.mCmdExecutionStatus||0===this.mCmdHistoryList.length)}resetExecuteCmd(){MF.instance().broardcast(_F.GsInteraction,{type:"drawCursor",data:{type:"normal"}}),this.mCmdExecutionStatus&&this.mExecuteEditableCmd&&!this.mDrawCommentBubble&&HZ._instance.saveEntityParams(),n7.instance().mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.command+":"}),jF.instance().setCommandFlags({enter:null,esc:null});let t=document.getElementById("inputCommand");t&&(t.value=""),null!==this.mExecuteCmdEntity&&this.mExecuteCmdEntity.resetCmd(),this.mCmdExecutionStatus=!1,""===this.mNextExecuteCmd?(this.mExecutingNextCmd=!1,this.mTriggerByClickButton=!1,this.mExecuteCmdEntity=null,this.mCommandBranch={mainBranch:void 0,subBranch:void 0},this.mExecuteEditableCmd=!1,this.mDrawCommentBubble&&(MF.instance().broardcast(_F.CommentPanel,{type:"endDraw"}),this.mDrawCommentBubble=!1,MF.instance().broardcast(_F.GsInteraction,{type:"draw",data:{type:"DrSurface"}}))):(this.mExecutingNextCmd=!0,this.setExecuteCmdByClickButton(this.mNextExecuteCmd,this.mCommandBranch.mainBranch,this.mCommandBranch.subBranch),jF.instance().setCommandFlags({enter:!0,esc:null}),this.mNextExecuteCmd=""),HZ.clearJig(),this.mAutoExecuteCmd=!1,this.mInterruptCmdExe=!1,this.mkEscapeCaret=!1,this.mExecutingSelectEntityCmd=!1,this.mZcBroadcast.broardcast(_F.GsInteraction,{type:"draw",data:{type:"Shorterm",operate:"clearAllSnap"}}),jF.instance().reset(),this.mDrawCommentBubbleBySdk=!1}getCurView(){if(null===this.mGs)return null;const t=this.mGs.mCurView;return 0===this.mMaxTextHeight&&null!==t&&(this.mMaxTextHeight=1e3*t.mFieldHeight),t}getSimilarCmd(t){let e=t.trim().toUpperCase(),n=[];if(!this.checkAvailableStatus(e))return[];for(const t in this.mCmdNameCollection)if(Object.prototype.hasOwnProperty.call(this.mCmdNameCollection,t)){const i=this.mCmdNameCollection[t];this.mGs&&this.mGs.mDocIsOpened?(0===t.indexOf(e)||0===i.toUpperCase().indexOf(e))&&this.filterCommand(t)&&n.push(t):(0===t.indexOf(e)||0===i.toUpperCase().indexOf(e))&&(this.mEditableCmd.includes(t)||this.filterCommand(t)&&n.push(t))}this.mSystemVarNameList.forEach((t=>{0===t.indexOf(e)&&n.push(t)}));let i=n.indexOf("SYSTEMVAL");return i>-1&&n.splice(i,1),n}checkAvailableStatus(t){if(""===t)return!1;let e=!0;this.mExecuteEditableCmd=!1;for(let n=0;n<this.mEditableCmd.length;n++){const i=this.mEditableCmd[n];if(i===t.toUpperCase())if(this.mGs&&this.mGs.webSocket){let t=this.mGs.webSocket;if(!t.connectSuccess||!this.mGs.mDocIsOpened){MF.instance().broardcast(_F.History,{history:qF.mLanguagePackage.editModeTip1}),e=!1;break}this.mMeasureCommand.includes(i)||(null===this.mGs.mDimensionLayerHandle&&t.sendMessage(t.mCreateLayerObj),null===this.mGs.mDimensionTextStyleHandle&&t.sendMessage(t.mCreateTextStyleObj)),this.mExecuteEditableCmd=!0,this.mGs.mHasExecEditCmd=!0,this.mGs.checkLayerIsClosed()}else e=!1}return e}clear(t){this.clearCanvas();let e=document.getElementById("inputCommand");e&&(e.value=""),h4.mCmd=null,null!==this.mExecuteCmdEntity&&this.mExecuteCmdEntity.resetCmd(),"keepHistory"!==t&&(this.mCmdHistoryList=[],this.mBubbleColor=this.mBubbleDefaultColor),this.mCommandBranch={mainBranch:void 0,subBranch:void 0},this.mExecuteCmdEntity=null,this.mCmdExecutionStatus=!1,this.mTriggerByClickButton=!1,this.mLastExecuteCmd="",this.mNextExecuteCmd="",this.mInterruptCmdExe=!1,this.mExecutingNextCmd=!1,this.mExecutingSelectEntityCmd=!1,this.mAutoExecuteCmd=!1,this.mkEscapeCaret=!1,this.mExecuteEditableCmd=!1,this.mModalOpened=!1,this.mMaxTextHeight=0,this.mDrawCommentBubble=!1,this.mDrawCommentBubbleBySdk=!1,this.mSystemVarList={},this.mCurSystemVar="",jF.instance().reset(),XF.instance().removeItem("textHeight","session"),"keepHistory"!==t&&MF.instance().broardcast(_F.ClearHistory,{}),this.mZcBroadcast.broardcast(_F.History,{label:qF.mLanguagePackage.command+":"}),jF.instance().setCommandFlags({enter:null,esc:null}),MF.instance().broardcast(_F.GsInteraction,{type:"drawCursor",data:{type:"normal"}}),this.mZcBroadcast.broardcast(_F.GsInteraction,{type:"draw",data:{type:"Shorterm",operate:"clearAllSnap"}}),$Z.setImageList([])}clearCanvas(){null!==this.mGs&&(this.mGs.clearHighlight(),HZ.clearJig())}closeModal(){n7.instance().clear("keepHistory"),this.mZcadCmdContext.keepFocusInCmdPanel(!0)}isContinuousDraw(){if(mF)return"IMAGE"!==this.getCurrentCmd();let t=XF.instance().getItem("options");return!!t&&t.continuousDraw}getBubbleColor(t){return t||n7.instance().mBubbleColor.str}setImageList(t){this.mImagelist=this.mImagelist.concat(t),$Z.setImageList(this.mImagelist)}isEndMobileContinuousBubbleCmd(){return this.mIsEndMobileContinuousBubbleCmd}endMobileContinuousBubbleCmd(){this.mIsEndMobileContinuousBubbleCmd=!0}resetMobileContinuousBubbleCmdEndFlag(){this.mIsEndMobileContinuousBubbleCmd=!1}getCurrentCmd(){let t="";return this.mCmdHistoryList.length>0&&(t=this.mCmdHistoryList[n7.instance().mCmdHistoryList.length-1]),t}checkIsPlot(t){return"PLOT"===this.getCurrentCmd()&&("NumpadEnter"===t||"Enter"===t||"Space"===t)&&((new OF).pub(EF.plotModal,!1),!0)}getSystemVal(t){void 0===t&&(t=this.mCurSystemVar);let e=0;if("ELEVATION"===t){if(this.mGs){let t=this.mGs.mCurView;null!==t&&(e=t.mElevation)}}else e=this.mSystemVarList[t];return void 0===e&&(e=0),e.toFixed(4)}setSystemVal(t,e){switch(void 0===e&&(e=this.mCurSystemVar),t=Math.round(t),e){case"ANGBASE":if(Math.abs(t)%360==0)t=0;else if(Math.abs(t)>360){let e=t;(t=Math.abs(t)-360*Math.floor(Math.abs(t)/360))>0&&e<-360&&(t=360-t)}else t>-360&&t<0&&(t+=360);this.mSystemVarList[e]=1===this.mSystemVarList.ANGDIR?360-t:t;break;case"ELEVATION":if(this.mGs){let e=this.mGs.mCurView;if(e){e.mElevation=t,e.initVpForWebAssembly();const n=document.getElementById("coordinate");if(n){let t=n.innerText.split(",");n.innerText=t[0]+","+t[1]+","+XR.scienceCount(e.mElevation.toFixed(4))}}}break;default:this.mSystemVarList[e]=t}}}n7._instance=new n7;let i7=(()=>{class t{constructor(t){this.elementRef=t}ngAfterViewInit(){Nx(this.elementRef.nativeElement,"click").subscribe((t=>{t.stopPropagation()}))}}return t["ɵfac"]=function(e){return new(e||t)(Zo(bl))},t["ɵdir"]=ne({type:t,selectors:[["","appStopPropagation",""]]}),t})();const r7=["footer"];function a7(t,e){if(1&t){const t=Jo();Yo(0,"i",20),es("click",(function(){Ne(t);const e=os(2).$implicit;return os(3).clearInput(e)})),jo()}}function o7(t,e){if(1&t){const t=Jo();Yo(0,"div",17),Yo(1,"input",18),es("change",(function(e){Ne(t);const n=os().$implicit;return os(3).changeInput(e,n)})),Cc(2,"translate"),jo(),Ho(3,a7,1,0,"i",19),jo()}if(2&t){const t=os().$implicit;sa(1),Uo("placeholder",kc(2,3,"sign_input_plotMsg"))("value",t.attrValue),sa(2),Uo("ngIf",t.attrValue)}}function s7(t,e){if(1&t){const t=Jo();Yo(0,"span",26),es("click",(function(){Ne(t);const e=os(2).$implicit,n=os(3);return n.upload(e,n.uploadType.sign)})),Bs(1),Cc(2,"translate"),jo()}2&t&&(sa(1),Vs(kc(2,1,"sign_upload_seal")))}function l7(t,e){if(1&t){const t=Jo();Yo(0,"div",27),Bs(1),Yo(2,"i",20),es("click",(function(){Ne(t);const e=os(2).$implicit,n=os(3);return n.clearImage(e,n.uploadType.sign)})),jo(),jo()}if(2&t){const t=os(2).$implicit;Uo("title",t.attrSignValue||t.signFileId),sa(1),Ns(" ",t.attrSignValue||t.signFileId," ")}}function c7(t,e){if(1&t){const t=Jo();Yo(0,"div",21),Yo(1,"div",22),Ho(2,s7,3,3,"span",23),Ho(3,l7,3,2,"div",24),jo(),Yo(4,"div",25),es("click",(function(){Ne(t);const e=os().$implicit,n=os(3);return n.upload(e,n.uploadType.sign)})),Bs(5),Cc(6,"translate"),jo(),jo()}if(2&t){const t=os().$implicit;sa(2),Uo("ngIf",!t.signFileId),sa(1),Uo("ngIf",t.signFileId),sa(2),Vs(kc(6,3,"upload"))}}function h7(t,e){if(1&t){const t=Jo();Yo(0,"span",26),es("click",(function(){Ne(t);const e=os(2).$implicit,n=os(3);return n.upload(e,n.uploadType.cert)})),Bs(1),Cc(2,"translate"),jo()}2&t&&(sa(1),Vs(kc(2,1,"sign_upload_cert")))}function d7(t,e){if(1&t){const t=Jo();Yo(0,"div",27),Bs(1),Yo(2,"i",20),es("click",(function(){Ne(t);const e=os(2).$implicit,n=os(3);return n.clearImage(e,n.uploadType.cert)})),jo(),jo()}if(2&t){const t=os(2).$implicit;Uo("title",t.attrCertValue||t.certFileId),sa(1),Ns(" ",t.attrCertValue||t.certFileId," ")}}function u7(t,e){if(1&t){const t=Jo();Yo(0,"div",28),Yo(1,"div",22),Ho(2,h7,3,3,"span",23),Ho(3,d7,3,2,"div",24),jo(),Yo(4,"div",25),es("click",(function(){Ne(t);const e=os().$implicit,n=os(3);return n.upload(e,n.uploadType.cert)})),Bs(5),Cc(6,"translate"),jo(),jo()}if(2&t){const t=os().$implicit;sa(2),Uo("ngIf",!t.certFileId),sa(1),Uo("ngIf",t.certFileId),sa(2),Vs(kc(6,3,"upload"))}}function m7(t,e){if(1&t){const t=Jo();Yo(0,"i",20),es("click",(function(){Ne(t);const e=os(2).$implicit;return os(3).clearInput(e,"certPassword")})),jo()}}function p7(t,e){if(1&t){const t=Jo();Yo(0,"div",29),Yo(1,"div",17),Yo(2,"input",18),es("change",(function(e){Ne(t);const n=os().$implicit;return os(3).changeInput(e,n)})),Cc(3,"translate"),jo(),Ho(4,m7,1,0,"i",19),jo(),jo()}if(2&t){const t=os().$implicit;sa(2),Uo("placeholder",kc(3,3,"sign_input_cert_key"))("value",t.certPassword),sa(2),Uo("ngIf",t.attrValue)}}function g7(t,e){if(1&t){const t=Jo();Yo(0,"span",26),es("click",(function(){Ne(t);const e=os(2).$implicit,n=os(3);return n.upload(e,n.uploadType.sign)})),Bs(1),Cc(2,"translate"),jo()}2&t&&(sa(1),Vs(kc(2,1,"sign_upload_seal")))}function f7(t,e){if(1&t){const t=Jo();Yo(0,"div",27),Bs(1),Yo(2,"i",20),es("click",(function(){Ne(t);const e=os(2).$implicit,n=os(3);return n.clearImage(e,n.uploadType.sign)})),jo(),jo()}if(2&t){const t=os(2).$implicit;Uo("title",t.attrSignValue||t.signFileId),sa(1),Ns(" ",t.attrSignValue||t.signFileId," ")}}function b7(t,e){if(1&t){const t=Jo();Yo(0,"div",21),Yo(1,"div",22),Ho(2,g7,3,3,"span",23),Ho(3,f7,3,2,"div",24),jo(),Yo(4,"div",25),es("click",(function(){Ne(t);const e=os().$implicit,n=os(3);return n.upload(e,n.uploadType.sign)})),Bs(5),Cc(6,"translate"),jo(),jo()}if(2&t){const t=os().$implicit;sa(2),Uo("ngIf",!t.signFileId),sa(1),Uo("ngIf",t.signFileId),sa(2),Vs(kc(6,3,"upload"))}}function y7(t,e){if(1&t){const t=Jo();Yo(0,"span",26),es("click",(function(){Ne(t);const e=os(2).$implicit,n=os(3);return n.upload(e,n.uploadType.cert)})),Bs(1),Cc(2,"translate"),jo()}2&t&&(sa(1),Vs(kc(2,1,"sign_upload_cert")))}function v7(t,e){if(1&t){const t=Jo();Yo(0,"div",27),Bs(1),Yo(2,"i",20),es("click",(function(){Ne(t);const e=os(2).$implicit,n=os(3);return n.clearImage(e,n.uploadType.cert)})),jo(),jo()}if(2&t){const t=os(2).$implicit;Uo("title",t.attrCertValue||t.certFileId),sa(1),Ns(" ",t.attrCertValue||t.certFileId," ")}}function w7(t,e){if(1&t){const t=Jo();Yo(0,"div",28),Yo(1,"div",22),Ho(2,y7,3,3,"span",23),Ho(3,v7,3,2,"div",24),jo(),Yo(4,"div",25),es("click",(function(){Ne(t);const e=os().$implicit,n=os(3);return n.upload(e,n.uploadType.cert)})),Bs(5),Cc(6,"translate"),jo(),jo()}if(2&t){const t=os().$implicit;sa(2),Uo("ngIf",!t.certFileId),sa(1),Uo("ngIf",t.certFileId),sa(2),Vs(kc(6,3,"upload"))}}function x7(t,e){if(1&t){const t=Jo();Yo(0,"i",20),es("click",(function(){Ne(t);const e=os(2).$implicit;return os(3).clearInput(e,"certPassword")})),jo()}}function C7(t,e){if(1&t){const t=Jo();Yo(0,"div",29),Yo(1,"div",17),Yo(2,"input",18),es("change",(function(e){Ne(t);const n=os().$implicit;return os(3).changeInput(e,n)})),Cc(3,"translate"),jo(),Ho(4,x7,1,0,"i",19),jo(),jo()}if(2&t){const t=os().$implicit;sa(2),Uo("placeholder",kc(3,3,"sign_input_cert_key"))("value",t.certPassword),sa(2),Uo("ngIf",t.attrValue)}}function k7(t,e){if(1&t){const t=Jo();Yo(0,"span",26),es("click",(function(){Ne(t);const e=os(2).$implicit,n=os(3);return n.upload(e,n.uploadType.dwg)})),Bs(1),Cc(2,"translate"),jo()}2&t&&(sa(1),Vs(kc(2,1,"sign_upload_dwg")))}function S7(t,e){if(1&t){const t=Jo();Yo(0,"div",27),Bs(1),Yo(2,"i",20),es("click",(function(){Ne(t);const e=os(2).$implicit,n=os(3);return n.clearImage(e,n.uploadType.sign)})),jo(),jo()}if(2&t){const t=os(2).$implicit;Uo("title",t.attrSignValue||t.signFileId),sa(1),Ns(" ",t.attrSignValue||t.signFileId," ")}}function P7(t,e){if(1&t){const t=Jo();Yo(0,"div",21),Yo(1,"div",22),Ho(2,k7,3,3,"span",23),Ho(3,S7,3,2,"div",24),jo(),Yo(4,"div",25),es("click",(function(){Ne(t);const e=os().$implicit,n=os(3);return n.upload(e,n.uploadType.dwg)})),Bs(5),Cc(6,"translate"),jo(),jo()}if(2&t){const t=os().$implicit;sa(2),Uo("ngIf",!t.signFileId),sa(1),Uo("ngIf",t.signFileId),sa(2),Vs(kc(6,3,"upload"))}}function _7(t,e){if(1&t&&(Yo(0,"div",9),Yo(1,"div",10),Yo(2,"p",11),Bs(3),jo(),Bs(4," :"),jo(),Yo(5,"div",12),Ho(6,o7,4,5,"div",13),Ho(7,c7,7,5,"div",14),Ho(8,u7,7,5,"div",15),Ho(9,p7,5,5,"div",16),Ho(10,b7,7,5,"div",14),Ho(11,w7,7,5,"div",15),Ho(12,C7,5,5,"div",16),Ho(13,P7,7,5,"div",14),jo(),jo()),2&t){const t=e.$implicit,n=os(3);sa(1),Uo("title",t.attrName),sa(2),Ns(" ",t.attrName," "),sa(2),Uo("ngSwitch",t.type),sa(1),Uo("ngSwitchCase",n.refType.plotMsg),sa(1),Uo("ngSwitchCase",n.refType.signaturePic),sa(1),Uo("ngSwitchCase",n.refType.signaturePic),sa(1),Uo("ngSwitchCase",n.refType.signaturePic),sa(1),Uo("ngSwitchCase",n.refType.seal),sa(1),Uo("ngSwitchCase",n.refType.seal),sa(1),Uo("ngSwitchCase",n.refType.seal),sa(1),Uo("ngSwitchCase",n.refType.dwgSeal)}}function M7(t,e){if(1&t&&(Yo(0,"div",7),Ho(1,_7,14,11,"div",8),jo()),2&t){const t=e.$implicit;sa(1),Uo("ngForOf",t.refData)}}function D7(t,e){if(1&t&&(Yo(0,"div",4),Yo(1,"div",5),Bs(2),jo(),Ho(3,M7,2,1,"div",6),jo()),2&t){const t=e.$implicit;sa(2),Ns("",t.blockName,":"),sa(1),Uo("ngForOf",t.blockData)}}function E7(t,e){if(1&t){const t=Jo();Yo(0,"div",30),Yo(1,"button",31),es("click",(function(){return Ne(t),os().cancel()})),Bs(2),Cc(3,"translate"),jo(),Yo(4,"button",32),es("click",(function(){return Ne(t),os().confirm()})),Bs(5),Cc(6,"translate"),jo(),jo()}if(2&t){const t=os();sa(2),Vs(kc(3,3,"cancel")),sa(2),Uo("nzLoading",t.confirmLoading),sa(1),Vs(kc(6,5,"confirm"))}}var O7,A7,T7,I7=((T7=I7||(I7={}))[T7.GetBlockData=0]="GetBlockData",T7[T7.UploadSign=1]="UploadSign",T7[T7.UploadCert=2]="UploadCert",T7[T7.UploadDwg=3]="UploadDwg",T7[T7.ConFirmEdit=4]="ConFirmEdit",I7),L7=((A7=L7||(L7={}))[A7.sign=0]="sign",A7[A7.cert=1]="cert",A7[A7.dwg=2]="dwg",L7),z7=((O7=z7||(z7={}))[O7.plotMsg=1]="plotMsg",O7[O7.signaturePic=2]="signaturePic",O7[O7.seal=3]="seal",O7[O7.dwgSeal=4]="dwgSeal",z7);let R7=(()=>{class t{constructor(t,e,n,i){this.modal=t,this.message=e,this.changeDetectorRef=n,this.mDb=i,this.mIsSpinning=!1,this.refType=z7,this.uploadType=L7,this.confirmLoading=!1,this.fileNameMap=new Map}ngOnInit(){MF.instance().subscribeBroardcast(_F.SignPanel,this),this.getBlockData()}ngAfterViewInit(){this.modal.updateConfig({nzFooter:this.footer}),U5._instance&&U5._instance.mGs&&U5._instance.mGs.setGlobalKeydownEvent(!1)}getBlockData(){this.mIsSpinning=!0,MF.instance().broardcast(_F.SignBlockData,{type:I7.GetBlockData,data:""})}ngOnDestroy(){MF.instance().unsubscribeBroardcast(_F.SignPanel,this)}notify(t,e){if(t===_F.SignPanel)switch(e.type){case I7.GetBlockData:e.data&&(this.mBlocksData=e.data),this.mIsSpinning=!1;break;case I7.ConFirmEdit:if(this.confirmLoading=!1,this.modal.destroy(!0),document.body.click(),this.changeDetectorRef.detectChanges(),e.data){if(this.message.success(qF.mLanguagePackage.sign_blockData_save_success),U5._instance&&U5._instance.mGs){MF.instance().broardcast(_F.GetFileData,{type:"getSignHistory",data:""}),MF.instance().broardcast(_F.GsInteraction,{type:"updateViewDataHttp"});let t=this.mDb.getDB();if(t){let e=t.getAllLayoutInfo(),n=t.getCurLayout();e.forEach((e=>{let i=t&&t.getBTRByHandle(e.mPaperSpaceId);n&&U5._instance.mGs&&i&&i.mGsNode&&U5._instance.mGs.setSignRegenLayout(e.handleId,n.handleId!==e.handleId)}))}MF.instance().broardcast(_F.UpdatePage,{type:"loading",data:{isLoading:!0,loadingProgressPreset:{phase:OW.init}}}),MF.instance().broardcast(_F.UpdatePage,{type:"loading",data:{isLoading:!0,loadingMessage:qF.mLanguagePackage.regening+", "+qF.mLanguagePackage.OpenDwgPhaseGetData+"..."}})}}else this.message.error(qF.mLanguagePackage.sign_blockData_save_fail);break;case I7.UploadCert:e.data.fileId&&this.editBlockData(e.data.fileId,e.data.signId,"certFileId"),e.data.fileId&&this.editBlockData(this.fileNameMap.get(e.data.signId),e.data.signId,"attrCertValue");break;case I7.UploadSign:case I7.UploadDwg:e.data.fileId&&this.editBlockData(e.data.fileId,e.data.signId,"signFileId"),e.data.fileId&&this.editBlockData(this.fileNameMap.get(e.data.signId),e.data.signId,"attrSignValue")}}upload(t,e){let n=document.createElement("input");n.type="file",e===L7.sign?n.accept=".jpg,.png":e===L7.cert?n.accept=".pfx":e===L7.dwg&&(n.accept=".dwg"),document.body.appendChild(n),n.addEventListener("input",(i=>{let r=i.target.files;if(r){let i=r[0],a=(i.name.split(".").pop()||"").toLowerCase(),o=i.size,s=100;-1===n.accept.indexOf(a)?this.message.error(qF.mLanguagePackage.sign_upload_typeError):e===L7.sign&&o>1024*s?this.message.error(qF.mLanguagePackage.sign_upload_sizeExceed+"-"+s+"kb"):(this.fileNameMap.set(t.signId,i.name),e===L7.sign?MF.instance().broardcast(_F.SignBlockData,{type:I7.UploadSign,data:{signId:t.signId,file:i,uploadId:(new Date).getTime()}}):e===L7.cert?MF.instance().broardcast(_F.SignBlockData,{type:I7.UploadCert,data:{signId:t.signId,file:i,uploadId:(new Date).getTime()}}):e===L7.dwg&&MF.instance().broardcast(_F.SignBlockData,{type:I7.UploadDwg,data:{signId:t.signId,file:i,uploadId:(new Date).getTime()}}))}document.body.removeChild(n)})),n.click()}changeInput(t,e){let n=t.target.value;e.type===z7.signaturePic||e.type===z7.seal?this.editBlockData(n,e.signId,"certPassword"):this.editBlockData(n,e.signId)}clearInput(t,e){this.editBlockData("",t.signId,e)}clearImage(t,e){e===L7.sign?this.editBlockData("",t.signId,"signFileId"):e===L7.cert&&this.editBlockData("",t.signId,"certFileId")}cancel(){this.confirmLoading?this.message.warning(qF.mLanguagePackage.sign_blockData_saving):this.modal.destroy(!1)}confirm(){this.confirmLoading=!0;let t=[];this.mapBlockData(((e,n)=>{switch(e.type){case z7.plotMsg:t.push({attrValue:e.attrValue,attrHandle:e.attrHandle,signId:e.signId,type:e.type,attrName:e.attrName,blockRefHandle:n});break;case z7.signaturePic:case z7.seal:t.push({certPassword:e.certPassword,certFileId:e.certFileId,signFileId:e.signFileId,signId:e.signId,type:z7.seal,attrName:e.attrName,blockRefHandle:n});break;case z7.dwgSeal:t.push({signFileId:e.signFileId,signId:e.signId,type:z7.dwgSeal,attrName:e.attrName,blockRefHandle:n})}})),MF.instance().broardcast(_F.SignBlockData,{type:I7.ConFirmEdit,data:t})}editBlockData(t,e,n){this.mapBlockData((i=>{if(i.signId===e)switch(i.type){case z7.plotMsg:i.attrValue=t;break;case z7.signaturePic:case z7.seal:case z7.dwgSeal:i[n||"attrValue"]=t}})),r.log("this.mBlocksData",this.mBlocksData,n)}mapBlockData(t){for(let e=0;e<this.mBlocksData.length;e++){let n=this.mBlocksData[e];for(let e=0;e<n.blockData.length;e++){let i=n.blockData[e];for(let e=0;e<i.refData.length;e++)t(i.refData[e],n.blockRefHandle)}}this.changeDetectorRef.detectChanges()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(OT),Zo(HA),Zo(Gl),Zo(sB))},t["ɵcmp"]=qt({type:t,selectors:[["app-sign-blockData"]],viewQuery:function(t,e){if(1&t&&Nc(r7,5),2&t){let t;Vc(t=Gc())&&(e.footer=t.first)}},decls:5,vars:2,consts:[[3,"nzSpinning"],[1,"container"],["class","block",4,"ngFor","ngForOf"],["footer",""],[1,"block"],[1,"block_title"],["class","block_content",4,"ngFor","ngForOf"],[1,"block_content"],["class","ref_item displayFlex",4,"ngFor","ngForOf"],[1,"ref_item","displayFlex"],[1,"ref_name",3,"title"],[1,"ref_name_content"],[1,"ref_content","displayFlex",3,"ngSwitch"],["class","input",4,"ngSwitchCase"],["class","signature_image flex1 displayFlex border whitespace_nowrap marginRight10px",4,"ngSwitchCase"],["class","certificate flex1 displayFlex border whitespace_nowrap whitespace_nowrap marginRight10px",4,"ngSwitchCase"],["class","certificate_key flex1",4,"ngSwitchCase"],[1,"input"],[3,"placeholder","value","change"],["nz-icon","","class","ant-input-clear-icon","nzTheme","fill","nzType","close-circle",3,"click",4,"ngIf"],["nz-icon","","nzTheme","fill","nzType","close-circle",1,"ant-input-clear-icon",3,"click"],[1,"signature_image","flex1","displayFlex","border","whitespace_nowrap","marginRight10px"],[1,"image"],["class","uploadLabel",3,"click",4,"ngIf"],["class","imageName",3,"title",4,"ngIf"],[1,"upload",3,"click"],[1,"uploadLabel",3,"click"],[1,"imageName",3,"title"],[1,"certificate","flex1","displayFlex","border","whitespace_nowrap","whitespace_nowrap","marginRight10px"],[1,"certificate_key","flex1"],[1,"footer"],["nz-button","","nzType","default","appStopPropagation","",3,"click"],["nz-button","","nzType","primary","appStopPropagation","",3,"nzLoading","click"]],template:function(t,e){1&t&&(Yo(0,"nz-spin",0),Yo(1,"div",1),Ho(2,D7,4,2,"div",2),jo(),jo(),Ho(3,E7,7,7,"ng-template",null,3,Yc)),2&t&&(Uo("nzSpinning",e.mIsSpinning),sa(2),Uo("ngForOf",e.mBlocksData))},directives:[Ud,$d,Kd,Yd,sM,eP,bM,uM,i7],pipes:[H3],styles:['.container[_ngcontent-%COMP%]{width:900px;max-height:500px;padding:10px 30px;font-family:"Arial Normal",Arial,sans-serif;overflow-y:auto;scroll-behavior:smooth}.container[_ngcontent-%COMP%]::-webkit-scrollbar{width:5px;height:1px}.container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:3px;background-color:#b0b0b0cc}.container[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:transparent}.block[_ngcontent-%COMP%]{color:#333}.block[_ngcontent-%COMP%] .block_title[_ngcontent-%COMP%]{font-size:16px}.block[_ngcontent-%COMP%] .block_content[_ngcontent-%COMP%]{padding-left:25px}.block[_ngcontent-%COMP%] .ref_item[_ngcontent-%COMP%]{height:34px;line-height:34px;font-size:14px;margin-bottom:10px}.block[_ngcontent-%COMP%] .ref_item[_ngcontent-%COMP%] .ref_name[_ngcontent-%COMP%]{width:150px;display:flex;align-items:center}.block[_ngcontent-%COMP%] .ref_item[_ngcontent-%COMP%] .ref_name[_ngcontent-%COMP%] p.ref_name_content[_ngcontent-%COMP%]{max-width:140px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;margin:0}.block[_ngcontent-%COMP%] .ref_item[_ngcontent-%COMP%] .ref_content[_ngcontent-%COMP%]{justify-content:space-between}.block[_ngcontent-%COMP%] .ref_item[_ngcontent-%COMP%] .image[_ngcontent-%COMP%]{position:relative;width:150px;padding:0 40px 0 10px;color:#bfbfbf;font-size:12px;-webkit-user-select:none;user-select:none}.block[_ngcontent-%COMP%] .ref_item[_ngcontent-%COMP%] .image[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{position:absolute;top:11px;right:6px}.block[_ngcontent-%COMP%] .ref_item[_ngcontent-%COMP%] .image[_ngcontent-%COMP%] .imageName[_ngcontent-%COMP%]{width:115px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#02a7f0}.block[_ngcontent-%COMP%] .ref_item[_ngcontent-%COMP%] .image[_ngcontent-%COMP%] .uploadLabel[_ngcontent-%COMP%]{cursor:pointer}.block[_ngcontent-%COMP%] .ref_item[_ngcontent-%COMP%] .upload[_ngcontent-%COMP%]{width:50px;text-align:center;background-color:#438efc;border-radius:5px;font-size:12px;color:#fff;cursor:pointer}.displayFlex[_ngcontent-%COMP%]{display:flex}.flex1[_ngcontent-%COMP%]{flex:1}.whitespace_nowrap[_ngcontent-%COMP%]{white-space:nowrap}.border[_ngcontent-%COMP%]{border:1px solid #d9d9d9;border-top-right-radius:5px;border-bottom-right-radius:5px}.marginRight10px[_ngcontent-%COMP%]{margin-right:10px}.input[_ngcontent-%COMP%]{position:relative}.input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-left:10px;padding-right:25px;width:200px;height:34px;border:1px solid #dfdfdf;outline:#40a9ff}.input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder{font-size:12px;color:#bfbfbf}.input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:hover{border-color:#40a9ff}.input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{border-color:#40a9ff}.input[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{position:absolute;top:11px;right:6px}*[_ngcontent-%COMP%]{box-sizing:border-box}']}),t})();class F7{constructor(){b(this,"_moduleObject",null),b(this,"_registry",null),window.ZwCloudRegistry||(window.ZwCloudRegistry=new FinalizationRegistry((t=>{t()})))}register(t){if(this._moduleObject=t,this._registry)return void r.log("该对象的gc事件已被注册");let e=new WeakRef(this._moduleObject),n={moduleObject:this._moduleObject};window.ZwCloudRegistry.register(this,(()=>{r.log("本次创建的对象已经被回收"),e.deref(),n=null}),this),this._registry=window.ZwCloudRegistry}unregister(){this._registry?(window.ZwCloudRegistry.unregister(this),this._registry=null):r.log("该对象的gc事件未注册")}}class B7 extends F7{constructor(t,e,n,i){super(),b(this,"readSuccess",!1),(new Module.ZwCloudEnvironmentInit).init(n,i),this._database=new Module.ZwCloudDatabaseEnv,this.readSuccess=0===this._database.ZwCloudReadDwgStream(t,e),super.register(this._database)}getSymbolTable(t,e){switch(t.constructor.name){case V7.name:return this._database.getTextStyleTable(t._ZcDbTableJs,e);case G7.name:return this._database.getDimStyleTable(t._ZcDbTableJs,e);case W7.name:return this._database.getLinetypeTable(t._ZcDbTableJs,e);default:return null}}textstyle(){return this._database.textstyle()}dimstyle(){return this._database.dimstyle()}}class V7 extends F7{constructor(){super(),this._ZcDbTableJs=new Module.ZcDbTextStyleTableWrapper,super.register(this._ZcDbTableJs)}newIterator(t){this._ZcDbTableJs.newIterator(t._ZcDbTableIteratorJs,!0,!0)}close(){this._ZcDbTableJs.close()}}class N7 extends F7{constructor(){super(),this._ZcDbTableIteratorJs=new Module.ZcDbTextStyleTableIteratorWrapper,super.register(this._ZcDbTableIteratorJs)}done(){return this._ZcDbTableIteratorJs.done()}step(){return this._ZcDbTableIteratorJs.step()}getZcDbTextStyleTableRecord(t,e){return this._ZcDbTableIteratorJs.getRecord(t._ZcDbTableRecordJs,e)}}class H7 extends F7{constructor(){super(),this._ZcDbTableRecordJs=new Module.ZcDbTextStyleTableRecordWrapper,super.register(this._ZcDbTableRecordJs)}getZcDbHandle(){return this._ZcDbTableRecordJs.getZcDbHandle()}getName(){return this._ZcDbTableRecordJs.getName()}xScale(){return this._ZcDbTableRecordJs.xScale()}fileName(){return this._ZcDbTableRecordJs.fileName()}font(){return this._ZcDbTableRecordJs.font()}close(){this._ZcDbTableRecordJs.close()}}class G7 extends F7{constructor(){super(),this._ZcDbTableJs=new Module.ZcDbDimStyleTableWrapper,super.register(this._ZcDbTableJs)}newIterator(t){this._ZcDbTableJs.newIterator(t._ZcDbTableIteratorJs,!0,!0)}close(){this._ZcDbTableJs.close()}}class Z7 extends F7{constructor(){super(),this._ZcDbTableIteratorJs=new Module.ZcDbDimStyleTableIteratorWrapper,super.register(this._ZcDbTableIteratorJs)}done(){return this._ZcDbTableIteratorJs.done()}step(){return this._ZcDbTableIteratorJs.step()}getZcDbDimStyleTableRecord(t,e){return this._ZcDbTableIteratorJs.getRecord(t._ZcDbTableRecordJs,e)}}class U7 extends F7{constructor(){super(),this._ZcDbTableRecordJs=new Module.ZcDbDimStyleTableRecordWrapper,super.register(this._ZcDbTableRecordJs)}getZcDbHandle(){return this._ZcDbTableRecordJs.getZcDbHandle()}getName(){return this._ZcDbTableRecordJs.getName()}dimtxsty(){return this._ZcDbTableRecordJs.dimtxsty()}dimdli(){return this._ZcDbTableRecordJs.dimdli()}dimexo(){return this._ZcDbTableRecordJs.dimexo()}dimexe(){return this._ZcDbTableRecordJs.dimexe()}dimasz(){return this._ZcDbTableRecordJs.dimasz()}dimtxt(){return this._ZcDbTableRecordJs.dimtxt()}dimscale(){return this._ZcDbTableRecordJs.dimscale()}dimdec(){return this._ZcDbTableRecordJs.dimdec()}dimtix(){return this._ZcDbTableRecordJs.dimtix()}dimblk(){return this._ZcDbTableRecordJs.dimblk()}dimlunit(){return this._ZcDbTableRecordJs.dimlunit()}IsDimStyleAnnotative(){return this._ZcDbTableRecordJs.IsDimStyleAnnotative()}close(){return this._ZcDbTableRecordJs.close()}}class W7 extends F7{constructor(){super(),this._ZcDbTableJs=new Module.ZcDbLinetypeTableWrapper,super.register(this._ZcDbTableJs)}newIterator(t){this._ZcDbTableJs.newIterator(t._ZcDbTableIteratorJs,!0,!0)}close(){this._ZcDbTableJs.close()}}class Y7 extends F7{constructor(){super(),this._ZcDbTableIteratorJs=new Module.ZcDbLinetypeTableIteratorWrapper,super.register(this._ZcDbTableIteratorJs)}done(){return this._ZcDbTableIteratorJs.done()}step(){return this._ZcDbTableIteratorJs.step()}getZcDbLinetypeTableRecord(t,e){return this._ZcDbTableIteratorJs.getRecord(t._ZcDbTableRecordJs,e)}}class j7 extends F7{constructor(){super(),this._ZcDbTableRecordJs=new Module.ZcDbLinetypeTableRecordWrapper,super.register(this._ZcDbTableRecordJs)}getZcDbHandle(){return this._ZcDbTableRecordJs.getZcDbHandle()}getName(){return this._ZcDbTableRecordJs.getName()}close(){this._ZcDbTableRecordJs.close()}}const X7=[{dir:Q3.TOP,command:"_Top",translate:"command_directionTop",icon:"Top"},{dir:Q3.BOTTOM,command:"_Bottom",translate:"command_directionBottom",icon:"Bottom"},{dir:Q3.LEFT,command:"_Left",translate:"command_directionLeft",icon:"Left"},{dir:Q3.RIGHT,command:"_Right",translate:"command_directionRight",icon:"Right"},{dir:Q3.FRONT,command:"_Front",translate:"command_directionFront",icon:"Front"},{dir:Q3.BACK,command:"_Back",translate:"command_directionBack",icon:"Back"},{dir:Q3.SOUTHWEST,command:"_Swiso",translate:"command_directionSwiso",icon:"Swiso"},{dir:Q3.SOUTHEAST,command:"_Seiso",translate:"command_directionSeiso",icon:"Seiso"},{dir:Q3.NORTHEAST,command:"_Neiso",translate:"command_directionNeiso",icon:"Neiso"},{dir:Q3.NORTHWEST,command:"_Nwiso",translate:"command_directionNwiso",icon:"Nwiso"},{dir:Q3.Orbit,command:"3dorbit",translate:"Orbit",icon:"sanweidongtaiguancha"}],q7={commitId:"ef957381c",commitTime:"20231130001055",compileTime:"20231130001055"};function $7(t,e){1&t&&Xo(0,"div",4)}function K7(t,e){1&t&&(qo(0),Yo(1,"div",5),Yo(2,"div",6),Xo(3,"div",7),Yo(4,"div",8),Yo(5,"div"),Xo(6,"div",9),Yo(7,"div",10),Xo(8,"div",11),jo(),jo(),jo(),jo(),jo(),$o())}function J7(t,e){if(1&t){const t=Jo();Yo(0,"button",12),es("click",(function(){return Ne(t),os().handleOk()})),Bs(1),Cc(2,"translate"),jo()}2&t&&(sa(1),Ns(" ",kc(2,1,"ok")," "))}let Q7=(()=>{class t{constructor(t){this.changeDetectorRef=t,this.mIsVisible=!1,MF.instance().subscribeBroardcast(_F.CmdModalVisible,this)}ngOnInit(){}ngOnDestroy(){MF.instance().unsubscribeBroardcast(_F.CmdModalVisible,this)}notify(t,e){"object"==typeof e&&t===_F.CmdModalVisible&&"aboutModal"===e.type&&e.data&&(this.mIsVisible=e.data.visible,this.changeDetectorRef.detectChanges(),setTimeout((()=>{let t=(new Date).getFullYear(),e=document.getElementById("aboutTitle");if(!e)return;e.innerHTML=ZwCloud2D.ZwSetting.about.title?ZwCloud2D.ZwSetting.about.title:""+qF.mLanguagePackage.menuAbout+qF.mLanguagePackage.ZWCAD;let n=document.getElementById("aboutVersion");if(!n)return;n.innerHTML=ZwCloud2D.ZwSetting.about.version?ZwCloud2D.ZwSetting.about.version:"commitId : "+q7.commitId+"<br/>commitTime : "+q7.commitTime+"<br/>compileTime : "+q7.compileTime+"<br/>";let i=document.getElementById("aboutContent");!i||(ZwCloud2D.ZwSetting.about.content?i.innerHTML=ZwCloud2D.ZwSetting.about.content:(i.innerHTML="<div style='font-weight: bold'>"+qF.mLanguagePackage.copyrightMsg1+t+qF.mLanguagePackage.copyrightMsg2+"。<br/><br/>"+qF.mLanguagePackage.AboutMsg1+"</div><br/>",i.innerHTML+=qF.mLanguagePackage.AboutMsg2+'<br/><img src="/assets/image/logo_oda.png" alt="logo" /><br/><br/>',i.innerHTML+=qF.mLanguagePackage.AboutMsg4+"<br/><br/>",i.innerHTML+=qF.mLanguagePackage.AboutMsg5+"<br/><br/>"+qF.mLanguagePackage.AboutMsg6+"<br/><br/>",i.innerHTML+=qF.mLanguagePackage.AboutMsg7+"<br/><br/>"+qF.mLanguagePackage.AboutMsg8+"<br/><br/>",i.innerHTML+=qF.mLanguagePackage.AboutMsg9+"<br/><br/>"+qF.mLanguagePackage.AboutMsg10+"<br/><br/>",i.innerHTML+=qF.mLanguagePackage.AboutMsgAdd1+"<br/><br/>",i.innerHTML+=qF.mLanguagePackage.AboutMsgAdd2+"<br/><br/>",i.innerHTML+=qF.mLanguagePackage.AboutMsg13+"<br/><br/>"+qF.mLanguagePackage.AboutMsg18+"<br/><br/>",i.innerHTML+=qF.mLanguagePackage.AboutMsgQt+'<br/><img src="/assets/image/qt.png" alt="logo" /><br/><br/>',i.innerHTML+=qF.mLanguagePackage.AboutMsg19+"<br/>"))})))}handleOk(){this.mIsVisible=!1,(new OF).pub(EF.aboutModal,!0),this.changeDetectorRef.detectChanges()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Gl))},t["ɵcmp"]=qt({type:t,selectors:[["app-about-modal"]],decls:6,vars:4,consts:[["nzClassName","about-options",3,"nzVisible","nzMaskClosable","nzTitle","nzFooter","nzVisibleChange","nzOnCancel","nzOnOk"],["aboutTitle",""],[4,"nzModalContent"],["aboutFooter",""],["id","aboutTitle",1,"about-title"],[1,"container"],[1,"content"],[1,"about-content-banner"],[1,"about-content"],["id","aboutVersion"],[1,"box"],["id","aboutContent"],["nz-button","",3,"click"]],template:function(t,e){if(1&t&&(Yo(0,"nz-modal",0),es("nzVisibleChange",(function(t){return e.mIsVisible=t}))("nzOnCancel",(function(){return e.handleOk()}))("nzOnOk",(function(){return e.handleOk()})),Ho(1,$7,1,0,"ng-template",null,1,Yc),Ho(3,K7,9,0,"ng-container",2),Ho(4,J7,3,3,"ng-template",null,3,Yc),jo()),2&t){const t=Go(2),n=Go(5);Uo("nzVisible",e.mIsVisible)("nzMaskClosable",!1)("nzTitle",t)("nzFooter",n)}},directives:[zT,TT,bM,uM,sM],pipes:[H3],styles:[".about-options[_ngcontent-%COMP%] .ant-modal-body[_ngcontent-%COMP%]{padding:1px}.about-options[_ngcontent-%COMP%] .ant-modal-body[_ngcontent-%COMP%], .about-options[_ngcontent-%COMP%] .ant-modal-footer[_ngcontent-%COMP%], .about-options[_ngcontent-%COMP%] .ant-btn[_ngcontent-%COMP%]{background-color:#f2f2f2}.about-options[_ngcontent-%COMP%] .ant-modal-footer[_ngcontent-%COMP%]{border-top:1px solid #d9d9d9}.about-options[_ngcontent-%COMP%] .ant-btn-primary[_ngcontent-%COMP%]{color:#1890ff}.about-options[_ngcontent-%COMP%] .ant-slider-rail[_ngcontent-%COMP%]{background-color:#fff}"]}),t})();function t9(t,e){if(1&t){const t=Jo();qo(0),Yo(1,"div",2),Yo(2,"div",3),Yo(3,"input",4),es("ngModelChange",(function(e){return Ne(t),os().value=e})),jo(),jo(),jo(),$o()}if(2&t){const t=os();sa(3),Uo("ngModel",t.value)}}let e9=(()=>{class t{constructor(t){this.changeDetectorRef=t,this.value="",this.mIsVisible=!1,MF.instance().subscribeBroardcast(_F.CmdModalVisible,this)}ngOnInit(){}ngOnDestroy(){MF.instance().unsubscribeBroardcast(_F.CmdModalVisible,this)}notify(t,e){"object"==typeof e&&t===_F.CmdModalVisible&&"textModal"===e.type&&e.data&&(this.value="",this.mIsVisible=e.data.visible,this.changeDetectorRef.detectChanges())}ngAfterViewChecked(){let t=document.getElementById("textCmd"),e=t&&t.querySelector(".ant-input:focus");t&&!e&&t.focus()}handleOk(){this.mIsVisible=!1,X5.setInputText(this.value),(new OF).pub(EF.textModal,!0),this.changeDetectorRef.detectChanges()}handleCancel(){this.mIsVisible=!1,(new OF).pub(EF.textModal,!1),this.changeDetectorRef.detectChanges()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Gl))},t["ɵcmp"]=qt({type:t,selectors:[["app-text_modal"]],decls:3,vars:5,consts:[[3,"nzVisible","nzMaskClosable","nzTitle","nzVisibleChange","nzOnCancel","nzOnOk"],[4,"nzModalContent"],[1,"container"],[1,"content"],["id","textCmd","type","text","nz-input","","autofocus","",3,"ngModel","ngModelChange"]],template:function(t,e){1&t&&(Yo(0,"nz-modal",0),es("nzVisibleChange",(function(t){return e.mIsVisible=t}))("nzOnCancel",(function(){return e.handleCancel()}))("nzOnOk",(function(){return e.handleOk()})),Cc(1,"translate"),Ho(2,t9,4,1,"ng-container",1),jo()),2&t&&Uo("nzVisible",e.mIsVisible)("nzMaskClosable",!1)("nzTitle",kc(1,3,"textCmdCentent"))},directives:[zT,TT,s_,np,xp,Np],pipes:[H3],styles:[".container[_ngcontent-%COMP%]{width:565px;padding:10px}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{display:flex}.container[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:.5em 1em}.container[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%] .cancel[_ngcontent-%COMP%]{border:1px solid #ccc;background-color:#fff;color:#000}.container[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%] .confirm[_ngcontent-%COMP%]{background-color:#078bed;color:#fff}"]}),t})();const n9=["footer"];function i9(t,e){if(1&t){const t=Jo();Yo(0,"li",10),es("click",(function(){const e=Ne(t).index;return os(2).select(e)})),Bs(1),jo()}if(2&t){const t=e.$implicit,n=e.index;Ps(os(2).mSelectedIndex===n?"selected":""),Uo("title",t.name),sa(1),Ns(" ",t.name," ")}}function r9(t,e){1&t&&Xo(0,"img",11),2&t&&Uo("src",os(2).mImageSrc,Hr)}function a9(t,e){if(1&t&&(qo(0),Yo(1,"div",3),Yo(2,"p",4),Bs(3),Cc(4,"translate"),Cc(5,"translate"),jo(),Yo(6,"div",5),Yo(7,"ul",6),Ho(8,i9,2,4,"li",7),jo(),Yo(9,"div",8),Ho(10,r9,1,1,"img",9),jo(),jo(),jo(),$o()),2&t){const t=os();sa(1),Ps(t.isMobile?"container mobile":"container"),sa(2),Gs("",kc(4,7,"total")," ",t.mImagelist.length," ",kc(5,9,"images"),""),sa(5),Uo("ngForOf",t.mImagelist),sa(2),Uo("ngIf",t.mImageSrc)}}function o9(t,e){if(1&t){const t=Jo();Yo(0,"div",12),Yo(1,"button",13),es("click",(function(){return Ne(t),os().cancel()})),Bs(2),Cc(3,"translate"),jo(),Yo(4,"button",14),es("click",(function(){return Ne(t),os().confirm()})),Bs(5),Cc(6,"translate"),jo(),jo()}2&t&&(sa(2),Vs(kc(3,2,"cancel")),sa(3),Vs(kc(6,4,"confirm")))}const s9=function(){return{top:"40px"}};let l9=(()=>{class t{constructor(t,e){this.message=t,this.changeDetectorRef=e,this.mImagelist=[],this.mSelectedIndex=-1,this.mImageSrc="",this.mModalName=qF.mLanguagePackage.insertImage,this.mIsVisible=!1,this.isMobile=mF}ngOnInit(){this.getAllImages(),MF.instance().subscribeBroardcast(_F.CmdModalVisible,this),MF.instance().subscribeBroardcast(_F.GetFileData,this)}ngAfterViewInit(){}ngOnDestroy(){MF.instance().unsubscribeBroardcast(_F.CmdModalVisible,this),MF.instance().unsubscribeBroardcast(_F.GetFileData,this)}notify(t,e){"object"==typeof e&&(t===_F.CmdModalVisible?"imageModal"===e.type&&e.data&&(this.mIsVisible=e.data.visible,this.changeDetectorRef.detectChanges()):_F.GetFileData&&"setImageList"===e.type&&e.data&&this.mImagelist.push(e.data))}getAllImages(){$Z.getAllImages().then((t=>{0!==t.length?(this.mImagelist=t,this.select(0)):MF.instance().broardcast(_F.GetFileData,{type:"imageList",data:[]})}))}select(t){this.mSelectedIndex=t,this.mImageSrc=this.mImagelist[t].data,this.changeDetectorRef.detectChanges()}cancel(){null!==qZ.instance&&(qZ.instance.mBranchStatus=XZ.End,this.mIsVisible=!1,(new OF).pub(EF.imageModal,!1),this.changeDetectorRef.detectChanges())}confirm(){if(null===qZ.instance)return;if(-1===this.mSelectedIndex)return void this.message.warning(qF.mLanguagePackage.selectImage);let t=this.mImagelist[this.mSelectedIndex];$Z.setImageMsg({name:t.name,path:t.completePath,data:t.data,size:t.size,createTime:t.createTime,fileId:t.fileId,suffix:t.name.split(".").pop().toUpperCase()});let e=new Image;if(t.data instanceof ArrayBuffer){let n="",i=new Uint8Array(t.data),r=i.byteLength;for(let t=0;t<r;t++)n+=String.fromCharCode(i[t]);let a=btoa(n);e.src="data:image/jpeg;base64,"+a}else"string"==typeof t.data&&(e.src=t.data);e.onload=()=>{0!==e.width&&0!==e.height&&qZ.instance&&(qZ.instance.mBaseWidth=e.width,qZ.instance.mBaseHeight=e.height)},qZ.instance.mBranchStatus=XZ.SetOriginPoint,this.mIsVisible=!1,(new OF).pub(EF.imageModal,"image"),this.changeDetectorRef.detectChanges()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(HA),Zo(Gl))},t["ɵcmp"]=qt({type:t,selectors:[["app-image_modal"]],viewQuery:function(t,e){if(1&t&&Nc(n9,5),2&t){let t;Vc(t=Gc())&&(e.footer=t.first)}},decls:4,vars:6,consts:[[3,"nzVisible","nzStyle","nzTitle","nzFooter","nzMaskClosable","nzVisibleChange","nzOnCancel"],[4,"nzModalContent"],["footer",""],["appStopPropagation",""],[1,"total"],[1,"content"],[1,"list"],[3,"class","title","click",4,"ngFor","ngForOf"],[1,"preview"],["alt","",3,"src",4,"ngIf"],[3,"title","click"],["alt","",3,"src"],[1,"footer"],["nz-button","","nzType","default","appStopPropagation","",3,"click"],["nz-button","","nzType","primary","appStopPropagation","",3,"click"]],template:function(t,e){if(1&t&&(Yo(0,"nz-modal",0),es("nzVisibleChange",(function(t){return e.mIsVisible=t}))("nzOnCancel",(function(){return e.cancel()})),Ho(1,a9,11,11,"ng-container",1),Ho(2,o9,7,6,"ng-template",null,2,Yc),jo()),2&t){const t=Go(3);Uo("nzVisible",e.mIsVisible)("nzStyle",gc(5,s9))("nzTitle",e.mModalName)("nzFooter",t)("nzMaskClosable",!1)}},directives:[zT,TT,i7,Ud,Yd,bM,uM,sM],pipes:[H3],styles:[".container[_ngcontent-%COMP%]{width:565px}.container[_ngcontent-%COMP%] .total[_ngcontent-%COMP%]{height:2em;line-height:2em;padding-left:20px}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{display:flex}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .list[_ngcontent-%COMP%]{flex:1;max-height:20em;font-size:16px;overflow:auto;scroll-behavior:smooth}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .list[_ngcontent-%COMP%]::-webkit-scrollbar{width:5px;height:1px}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .list[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:3px;background-color:#b0b0b080}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .list[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:transparent}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{height:2em;line-height:2em;list-style:none;border-bottom:1px solid #ccc;cursor:pointer;max-width:20em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{background-color:#f0f6fc}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%]{background-color:#f0f6fc}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%]{position:relative;flex:1;display:flex;justify-content:center;align-items:center;max-height:22em;padding:0 1em 1em}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:16em;height:22em;object-fit:contain}.container[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:.5em 1em}.container[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%] .cancel[_ngcontent-%COMP%]{border:1px solid #ccc;background-color:#fff;color:#000}.container[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%] .confirm[_ngcontent-%COMP%]{background-color:#078bed;color:#fff}.mobile[_ngcontent-%COMP%]{max-width:90vw}.mobile[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:22em;object-fit:contain}"]}),t})();function c9(t){return JSON.parse(JSON.stringify(t))}const h9=["container"];function d9(t,e){if(1&t){const t=Jo();Yo(0,"li",9),es("click",(function(){const e=Ne(t),n=e.$implicit,i=e.index;return os(3).changeSelect(n,i)})),Bs(1),Cc(2,"translate"),jo()}if(2&t){const t=e.$implicit;Ps(t.disabled?"disabled":"hover"),sa(1),Vs(kc(2,3,t.label))}}function u9(t,e){if(1&t&&(Yo(0,"ul",7),Ho(1,d9,3,5,"li",8),jo()),2&t){const t=os(2);Ps("dark"===t.theme?"list_dark":""),sa(1),Uo("ngForOf",t.list)}}function m9(t,e){if(1&t){const t=Jo();Yo(0,"div",1,2),Yo(2,"p",3),es("nzVisibleChange",(function(e){return Ne(t),os().mShowList=e})),Bs(3),Cc(4,"translate"),Xo(5,"i",4),jo(),Yo(6,"nz-dropdown-menu",null,5),Ho(8,u9,2,3,"ul",6),jo(),jo()}if(2&t){const t=Go(7),e=os();sa(2),Ps("dark"===e.theme?"type_dark":""),Uo("nzDropdownMenu",t)("nzVisible",e.mShowList),sa(1),Ns(" ",kc(4,6,e.mCurItem.label)," "),sa(5),Uo("ngIf",e.mShowList)}}function p9(t,e){if(1&t){const t=Jo();Yo(0,"li",12),es("click",(function(){const e=Ne(t),n=e.$implicit,i=e.index;return os(3).changeSelect(n,i)})),Bs(1),Cc(2,"translate"),jo()}if(2&t){const t=e.$implicit;sa(1),Hs("",t.name+" ("+t.size+" ","",kc(2,2,t.unit),")")}}function g9(t,e){if(1&t&&(Yo(0,"ul",7),Ho(1,p9,3,4,"li",11),jo()),2&t){const t=os(2);sa(1),Uo("ngForOf",t.list)}}function f9(t,e){if(1&t){const t=Jo();Yo(0,"div",1,2),Yo(2,"p",3),es("nzVisibleChange",(function(e){return Ne(t),os().mShowList=e})),Bs(3),Cc(4,"translate"),Xo(5,"i",4),jo(),Yo(6,"nz-dropdown-menu",null,5),Ho(8,g9,2,1,"ul",10),jo(),jo()}if(2&t){const t=Go(7),e=os();sa(2),Uo("nzDropdownMenu",t)("nzVisible",e.mShowList),sa(1),Hs(" ",e.mCurItem.name+" ("+e.mCurItem.size+" ","",kc(4,5,e.mCurItem.unit),") "),sa(5),Uo("ngIf",e.mShowList)}}let b9=(()=>{class t{constructor(t){this.changeDetectorRef=t,this.contentType=0,this.list=[],this.curResult=new Dc,this.mCurItem={},this.defaultIndex=-1,this.theme="light",this.mShowList=!1}ngOnInit(){}changeSelect(t,e){!0!==t.disabled&&(this.mCurItem=t,this.curResult.emit({item:t,index:e}),this.mShowList=!1,setTimeout((()=>{this.changeDetectorRef.detectChanges()})))}onClick(t){setTimeout((()=>{this.changeDetectorRef.detectChanges()}))}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Gl))},t["ɵcmp"]=qt({type:t,selectors:[["app-select"]],viewQuery:function(t,e){if(1&t&&Nc(h9,5),2&t){let t;Vc(t=Gc())&&(e.container=t.first)}},hostBindings:function(t,e){1&t&&es("mousedown",(function(t){return e.onClick(t.target)}),!1,jr)},inputs:{contentType:"contentType",list:"list",mCurItem:"mCurItem",defaultIndex:"defaultIndex",theme:"theme"},outputs:{curResult:"curResult"},decls:2,vars:2,consts:[["class","container",4,"ngIf"],[1,"container"],["container",""],["nz-dropdown","","nzTrigger","click",1,"type",3,"nzDropdownMenu","nzVisible","nzVisibleChange"],["nz-icon","","nzType","down"],["menu","nzDropdownMenu"],["class","list",3,"class",4,"ngIf"],[1,"list"],[3,"class","click",4,"ngFor","ngForOf"],[3,"click"],["class","list",4,"ngIf"],["class","hover",3,"click",4,"ngFor","ngForOf"],[1,"hover",3,"click"]],template:function(t,e){1&t&&(Ho(0,m9,9,8,"div",0),Ho(1,f9,9,7,"div",0)),2&t&&(Uo("ngIf",0===e.contentType),sa(1),Uo("ngIf",1===e.contentType))},directives:[Yd,gA,sM,eP,bA,Ud],pipes:[H3],styles:[".container[_ngcontent-%COMP%]{position:relative;font-size:14px}.container[_ngcontent-%COMP%] .type[_ngcontent-%COMP%]{position:relative;padding:0 .5em;margin:0;height:2em;line-height:2em;cursor:pointer;background-color:#e1e1e1}.container[_ngcontent-%COMP%] .type[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{position:absolute;top:50%;right:5px;transform:translateY(-50%);font-size:10px}.container[_ngcontent-%COMP%] .type_dark[_ngcontent-%COMP%]{background-color:var(--editor_main_background);color:#fffc;font-size:12px}.container[_ngcontent-%COMP%] .type_dark[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#7f7f7f}.list[_ngcontent-%COMP%]{position:absolute;top:100%;left:0;z-index:999;width:100%;max-height:220px;overflow:auto;padding:0;margin:0;background-color:#fff;border:1px solid #d9d9d9}.list[_ngcontent-%COMP%]::-webkit-scrollbar{width:5px;height:1px}.list[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:3px;background-color:#b0b0b080}.list[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:transparent}.list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style:none;padding-left:10px;cursor:pointer;height:2em;line-height:2em}.list[_ngcontent-%COMP%] .hover[_ngcontent-%COMP%]:hover{color:#fff;background-color:#1c92ff}.list[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]{background-color:#f5f5f5;color:#00000040;cursor:not-allowed;opacity:1}.list_dark[_ngcontent-%COMP%]{background-color:var(--editor_main_background);color:#fffc;border:none;font-size:12px}"]}),t})();const y9=["modal"];function v9(t,e){if(1&t&&(Yo(0,"label",22),Bs(1),Cc(2,"translate"),jo()),2&t){const t=e.$implicit;Uo("nzValue",t.value),sa(1),Ns(" ",kc(2,2,t.label)," ")}}function w9(t,e){if(1&t){const t=Jo();qo(0),Yo(1,"div",4),Yo(2,"div",5),Yo(3,"p",6),Bs(4),Cc(5,"translate"),jo(),Yo(6,"div",7),Yo(7,"div",8),Bs(8),Cc(9,"translate"),Yo(10,"app-select",9),es("curResult",(function(e){return Ne(t),os().changePosition(e.item)})),jo(),jo(),Yo(11,"div",10),Bs(12),Cc(13,"translate"),Yo(14,"app-select",9),es("curResult",(function(e){return Ne(t),os().changeOrientation(e.item)})),jo(),jo(),jo(),Yo(15,"label",11),Bs(16),Cc(17,"translate"),jo(),Yo(18,"div",12),Yo(19,"div",8),Bs(20),Cc(21,"translate"),Yo(22,"input",13),es("ngModelChange",(function(e){return Ne(t),os().mAdvanced.offset.x=e})),jo(),jo(),Yo(23,"div",10),Bs(24),Cc(25,"translate"),Yo(26,"input",13),es("ngModelChange",(function(e){return Ne(t),os().mAdvanced.offset.y=e})),jo(),jo(),jo(),Yo(27,"nz-radio-group",14),es("ngModelChange",(function(e){return Ne(t),os().mAdvanced.offsetType.value=e})),Ho(28,v9,3,4,"label",15),jo(),jo(),Yo(29,"div",16),Yo(30,"div",17),Yo(31,"p",6),Bs(32),Cc(33,"translate"),jo(),Bs(34),Cc(35,"translate"),Yo(36,"p",18),Bs(37,"SimSun"),jo(),Bs(38),Cc(39,"translate"),Yo(40,"p",19),Bs(41,"5.08"),jo(),Yo(42,"label",11),Bs(43),Cc(44,"translate"),jo(),jo(),Yo(45,"div",20),Yo(46,"p",6),Bs(47),Cc(48,"translate"),jo(),Bs(49),Cc(50,"translate"),Yo(51,"p",21),Bs(52),Cc(53,"translate"),jo(),jo(),jo(),jo(),$o()}if(2&t){const t=os();sa(4),Vs(kc(5,28,"locationAndOffset")),sa(4),Ns(" ",kc(9,30,"location"),": "),sa(2),Uo("list",t.mPositions)("mCurItem",t.mAdvanced.position),sa(2),Ns(" ",kc(13,32,"orientation"),": "),sa(2),Uo("list",t.mOrientations)("mCurItem",t.mAdvanced.orientation),sa(1),Uo("ngModel",!1)("nzDisabled",!0),sa(1),Vs(kc(17,34,"stampUpsideDown")),sa(4),Ns(" X ",kc(21,36,"offset"),": "),sa(2),Uo("disabled",!0)("ngModel",t.mAdvanced.offset.x),sa(2),Ns(" Y ",kc(25,38,"offset"),": "),sa(2),Uo("disabled",!0)("ngModel",t.mAdvanced.offset.y),sa(1),Uo("ngModel",t.mAdvanced.offsetType.value)("nzDisabled",!0),sa(1),Uo("ngForOf",t.mOffsets),sa(4),Vs(kc(33,40,"textProperties")),sa(2),Ns(" ",kc(35,42,"font"),": "),sa(4),Ns(" ",kc(39,44,"height"),": "),sa(4),Uo("ngModel",!1)("nzDisabled",!0),sa(1),Vs(kc(44,46,"singleLinePlotStamp")),sa(4),Vs(kc(48,48,"plotStampUnits")),sa(2),Ns(" ",kc(50,50,"plotStampUnit"),": "),sa(3),Vs(kc(53,52,"millimeter"))}}function x9(t,e){if(1&t){const t=Jo();Yo(0,"div",23),Yo(1,"button",24),es("click",(function(){return Ne(t),os().handleCancel()})),Bs(2),Cc(3,"translate"),jo(),Yo(4,"button",25),es("click",(function(){return Ne(t),os().handleOk()})),Bs(5),Cc(6,"translate"),jo(),jo()}2&t&&(sa(2),Vs(kc(3,2,"cancel")),sa(3),Vs(kc(6,4,"confirm")))}let C9=(()=>{class t{constructor(){this.closeModal=new Dc,this.mAdvancedVisible=!1,this.mPositions=[],this.mOrientations=[],this.mOffsets=[],this.mAdvanced={position:sU[0],orientation:lU[0],offsetType:cU[0],offset:{x:"2.54",y:"2.54"}}}ngOnChanges(t){let e=t.mPrintConfig;e&&e.currentValue&&(this.mAdvanced=c9(this.mPrintConfig.options.stamp.advanced))}ngOnInit(){this.mPositions=sU,this.mOrientations=lU,this.mOffsets=cU}handleCancel(){this.closeModal.emit(OU.showParent),this.mAdvanced=c9(this.mPrintConfig.options.stamp.advanced)}handleOk(){this.closeModal.emit(OU.showParent),this.mPrintConfig.options.stamp.advanced=c9(this.mAdvanced),XF.instance().setItem("stampAdvanced",this.mAdvanced)}changePosition(t){this.mAdvanced.position=t}changeOrientation(t){this.mAdvanced.orientation=t}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵcmp"]=qt({type:t,selectors:[["app-stampAdvanced_modal"]],viewQuery:function(t,e){if(1&t&&Nc(y9,5),2&t){let t;Vc(t=Gc())&&(e.modal=t.first)}},inputs:{mAdvancedVisible:"mAdvancedVisible",mPrintConfig:"mPrintConfig"},outputs:{closeModal:"closeModal"},features:[pe],decls:6,vars:6,consts:[[3,"nzVisible","nzTitle","nzFooter","nzMaskClosable","nzVisibleChange","nzOnCancel"],["modal",""],[4,"nzModalContent"],["footer",""],["appStopPropagation","",1,"print"],[1,"position_offset","plotItem","left"],[1,"sub"],[1,"setting"],[1,"position","item"],[3,"list","mCurItem","curResult"],[1,"direction","item"],["nz-checkbox","",3,"ngModel","nzDisabled"],[1,"offset","setting"],["nz-input","","nzSize","small",3,"disabled","ngModel","ngModelChange"],[3,"ngModel","nzDisabled","ngModelChange"],["nz-radio","",3,"nzValue",4,"ngFor","ngForOf"],[1,"right"],[1,"textfeature","plotItem"],[1,"font","disabled"],[1,"height","disabled"],[1,"stampUnit","plotItem"],[1,"unit","disabled"],["nz-radio","",3,"nzValue"],[1,"footer"],["nz-button","","nzType","default","appStopPropagation","",3,"click"],["nz-button","","nzType","primary","appStopPropagation","",3,"click"]],template:function(t,e){if(1&t&&(Yo(0,"nz-modal",0,1),es("nzVisibleChange",(function(t){return e.mAdvancedVisible=t}))("nzOnCancel",(function(){return e.handleCancel()})),Cc(2,"translate"),Ho(3,w9,54,54,"ng-container",2),Ho(4,x9,7,6,"ng-template",null,3,Yc),jo()),2&t){const t=Go(5);Uo("nzVisible",e.mAdvancedVisible)("nzTitle",kc(2,4,"advancedOption"))("nzFooter",t)("nzMaskClosable",!1)}},directives:[zT,TT,i7,b9,kM,xp,Np,s_,np,cI,Ud,hI,bM,uM,sM],pipes:[H3],styles:[".print[_ngcontent-%COMP%]{width:500px;padding:15px;background-color:#f0f0f0;display:flex}.print[_ngcontent-%COMP%] .plotItem[_ngcontent-%COMP%]{position:relative;padding:10px;border:1px solid #ccc;margin-bottom:15px}.print[_ngcontent-%COMP%] .plotItem[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.print[_ngcontent-%COMP%] .plotItem[_ngcontent-%COMP%] .sub[_ngcontent-%COMP%]{position:absolute;top:0;left:5px;transform:translateY(-50%);background-color:#f0f0f0}.print[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]{padding:0 7px;height:1.5715em;line-height:1.5715em;background-color:#f5f5f5;color:#00000040;cursor:not-allowed;opacity:1;border:1px solid #d9d9d9}.print[_ngcontent-%COMP%] .position_offset[_ngcontent-%COMP%] .setting[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:10px}.print[_ngcontent-%COMP%] .position_offset[_ngcontent-%COMP%] .setting[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{width:45%}.print[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{width:60%}.print[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{flex:1;margin-left:10px}.footer[_ngcontent-%COMP%] .cancel[_ngcontent-%COMP%]{border:1px solid #ccc;background-color:#fff;color:#000}.footer[_ngcontent-%COMP%] .confirm[_ngcontent-%COMP%]{background-color:#078bed;color:#fff}.print[_ngcontent-%COMP%] .ant-checkbox-wrapper+.ant-checkbox-wrapper{margin:0!important}.print[_ngcontent-%COMP%] .ant-radio-group{display:flex;flex-direction:column;justify-content:flex-start;height:-moz-fit-content;height:fit-content}"]}),t})();const k9=["modal"];function S9(t,e){if(1&t){const t=Jo();Yo(0,"label",14),es("ngModelChange",(function(e){const n=Ne(t).$implicit;return os(2).stampFiled[n.key]=e}))("ngModelChange",(function(){return Ne(t),os(2).changeCheckbox()})),Bs(1),Cc(2,"translate"),jo()}if(2&t){const t=e.$implicit;Uo("ngModel",os(2).stampFiled[t.key]),sa(1),Vs(kc(2,2,t.key))}}function P9(t,e){if(1&t){const t=Jo();qo(0),Yo(1,"div",5),Yo(2,"div",6),Yo(3,"p",7),Bs(4),Cc(5,"translate"),jo(),Yo(6,"div",8),Ho(7,S9,3,4,"label",9),jo(),jo(),Yo(8,"div",10),Yo(9,"p",7),Bs(10),Cc(11,"translate"),jo(),Yo(12,"div",11),Yo(13,"p",12),Bs(14),jo(),Yo(15,"input",13),es("ngModelChange",(function(e){return Ne(t),os().userFiled.secondStr=e})),jo(),jo(),jo(),jo(),$o()}if(2&t){const t=os();sa(4),Vs(kc(5,6,"plotStampFields")),sa(3),Uo("ngForOf",t.mCheckList),sa(3),Vs(kc(11,8,"userDefinedFields")),sa(3),Uo("nzTooltipTitle",t.userFiled.firstStr),sa(1),Vs(t.userFiled.firstStr),sa(1),Uo("ngModel",t.userFiled.secondStr)}}function _9(t,e){if(1&t){const t=Jo();Yo(0,"div",15),Yo(1,"button",16),es("click",(function(){return Ne(t),os().showAdvanced()})),Bs(2),Cc(3,"translate"),jo(),Yo(4,"button",17),es("click",(function(){return Ne(t),os().handleCancel()})),Bs(5),Cc(6,"translate"),jo(),Yo(7,"button",18),es("click",(function(){return Ne(t),os().handleOk()})),Bs(8),Cc(9,"translate"),jo(),jo()}2&t&&(sa(2),Vs(kc(3,3,"advanced")),sa(3),Vs(kc(6,5,"cancel")),sa(3),Vs(kc(9,7,"confirm")))}let M9=(()=>{class t{constructor(t,e){this.changeDetectorRef=t,this.settingService=e,this.closeModal=new Dc,this.mStampVisible=!1,this.mAdvancedVisible=!1,this.mFirstStrArr=[],this.stampFiled={drawingName:!1,deviceName:!1,layoutName:!1,paperSize:!1,dateAndTime:!1,plotScale:!1},this.userFiled={firstStr:"",secondStr:""}}ngOnChanges(t){let e=t.mPrintConfig;e&&e.currentValue&&(this.stampFiled=c9(this.mPrintConfig.options.stamp.stampFiled),this.userFiled=c9(this.mPrintConfig.options.stamp.userFiled),this.initFirstStr())}ngOnInit(){this.mCheckList=AU}ngAfterViewInit(){this.modal.afterOpen.subscribe((()=>{this.initFirstStr()}))}showAdvanced(){this.mAdvancedVisible=!0,this.closeModal.emit(OU.showChild),this.changeDetectorRef.detectChanges()}handleCancel(){this.closeModal.emit(OU.showParent),this.stampFiled=c9(this.mPrintConfig.options.stamp.stampFiled),this.userFiled=c9(this.mPrintConfig.options.stamp.userFiled)}handleOk(){this.closeModal.emit(OU.showParent),this.mPrintConfig.options.stamp.stampFiled=c9(this.stampFiled),this.mPrintConfig.options.stamp.userFiled=c9(this.userFiled),XF.instance().setItem("stamp",{stampFiled:this.stampFiled,userFiled:this.userFiled})}closeAdvancedModal(t){t===OU.showParent&&this.closeModal.emit(OU.showSelf),this.mAdvancedVisible=!1,this.changeDetectorRef.detectChanges()}changeCheckbox(){this.initFirstStr(),this.changeDetectorRef.detectChanges()}initFirstStr(){let t="";U5._instance&&U5._instance.mGs&&(t=U5._instance.mGs.mFileName);let e="",n=(new sB).getDB();if(n){let t=n.getCurLayout();t&&(e=t.mLayoutName,/^model$/i.test(e)&&(e=qF.mLanguagePackage.model))}let i=TU.get(this.mPrintConfig.plotType.value),r=this.mPrintConfig.paperConfig[this.mPrintConfig.paperIndex],a=r.name+"("+r.size+" "+qF.mLanguagePackage[r.unit]+")",o=xF(new Date);this.mFirstStrArr=[t,i,e,a,o,"1:1"];let s=this.stampFiled,l=0,c=[];for(const t in s)Object.prototype.hasOwnProperty.call(s,t)&&(s[t]&&c.push(this.mFirstStrArr[l]),l++);this.userFiled.firstStr=c.join(", ")}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Gl),Zo(l8))},t["ɵcmp"]=qt({type:t,selectors:[["app-stamp_modal"]],viewQuery:function(t,e){if(1&t&&Nc(k9,5),2&t){let t;Vc(t=Gc())&&(e.modal=t.first)}},inputs:{mStampVisible:"mStampVisible",mPrintConfig:"mPrintConfig"},outputs:{closeModal:"closeModal"},features:[pe],decls:7,vars:8,consts:[[3,"nzVisible","nzTitle","nzFooter","nzMaskClosable","nzVisibleChange","nzOnCancel"],["modal",""],[4,"nzModalContent"],["stampfooter",""],[3,"mAdvancedVisible","mPrintConfig","closeModal"],["appStopPropagation","",1,"print"],[1,"stampfiled","plotItem"],[1,"sub"],[1,"checkbox"],["nz-checkbox","",3,"ngModel","ngModelChange",4,"ngFor","ngForOf"],[1,"userfiled","plotItem"],[1,"userFiledInput"],["nz-tooltip","","nzTooltipPlacement","bottomLeft",3,"nzTooltipTitle"],["nz-input","","nzSize","small",3,"ngModel","ngModelChange"],["nz-checkbox","",3,"ngModel","ngModelChange"],[1,"footer"],["nz-button","","nzType","default","appStopPropagation","",1,"advanced",3,"click"],["nz-button","","nzType","default","appStopPropagation","",3,"click"],["nz-button","","nzType","primary","appStopPropagation","",3,"click"]],template:function(t,e){if(1&t&&(Yo(0,"nz-modal",0,1),es("nzVisibleChange",(function(t){return e.mStampVisible=t}))("nzOnCancel",(function(){return e.handleCancel()})),Cc(2,"translate"),Ho(3,P9,16,10,"ng-container",2),Ho(4,_9,10,9,"ng-template",null,3,Yc),jo(),Yo(6,"app-stampAdvanced_modal",4),es("closeModal",(function(t){return e.closeAdvancedModal(t)})),jo()),2&t){const t=Go(5);Uo("nzVisible",e.mStampVisible)("nzTitle",kc(2,6,"plotStamp"))("nzFooter",t)("nzMaskClosable",!1),sa(6),Uo("mAdvancedVisible",e.mAdvancedVisible)("mPrintConfig",e.mPrintConfig)}},directives:[zT,TT,C9,i7,Ud,XT,s_,np,xp,Np,kM,bM,uM,sM],pipes:[H3],styles:[".print[_ngcontent-%COMP%]{width:500px;padding:15px;background-color:#f0f0f0}.print[_ngcontent-%COMP%] .plotItem[_ngcontent-%COMP%]{position:relative;padding:10px;border:1px solid #ccc;margin-bottom:15px}.print[_ngcontent-%COMP%] .plotItem[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.print[_ngcontent-%COMP%] .plotItem[_ngcontent-%COMP%] .sub[_ngcontent-%COMP%]{position:absolute;top:0;left:5px;transform:translateY(-50%);background-color:#f0f0f0}.print[_ngcontent-%COMP%] .plotOptions[_ngcontent-%COMP%] .svg-hover[_ngcontent-%COMP%]{cursor:pointer}.print[_ngcontent-%COMP%] .plotOptions[_ngcontent-%COMP%] .svg-hover[_ngcontent-%COMP%]:hover{color:#078bed}.print[_ngcontent-%COMP%] .stampfiled[_ngcontent-%COMP%] .checkbox[_ngcontent-%COMP%]{overflow:hidden}.print[_ngcontent-%COMP%] .stampfiled[_ngcontent-%COMP%] .checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{float:left;width:30%}.print[_ngcontent-%COMP%] .userfiled[_ngcontent-%COMP%] .userFiledInput[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:10px 0 0;padding:0 7px;height:1.5715em;line-height:1.5715em;background-color:#f5f5f5;color:#00000040;cursor:not-allowed;opacity:1;border:1px solid #d9d9d9;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.print[_ngcontent-%COMP%] .userfiled[_ngcontent-%COMP%] .userFiledInput[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;margin-top:10px}.footer[_ngcontent-%COMP%] .advanced[_ngcontent-%COMP%]{float:left}.footer[_ngcontent-%COMP%] .cancel[_ngcontent-%COMP%]{border:1px solid #ccc;background-color:#fff;color:#000}.footer[_ngcontent-%COMP%] .confirm[_ngcontent-%COMP%]{background-color:#078bed;color:#fff}.print[_ngcontent-%COMP%] .ant-checkbox-wrapper+.ant-checkbox-wrapper{margin:0!important}"]}),t})();function D9(t,e){if(1&t){const t=Jo();Yo(0,"li",8),es("click",(function(){const e=Ne(t),n=e.$implicit,i=e.index;return os(2).selectLayer(n.mLayerHandle,n.mLayerName,i)})),Bs(1),jo()}if(2&t){const t=e.$implicit,n=e.index;Ps(os(2).isSelected(n)?"selected":""),sa(1),Ns(" ",t.mLayerName," ")}}function E9(t,e){if(1&t&&(qo(0),Yo(1,"div",3),Yo(2,"div",4),Yo(3,"p",5),Bs(4),Cc(5,"translate"),jo(),Yo(6,"ul",6),Ho(7,D9,2,3,"li",7),jo(),jo(),jo(),$o()),2&t){const t=os();sa(4),Ns("",kc(5,2,"listOfLayer"),":"),sa(3),Uo("ngForOf",t.layerList)}}function O9(t,e){if(1&t){const t=Jo();Yo(0,"div",9),Yo(1,"button",10),es("click",(function(){return Ne(t),os().handleCancel()})),Bs(2),Cc(3,"translate"),jo(),Yo(4,"button",11),es("click",(function(){return Ne(t),os().handleOk()})),Bs(5),Cc(6,"translate"),jo(),jo()}2&t&&(sa(2),Vs(kc(3,2,"cancel")),sa(3),Vs(kc(6,4,"confirm")))}let A9=(()=>{class t{constructor(t,e){this.changeDetectorRef=t,this.databaseService=e,this.closeModal=new Dc,this.mLayerVisible=!1,this.layerList=[],this.sortType="mLayerName",this.mSelectedLayers=[]}ngOnInit(){MF.instance().subscribeBroardcast(_F.UpdatePage,this);let t=this.databaseService.getDB();t&&this.getLayerList(t)}notify(t,e){if(t===_F.UpdatePage&&"object"==typeof e&&"updateLayerList"===e.type){let t=e.data;t&&this.getLayerList(t),this.changeDetectorRef.detectChanges()}}handleCancel(){this.closeModal.emit(OU.showParent),this.mSelectedLayers.fill(null)}handleOk(){this.closeModal.emit(OU.showParent),this.confirmLayers(),this.mSelectedLayers.fill(null)}getValue(t,e){return t[e]}compare(t){let e=this;return"mLayerName"===t?function(n,i){let r=e.getValue(n,t),a=e.getValue(i,t);return r.localeCompare(a)}:function(t,n){let i=e.getValue(t,"mLayerName"),r=e.getValue(n,"mLayerName");return i.localeCompare(r)}}getLayerList(t){this.layerList=[];let e=t.getSymbolTable(o3.kZwDbLayerTable);if(e){let t=e.itemCount();for(let n=0;n<t;n++){let t=e.getAt(n);if(void 0===t)break;let i=t.getLayerInfo();i=Object.assign({},i),this.layerList.push(i)}}this.layerList.length&&this.layerList.sort(this.compare(this.sortType))}selectLayer(t,e,n){let i=String(t);this.mSelectedLayers[n]=this.mSelectedLayers[n]?null:{handle:i,name:e},this.changeDetectorRef.detectChanges()}isSelected(t){return this.mSelectedLayers[t]}confirmLayers(){let t=this.mSelectedLayers.filter((t=>t));this.mPrintConfig.batchPlot.layer.layers=t.map((t=>t.handle)),this.mPrintConfig.batchPlot.layer.layersStr=t.map((t=>t.name)).join(", ")}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Gl),Zo(sB))},t["ɵcmp"]=qt({type:t,selectors:[["app-layer_modal"]],inputs:{mLayerVisible:"mLayerVisible",mPrintConfig:"mPrintConfig"},outputs:{closeModal:"closeModal"},decls:5,vars:6,consts:[[3,"nzVisible","nzTitle","nzFooter","nzMaskClosable","nzVisibleChange","nzOnCancel"],[4,"nzModalContent"],["footer",""],["appStopPropagation","",1,"print"],[1,"layer","plotItem"],[1,"sub"],[1,"layerList"],["class","listItem",3,"class","click",4,"ngFor","ngForOf"],[1,"listItem",3,"click"],[1,"footer"],["nz-button","","nzType","default","appStopPropagation","",3,"click"],["nz-button","","nzType","primary","appStopPropagation","",3,"click"]],template:function(t,e){if(1&t&&(Yo(0,"nz-modal",0),es("nzVisibleChange",(function(t){return e.mLayerVisible=t}))("nzOnCancel",(function(){return e.handleCancel()})),Cc(1,"translate"),Ho(2,E9,8,4,"ng-container",1),Ho(3,O9,7,6,"ng-template",null,2,Yc),jo()),2&t){const t=Go(4);Uo("nzVisible",e.mLayerVisible)("nzTitle",kc(1,4,"selectLayer"))("nzFooter",t)("nzMaskClosable",!1)}},directives:[zT,TT,i7,Ud,bM,uM,sM],pipes:[H3],styles:[".print[_ngcontent-%COMP%]{width:500px;padding:15px;background-color:#f0f0f0}.print[_ngcontent-%COMP%] .plotItem[_ngcontent-%COMP%]{position:relative;padding:10px;border:1px solid #ccc;margin-bottom:15px}.print[_ngcontent-%COMP%] .plotItem[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.print[_ngcontent-%COMP%] .plotItem[_ngcontent-%COMP%] .sub[_ngcontent-%COMP%]{position:absolute;top:0;left:5px;transform:translateY(-50%);background-color:#f0f0f0}.print[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]{padding:0 7px;height:1.5715em;line-height:1.5715em;background-color:#f5f5f5;color:#00000040;cursor:not-allowed;opacity:1;border:1px solid #d9d9d9}.print[_ngcontent-%COMP%] .layer[_ngcontent-%COMP%] .layerList[_ngcontent-%COMP%]{margin:0;padding:5px;max-height:300px;overflow:auto;border:1px solid #ccc}.print[_ngcontent-%COMP%] .layer[_ngcontent-%COMP%] .layerList[_ngcontent-%COMP%]::-webkit-scrollbar{width:5px;height:1px}.print[_ngcontent-%COMP%] .layer[_ngcontent-%COMP%] .layerList[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:3px;background-color:#b0b0b080}.print[_ngcontent-%COMP%] .layer[_ngcontent-%COMP%] .layerList[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:transparent}.print[_ngcontent-%COMP%] .layer[_ngcontent-%COMP%] .layerList[_ngcontent-%COMP%] .listItem[_ngcontent-%COMP%]{list-style:none;height:25px;line-height:25px;background-color:#fff;padding:0 7px;margin-bottom:1px}.print[_ngcontent-%COMP%] .layer[_ngcontent-%COMP%] .layerList[_ngcontent-%COMP%] .listItem[_ngcontent-%COMP%]:hover{color:#fff;background-color:#1c92ff80}.print[_ngcontent-%COMP%] .layer[_ngcontent-%COMP%] .layerList[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%]{color:#fff;background-color:#1c92ff}.footer[_ngcontent-%COMP%] .cancel[_ngcontent-%COMP%]{border:1px solid #ccc;background-color:#fff;color:#000}.footer[_ngcontent-%COMP%] .confirm[_ngcontent-%COMP%]{background-color:#078bed;color:#fff}.print[_ngcontent-%COMP%] .ant-checkbox-wrapper+.ant-checkbox-wrapper{margin:0!important}"]}),t})();function T9(t,e){if(1&t){const t=Jo();gn(),fn(),Yo(0,"label",15),es("ngModelChange",(function(e){return Ne(t),os(2).mPrintConfig.options.electronicStampOpen=e}))("ngModelChange",(function(){return Ne(t),os(2).directionChange()})),Bs(1),Cc(2,"translate"),jo()}2&t&&(Uo("ngModel",os(2).mPrintConfig.options.electronicStampOpen),sa(1),Vs(kc(2,2,"ElectronicStampOn")))}function I9(t,e){if(1&t&&(Yo(0,"div",47),Yo(1,"span",10),Bs(2),Cc(3,"translate"),jo(),Yo(4,"p",48),Bs(5),Cc(6,"translate"),jo(),jo()),2&t){const t=os(2);sa(2),Vs(kc(3,3,"plot_paper_size")),sa(3),Hs("",t.mCurPaper.size+" ","",kc(6,5,t.mCurPaper.unit),"")}}function L9(t,e){if(1&t){const t=Jo();Yo(0,"div",42),Yo(1,"p",8),Bs(2),Cc(3,"translate"),jo(),Yo(4,"p",49),Bs(5),Cc(6,"translate"),jo(),Yo(7,"app-select",21),es("curResult",(function(e){return Ne(t),os(2).changeExtent(e.item)})),jo(),jo()}if(2&t){const t=os(2);sa(2),Vs(kc(3,4,"print_area")),sa(3),Vs(kc(6,6,"extent_what")),sa(2),Uo("list",t.mPrintExtentOptions)("mCurItem",t.mPrintConfig.extent)}}function z9(t,e){if(1&t&&(Yo(0,"label",50),Bs(1),Cc(2,"translate"),jo()),2&t){const t=e.$implicit;Uo("nzValue",t.value),sa(1),Ns(" ",kc(2,2,t.label)," ")}}function R9(t,e){if(1&t){const t=Jo();Yo(0,"div",14),Yo(1,"label",51),es("ngModelChange",(function(){return Ne(t),os(2).directionChange()})),Bs(2),Cc(3,"translate"),jo(),Yo(4,"input",52),es("ngModelChange",(function(e){return Ne(t),os(2).mPrintConfig.options.scale=e})),jo(),jo()}if(2&t){const t=os(2);sa(2),Vs(kc(3,3,"customScale")),sa(2),Uo("ngModel",t.mPrintConfig.options.scale)("disabled",t.mPrintConfig.options.fullScale)}}function F9(t,e){if(1&t){const t=Jo();Yo(0,"div",53),Yo(1,"p"),Bs(2," X: "),Yo(3,"input",52),es("ngModelChange",(function(e){return Ne(t),os(2).mPrintConfig.offset.x=e})),jo(),Bs(4),Cc(5,"translate"),jo(),Yo(6,"p"),Bs(7," Y: "),Yo(8,"input",52),es("ngModelChange",(function(e){return Ne(t),os(2).mPrintConfig.offset.y=e})),jo(),Bs(9),Cc(10,"translate"),jo(),jo()}if(2&t){const t=os(2);sa(3),Uo("ngModel",t.mPrintConfig.offset.x)("disabled",t.mPrintConfig.offset.isCenter),sa(1),Ns(" ",kc(5,6,"milimeter")," "),sa(4),Uo("ngModel",t.mPrintConfig.offset.y)("disabled",t.mPrintConfig.offset.isCenter),sa(1),Ns(" ",kc(10,8,"milimeter")," ")}}function B9(t,e){if(1&t){const t=Jo();Yo(0,"div",14),Yo(1,"label",51),es("ngModelChange",(function(){return Ne(t),os(2).directionChange()})),Bs(2),Cc(3,"translate"),jo(),Yo(4,"input",52),es("ngModelChange",(function(e){return Ne(t),os(2).mPrintConfig.options.scale=e})),jo(),jo()}if(2&t){const t=os(2);sa(2),Vs(kc(3,3,"customScale")),sa(2),Uo("ngModel",t.mPrintConfig.options.scale)("disabled",t.mPrintConfig.options.fullScale)}}function V9(t,e){if(1&t){const t=Jo();Yo(0,"div",53),Yo(1,"p"),Bs(2," X: "),Yo(3,"input",52),es("ngModelChange",(function(e){return Ne(t),os(2).mPrintConfig.offset.x=e})),jo(),Bs(4),Cc(5,"translate"),jo(),Yo(6,"p"),Bs(7," Y: "),Yo(8,"input",52),es("ngModelChange",(function(e){return Ne(t),os(2).mPrintConfig.offset.y=e})),jo(),Bs(9),Cc(10,"translate"),jo(),jo()}if(2&t){const t=os(2);sa(3),Uo("ngModel",t.mPrintConfig.offset.x)("disabled",t.mPrintConfig.offset.isCenter),sa(1),Ns(" ",kc(5,6,"milimeter")," "),sa(4),Uo("ngModel",t.mPrintConfig.offset.y)("disabled",t.mPrintConfig.offset.isCenter),sa(1),Ns(" ",kc(10,8,"milimeter")," ")}}function N9(t,e){if(1&t){const t=Jo();qo(0),Yo(1,"div",5),Yo(2,"div",6),Yo(3,"div",7),Yo(4,"p",8),Bs(5),Cc(6,"translate"),jo(),Yo(7,"div",9),Yo(8,"span",10),Bs(9),Cc(10,"translate"),jo(),Yo(11,"input",11),es("ngModelChange",(function(e){return Ne(t),os().mPrintConfig.plotName=e})),jo(),jo(),jo(),Yo(12,"div",12),Yo(13,"p",8),Bs(14),Cc(15,"translate"),jo(),Yo(16,"div",13),Yo(17,"div",14),Yo(18,"label",15),es("ngModelChange",(function(e){return Ne(t),os().mPrintConfig.options.lineWeightsOpen=e}))("ngModelChange",(function(){return Ne(t),os().directionChange()})),Bs(19),Cc(20,"translate"),jo(),jo(),Yo(21,"div",16),Yo(22,"div"),Yo(23,"label",15),es("ngModelChange",(function(e){return Ne(t),os().mPrintConfig.options.stampOpen=e}))("ngModelChange",(function(){return Ne(t),os().directionChange()})),Bs(24),Cc(25,"translate"),jo(),gn(),Yo(26,"svg",17),es("click",(function(){return Ne(t),os().showStampModal()})),Xo(27,"use",18),jo(),jo(),Ho(28,T9,3,4,"label",19),jo(),jo(),jo(),fn(),Yo(29,"div",20),Yo(30,"p",8),Bs(31),Cc(32,"translate"),jo(),Yo(33,"app-select",21),es("curResult",(function(e){return Ne(t),os().changePlotType(e)})),jo(),Yo(34,"div",22),Yo(35,"span",10),Bs(36),Cc(37,"translate"),jo(),Yo(38,"app-select",23),es("curResult",(function(e){return Ne(t),os().changePaperId(e)})),jo(),jo(),Ho(39,I9,7,7,"div",24),jo(),Yo(40,"div",25),Yo(41,"nz-tabset",26),es("nzSelectedIndexChange",(function(e){return Ne(t),os().mPrintConfig.plotTabIndex=e}))("nzSelectedIndexChange",(function(e){return Ne(t),os().changeTabIndex(e)}))("click",(function(){return Ne(t),os().directionChange()})),Yo(42,"nz-tab",27),Cc(43,"translate"),Yo(44,"div",28),Ho(45,L9,8,8,"div",29),Yo(46,"div",30),Yo(47,"div",31),Yo(48,"p",8),Bs(49),Cc(50,"translate"),jo(),Yo(51,"nz-radio-group",32),es("ngModelChange",(function(e){return Ne(t),os().mPrintConfig.direction.dir.value=e})),Ho(52,z9,3,4,"label",33),jo(),Yo(53,"div",34),Yo(54,"label",15),es("ngModelChange",(function(e){return Ne(t),os().mPrintConfig.direction.isUpSide=e}))("ngModelChange",(function(){return Ne(t),os().directionChange()})),Bs(55),Cc(56,"translate"),jo(),jo(),jo(),jo(),jo(),Yo(57,"div",35),Yo(58,"div",36),Yo(59,"p",8),Bs(60),Cc(61,"translate"),jo(),Yo(62,"div",37),Yo(63,"div",14),Yo(64,"label",15),es("ngModelChange",(function(e){return Ne(t),os().mPrintConfig.options.fullScale=e}))("ngModelChange",(function(){return Ne(t),os().directionChange()})),Bs(65),Cc(66,"translate"),jo(),jo(),Ho(67,R9,5,5,"div",38),jo(),jo(),Yo(68,"div",39),Yo(69,"p",8),Bs(70),Cc(71,"translate"),jo(),Ho(72,F9,11,10,"div",40),Yo(73,"div",41),Yo(74,"label",15),es("ngModelChange",(function(e){return Ne(t),os().mPrintConfig.offset.isCenter=e})),Bs(75),Cc(76,"translate"),jo(),jo(),jo(),jo(),Yo(77,"div",42),Yo(78,"p",8),Bs(79),Cc(80,"translate"),jo(),Yo(81,"div",41),Yo(82,"app-select",21),es("curResult",(function(e){return Ne(t),os().changeExtent(e.item)})),jo(),jo(),jo(),jo(),Yo(83,"nz-tab",27),Cc(84,"translate"),Yo(85,"div",43),Yo(86,"p",8),Bs(87),Cc(88,"translate"),jo(),Yo(89,"div",44),Yo(90,"span",45),es("click",(function(){return Ne(t),os().showLayerModal()})),Bs(91),Cc(92,"translate"),jo(),Yo(93,"p",46),Bs(94),jo(),jo(),jo(),Yo(95,"div",35),Yo(96,"div",36),Yo(97,"p",8),Bs(98),Cc(99,"translate"),jo(),Yo(100,"div",37),Yo(101,"div",14),Yo(102,"label",15),es("ngModelChange",(function(e){return Ne(t),os().mPrintConfig.options.fullScale=e}))("ngModelChange",(function(){return Ne(t),os().directionChange()})),Bs(103),Cc(104,"translate"),jo(),jo(),Ho(105,B9,5,5,"div",38),jo(),jo(),Yo(106,"div",39),Yo(107,"p",8),Bs(108),Cc(109,"translate"),jo(),Ho(110,V9,11,10,"div",40),Yo(111,"div",41),Yo(112,"label",15),es("ngModelChange",(function(e){return Ne(t),os().mPrintConfig.offset.isCenter=e})),Bs(113),Cc(114,"translate"),jo(),jo(),jo(),jo(),jo(),jo(),jo(),jo(),jo(),$o()}if(2&t){const t=os();sa(5),Vs(kc(6,51,"pageSet")),sa(4),Vs(kc(10,53,"plotName")),sa(2),Uo("ngModel",t.mPrintConfig.plotName),sa(3),Vs(kc(15,55,"plotOptions")),sa(4),Uo("ngModel",t.mPrintConfig.options.lineWeightsOpen),sa(1),Vs(kc(20,57,"plotLinewidthOn")),sa(4),Uo("ngModel",t.mPrintConfig.options.stampOpen),sa(1),Vs(kc(25,59,"plotStampOn")),sa(2),xs("visibility",t.mPrintConfig.options.stampOpen?"visible":"hidden"),sa(2),Uo("ngIf",t.mShowSignature&&t.mForSdk&&t.isShow()),sa(3),Vs(kc(32,61,"plotType")),sa(2),Uo("list",t.mPlotTypeList)("mCurItem",t.mPrintConfig.plotType),sa(3),Vs(kc(37,63,"plot_paper")),sa(2),Uo("contentType",1)("list",t.mPrintConfig.paperConfig)("mCurItem",t.mPrintConfig.paperConfig[t.mCurPaperIndex]),sa(1),Uo("ngIf",!1),sa(2),Uo("nzSelectedIndex",t.mPrintConfig.plotTabIndex),sa(1),Uo("nzTitle",kc(43,65,"print")),sa(3),Uo("ngIf",!1),sa(4),Vs(kc(50,67,"plotOrientation")),sa(2),Uo("ngModel",t.mPrintConfig.direction.dir.value),sa(1),Uo("ngForOf",t.mPlotDirectionList),sa(2),Uo("ngModel",t.mPrintConfig.direction.isUpSide),sa(1),Vs(kc(56,69,"plotUpside")),sa(5),Vs(kc(61,71,"plotScale")),sa(4),Uo("ngModel",t.mPrintConfig.options.fullScale),sa(1),Vs(kc(66,73,"fullScale")),sa(2),Uo("ngIf",!1),sa(3),Vs(kc(71,75,"plotoffset")),sa(2),Uo("ngIf",!1),sa(2),Uo("ngModel",t.mPrintConfig.offset.isCenter),sa(1),Vs(kc(76,77,"plotCenter")),sa(4),Vs(kc(80,79,"print_area")),sa(3),Uo("list",t.mPrintExtentOptions)("mCurItem",t.mPrintConfig.extent),sa(1),Uo("nzTitle",kc(84,81,"batchPlot")),sa(4),Vs(kc(88,83,"blockAndLayer")),sa(4),Vs(kc(92,85,"layerName")),sa(2),Uo("nzTooltipTitle",t.mPrintConfig.batchPlot.layer.layersStr),sa(1),Vs(t.mPrintConfig.batchPlot.layer.layersStr),sa(4),Vs(kc(99,87,"plotScale")),sa(4),Uo("ngModel",t.mPrintConfig.options.fullScale),sa(1),Vs(kc(104,89,"fullScale")),sa(2),Uo("ngIf",!1),sa(3),Vs(kc(109,91,"plotoffset")),sa(2),Uo("ngIf",!1),sa(2),Uo("ngModel",t.mPrintConfig.offset.isCenter),sa(1),Vs(kc(114,93,"plotCenter"))}}function H9(t,e){if(1&t){const t=Jo();Yo(0,"div",54),Yo(1,"button",55),es("click",(function(){return Ne(t),os().handleCancel()})),Bs(2),Cc(3,"translate"),jo(),Yo(4,"button",55),es("click",(function(){return Ne(t),os().handleOk(0)})),Bs(5),Cc(6,"translate"),jo(),Yo(7,"button",56),es("click",(function(){return Ne(t),os().handleOk(1)})),Bs(8),Cc(9,"translate"),jo(),jo()}2&t&&(sa(2),Vs(kc(3,3,"cancel")),sa(3),Vs(kc(6,5,"download")),sa(3),Vs(kc(9,7,"print")))}const G9=function(){return{top:"40px"}};let Z9=(()=>{class t{constructor(t,e){this.settingService=t,this.changeDetectorRef=e,this.mPrintExtentOptions=[],this.mPlotDirectionList=[],this.mShowPrintModal=!1,this.mPlotTypeList=[],this.mPreviewSrc="",this.mPlotPaperList=new Map,this.mCurPaperIndex=-1,this.mIsVisible=!1,this.mLayoutName="",this.mStampVisible=!1,this.mFrameStyles=[],this.mLayerVisible=!1,this.mShowSignature=!0,this.mForSdk=tU.forSDK,MF.instance().subscribeBroardcast(_F.CmdModalVisible,this)}ngOnInit(){}ngOnDestroy(){MF.instance().unsubscribeBroardcast(_F.CmdModalVisible,this)}notify(t,e){if("object"==typeof e&&t===_F.CmdModalVisible&&"plotModal"===e.type&&e.data){RU.plotSettings?this.mPrintConfig=RU.plotSettings:(this.mPrintConfig=JSON.parse(JSON.stringify(DU)),this.mPrintConfig.plotName=this.getDefaultName(),this.mShowSignature=!0,this.addCustomStamp()),this.mPrintExtentOptions=yU,this.removeExtensionSelecton()&&(this.mPrintExtentOptions=this.mPrintExtentOptions.filter((t=>t.value!==pU.Extension)),this.mPrintConfig.extent.value===pU.Extension&&(this.mPrintConfig.extent=this.mPrintExtentOptions[0])),this.mPlotTypeList=vU,this.mPlotDirectionList=wU,this.mPlotPaperList=CU,this.mCurPaper=this.mPrintConfig.paperConfig[this.mPrintConfig.paperIndex],this.mCurPaperIndex=this.mPrintConfig.paperIndex,this.mFrameStyles=MU;let t="",n=(new sB).getDB();if(n){let e=n.getCurLayout();e&&(t=e.mLayoutName,/^model$/i.test(t)&&(t=qF.mLanguagePackage.model))}switch(this.mLayoutName=qF.mLanguagePackage.print+" - "+t,e.data.subCommand){case"downloadPdf":this.changePlotType({item:{label:"pdf",value:0,disabled:!1},index:0}),this.handleOk(bU.download);break;case"downloadPng":this.changePlotType({item:{label:"png",value:2,disabled:!1},index:1}),this.handleOk(bU.download);break;case"downloadJpg":this.changePlotType({item:{label:"jpg",value:3,disabled:!1},index:2}),this.handleOk(bU.download);break;default:this.mIsVisible=e.data.visible}this.changeDetectorRef.detectChanges()}}removeExtensionSelecton(){if(U5._instance&&U5._instance.mGs){let t=U5._instance.mGs.mCurView;if(t){let e=t.mViewportTableRec.getViewInfo();if(e.mDBExtends.mMax>=new QR(XR.ZWMAX_RANGE,XR.ZWMAX_RANGE,XR.ZWMAX_RANGE)&&e.mDBExtends.mMin<=new QR(-XR.ZWMAX_RANGE,-XR.ZWMAX_RANGE,-XR.ZWMAX_RANGE))return!0}}return!1}changeExtent(t){this.mPrintConfig.extent=t,t.value===pU.Window&&(this.mIsVisible=!1,RU.setPlotSettings(this.mPrintConfig),(new OF).pub(EF.plotModal,pU.Window)),this.changeDetectorRef.detectChanges()}handleCancel(){null!==zU.instance&&(zU.instance.mBranchStatus=LU.End,this.mIsVisible=!1,(new OF).pub(EF.plotModal,!1),this.changeDetectorRef.detectChanges())}handleOk(t){""===this.mPrintConfig.plotName&&(this.mPrintConfig.plotName=this.getDefaultName()),void 0!==this.mPrintConfig.paperConfig[this.mPrintConfig.paperIndex].paperId&&(this.mPrintConfig.paperIndex=this.mPrintConfig.paperConfig[this.mPrintConfig.paperIndex].paperId),null!==zU.instance&&(zU.instance.mBranchStatus=LU.SetFirstPoint,this.mPrintConfig.resultType=t,RU.setPlotSettings(this.mPrintConfig),this.mIsVisible=!1,(new OF).pub(EF.plotModal,"plot"),this.changeDetectorRef.detectChanges())}changePaperId(t){this.mCurPaper=t.item,this.mPrintConfig.paperIndex=this.mCurPaperIndex=t.index,this.changeDetectorRef.detectChanges()}getPreviewSrc(){let t="",e=document.getElementById("mainCanvas");if(this.mPrintConfig.extent.value===pU.Direct)t=e.toDataURL();else{if(!e||!RU.mCurView||!zU.instance)return"";let n=document.createElement("canvas"),i=n.getContext("2d"),r=new QR(zU.instance.mMinPoint.mX,zU.instance.mMaxPoint.mY,0),a=new QR(zU.instance.mMaxPoint.mX,zU.instance.mMinPoint.mY,0);r.mulMatrix(RU.mCurView.worldToDeviceMatrix()),a.mulMatrix(RU.mCurView.worldToDeviceMatrix());let o=a.mX-r.mX,s=a.mY-r.mY;n.width=o,n.height=s,i.drawImage(e,r.mX,r.mY,o,s,0,0,o,s),t=n.toDataURL()}return t}changePlotType(t){this.mPrintConfig.plotType=t.item,this.mPrintConfig.paperConfig=CU.get(t.item.value).papers,this.mPrintConfig.paperIndex=CU.get(t.item.value).defaultIndex,this.mCurPaper=this.mPrintConfig.paperConfig[this.mPrintConfig.paperIndex],this.mCurPaperIndex=this.mPrintConfig.paperIndex,this.mShowSignature=this.mPrintConfig.plotType.value===gU.pdf,this.changeDetectorRef.detectChanges()}directionChange(){this.changeDetectorRef.detectChanges()}getDefaultName(){let t="";U5._instance&&U5._instance.mGs&&(t=U5._instance.mGs.mFileName);let e=t.lastIndexOf("."),n="",i=(new sB).getDB();if(i){let t=i.getCurLayout();t&&(n=t.mLayoutName,/^model$/i.test(n)&&(n=qF.mLanguagePackage.model))}return t.slice(0,e)+"-"+n}showStampModal(){this.mIsVisible=!1,this.mStampVisible=!0,this.changeDetectorRef.detectChanges()}closeStampModal(t){if(t===OU.showParent)this.mIsVisible=!0;else if(t===OU.showSelf)return void(this.mStampVisible=!0);this.mStampVisible=!1,this.changeDetectorRef.detectChanges()}showLayerModal(){this.mIsVisible=!1,this.mLayerVisible=!0,this.changeDetectorRef.detectChanges()}closeLayerModal(t){t===OU.showParent&&(this.mIsVisible=!0),this.mLayerVisible=!1,this.changeDetectorRef.detectChanges()}addCustomStamp(){let t=XF.instance().getItem("stamp");t&&(this.mPrintConfig.options.stamp.stampFiled=t.stampFiled,this.mPrintConfig.options.stamp.userFiled=t.userFiled);let e=XF.instance().getItem("stampAdvanced");e&&(this.mPrintConfig.options.stamp.advanced=e)}changeTabIndex(t){t===_U.batchPlot?(this.mPrintConfig.plotType!==gU.pdf&&this.changePlotType({item:vU[0]}),this.mPlotTypeList=vU.map((t=>Object.assign(Object.assign({},t),{disabled:t.value!==gU.pdf})))):this.mPlotTypeList=vU.map((t=>Object.assign(Object.assign({},t),{disabled:!1})))}isShow(){return KF.commandButton.Sign}}return t["ɵfac"]=function(e){return new(e||t)(Zo(l8),Zo(Gl))},t["ɵcmp"]=qt({type:t,selectors:[["app-print_modal"]],decls:6,vars:10,consts:[[3,"nzVisible","nzStyle","nzTitle","nzFooter","nzMaskClosable","nzVisibleChange","nzOnCancel"],[4,"nzModalContent"],["footer",""],[3,"mStampVisible","mPrintConfig","closeModal"],[3,"mLayerVisible","mPrintConfig","closeModal"],["appStopPropagation","",1,"container"],[1,"print"],[1,"pageSetting","plotItem"],[1,"sub"],[1,"plotName"],[1,"name"],[1,"name_content",3,"ngModel","ngModelChange"],[1,"plotOptions","plotItem"],[1,"options"],[1,"center"],["nz-checkbox","",3,"ngModel","ngModelChange"],[1,"center",2,"display","flex"],["aria-hidden","true",1,"icon","svg-hover",3,"click"],[0,"xlink","href","#icon-chilun"],["nz-checkbox","",3,"ngModel","ngModelChange",4,"ngIf"],[1,"plotType","plotItem"],[3,"list","mCurItem","curResult"],[1,"paper"],[3,"contentType","list","mCurItem","curResult"],["class","paperSize plotName",4,"ngIf"],[1,"tabs"],["nzSize","small",3,"nzSelectedIndex","nzSelectedIndexChange","click"],[3,"nzTitle"],[1,"plotCenter"],["class","extent plotItem item",4,"ngIf"],[1,"graphic","item"],[1,"graphicDirection","plotItem"],[1,"margin-top10",3,"ngModel","ngModelChange"],["nz-radio","",3,"nzValue",4,"ngFor","ngForOf"],[1,"upside"],[1,"group"],[1,"plotScale","plotItem"],[1,"options","margin-top10"],["class","center",4,"ngIf"],[1,"plotOffset","plotItem"],["class","offset",4,"ngIf"],[1,"margin-top10"],[1,"extent","plotItem","item"],[1,"blockAndLayer","plotItem"],[1,"blockAndLayerSelect","margin-top10"],[1,"layer",3,"click"],["nz-tooltip","","nzTooltipPlacement","bottomLeft",1,"layers","disabled",3,"nzTooltipTitle"],[1,"paperSize","plotName"],[1,"name_content"],[1,"title"],["nz-radio","",3,"nzValue"],[3,"ngModelChange"],["type","text","nz-input","",3,"ngModel","disabled","ngModelChange"],[1,"offset"],[1,"footer"],["nz-button","","nzType","default","appStopPropagation","",3,"click"],["nz-button","","nzType","primary","appStopPropagation","",3,"click"]],template:function(t,e){if(1&t&&(Yo(0,"nz-modal",0),es("nzVisibleChange",(function(t){return e.mIsVisible=t}))("nzOnCancel",(function(){return e.handleCancel()})),Ho(1,N9,115,95,"ng-container",1),Ho(2,H9,10,9,"ng-template",null,2,Yc),jo(),Yo(4,"app-stamp_modal",3),es("closeModal",(function(t){return e.closeStampModal(t)})),jo(),Yo(5,"app-layer_modal",4),es("closeModal",(function(t){return e.closeLayerModal(t)})),jo()),2&t){const t=Go(3);Uo("nzVisible",e.mIsVisible)("nzStyle",gc(9,G9))("nzTitle",e.mLayoutName)("nzFooter",t)("nzMaskClosable",!1),sa(4),Uo("mStampVisible",e.mStampVisible)("mPrintConfig",e.mPrintConfig),sa(1),Uo("mLayerVisible",e.mLayerVisible)("mPrintConfig",e.mPrintConfig)}},directives:[zT,TT,M9,A9,i7,np,xp,Np,kM,Yd,b9,Xz,Wz,cI,Ud,XT,hI,s_,bM,uM,sM],pipes:[H3],styles:[".print[_ngcontent-%COMP%]{width:500px;padding:15px;background-color:#f0f0f0}.print[_ngcontent-%COMP%] .plotItem[_ngcontent-%COMP%]{position:relative;padding:10px;border:1px solid #ccc;margin-bottom:15px}.print[_ngcontent-%COMP%] .plotItem[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.print[_ngcontent-%COMP%] .plotItem[_ngcontent-%COMP%] .sub[_ngcontent-%COMP%]{position:absolute;top:0;left:5px;transform:translateY(-50%);background-color:#f0f0f0}.print[_ngcontent-%COMP%] .plotName[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.print[_ngcontent-%COMP%] .plotName[_ngcontent-%COMP%] .name_content[_ngcontent-%COMP%]{width:300px}.print[_ngcontent-%COMP%] .tabs[_ngcontent-%COMP%]{padding:10px;border:1px solid #d9d9d9}.print[_ngcontent-%COMP%] .plotType[_ngcontent-%COMP%] .paper[_ngcontent-%COMP%]{margin-top:10px}.print[_ngcontent-%COMP%] .extent[_ngcontent-%COMP%]{position:relative;padding:10px;border:1px solid #ccc}.print[_ngcontent-%COMP%] .extent[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin-bottom:5px;font-size:13px}.print[_ngcontent-%COMP%] .group[_ngcontent-%COMP%]{display:flex}.print[_ngcontent-%COMP%] .plotScale[_ngcontent-%COMP%], .print[_ngcontent-%COMP%] .plotOffset[_ngcontent-%COMP%]{width:49%}.print[_ngcontent-%COMP%] .plotOffset[_ngcontent-%COMP%]{display:flex;margin-left:10px}.print[_ngcontent-%COMP%] .plotOffset[_ngcontent-%COMP%] .offset[_ngcontent-%COMP%]{flex:1;margin-right:10px}.print[_ngcontent-%COMP%] .plotOffset[_ngcontent-%COMP%] .offset[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{font-size:10px;width:10em;height:2em;line-height:2em;border:1px solid #ccc}.print[_ngcontent-%COMP%] .plotOffset[_ngcontent-%COMP%] .center[_ngcontent-%COMP%]{flex:1;display:flex;justify-content:center;align-items:center}.print[_ngcontent-%COMP%] .graphic[_ngcontent-%COMP%]{display:flex;justify-content:space-around}.print[_ngcontent-%COMP%] .graphic[_ngcontent-%COMP%] .graphicDirection[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex:1}.print[_ngcontent-%COMP%] .graphic[_ngcontent-%COMP%] .upside[_ngcontent-%COMP%]{width:40%;display:flex;align-items:center;padding-left:20px}.print[_ngcontent-%COMP%] .plotOptions[_ngcontent-%COMP%] .options[_ngcontent-%COMP%], .print[_ngcontent-%COMP%] .plotScale[_ngcontent-%COMP%] .options[_ngcontent-%COMP%]{display:flex;align-items:center}.print[_ngcontent-%COMP%] .plotOptions[_ngcontent-%COMP%] .options[_ngcontent-%COMP%] .center[_ngcontent-%COMP%], .print[_ngcontent-%COMP%] .plotScale[_ngcontent-%COMP%] .options[_ngcontent-%COMP%] .center[_ngcontent-%COMP%]{margin-right:40px}.print[_ngcontent-%COMP%] .plotOptions[_ngcontent-%COMP%] .options[_ngcontent-%COMP%] .center[_ngcontent-%COMP%]:last-of-type, .print[_ngcontent-%COMP%] .plotScale[_ngcontent-%COMP%] .options[_ngcontent-%COMP%] .center[_ngcontent-%COMP%]:last-of-type{margin-right:0}.print[_ngcontent-%COMP%] .plotOptions[_ngcontent-%COMP%] .svg-hover[_ngcontent-%COMP%], .print[_ngcontent-%COMP%] .plotScale[_ngcontent-%COMP%] .svg-hover[_ngcontent-%COMP%]{cursor:pointer}.print[_ngcontent-%COMP%] .plotOptions[_ngcontent-%COMP%] .svg-hover[_ngcontent-%COMP%]:hover, .print[_ngcontent-%COMP%] .plotScale[_ngcontent-%COMP%] .svg-hover[_ngcontent-%COMP%]:hover{color:#078bed}.print[_ngcontent-%COMP%] .plotScale[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:170px;margin-left:10px}.print[_ngcontent-%COMP%] .stampfiled[_ngcontent-%COMP%] .checkbox[_ngcontent-%COMP%]{overflow:hidden}.print[_ngcontent-%COMP%] .stampfiled[_ngcontent-%COMP%] .checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{float:left;width:30%}.print[_ngcontent-%COMP%] .userfiled[_ngcontent-%COMP%] .userFiledInput[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.print[_ngcontent-%COMP%] .userfiled[_ngcontent-%COMP%] .userFiledInput[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:48%}.print[_ngcontent-%COMP%] .blockAndLayer[_ngcontent-%COMP%] .blockAndLayerSelect[_ngcontent-%COMP%]{display:flex;align-items:center}.print[_ngcontent-%COMP%] .blockAndLayer[_ngcontent-%COMP%] .blockAndLayerSelect[_ngcontent-%COMP%] .layer[_ngcontent-%COMP%]{height:21px;line-height:18px;margin-right:10px;padding:0 10px;border:1px solid #999;background-color:#e1e1e1;cursor:pointer}.print[_ngcontent-%COMP%] .blockAndLayer[_ngcontent-%COMP%] .blockAndLayerSelect[_ngcontent-%COMP%] .layers[_ngcontent-%COMP%]{flex:1}.print[_ngcontent-%COMP%] .blockAndLayer[_ngcontent-%COMP%] .blockAndLayerSelect[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]{padding:0 7px;height:1.5715em;line-height:1.5715em;background-color:#f5f5f5;color:#00000040;cursor:not-allowed;opacity:1;border:1px solid #d9d9d9;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.print[_ngcontent-%COMP%] .plotCenter[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.print[_ngcontent-%COMP%] .plotCenter[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{width:100%}.footer[_ngcontent-%COMP%] .cancel[_ngcontent-%COMP%]{border:1px solid #ccc;background-color:#fff;color:#000}.footer[_ngcontent-%COMP%] .confirm[_ngcontent-%COMP%]{background-color:#078bed;color:#fff}.flexRowBetween[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap}.print[_ngcontent-%COMP%] .ant-radio-group{width:60%}.print[_ngcontent-%COMP%] .ant-checkbox-wrapper+.ant-checkbox-wrapper{margin:0!important}.margin-top10[_ngcontent-%COMP%]{margin-top:10px}"]}),t})();function U9(t,e){if(1&t&&(Yo(0,"div",7),Yo(1,"div",8),Bs(2),jo(),Yo(3,"div"),Bs(4),jo(),Yo(5,"div"),Bs(6),jo(),Yo(7,"div"),Bs(8),jo(),jo()),2&t){const t=e.$implicit;sa(2),Vs(t.name),sa(2),Vs(t.x),sa(2),Vs(t.y),sa(2),Vs(t.z)}}function W9(t,e){if(1&t&&(qo(0),Yo(1,"div",2),Yo(2,"div",3),Yo(3,"div",4),Bs(4),Cc(5,"translate"),Cc(6,"translate"),jo(),Yo(7,"div",5),Ho(8,U9,9,4,"div",6),jo(),Yo(9,"div",5),Yo(10,"div",7),Yo(11,"span"),Bs(12,"UCSVP: "),jo(),Yo(13,"span"),Bs(14),jo(),jo(),Yo(15,"div",7),Yo(16,"span"),Bs(17,"UCSFOLLOW: "),jo(),Yo(18,"span"),Bs(19),jo(),jo(),jo(),jo(),jo(),$o()),2&t){const t=os();sa(4),Hs(" ",kc(5,5,"relative")," ",kc(6,7,"world")," "),sa(4),Uo("ngForOf",t.ucsInfo),sa(6),Vs(t.ucsvp),sa(5),Vs(t.ucsfollow)}}let Y9=(()=>{class t{constructor(t){this.changeDetectorRef=t,this.mIsVisible=!1,this.ucsInfo=[],this.ucsvp=1,this.ucsfollow=0,MF.instance().subscribeBroardcast(_F.CmdModalVisible,this)}ngOnInit(){}ngOnDestroy(){this.ucsInfo=[],MF.instance().unsubscribeBroardcast(_F.CmdModalVisible,this)}notify(t,e){if("object"==typeof e&&t===_F.CmdModalVisible&&"ucsmanModal"===e.type&&e.data){const t=jF.instance().getCurView();if(null===t)return;let n=t.mViewportTableRec.getViewInfo(),i=n.mUcsOriginConstant,r=n.mUcsXAxisConstant,a=n.mUcsYAxisConstant,o=r.crossProduct(a);this.ucsInfo=[],this.ucsInfo.push({name:qF.mLanguagePackage.origin,x:XR.scienceCount(i.mX.toFixed(4)),y:XR.scienceCount(i.mY.toFixed(4)),z:XR.scienceCount(i.mZ.toFixed(4))},{name:qF.mLanguagePackage.xAxis,x:XR.scienceCount(r.mX.toFixed(4)),y:XR.scienceCount(r.mY.toFixed(4)),z:XR.scienceCount(r.mZ.toFixed(4))},{name:qF.mLanguagePackage.yAxis,x:XR.scienceCount(a.mX.toFixed(4)),y:XR.scienceCount(a.mY.toFixed(4)),z:XR.scienceCount(a.mZ.toFixed(4))},{name:qF.mLanguagePackage.zAxis,x:XR.scienceCount(o.mX.toFixed(4)),y:XR.scienceCount(o.mY.toFixed(4)),z:XR.scienceCount(o.mZ.toFixed(4))}),this.ucsvp=n.mbIsUcsSavedWithViewport?1:0,this.ucsfollow=n.mbUcsFollowMode?1:0,this.mIsVisible=e.data.visible,this.changeDetectorRef.detectChanges()}}handleOk(){this.mIsVisible=!1,(new OF).pub(EF.ucsmanModal,!0),this.changeDetectorRef.detectChanges()}handleCancel(){this.mIsVisible=!1,(new OF).pub(EF.ucsmanModal,!1),this.changeDetectorRef.detectChanges()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Gl))},t["ɵcmp"]=qt({type:t,selectors:[["app-ucsman-modal"]],decls:3,vars:5,consts:[[3,"nzVisible","nzMaskClosable","nzTitle","nzVisibleChange","nzOnCancel","nzOnOk"],[4,"nzModalContent"],[1,"container"],[1,"content"],[1,"ucs-reference"],[1,"ucs-info"],["class","item",4,"ngFor","ngForOf"],[1,"item"],[1,"name"]],template:function(t,e){1&t&&(Yo(0,"nz-modal",0),es("nzVisibleChange",(function(t){return e.mIsVisible=t}))("nzOnCancel",(function(){return e.handleCancel()}))("nzOnOk",(function(){return e.handleOk()})),Cc(1,"translate"),Ho(2,W9,20,9,"ng-container",1),jo()),2&t&&Uo("nzVisible",e.mIsVisible)("nzMaskClosable",!1)("nzTitle",kc(1,3,"ucs"))},directives:[zT,TT,Ud],pipes:[H3],styles:[".ucs-reference[_ngcontent-%COMP%]{margin:5px 0 0 10px}.ucs-info[_ngcontent-%COMP%]{display:flex;margin:12px 0 10px}.ucs-info[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{width:120px;border:1px solid #f0f0f0;margin-left:10px;padding-left:8px}.ucs-info[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{width:40px;background:#fff;margin-top:-12px;display:flex;justify-content:center}.ucs-info[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:last-of-type{margin-right:10px}"]}),t})();var j9,X9,q9=((X9=q9||(q9={}))[X9.R14=21]="R14",X9[X9.AutoCAD2000=23]="AutoCAD2000",X9[X9.AutoCAD2004=25]="AutoCAD2004",X9[X9.AutoCAD2007=27]="AutoCAD2007",X9[X9.AutoCAD2010=29]="AutoCAD2010",X9[X9.AutoCAD2013=31]="AutoCAD2013",X9[X9.AutoCAD2018=33]="AutoCAD2018",q9),$9=((j9=$9||($9={}))[j9.Dwg=0]="Dwg",j9[j9.Dxf=1]="Dxf",$9);const K9={format:"",version:""},J9={formatOfOption:[{label:"options_format_select1",value:""},{label:"DWG",value:$9.Dwg},{label:"DXF",value:$9.Dxf}],versionOfOption:[{label:"options_version_select1",value:""},{label:"AutoCAD 2000",value:q9.AutoCAD2000},{label:"AutoCAD 2004",value:q9.AutoCAD2004},{label:"AutoCAD 2007",value:q9.AutoCAD2007},{label:"AutoCAD 2010",value:q9.AutoCAD2010},{label:"AutoCAD 2013",value:q9.AutoCAD2013},{label:"AutoCAD 2018",value:q9.AutoCAD2018},{label:"AutoCAD R14",value:q9.R14}]};function Q9(t,e){if(1&t&&(Xo(0,"nz-option",30),Cc(1,"translate")),2&t){const t=e.$implicit;Uo("nzValue",t.value)("nzLabel",kc(1,2,t.label))}}function ttt(t,e){if(1&t&&(Xo(0,"nz-option",30),Cc(1,"translate")),2&t){const t=e.$implicit;Uo("nzValue",t.value)("nzLabel",kc(1,2,t.label))}}function ett(t,e){if(1&t){const t=Jo();Yo(0,"div",22),Yo(1,"div",4),Bs(2),Cc(3,"translate"),gn(),Yo(4,"svg",23),Cc(5,"translate"),Xo(6,"use",24),jo(),jo(),fn(),Yo(7,"div",25),Yo(8,"nz-select",26),es("ngModelChange",(function(e){return Ne(t),os().selectedValue.format=e})),Ho(9,Q9,2,4,"nz-option",27),jo(),jo(),Yo(10,"div",28),Yo(11,"nz-select",29),es("ngModelChange",(function(e){return Ne(t),os().selectedValue.version=e})),Ho(12,ttt,2,4,"nz-option",27),jo(),jo(),jo()}if(2&t){const t=os();sa(2),Ns("",kc(3,10,"file_saveFormat")," "),sa(2),Uo("nzTooltipTitle",kc(5,12,"options_format_tip")),sa(4),Uo("nzDropdownMatchSelectWidth",!1)("nzDisabled",t.mIsEdit)("ngModel",t.selectedValue.format),sa(1),Uo("ngForOf",t.fileOptions.formatOfOption),sa(2),Uo("nzDisabled",t.mIsEdit)("nzDropdownMatchSelectWidth",!1)("ngModel",t.selectedValue.version),sa(1),Uo("ngForOf",t.fileOptions.versionOfOption)}}function ntt(t,e){if(1&t&&(Yo(0,"label",31),Bs(1),jo()),2&t){const t=e.$implicit;Uo("nzValue",t.value),sa(1),Vs(t.label)}}let itt=(()=>{class t{constructor(t,e){this.settingService=t,this.cdr=e,this.destroy$=new A,this.mIsEdit=!1,this.mCursorSize=15,this.mZoomLevel=1.1,this.mCommentSetting={commentsPageSize:40,continuousDraw:{label:qF.mLanguagePackage.continuousDraw,value:"continuousDraw",checked:!1}},this.selectedValue=K9,this.fileOptions=J9,this.themeStyleValue="dark",this.themeStyleOptions=[{label:qF.mLanguagePackage.theme_dark,value:"dark"},{label:qF.mLanguagePackage.theme_light,value:"light"}]}ngOnInit(){this.mIsEdit=!(!U5._instance.mGs||!U5._instance.mGs.isInEditMode()),this.settingService.pageConfig$.pipe(aC(this.destroy$)).subscribe((t=>{let e=t.options,n=XF.instance().getItem("cloud2d-theme-style")||"dark";this.mCursorSize=e.cursorSize,this.mZoomLevel=100*e.zoomLevel-100,this.mCommentSetting.commentsPageSize=e.commentsPageSize,this.mCommentSetting.continuousDraw.checked=e.continuousDraw,this.selectedValue.format=e.format,this.selectedValue.version=e.version,this.themeStyleValue=n}))}ngAfterViewInit(){this.sliderComponents.forEach((t=>{const e=Nx(t.slider.nativeElement,"mousedown"),n=Nx(document,"mousemove"),i=Nx(document,"mouseup");J(e.pipe(Ju((()=>n.pipe(aC(i))))),Nx(t.slider.nativeElement,"click")).subscribe((()=>{this.cdr.detectChanges()}))}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}submit(){let t={cursorSize:this.mCursorSize,zoomLevel:(Math.floor(this.mZoomLevel)+100)/100,commentsPageSize:Math.floor(this.mCommentSetting.commentsPageSize),continuousDraw:this.mCommentSetting.continuousDraw.checked,format:this.selectedValue.format,version:this.selectedValue.version};XF.instance().setItem("cloud2d-theme-style",this.themeStyleValue);let e=this.settingService.pageConfig$.getValue();e.options=t,this.settingService.pageConfig$.next(e);try{MF.instance().broardcast(_F.GsInteraction,{type:"makeOptionsEffective"}),U5._instance&&U5._instance.mGs&&U5._instance.mGs.changeTheme(this.themeStyleValue)}catch(t){}}inputFormat(t){return Math.floor(t)+"%"}sliderFormat(t){return t+"%"}commentsPageSizeFormat(t){return Math.floor(t)}continuousDrawChange(t){this.cdr.detectChanges()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(l8),Zo(Gl))},t["ɵcmp"]=qt({type:t,selectors:[["app-options-block"]],viewQuery:function(t,e){if(1&t&&Nc(jL,5),2&t){let t;Vc(t=Gc())&&(e.sliderComponents=t)}},decls:46,vars:47,consts:[[1,"container"],[1,"item","cursor"],["nz-row","",1,"title"],["nz-row","",1,"cursor-size"],["nz-col","","nzOffset","1","nzSpan","4",1,"name","vertical-center"],["nz-col","","nzSpan","4",1,"input"],[3,"nzMin","nzMax","ngModel","ngModelChange"],["nz-col","","nzOffset","1","nzSpan","14",1,"slider"],["nz-row","",1,"scale-factory"],[3,"nzMin","nzMax","nzStep","nzFormatter","ngModel","ngModelChange"],[3,"nzMin","nzMax","nzStep","nzTipFormatter","ngModel","ngModelChange"],[1,"item","commentPanel"],["nz-row","",1,"show-comment-number"],[3,"nzStep","nzMin","nzMax","nzFormatter","ngModel","ngModelChange"],["nz-col","","nzOffset","1","nzSpan","14",1,"checkbox","vertical-center"],["nz-checkbox","",3,"ngModel","ngModelChange"],[1,"item","file"],["class","save-format","nz-row","",4,"ngIf"],["nz-row","",1,"default-background"],["nz-col","","nzSpan","19",1,"radio"],[3,"ngModel","ngModelChange"],["nz-radio","",3,"nzValue",4,"ngFor","ngForOf"],["nz-row","",1,"save-format"],["aria-hidden","true","nzTooltipColor","#555","nzTooltipPlacement","bottomLeft","nz-button","","nz-tooltip","",1,"icon","svg-hover",3,"nzTooltipTitle"],[0,"xlink","href","#icon-tishi"],["nz-col","","nzSpan","4",1,"format"],["nzShowSearch","",3,"nzDropdownMatchSelectWidth","nzDisabled","ngModel","ngModelChange"],[3,"nzValue","nzLabel",4,"ngFor","ngForOf"],["nz-col","","nzOffset","1","nzSpan","14",1,"version"],["nzShowSearch","",3,"nzDisabled","nzDropdownMatchSelectWidth","ngModel","ngModelChange"],[3,"nzValue","nzLabel"],["nz-radio","",3,"nzValue"]],template:function(t,e){1&t&&(Yo(0,"div",0),Yo(1,"div",1),Yo(2,"div",2),Bs(3),Cc(4,"translate"),jo(),Yo(5,"div",3),Yo(6,"div",4),Bs(7),Cc(8,"translate"),jo(),Yo(9,"div",5),Yo(10,"nz-input-number",6),es("ngModelChange",(function(t){return e.mCursorSize=t})),jo(),jo(),Yo(11,"div",7),Yo(12,"nz-slider",6),es("ngModelChange",(function(t){return e.mCursorSize=t}))("ngModelChange",(function(t){return e.continuousDrawChange(t)})),jo(),jo(),jo(),Yo(13,"div",8),Yo(14,"div",4),Bs(15),Cc(16,"translate"),jo(),Yo(17,"div",5),Yo(18,"nz-input-number",9),es("ngModelChange",(function(t){return e.mZoomLevel=t})),jo(),jo(),Yo(19,"div",7),Yo(20,"nz-slider",10),es("ngModelChange",(function(t){return e.mZoomLevel=t}))("ngModelChange",(function(t){return e.continuousDrawChange(t)})),jo(),jo(),jo(),jo(),Yo(21,"div",11),Yo(22,"div",2),Bs(23),Cc(24,"translate"),jo(),Yo(25,"div",12),Yo(26,"div",4),Bs(27),Cc(28,"translate"),jo(),Yo(29,"div",5),Yo(30,"nz-input-number",13),es("ngModelChange",(function(t){return e.mCommentSetting.commentsPageSize=t})),jo(),jo(),Yo(31,"div",14),Yo(32,"label",15),es("ngModelChange",(function(t){return e.mCommentSetting.continuousDraw.checked=t}))("ngModelChange",(function(t){return e.continuousDrawChange(t)})),Bs(33),jo(),jo(),jo(),jo(),Yo(34,"div",16),Yo(35,"div",2),Bs(36),Cc(37,"translate"),jo(),Ho(38,ett,13,14,"div",17),Yo(39,"div",18),Yo(40,"div",4),Bs(41),Cc(42,"translate"),jo(),Yo(43,"div",19),Yo(44,"nz-radio-group",20),es("ngModelChange",(function(t){return e.themeStyleValue=t})),Ho(45,ntt,2,2,"label",21),jo(),jo(),jo(),jo(),jo()),2&t&&(sa(3),Vs(kc(4,33,"mouseSetting")),sa(4),Vs(kc(8,35,"optCursorSize")),sa(3),Uo("nzMin",1)("nzMax",100)("ngModel",e.mCursorSize),sa(2),Uo("nzMin",1)("nzMax",100)("ngModel",e.mCursorSize),sa(3),Vs(kc(16,37,"optZoomLevel")),sa(3),Uo("nzMin",5)("nzMax",100)("nzStep",5)("nzFormatter",e.inputFormat)("ngModel",e.mZoomLevel),sa(2),Uo("nzMin",5)("nzMax",100)("nzStep",5)("nzTipFormatter",e.inputFormat)("ngModel",e.mZoomLevel),sa(3),Vs(kc(24,39,"commentSetting")),sa(4),Vs(kc(28,41,"commentsPageSize")),sa(3),Uo("nzStep",5)("nzMin",1)("nzMax",100)("nzFormatter",e.commentsPageSizeFormat)("ngModel",e.mCommentSetting.commentsPageSize),sa(2),Uo("ngModel",e.mCommentSetting.continuousDraw.checked),sa(1),Vs(e.mCommentSetting.continuousDraw.label),sa(3),Vs(kc(37,43,"file_setting")),sa(2),Uo("ngIf",!1),sa(3),Vs(kc(42,45,"default_open_bg")),sa(3),Uo("ngModel",e.themeStyleValue),sa(1),Uo("ngForOf",e.themeStyleOptions))},directives:[xA,CA,PA,xp,Np,jL,kM,Yd,cI,Ud,sM,XT,EL,PL,hI],pipes:[H3],styles:[".container[_ngcontent-%COMP%]{width:650px;padding:30px 40px;color:#555}.container[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{margin-bottom:20px}.container[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:14px}.container[_ngcontent-%COMP%] .ant-row[_ngcontent-%COMP%]{margin-bottom:15px;font-size:12px}.container[_ngcontent-%COMP%] .ant-select[_ngcontent-%COMP%]{min-width:90px}.container[_ngcontent-%COMP%] .ant-radio-group[_ngcontent-%COMP%]{justify-content:flex-start}.container[_ngcontent-%COMP%] .ant-radio-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{margin-right:60px}.vertical-center[_ngcontent-%COMP%]{display:flex;align-items:center}"]}),t})();const rtt=["optionsBlock"];function att(t,e){1&t&&(qo(0),Xo(1,"app-options-block",3,4),$o())}function ott(t,e){if(1&t){const t=Jo();Yo(0,"button",5),es("click",(function(){return Ne(t),os().handleCancel()})),Bs(1),Cc(2,"translate"),jo(),Yo(3,"button",6),es("click",(function(){return Ne(t),os().handleOk()})),Bs(4),Cc(5,"translate"),jo()}2&t&&(sa(1),Vs(kc(2,2,"cancel")),sa(3),Vs(kc(5,4,"confirm")))}let stt=(()=>{class t{constructor(t){this.changeDetectorRef=t,this.mIsVisible=!1,this.tabs=[qF.mLanguagePackage.display],MF.instance().subscribeBroardcast(_F.CmdModalVisible,this)}ngOnInit(){}ngOnDestroy(){MF.instance().unsubscribeBroardcast(_F.CmdModalVisible,this)}notify(t,e){"object"==typeof e&&t===_F.CmdModalVisible&&"optionsModal"===e.type&&e.data&&(this.mIsVisible=e.data.visible,this.changeDetectorRef.detectChanges())}handleOk(){this.optionsBlock.submit(),this.mIsVisible=!1,(new OF).pub(EF.optionsModal,!0),this.changeDetectorRef.detectChanges()}handleCancel(){this.mIsVisible=!1,(new OF).pub(EF.optionsModal,!1),this.changeDetectorRef.detectChanges()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Gl))},t["ɵcmp"]=qt({type:t,selectors:[["app-options-modal"]],viewQuery:function(t,e){if(1&t&&Nc(rtt,5),2&t){let t;Vc(t=Gc())&&(e.optionsBlock=t.first)}},decls:5,vars:6,consts:[["nzClassName","modal-options",3,"nzVisible","nzMaskClosable","nzTitle","nzFooter","nzVisibleChange","nzOnCancel","nzOnOk"],[4,"nzModalContent"],["optionFooter",""],[1,"options-block"],["optionsBlock",""],["nz-button","","nzType","default","appStopPropagation","",3,"click"],["nz-button","","nzType","primary","appStopPropagation","",3,"click"]],template:function(t,e){if(1&t&&(Yo(0,"nz-modal",0),es("nzVisibleChange",(function(t){return e.mIsVisible=t}))("nzOnCancel",(function(){return e.handleCancel()}))("nzOnOk",(function(){return e.handleOk()})),Cc(1,"translate"),Ho(2,att,3,0,"ng-container",1),Ho(3,ott,6,6,"ng-template",null,2,Yc),jo()),2&t){const t=Go(4);Uo("nzVisible",e.mIsVisible)("nzMaskClosable",!1)("nzTitle",kc(1,4,"option"))("nzFooter",t)}},directives:[zT,TT,itt,bM,uM,sM,i7],pipes:[H3],styles:[""],encapsulation:2}),t})();function ltt(t,e){if(1&t&&Xo(0,"nz-option",11),2&t){const t=e.$implicit;Uo("nzLabel",t.name)("nzValue",t)}}function ctt(t,e){if(1&t){const t=Jo();qo(0),Yo(1,"div",2),Yo(2,"div",3),Yo(3,"p",4),Bs(4),Cc(5,"translate"),jo(),Yo(6,"nz-select",5),es("ngModelChange",(function(e){return Ne(t),os().mCurTextStyle=e}))("ngModelChange",(function(){return Ne(t),os().changeStyleType()}))("nzOpenChange",(function(){return Ne(t),os().changeDetect()})),Ho(7,ltt,1,2,"nz-option",6),jo(),jo(),Yo(8,"div",7),Yo(9,"p",4),Bs(10),Cc(11,"translate"),jo(),Yo(12,"div",8),Yo(13,"span",9),Bs(14),Cc(15,"translate"),jo(),Xo(16,"input",10),jo(),jo(),Yo(17,"div",7),Yo(18,"p",4),Bs(19),Cc(20,"translate"),jo(),Yo(21,"div",8),Yo(22,"span",9),Bs(23),Cc(24,"translate"),jo(),Xo(25,"input",10),jo(),jo(),jo(),$o()}if(2&t){const t=os();sa(4),Vs(kc(5,9,"styleName")),sa(2),Uo("ngModel",t.mCurTextStyle),sa(1),Uo("ngForOf",t.textStyleList),sa(3),Vs(kc(11,11,"textMeasurements")),sa(4),Vs(kc(15,13,"widthFactor")),sa(2),Uo("value",t.mCurTextStyle.xScale),sa(3),Vs(kc(20,15,"textFont")),sa(4),Vs(kc(24,17,"text_name")),sa(2),Uo("value",t.getFontData(t.mCurTextStyle))}}let htt=(()=>{class t{constructor(t){this.changeDetectorRef=t,this.mIsVisible=!1,MF.instance().subscribeBroardcast(_F.CmdModalVisible,this)}ngOnInit(){}ngOnDestroy(){MF.instance().unsubscribeBroardcast(_F.CmdModalVisible,this)}notify(t,e){"object"==typeof e&&t===_F.CmdModalVisible&&"styleModal"===e.type&&e.data&&(this.mCurTextStyle=this.currentTextStyle,this.changeStyleType(),this.mIsVisible=e.data.visible,this.changeDetectorRef.detectChanges())}handleCancel(){this.mIsVisible=!1,this.changeDetectorRef.detectChanges()}changeStyleType(){let t=this.mCurTextStyle.fileName?this.mCurTextStyle.fileName:this.mCurTextStyle.font;(function(){let t=new OF;return new Promise(((e,n)=>{t.addCb(EF.textStyleFont,(t=>{e(t)}))}))})().then((t=>{this.mCurTextStyle.fetchName=t,this.changeDetectorRef.detectChanges()})),MF.instance().broardcast(_F.GetFileData,{type:"textStyle",data:t})}getFontData(t){return zZ.checkFontFile(t.fileName?t.fileName:t.font)?t.fetchName:t.fetchName+qF.mLanguagePackage.fontNotFound}changeDetect(){this.changeDetectorRef.detectChanges()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Gl))},t["ɵcmp"]=qt({type:t,selectors:[["app-style_modal"]],inputs:{textStyleList:"textStyleList",currentTextStyle:"currentTextStyle"},decls:3,vars:5,consts:[["nzClassName","styleModal","nzMaskClosable","false",3,"nzVisible","nzTitle","nzFooter","nzVisibleChange","nzOnCancel"],[4,"nzModalContent"],[1,"container"],[1,"styleItem","firstItem"],[1,"sub"],[1,"type",3,"ngModel","ngModelChange","nzOpenChange"],[3,"nzLabel","nzValue",4,"ngFor","ngForOf"],[1,"styleItem"],[1,"formItem"],[1,"label"],["disabled","",3,"value"],[3,"nzLabel","nzValue"]],template:function(t,e){1&t&&(Yo(0,"nz-modal",0),es("nzVisibleChange",(function(t){return e.mIsVisible=t}))("nzOnCancel",(function(){return e.handleCancel()})),Cc(1,"translate"),Ho(2,ctt,26,19,"ng-container",1),jo()),2&t&&Uo("nzVisible",e.mIsVisible)("nzTitle",kc(1,3,"text_style"))("nzFooter",null)},directives:[zT,TT,EL,xp,Np,Ud,PL],pipes:[H3],styles:[".container[_ngcontent-%COMP%]{padding:10px 20px;background-color:#f2f2f2;overflow:auto}.container[_ngcontent-%COMP%]::-webkit-scrollbar{width:5px;height:5px}.container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:3px;background-color:#d7d7d7}.container[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:#fff}.container[_ngcontent-%COMP%]::-webkit-scrollbar-corner{background-color:#d7d7d7}.container[_ngcontent-%COMP%] .styleItem[_ngcontent-%COMP%]{position:relative;padding:20px 20px 20px 10px;border:1px solid #ccc;margin-bottom:15px;margin-top:30px;min-width:280px}.container[_ngcontent-%COMP%] .styleItem[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%] .styleItem[_ngcontent-%COMP%] .sub[_ngcontent-%COMP%]{padding:0 4px;position:absolute;top:0;left:10px;transform:translateY(-50%);background-color:#f0f0f0}.container[_ngcontent-%COMP%] .styleItem[_ngcontent-%COMP%] .formItem[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.container[_ngcontent-%COMP%] .styleItem[_ngcontent-%COMP%] .formItem[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{width:130px}.container[_ngcontent-%COMP%] .styleItem[_ngcontent-%COMP%] .formItem[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;border:1px solid #ccc;padding:0 .5em}.container[_ngcontent-%COMP%] .styleItem[_ngcontent-%COMP%] .formItem[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:1px solid #ccc}.container[_ngcontent-%COMP%] .firstItem[_ngcontent-%COMP%]{margin-top:10px}.container[_ngcontent-%COMP%] .firstItem[_ngcontent-%COMP%] .type[_ngcontent-%COMP%]{width:100%} .styleModal .ant-modal-content{width:unset}"]}),t})();function dtt(t,e){1&t&&(gn(),Yo(0,"svg",23),Xo(1,"use",24),jo())}function utt(t,e){1&t&&(gn(),Xo(0,"use",25))}function mtt(t,e){if(1&t&&(Yo(0,"nz-option",21),Ho(1,dtt,2,0,"svg",22),gn(),Yo(2,"svg",13),Ho(3,utt,1,0,"use",14),jo(),Bs(4),jo()),2&t){const t=e.$implicit;Uo("nzLabel",t.baseDimStyle?t.baseDimStyle+" | "+t.name:t.name)("nzValue",t),sa(1),Uo("ngIf",t.baseDimStyle),sa(1),xs("color","#1e92e6"),sa(1),Uo("ngIf",t.IsDimStyleAnnotative),sa(1),Ns(" ",t.name," ")}}function ptt(t,e){1&t&&(gn(),Xo(0,"use",25))}function gtt(t,e){if(1&t&&(gn(),Yo(0,"svg",13),Ho(1,ptt,1,0,"use",14),jo(),Bs(2)),2&t){const t=os(2);xs("color","#1e92e6"),sa(1),Uo("ngIf",t.mCurDimStyle.IsDimStyleAnnotative),sa(1),Ns(" ",t.mCurDimStyle.baseDimStyle?t.mCurDimStyle.baseDimStyle+" | "+t.mCurDimStyle.name:t.mCurDimStyle.name," ")}}function ftt(t,e){if(1&t&&(Yo(0,"div"),Yo(1,"div",15),Yo(2,"p",8),Bs(3),Cc(4,"translate"),jo(),Yo(5,"div",26),Yo(6,"span",27),Bs(7),Cc(8,"translate"),jo(),Xo(9,"input",28),jo(),jo(),Yo(10,"div",15),Yo(11,"p",8),Bs(12),Cc(13,"translate"),jo(),Yo(14,"div",26),Yo(15,"span",27),Bs(16),Cc(17,"translate"),jo(),Xo(18,"input",28),jo(),Yo(19,"div",26),Yo(20,"span",27),Bs(21),Cc(22,"translate"),jo(),Xo(23,"input",28),jo(),jo(),jo()),2&t){const t=os(2);sa(3),Vs(kc(4,8,"dimensionLines")),sa(4),Vs(kc(8,10,"baselineSpacing")),sa(2),Uo("value",t.mCurDimStyle.dimdli),sa(3),Vs(kc(13,12,"extensionLinesOffsetFrom")),sa(4),Vs(kc(17,14,"origin")),sa(2),Uo("value",t.mCurDimStyle.dimexo),sa(3),Vs(kc(22,16,"dimensionLine")),sa(2),Uo("value",t.mCurDimStyle.dimexe)}}function btt(t,e){if(1&t&&(Yo(0,"div"),Yo(1,"div",15),Yo(2,"p",8),Bs(3),Cc(4,"translate"),jo(),Yo(5,"div",26),Yo(6,"span",27),Bs(7),Cc(8,"translate"),jo(),Xo(9,"input",28),jo(),Yo(10,"div",26),Yo(11,"span",27),Bs(12),Cc(13,"translate"),jo(),Xo(14,"input",28),jo(),jo(),jo()),2&t){const t=os(2);sa(3),Vs(kc(4,5,"arrowHeads")),sa(4),Vs(kc(8,7,"startingArrowHead")),sa(2),Uo("value",t.mDimArrowMap.get(t.mCurDimStyle.dimblk)),sa(3),Vs(kc(13,9,"arrowSize")),sa(2),Uo("value",t.mCurDimStyle.dimasz)}}function ytt(t,e){if(1&t&&(Yo(0,"div"),Yo(1,"div",15),Yo(2,"p",8),Bs(3),Cc(4,"translate"),jo(),Yo(5,"div",26),Yo(6,"span",27),Bs(7),Cc(8,"translate"),jo(),Xo(9,"input",28),jo(),Yo(10,"div",26),Yo(11,"span",27),Bs(12),Cc(13,"translate"),jo(),Xo(14,"input",28),jo(),jo(),jo()),2&t){const t=os(2);sa(3),Vs(kc(4,5,"textAppearance")),sa(4),Vs(kc(8,7,"textStyle")),sa(2),Uo("value",t.mCurDimStyle.dimtxsty),sa(3),Vs(kc(13,9,"textHeight")),sa(2),Uo("value",t.mCurDimStyle.dimtxt)}}function vtt(t,e){if(1&t&&(Yo(0,"div"),Yo(1,"div",15),Yo(2,"p",8),Bs(3),Cc(4,"translate"),jo(),Yo(5,"div",26),Yo(6,"span",27),Bs(7),Cc(8,"translate"),jo(),Xo(9,"input",28),jo(),jo(),jo()),2&t){const t=os(2);sa(3),Vs(kc(4,3,"scaleForDimensionFeatures")),sa(4),Vs(kc(8,5,"overallScale")),sa(2),Uo("value",t.mCurDimStyle.dimscale)}}function wtt(t,e){if(1&t&&(Yo(0,"div"),Yo(1,"div",15),Yo(2,"p",8),Bs(3),Cc(4,"translate"),jo(),Yo(5,"div",26),Yo(6,"span",27),Bs(7),Cc(8,"translate"),jo(),Xo(9,"input",28),jo(),jo(),jo()),2&t){const t=os(2);sa(3),Vs(kc(4,3,"linearDimension")),sa(4),Vs(kc(8,5,"precision")),sa(2),Uo("value",t.mDimdecList[t.mCurDimStyle.dimlunit-1][t.mCurDimStyle.dimdec])}}function xtt(t,e){1&t&&(gn(),Xo(0,"use",25))}function Ctt(t,e){1&t&&(gn(),Yo(0,"svg",23),Xo(1,"use",24),jo())}function ktt(t,e){1&t&&(gn(),Xo(0,"use",25))}function Stt(t,e){if(1&t){const t=Jo();Yo(0,"div"),Yo(1,"li",4),es("click",(function(){const e=Ne(t).$implicit;return os(2).styleChange(e)})),Ho(2,Ctt,2,0,"svg",22),gn(),Yo(3,"svg",13),Ho(4,ktt,1,0,"use",14),jo(),Bs(5),jo(),jo()}if(2&t){const t=e.$implicit,n=os(2);sa(1),xs("background-color",t===n.mCurDimStyle?"#f2f2f2":""),sa(1),Uo("ngIf",t.baseDimStyle),sa(1),xs("color","#1e92e6"),sa(1),Uo("ngIf",t.IsDimStyleAnnotative),sa(1),Ns(" ",t.name," ")}}function Ptt(t,e){if(1&t){const t=Jo();Yo(0,"button",29),es("click",(function(){return Ne(t),os(2).detail()})),Bs(1),Cc(2,"translate"),jo()}2&t&&(sa(1),Vs(kc(2,1,"details")))}function _tt(t,e){if(1&t){const t=Jo();Yo(0,"button",29),es("click",(function(){return Ne(t),os(2).return()})),Bs(1),Cc(2,"translate"),jo()}2&t&&(sa(1),Vs(kc(2,1,"dim_back")))}function Mtt(t,e){if(1&t){const t=Jo();Yo(0,"button",30),es("click",(function(){return Ne(t),os(2).zwExecuteCommand("’_help")})),Bs(1),Cc(2,"translate"),jo()}2&t&&(sa(1),Vs(kc(2,1,"dim_help")))}function Dtt(t,e){if(1&t){const t=Jo();qo(0),Yo(1,"div",2),Yo(2,"div",3),Yo(3,"span",4),es("click",(function(){return Ne(t),os().selectTab(0)})),Bs(4),Cc(5,"translate"),jo(),Yo(6,"span",4),es("click",(function(){return Ne(t),os().selectTab(1)})),Bs(7),Cc(8,"translate"),jo(),Yo(9,"span",4),es("click",(function(){return Ne(t),os().selectTab(2)})),Bs(10),Cc(11,"translate"),jo(),Yo(12,"span",4),es("click",(function(){return Ne(t),os().selectTab(3)})),Bs(13),Cc(14,"translate"),jo(),Yo(15,"span",4),es("click",(function(){return Ne(t),os().selectTab(4)})),Bs(16),Cc(17,"translate"),jo(),jo(),Yo(18,"div",5),Yo(19,"div",6),Yo(20,"div",7),Yo(21,"p",8),Bs(22),Cc(23,"translate"),jo(),Yo(24,"nz-select",9),es("ngModelChange",(function(e){return Ne(t),os().mCurDimStyle=e}))("ngModelChange",(function(){return Ne(t),os().changeDetect()}))("nzOpenChange",(function(){return Ne(t),os().changeDetect()})),Ho(25,mtt,5,7,"nz-option",10),jo(),Ho(26,gtt,3,4,"ng-template",null,11,Yc),jo(),Ho(28,ftt,24,18,"div",12),Ho(29,btt,15,11,"div",12),Ho(30,ytt,15,11,"div",12),Ho(31,vtt,10,7,"div",12),Ho(32,wtt,10,7,"div",12),jo(),Yo(33,"div",6),Yo(34,"div",7),Yo(35,"p",8),Bs(36),Cc(37,"translate"),jo(),Yo(38,"span"),gn(),Yo(39,"svg",13),Ho(40,xtt,1,0,"use",14),jo(),Bs(41),jo(),jo(),fn(),Yo(42,"div",15),Yo(43,"p",8),Bs(44),Cc(45,"translate"),jo(),Yo(46,"div",16),Yo(47,"ul"),Ho(48,Stt,6,7,"div",17),jo(),jo(),jo(),jo(),jo(),jo(),Yo(49,"div",18),Ho(50,Ptt,3,3,"button",19),Ho(51,_tt,3,3,"button",19),Ho(52,Mtt,3,3,"button",20),jo(),$o()}if(2&t){const t=Go(27),e=os();sa(2),xs("display","detail"===e.mPageType?"":"none"),sa(1),Ps(0===e.mSelectedTab?"selected":""),sa(1),Vs(kc(5,40,"lines")),sa(2),Ps(1===e.mSelectedTab?"selected":""),sa(1),Vs(kc(8,42,"symbolsAndArrows")),sa(2),Ps(2===e.mSelectedTab?"selected":""),sa(1),Vs(kc(11,44,"text")),sa(2),Ps(3===e.mSelectedTab?"selected":""),sa(1),Vs(kc(14,46,"fit")),sa(2),Ps(4===e.mSelectedTab?"selected":""),sa(1),Vs(kc(17,48,"primaryUnits")),sa(3),xs("display","detail"===e.mPageType?"":"none"),sa(3),Vs(kc(23,50,"dimensionStyle")),sa(2),Uo("ngModel",e.mCurDimStyle)("nzCustomTemplate",t),sa(1),Uo("ngForOf",e.dimStyleList),sa(3),Uo("ngIf",0===e.mSelectedTab),sa(1),Uo("ngIf",1===e.mSelectedTab),sa(1),Uo("ngIf",2===e.mSelectedTab),sa(1),Uo("ngIf",3===e.mSelectedTab),sa(1),Uo("ngIf",4===e.mSelectedTab),sa(1),xs("display","normal"===e.mPageType?"":"none"),sa(3),Vs(kc(37,52,"dimensionStyle")),sa(3),xs("color","#1e92e6"),sa(1),Uo("ngIf",e.mCurDimStyle.IsDimStyleAnnotative),sa(1),Ns(" ",e.mCurDimStyle.baseDimStyle?e.mCurDimStyle.baseDimStyle+" | "+e.mCurDimStyle.name:e.mCurDimStyle.name," "),sa(3),Vs(kc(45,54,"allDimStyles")),sa(4),Uo("ngForOf",e.dimStyleList),sa(2),Uo("ngIf","normal"===e.mPageType),sa(1),Uo("ngIf","detail"===e.mPageType),sa(1),Uo("ngIf",!e.mForSdk)}}let Ett=(()=>{class t{constructor(t){this.changeDetectorRef=t,this.mIsVisible=!1,this.mPageType="normal",this.mSelectedTab=0,this.mDimdecList=[["0E+01","0.0E+01","0.00E+01","0.000E+01","0.0000E+01","0.00000E+01","0.000000E+01","0.0000000E+01","0.00000000E+01"],["0","0.0","0.00","0.000","0.0000","0.00000","0.000000","0.0000000","0.00000000"],["0′-0′′","0′-0.0′′","0′-0.00′′","0′-0.000′′","0′-0.0000′′","0′-0.00000′′","0′-0.000000′′","0′-0.0000000′′","0′-0.00000000′′"],["0′-0′′","0′-0 1/2′′","0′-0 1/4′′","0′-0 1/8′′","0′-0 1/16′′","0′-0 1/32′′","0′-0 1/64′′","0′-0 1/128′′","0′-0 1/256′′"],["0","0 1/2","0 1/4","0 1/8","0 1/16","0 1/32","0 1/64","0 1/128","0 1/256"],["0","0.0","0.00","0.000","0.0000","0.00000","0.000000","0.0000000","0.00000000"]],this.mDimArrowMap=new Map,this.mForSdk=tU.forSDK,MF.instance().subscribeBroardcast(_F.CmdModalVisible,this)}ngOnInit(){this.mDimArrowMap.set("",qF.mLanguagePackage._ClosedBlank),this.mDimArrowMap.set("_Closed",qF.mLanguagePackage._Closed),this.mDimArrowMap.set("_ClosedBlank",qF.mLanguagePackage._ClosedBlank),this.mDimArrowMap.set("_Dot",qF.mLanguagePackage._Dot),this.mDimArrowMap.set("_ArchTick",qF.mLanguagePackage._ArchTick),this.mDimArrowMap.set("_Oblique",qF.mLanguagePackage._Oblique),this.mDimArrowMap.set("_Open",qF.mLanguagePackage._Open),this.mDimArrowMap.set("_Origin",qF.mLanguagePackage._Origin),this.mDimArrowMap.set("_Origin2",qF.mLanguagePackage._Origin2),this.mDimArrowMap.set("_Open90",qF.mLanguagePackage._Open90),this.mDimArrowMap.set("_Open30",qF.mLanguagePackage._Open30),this.mDimArrowMap.set("_DotSmall",qF.mLanguagePackage._DotSmall),this.mDimArrowMap.set("_DotBlank",qF.mLanguagePackage._DotBlank),this.mDimArrowMap.set("_DotSmallBlank",qF.mLanguagePackage._DotSmallBlank),this.mDimArrowMap.set("_BoxBlank",qF.mLanguagePackage._BoxBlank),this.mDimArrowMap.set("_BoxFilled",qF.mLanguagePackage._BoxFilled),this.mDimArrowMap.set("_DatumBlank",qF.mLanguagePackage._DatumBlank),this.mDimArrowMap.set("_DatumFilled",qF.mLanguagePackage._DatumFilled),this.mDimArrowMap.set("_Integral",qF.mLanguagePackage._Integral),this.mDimArrowMap.set("_None",qF.mLanguagePackage._None)}ngOnDestroy(){MF.instance().unsubscribeBroardcast(_F.CmdModalVisible,this)}notify(t,e){"object"==typeof e&&t===_F.CmdModalVisible&&"dimStyleModal"===e.type&&e.data&&(this.mCurDimStyle=this.currentDimStyle,this.mIsVisible=e.data.visible,this.changeDetectorRef.detectChanges())}handleCancel(){this.mIsVisible=!1,this.changeDetectorRef.detectChanges()}changeDetect(){this.changeDetectorRef.detectChanges()}selectTab(t){this.mSelectedTab=t,this.changeDetect()}styleChange(t){this.mCurDimStyle=t,this.changeDetect()}detail(){this.mPageType="detail",this.changeDetect()}return(){this.mPageType="normal",this.changeDetect()}zwExecuteCommand(t,e){n7.instance().setExecuteCmdByClickButton(t,e)}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Gl))},t["ɵcmp"]=qt({type:t,selectors:[["app-dim_style_modal"]],inputs:{dimStyleList:"dimStyleList",currentDimStyle:"currentDimStyle"},decls:3,vars:5,consts:[["nzClassName","dimStyleModal","nzMaskClosable","false",3,"nzVisible","nzTitle","nzFooter","nzVisibleChange","nzOnCancel"],[4,"nzModalContent"],[1,"container"],[1,"tab"],[3,"click"],[1,"content"],[1,"form"],[1,"styleItem","firstItem"],[1,"sub"],[1,"type",3,"ngModel","nzCustomTemplate","ngModelChange","nzOpenChange"],["nzCustomContent","",3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["dimStyleTemplate",""],[4,"ngIf"],["aria-hidden","true"],[0,"xlink","href","#icon-zhushixing",4,"ngIf"],[1,"styleItem"],[1,"formItem","styleList"],[4,"ngFor","ngForOf"],[1,"footer"],["nz-button","","nzType","default","appStopPropagation","",3,"click",4,"ngIf"],["nz-button","","nzType","primary","nzGhost","","appStopPropagation","",3,"click",4,"ngIf"],["nzCustomContent","",3,"nzLabel","nzValue"],["aria-hidden","true","class","baseDimStyle",4,"ngIf"],["aria-hidden","true",1,"baseDimStyle"],[0,"xlink","href","#icon-xiaji"],[0,"xlink","href","#icon-zhushixing"],[1,"formItem"],[1,"label"],["disabled","",3,"value"],["nz-button","","nzType","default","appStopPropagation","",3,"click"],["nz-button","","nzType","primary","nzGhost","","appStopPropagation","",3,"click"]],template:function(t,e){1&t&&(Yo(0,"nz-modal",0),es("nzVisibleChange",(function(t){return e.mIsVisible=t}))("nzOnCancel",(function(){return e.handleCancel()})),Cc(1,"translate"),Ho(2,Dtt,53,56,"ng-container",1),jo()),2&t&&Uo("nzVisible",e.mIsVisible)("nzTitle",kc(1,3,"dimensionStyle"))("nzFooter",null)},directives:[zT,TT,EL,xp,Np,Ud,Yd,PL,bM,uM,sM,i7],pipes:[H3],styles:[".container[_ngcontent-%COMP%]{padding:0 20px;background-color:#f2f2f2;overflow:auto}.container[_ngcontent-%COMP%]::-webkit-scrollbar{width:5px;height:5px}.container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:3px;background-color:#d7d7d7}.container[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:transparent}.container[_ngcontent-%COMP%]::-webkit-scrollbar-corner{background-color:#d7d7d7}.container[_ngcontent-%COMP%] .tab[_ngcontent-%COMP%]{padding-top:10px;min-width:400px}.container[_ngcontent-%COMP%] .tab[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-align:center;padding:3px 5px;display:inline-block;border:1px solid #ccc;margin-right:-1px;min-width:80px}.container[_ngcontent-%COMP%] .tab[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:#d8eaf9}.container[_ngcontent-%COMP%] .tab[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-of-type(1){border-left:1px solid #ccc}.container[_ngcontent-%COMP%] .tab[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%]{border-radius:1px;border-left:1px solid #ccc;padding-top:6px!important;background-color:#fff!important;cursor:default!important;border-bottom:0px!important}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{padding-top:10px;min-width:400px}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .styleItem[_ngcontent-%COMP%]{position:relative;padding:20px 20px 20px 10px;border:1px solid #ccc;margin-bottom:15px;margin-top:30px}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .styleItem[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .styleItem[_ngcontent-%COMP%] .sub[_ngcontent-%COMP%]{padding:0 4px;position:absolute;top:0;left:10px;transform:translateY(-50%);background-color:#f0f0f0}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .styleItem[_ngcontent-%COMP%] .formItem[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:6px 0;align-items:center}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .styleItem[_ngcontent-%COMP%] .formItem[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{min-width:100px;display:inline-block;color:#7f7f7f}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .styleItem[_ngcontent-%COMP%] .styleList[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .styleItem[_ngcontent-%COMP%] .styleList[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{list-style:none;padding-left:0;max-height:124px;overflow:auto;border:1px solid #ccc;background-color:#fff;margin-bottom:0;width:100%}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .styleItem[_ngcontent-%COMP%] .styleList[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:2px 10px 2px 4px}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .styleItem[_ngcontent-%COMP%] .styleList[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{color:#1e92e6}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .styleItem[_ngcontent-%COMP%] .styleList[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .baseDimStyle[_ngcontent-%COMP%]{color:unset!important}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .styleItem[_ngcontent-%COMP%] .styleList[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:#f2f2f2}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .styleItem[_ngcontent-%COMP%] .styleList[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]::-webkit-scrollbar{width:5px;height:5px}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .styleItem[_ngcontent-%COMP%] .styleList[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:3px;background-color:#d7d7d7}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .styleItem[_ngcontent-%COMP%] .styleList[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:transparent}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .styleItem[_ngcontent-%COMP%] .styleList[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]::-webkit-scrollbar-corner{background-color:#d7d7d7}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .styleItem[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border:1px solid #ccc;width:100%;padding:0 .5em;height:2em;line-height:2em}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .styleItem[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:1px solid #ccc}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .firstItem[_ngcontent-%COMP%]{margin-top:10px;position:relative;font-size:14px}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .firstItem[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{padding:5px;display:inline-block;width:100%;border:1px solid #cccccc}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .firstItem[_ngcontent-%COMP%] .baseDimStyle[_ngcontent-%COMP%]{color:unset!important}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .firstItem[_ngcontent-%COMP%] .type[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%]{padding-left:20px;padding-bottom:10px;display:flex;flex-direction:column}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;padding:0 0 10px}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100%}.footer[_ngcontent-%COMP%]{display:flex;padding:10px;justify-content:flex-end;background-color:#f2f2f2;border-top:1px solid #ccc}.footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:80px;margin-right:10px} .dimStyleModal .ant-modal-content{width:unset} .dimStylelist{position:absolute;top:100%;left:0;z-index:999;width:100%;max-height:124px;overflow:auto;padding:0;margin:0;background-color:#fff;border:1px solid #d9d9d9} .dimStylelist::-webkit-scrollbar{width:5px;height:1px} .dimStylelist::-webkit-scrollbar-thumb{border-radius:3px;background-color:#d7d7d7} .dimStylelist::-webkit-scrollbar-track{background-color:#fff} .dimStylelist li{list-style:none;padding-left:10px;cursor:pointer;margin:2px 10px 2px 4px} .dimStylelist li svg{color:#1e92e6} .dimStylelist li .baseDimStyle{color:unset!important} .dimStylelist li:hover{background-color:#f2f2f2}"]}),t})();function Ott(t,e,n){for(let i in e)if(e.hasOwnProperty(i)){const r=e[i];r?t.setProperty(i,r,(null==n?void 0:n.has(i))?"important":""):t.removeProperty(i)}return t}function Att(t,e){const n=e?"":"none";Ott(t.style,{"touch-action":e?"":"none","-webkit-user-drag":e?"":"none","-webkit-tap-highlight-color":e?"":"transparent","user-select":n,"-ms-user-select":n,"-webkit-user-select":n,"-moz-user-select":n})}function Ttt(t,e,n){Ott(t.style,{position:e?"":"fixed",top:e?"":"0",opacity:e?"":"0",left:e?"":"-999em"},n)}function Itt(t,e){return e&&"none"!=e?t+" "+e:t}function Ltt(t){const e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function ztt(t,e){return t.getPropertyValue(e).split(",").map((t=>t.trim()))}function Rtt(t){const e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}}function Ftt(t,e,n){const{top:i,bottom:r,left:a,right:o}=t;return n>=i&&n<=r&&e>=a&&e<=o}function Btt(t,e,n){t.top+=e,t.bottom=t.top+t.height,t.left+=n,t.right=t.left+t.width}function Vtt(t,e,n,i){const{top:r,right:a,bottom:o,left:s,width:l,height:c}=t,h=l*e,d=c*e;return i>r-d&&i<o+d&&n>s-h&&n<a+h}class Ntt{constructor(t,e){this._document=t,this._viewportRuler=e,this.positions=new Map}clear(){this.positions.clear()}cache(t){this.clear(),this.positions.set(this._document,{scrollPosition:this._viewportRuler.getViewportScrollPosition()}),t.forEach((t=>{this.positions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:Rtt(t)})}))}handleScroll(t){const e=kC(t),n=this.positions.get(e);if(!n)return null;const i=e===this._document?e.documentElement:e,r=n.scrollPosition;let a,o;if(e===this._document){const t=this._viewportRuler.getViewportScrollPosition();a=t.top,o=t.left}else a=e.scrollTop,o=e.scrollLeft;const s=r.top-a,l=r.left-o;return this.positions.forEach(((t,n)=>{t.clientRect&&e!==n&&i.contains(n)&&Btt(t.clientRect,s,l)})),r.top=a,r.left=o,{top:s,left:l}}}function Htt(t){const e=t.cloneNode(!0),n=e.querySelectorAll("[id]"),i=t.nodeName.toLowerCase();e.removeAttribute("id");for(let t=0;t<n.length;t++)n[t].removeAttribute("id");return"canvas"===i?Wtt(t,e):("input"===i||"select"===i||"textarea"===i)&&Utt(t,e),Gtt("canvas",t,e,Wtt),Gtt("input, textarea, select",t,e,Utt),e}function Gtt(t,e,n,i){const r=e.querySelectorAll(t);if(r.length){const e=n.querySelectorAll(t);for(let t=0;t<r.length;t++)i(r[t],e[t])}}let Ztt=0;function Utt(t,e){"file"!==e.type&&(e.value=t.value),"radio"===e.type&&e.name&&(e.name="mat-clone-"+e.name+"-"+Ztt++)}function Wtt(t,e){const n=e.getContext("2d");if(n)try{n.drawImage(t,0,0)}catch(t){}}const Ytt=vC({passive:!0}),jtt=vC({passive:!1}),Xtt=new Set(["position"]);class qtt{constructor(t,e,n,i,r,a){this._config=e,this._document=n,this._ngZone=i,this._viewportRuler=r,this._dragDropRegistry=a,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new A,this._pointerMoveSubscription=y.EMPTY,this._pointerUpSubscription=y.EMPTY,this._scrollSubscription=y.EMPTY,this._resizeSubscription=y.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new A,this.started=new A,this.released=new A,this.ended=new A,this.entered=new A,this.exited=new A,this.dropped=new A,this.moved=this._moveEvents,this._pointerDown=t=>{if(this.beforeStarted.next(),this._handles.length){const e=this._handles.find((e=>{const n=kC(t);return!!n&&(n===e||e.contains(n))}));e&&!this._disabledHandles.has(e)&&!this.disabled&&this._initializeDragSequence(e,t)}else this.disabled||this._initializeDragSequence(this._rootElement,t)},this._pointerMove=t=>{const e=this._getPointerPositionOnPage(t);if(!this._hasStartedDragging){if(Math.abs(e.x-this._pickupPositionOnPage.x)+Math.abs(e.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const e=Date.now()>=this._dragStartTime+this._getDragStartDelay(t),n=this._dropContainer;if(!e)return void this._endDragSequence(t);(!n||!n.isDragging()&&!n.isReceiving())&&(t.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run((()=>this._startDragSequence(t))))}return}this._boundaryElement&&(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()),t.preventDefault();const n=this._getConstrainedPointerPosition(e);if(this._hasMoved=!0,this._lastKnownPointerPosition=e,this._updatePointerDirectionDelta(n),this._dropContainer)this._updateActiveDropContainer(n,e);else{const t=this._activeTransform;t.x=n.x-this._pickupPositionOnPage.x+this._passiveTransform.x,t.y=n.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(t.x,t.y),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&this._rootElement.setAttribute("transform","translate("+t.x+" "+t.y+")")}this._moveEvents.observers.length&&this._ngZone.run((()=>{this._moveEvents.next({source:this,pointerPosition:n,event:t,distance:this._getDragDistance(n),delta:this._pointerDirectionDelta})}))},this._pointerUp=t=>{this._endDragSequence(t)},this.withRootElement(t).withParent(e.parentDragRef||null),this._parentPositions=new Ntt(n,r),a.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=$w(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach((t=>Att(t,e))))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map((t=>ex(t))),this._handles.forEach((t=>Att(t,this.disabled))),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach((t=>{this._handles.indexOf(t)>-1&&e.add(t)})),this._disabledHandles=e,this}withPreviewTemplate(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=ex(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular((()=>{e.addEventListener("mousedown",this._pointerDown,jtt),e.addEventListener("touchstart",this._pointerDown,Ytt)})),this._initialTransform=void 0,this._rootElement=e),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?ex(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe((()=>this._containInsideBoundaryOnResize()))),this}withParent(t){return this._parentDragRef=t,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&Jtt(this._rootElement),Jtt(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),Att(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),Att(t,this.disabled))}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}withPreviewContainer(t){return this._previewContainer=t,this}_sortFromLastPointerPosition(){const t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview&&Jtt(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder&&Jtt(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then((()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}));else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run((()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e})})),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(t){Qtt(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,n=t.parentNode,i=this._placeholder=this._createPlaceholderElement(),r=this._anchor=this._anchor||this._document.createComment(""),a=this._getShadowRoot();n.insertBefore(r,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),Ttt(t,!1,Xtt),this._document.body.appendChild(n.replaceChild(i,t)),this._getPreviewInsertionPoint(n,a).appendChild(this._preview),this.started.next({source:this}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){this._parentDragRef&&e.stopPropagation();const n=this.isDragging(),i=Qtt(e),r=!i&&0!==e.button,a=this._rootElement,o=kC(e),s=!i&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),l=i?bP(e):fP(e);if(o&&o.draggable&&"mousedown"===e.type&&e.preventDefault(),n||r||s||l)return;this._handles.length&&(this._rootElementTapHighlight=a.style.webkitTapHighlightColor||"",a.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe((t=>this._updateOnScroll(t))),this._boundaryElement&&(this._boundaryRect=Rtt(this._boundaryElement));const c=this._previewTemplate;this._pickupPositionInElement=c&&c.template&&!c.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);const h=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:h.x,y:h.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){Ttt(this._rootElement,!0,Xtt),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run((()=>{const e=this._dropContainer,n=e.getItemIndex(this),i=this._getPointerPositionOnPage(t),r=this._getDragDistance(i),a=e._isOverContainer(i.x,i.y);this.ended.next({source:this,distance:r,dropPoint:i}),this.dropped.next({item:this,currentIndex:n,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:a,distance:r,dropPoint:i}),e.drop(this,n,this._initialIndex,this._initialContainer,a,r,i),this._dropContainer=this._initialContainer}))}_updateActiveDropContainer({x:t,y:e},{x:n,y:i}){let r=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!r&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(r=this._initialContainer),r&&r!==this._dropContainer&&this._ngZone.run((()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=r,this._dropContainer.enter(this,t,e,r===this._initialContainer&&r.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:r,currentIndex:r.getItemIndex(this)})})),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(n,i),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this._applyPreviewTransform(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,n=t?t.template:null;let i;if(n&&t){const e=t.matchSize?this._rootElement.getBoundingClientRect():null,r=t.viewContainer.createEmbeddedView(n,t.context);r.detectChanges(),i=tet(r,this._document),this._previewRef=r,t.matchSize?eet(i,e):i.style.transform=$tt(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const t=this._rootElement;i=Htt(t),eet(i,t.getBoundingClientRect()),this._initialTransform&&(i.style.transform=this._initialTransform)}return Ott(i.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":""+(this._config.zIndex||1e3)},Xtt),Att(i,!1),i.classList.add("cdk-drag-preview"),i.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach((t=>i.classList.add(t))):i.classList.add(e)),i}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);const e=function(t){const e=getComputedStyle(t),n=ztt(e,"transition-property"),i=n.find((t=>"transform"===t||"all"===t));if(!i)return 0;const r=n.indexOf(i),a=ztt(e,"transition-duration"),o=ztt(e,"transition-delay");return Ltt(a[r])+Ltt(o[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular((()=>new Promise((t=>{const n=e=>{var r;(!e||kC(e)===this._preview&&"transform"===e.propertyName)&&(null===(r=this._preview)||void 0===r||r.removeEventListener("transitionend",n),t(),clearTimeout(i))},i=setTimeout(n,1.5*e);this._preview.addEventListener("transitionend",n)}))))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let n;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),n=tet(this._placeholderRef,this._document)):n=Htt(this._rootElement),n.classList.add("cdk-drag-placeholder"),n}_getPointerPositionInElement(t,e){const n=this._rootElement.getBoundingClientRect(),i=t===this._rootElement?null:t,r=i?i.getBoundingClientRect():n,a=Qtt(e)?e.targetTouches[0]:e,o=this._getViewportScrollPosition();return{x:r.left-n.left+(a.pageX-r.left-o.left),y:r.top-n.top+(a.pageY-r.top-o.top)}}_getPointerPositionOnPage(t){const e=this._getViewportScrollPosition(),n=Qtt(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,i=n.pageX-e.left,r=n.pageY-e.top;if(this._ownerSVGElement){const t=this._ownerSVGElement.getScreenCTM();if(t){const e=this._ownerSVGElement.createSVGPoint();return e.x=i,e.y=r,e.matrixTransform(t.inverse())}}return{x:i,y:r}}_getConstrainedPointerPosition(t){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:n,y:i}=this.constrainPosition?this.constrainPosition(t,this):t;if("x"===this.lockAxis||"x"===e?i=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(n=this._pickupPositionOnPage.x),this._boundaryRect){const{x:t,y:e}=this._pickupPositionInElement,r=this._boundaryRect,a=this._previewRect,o=r.top+e,s=r.bottom-(a.height-e);n=Ktt(n,r.left+t,r.right-(a.width-t)),i=Ktt(i,o,s)}return{x:n,y:i}}_updatePointerDirectionDelta(t){const{x:e,y:n}=t,i=this._pointerDirectionDelta,r=this._pointerPositionAtLastDirectionChange,a=Math.abs(e-r.x),o=Math.abs(n-r.y);return a>this._config.pointerDirectionChangeThreshold&&(i.x=e>r.x?1:-1,r.x=e),o>this._config.pointerDirectionChangeThreshold&&(i.y=n>r.y?1:-1,r.y=n),i}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,Att(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,jtt),t.removeEventListener("touchstart",this._pointerDown,Ytt)}_applyRootElementTransform(t,e){const n=$tt(t,e);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform&&"none"!=this._rootElement.style.transform?this._rootElement.style.transform:""),this._rootElement.style.transform=Itt(n,this._initialTransform)}_applyPreviewTransform(t,e){var n;const i=(null===(n=this._previewTemplate)||void 0===n?void 0:n.template)?void 0:this._initialTransform,r=$tt(t,e);this._preview.style.transform=Itt(r,i)}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const n=this._boundaryElement.getBoundingClientRect(),i=this._rootElement.getBoundingClientRect();if(0===n.width&&0===n.height||0===i.width&&0===i.height)return;const r=n.left-i.left,a=i.right-n.right,o=n.top-i.top,s=i.bottom-n.bottom;n.width>i.width?(r>0&&(t+=r),a>0&&(t-=a)):t=0,n.height>i.height?(o>0&&(e+=o),s>0&&(e-=s)):e=0,(t!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:Qtt(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const n=kC(t);this._boundaryRect&&(n===this._document||n!==this._boundaryElement&&n.contains(this._boundaryElement))&&Btt(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){const t=this._parentPositions.positions.get(this._document);return t?t.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=CC(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(t,e){const n=this._previewContainer||"global";if("parent"===n)return t;if("global"===n){const t=this._document;return e||t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement||t.body}return ex(n)}}function $tt(t,e){return"translate3d("+Math.round(t)+"px, "+Math.round(e)+"px, 0)"}function Ktt(t,e,n){return Math.max(e,Math.min(n,t))}function Jtt(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function Qtt(t){return"t"===t.type[0]}function tet(t,e){const n=t.rootNodes;if(1===n.length&&n[0].nodeType===e.ELEMENT_NODE)return n[0];const i=e.createElement("div");return n.forEach((t=>i.appendChild(t))),i}function eet(t,e){t.style.width=e.width+"px",t.style.height=e.height+"px",t.style.transform=$tt(e.left,e.top)}function net(t,e){return Math.max(0,Math.min(e,t))}class iet{constructor(t,e,n,i,r){this._dragDropRegistry=e,this._ngZone=i,this._viewportRuler=r,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new A,this.entered=new A,this.exited=new A,this.dropped=new A,this.sorted=new A,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=y.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new A,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),k5(0,Gx).pipe(aC(this._stopScrollTimers)).subscribe((()=>{const t=this._scrollNode,e=this.autoScrollStep;1===this._verticalScrollDirection?aet(t,-e):2===this._verticalScrollDirection&&aet(t,e),1===this._horizontalScrollDirection?oet(t,-e):2===this._horizontalScrollDirection&&oet(t,e)}))},this.element=ex(t),this._document=n,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new Ntt(n,r)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(t,e,n,i){let r;this._draggingStarted(),null==i?(r=this.sortingDisabled?this._draggables.indexOf(t):-1,-1===r&&(r=this._getItemIndexFromPointerPosition(t,e,n))):r=i;const a=this._activeDraggables,o=a.indexOf(t),s=t.getPlaceholderElement();let l=a[r];if(l===t&&(l=a[r+1]),o>-1&&a.splice(o,1),l&&!this._dragDropRegistry.isDragging(l)){const e=l.getRootElement();e.parentElement.insertBefore(s,e),a.splice(r,0,t)}else if(this._shouldEnterAsFirstChild(e,n)){const e=a[0].getRootElement();e.parentNode.insertBefore(s,e),a.unshift(t)}else ex(this.element).appendChild(s),a.push(t);s.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,n,i,r,a,o){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:n,container:this,previousContainer:i,isPointerOverContainer:r,distance:a,dropPoint:o})}withItems(t){const e=this._draggables;return this._draggables=t,t.forEach((t=>t._withDropContainer(this))),this.isDragging()&&(e.filter((t=>t.isDragging())).every((e=>-1===t.indexOf(e)))?this._reset():this._cacheItems()),this}withDirection(t){return this._direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._orientation=t,this}withScrollableParents(t){const e=ex(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?ret("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,(e=>e.drag===t)):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,n,i){if(this.sortingDisabled||!this._clientRect||!Vtt(this._clientRect,.05,e,n))return;const r=this._itemPositions,a=this._getItemIndexFromPointerPosition(t,e,n,i);if(-1===a&&r.length>0)return;const o="horizontal"===this._orientation,s=ret(r,(e=>e.drag===t)),l=r[a],c=l.clientRect,h=s>a?1:-1,d=this._getItemOffsetPx(r[s].clientRect,c,h),u=this._getSiblingOffsetPx(s,r,h),m=r.slice();(function(t,e,n){const i=net(e,t.length-1),r=net(n,t.length-1);if(i===r)return;const a=t[i],o=r<i?-1:1;for(let e=i;e!==r;e+=o)t[e]=t[e+o];t[r]=a})(r,s,a),this.sorted.next({previousIndex:s,currentIndex:a,container:this,item:t}),r.forEach(((e,n)=>{if(m[n]===e)return;const i=e.drag===t,r=i?d:u,a=i?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=r,o?(a.style.transform=Itt("translate3d("+Math.round(e.offset)+"px, 0, 0)",e.initialTransform),Btt(e.clientRect,0,r)):(a.style.transform=Itt("translate3d(0, "+Math.round(e.offset)+"px, 0)",e.initialTransform),Btt(e.clientRect,r,0))})),this._previousSwap.overlaps=Ftt(c,e,n),this._previousSwap.drag=l.drag,this._previousSwap.delta=o?i.x:i.y}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let n,i=0,r=0;if(this._parentPositions.positions.forEach(((a,o)=>{o===this._document||!a.clientRect||n||Vtt(a.clientRect,.05,t,e)&&([i,r]=function(t,e,n,i){const r=set(e,i),a=cet(e,n);let o=0,s=0;if(r){const e=t.scrollTop;1===r?e>0&&(o=1):t.scrollHeight-e>t.clientHeight&&(o=2)}if(a){const e=t.scrollLeft;1===a?e>0&&(s=1):t.scrollWidth-e>t.clientWidth&&(s=2)}return[o,s]}(o,a.clientRect,t,e),(i||r)&&(n=o))})),!i&&!r){const{width:a,height:o}=this._viewportRuler.getViewportSize(),s={width:a,height:o,top:0,right:a,bottom:o,left:0};i=set(s,e),r=cet(s,t),n=window}n&&(i!==this._verticalScrollDirection||r!==this._horizontalScrollDirection||n!==this._scrollNode)&&(this._verticalScrollDirection=i,this._horizontalScrollDirection=r,this._scrollNode=n,(i||r)&&n?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const t=ex(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const t=ex(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_cacheItemPositions(){const t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map((t=>{const e=t.getVisibleElement();return{drag:t,offset:0,initialTransform:e.style.transform||"",clientRect:Rtt(e)}})).sort(((e,n)=>t?e.clientRect.left-n.clientRect.left:e.clientRect.top-n.clientRect.top))}_reset(){this._isDragging=!1;const t=ex(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach((t=>{var e;const n=t.getRootElement();if(n){const i=null===(e=this._itemPositions.find((e=>e.drag===t)))||void 0===e?void 0:e.initialTransform;n.style.transform=i||""}})),this._siblings.forEach((t=>t._stopReceiving(this))),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(t,e,n){const i="horizontal"===this._orientation,r=e[t].clientRect,a=e[t+-1*n];let o=r[i?"width":"height"]*n;if(a){const t=i?"left":"top",e=i?"right":"bottom";-1===n?o-=a.clientRect[t]-r[e]:o+=r[t]-a.clientRect[e]}return o}_getItemOffsetPx(t,e,n){const i="horizontal"===this._orientation;let r=i?e.left-t.left:e.top-t.top;return-1===n&&(r+=i?e.width-t.width:e.height-t.height),r}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const n=this._itemPositions,i="horizontal"===this._orientation;if(n[0].drag!==this._activeDraggables[0]){const r=n[n.length-1].clientRect;return i?t>=r.right:e>=r.bottom}{const r=n[0].clientRect;return i?t<=r.left:e<=r.top}}_getItemIndexFromPointerPosition(t,e,n,i){const r="horizontal"===this._orientation,a=ret(this._itemPositions,(({drag:a,clientRect:o},s,l)=>{if(a===t)return l.length<2;if(i){const t=r?i.x:i.y;if(a===this._previousSwap.drag&&this._previousSwap.overlaps&&t===this._previousSwap.delta)return!1}return r?e>=Math.floor(o.left)&&e<Math.floor(o.right):n>=Math.floor(o.top)&&n<Math.floor(o.bottom)}));return-1!==a&&this.sortPredicate(a,t,this)?a:-1}_cacheItems(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}_isOverContainer(t,e){return null!=this._clientRect&&Ftt(this._clientRect,t,e)}_getSiblingContainerFromPosition(t,e,n){return this._siblings.find((i=>i._canReceive(t,e,n)))}_canReceive(t,e,n){if(!this._clientRect||!Ftt(this._clientRect,e,n)||!this.enterPredicate(t,this))return!1;const i=this._getShadowRoot().elementFromPoint(e,n);if(!i)return!1;const r=ex(this.element);return i===r||r.contains(i)}_startReceiving(t,e){const n=this._activeSiblings;!n.has(t)&&e.every((t=>this.enterPredicate(t,this)||this._draggables.indexOf(t)>-1))&&(n.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe((t=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(t);e&&(this._itemPositions.forEach((({clientRect:t})=>{Btt(t,e.top,e.left)})),this._itemPositions.forEach((({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})))}else this.isReceiving()&&this._cacheParentPositions()}))}_getShadowRoot(){if(!this._cachedShadowRoot){const t=CC(ex(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const t=this._activeDraggables.filter((t=>t.isDragging()));this._siblings.forEach((e=>e._startReceiving(this,t)))}}function ret(t,e){for(let n=0;n<t.length;n++)if(e(t[n],n,t))return n;return-1}function aet(t,e){t===window?t.scrollBy(0,e):t.scrollTop+=e}function oet(t,e){t===window?t.scrollBy(e,0):t.scrollLeft+=e}function set(t,e){const{top:n,bottom:i,height:r}=t,a=.05*r;return e>=n-a&&e<=n+a?1:e>=i-a&&e<=i+a?2:0}function cet(t,e){const{left:n,right:i,width:r}=t,a=.05*r;return e>=n-a&&e<=n+a?1:e>=i-a&&e<=i+a?2:0}const het=vC({passive:!1,capture:!0});let det=(()=>{class t{constructor(t,e){this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=t=>t.isDragging(),this.pointerMove=new A,this.pointerUp=new A,this.scroll=new A,this._preventDefaultWhileDragging=t=>{this._activeDragInstances.length>0&&t.preventDefault()},this._persistentTouchmoveListener=t=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&t.preventDefault(),this.pointerMove.next(t))},this._document=e}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular((()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,het)}))}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,het)}startDragging(t,e){if(!(this._activeDragInstances.indexOf(t)>-1)&&(this._activeDragInstances.push(t),1===this._activeDragInstances.length)){const t=e.type.startsWith("touch");this._globalListeners.set(t?"touchend":"mouseup",{handler:t=>this.pointerUp.next(t),options:!0}).set("scroll",{handler:t=>this.scroll.next(t),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:het}),t||this._globalListeners.set("mousemove",{handler:t=>this.pointerMove.next(t),options:het}),this._ngZone.runOutsideAngular((()=>{this._globalListeners.forEach(((t,e)=>{this._document.addEventListener(e,t.handler,t.options)}))}))}}stopDragging(t){const e=this._activeDragInstances.indexOf(t);e>-1&&(this._activeDragInstances.splice(e,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(t){return this._activeDragInstances.indexOf(t)>-1}scrolled(t){const e=[this.scroll];return t&&t!==this._document&&e.push(new _((e=>this._ngZone.runOutsideAngular((()=>{const n=t=>{this._activeDragInstances.length&&e.next(t)};return t.addEventListener("scroll",n,!0),()=>{t.removeEventListener("scroll",n,!0)}}))))),J(...e)}ngOnDestroy(){this._dragInstances.forEach((t=>this.removeDragItem(t))),this._dropInstances.forEach((t=>this.removeDropContainer(t))),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach(((t,e)=>{this._document.removeEventListener(e,t.handler,t.options)})),this._globalListeners.clear()}}return t["ɵfac"]=function(e){return new(e||t)(wi(ph),wi(Hh))},t["ɵprov"]=vt({factory:function(){return new t(wi(ph),wi(Hh))},token:t,providedIn:"root"}),t})();const uet={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let met=(()=>{class t{constructor(t,e,n,i){this._document=t,this._ngZone=e,this._viewportRuler=n,this._dragDropRegistry=i}createDrag(t,e=uet){return new qtt(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(t){return new iet(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return t["ɵfac"]=function(e){return new(e||t)(wi(Hh),wi(ph),wi(RC),wi(det))},t["ɵprov"]=vt({factory:function(){return new t(wi(Hh),wi(ph),wi(RC),wi(det))},token:t,providedIn:"root"}),t})();const pet=new ni("CDK_DRAG_PARENT"),get=new ni("CDK_DRAG_CONFIG"),fet=new ni("CdkDropList"),bet=new ni("CdkDragHandle");let yet=(()=>{class t{constructor(t,e){this.element=t,this._stateChanges=new A,this._disabled=!1,this._parentDrag=e}get disabled(){return this._disabled}set disabled(t){this._disabled=$w(t),this._stateChanges.next(this)}ngOnDestroy(){this._stateChanges.complete()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(bl),Zo(pet,12))},t["ɵdir"]=ne({type:t,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},features:[hl([{provide:bet,useExisting:t}])]}),t})();const vet=new ni("CdkDragPlaceholder"),wet=new ni("CdkDragPreview");let xet=(()=>{class t{constructor(e,n,i,r,a,o,s,l,c,h,d){this.element=e,this.dropContainer=n,this._ngZone=r,this._viewContainerRef=a,this._dir=s,this._changeDetectorRef=c,this._selfHandle=h,this._parentDrag=d,this._destroyed=new A,this.started=new Dc,this.released=new Dc,this.ended=new Dc,this.entered=new Dc,this.exited=new Dc,this.dropped=new Dc,this.moved=new _((t=>{const e=this._dragRef.moved.pipe(L((t=>({source:this,pointerPosition:t.pointerPosition,event:t.event,delta:t.delta,distance:t.distance})))).subscribe(t);return()=>{e.unsubscribe()}})),this._dragRef=l.createDrag(e,{dragStartThreshold:o&&null!=o.dragStartThreshold?o.dragStartThreshold:5,pointerDirectionChangeThreshold:o&&null!=o.pointerDirectionChangeThreshold?o.pointerDirectionChangeThreshold:5,zIndex:null==o?void 0:o.zIndex}),this._dragRef.data=this,t._dragInstances.push(this),o&&this._assignDefaults(o),n&&(this._dragRef._withDropContainer(n._dropListRef),n.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(t){this._disabled=$w(t),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}ngAfterViewInit(){this._ngZone.runOutsideAngular((()=>{this._ngZone.onStable.pipe(JC(1),aC(this._destroyed)).subscribe((()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}))}))}ngOnChanges(t){const e=t.rootElementSelector,n=t.freeDragPosition;e&&!e.firstChange&&this._updateRootElement(),n&&!n.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const e=t._dragInstances.indexOf(this);e>-1&&t._dragInstances.splice(e,1),this._ngZone.runOutsideAngular((()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}))}_updateRootElement(){const t=this.element.nativeElement,e=this.rootElementSelector?Cet(t,this.rootElementSelector):t;this._dragRef.withRootElement(e||t)}_getBoundaryElement(){const t=this.boundaryElement;return t?"string"==typeof t?Cet(this.element.nativeElement,t):ex(t):null}_syncInputs(e){e.beforeStarted.subscribe((()=>{if(!e.isDragging()){const t=this._dir,n=this.dragStartDelay,i=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,r=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.dragStartDelay="object"==typeof n&&n?n:Kw(n),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(i).withPreviewTemplate(r).withPreviewContainer(this.previewContainer||"global"),t&&e.withDirection(t.value)}})),e.beforeStarted.pipe(JC(1)).subscribe((()=>{var n,i;if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let r=this.element.nativeElement.parentElement;for(;r;){if(null===(n=r.classList)||void 0===n?void 0:n.contains("cdk-drag")){e.withParent((null===(i=t._dragInstances.find((t=>t.element.nativeElement===r)))||void 0===i?void 0:i._dragRef)||null);break}r=r.parentElement}}))}_handleEvents(t){t.started.subscribe((()=>{this.started.emit({source:this}),this._changeDetectorRef.markForCheck()})),t.released.subscribe((()=>{this.released.emit({source:this})})),t.ended.subscribe((t=>{this.ended.emit({source:this,distance:t.distance,dropPoint:t.dropPoint}),this._changeDetectorRef.markForCheck()})),t.entered.subscribe((t=>{this.entered.emit({container:t.container.data,item:this,currentIndex:t.currentIndex})})),t.exited.subscribe((t=>{this.exited.emit({container:t.container.data,item:this})})),t.dropped.subscribe((t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:this,distance:t.distance,dropPoint:t.dropPoint})}))}_assignDefaults(t){const{lockAxis:e,dragStartDelay:n,constrainPosition:i,previewClass:r,boundaryElement:a,draggingDisabled:o,rootElementSelector:s,previewContainer:l}=t;this.disabled=null!=o&&o,this.dragStartDelay=n||0,e&&(this.lockAxis=e),i&&(this.constrainPosition=i),r&&(this.previewClass=r),a&&(this.boundaryElement=a),s&&(this.rootElementSelector=s),l&&(this.previewContainer=l)}_setupHandlesListener(){this._handles.changes.pipe(cC(this._handles),wS((t=>{const e=t.filter((t=>t._parentDrag===this)).map((t=>t.element));this._selfHandle&&this.rootElementSelector&&e.push(this.element),this._dragRef.withHandles(e)})),Ju((t=>J(...t.map((t=>t._stateChanges.pipe(cC(t))))))),aC(this._destroyed)).subscribe((t=>{const e=this._dragRef,n=t.element.nativeElement;t.disabled?e.disableHandle(n):e.enableHandle(n)}))}}return t["ɵfac"]=function(e){return new(e||t)(Zo(bl),Zo(fet,12),Zo(Hh),Zo(ph),Zo(tc),Zo(get,8),Zo(Fx,8),Zo(met),Zo(Gl),Zo(bet,10),Zo(pet,12))},t["ɵdir"]=ne({type:t,selectors:[["","cdkDrag",""]],contentQueries:function(t,e,n){if(1&t&&(Hc(n,wet,5),Hc(n,vet,5),Hc(n,bet,5)),2&t){let t;Vc(t=Gc())&&(e._previewTemplate=t.first),Vc(t=Gc())&&(e._placeholderTemplate=t.first),Vc(t=Gc())&&(e._handles=t)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,e){2&t&&Cs("cdk-drag-disabled",e.disabled)("cdk-drag-dragging",e._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],previewContainer:["cdkDragPreviewContainer","previewContainer"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[hl([{provide:pet,useExisting:t}]),pe]}),t._dragInstances=[],t})();function Cet(t,e){let n=t.parentElement;for(;n;){if(n.matches?n.matches(e):n.msMatchesSelector(e))return n;n=n.parentElement}return null}let ket=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({providers:[met],imports:[HC]}),t})();const Pet=function(t){return{"background-color":t}};function _et(t,e){if(1&t){const t=Jo();Yo(0,"div",6),es("click",(function(){const e=Ne(t).$implicit;return os(3).changeColor(e.str)})),jo()}2&t&&Uo("ngStyle",fc(1,Pet,e.$implicit.str))}function Met(t,e){if(1&t&&(Yo(0,"div",4),Ho(1,_et,1,3,"div",5),jo()),2&t){const t=e.$implicit;sa(1),Uo("ngForOf",t)}}function Det(t,e){if(1&t&&(Yo(0,"ul",2),Ho(1,Met,2,1,"div",3),jo()),2&t){const t=os();sa(1),Uo("ngForOf",t.mPalette)}}const Eet=function(t){return{rectangleTrigger:t}};let Oet=(()=>{class t{constructor(t){this.changeDetectorRef=t,this.triggerShape="circle",this.color="rgba(255,0,0,1)",this.colorChange=new Dc,this.isColorMenuVisible=!1,this.mPalette=[[{str:"rgba(255,0,0,1)",num:4294901760},{str:"rgba(255,255,0,1)",num:4294967040},{str:"rgba(0,255,0,1)",num:4278222848},{str:"rgba(0,255,255,1)",num:4278255615},{str:"rgba(0,0,255,1)",num:4278190335},{str:"rgba(255,0,255,1)",num:4294902015}],[{str:"rgba(0,0,0,1)",num:4278190080},{str:"rgba(255,255,255,1)",num:4294967295},{str:"rgba(130,130,130,1)",num:4286743170},{str:"rgba(155,124,111,1)",num:4288380015},{str:"rgba(28,163,184,1)",num:4280067e3},{str:"rgba(242,153,42,1)",num:4294089002}]]}ngOnInit(){}changeColor(t){this.color=t,this.isColorMenuVisible=!1,this.colorChange.emit(t),this.changeDetectorRef.detectChanges()}isColorMenuVisibleChange(){this.changeDetectorRef.detectChanges()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Gl))},t["ɵcmp"]=qt({type:t,selectors:[["app-color-picker"]],inputs:{triggerShape:"triggerShape",color:"color"},outputs:{colorChange:"colorChange"},decls:3,vars:8,consts:[["title","修改颜色","nz-popover","","nzPopoverTrigger","click","nzPopoverPlacement","bottomLeft","nzPopoverOverlayClassName","zwColorPickerPopover",1,"select-color",3,"ngStyle","ngClass","nzPopoverContent","nzPopoverVisible","nzPopoverVisibleChange"],["nzPopoverContent",""],["nz-menu",""],["style","display: flex;",4,"ngFor","ngForOf"],[2,"display","flex"],["class","rectangleColor",3,"ngStyle","click",4,"ngFor","ngForOf"],[1,"rectangleColor",3,"ngStyle","click"]],template:function(t,e){if(1&t&&(Yo(0,"span",0),es("nzPopoverVisibleChange",(function(t){return e.isColorMenuVisible=t}))("nzPopoverVisibleChange",(function(){return e.isColorMenuVisibleChange()})),jo(),Ho(1,Det,2,1,"ng-template",null,1,Yc)),2&t){const t=Go(2);Uo("ngStyle",fc(4,Pet,e.color))("ngClass",fc(6,Eet,"rectangle"===e.triggerShape))("nzPopoverContent",t)("nzPopoverVisible",e.isColorMenuVisible)}},directives:[eI,Qd,Gd,oA,Ud],styles:["[_nghost-%COMP%]{display:flex;align-items:center}.select-color[_ngcontent-%COMP%]{display:inline-block;width:18px;height:18px;border-radius:9px;cursor:pointer;box-sizing:content-box;border:1px solid #363636}.rectangleTrigger[_ngcontent-%COMP%]{border-radius:0}.rectangleColor[_ngcontent-%COMP%]{box-sizing:border-box;height:24px;width:24px;cursor:pointer}.rectangleColor[_ngcontent-%COMP%]:hover{border:2px solid #fff}.ant-dropdown-menu[_ngcontent-%COMP%]{padding:0} .zwColorPickerPopover{padding-top:5px} .zwColorPickerPopover .ant-popover-arrow{display:none} .zwColorPickerPopover .ant-menu{border:0}"]}),t})();const Aet=["fcmpParamsItem"],Tet=function(t){return{hidden:t}};function Iet(t,e){if(1&t){const t=Jo();qo(0),Yo(1,"span",5),gn(),Yo(2,"svg",6),es("click",(function(){return Ne(t),os().isVisibleChangeByClick()})),Xo(3,"use"),jo(),jo(),$o()}if(2&t){const t=os();sa(1),Uo("ngClass",fc(3,Tet,!!t.drawOrder)),Fo("title",t.isVisibleTitle),sa(2),Fo("href",t.isVisible?"#icon-xianshi":"#icon-yincang",null,"xlink")}}const Let=function(t){return{"background-color":t}},zet=function(t){return{disabled:t}};function Ret(t,e){if(1&t&&(qo(0),Xo(1,"span",8),Xo(2,"span",9),$o()),2&t){const t=os(2);sa(1),Uo("ngStyle",fc(4,Let,t.secondColor))("ngClass",fc(6,zet,t.disabled)),sa(1),Uo("ngStyle",fc(8,Let,t.fristColor))("ngClass",fc(10,zet,t.disabled))}}function Fet(t,e){if(1&t&&(qo(0),Xo(1,"span",8),Xo(2,"span",9),$o()),2&t){const t=os(2);sa(1),Uo("ngStyle",fc(4,Let,t.fristColor))("ngClass",fc(6,zet,t.disabled)),sa(1),Uo("ngStyle",fc(8,Let,t.secondColor))("ngClass",fc(10,zet,t.disabled))}}function Bet(t,e){if(1&t){const t=Jo();qo(0),Yo(1,"span",7),es("click",(function(){return Ne(t),os().changeDrawOrder()})),Ho(2,Ret,3,12,"ng-container",2),Ho(3,Fet,3,12,"ng-container",2),jo(),$o()}if(2&t){const t=os();sa(1),Uo("ngClass",fc(3,zet,t.disabled)),sa(1),Uo("ngIf","referOrigin"===t.drawOrder),sa(1),Uo("ngIf","originRefer"===t.drawOrder)}}function Vet(t,e){if(1&t){const t=Jo();qo(0),Yo(1,"app-color-picker",10),es("colorChange",(function(e){return Ne(t),os().color=e}))("colorChange",(function(e){return Ne(t),os().changeColor(e)})),jo(),$o()}if(2&t){const t=os();sa(1),Uo("color",t.color)}}function Net(t,e){if(1&t&&(qo(0),gn(),Yo(1,"svg",11),Xo(2,"use"),jo(),$o()),2&t){const t=os();sa(2),Fo("href","#icon-"+t.icon,null,"xlink")}}function Het(t,e){if(1&t&&(qo(0),Yo(1,"span",12),Bs(2),jo(),$o()),2&t){const t=os();sa(2),Vs(t.desc)}}function Get(t,e){if(1&t&&(Yo(0,"span"),Bs(1),jo()),2&t){const t=os(2).$implicit;sa(1),Ns("",null==t?null:t.lable,": ")}}function Zet(t,e){if(1&t&&(Yo(0,"div",15),Ho(1,Get,2,1,"span",2),Yo(2,"span"),Bs(3),jo(),jo()),2&t){const t=os().$implicit;sa(1),Uo("ngIf",null==t?null:t.lable),sa(2),Vs(null==t?null:t.value)}}function Uet(t,e){if(1&t&&(qo(0),Ho(1,Zet,4,2,"div",14),$o()),2&t){const t=e.$implicit;sa(1),Uo("ngIf",t)}}function Wet(t,e){1&t&&Ho(0,Uet,2,1,"ng-container",13),2&t&&Uo("ngForOf",os().fileInfo)}const Yet=function(t,e){return{canHover:t,hovered:e}};let jet=(()=>{class t{constructor(t){this.changeDetectorRef=t,this.isVisible=void 0,this.isVisibleTitle="",this.name="",this.desc="",this.color="",this.icon="",this.drawOrder=void 0,this.fristColor="",this.secondColor="",this.disabled=!1,this.fileInfo=[],this.colorChange=new Dc,this.drawOrderChange=new Dc,this.isVisibleChange=new Dc,this.fcmpDrawColorChange=new Dc,this.destroy$=new A,this.hovered=!1}ngOnInit(){}ngAfterViewInit(){Nx(this.fcmpParamsItem.nativeElement,"touchstart",{passive:!0}).pipe(aC(this.destroy$)).subscribe((()=>{this.hovered=!0,this.changeDetectorRef.detectChanges()})),Nx(document,"touchstart",{passive:!0}).pipe(lm((t=>{const e=t.target;return!Array.from(document.querySelectorAll(".fcmpParamsItem")).some((t=>t.contains(e)))}))).pipe(aC(this.destroy$)).subscribe((()=>{this.hovered=!1,this.changeDetectorRef.detectChanges()}))}ngOnChanges(t){var e,n;(!0===(null===(e=null==t?void 0:t.isVisible)||void 0===e?void 0:e.currentValue)||!1===(null===(n=null==t?void 0:t.isVisible)||void 0===n?void 0:n.currentValue))&&t.isVisible.previousValue!==t.isVisible.currentValue&&(this.checkVisible(),this.changeDetectorRef.detectChanges())}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}hoveredChange(){this.changeDetectorRef.detectChanges()}changeColor(t){this.colorChange.emit(t),this.fcmpDrawColorChange.emit([1,...this.rgbaString2NumberList(t)])}changeDrawOrder(){this.disabled||("originRefer"===this.drawOrder?(this.drawOrder="referOrigin",this.fcmpDrawColorChange.emit(3)):"referOrigin"===this.drawOrder&&(this.drawOrder="originRefer",this.fcmpDrawColorChange.emit(2)),this.drawOrderChange.emit(this.drawOrder),this.changeDetectorRef.detectChanges())}isVisibleChangeByClick(){this.isVisible=!this.isVisible,this.isVisibleChange.emit(this.isVisible),this.changeDetectorRef.detectChanges()}checkVisible(){this.fcmpDrawColorChange.emit(this.isVisible?[1,...this.rgbaString2NumberList(this.color)]:[-1,...this.rgbaString2NumberList(this.color)])}rgbaString2NumberList(t){return t.replace(/rgba\(|\)/g,"").split(",").map(((t,e)=>3===e?255*Number(t):Number(t)))}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Gl))},t["ɵcmp"]=qt({type:t,selectors:[["app-fcmp-params-item"]],viewQuery:function(t,e){if(1&t&&Nc(Aet,5),2&t){let t;Vc(t=Gc())&&(e.fcmpParamsItem=t.first)}},inputs:{isVisible:"isVisible",isVisibleTitle:"isVisibleTitle",name:"name",desc:"desc",color:"color",icon:"icon",drawOrder:"drawOrder",fristColor:"fristColor",secondColor:"secondColor",disabled:"disabled",fileInfo:"fileInfo"},outputs:{colorChange:"colorChange",drawOrderChange:"drawOrderChange",isVisibleChange:"isVisibleChange",fcmpDrawColorChange:"fcmpDrawColorChange"},features:[pe],decls:11,vars:15,consts:[["nz-popover","","nzPopoverTrigger","hover","nzPopoverPlacement","rightTop","nzPopoverOverlayClassName","zwFcmpParamsItemPopover",1,"fcmpParamsItem",3,"ngClass","nzPopoverContent","nzPopoverVisible","nzPopoverVisibleChange"],["fcmpParamsItem",""],[4,"ngIf"],["id","name",3,"ngClass"],["nzPopoverContent",""],["id","visibleSvgWrap",3,"ngClass"],["aria-hidden","true",1,"icon",3,"click"],["id","drawOrderBlock",3,"ngClass","click"],["id","drawOrderColorBlock2",1,"drawOrderColorBlock",3,"ngStyle","ngClass"],["id","drawOrderColorBlock1",1,"drawOrderColorBlock",3,"ngStyle","ngClass"],["triggerShape","rectangle",3,"color","colorChange"],[1,"icon","paramsItemFilter"],["id","desc"],[4,"ngFor","ngForOf"],["class","infoItem",4,"ngIf"],[1,"infoItem"]],template:function(t,e){if(1&t&&(Yo(0,"div",0,1),es("nzPopoverVisibleChange",(function(t){return e.hovered=t}))("nzPopoverVisibleChange",(function(){return e.hoveredChange()})),Ho(2,Iet,4,5,"ng-container",2),Ho(3,Bet,4,5,"ng-container",2),Ho(4,Vet,2,1,"ng-container",2),Ho(5,Net,3,1,"ng-container",2),Yo(6,"span",3),Bs(7),jo(),Ho(8,Het,3,1,"ng-container",2),jo(),Ho(9,Wet,1,1,"ng-template",null,4,Yc)),2&t){const t=Go(10);Uo("ngClass",bc(10,Yet,!!e.desc,e.hovered))("nzPopoverContent",e.fileInfo.length?t:void 0)("nzPopoverVisible",e.hovered),sa(2),Uo("ngIf",!0===e.isVisible||!1===e.isVisible||!!e.drawOrder),sa(1),Uo("ngIf",!!e.drawOrder),sa(1),Uo("ngIf",!!e.color),sa(1),Uo("ngIf",!!e.icon),sa(1),Uo("ngClass",fc(13,zet,e.disabled)),sa(1),Vs(e.name),sa(1),Uo("ngIf",!!e.desc)}},directives:[eI,Gd,Yd,Qd,Oet,Ud],styles:["span[_ngcontent-%COMP%]{cursor:default;font-size:12px}.fcmpParamsItem[_ngcontent-%COMP%]{display:flex;align-items:center;padding-left:7.5px;border-radius:2px;height:28px}.fcmpParamsItem[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:10px}.fcmpParamsItem[_ngcontent-%COMP%] #visibleSvgWrap[_ngcontent-%COMP%]{font-size:18px;transition:color .1s}.fcmpParamsItem[_ngcontent-%COMP%] #visibleSvgWrap[_ngcontent-%COMP%]:hover{cursor:pointer;color:orange}.fcmpParamsItem[_ngcontent-%COMP%] #visibleSvgWrap.hidden[_ngcontent-%COMP%]{visibility:hidden}.fcmpParamsItem[_ngcontent-%COMP%] #drawOrderBlock[_ngcontent-%COMP%]{width:20px;height:20px;position:relative}.fcmpParamsItem[_ngcontent-%COMP%] #drawOrderBlock.disabled[_ngcontent-%COMP%]{filter:grayscale(.5);opacity:.75}.fcmpParamsItem[_ngcontent-%COMP%] #drawOrderBlock[_ngcontent-%COMP%] #drawOrderColorBlock1[_ngcontent-%COMP%]{position:absolute;top:0;left:0}.fcmpParamsItem[_ngcontent-%COMP%] #drawOrderBlock[_ngcontent-%COMP%] #drawOrderColorBlock2[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0}.fcmpParamsItem[_ngcontent-%COMP%] #drawOrderBlock[_ngcontent-%COMP%] .drawOrderColorBlock[_ngcontent-%COMP%]{display:inline-block;width:14px;height:14px;box-sizing:content-box;border:1px solid #363636;cursor:pointer}.fcmpParamsItem[_ngcontent-%COMP%] #drawOrderBlock[_ngcontent-%COMP%] .drawOrderColorBlock.disabled[_ngcontent-%COMP%]{cursor:not-allowed}.fcmpParamsItem[_ngcontent-%COMP%] #name[_ngcontent-%COMP%]{margin-right:20px}.fcmpParamsItem[_ngcontent-%COMP%] #name.disabled[_ngcontent-%COMP%]{filter:grayscale(.5);opacity:.75}.fcmpParamsItem[_ngcontent-%COMP%] #desc[_ngcontent-%COMP%]{font-size:12px;margin-right:0}.fcmpParamsItem.canHover[_ngcontent-%COMP%]{transition:background-color .15s,color .1s}.fcmpParamsItem.canHover.hovered[_ngcontent-%COMP%]{background-color:var(--editor_main_selected);color:var(--main_white)}.fcmpParamsItem[_ngcontent-%COMP%] > svg.paramsItemFilter[_ngcontent-%COMP%]{font-size:22px}.fcmpParamsItem[_ngcontent-%COMP%] > svg.paramsItemFilter[_ngcontent-%COMP%]:hover{cursor:default}.infoItem[_ngcontent-%COMP%]{padding:2.5px 10px;font-size:12px;color:var(--main_white);background-color:var(--editor_main_selected)}.infoItem[_ngcontent-%COMP%]:first-child{padding-top:7.5px}.infoItem[_ngcontent-%COMP%]:last-child{padding-bottom:7.5px} .zwFcmpParamsItemPopover{border-radius:2px} .zwFcmpParamsItemPopover .ant-popover-arrow-content{background-color:var(--editor_main_selected)}"]}),t})();const Xet={leading:!0,trailing:!1};class qet{constructor(t,e,n,i){this.duration=t,this.scheduler=e,this.leading=n,this.trailing=i}call(t,e){return e.subscribe(new $et(t,this.duration,this.scheduler,this.leading,this.trailing))}}class $et extends C{constructor(t,e,n,i,r){super(t),this.duration=e,this.scheduler=n,this.leading=i,this.trailing=r,this._hasTrailingValue=!1,this._trailingValue=null}_next(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Ket,this.duration,{subscriber:this})),this.leading?this.destination.next(t):this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)}}function Ket(t){const{subscriber:e}=t;e.clearThrottle()}const Jet=["slider"],Qet=["track"],tnt=["thumb"],ent=function(t){return{disabled:t}};let nnt=(()=>{class t{constructor(t){this.changeDetectorRef=t,this.minNumber=0,this.maxNumber=100,this.number=0,this.disabled=!1,this.numberChange=new Dc,this.destroy$=new A,this.isOnNumberChange=!1,this.thumbWidthPx=10,this.updateSliderByUserOperate=t=>{let e=this.slider.nativeElement.getBoundingClientRect(),n=t-e.left;n<this.thumbWidthPx&&(n=this.thumbWidthPx),n>e.width&&(n=e.width),this.track.nativeElement.style.width=n+"px",this.thumb.nativeElement.style.left=n-this.thumbWidthPx+"px",this.number=this.minNumber+(n-this.thumbWidthPx)/(e.width-this.thumbWidthPx)*(this.maxNumber-this.minNumber),this.number=Math.round(this.number),this.numberChange.emit(this.number),this.changeDetectorRef.detectChanges()}}ngOnInit(){}ngAfterViewInit(){this.updateSliderByNumber(this.number),J(Nx(document,"mouseup"),Nx(document,"touchend")).pipe(aC(this.destroy$)).subscribe((t=>{this.isOnNumberChange=!1,this.changeDetectorRef.detectChanges()})),J(Nx(this.slider.nativeElement,"mousedown").pipe(wS((()=>this.isOnNumberChange=!0)),L((t=>t.clientX))),Nx(document,"mousemove").pipe(L((t=>t.clientX))),Nx(this.slider.nativeElement,"touchstart",{passive:!0}).pipe(wS((()=>this.isOnNumberChange=!0)),L((t=>t.touches[0].clientX))),Nx(document,"touchmove",{passive:!0}).pipe(L((t=>t.touches[0].clientX)))).pipe(aC(this.destroy$),function(t,e=Jx,n=Xet){return i=>i.lift(new qet(t,e,n.leading,n.trailing))}(16)).subscribe((t=>{this.isOnNumberChange&&!this.disabled?this.updateSliderByUserOperate(t):this.changeDetectorRef.detectChanges()}))}ngOnChanges(t){var e;(null===(e=null==t?void 0:t.number)||void 0===e?void 0:e.currentValue)&&t.number.previousValue!==t.number.currentValue&&this.updateSliderByNumber(this.number)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}updateSliderByNumber(t){var e;if(!(null===(e=this.slider)||void 0===e?void 0:e.nativeElement))return;let n=this.slider.nativeElement.getBoundingClientRect();if(t>this.maxNumber||t<this.minNumber)return;let i=this.thumbWidthPx+(t-this.minNumber)/(this.maxNumber-this.minNumber)*(n.width-this.thumbWidthPx);this.track.nativeElement.style.width=i+"px",this.thumb.nativeElement.style.left=i-this.thumbWidthPx+"px",this.changeDetectorRef.detectChanges()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Gl))},t["ɵcmp"]=qt({type:t,selectors:[["app-rectangle-slider"]],viewQuery:function(t,e){if(1&t&&(Nc(Jet,5),Nc(Qet,5),Nc(tnt,5)),2&t){let t;Vc(t=Gc())&&(e.slider=t.first),Vc(t=Gc())&&(e.track=t.first),Vc(t=Gc())&&(e.thumb=t.first)}},inputs:{minNumber:"minNumber",maxNumber:"maxNumber",number:"number",disabled:"disabled"},outputs:{numberChange:"numberChange"},features:[pe],decls:8,vars:4,consts:[[1,"sliderContainer",3,"ngClass"],["slider",""],[1,"text"],[1,"track"],["track",""],[1,"thumb"],["thumb",""]],template:function(t,e){1&t&&(Yo(0,"div",0,1),Yo(2,"div",2),Bs(3),jo(),Xo(4,"div",3,4),Xo(6,"div",5,6),jo()),2&t&&(Uo("ngClass",fc(2,ent,e.disabled)),sa(3),Ns("尺寸:",e.number,""))},directives:[Gd],styles:[".sliderContainer[_ngcontent-%COMP%]{box-sizing:content-box;position:relative;width:calc(100% - 2px);height:24px;background-color:var(--editor_input_background);display:flex;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;border:1px solid var(--version_border);border-radius:2px}.sliderContainer.disabled[_ngcontent-%COMP%]{cursor:not-allowed;filter:grayscale(.5);opacity:.75}.text[_ngcontent-%COMP%]{position:absolute;color:var(--main_font);z-index:99;left:7px;font-size:12px}.track[_ngcontent-%COMP%]{position:absolute;height:100%;background-color:var(--editor_fcmp_active_background)}.thumb[_ngcontent-%COMP%]{position:absolute;width:10px;height:100%;background-color:#007ceb}"]}),t})();const int=["modalTitle"],rnt=["modalContent"];function ant(t,e){1&t&&Ko(0)}function ont(t,e){1&t&&Ko(0)}function snt(t,e){1&t&&Ko(0)}const lnt=function(t){return{dropDownSelected:t}},cnt=function(){return{icon:"shangyige"}},hnt=function(){return{icon:"xiayige"}};function dnt(t,e){if(1&t){const t=Jo();Yo(0,"div",7,8),Yo(2,"div",9),es("touchstart",(function(){return Ne(t),Go(1).classList.add("draging")}))("mousedown",(function(){return Ne(t),Go(1).classList.add("draging")}))("touchend",(function(){return Ne(t),Go(1).classList.remove("draging")}))("mouseup",(function(){return Ne(t),Go(1).classList.remove("draging")})),Yo(3,"div",10),Yo(4,"span"),Bs(5,"图纸对比"),jo(),jo(),Yo(6,"div",11),Yo(7,"span",12),es("click",(function(){return Ne(t),os().changeIsParamsPanelVisible()}))("mousedown",(function(t){return t.stopPropagation()}))("touchstart",(function(t){return t.stopPropagation()})),gn(),Yo(8,"svg",13),Xo(9,"use"),jo(),jo(),fn(),Yo(10,"span"),Yo(11,"span",14),es("click",(function(){return Ne(t),os().changeIndex("current")}))("mousedown",(function(t){return t.stopPropagation()}))("touchstart",(function(t){return t.stopPropagation()})),Bs(12),jo(),Yo(13,"span"),Bs(14),jo(),jo(),Yo(15,"span"),Yo(16,"span",15),es("click",(function(){return Ne(t),os().changeIndex("previous")}))("mousedown",(function(t){return t.stopPropagation()}))("touchstart",(function(t){return t.stopPropagation()})),Ho(17,ant,1,0,"ng-container",16),jo(),Yo(18,"span",17),es("click",(function(){return Ne(t),os().changeIndex("next")}))("mousedown",(function(t){return t.stopPropagation()}))("touchstart",(function(t){return t.stopPropagation()})),Ho(19,ont,1,0,"ng-container",16),jo(),jo(),Yo(20,"button",18),es("click",(function(){return Ne(t),os().exitFcmp()}))("mousedown",(function(t){return t.stopPropagation()}))("touchstart",(function(t){return t.stopPropagation()})),Bs(21," 退出 "),jo(),jo(),jo(),Ho(22,snt,1,0,"ng-container",19),jo()}if(2&t){const t=os(),e=Go(2),n=Go(4);Uo("cdkDragBoundary",t.cdkDragBoundary),sa(7),Uo("ngClass",fc(11,lnt,t.isParamsPanelVisible)),Fo("title",t.isParamsPanelVisible?"收起":"展开"),sa(2),Fo("href","#icon-shezhimian",null,"xlink"),sa(3),Vs(t.index),sa(2),Ns("/ ",t.total,""),sa(3),Uo("ngTemplateOutlet",e)("ngTemplateOutletContext",gc(13,cnt)),sa(2),Uo("ngTemplateOutlet",e)("ngTemplateOutletContext",gc(14,hnt)),sa(3),Uo("ngTemplateOutlet",n)}}function unt(t,e){if(1&t&&(Yo(0,"span",20),gn(),Yo(1,"svg",13),Xo(2,"use"),jo(),jo()),2&t){const t=e.icon;sa(2),Fo("href","#icon-"+t,null,"xlink")}}function mnt(t,e){if(1&t){const t=Jo();Yo(0,"div",34),Yo(1,"button",35),es("click",(function(){return Ne(t),os(3).detectedVarCancel()})),Bs(2," 取消 "),jo(),Yo(3,"button",36),es("click",(function(){return Ne(t),os(3).detectedVarSubmit()})),Bs(4," 确认 "),jo(),jo()}2&t&&Uo("@slideInOutFast",void 0)}const pnt=function(t){return{disabled:t}};function gnt(t,e){if(1&t){const t=Jo();Yo(0,"div",22),Yo(1,"app-fcmp-params-item",23),es("isVisibleChange",(function(e){return Ne(t),os(2).isCompareFileVisible=e}))("isVisibleChange",(function(){return Ne(t),os(2).isVisibleChange("compare")}))("colorChange",(function(e){return Ne(t),os(2).compareFileColor=e}))("colorChange",(function(){return Ne(t),os(2).colorChange()}))("fcmpDrawColorChange",(function(e){return Ne(t),os(2).fcmpDrawColorChange(1,e)})),jo(),Yo(2,"app-fcmp-params-item",23),es("isVisibleChange",(function(e){return Ne(t),os(2).isBaseFileVisible=e}))("isVisibleChange",(function(){return Ne(t),os(2).isVisibleChange("base")}))("colorChange",(function(e){return Ne(t),os(2).baseFileColor=e}))("colorChange",(function(){return Ne(t),os(2).colorChange()}))("fcmpDrawColorChange",(function(e){return Ne(t),os(2).fcmpDrawColorChange(0,e)})),jo(),Yo(3,"app-fcmp-params-item",24),es("isVisibleChange",(function(e){return Ne(t),os(2).isCommonVisible=e}))("isVisibleChange",(function(){return Ne(t),os(2).isVisibleChange()}))("colorChange",(function(e){return Ne(t),os(2).commonColor=e}))("colorChange",(function(){return Ne(t),os(2).colorChange()}))("fcmpDrawColorChange",(function(e){return Ne(t),os(2).fcmpDrawColorChange(2,e)})),jo(),Yo(4,"app-fcmp-params-item",25),es("drawOrderChange",(function(e){return Ne(t),os(2).drawOrder=e}))("drawOrderChange",(function(){return Ne(t),os(2).drawOrderChange()}))("fcmpDrawColorChange",(function(e){return Ne(t),os(2).fcmpDrawColorChange(4,e)})),jo(),Yo(5,"div",26),Bs(6,"修订云线"),jo(),Yo(7,"app-fcmp-params-item",24),es("isVisibleChange",(function(e){return Ne(t),os(2).isRevcloudVisiable=e}))("isVisibleChange",(function(){return Ne(t),os(2).isVisibleChange()}))("colorChange",(function(e){return Ne(t),os(2).revcloudColor=e}))("colorChange",(function(){return Ne(t),os(2).colorChange()}))("fcmpDrawColorChange",(function(e){return Ne(t),os(2).fcmpDrawColorChange(3,e)})),jo(),Yo(8,"div",27),Yo(9,"nz-select",28),es("ngModelChange",(function(e){return Ne(t),os(2).revcloudShape=e}))("ngModelChange",(function(){return Ne(t),os(2).detectIsVisibleVarChanges()}))("nzOpenChange",(function(){return Ne(t),os(2).changeDetect()})),Xo(10,"nz-option",29),jo(),Yo(11,"div",30),Yo(12,"app-rectangle-slider",31),es("numberChange",(function(e){return Ne(t),os(2).revcloudSize=e}))("numberChange",(function(){return Ne(t),os(2).detectIsVisibleVarChanges()})),jo(),jo(),jo(),Yo(13,"div",26),Bs(14,"过滤"),jo(),Yo(15,"app-fcmp-params-item",32),es("isVisibleChange",(function(e){return Ne(t),os(2).isHatchVisiable=e}))("isVisibleChange",(function(){return Ne(t),os(2).detectIsVisibleVarChanges()})),jo(),Yo(16,"app-fcmp-params-item",32),es("isVisibleChange",(function(e){return Ne(t),os(2).isTextVisiable=e}))("isVisibleChange",(function(){return Ne(t),os(2).detectIsVisibleVarChanges()})),jo(),Ho(17,mnt,5,1,"div",33),jo()}if(2&t){const t=os(2);Uo("@slideInOut",void 0),sa(1),Uo("isVisible",t.isCompareFileVisible)("isVisibleTitle",t.isCompareFileVisible?"可见性:关闭仅在参照中的对象":"可见性:打开仅在参照中的对象")("color",t.compareFileColor)("name","参照")("desc","不在当前图纸中")("fileInfo",t.compareFileInfo),sa(1),Uo("isVisible",t.isBaseFileVisible)("isVisibleTitle",t.isBaseFileVisible?"可见性:关闭仅在基准中的对象":"可见性:打开仅在基准中的对象")("color",t.baseFileColor)("name","基准")("desc","仅在当前图纸中")("fileInfo",t.baseFileInfo),sa(1),Uo("isVisible",t.isCommonVisible)("isVisibleTitle",t.isCommonVisible?"可见性:关闭在参照&基准中没有区别的对象":"可见性:打开在参照&基准中没有区别的对象")("color",t.commonColor)("name","没有区别"),sa(1),Uo("drawOrder",t.drawOrder)("name","绘制顺序")("fristColor",t.compareFileColor)("secondColor",t.baseFileColor)("disabled",!t.isCompareFileVisible||!t.isBaseFileVisible),sa(3),Uo("isVisible",t.isRevcloudVisiable)("isVisibleTitle",t.isRevcloudVisiable?"可见性:关闭云线":"可见性:打开云线")("color",t.revcloudColor)("name","云线显示"),sa(2),Uo("ngModel",t.revcloudShape)("nzOptionHeightPx",24)("ngClass",fc(43,pnt,!t.isRevcloudVisiable))("nzDisabled",!t.isRevcloudVisiable),sa(3),Uo("minNumber",1)("maxNumber",25)("number",t.revcloudSize)("disabled",!t.isRevcloudVisiable),sa(3),Uo("isVisible",t.isHatchVisiable)("isVisibleTitle",t.isHatchVisiable?"可见性:关闭在参照&基准中的图案填充对象":"可见性:打开在参照&基准中的图案填充对象")("icon","tuantianchong")("name","图案填充"),sa(1),Uo("isVisible",t.isTextVisiable)("isVisibleTitle",t.isHatchVisiable?"可见性:关闭在参照&基准中的文字对象":"可见性:打开在参照&基准中的文字对象")("icon","wenzi")("name","文字"),sa(1),Uo("ngIf",t.isSubmitButtonVisible)}}function fnt(t,e){1&t&&Ho(0,gnt,18,45,"div",21),2&t&&Uo("ngIf",os().isParamsPanelVisible)}function bnt(t,e){1&t&&(Yo(0,"div"),Bs(1," 提示 "),jo())}function ynt(t,e){if(1&t&&(Yo(0,"div",44),Bs(1),jo()),2&t){const t=os().$implicit;sa(1),Ns(" ",t.text," ")}}function vnt(t,e){if(1&t&&(Yo(0,"div"),Bs(1),jo()),2&t){const t=e.$implicit;sa(1),Vs(t)}}function wnt(t,e){if(1&t&&(Yo(0,"div",45),Ho(1,vnt,2,1,"div",46),jo()),2&t){const t=os().$implicit;sa(1),Uo("ngForOf",t.subTextArray)}}function xnt(t,e){if(1&t&&(Yo(0,"div",47),Bs(1),jo()),2&t){const t=os().$implicit;sa(1),Vs(t.subTextDesc)}}function Cnt(t,e){if(1&t){const t=Jo();Yo(0,"div",48),Yo(1,"label",49),es("ngModelChange",(function(e){return Ne(t),os(2).isHiddenInfoModalAlways=e}))("ngModelChange",(function(e){return Ne(t),os(2).isHiddenFcmpModalAlwaysChange(e)})),Bs(2,"不再显示此消息"),jo(),Yo(3,"button",50),es("click",(function(){return Ne(t),os(2).closeFcmpModal(1)})),Bs(4," 关闭 "),jo(),jo()}if(2&t){const t=os(2);sa(1),Uo("ngModel",t.isHiddenInfoModalAlways)}}function knt(t,e){if(1&t&&(Yo(0,"div",37),Yo(1,"div",38),gn(),Yo(2,"svg",13),Xo(3,"use",39),jo(),fn(),Yo(4,"div"),Ho(5,ynt,2,1,"div",40),Ho(6,wnt,2,1,"div",41),Ho(7,xnt,2,1,"div",42),jo(),jo(),Ho(8,Cnt,5,1,"div",43),jo()),2&t){const t=e.$implicit;sa(5),Uo("ngIf",t.text),sa(1),Uo("ngIf",t.subTextArray),sa(1),Uo("ngIf",t.subTextDesc),sa(1),Uo("ngIf",t.subTextArray)}}var Snt,Pnt=((Snt=Pnt||(Pnt={}))[Snt.kNoneEnt=0]="kNoneEnt",Snt[Snt.kPolyGonMesh=1]="kPolyGonMesh",Snt[Snt.kPolyFaceMesh=2]="kPolyFaceMesh",Snt[Snt.k3dSolid=4]="k3dSolid",Snt[Snt.kRevolveSurface=8]="kRevolveSurface",Snt[Snt.kExtrudeSurface=16]="kExtrudeSurface",Snt[Snt.kPlanSurface=32]="kPlanSurface",Snt[Snt.kSweptSurface=64]="kSweptSurface",Snt[Snt.kRegion=128]="kRegion",Snt[Snt.kBody=256]="kBody",Snt[Snt.kRasterImage=512]="kRasterImage",Snt[Snt.kOle=1024]="kOle",Snt[Snt.kUnderlayRef=2048]="kUnderlayRef",Snt[Snt.kDwfReference=4096]="kDwfReference",Snt[Snt.kPdfReference=8192]="kPdfReference",Snt[Snt.kNoCommonObj=16384]="kNoCommonObj",Pnt);const _nt=new Map([[Pnt.kNoneEnt,""],[Pnt.kPolyGonMesh,"多边形网格"],[Pnt.kPolyFaceMesh,"多面网格"],[Pnt.k3dSolid,"三维实体"],[Pnt.kRevolveSurface,"旋转曲面"],[Pnt.kExtrudeSurface,"拉伸曲面"],[Pnt.kPlanSurface,"平面曲面"],[Pnt.kSweptSurface,"扫掠曲面"],[Pnt.kRegion,"面域"],[Pnt.kBody,"体"],[Pnt.kRasterImage,"光栅图像"],[Pnt.kOle,"OLE"],[Pnt.kUnderlayRef,"文件缺少外部参照"],[Pnt.kDwfReference,"DWF参考底图"],[Pnt.kPdfReference,"PDF参考底图"],[Pnt.kNoCommonObj,""]]);let Mnt=(()=>{class t{constructor(t){this.changeDetectorRef=t,this.isVisible=!1,this.index=0,this.total=0,this.isParamsPanelVisible=!1,this.isCompareFileVisible=!0,this.compareFileColor="rgba(255,0,0,1)",this.isBaseFileVisible=!0,this.baseFileColor="rgba(0,255,0,1)",this.isCommonVisible=!0,this.commonColor="rgba(130,130,130,1)",this.drawOrder="originRefer",this.isRevcloudVisiable=!0,this.revcloudColor="rgba(255,255,0,1)",this.baseFileInfo=[],this.compareFileInfo=[],this.fcmpDiffExt=[],this.fcmpErrorFlag=0,this.revcloudShape="rectangle",this.revcloudSize=5,this.isHatchVisiable=!0,this.isTextVisiable=!0,this.detectedVar={revcloudShape:this.revcloudShape,revcloudSize:this.revcloudSize,isHatchVisiable:this.isHatchVisiable,isTextVisiable:this.isTextVisiable},this.isSubmitButtonVisible=!1,this.isHiddenInfoModalAlways=!1,this.nzVisibleFcmpModal=[!1,!1],this.nzComponentParamsFcmpModal=[null,null],this.nzFooterFcmpModal=[null,null],this.cdkDragBoundary="body"}ngOnInit(){MF.instance().subscribeBroardcast(_F.FileCompare,this)}ngOnDestroy(){MF.instance().unsubscribeBroardcast(_F.FileCompare,this)}notify(t,e){if(t===_F.FileCompare&&"setFcmpInfo"===e.type&&e.data){if(!0===e.data.isToolbarVisiable){if(this.isVisible=!0,e.data.baseFileInfo&&(this.baseFileInfo=e.data.baseFileInfo),e.data.compareFileInfo&&(this.compareFileInfo=e.data.compareFileInfo),e.data.fcmpDiffExt&&(this.fcmpDiffExt=e.data.fcmpDiffExt,this.total=this.fcmpDiffExt.length,this.total>0?this.index=1:(this.index=0,this.total=0)),e.data.fcmpErrorFlag||0===e.data.fcmpErrorFlag)switch(this.fcmpErrorFlag=e.data.fcmpErrorFlag,this.fcmpErrorFlag){case Pnt.kNoneEnt:this.confirmStartFcmp();break;default:{if(0!=(Pnt.kNoCommonObj&this.fcmpErrorFlag)?(this.nzComponentParamsFcmpModal[0]={text:"在比较的两个图形之间未找到公用对象"},this.nzFooterFcmpModal[0]=[{label:"退出对比",type:"default",onClick:()=>{this.exitFcmp()}},{label:"继续",type:"primary",onClick:()=>{this.closeFcmpModal(0),this.confirmStartFcmp()}}],this.nzVisibleFcmpModal[0]=!0,this.changeDetectorRef.detectChanges()):this.confirmStartFcmp(),this.isHiddenInfoModalAlways=XF.instance().getItem("isFcmpInfoModalHidden","session")||!1,this.isHiddenInfoModalAlways)break;let t=[];if([..._nt.keys()].filter((t=>t!==Pnt.kNoCommonObj)).forEach((e=>{0!=(e&this.fcmpErrorFlag)&&t.push("* "+_nt.get(e))})),!t.length)break;this.nzComponentParamsFcmpModal[1]={text:"不支持对比图形中的以下对象: ",subTextArray:t,subTextDesc:"这些对象在当前图形中不会进行颜色编码, 他们将隐藏在对比图形中"},this.nzFooterFcmpModal[1]=null,this.nzVisibleFcmpModal[1]=!0,this.changeDetectorRef.detectChanges()}}(0===e.data.fcmpRcShape||1===e.data.fcmpRcShape)&&(this.revcloudShape=0===e.data.fcmpRcShape?"rectangle":"polygon"),e.data.fcmpRcMargin&&(this.revcloudSize=e.data.fcmpRcMargin),(0===e.data.fcmpHatch||1===e.data.fcmpHatch)&&(this.isHatchVisiable=1===e.data.fcmpHatch),(0===e.data.fcmpText||1===e.data.fcmpText)&&(this.isTextVisiable=1===e.data.fcmpText),this.changeDetectorRef.detectChanges(),this.saveFcmpInfoData();let t=n7.instance().mFcmpColors;this.isBaseFileVisible=1===t[0][0],this.isCompareFileVisible=1===t[1][0],this.isCommonVisible=1===t[2][0],this.isRevcloudVisiable=1===t[3][0],this.drawOrder=2===t[4]?"originRefer":"referOrigin",this.baseFileColor=this.numberList2RgbaString(t[0].slice(1)),this.compareFileColor=this.numberList2RgbaString(t[1].slice(1)),this.commonColor=this.numberList2RgbaString(t[2].slice(1)),this.revcloudColor=this.numberList2RgbaString(t[3].slice(1))}else this.isVisible=!1;this.changeDetectorRef.detectChanges()}}ngAfterViewInit(){}saveFcmpInfoData(){this.detectedVar.revcloudShape=this.revcloudShape,this.detectedVar.revcloudSize=this.revcloudSize,this.detectedVar.isHatchVisiable=this.isHatchVisiable,this.detectedVar.isTextVisiable=this.isTextVisiable,this.isSubmitButtonVisible=!1,n7.instance().mFcmpParams.fcmpRcShape="rectangle"===this.revcloudShape?0:1,n7.instance().mFcmpParams.fcmpRcMargin=this.revcloudSize,n7.instance().mFcmpParams.fcmpHatch=this.isHatchVisiable?1:0,n7.instance().mFcmpParams.fcmpText=this.isTextVisiable?1:0,this.changeDetectorRef.detectChanges()}changeIsParamsPanelVisible(){this.isParamsPanelVisible=!this.isParamsPanelVisible,this.changeDetectorRef.detectChanges(),setTimeout((()=>{this.changeDetectorRef.detectChanges()}),0)}changeIndex(t){var e;0!==this.total&&("previous"===t&&(this.index--,this.index<1&&(this.index=this.total)),"next"===t&&(this.index++,this.index>this.total&&(this.index=1)),null===(e=n7.instance().mGs)||void 0===e||e.locateFcmpDiff(this.fcmpDiffExt[this.index-1].minPoint,this.fcmpDiffExt[this.index-1].maxPoint),this.changeDetectorRef.detectChanges())}isHiddenFcmpModalAlwaysChange(t){XF.instance().setItem("isFcmpInfoModalHidden",t,"session"),this.changeDetectorRef.detectChanges()}closeFcmpModal(t){this.nzVisibleFcmpModal[t]=!1,this.changeDetectorRef.detectChanges(),this.nzComponentParamsFcmpModal[t]={},this.nzFooterFcmpModal[t]=null}confirmStartFcmp(){(new OF).pub(EF.fcmpWaitConfirmStart,{})}numberList2RgbaString(t){return t[3]=t[3]/255,"rgba("+t.join(",")+")"}fcmpDrawColorChange(t,e){n7.instance().mFcmpColors[t]=e,MF.instance().broardcast(_F.GsInteraction,{type:"draw",data:{type:"Longterm"}}),MF.instance().broardcast(_F.FileCompare,{type:"updateFcmpColors",data:{baseFileColor:this.baseFileColor,compareFileColor:this.compareFileColor}})}exitFcmp(){MF.instance().broardcast(_F.FileCompare,{type:"exitFcmp"}),this.isVisible=!1,this.closeFcmpModal(0),this.closeFcmpModal(1),this.changeDetectorRef.detectChanges()}changeDetect(){this.changeDetectorRef.detectChanges()}isVisibleChange(t=""){t&&!this.isCompareFileVisible&&!this.isBaseFileVisible&&("base"===t&&(this.isCompareFileVisible=!0),"compare"===t&&(this.isBaseFileVisible=!0)),this.changeDetectorRef.detectChanges()}drawOrderChange(){this.changeDetectorRef.detectChanges()}colorChange(){this.changeDetectorRef.detectChanges()}detectIsVisibleVarChanges(){let t=[];Object.keys(this.detectedVar).forEach((e=>{t.push(this[e]===this.detectedVar[e])})),this.isSubmitButtonVisible=t.includes(!1),this.changeDetectorRef.detectChanges()}detectedVarCancel(){Object.keys(this.detectedVar).forEach((t=>{this[t]=this.detectedVar[t]})),this.isSubmitButtonVisible=!1,this.changeDetectorRef.detectChanges()}detectedVarSubmit(){this.saveFcmpInfoData(),MF.instance().broardcast(_F.GsInteraction,{type:"updateViewDataHttp"}),MF.instance().broardcast(_F.UpdatePage,{type:"loading",data:{isLoading:!0,loadingProgressPreset:{phase:OW.init}}}),MF.instance().broardcast(_F.UpdatePage,{type:"loading",data:{isLoading:!0,loadingMessage:qF.mLanguagePackage.OpenDwgPhaseGetData+"..."}})}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Gl))},t["ɵcmp"]=qt({type:t,selectors:[["app-fcmp-toolbar"]],viewQuery:function(t,e){if(1&t&&(Nc(int,5),Nc(rnt,5)),2&t){let t;Vc(t=Gc())&&(e.modalTitle=t.first),Vc(t=Gc())&&(e.modalContent=t.first)}},decls:11,vars:15,consts:[["id","fcmpToolbar","cdkDrag","",3,"cdkDragBoundary",4,"ngIf"],["svgTemplate",""],["paramsPannel",""],["nzClassName","zwFcmpModal",3,"nzTitle","nzContent","nzCentered","nzMaskClosable","nzVisible","nzComponentParams","nzFooter","nzVisibleChange","nzOnCancel"],["nzClassName","zwFcmpModal",3,"nzTitle","nzContent","nzCentered","nzMaskClosable","nzVisible","nzComponentParams","nzFooter","nzVisibleChange"],["nzTitleFcmpModalTemplate",""],["nzContentFcmpModalTemplate",""],["id","fcmpToolbar","cdkDrag","",3,"cdkDragBoundary"],["toolbar",""],["id","fcmpToolbarWrap","cdkDragHandle","",3,"touchstart","mousedown","touchend","mouseup"],["id","fcmpToolbarTitle"],["id","fcmpToolbarContent"],["id","dropDown",1,"svgBox",3,"ngClass","click","mousedown","touchstart"],["aria-hidden","true",1,"icon"],["id","index",3,"click","mousedown","touchstart"],["title","上一条区别",1,"changeIndex",3,"click","mousedown","touchstart"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["title","下一条区别",1,"changeIndex",3,"click","mousedown","touchstart"],["nz-button","","nzType","primary","nzSize","small","id","exit","title","退出对比",3,"click","mousedown","touchstart"],[4,"ngTemplateOutlet"],[1,"svgBox"],["id","paramsPannel",4,"ngIf"],["id","paramsPannel"],[3,"isVisible","isVisibleTitle","color","name","desc","fileInfo","isVisibleChange","colorChange","fcmpDrawColorChange"],[3,"isVisible","isVisibleTitle","color","name","isVisibleChange","colorChange","fcmpDrawColorChange"],[3,"drawOrder","name","fristColor","secondColor","disabled","drawOrderChange","fcmpDrawColorChange"],[1,"subTitle"],[1,"revcloudSetting"],["nzSize","small","nzDropdownClassName","nzDropdownRevcloudShapeSetting",3,"ngModel","nzOptionHeightPx","ngClass","nzDisabled","ngModelChange","nzOpenChange"],["nzValue","rectangle","nzLabel","矩形"],[1,"revcloudSettingSize"],[3,"minNumber","maxNumber","number","disabled","numberChange"],[3,"isVisible","isVisibleTitle","icon","name","isVisibleChange"],["class","subTitle submitButton",4,"ngIf"],[1,"subTitle","submitButton"],["nz-button","","nzSize","small",3,"click"],["nz-button","","nzType","primary","nzSize","small",3,"click"],["id","fcmpModalContent"],["id","info"],[0,"xlink","href","#icon-tishi"],["id","text",4,"ngIf"],["id","subText",4,"ngIf"],["id","subTextDesc",4,"ngIf"],["id","buttons",4,"ngIf"],["id","text"],["id","subText"],[4,"ngFor","ngForOf"],["id","subTextDesc"],["id","buttons"],["nz-checkbox","",3,"ngModel","ngModelChange"],["nz-button","","nzType","default",3,"click"]],template:function(t,e){if(1&t&&(Ho(0,dnt,23,15,"div",0),Ho(1,unt,3,1,"ng-template",null,1,Yc),Ho(3,fnt,1,1,"ng-template",null,2,Yc),Yo(5,"nz-modal",3),es("nzVisibleChange",(function(t){return e.nzVisibleFcmpModal[0]=t}))("nzOnCancel",(function(){return e.closeFcmpModal(0),e.confirmStartFcmp()})),jo(),Yo(6,"nz-modal",4),es("nzVisibleChange",(function(t){return e.nzVisibleFcmpModal[1]=t})),jo(),Ho(7,bnt,2,0,"ng-template",null,5,Yc),Ho(9,knt,9,4,"ng-template",null,6,Yc)),2&t){const t=Go(8),n=Go(10);Uo("ngIf",e.isVisible),sa(5),Uo("nzTitle",t)("nzContent",n)("nzCentered",!0)("nzMaskClosable",!1)("nzVisible",e.nzVisibleFcmpModal[0])("nzComponentParams",e.nzComponentParamsFcmpModal[0])("nzFooter",e.nzFooterFcmpModal[0]),sa(1),Uo("nzTitle",t)("nzContent",n)("nzCentered",!0)("nzMaskClosable",!1)("nzVisible",e.nzVisibleFcmpModal[1])("nzComponentParams",e.nzComponentParamsFcmpModal[1])("nzFooter",null)}},directives:[Yd,zT,xet,yet,Gd,tu,bM,uM,sM,jet,EL,xp,Np,PL,nnt,Ud,kM],styles:['#fcmpToolbar[_ngcontent-%COMP%]{display:flex;align-items:center;transition:box-shadow .2s linear;box-shadow:0 3px 6px -4px #0000001f,0 6px 16px #00000014,0 9px 28px 8px #0000000d;position:absolute;z-index:2;top:15%;left:50%;margin-left:-175px;height:40px;background-color:var(--editor_main_background);color:var(--main_font)}#fcmpToolbar[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none}#fcmpToolbar[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{color:var(--editor_tool_icon)}#fcmpToolbar.draging[_ngcontent-%COMP%]{box-shadow:0 6px 16px -8px #00000014,0 9px 28px #0000000d,0 12px 48px 16px #00000008}#fcmpToolbar.draging[_ngcontent-%COMP%] #paramsPannel[_ngcontent-%COMP%]{box-shadow:0 6px 16px -8px #00000014,0 9px 28px #0000000d,0 12px 48px 16px #00000008}#fcmpToolbar.draging[_ngcontent-%COMP%] *[_ngcontent-%COMP%] #dropDown[_ngcontent-%COMP%]:not(.dropDownSelected) svg[_ngcontent-%COMP%], #fcmpToolbar.draging[_ngcontent-%COMP%] *[_ngcontent-%COMP%] .svgBox[_ngcontent-%COMP%]:not(.dropDownSelected) svg[_ngcontent-%COMP%]{color:var(--editor_tool_icon)!important}#fcmpToolbar.draging[_ngcontent-%COMP%] *[_ngcontent-%COMP%] #dropDown[_ngcontent-%COMP%]:not(.dropDownSelected):after, #fcmpToolbar.draging[_ngcontent-%COMP%] *[_ngcontent-%COMP%] .svgBox[_ngcontent-%COMP%]:not(.dropDownSelected):after{border-top-color:var(--editor_tool_icon)!important}#fcmpToolbar[_ngcontent-%COMP%] #fcmpToolbarWrap[_ngcontent-%COMP%]{display:flex;align-items:center}#fcmpToolbar[_ngcontent-%COMP%] #fcmpToolbarTitle[_ngcontent-%COMP%]{display:flex;align-items:center;padding:0 15px;height:24px;border-right:2px solid var(--editor_main_border_light)}#fcmpToolbar[_ngcontent-%COMP%] #fcmpToolbarContent[_ngcontent-%COMP%]{display:flex;align-items:center;padding:0 10px}#fcmpToolbar[_ngcontent-%COMP%] #fcmpToolbarContent[_ngcontent-%COMP%]:hover{cursor:default}#fcmpToolbar[_ngcontent-%COMP%] #fcmpToolbarContent[_ngcontent-%COMP%] #index[_ngcontent-%COMP%]{padding:3px 5px;margin-right:5px;background-color:var(--editor_input_background);cursor:pointer}#fcmpToolbar[_ngcontent-%COMP%] #fcmpToolbarContent[_ngcontent-%COMP%] #exit[_ngcontent-%COMP%]{width:60px}#fcmpToolbar[_ngcontent-%COMP%] #fcmpToolbarContent[_ngcontent-%COMP%] .svgBox[_ngcontent-%COMP%]{font-size:25px;padding:0 5px;transition:background-color .1s}#fcmpToolbar[_ngcontent-%COMP%] #fcmpToolbarContent[_ngcontent-%COMP%] .svgBox[_ngcontent-%COMP%]:hover{cursor:pointer}#fcmpToolbar[_ngcontent-%COMP%] #fcmpToolbarContent[_ngcontent-%COMP%] .svgBox[_ngcontent-%COMP%]:hover svg[_ngcontent-%COMP%]{color:orange}#fcmpToolbar[_ngcontent-%COMP%] #fcmpToolbarContent[_ngcontent-%COMP%] .svgBox[_ngcontent-%COMP%]:hover#dropDown:after{border-top-color:orange}#fcmpToolbar[_ngcontent-%COMP%] #fcmpToolbarContent[_ngcontent-%COMP%] .svgBox#dropDown[_ngcontent-%COMP%]{position:relative;margin-right:20px}#fcmpToolbar[_ngcontent-%COMP%] #fcmpToolbarContent[_ngcontent-%COMP%] .svgBox#dropDown[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{transform:rotate(0);transition:transform .2s}#fcmpToolbar[_ngcontent-%COMP%] #fcmpToolbarContent[_ngcontent-%COMP%] .svgBox#dropDown.dropDownSelected[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{color:orange;transform:rotate(60deg)}#fcmpToolbar[_ngcontent-%COMP%] #fcmpToolbarContent[_ngcontent-%COMP%] .svgBox#dropDown.dropDownSelected[_ngcontent-%COMP%]:after{border-top-color:orange;transform:translateY(-4px) scaleY(-1)}#fcmpToolbar[_ngcontent-%COMP%] #fcmpToolbarContent[_ngcontent-%COMP%] .svgBox#dropDown[_ngcontent-%COMP%]:after{content:"";border:8px solid transparent;border-left-width:5px;border-right-width:5px;position:absolute;width:0;height:0;right:-2px;border-top-color:var(--editor_tool_icon);bottom:2px;transform:translateY(4px);transition:transform .2s}#fcmpToolbar[_ngcontent-%COMP%] #fcmpToolbarContent[_ngcontent-%COMP%] .changeIndex[_ngcontent-%COMP%] .svgBox[_ngcontent-%COMP%]{font-size:20px}#fcmpToolbar[_ngcontent-%COMP%] #fcmpToolbarContent[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(:last-child){margin-right:10px}#paramsPannel[_ngcontent-%COMP%]{transition:box-shadow .2s linear;box-shadow:0 3px 6px -4px #0000001f,0 6px 16px #00000014,0 9px 28px 8px #0000000d;position:absolute;top:105%;left:0;background-color:var(--editor_main_background);overflow:hidden;width:225px;padding:5px 15px 5px 2.5px}#paramsPannel[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:block;margin:5px}#paramsPannel[_ngcontent-%COMP%] .subTitle[_ngcontent-%COMP%]{margin-top:10px;font-size:12px;color:#989898;padding-left:5px}#paramsPannel[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{display:flex;justify-content:space-around;width:200px;margin:10px}#paramsPannel[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:35%}#paramsPannel[_ngcontent-%COMP%] .revcloudSetting[_ngcontent-%COMP%]{margin-left:40px}#paramsPannel[_ngcontent-%COMP%] .revcloudSetting[_ngcontent-%COMP%] nz-select[_ngcontent-%COMP%]{width:100%;color:var(--main_font)}#paramsPannel[_ngcontent-%COMP%] .revcloudSetting[_ngcontent-%COMP%] nz-select.disabled[_ngcontent-%COMP%]{cursor:not-allowed;filter:grayscale(.5);opacity:.75}#paramsPannel[_ngcontent-%COMP%] .revcloudSetting[_ngcontent-%COMP%] nz-select[_ngcontent-%COMP%] nz-select-top-control{width:initial;background-color:var(--editor_input_background);border-color:var(--version_border);box-sizing:content-box}#paramsPannel[_ngcontent-%COMP%] .revcloudSetting[_ngcontent-%COMP%] nz-select[_ngcontent-%COMP%] nz-select-top-control nz-select-item{font-size:12px}#paramsPannel[_ngcontent-%COMP%] .revcloudSetting[_ngcontent-%COMP%] nz-select[_ngcontent-%COMP%] nz-select-arrow{color:var(--editor_tool_icon)}#paramsPannel[_ngcontent-%COMP%] .revcloudSetting[_ngcontent-%COMP%] nz-select[_ngcontent-%COMP%], #paramsPannel[_ngcontent-%COMP%] .revcloudSetting[_ngcontent-%COMP%] .revcloudSettingSize[_ngcontent-%COMP%]{margin:5px 0}#paramsPannel[_ngcontent-%COMP%] .revcloudSetting[_ngcontent-%COMP%] .ant-select-disabled.ant-select .ant-select-selector{color:var(--main_font)!important} .nzDropdownRevcloudShapeSetting nz-option-container{color:var(--main_font);background-color:var(--editor_input_background)} .nzDropdownRevcloudShapeSetting nz-option-item{box-sizing:border-box;color:var(--main_font);background-color:var(--editor_input_background);min-height:22px;padding:1px 7px} .nzDropdownRevcloudShapeSetting nz-option-item.ant-select-item-option-selected:not(.ant-select-item-option-disabled){color:var(--main_font);background-color:var(--editor_input_background)} .nzDropdownRevcloudShapeSetting nz-option-item.ant-select-item-option-active:not(.ant-select-item-option-disabled){color:var(--main_font);background-color:var(--editor_fcmp_active_background)}#fcmpModalContent[_ngcontent-%COMP%]{padding:25px;color:var(--main_font);background-color:var(--editor_main_background)}#fcmpModalContent[_ngcontent-%COMP%] #info[_ngcontent-%COMP%]{display:flex}#fcmpModalContent[_ngcontent-%COMP%] #info[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{font-size:30px;color:var(--editor_tool_icon);margin-right:10px}#fcmpModalContent[_ngcontent-%COMP%] #info[_ngcontent-%COMP%] #text[_ngcontent-%COMP%]{font-size:16px;padding-right:75px;margin-bottom:10px}#fcmpModalContent[_ngcontent-%COMP%] #info[_ngcontent-%COMP%] #subText[_ngcontent-%COMP%]{font-size:14px;padding-left:10px;margin-bottom:10px}#fcmpModalContent[_ngcontent-%COMP%] #info[_ngcontent-%COMP%] #subTextDesc[_ngcontent-%COMP%]{font-size:14px;margin-bottom:30px}#fcmpModalContent[_ngcontent-%COMP%] #buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-left:5px}#fcmpModalContent[_ngcontent-%COMP%] #buttons[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:12px;color:var(--main_font)}#fcmpModalContent[_ngcontent-%COMP%] #buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:90px} .zwFcmpModal{border-radius:0} .zwFcmpModal .ant-modal-close-x{height:0px!important;line-height:30px} .zwFcmpModal .ant-modal-header{padding:6px 20px} .zwFcmpModal .ant-modal-footer{border-top:0;background-color:var(--editor_main_background)}'],data:{animation:[Xp("slideInOut",[Jp("void",Kp({height:"0px",opacity:"0"})),Jp("*",Kp({height:"*",opacity:"1"})),Qp("void <=> *",qp("200ms ease-in"))]),Xp("slideInOutFast",[Jp("void",Kp({height:"0px",opacity:"0"})),Jp("*",Kp({height:"*",opacity:"1"})),Qp("void <=> *",qp("100ms linear"))])]}}),t})();function Dnt(t,e){1&t&&Xo(0,"div",19),2&t&&Uo("innerHTML",os().$implicit,Nr)}function Ent(t,e){if(1&t&&(Yo(0,"div"),Bs(1),jo()),2&t){const t=os().$implicit;sa(1),Vs(t)}}function Ont(t,e){if(1&t&&(Yo(0,"div"),Ho(1,Dnt,1,1,"div",17),Ho(2,Ent,2,1,"div",18),jo()),2&t){const t=e.$implicit;sa(1),Uo("ngIf",t.indexOf("br>")>-1),sa(1),Uo("ngIf",-1===t.indexOf("br>"))}}function Ant(t,e){if(1&t&&(Yo(0,"nz-auto-option",20),Bs(1),jo()),2&t){const t=e.$implicit;Uo("nzValue",t),sa(1),Vs(t)}}function Tnt(t,e){if(1&t){const t=Jo();Yo(0,"ul"),Yo(1,"li",16),es("click",(function(){const e=Ne(t).$implicit;return os().setCmd(e)})),Bs(2),jo(),jo()}if(2&t){const t=e.$implicit;sa(2),Vs(t)}}let Int=(()=>{class t{constructor(t,e,n){this.nzContextMenuService=t,this.elementRef=e,this.changeDetectorRef=n,this.mHistoryEle=null,this.mInputCommandEle=null,this.mZcUIOProcessor=l4.instance(),this.mZcadCmdContext=this.mZcUIOProcessor.mZcadCmdContext,this.mInputLabel=qF.mLanguagePackage.command+":",this.mFilteredOptions=[],this.mHistory=[],this.mCmdHistoryList=[],this.mClipBoardContent="",this.mDisabled={latestCmdList:!0,cut:!0,copy:!0,pasteAsLine:!0},this.mArrowUpDownPos=1,this.mUpFirst=!1,this.mDownFirst=!1,this.interactionDisabled=!1}ngOnInit(){MF.instance().subscribeBroardcast(_F.History,this),MF.instance().subscribeBroardcast(_F.InteractionStatus,this),MF.instance().subscribeBroardcast(_F.ClearHistory,this)}ngAfterViewInit(){setTimeout((()=>{this.mHistoryEle=this.elementRef.nativeElement.querySelector("#history"),this.mInputCommandEle=this.elementRef.nativeElement.querySelector("#inputCommand"),null!=this.mHistoryEle&&this.mHistoryEle.addEventListener("mouseup",(()=>{this.mClipBoardContent="",this.initClipboard(),this.mDisabled.cut=!0,this.mClipBoardContent?(this.mDisabled.pasteAsLine=!1,this.mDisabled.copy=!1):(this.mDisabled.pasteAsLine=!0,this.mDisabled.copy=!0)}))}),100)}ngOnDestroy(){MF.instance().unsubscribeBroardcast(_F.History,this),MF.instance().unsubscribeBroardcast(_F.InteractionStatus,this),MF.instance().unsubscribeBroardcast(_F.ClearHistory,this)}ngDoCheck(){}notify(t,e){if(!n7.instance().mDrawCommentBubble){if(t===_F.History&&"object"==typeof e){if(e.history&&this.mHistory.push(e.history),e.label&&(this.mInputLabel="clearLabel"===e.label?"":e.label,XF.instance().setItem("inputLabel",this.mInputLabel,"session")),"Space"===e.space&&1===this.mFilteredOptions.length&&this.mInputValue){const t=this.mInputValue.trim().toUpperCase();null!==this.mInputCommandEle&&this.mFilteredOptions[0].indexOf(t)>-1&&(this.mInputCommandEle.value=this.mFilteredOptions[0]),this.mFilteredOptions=[],this.changeDetectorRef.detectChanges()}setTimeout((()=>{this.scrollToBottom()}),0),this.changeDetectorRef.detectChanges()}if(t===_F.ClearHistory&&(this.mHistory=[],this.mFilteredOptions=[]),t===_F.InteractionStatus&&"object"==typeof e&&"boolean"==typeof e.status&&(this.interactionDisabled=e.status,this.changeDetectorRef.detectChanges(),!this.interactionDisabled)){let t=setTimeout((()=>{clearTimeout(t),n7.instance().mZcadCmdContext.keepFocusInCmdPanel(!0)}),250)}}}contextMenu(t,e){this.nzContextMenuService.create(t,e),this.mZcadCmdContext.keepFocusInCmdPanel(!0)}closeMenu(){this.nzContextMenuService.close(),this.mDisabled.cut=!1,this.mDisabled.pasteAsLine=!1,this.mDisabled.copy=!1}onChange(t){if(n7.instance().mDrawCommentBubble)return;let e=n7.instance().mCmdExecutionStatus;this.mFilteredOptions=t&&t.trim().length>0&&!e?n7.instance().getSimilarCmd(t):[],this.changeDetectorRef.detectChanges()}onBlur(){this.mFilteredOptions=[]}setCmd(t){this.mInputValue=t}pasteText(){this.mInputValue=this.mClipBoardContent}cut(){this.mInputValue=""}copyHistory(){if(null!=this.mHistoryEle){const t=document.createRange();t.selectNode(this.mHistoryEle);const e=window.getSelection();null!=e&&(e.rangeCount>0&&e.removeAllRanges(),e.addRange(t),document.execCommand("copy"),e.empty())}}initClipboard(){const t=window.getSelection();if(null!=t){let e=t.toString(),n=document.createElement("input");this.mClipBoardContent=e,n.setAttribute("value",e),n.select(),document.execCommand("copy")}}clearClipboard(){null==window.getSelection()&&(this.mClipBoardContent="")}initEvents(){null!=this.mInputCommandEle&&this.mInputCommandEle.addEventListener("keydown",(t=>{this.keydownEvent(t)}))}keydownEvent(t){const e=this.mCmdHistoryList.length;switch(t.code){case"ArrowUp":if(this.mFilteredOptions.length>0)break;(!this.mUpFirst&&!this.mDownFirst||this.mArrowUpDownPos>=e)&&(this.mUpFirst=!0,this.mArrowUpDownPos=e-1),this.mArrowUpDownPos>=-1&&this.mArrowUpDownPos<e&&null!=this.mInputCommandEle&&(this.mInputCommandEle.value=null!=this.mCmdHistoryList[this.mArrowUpDownPos]?this.mCmdHistoryList[this.mArrowUpDownPos]:""),this.mArrowUpDownPos>=0&&this.mArrowUpDownPos--;break;case"ArrowDown":if(this.mFilteredOptions.length>0)break;(!this.mUpFirst&&!this.mDownFirst||this.mArrowUpDownPos<0)&&(this.mDownFirst=!0,this.mArrowUpDownPos=0),this.mArrowUpDownPos>=0&&this.mArrowUpDownPos<=e&&null!=this.mInputCommandEle&&(this.mInputCommandEle.value=null!=this.mCmdHistoryList[this.mArrowUpDownPos]?this.mCmdHistoryList[this.mArrowUpDownPos]:""),this.mArrowUpDownPos<e&&this.mArrowUpDownPos++}}scrollToBottom(){null!=this.mHistoryEle&&(this.mHistoryEle.scrollTop=this.mHistoryEle.scrollHeight)}options(){n7.instance().setExecuteCmdByClickButton("OPTIONS")}clearAutoCompleteHtml(){let t=document.getElementsByClassName("cdk-overlay-container");for(let e=0;e<t.length;e++)t[e].innerHTML=""}}return t["ɵfac"]=function(e){return new(e||t)(Zo(wA),Zo(bl),Zo(Gl))},t["ɵcmp"]=qt({type:t,selectors:[["app-cmd-interaction-panel"]],decls:37,vars:33,consts:[["id","commandPanel",1,"panel"],["id","historyBox",3,"contextmenu"],["id","history"],[4,"ngFor","ngForOf"],["id","inputBox",1,"input-box"],["id","label",1,"label"],["id","inputCommand","placeholder","","nz-input","",3,"disabled","ngModel","nzAutocomplete","ngModelChange","blur"],[3,"nzWidth"],["auto",""],[3,"nzValue",4,"ngFor","ngForOf"],["menu","nzDropdownMenu"],["nz-menu",""],["nz-submenu","",3,"nzDisabled","nzTitle"],["nz-menu-divider",""],["nz-menu-item","",3,"nzDisabled","click"],["nz-menu-item","",3,"nzDisabled"],["nz-menu-item","",3,"click"],[3,"innerHTML",4,"ngIf"],[4,"ngIf"],[3,"innerHTML"],[3,"nzValue"]],template:function(t,e){if(1&t){const t=Jo();Yo(0,"div",0),Yo(1,"div",1),es("contextmenu",(function(n){Ne(t);const i=Go(12);return e.contextMenu(n,i)})),Yo(2,"div",2),Ho(3,Ont,3,2,"div",3),jo(),jo(),Yo(4,"div",4),Yo(5,"div",5),Bs(6),jo(),Yo(7,"input",6),es("ngModelChange",(function(t){return e.mInputValue=t}))("ngModelChange",(function(t){return e.onChange(t)}))("blur",(function(){return e.onBlur()})),jo(),Yo(8,"nz-autocomplete",7,8),Ho(10,Ant,2,2,"nz-auto-option",9),jo(),jo(),jo(),Yo(11,"nz-dropdown-menu",null,10),Yo(13,"ul",11),Yo(14,"li",12),Cc(15,"translate"),Ho(16,Tnt,3,1,"ul",3),jo(),Xo(17,"li",13),Yo(18,"li",14),es("click",(function(){return e.cut()})),Bs(19),Cc(20,"translate"),jo(),Yo(21,"li",15),Bs(22),Cc(23,"translate"),jo(),Yo(24,"li",16),es("click",(function(){return e.copyHistory()})),Bs(25),Cc(26,"translate"),jo(),Yo(27,"li",16),es("click",(function(){return e.pasteText()})),Bs(28),Cc(29,"translate"),jo(),Yo(30,"li",14),es("click",(function(){return e.pasteText()})),Bs(31),Cc(32,"translate"),jo(),Xo(33,"li",13),Yo(34,"li",16),es("click",(function(){return e.options()})),Bs(35),Cc(36,"translate"),jo(),jo(),jo()}if(2&t){const t=Go(9);sa(3),Uo("ngForOf",e.mHistory),sa(3),Vs(e.mInputLabel),sa(1),Uo("disabled",e.interactionDisabled)("ngModel",e.mInputValue)("nzAutocomplete",t),sa(1),Uo("nzWidth",200),sa(2),Uo("ngForOf",e.mFilteredOptions),sa(4),Uo("nzDisabled",0===e.mCmdHistoryList.length)("nzTitle",kc(15,19,"recentCommands")),sa(2),Uo("ngForOf",e.mCmdHistoryList),sa(2),Uo("nzDisabled",e.mDisabled.cut),sa(1),Vs(kc(20,21,"cut")),sa(2),Uo("nzDisabled",e.mDisabled.copy),sa(1),Vs(kc(23,23,"copy")),sa(3),Vs(kc(26,25,"copyHistory")),sa(3),Vs(kc(29,27,"paste")),sa(2),Uo("nzDisabled",e.mDisabled.pasteAsLine),sa(1),Vs(kc(32,29,"pasteToCmd")),sa(4),Ns("",kc(36,31,"option"),"…")}},directives:[Ud,s_,np,U_,xp,Np,W_,bA,oA,sM,iA,sA,tA,Yd,G_],pipes:[H3],styles:[".panel[_ngcontent-%COMP%]{height:100%;width:100%;background:var(--editor_command_panel);color:var(--main_font);font-size:12px}.panel[_ngcontent-%COMP%] #historyBox[_ngcontent-%COMP%]{user-select:text!important;-moz-user-select:text!important;-webkit-user-select:text!important;-ms-user-select:text!important;height:calc(100% - 25px);width:100%}.panel[_ngcontent-%COMP%] #historyBox[_ngcontent-%COMP%] #history[_ngcontent-%COMP%]{height:100%;overflow-x:hidden}.panel[_ngcontent-%COMP%] #historyBox[_ngcontent-%COMP%] #history[_ngcontent-%COMP%]::-webkit-scrollbar{width:10px;height:10px}.panel[_ngcontent-%COMP%] #historyBox[_ngcontent-%COMP%] #history[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:10px;background-color:var(--editor_main_scrollBar)}.panel[_ngcontent-%COMP%] #historyBox[_ngcontent-%COMP%] #history[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:var(--scrollbar_track)}.panel[_ngcontent-%COMP%] #historyBox[_ngcontent-%COMP%] #history[_ngcontent-%COMP%]::-webkit-scrollbar-corner{width:10px;height:10px;background-color:var(--editor_main_background)}.panel[_ngcontent-%COMP%] .input-box[_ngcontent-%COMP%]{display:flex;bottom:0;width:100%;border-top:1px solid var(--editor_command_panel_border);border-bottom:1px solid var(--editor_command_panel_border)}.panel[_ngcontent-%COMP%] .input-box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{height:24px}.panel[_ngcontent-%COMP%] .input-box[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{height:24px;line-height:24px;white-space:pre}.panel[_ngcontent-%COMP%] .input-box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{color:var(--main_font)!important;border:none!important;background:none!important;padding:0!important}"]}),t})();function Lnt(t,e){if(1&t){const t=Jo();Yo(0,"div",22),es("click",(function(){return Ne(t),os(2).clear()})),gn(),Yo(1,"svg",23),Xo(2,"use",24),jo(),jo()}}function znt(t,e){if(1&t){const t=Jo();Ho(0,Lnt,3,0,"div",19),gn(),Yo(1,"svg",20),es("click",(function(){return Ne(t),os().search()})),Xo(2,"use",21),jo()}2&t&&Uo("ngIf",os().mSearchValue)}function Rnt(t,e){1&t&&(Yo(0,"div",25),Yo(1,"span",9),Cc(2,"translate"),Bs(3),Cc(4,"translate"),jo(),jo()),2&t&&(sa(1),Uo("title",kc(2,2,"editor_layerViewportColor")),sa(2),Vs(kc(4,4,"editor_layerViewportColor")))}function Fnt(t,e){1&t&&(Yo(0,"div",14),Cc(1,"translate"),Bs(2),Cc(3,"translate"),jo()),2&t&&(Uo("title",kc(1,2,"editor_viewportLineWeight")),sa(2),Vs(kc(3,4,"editor_viewportLineWeight")))}function Bnt(t,e){1&t&&(gn(),Xo(0,"use",42))}function Vnt(t,e){1&t&&(gn(),Xo(0,"use",43))}function Nnt(t,e){1&t&&(gn(),Xo(0,"use",44))}function Hnt(t,e){1&t&&(gn(),Xo(0,"use",45))}function Gnt(t,e){1&t&&(gn(),Xo(0,"use",46))}function Znt(t,e){1&t&&(gn(),Xo(0,"use",47))}const Unt=function(t){return{"background-color":t}};function Wnt(t,e){if(1&t&&(Yo(0,"div",25),Xo(1,"div",35),jo()),2&t){const t=os().$implicit,e=os();sa(1),ks(fc(2,Unt,e.getViewportColor(t)))}}function Ynt(t,e){if(1&t&&(Yo(0,"div",36),Xo(1,"div",37),Yo(2,"span"),Bs(3),jo(),jo()),2&t){const t=os().$implicit,e=os();sa(1),xs("height",e.getViewportLineWeight(t).height+"px"),sa(2),Vs(e.getViewportLineWeight(t).text)}}function jnt(t,e){1&t&&(Yo(0,"div"),gn(),Yo(1,"svg",28),Xo(2,"use",48),jo(),jo())}function Xnt(t,e){1&t&&(Yo(0,"div"),gn(),Yo(1,"svg",49),Xo(2,"use",50),jo(),jo())}function qnt(t,e){if(1&t){const t=Jo();Yo(0,"div",26),Yo(1,"div",7),Yo(2,"span"),Bs(3),jo(),jo(),Yo(4,"div",27),es("click",(function(){const e=Ne(t).$implicit;return os().changeVis(e)})),gn(),Yo(5,"svg",28),Ho(6,Bnt,1,0,"use",29),Ho(7,Vnt,1,0,"use",30),jo(),jo(),fn(),Yo(8,"div",10),gn(),Yo(9,"svg",28),Ho(10,Nnt,1,0,"use",31),Ho(11,Hnt,1,0,"use",32),jo(),jo(),fn(),Yo(12,"div",11),gn(),Yo(13,"svg",28),Ho(14,Gnt,1,0,"use",33),Ho(15,Znt,1,0,"use",34),jo(),jo(),fn(),Yo(16,"div",12),Xo(17,"div",35),jo(),Ho(18,Wnt,2,4,"div",13),Yo(19,"div",36),Xo(20,"div",37),Yo(21,"span"),Bs(22),jo(),jo(),Ho(23,Ynt,4,3,"div",38),Yo(24,"div",39),Yo(25,"span"),Bs(26),jo(),jo(),Yo(27,"div",40),es("click",(function(){const e=Ne(t).index;return os().layerSettingChange(e)})),Ho(28,jnt,3,0,"div",41),Ho(29,Xnt,3,0,"div",41),jo(),jo()}if(2&t){const t=e.$implicit,n=os();sa(1),Uo("title",t.mLayerName),sa(2),Vs(n.modify(t.mLayerName)),sa(2),Ps(t.mIsOff?"off_icon":""),sa(1),Uo("ngIf",!t.mIsOff),sa(1),Uo("ngIf",t.mIsOff),sa(2),Ps(t.mIsFrozen?"off_icon":""),sa(1),Uo("ngIf",!t.mIsFrozen),sa(1),Uo("ngIf",t.mIsFrozen),sa(2),Ps(t.mIsLocked?"off_icon":""),sa(1),Uo("ngIf",t.mIsLocked),sa(1),Uo("ngIf",!t.mIsLocked),sa(2),ks(fc(24,Unt,n.number2Rgb16(t))),sa(1),Uo("ngIf",n.isDBViewport),sa(2),xs("height",n.getLineWeight(t.mLineWeight).height+"px"),sa(2),Vs(n.getLineWeight(t.mLineWeight).text),sa(1),Uo("ngIf",n.isDBViewport),sa(3),Vs(n.getOpacity(t.mTransparency)),sa(2),Uo("ngIf",t.mIsPlottable),sa(1),Uo("ngIf",!t.mIsPlottable)}}var $nt,Knt=(($nt=Knt||(Knt={}))[$nt.kLnWtByLayer=-1]="kLnWtByLayer",$nt[$nt.kLnWtByBlock=-2]="kLnWtByBlock",$nt[$nt.kLnWtByLwDefault=-3]="kLnWtByLwDefault",$nt[$nt.kLnWt000=0]="kLnWt000",$nt[$nt.kLnWt005=5]="kLnWt005",$nt[$nt.kLnWt009=9]="kLnWt009",$nt[$nt.kLnWt013=13]="kLnWt013",$nt[$nt.kLnWt015=15]="kLnWt015",$nt[$nt.kLnWt018=18]="kLnWt018",$nt[$nt.kLnWt020=20]="kLnWt020",$nt[$nt.kLnWt025=25]="kLnWt025",$nt[$nt.kLnWt030=30]="kLnWt030",$nt[$nt.kLnWt035=35]="kLnWt035",$nt[$nt.kLnWt040=40]="kLnWt040",$nt[$nt.kLnWt050=50]="kLnWt050",$nt[$nt.kLnWt053=53]="kLnWt053",$nt[$nt.kLnWt060=60]="kLnWt060",$nt[$nt.kLnWt070=70]="kLnWt070",$nt[$nt.kLnWt080=80]="kLnWt080",$nt[$nt.kLnWt090=90]="kLnWt090",$nt[$nt.kLnWt100=100]="kLnWt100",$nt[$nt.kLnWt106=106]="kLnWt106",$nt[$nt.kLnWt120=120]="kLnWt120",$nt[$nt.kLnWt140=140]="kLnWt140",$nt[$nt.kLnWt158=158]="kLnWt158",$nt[$nt.kLnWt200=200]="kLnWt200",$nt[$nt.kLnWt211=211]="kLnWt211",Knt);let Jnt=(()=>{class t{constructor(t,e,n,i){this.changeDetectorRef=t,this.dwgVisualizeService=e,this.databaseService=n,this.messageService=i,this.viewportHandle=null,this.isDBViewport=!1,this.layerList=[],this.sortType="mLayerName",this.mSearchValue="",this.mOriginLayerList=[],this.layerPlotList=[]}ngOnInit(){MF.instance().subscribeBroardcast(_F.UpdatePage,this),MF.instance().subscribeBroardcast(_F.VersionPanel,this);let t=this.databaseService.getDB();t&&this.getLayerList(t)}notify(t,e){if(t===_F.UpdatePage&&"object"==typeof e)if("updateLayerList"===e.type){let t=e.data;t&&this.getLayerList(t),this.changeDetectorRef.detectChanges()}else"updateViewportInfo"===e.type&&e.data&&(this.getViewData(e.data),this.changeDetectorRef.detectChanges());else t===_F.VersionPanel&&e.type===p4.SwitchEnd&&(this.layerList=[])}modify(t){return t.replace(/\\((M|N)|(m|n))\+[A-Za-z0-9]{5}/g," ")}changeLayerStatus(t,e){let n=t.mLayerHandle,i=this.databaseService.getDB();if(null===i)return;let r=i.getSymbolTable(o3.kZwDbLayerTable);if(t[e]=!t[e],this.changeDetectorRef.detectChanges(),"mIsOff"===e&&"Annotation_182588"!==t.mLayerName){let n=n7.instance().mGs;if(n&&n.webSocket&&n.webSocket.connectSuccess&&n.mDocIsOpened){let i={id:e7.UpdateLayer,function:1,data:{docId:n.mDocId,content:{opt:1,update:{entityType:_B.kZcDbLayer,layertablerecord:{symboltablerecord:{object:{xdata:""},name:t.mLayerName},handleId:String(t.mLayerHandle),isOff:t[e]?1:0}}}}};n.webSocket.sendMessage(i)}}let a=r.get(n);a&&(a[e]=t[e]),this.dwgVisualizeService.repaint(),this.search()}changeVis(t){n7.instance().mExecuteEditableCmd&&"Annotation_182588"===t.mLayerName?this.messageService.info(qF.mLanguagePackage.editModeTip6):this.changeLayerStatus(t,"mIsOff")}changeFrz(t){this.changeLayerStatus(t,"mIsFrozen")}changeLck(t){this.changeLayerStatus(t,"mIsLocked")}getValue(t,e){return t[e]}compare(t){let e=this;return"mLayerName"===t?function(n,i){let r=e.getValue(n,t),a=e.getValue(i,t);return r.localeCompare(a)}:function(t,n){let i=e.getValue(t,"mLayerName"),r=e.getValue(n,"mLayerName");return i.localeCompare(r)}}getLayerList(t){this.layerList=[];let e=t.getSymbolTable(o3.kZwDbLayerTable);if(e){let t=e.itemCount();for(let n=0;n<t;n++){let t=e.getAt(n);if(void 0===t)break;let i=t.getLayerInfo();i=Object.assign({},i),this.layerList.push(i)}}this.layerList.length&&this.layerList.sort(this.compare(this.sortType)),this.mOriginLayerList=[],this.layerList.forEach((t=>this.mOriginLayerList.push(t))),this.layerPlotList=[],this.layerList.forEach((t=>{"Annotation_182588"===t.mLayerName&&(t.mIsPlottable=!1),this.layerPlotList.push({layerId:t.mLayerHandle.toString(),isPlottable:t.mIsPlottable?1:0})})),RU.setLayerSettings(this.layerPlotList)}getViewData(t){this.isDBViewport=t.mIsDBViewport,this.viewportHandle=t.mHandle}getViewportColor(t){if(this.viewportHandle){let e=t.mViewportData.get(this.viewportHandle);if(e)return mJ(e.mColor)}return mJ(t.mColor)}getViewportLineWeight(t){if(this.viewportHandle){let e=t.mViewportData.get(this.viewportHandle);if(e)return this.getLineWeight(e.mLineWeight)}return this.getLineWeight(t.mLineWeight)}number2Rgb16(t){let e=t.mColor,n=n7.instance().mGs;if(null===n)return;let i=n.mCurView;if(null===i)return;let r=t.mViewportData;if(i.mVPHandle&&null!==r.get(i.mVPHandle)){let t=r.get(i.mVPHandle);t&&(e=t.mColor)}return mJ(e)}getLineWeight(t){let e=1,n="";switch(t){case Knt.kLnWtByLayer:return n=qF.mLanguagePackage.editor_byLayer,{height:e,text:n};case Knt.kLnWtByBlock:return n=qF.mLanguagePackage.editor_byBlock,{height:e,text:n};case Knt.kLnWtByLwDefault:return n=qF.mLanguagePackage.editor_default,{height:e,text:n};case Knt.kLnWt000:case Knt.kLnWt005:case Knt.kLnWt009:case Knt.kLnWt013:case Knt.kLnWt015:case Knt.kLnWt018:case Knt.kLnWt020:case Knt.kLnWt025:e=1;break;case Knt.kLnWt030:case Knt.kLnWt035:e=3;break;case Knt.kLnWt040:e=4;break;case Knt.kLnWt050:case Knt.kLnWt053:e=5;break;case Knt.kLnWt060:e=6;break;case Knt.kLnWt070:e=7;break;case Knt.kLnWt080:e=8;break;case Knt.kLnWt090:e=9;break;case Knt.kLnWt100:case Knt.kLnWt106:e=10;break;case Knt.kLnWt120:e=12;break;case Knt.kLnWt140:e=13;break;case Knt.kLnWt158:e=14;break;case Knt.kLnWt200:case Knt.kLnWt211:e=15}return n=(t*=.01).toFixed(2)+"mm",{height:e,text:n}}getOpacity(t){return Math.round(100*(1-(255&t)/255))}layerSettingChange(t){this.layerList[t].mIsPlottable=!this.layerList[t].mIsPlottable,this.layerPlotList[t].isPlottable=this.layerList[t].mIsPlottable?1:0,this.changeDetectorRef.detectChanges(),RU.setLayerSettings(this.layerPlotList)}ngOnDestroy(){MF.instance().unsubscribeBroardcast(_F.UpdatePage,this),MF.instance().unsubscribeBroardcast(_F.VersionPanel,this),this.layerList=[]}search(){let t=[];for(let e=0;e<this.mOriginLayerList.length;e++){const n=this.mOriginLayerList[e];n.mLayerName.toUpperCase().indexOf(this.mSearchValue.toUpperCase())>-1&&t.push(n)}this.layerList=t}clear(){this.mSearchValue="",this.search()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Gl),Zo(y4),Zo(sB),Zo(HA))},t["ɵcmp"]=qt({type:t,selectors:[["app-layer"]],decls:49,vars:56,consts:[[1,"container"],[1,"search-box"],[3,"nzSuffix"],["id","searchInput","type","text","nz-input","",3,"placeholder","ngModel","ngModelChange","keyup.enter"],["suffixIconSearch",""],[1,"content"],[1,"layer-title"],[1,"layer-name",3,"title"],[1,"layer-visible"],[3,"title"],[1,"layer-freeze"],[1,"layer-lock"],[1,"layer-color"],["class","layer-viewportColor",4,"ngIf"],[1,"layer-lweight",3,"title"],["class","layer-lweight",3,"title",4,"ngIf"],[1,"layer-opacity",3,"title"],[1,"layer-isPlotable"],["class","layer-item",4,"ngFor","ngForOf"],["class","cancel",3,"click",4,"ngIf"],["aria-hidden","true",1,"icon","icon-hover",2,"cursor","pointer",3,"click"],[0,"xlink","href","#icon-Search"],[1,"cancel",3,"click"],["aria-hidden","true",1,"icon",2,"cursor","pointer"],[0,"xlink","href","#icon-Cancel"],[1,"layer-viewportColor"],[1,"layer-item"],[1,"layer-visible",3,"click"],["aria-hidden","true",1,"icon"],[0,"xlink","href","#icon-xianshi",4,"ngIf"],[0,"xlink","href","#icon-yincang",4,"ngIf"],[0,"xlink","href","#icon-jiedong",4,"ngIf"],[0,"xlink","href","#icon-dongjie",4,"ngIf"],[0,"xlink","href","#icon-suoding",4,"ngIf"],[0,"xlink","href","#icon-jiesuo",4,"ngIf"],[1,"color-item"],[1,"layer-lweight"],[1,"layer-lweight-icon"],["class","layer-lweight",4,"ngIf"],[1,"layer-opacity"],[1,"layer-isPlotable",3,"click"],[4,"ngIf"],[0,"xlink","href","#icon-xianshi"],[0,"xlink","href","#icon-yincang"],[0,"xlink","href","#icon-jiedong"],[0,"xlink","href","#icon-dongjie"],[0,"xlink","href","#icon-suoding"],[0,"xlink","href","#icon-jiesuo"],[0,"xlink","href","#icon-dayinmian"],["aria-hidden","true",1,"icon",2,"color","var(--editor_icon_plot)","font-size","14px"],[0,"xlink","href","#icon-budayin"]],template:function(t,e){if(1&t&&(Yo(0,"div",0),Yo(1,"div",1),Yo(2,"nz-input-group",2),Yo(3,"input",3),es("ngModelChange",(function(t){return e.mSearchValue=t}))("keyup.enter",(function(){return e.search()})),Cc(4,"translate"),jo(),jo(),Ho(5,znt,3,1,"ng-template",null,4,Yc),jo(),Yo(7,"div",5),Yo(8,"div",6),Yo(9,"div",7),Cc(10,"translate"),Bs(11),Cc(12,"translate"),jo(),Yo(13,"div",8),Yo(14,"span",9),Cc(15,"translate"),Bs(16),Cc(17,"translate"),jo(),jo(),Yo(18,"div",10),Yo(19,"span",9),Cc(20,"translate"),Bs(21),Cc(22,"translate"),jo(),jo(),Yo(23,"div",11),Yo(24,"span",9),Cc(25,"translate"),Bs(26),Cc(27,"translate"),jo(),jo(),Yo(28,"div",12),Yo(29,"span",9),Cc(30,"translate"),Bs(31),Cc(32,"translate"),jo(),jo(),Ho(33,Rnt,5,6,"div",13),Yo(34,"div",14),Cc(35,"translate"),Bs(36),Cc(37,"translate"),jo(),Ho(38,Fnt,4,6,"div",15),Yo(39,"div",16),Cc(40,"translate"),Bs(41),Cc(42,"translate"),jo(),Yo(43,"div",17),Yo(44,"span",9),Cc(45,"translate"),Bs(46),Cc(47,"translate"),jo(),jo(),jo(),Ho(48,qnt,30,26,"div",18),jo(),jo()),2&t){const t=Go(6);sa(2),Uo("nzSuffix",t),sa(1),hs("placeholder",kc(4,22,"searchInput")),Uo("ngModel",e.mSearchValue),sa(6),Uo("title",kc(10,24,"editor_layerName")),sa(2),Vs(kc(12,26,"editor_layerName")),sa(3),Uo("title",kc(15,28,"editor_layerVis")),sa(2),Vs(kc(17,30,"editor_layerVis")),sa(3),Uo("title",kc(20,32,"editor_layerFreeze")),sa(2),Vs(kc(22,34,"editor_layerFreeze")),sa(3),Uo("title",kc(25,36,"editor_layerLock")),sa(2),Vs(kc(27,38,"editor_layerLock")),sa(3),Uo("title",kc(30,40,"editor_layerColor")),sa(2),Vs(kc(32,42,"editor_layerColor")),sa(2),Uo("ngIf",e.isDBViewport),sa(1),Uo("title",kc(35,44,"editor_layerLineWeight")),sa(2),Vs(kc(37,46,"editor_layerLineWeight")),sa(2),Uo("ngIf",e.isDBViewport),sa(1),Uo("title",kc(40,48,"editor_layerOpacity")),sa(2),Ns("",kc(42,50,"editor_layerOpacity")," "),sa(3),Uo("title",kc(45,52,"editor_layerColor")),sa(2),Vs(kc(47,54,"print")),sa(2),Uo("ngForOf",e.layerList)}},directives:[sM,c_,l_,s_,np,xp,Np,Yd,Ud],pipes:[H3],styles:[".container[_ngcontent-%COMP%]{height:100%;overflow:auto;color:var(--main_font);border:1px solid var(--editor_main_border);border-top:0}.container[_ngcontent-%COMP%]::-webkit-scrollbar{width:10px;height:10px}.container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:10px;background-color:var(--editor_main_scrollBar)}.container[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:var(--scrollbar_track)}.container[_ngcontent-%COMP%]::-webkit-scrollbar-corner{width:10px;height:10px;background-color:var(--editor_main_background)}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{text-align:center;font-size:12px;width:100%;margin:0 auto}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-title[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-item[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-title[_ngcontent-%COMP%]:first-of-type, .container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-item[_ngcontent-%COMP%]:first-of-type{border-top:1px solid var(--editor_main_border)}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-title[_ngcontent-%COMP%] div[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-item[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{border-bottom:1px solid var(--editor_main_border);height:28px;line-height:28px}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-title[_ngcontent-%COMP%] .layer-visible[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-item[_ngcontent-%COMP%] .layer-visible[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-width:28px;width:5%}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-title[_ngcontent-%COMP%] .layer-freeze[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-item[_ngcontent-%COMP%] .layer-freeze[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-width:28px;width:5%}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-title[_ngcontent-%COMP%] .layer-color[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-item[_ngcontent-%COMP%] .layer-color[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-width:28px;width:5%}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-title[_ngcontent-%COMP%] .layer-color[_ngcontent-%COMP%] .color-item[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-item[_ngcontent-%COMP%] .layer-color[_ngcontent-%COMP%] .color-item[_ngcontent-%COMP%]{border:1px solid var(--editor_main_border);height:15px;width:15px}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-title[_ngcontent-%COMP%] .layer-viewportColor[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-item[_ngcontent-%COMP%] .layer-viewportColor[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-width:54px;width:5%}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-title[_ngcontent-%COMP%] .layer-viewportColor[_ngcontent-%COMP%] .color-item[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-item[_ngcontent-%COMP%] .layer-viewportColor[_ngcontent-%COMP%] .color-item[_ngcontent-%COMP%]{border:1px solid var(--editor_main_border);height:15px;width:15px}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-title[_ngcontent-%COMP%] .layer-name[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-item[_ngcontent-%COMP%] .layer-name[_ngcontent-%COMP%]{text-align:left;padding:0 5px;min-width:140px;width:40%}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-title[_ngcontent-%COMP%] .layer-name[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-item[_ngcontent-%COMP%] .layer-name[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;width:100%}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-title[_ngcontent-%COMP%] .layer-lock[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-item[_ngcontent-%COMP%] .layer-lock[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-width:28px;width:5%}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-title[_ngcontent-%COMP%] .layer-type[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-item[_ngcontent-%COMP%] .layer-type[_ngcontent-%COMP%]{text-align:left;padding:0 5px;min-width:70px;width:15%}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-title[_ngcontent-%COMP%] .layer-lweight[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-item[_ngcontent-%COMP%] .layer-lweight[_ngcontent-%COMP%]{display:flex;align-items:center;padding:0 5px;min-width:100px;width:25%}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-title[_ngcontent-%COMP%] .layer-lweight[_ngcontent-%COMP%] .layer-lweight-icon[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-item[_ngcontent-%COMP%] .layer-lweight[_ngcontent-%COMP%] .layer-lweight-icon[_ngcontent-%COMP%]{margin-right:5px;border:none;background-color:var(--layer_lweight_icon);width:35px}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-title[_ngcontent-%COMP%] .layer-lweight[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-item[_ngcontent-%COMP%] .layer-lweight[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;text-align:left;width:50px}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-title[_ngcontent-%COMP%] .layer-opacity[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-item[_ngcontent-%COMP%] .layer-opacity[_ngcontent-%COMP%]{display:flex;align-items:center;padding:0 0 0 5px;min-width:45px;width:10%}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-title[_ngcontent-%COMP%] .layer-isPlotable[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-item[_ngcontent-%COMP%] .layer-isPlotable[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-width:28px;width:5%}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-title[_ngcontent-%COMP%] .layer-isPlotable[_ngcontent-%COMP%] .plot-item[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-item[_ngcontent-%COMP%] .layer-isPlotable[_ngcontent-%COMP%] .plot-item[_ngcontent-%COMP%]{border:1px solid var(--editor_main_border);height:15px;width:15px}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-title[_ngcontent-%COMP%] .layer-isPlotable[_ngcontent-%COMP%]:hover, .container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-item[_ngcontent-%COMP%] .layer-isPlotable[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:var(--editor_main_selected)}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-title[_ngcontent-%COMP%] .layer-isPlotable[_ngcontent-%COMP%]:hover svg[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-item[_ngcontent-%COMP%] .layer-isPlotable[_ngcontent-%COMP%]:hover svg[_ngcontent-%COMP%]{color:var(--main_white)}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-item[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{border-right:none}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-item[_ngcontent-%COMP%] .layer-visible[_ngcontent-%COMP%]{cursor:pointer}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-item[_ngcontent-%COMP%] .layer-visible[_ngcontent-%COMP%]:hover{background-color:var(--editor_main_selected)}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-item[_ngcontent-%COMP%] .layer-visible[_ngcontent-%COMP%]:hover svg[_ngcontent-%COMP%]{color:var(--main_white)}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{word-break:keep-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{font-size:16px;color:var(--editor_tool_icon)}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .off_icon[_ngcontent-%COMP%]{color:#6d6d6d}.container[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%]{width:200px;color:#fff;float:right;border-radius:4px;margin:2px}.container[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] .ant-input-affix-wrapper[_ngcontent-%COMP%]{width:unset!important;border:1px solid var(--editor_command_panel_border);background-color:var(--editor_input_background)}.container[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] .ant-input-affix-wrapper[_ngcontent-%COMP%] > input.ant-input[_ngcontent-%COMP%]{color:var(--main_font);background-color:var(--editor_input_background);border:none}.container[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{font-size:20px;color:var(--main_font)}.container[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]:hover{color:#078bde}.container[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] .cancel[_ngcontent-%COMP%]{height:100%;padding:0 5px;margin-right:8px}.container[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] .cancel[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{font-size:16px;color:#fff;border-radius:50%}"]}),t})();const Qnt=[{name:"",flex:1,type:"icon"},{name:"xref_name",flex:4,type:"name"},{name:"xref_status",flex:2,type:"status"},{name:"xref_size",flex:3,type:"size"},{name:"xref_type",flex:2,type:"suffix"},{name:"xref_savePath",flex:8,type:"refPath"}],tit=[{name:"xref_name",id:"name"},{name:"xref_status",id:"status"},{name:"xref_size",id:"size"},{name:"xref_type",id:"suffix"},{name:"xref_date",id:"createTime"},{name:"xref_foundPath",id:"foundPath"},{name:"xref_savePath",id:"refPath"}];function eit(t,e,n,i){let r=JSON.parse(JSON.stringify(t));switch(n){case"size":r.sort(((t,n)=>{let i=t.originSize-n.originSize;return e?i:-i}));break;case"name":if(i){let t=r[0],i=r.slice(1);i.sort(((t,i)=>{let r=t[n].localeCompare(i[n]);return e?r:-r})),r=[t,...i]}else r.sort(((t,i)=>{let r=t[n].localeCompare(i[n]);return e?r:-r}));break;default:r.sort(((t,i)=>{let r=t[n].localeCompare(i[n]);return e?r:-r}))}return r}function nit(t,e){if(1&t){const t=Jo();Yo(0,"div",20),es("click",(function(){return Ne(t),os(3).clear()})),gn(),Yo(1,"svg",21),Xo(2,"use",22),jo(),jo()}}function iit(t,e){if(1&t){const t=Jo();Ho(0,nit,3,0,"div",17),gn(),Yo(1,"svg",18),es("click",(function(){return Ne(t),os(2).search()})),Xo(2,"use",19),jo()}2&t&&Uo("ngIf",os(2).mSearchValue)}function rit(t,e){if(1&t){const t=Jo();Yo(0,"div",13),Yo(1,"nz-input-group",14),Yo(2,"input",15),es("ngModelChange",(function(e){return Ne(t),os().mSearchValue=e}))("keyup.enter",(function(){return Ne(t),os().search()})),Cc(3,"translate"),jo(),jo(),Ho(4,iit,3,1,"ng-template",null,16,Yc),jo()}if(2&t){const t=Go(5),e=os();sa(1),Uo("nzSuffix",t),sa(1),hs("placeholder",kc(3,3,"searchInput")),Uo("ngModel",e.mSearchValue)}}function ait(t,e){1&t&&Xo(0,"i",30),2&t&&Uo("nzType","caret-"+(os(3).mSortFlag?"down":"up"))}function oit(t,e){if(1&t){const t=Jo();Yo(0,"li",28),es("click",(function(){const e=Ne(t).$implicit;return os(2).sort(e.type)})),Bs(1),Cc(2,"translate"),Ho(3,ait,1,1,"i",29),jo()}if(2&t){const t=e.$implicit,n=os(2);xs("flex",t.flex),sa(1),Ns(" ",kc(2,4,t.name)," "),sa(2),Uo("ngIf",t.type===n.mSelectedHead)}}function sit(t,e){1&t&&(gn(),Xo(0,"use",44))}function lit(t,e){1&t&&(gn(),Xo(0,"use",45))}function cit(t,e){1&t&&(gn(),Xo(0,"use",46))}function hit(t,e){1&t&&(gn(),Xo(0,"use",47))}function dit(t,e){1&t&&(gn(),Xo(0,"use",48))}function uit(t,e){1&t&&(gn(),Xo(0,"use",49))}function mit(t,e){1&t&&(gn(),Xo(0,"use",50))}function pit(t,e){1&t&&(gn(),Xo(0,"use")),2&t&&Fo("href","dwg"===os(3).$implicit.name.split(".").pop()?"#icon-SmoreDwg":"#icon-DXF",null,"xlink")}function git(t,e){if(1&t&&(Yo(0,"span"),gn(),Yo(1,"svg",36),Ho(2,sit,1,0,"use",37),Ho(3,lit,1,0,"use",38),Ho(4,cit,1,0,"use",39),Ho(5,hit,1,0,"use",40),Ho(6,dit,1,0,"use",41),Ho(7,uit,1,0,"use",42),Ho(8,mit,1,0,"use",43),Ho(9,pit,1,1,"use",34),jo(),jo()),2&t){const t=os(2).$implicit,e=os(2);sa(1),Uo("ngSwitch",e.mIconList[("DWG"===t.suffix?t.suffix+"_":"")+t.status]),sa(1),Uo("ngSwitchCase",0),sa(1),Uo("ngSwitchCase",1),sa(1),Uo("ngSwitchCase",2),sa(1),Uo("ngSwitchCase",3),sa(1),Uo("ngSwitchCase",4),sa(1),Uo("ngSwitchCase",5),sa(1),Uo("ngSwitchCase",6),sa(1),Uo("ngSwitchCase",7)}}function fit(t,e){if(1&t&&(Yo(0,"span"),Bs(1),Cc(2,"translate"),jo()),2&t){const t=os(2).$implicit,e=os(2);sa(1),Ns(" ",kc(2,1,e.mStatusList[t.status])," ")}}function bit(t,e){if(1&t&&(Yo(0,"span"),Bs(1),Cc(2,"translate"),jo()),2&t){const t=os().$implicit,e=os().$implicit;sa(1),Ns(" ",kc(2,1,e[t.type])," ")}}function yit(t,e){if(1&t&&(Yo(0,"span",51),Bs(1),jo()),2&t){const t=os().$implicit,e=os().$implicit;Uo("title",e[t.type]),sa(1),Vs(e[t.type])}}function vit(t,e){if(1&t&&(Yo(0,"li",33),Ho(1,git,10,9,"span",34),Ho(2,fit,3,3,"span",34),Ho(3,bit,3,3,"span",34),Ho(4,yit,2,2,"span",35),jo()),2&t){const t=e.$implicit;xs("flex",t.flex),Uo("ngSwitch",t.type),sa(1),Uo("ngSwitchCase","icon"),sa(1),Uo("ngSwitchCase","status"),sa(1),Uo("ngSwitchCase","suffix")}}function wit(t,e){if(1&t){const t=Jo();Yo(0,"li",31),es("click",(function(){const e=Ne(t).$implicit;return os(2).getDetail(e)})),Yo(1,"ul"),Ho(2,vit,5,6,"li",32),jo(),jo()}if(2&t){const t=e.$implicit,n=os(2);Ps(n.mCurrentItemKey===t.key?"selectedItem":""),sa(2),Uo("ngForOf",n.mTableHeader)}}function xit(t,e){if(1&t&&(gn(),fn(),Yo(0,"div",23),Yo(1,"ul",24),Ho(2,oit,4,6,"li",25),jo(),Yo(3,"ul",26),Ho(4,wit,3,3,"li",27),jo(),jo()),2&t){const t=os();sa(2),Uo("ngForOf",t.mTableHeader),sa(2),Uo("ngForOf",t.mTableData)}}function Cit(t,e){1&t&&Xo(0,"i",57),2&t&&Uo("nzType",os().$implicit.isExpanded?"caret-down":"caret-right")}function kit(t,e){if(1&t&&Ho(0,Cit,1,1,"i",56),2&t){const t=e.origin;Uo("ngIf",!t.isLeaf&&!t.hide)}}function Sit(t,e){1&t&&(gn(),Xo(0,"use",44))}function Pit(t,e){1&t&&(gn(),Xo(0,"use",45))}function _it(t,e){1&t&&(gn(),Xo(0,"use",46))}function Mit(t,e){1&t&&(gn(),Xo(0,"use",47))}function Dit(t,e){1&t&&(gn(),Xo(0,"use",48))}function Eit(t,e){1&t&&(gn(),Xo(0,"use",49))}function Oit(t,e){1&t&&(gn(),Xo(0,"use",50))}function Ait(t,e){1&t&&(gn(),Xo(0,"use")),2&t&&Fo("href","dwg"===os(2).origin.name.split(".").pop()?"#icon-SmoreDwg":"#icon-DXF",null,"xlink")}function Tit(t,e){if(1&t&&(Yo(0,"p",59),gn(),Yo(1,"svg",36),Ho(2,Sit,1,0,"use",37),Ho(3,Pit,1,0,"use",38),Ho(4,_it,1,0,"use",39),Ho(5,Mit,1,0,"use",40),Ho(6,Dit,1,0,"use",41),Ho(7,Eit,1,0,"use",42),Ho(8,Oit,1,0,"use",43),Ho(9,Ait,1,1,"use",34),jo(),Bs(10),jo()),2&t){const t=os().origin,e=os(2);sa(1),Uo("ngSwitch",e.mIconList[("DWG"===t.suffix?t.suffix+"_":"")+t.status]),sa(1),Uo("ngSwitchCase",0),sa(1),Uo("ngSwitchCase",1),sa(1),Uo("ngSwitchCase",2),sa(1),Uo("ngSwitchCase",3),sa(1),Uo("ngSwitchCase",4),sa(1),Uo("ngSwitchCase",5),sa(1),Uo("ngSwitchCase",6),sa(1),Uo("ngSwitchCase",7),sa(1),Ns(" ",t.title," ")}}function Iit(t,e){1&t&&Ho(0,Tit,11,10,"p",58),2&t&&Uo("ngIf",!e.origin.hide)}const Lit=function(t){return[t]};function zit(t,e){if(1&t){const t=Jo();gn(),fn(),Yo(0,"div",52),Yo(1,"nz-tree",53),es("nzClick",(function(e){return Ne(t),os().activeNode(e)})),jo(),Ho(2,kit,1,1,"ng-template",null,54,Yc),Ho(4,Iit,1,1,"ng-template",null,55,Yc),jo()}if(2&t){const t=Go(3),e=Go(5),n=os();sa(1),Uo("nzData",n.nodes)("nzTreeTemplate",e)("nzSelectedKeys",fc(4,Lit,n.mCurrentItemKey))("nzExpandedIcon",t)}}function Rit(t,e){if(1&t&&(Yo(0,"p"),Bs(1),Cc(2,"translate"),jo()),2&t){const t=os(4);sa(1),Vs(kc(2,1,t.mStatusList[t.mCurrentDetail.status]))}}function Fit(t,e){if(1&t&&(Yo(0,"p"),Bs(1),Cc(2,"translate"),jo()),2&t){const t=os().$implicit,e=os(3);sa(1),Ns(" ",kc(2,1,e.mCurrentDetail[t.id])," ")}}function Bit(t,e){if(1&t&&(Yo(0,"p"),Bs(1),jo()),2&t){const t=os().$implicit,e=os(3);sa(1),Vs(e.mCurrentDetail[t.id])}}function Vit(t,e){if(1&t&&(Yo(0,"li"),Yo(1,"div",68),Bs(2),Cc(3,"translate"),jo(),Yo(4,"div",69),Ho(5,Rit,3,3,"p",34),Ho(6,Fit,3,3,"p",34),Ho(7,Bit,2,1,"p",70),jo(),jo()),2&t){const t=e.$implicit;sa(2),Vs(kc(3,4,t.name)),sa(2),Uo("ngSwitch",t.id),sa(1),Uo("ngSwitchCase","status"),sa(1),Uo("ngSwitchCase","suffix")}}function Nit(t,e){if(1&t&&(Yo(0,"ul",66),Ho(1,Vit,8,6,"li",67),jo()),2&t){const t=os(2);sa(1),Uo("ngForOf",t.mDetailKeys)}}function Hit(t,e){if(1&t&&(Yo(0,"div",71),Xo(1,"img",72),jo()),2&t){const t=os(2);sa(1),Uo("src",t.mPreviewSrc,Hr)}}function Git(t,e){if(1&t){const t=Jo();Yo(0,"div"),Yo(1,"div",60),Yo(2,"p",4),Bs(3),Cc(4,"translate"),jo(),Yo(5,"div",5),gn(),Yo(6,"svg",6),es("click",(function(){return Ne(t),os().showXrefInfo()})),Xo(7,"use",61),jo(),Yo(8,"svg",6),es("click",(function(){return Ne(t),os().getPreview()})),Xo(9,"use",62),jo(),fn(),Yo(10,"i",63),es("click",(function(){return Ne(t),os().hideDetail()})),jo(),jo(),jo(),Ho(11,Nit,2,1,"ul",64),Ho(12,Hit,2,1,"div",65),jo()}if(2&t){const t=os();sa(3),Vs(kc(4,3,t.mdetailTypeList[t.mDetailType])),sa(8),Uo("ngIf",0===t.mDetailType),sa(1),Uo("ngIf",1===t.mDetailType)}}let Zit=(()=>{class t{constructor(t,e){this.message=t,this.changeDetectorRef=e,this.mTableHeader=[],this.mListType=0,this.mDetailType=0,this.mTableData=[],this.mStatusList={NOT_FOUND:"xref_notfound",LOADED:"xref_loaded",NO_REF:"xref_notref",UNLOADED:"xref_unloaded",OPENED:"xref_opened"},this.mIconList={DWG_NOT_FOUND:0,DWG_LOADED:1,DWG_NO_REF:2,DWG_UNLOADED:3,NOT_FOUND:4,LOADED:5,UNLOADED:6,OPENED:7},this.mPreviewSrc="",this.mCurrentItemKey="",this.mShowDetail=!1,this.mDetailKeys=[],this.mdetailTypeList=["xref_detail","xref_preview"],this.treeData={},this.nodes=[],this.mSortFlag=!1,this.mSelectedHead="name",this.mSrcMap=new Map,this.mOriginTableData=[],this.mOriginNodes=[],this.mSearchValue="",MF.instance().subscribeBroardcast(_F.GetFileData,this)}ngOnInit(){this.mTableHeader=Qnt,this.mDetailKeys=tit}ngOnDestroy(){this.mRouterSubject&&this.mRouterSubject.unsubscribe(),MF.instance().unsubscribeBroardcast(_F.GetFileData,this)}notify(t,e){if("object"==typeof e&&t===_F.GetFileData)if("xrefList"===e.type&&e.data){let t=e.data.docName,n=e.data.xrefRelations;this.mSrcMap=e.data.srcMap,this.mCurDocDetail={name:t,status:"OPENED",suffix:"xref_current",size:CF(e.data.size)};let i=function(t,e){let n,i=JSON.parse(JSON.stringify(t)),r=[],a=0;return n=[{name:e.name,title:e.name,key:"0",expanded:!1,status:e.status,suffix:"xref_current",children:function t(e,n){if(e.length)for(let i=0;i<e.length;i++){let o=e[i];n&&"DWG"!==o.suffix&&(o.name=n+" | "+o.name),o.title=o.name,o.originSize=o.size,o.size=CF(o.size),o.createTime=xF(new Date(o.createTime)),o.key=String(++a),o.list&&o.list.length?(o.expanded=!1,o.children=t(o.list,o.title)):o.isLeaf=!0,delete o.list,r.push(o)}return e}(i)}],r.unshift(e),{treeData:n,tableData:r}}(n,this.mCurDocDetail);this.mTableData=eit(i.tableData,this.mSortFlag,"name",!0),this.nodes=i.treeData,this.mOriginTableData=[],this.mTableData.forEach((t=>{this.mOriginTableData.push(t)})),this.mOriginNodes=JSON.parse(JSON.stringify(this.nodes)),this.mShowDetail=!1,this.changeDetectorRef.detectChanges()}else if("addXref"===e.type&&e.data&&!this.mTableData.find((t=>t.fileId===e.data.fileId))){let t=e.data.name,n=t.slice(0,t.lastIndexOf(".")),i={createTime:xF(new Date(e.data.createTime)),fileId:e.data.fileId,foundPath:e.data.path+e.data.name,name:n,status:"LOADED",suffix:e.data.suffix,size:CF(e.data.size),refPath:e.data.path+e.data.name,key:this.mTableData.length,isLeaf:!0,title:n};this.mSrcMap.set(e.data.fileId,e.data.data),this.mTableData.push(i);let r=this.nodes[0];r.expanded=!1,r.children.push(i),this.mShowDetail=!1,this.changeDetectorRef.detectChanges()}}getDetail(t){this.mShowDetail=!0,t.key!==this.mCurrentItemKey&&(this.mCurrentDetail=t,this.mCurrentItemKey=t.key,1===this.mDetailType&&!this.getPreview()&&(this.mDetailType=0)),this.changeDetectorRef.detectChanges()}getPreview(){if("NOT_FOUND"===this.mCurrentDetail.status)return this.message.error(qF.mLanguagePackage.xref_cannot_preview),!1;let t=this.mCurrentDetail.fileId||this.mCurrentDetail.foundPath;return t?(this.mSrcMap.has(t)&&(this.mDetailType=1,this.mPreviewSrc=this.mSrcMap.get(t),this.changeDetectorRef.detectChanges()),!0):(this.message.error(qF.mLanguagePackage.xref_cannot_preview),!1)}hideDetail(){this.mShowDetail=!1,this.changeDetectorRef.detectChanges()}showXrefInfo(){this.mDetailType=0,this.changeDetectorRef.detectChanges()}activeNode(t){this.getDetail(t.node.origin)}sort(t){"icon"!==t&&(this.mSelectedHead=t,this.mSortFlag=!this.mSortFlag,this.mTableData=eit(this.mTableData,this.mSortFlag,t))}changeListType(t){this.mListType=t,0===this.mListType?this.search():this.mSearchValue=""}search(){if(0===this.mListType){let t=this.mSearchValue.toUpperCase(),e=[];for(let n=0;n<this.mOriginTableData.length;n++){const i=this.mOriginTableData[n];("string"==typeof i.name&&i.name.toUpperCase().indexOf(t)>-1||i.title&&i.title.toUpperCase().indexOf(t)>-1)&&e.push(i)}this.mTableData=e,this.changeDetectorRef.detectChanges()}}clear(){this.mSearchValue="",this.search()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(HA),Zo(Gl))},t["ɵcmp"]=qt({type:t,selectors:[["app-xref"]],decls:16,vars:9,consts:[[1,"container"],[2,"border-bottom","1px solid var(--editor_main_border)"],["class","search-box",4,"ngIf"],[1,"header"],[1,"title"],[1,"list"],["aria-hidden","true",1,"icon","pointer",3,"click"],[0,"xlink","href","#icon-CADliebiao"],[0,"xlink","href","#icon-CADshujiegou"],["class","table",4,"ngIf"],["class","tree",4,"ngIf"],[1,"detail"],[4,"ngIf"],[1,"search-box"],[3,"nzSuffix"],["id","searchInput","type","text","nz-input","",3,"placeholder","ngModel","ngModelChange","keyup.enter"],["suffixIconSearch",""],["class","cancel",3,"click",4,"ngIf"],["aria-hidden","true",1,"icon","icon-hover",2,"cursor","pointer",3,"click"],[0,"xlink","href","#icon-Search"],[1,"cancel",3,"click"],["aria-hidden","true",1,"icon",2,"cursor","pointer"],[0,"xlink","href","#icon-Cancel"],[1,"table"],[1,"tableheader"],["class","pointer",3,"flex","click",4,"ngFor","ngForOf"],[1,"tableContent"],["class","tableItem",3,"class","click",4,"ngFor","ngForOf"],[1,"pointer",3,"click"],["nz-icon","","nzTheme","outline",3,"nzType",4,"ngIf"],["nz-icon","","nzTheme","outline",3,"nzType"],[1,"tableItem",3,"click"],[3,"flex","ngSwitch",4,"ngFor","ngForOf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"title",4,"ngSwitchDefault"],["aria-hidden","true",1,"icon",3,"ngSwitch"],[0,"xlink","href","#icon-Dwgweizhaodao",4,"ngSwitchCase"],[0,"xlink","href","#icon-guanlianDwg",4,"ngSwitchCase"],[0,"xlink","href","#icon-SmoreDwg",4,"ngSwitchCase"],[0,"xlink","href","#icon-Dwgyixiezai",4,"ngSwitchCase"],[0,"xlink","href","#icon-tupianweizhaodao",4,"ngSwitchCase"],[0,"xlink","href","#icon-guanliantupian",4,"ngSwitchCase"],[0,"xlink","href","#icon-tupianyixiezai",4,"ngSwitchCase"],[0,"xlink","href","#icon-Dwgweizhaodao"],[0,"xlink","href","#icon-guanlianDwg"],[0,"xlink","href","#icon-SmoreDwg"],[0,"xlink","href","#icon-Dwgyixiezai"],[0,"xlink","href","#icon-tupianweizhaodao"],[0,"xlink","href","#icon-guanliantupian"],[0,"xlink","href","#icon-tupianyixiezai"],[3,"title"],[1,"tree"],["nzShowIcon","",2,"margin-top","10px",3,"nzData","nzTreeTemplate","nzSelectedKeys","nzExpandedIcon","nzClick"],["expandedIcon",""],["treeItem",""],["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","",3,"nzType"],["style","max-width: 20em;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;",4,"ngIf"],[2,"max-width","20em","overflow","hidden","white-space","nowrap","text-overflow","ellipsis"],[1,"header","dark","sticky"],[0,"xlink","href","#icon-xiangqingxinxi"],[0,"xlink","href","#icon-tupianxinxi"],["nz-icon","","nzType","caret-down","nzTheme","outline",1,"icon","pointer",3,"click"],["class","detailContent",4,"ngIf"],["class","preview",4,"ngIf"],[1,"detailContent"],[4,"ngFor","ngForOf"],[1,"itemTitle"],[1,"itemContetn",3,"ngSwitch"],[4,"ngSwitchDefault"],[1,"preview"],["alt","",3,"src"]],template:function(t,e){1&t&&(Yo(0,"div",0),Yo(1,"div",1),Ho(2,rit,6,5,"div",2),jo(),Yo(3,"div",3),Yo(4,"p",4),Bs(5),Cc(6,"translate"),jo(),Yo(7,"div",5),gn(),Yo(8,"svg",6),es("click",(function(){return e.changeListType(0)})),Xo(9,"use",7),jo(),Yo(10,"svg",6),es("click",(function(){return e.changeListType(1)})),Xo(11,"use",8),jo(),jo(),jo(),Ho(12,xit,5,2,"div",9),Ho(13,zit,6,6,"div",10),fn(),Yo(14,"div",11),Ho(15,Git,13,5,"div",12),jo(),jo()),2&t&&(sa(2),Uo("ngIf",0===e.mListType),sa(3),Vs(kc(6,7,"xref_manager")),sa(7),Uo("ngIf",0===e.mListType),sa(1),Uo("ngIf",1===e.mListType),sa(1),Ps(e.mShowDetail?"popup":"popdown"),sa(1),Uo("ngIf",e.mShowDetail))},directives:[Yd,sM,c_,l_,s_,np,xp,Np,Ud,eP,$d,Kd,Jd,GR],pipes:[H3],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;height:100%;background-color:var(--editor_main_background);color:var(--main_font);font-size:14px;border:1px solid var(--editor_main_border);border-top:0;overflow:auto}.container[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{padding:0;margin:0}.container[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style:none}.container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%] .dark[_ngcontent-%COMP%]{background-color:var(--editor_main_title)}.container[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{min-width:21px;margin-right:4px;font-size:16px;color:var(--main_font)}.container[_ngcontent-%COMP%] .pointer[_ngcontent-%COMP%]{cursor:pointer}.container[_ngcontent-%COMP%] .selectedItem[_ngcontent-%COMP%]{color:var(--main_white);background-color:#078bed}.container[_ngcontent-%COMP%] .selectedItem[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{color:var(--main_white)}.container[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;height:26px;line-height:26px;padding:2px 2px 2px 10px;border-bottom:1px solid var(--editor_main_border)}.container[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:8px}.container[_ngcontent-%COMP%] .table[_ngcontent-%COMP%]{flex:1;width:100%;overflow:auto}.container[_ngcontent-%COMP%] .table[_ngcontent-%COMP%]::-webkit-scrollbar{width:10px;height:10px}.container[_ngcontent-%COMP%] .table[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:10px;background-color:var(--editor_main_scrollBar)}.container[_ngcontent-%COMP%] .table[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:var(--scrollbar_track)}.container[_ngcontent-%COMP%] .table[_ngcontent-%COMP%]::-webkit-scrollbar-corner{width:10px;height:10px;background-color:var(--editor_main_background)}.container[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .tableheader[_ngcontent-%COMP%]{position:sticky;top:0;display:flex;flex-direction:row;min-width:678px;background-color:var(--editor_main_background);border-right:1px solid var(--editor_main_background);border-left:1px solid var(--editor_main_background);border-bottom:1px solid var(--editor_main_border)}.container[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .tableheader[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{border-right:1px solid var(--editor_main_background);padding:4px 2px 4px 10px}.container[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .tableContent[_ngcontent-%COMP%]{min-width:678px}.container[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .tableContent[_ngcontent-%COMP%] .tableItem[_ngcontent-%COMP%]{cursor:pointer;border-bottom:1px solid var(--editor_main_border);transition:background-color .1s ease-in-out}.container[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .tableContent[_ngcontent-%COMP%] .tableItem[_ngcontent-%COMP%]:hover{color:var(--main_white);background-color:#078bed}.container[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .tableContent[_ngcontent-%COMP%] .tableItem[_ngcontent-%COMP%]:hover svg[_ngcontent-%COMP%]{color:var(--main_white)}.container[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .tableContent[_ngcontent-%COMP%] .tableItem[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{display:flex;flex-direction:row}.container[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .tableContent[_ngcontent-%COMP%] .tableItem[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding:2px 2px 2px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.container[_ngcontent-%COMP%] .tree[_ngcontent-%COMP%]{flex:1;width:100%;overflow:auto}.container[_ngcontent-%COMP%] .tree[_ngcontent-%COMP%]::-webkit-scrollbar{width:10px;height:10px}.container[_ngcontent-%COMP%] .tree[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:10px;background-color:var(--editor_main_scrollBar)}.container[_ngcontent-%COMP%] .tree[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:var(--scrollbar_track)}.container[_ngcontent-%COMP%] .tree[_ngcontent-%COMP%]::-webkit-scrollbar-corner{width:10px;height:10px;background-color:var(--editor_main_background)}.container[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%]{position:relative;transition:height .2s ease-in-out;overflow:auto}.container[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%]::-webkit-scrollbar{width:10px;height:10px}.container[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:10px;background-color:var(--editor_main_scrollBar)}.container[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:var(--scrollbar_track)}.container[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%]::-webkit-scrollbar-corner{width:10px;height:10px;background-color:var(--editor_main_background)}.container[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%] .sticky[_ngcontent-%COMP%]{position:sticky;top:0}.container[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%] .detailContent[_ngcontent-%COMP%]{padding:10px}.container[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%] .detailContent[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{min-width:18em;display:flex;flex-direction:row;padding:4px 0}.container[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%] .detailContent[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .itemTitle[_ngcontent-%COMP%]{width:8em;white-space:nowrap}.container[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%] .detailContent[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .itemContetn[_ngcontent-%COMP%]{flex:1;word-break:break-all}.container[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%]{height:274px;line-height:274px;text-align:center}.container[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:200px;height:auto}.container[_ngcontent-%COMP%] .popup[_ngcontent-%COMP%]{height:300px}.container[_ngcontent-%COMP%] .popdown[_ngcontent-%COMP%]{height:0}[_nghost-%COMP%] .ant-tree{color:var(--main_font);background-color:transparent}[_nghost-%COMP%] .ant-tree-node-content-wrapper:hover{background-color:#078bed;color:var(--main_white)}[_nghost-%COMP%] .ant-tree-node-content-wrapper:hover svg{color:var(--main_white)!important}[_nghost-%COMP%] .ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected{background-color:#078bed;color:var(--main_white)}[_nghost-%COMP%] .ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected svg{color:var(--main_white)}[_nghost-%COMP%] .ant-tree-show-line .ant-tree-switcher{color:#fff;background-color:transparent}.search-box[_ngcontent-%COMP%]{width:200px;color:#fff;float:right;border-radius:4px;margin:2px}.search-box[_ngcontent-%COMP%] .ant-input-affix-wrapper[_ngcontent-%COMP%]{width:unset!important;border:1px solid var(--editor_command_panel_border);background-color:var(--editor_input_background)}.search-box[_ngcontent-%COMP%] .ant-input-affix-wrapper[_ngcontent-%COMP%] > input.ant-input[_ngcontent-%COMP%]{color:var(--main_font);background-color:var(--editor_input_background);border:none}.search-box[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{font-size:20px;color:var(--main_font)}.search-box[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]:hover{color:#078bde}.search-box[_ngcontent-%COMP%] .cancel[_ngcontent-%COMP%]{height:100%;padding:0 5px;margin-right:8px}.search-box[_ngcontent-%COMP%] .cancel[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{font-size:16px;color:#fff;border-radius:50%}"]}),t})();function Uit(t,e){if(1&t){const t=Jo();Yo(0,"li",15),es("click",(function(){const e=Ne(t).$implicit;return os().opmSelect.value=e.value})),Bs(1),jo()}if(2&t){const t=e.$implicit;sa(1),Ns(" ",t.label," ")}}function Wit(t,e){1&t&&(gn(),Xo(0,"use",16))}function Yit(t,e){1&t&&(gn(),Xo(0,"use",17))}function jit(t,e){1&t&&Xo(0,"i",23)}function Xit(t,e){1&t&&Xo(0,"i",24)}function qit(t,e){if(1&t&&(Yo(0,"span",35),Bs(1),jo()),2&t){const t=os(2).$implicit,e=os(3);sa(1),Vs(e.getValue(t))}}function $it(t,e){1&t&&Xo(0,"i",23)}function Kit(t,e){if(1&t&&(Yo(0,"div",33),Ho(1,qit,2,1,"span",34),Ho(2,$it,1,0,"i",20),jo()),2&t){const t=os().$implicit,e=Go(7),n=os(2).$implicit,i=os();Uo("nzDropdownMenu",e),sa(1),Uo("ngIf",t.value),sa(1),Uo("ngIf",i.curIndex===n.name+t.name)}}function Jit(t,e){if(1&t){const t=Jo();Yo(0,"li",15),es("click",(function(){const e=Ne(t).$implicit;return os().$implicit.value=e.value})),Bs(1),jo()}if(2&t){const t=e.$implicit;sa(1),Ns(" ",t.label," ")}}function Qit(t,e){if(1&t){const t=Jo();Yo(0,"input",36),es("focus",(function(){Ne(t);const e=os().$implicit;return os(3).inputStart(e)}))("blur",(function(e){Ne(t);const n=os().$implicit;return os(3).inputFinish(e,n)})),jo()}if(2&t){const t=os().$implicit;Uo("value",os(3).fixValue(t.value))("readOnly",t.readOnly)}}function trt(t,e){if(1&t){const t=Jo();Yo(0,"div",26),Yo(1,"div",27),es("click",(function(){const e=Ne(t).$implicit,n=os(2).$implicit;return os().curIndex=n.name+e.name})),Yo(2,"div",28),Bs(3),jo(),Yo(4,"div",29),Ho(5,Kit,3,3,"div",30),Yo(6,"nz-dropdown-menu",null,31),Yo(8,"ul",7),Ho(9,Jit,2,1,"li",8),jo(),jo(),Ho(10,Qit,1,2,"input",32),jo(),jo(),jo()}if(2&t){const t=e.$implicit,n=os(2).$implicit,i=os();sa(2),xs("background-color",i.curIndex===n.name+t.name?"#1890ff":""),sa(1),Ns(" ",t.label,""),sa(2),Uo("ngIf","select"===t.type),sa(4),Uo("ngForOf",t.options),sa(1),Uo("ngIf","input-text"===t.type)}}function ert(t,e){if(1&t&&(Yo(0,"div"),Ho(1,trt,11,6,"div",25),jo()),2&t){const t=os().$implicit;sa(1),Uo("ngForOf",t.body)}}function nrt(t,e){if(1&t){const t=Jo();gn(),fn(),Yo(0,"div"),Yo(1,"div",18),Yo(2,"div",19),es("click",(function(){const e=Ne(t).$implicit;return os().propVisChange(e)})),Bs(3),Ho(4,jit,1,0,"i",20),Ho(5,Xit,1,0,"i",21),jo(),Ho(6,ert,2,1,"div",22),jo(),jo()}if(2&t){const t=e.$implicit;sa(3),Ns("",t.label," "),sa(1),Uo("ngIf",!t.visible),sa(1),Uo("ngIf",t.visible),sa(1),Uo("ngIf",!t.visible)}}let irt=(()=>{class t{constructor(t){this.changeDetectorRef=t,this.opmSelect={value:"none",options:[{label:qF.mLanguagePackage.noSelection,value:"none"}]},this.EntitySelectMode=AW,this.curIndex="",MF.instance().subscribeBroardcast(_F.GetFileData,this),MF.instance().subscribeBroardcast(_F.UpdatePage,this)}ngOnInit(){}ngOnDestroy(){MF.instance().unsubscribeBroardcast(_F.GetFileData,this)}getValue(t){return t.options.find((e=>e.value===t.value)).label}fixValue(t){if("bigint"==typeof t||Number.isInteger(t))return t;if(!isNaN(parseFloat(t))&&isFinite(t)){let e=Number(t);return 0===e?0:e.toFixed(4)}return t}propVisChange(t){t.visible=!t.visible,this.curIndex=""}inputStart(t){t.readOnly||(U5._instance.mGs&&(U5._instance.mGs.mIsOpmInputing=!0),$F.instance().keepFocusInCmdPanel(!1))}inputFinish(t,e){if(e.readOnly)return;let n=/^(\+?|-)\d+(\.\d+)?$/;n.test(t.target.value)?e.value=Number(Number(t.target.value).toFixed(4)):t.target.value=n.test(e.value)?e.value.toFixed(4):e.value,U5._instance.mGs&&(U5._instance.mGs.mIsOpmInputing=!1)}selectModeChange(){U5._instance.mGs&&(U5._instance.mGs.selectModeChange(),this.opmEntitySelectMode=U5._instance.mGs.mEntitySelectMode)}number2Rgb16(t){return mJ(t)}notify(t,e){if("object"==typeof e)if(t===_F.GetFileData){if("opmList"===e.type&&e.data){let t=[],n=e.data.data;"view"===e.data.type?t=[{type:"form",name:"view",label:qF.mLanguagePackage.view,body:[{type:"input-text",name:"centerX",label:qF.mLanguagePackage.centerX,value:n.centerPoint.mX,readOnly:!0},{type:"input-text",name:"centerY",label:qF.mLanguagePackage.centerY,value:n.centerPoint.mY,readOnly:!0},{type:"input-text",name:"centerZ",label:qF.mLanguagePackage.centerZ,value:n.centerPoint.mZ,readOnly:!0},{type:"input-text",name:"viewHeight",label:qF.mLanguagePackage.viewHeight,value:n.height,readOnly:!0},{type:"input-text",name:"viewWidth",label:qF.mLanguagePackage.viewWidth,value:n.width,readOnly:!0}]}]:"entity"===e.data.type&&(this.curIndex="",t=[{type:"form",name:"basic",label:qF.mLanguagePackage.general,body:[{type:"input-text",name:"viewWidth",label:qF.mLanguagePackage.handle,value:n.handleId,readOnly:!0},{type:"input-text",name:"layerName",label:qF.mLanguagePackage.layer,value:n.layerName,readOnly:!0}]}]),this.mPropData=t,this.changeDetectorRef.detectChanges()}}else t===_F.UpdatePage&&"loading"===e.type&&!1===e.data.isLoading&&U5._instance.mGs&&(this.opmEntitySelectMode=U5._instance.mGs.mEntitySelectMode)}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Gl))},t["ɵcmp"]=qt({type:t,selectors:[["app-opm"]],decls:18,vars:6,consts:[[1,"container"],[1,"opmTopTool"],["nz-dropdown","","nzTrigger","click",1,"opmSelect",3,"nzDropdownMenu"],[1,"opmSelectValue"],["aria-hidden","true",1,"icon","pointer"],[0,"xlink","href","#icon-xiala"],["opmdropdownMenu","nzDropdownMenu"],["nz-menu","",1,"dropdownMenu"],["nz-menu-item","",3,"click",4,"ngFor","ngForOf"],[1,"opmOptions"],["aria-hidden","true",1,"icon","pointer",3,"click"],[0,"xlink","href","#icon-ordinaryUser",4,"ngIf"],[0,"xlink","href","#icon-yonghuzu",4,"ngIf"],[0,"xlink","href","#icon-CADshujiegou"],[4,"ngFor","ngForOf"],["nz-menu-item","",3,"click"],[0,"xlink","href","#icon-ordinaryUser"],[0,"xlink","href","#icon-yonghuzu"],[1,"propContainer"],[1,"title",3,"click"],["nz-icon","","nzType","down",4,"ngIf"],["nz-icon","","nzType","left",4,"ngIf"],[4,"ngIf"],["nz-icon","","nzType","down"],["nz-icon","","nzType","left"],["class","property",4,"ngFor","ngForOf"],[1,"property"],["nz-row","",1,"details",3,"click"],["nz-col","","nzSpan","8",1,"label"],["nz-col","","nzSpan","16"],["nz-dropdown","","nzTrigger","click","class","select",3,"nzDropdownMenu",4,"ngIf"],["navMenu","nzDropdownMenu"],["nz-input","",3,"value","readOnly","focus","blur",4,"ngIf"],["nz-dropdown","","nzTrigger","click",1,"select",3,"nzDropdownMenu"],["class","selectValue",4,"ngIf"],[1,"selectValue"],["nz-input","",3,"value","readOnly","focus","blur"]],template:function(t,e){if(1&t&&(Yo(0,"div",0),Yo(1,"div",1),Yo(2,"div",2),Yo(3,"span",3),Bs(4),jo(),gn(),Yo(5,"svg",4),Xo(6,"use",5),jo(),jo(),fn(),Yo(7,"nz-dropdown-menu",null,6),Yo(9,"ul",7),Ho(10,Uit,2,1,"li",8),jo(),jo(),Yo(11,"div",9),gn(),Yo(12,"svg",10),es("click",(function(){return e.selectModeChange()})),Ho(13,Wit,1,0,"use",11),Ho(14,Yit,1,0,"use",12),jo(),Yo(15,"svg",4),Xo(16,"use",13),jo(),jo(),jo(),Ho(17,nrt,7,4,"div",14),jo()),2&t){const t=Go(8);sa(2),Uo("nzDropdownMenu",t),sa(2),Vs(e.getValue(e.opmSelect)),sa(6),Uo("ngForOf",e.opmSelect.options),sa(3),Uo("ngIf",e.opmEntitySelectMode===e.EntitySelectMode.Single),sa(1),Uo("ngIf",e.opmEntitySelectMode===e.EntitySelectMode.Muilty),sa(3),Uo("ngForOf",e.mPropData)}},directives:[gA,bA,oA,Ud,Yd,sM,tA,eP,xA,CA,s_],styles:[".container[_ngcontent-%COMP%]{height:100%;background-color:var(--editor_main_background);overflow:auto;color:var(--main_font)}.container[_ngcontent-%COMP%]::-webkit-scrollbar{width:10px;height:10px}.container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:10px;background-color:var(--editor_main_scrollBar)}.container[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:var(--scrollbar_track)}.container[_ngcontent-%COMP%]::-webkit-scrollbar-corner{width:10px;height:10px;background-color:var(--editor_main_background)}.container[_ngcontent-%COMP%] .opmTopTool[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-width:230px;padding:0 6px}.container[_ngcontent-%COMP%] .opmTopTool[_ngcontent-%COMP%] .opmSelect[_ngcontent-%COMP%]{width:70%;padding:6px 5px;font-size:12px;border:1px solid var(--editor_main_border);margin:5px 0;background-color:#626262}.container[_ngcontent-%COMP%] .opmTopTool[_ngcontent-%COMP%] .opmSelect[_ngcontent-%COMP%] .opmSelectValue[_ngcontent-%COMP%]{width:90%;display:inline-block}.container[_ngcontent-%COMP%] .opmTopTool[_ngcontent-%COMP%] .opmOptions[_ngcontent-%COMP%]{width:30%}.container[_ngcontent-%COMP%] .opmTopTool[_ngcontent-%COMP%] .opmOptions[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{border:1px solid #515d66;font-size:24px;margin-left:6px}.container[_ngcontent-%COMP%] .propContainer[_ngcontent-%COMP%]{margin-bottom:16px;min-width:230px;padding:0 6px}.container[_ngcontent-%COMP%] .propContainer[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;padding:5px;background-color:var(--editor_main_background);font-size:12px;align-items:center;justify-content:space-between}.container[_ngcontent-%COMP%] .propContainer[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{float:right}.container[_ngcontent-%COMP%] .propContainer[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{cursor:pointer}.container[_ngcontent-%COMP%] .propContainer[_ngcontent-%COMP%] .property[_ngcontent-%COMP%]{width:100%;border-bottom:1px solid var(--editor_main_border);color:var(--main_font);font-size:12px}.container[_ngcontent-%COMP%] .propContainer[_ngcontent-%COMP%] .property[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{border-right:1px solid var(--editor_main_border);padding:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.container[_ngcontent-%COMP%] .propContainer[_ngcontent-%COMP%] .property[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .select[_ngcontent-%COMP%]{height:100%;display:flex;align-items:center}.container[_ngcontent-%COMP%] .propContainer[_ngcontent-%COMP%] .property[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .select[_ngcontent-%COMP%] .selectValue[_ngcontent-%COMP%]{width:80%;font-size:12px;margin-left:10%}.container[_ngcontent-%COMP%] .propContainer[_ngcontent-%COMP%] .property[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .color-item[_ngcontent-%COMP%]{margin:6px;border:1px solid var(--editor_main_border);height:15px;width:15px}.container[_ngcontent-%COMP%] .ant-input[_ngcontent-%COMP%] {width:80%;background-color:var(--editor_main_background);border:#424c58;color:var(--main_font);padding:4px 0!important;font-size:12px;margin-left:5px}.container[_ngcontent-%COMP%] .ant-input[_ngcontent-%COMP%]:focus {box-shadow:none}.dropdownMenu[_ngcontent-%COMP%]{color:#fff;background-color:var(--editor_main_background)}.dropdownMenu[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{color:var(--main_font);padding:0 12px!important;font-size:12px!important}.dropdownMenu[_ngcontent-%COMP%] li[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:5px}.dropdownMenu[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{background-color:#1b69a8}"]}),t})();const rrt=["footer"],art=["title"],ort=["createContent"],srt=["deleteContent"],lrt=["restoreContent"];function crt(t,e){1&t&&Ko(0)}function hrt(t,e){if(1&t){const t=Jo();Yo(0,"div",7),Yo(1,"button",8),es("click",(function(){return Ne(t),os().cancel()})),Bs(2),Cc(3,"translate"),jo(),Yo(4,"button",9),es("click",(function(){return Ne(t),os().confirm()})),Bs(5),Cc(6,"translate"),jo(),jo()}if(2&t){const t=os();sa(2),Vs(kc(3,4,"cancel")),sa(2),Uo("disabled",t.disabled())("nzLoading",t.loading),sa(1),Vs(kc(6,6,"confirm"))}}function drt(t,e){if(1&t&&(Yo(0,"div",19),Bs(1),jo()),2&t){const t=os(2);Uo("title",t.curVersion.name),sa(1),Ns(" ",t.curVersion.name," ")}}function urt(t,e){if(1&t){const t=Jo();Yo(0,"div",10),Ho(1,drt,2,2,"div",11),Yo(2,"div",12),Yo(3,"div",13),Bs(4),Cc(5,"translate"),Yo(6,"i",14),Bs(7,"*"),jo(),jo(),Yo(8,"div",15),Yo(9,"input",16),es("ngModelChange",(function(e){return Ne(t),os().versionName=e}))("ngModelChange",(function(e){return Ne(t),os().detectInput(e)})),jo(),jo(),jo(),Yo(10,"div",17),Yo(11,"div",13),Bs(12),Cc(13,"translate"),jo(),Yo(14,"div",15),Yo(15,"textarea",18),es("ngModelChange",(function(e){return Ne(t),os().description=e})),Cc(16,"translate"),jo(),jo(),jo(),jo()}if(2&t){const t=os();sa(1),Uo("ngIf",t.showEditTitle()),sa(3),Vs(kc(5,9,"version_name")),sa(4),Ps(t.required?"error_input":""),sa(1),Uo("placeholder",t.versionPlaceHodlder())("ngModel",t.versionName),sa(3),Vs(kc(13,11,"version_description")),sa(3),Uo("placeholder",kc(16,13,"version_500_limit"))("ngModel",t.description)}}function mrt(t,e){if(1&t){const t=Jo();Yo(0,"div",20),Yo(1,"div",21),gn(),Yo(2,"svg",22),Xo(3,"use",23),jo(),fn(),Yo(4,"div",24),Bs(5),Cc(6,"translate"),jo(),jo(),Yo(7,"div",25),Yo(8,"button",8),es("click",(function(){return Ne(t),os().cancel()})),Bs(9),Cc(10,"translate"),jo(),Yo(11,"button",26),es("click",(function(){return Ne(t),os().confirm()})),Bs(12),Cc(13,"translate"),jo(),jo(),jo()}if(2&t){const t=os();sa(5),Vs(kc(6,4,"version_delete_tip1")),sa(4),Vs(kc(10,6,"cancel")),sa(2),Uo("nzLoading",t.loading),sa(1),Vs(kc(13,8,"confirm"))}}function prt(t,e){if(1&t){const t=Jo();Yo(0,"button",30),es("click",(function(){return Ne(t),os(2).confirm()})),Bs(1),Cc(2,"translate"),jo()}2&t&&(Uo("nzLoading",os(2).restoring),sa(1),Vs(kc(2,2,"version_btn_restore")))}function grt(t,e){if(1&t){const t=Jo();Yo(0,"button",26),es("click",(function(){return Ne(t),os(2).create()})),Bs(1),Cc(2,"translate"),jo()}2&t&&(Uo("nzLoading",os(2).loading),sa(1),Vs(kc(2,2,"version_btn_create")))}function frt(t,e){if(1&t){const t=Jo();Yo(0,"button",8),es("click",(function(){return Ne(t),os(2).cancel()})),Bs(1),Cc(2,"translate"),jo()}2&t&&(sa(1),Vs(kc(2,1,"cancel")))}function brt(t,e){if(1&t){const t=Jo();Yo(0,"button",26),es("click",(function(){return Ne(t),os(2).confirm()})),Bs(1),Cc(2,"translate"),jo()}2&t&&(Uo("nzLoading",os(2).loading),sa(1),Vs(kc(2,2,"version_btn_restore1")))}function yrt(t,e){if(1&t&&(Yo(0,"div",20),Yo(1,"div",21),gn(),Yo(2,"svg",22),Xo(3,"use",23),jo(),fn(),Yo(4,"div",24),Bs(5),Cc(6,"translate"),jo(),jo(),Yo(7,"div",25),Ho(8,prt,3,4,"button",27),Ho(9,grt,3,4,"button",28),Ho(10,frt,3,3,"button",29),Ho(11,brt,3,4,"button",28),jo(),jo()),2&t){const t=os();sa(5),Vs(kc(6,5,t.isEdited?"version_restore_tip1":"version_restore_tip2")),sa(3),Uo("ngIf",t.isEdited),sa(1),Uo("ngIf",t.isEdited),sa(1),Uo("ngIf",!t.isEdited),sa(1),Uo("ngIf",!t.isEdited)}}function vrt(t,e){1&t&&Bs(0),2&t&&Ns(" ",os().getTitle(),"\n")}function wrt(t,e){if(1&t){const t=Jo();Yo(0,"div",7),Yo(1,"button",8),es("click",(function(){return Ne(t),os().cancel()})),Bs(2),Cc(3,"translate"),jo(),Yo(4,"button",26),es("click",(function(){return Ne(t),os().confirm()})),Bs(5),Cc(6,"translate"),jo(),jo()}if(2&t){const t=os();sa(2),Vs(kc(3,3,"cancel")),sa(2),Uo("nzLoading",t.loading),sa(1),Vs(kc(6,5,"confirm"))}}let xrt=(()=>{class t{constructor(t,e){this.modal=t,this.websocket=e,this.modalType=p4.CreateVersion,this.isVisible=!1,this.versionName="",this.description="",this.required=!1,this.loading=!1,this.restoring=!1,this.isEdited=!1}ngOnInit(){MF.instance().subscribeBroardcast(_F.VersionPanel,this),this.init();let t=U5._instance.mGs;!t||(this.isEdited=t.isInEditMode()&&t.mHasExecEditCmd)}ngAfterViewInit(){this.modal.updateConfig({nzTitle:this.title});let t=U5._instance.mGs;t&&t.setGlobalKeydownEvent(!1)}ngOnDestroy(){MF.instance().unsubscribeBroardcast(_F.VersionPanel,this)}notify(t,e){if("object"==typeof e&&t===_F.VersionPanel&&(e.type===p4.CreateVersion||e.type===p4.EditVersion||e.type===p4.Delete||e.type===p4.Restore)&&void 0!==e.data){this.loading=!1,this.restoring=!1;let t=U5._instance.mGs;t&&t.setDuringVersionOper(!1),this.cancel(e.data)}}init(){this.modalType===p4.EditVersion&&(this.versionName=this.curVersion.name,this.description=this.curVersion.description)}showEditTitle(){return this.modalType===p4.EditVersion}getTitle(){switch(this.modalType){case p4.CreateVersion:return qF.mLanguagePackage.version_btn_create;case p4.EditVersion:return qF.mLanguagePackage.version_modal_edit;case p4.Delete:case p4.Restore:return qF.mLanguagePackage.version_tip;default:return""}}getContent(){switch(this.modalType){case p4.CreateVersion:case p4.EditVersion:return this.createContent;case p4.Delete:return this.deleteContent;case p4.Restore:return this.restoreContent;default:return this.createContent}}showFooter(){return this.modalType===p4.EditVersion||this.modalType===p4.CreateVersion}confirm(){var t=this;return jR((function*(){if(t.modalType!==p4.CreateVersion&&t.modalType!==p4.EditVersion||""!==t.versionName.trim())switch(t.modalType===p4.Restore?t.restoring=!0:t.loading=!0,t.modalType){case p4.CreateVersion:{let e=U5._instance.mGs;if(!e)return;if(e.mHasExecEditCmd){let n=e.mWSMessageSubjects.subscribe((e=>{e.id===e7.SaveDoc&&(0===e.code&&MF.instance().broardcast(_F.GetFileData,{type:p4.CreateVersion,data:{docId:t.curDoc.id,name:t.versionName,description:t.description}}),n&&(n.unsubscribe(),n=null))}));e.saveDoc()}else MF.instance().broardcast(_F.GetFileData,{type:p4.CreateVersion,data:{docId:t.curDoc.id,name:t.versionName,description:t.description}});break}case p4.EditVersion:MF.instance().broardcast(_F.GetFileData,{type:p4.EditVersion,data:{docId:t.curVersion.docId,versionId:t.curVersion.versionId,name:t.versionName,description:t.description}});break;case p4.Delete:MF.instance().broardcast(_F.GetFileData,{type:p4.Delete,data:{docId:t.curVersion.docId,versionId:t.curVersion.versionId}});break;case p4.Restore:{let e=U5._instance.mGs;if(!e)return;if(e.mDocEditMode!==EW.Edit)return void MF.instance().broardcast(_F.GetFileData,{type:p4.Restore,data:{docId:t.curVersion.docId,versionId:t.curVersion.versionId}});let n=e.mWSMessageSubjects.subscribe((e=>{e.id===e7.SaveDoc&&(0===e.code&&(t.websocket.closeSocket(),MF.instance().broardcast(_F.GetFileData,{type:p4.Restore,data:{docId:t.curVersion.docId,versionId:t.curVersion.versionId}})),n&&(n.unsubscribe(),n=null))}));e&&e.setDuringVersionOper(!0),e.saveDoc()}}else t.required=!0}))()}create(){this.cancel(p4.Restore)}cancel(t){this.modal.destroy(t)}detectInput(t){""!==t.trim()&&(this.required=!1)}versionPlaceHodlder(){return this.required?qF.mLanguagePackage.version_not_null:qF.mLanguagePackage.version_enter}disabled(){return this.modalType===p4.EditVersion&&this.versionName===this.curVersion.name&&this.description===this.curVersion.description}}return t["ɵfac"]=function(e){return new(e||t)(Zo(OT),Zo(A5))},t["ɵcmp"]=qt({type:t,selectors:[["app-version_inner_create"]],viewQuery:function(t,e){if(1&t&&(Nc(rrt,5),Nc(art,5),Nc(ort,5),Nc(srt,5),Nc(lrt,5)),2&t){let t;Vc(t=Gc())&&(e.footer=t.first),Vc(t=Gc())&&(e.title=t.first),Vc(t=Gc())&&(e.createContent=t.first),Vc(t=Gc())&&(e.deleteContent=t.first),Vc(t=Gc())&&(e.restoreContent=t.first)}},inputs:{curDoc:"curDoc",modalType:"modalType",curVersion:"curVersion"},decls:12,vars:2,consts:[[4,"ngTemplateOutlet"],["class","footer",4,"ngIf"],["createContent",""],["deleteContent",""],["restoreContent",""],["title",""],["footer",""],[1,"footer"],["nz-button","","nzType","default","appStopPropagation","",3,"click"],["nz-button","","nzType","primary","appStopPropagation","",3,"disabled","nzLoading","click"],["appStopPropagation","",1,"container"],["class","editTitle",3,"title",4,"ngIf"],["nz-row","",1,"versionName"],["nz-col","","nzSpan","4",1,"name"],[1,"required"],["nz-col","","nzSpan","19","nzOffset","1"],["type","text",1,"input",3,"placeholder","ngModel","ngModelChange"],["nz-row","",1,"description"],["maxlength","500",1,"descriptionInput","input",3,"placeholder","ngModel","ngModelChange"],[1,"editTitle",3,"title"],[1,"deleteContainer"],[1,"deleteContent"],["aria-hidden","true",1,"icon","svg-hover"],[0,"xlink","href","#icon-Detail"],[1,"tip"],[1,"deleteFooter"],["nz-button","","nzType","primary","appStopPropagation","",3,"nzLoading","click"],["nz-button","","nzType","default","appStopPropagation","",3,"nzLoading","click",4,"ngIf"],["nz-button","","nzType","primary","appStopPropagation","",3,"nzLoading","click",4,"ngIf"],["nz-button","","nzType","default","appStopPropagation","",3,"click",4,"ngIf"],["nz-button","","nzType","default","appStopPropagation","",3,"nzLoading","click"]],template:function(t,e){1&t&&(Ho(0,crt,1,0,"ng-container",0),Ho(1,hrt,7,8,"div",1),Ho(2,urt,17,15,"ng-template",null,2,Yc),Ho(4,mrt,14,10,"ng-template",null,3,Yc),Ho(6,yrt,12,7,"ng-template",null,4,Yc),Ho(8,vrt,1,1,"ng-template",null,5,Yc),Ho(10,wrt,7,7,"ng-template",null,6,Yc)),2&t&&(Uo("ngTemplateOutlet",e.getContent()),sa(1),Uo("ngIf",e.showFooter()))},directives:[tu,Yd,bM,uM,sM,i7,xA,CA,np,xp,Np,Zp],pipes:[H3],styles:[".container[_ngcontent-%COMP%]{width:531px;height:230px;background-color:var(--editor_main_background)}.container[_ngcontent-%COMP%] .editTitle[_ngcontent-%COMP%]{height:30px;line-height:30px;padding-left:24px;padding-right:10px;font-size:14px;font-family:sans-serif;color:var(--main_font);border-bottom:1px solid var(--version_border);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.container[_ngcontent-%COMP%] .versionName[_ngcontent-%COMP%]{padding:25px 25px 0}.container[_ngcontent-%COMP%] .versionName[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{height:28px;padding-left:8px}.container[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{padding:0 25px;margin-top:20px}.container[_ngcontent-%COMP%] .description[_ngcontent-%COMP%] .descriptionInput[_ngcontent-%COMP%]{height:110px;overflow-y:auto;padding:4px 8px}.container[_ngcontent-%COMP%] .description[_ngcontent-%COMP%] .descriptionInput[_ngcontent-%COMP%]:empty:before{content:attr(placeholder)}.container[_ngcontent-%COMP%] .description[_ngcontent-%COMP%] .descriptionInput[_ngcontent-%COMP%]::-webkit-scrollbar{width:10px;height:10px}.container[_ngcontent-%COMP%] .description[_ngcontent-%COMP%] .descriptionInput[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:10px;background-color:var(--editor_main_scrollBar)}.container[_ngcontent-%COMP%] .description[_ngcontent-%COMP%] .descriptionInput[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:var(--scrollbar_track)}.container[_ngcontent-%COMP%] .description[_ngcontent-%COMP%] .descriptionInput[_ngcontent-%COMP%]::-webkit-scrollbar-corner{width:10px;height:10px;background-color:var(--editor_main_background)}.container[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{font-size:12px;color:var(--main_font);text-align:right}.container[_ngcontent-%COMP%] .name[_ngcontent-%COMP%] .required[_ngcontent-%COMP%]{color:red}.container[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]{width:100%;border:1px solid var(--version_border);outline:none;font-size:12px;border-radius:4px;background-color:var(--editor_main_background);color:var(--main_font)}.container[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]:hover, .container[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]:focus{border-color:#40a9ff}.container[_ngcontent-%COMP%] [_ngcontent-%COMP%]::-webkit-input-placeholder{font-size:12px;color:#999}.container[_ngcontent-%COMP%] .error_input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border-color:#ff4d4f}.container[_ngcontent-%COMP%] .error_input[_ngcontent-%COMP%] [_ngcontent-%COMP%]::-webkit-input-placeholder{font-size:12px;color:#ff4d4f}.deleteContainer[_ngcontent-%COMP%]{width:540px;background-color:var(--editor_main_background);padding:30px}.deleteContainer[_ngcontent-%COMP%] .deleteContent[_ngcontent-%COMP%]{display:flex;color:var(--main_font);font-size:14px}.deleteContainer[_ngcontent-%COMP%] .deleteContent[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{font-size:32px;transform:rotate(180deg);margin-right:10px}.deleteContainer[_ngcontent-%COMP%] .deleteContent[_ngcontent-%COMP%] .tip[_ngcontent-%COMP%]{width:438px}.deleteContainer[_ngcontent-%COMP%] .deleteFooter[_ngcontent-%COMP%]{margin-top:25px;display:flex;justify-content:flex-end}.deleteContainer[_ngcontent-%COMP%] .deleteFooter[_ngcontent-%COMP%] [_ngcontent-%COMP%]:first-child{margin-right:10px}.outter_deleteContainer[_ngcontent-%COMP%]{background-color:transparent}.outter_deleteContainer[_ngcontent-%COMP%] .deleteContent[_ngcontent-%COMP%]{color:#555}.outter_deleteContainer[_ngcontent-%COMP%] .deleteContent[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{color:#faad14}.footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;border-top:1px solid var(--version_border_light);padding:16px;background-color:var(--editor_main_background)}.footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:15px}.outter_container[_ngcontent-%COMP%]{background-color:transparent}.outter_container[_ngcontent-%COMP%] .editTitle[_ngcontent-%COMP%]{color:#7f7f7f;border-bottom:1px solid #eee}.outter_container[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{color:#555}.outter_container[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #d7d7d7;color:#555}.outter_footer[_ngcontent-%COMP%]{border-top:1px solid #eee;background-color:transparent} .ant-modal-close-x{height:0px!important;line-height:35px} .ant-modal-header{padding:8px 24px}"]}),t})();const Crt=["container"];function krt(t,e){1&t&&Xo(0,"div",22)}function Srt(t,e){1&t&&Xo(0,"div",23)}function Prt(t,e){1&t&&(gn(),Xo(0,"use",29))}function _rt(t,e){1&t&&(gn(),Xo(0,"use",30))}function Mrt(t,e){1&t&&(gn(),Xo(0,"use",31))}function Drt(t,e){if(1&t&&(Yo(0,"div",24),gn(),Yo(1,"svg",25),Ho(2,Prt,1,0,"use",26),Ho(3,_rt,1,0,"use",27),Ho(4,Mrt,1,0,"use",28),jo(),jo()),2&t){const t=os();sa(2),Uo("ngIf",t.data.isCurrent),sa(1),Uo("ngIf",!t.data.isCurrent&&!t.data.isOrigin),sa(1),Uo("ngIf",t.data.isOrigin)}}function Ert(t,e){if(1&t){const t=Jo();Yo(0,"li",33),es("click",(function(){Ne(t);const e=os().$implicit;return os().operation(e.type)})),Bs(1),Cc(2,"translate"),jo()}if(2&t){const t=os().$implicit;sa(1),Ns(" ",kc(2,1,t.translate)," ")}}function Ort(t,e){if(1&t&&(Yo(0,"div"),Ho(1,Ert,3,3,"li",32),jo()),2&t){const t=e.$implicit,n=os();sa(1),Uo("ngIf",n.show(t.type))}}const Art=function(t){return{selected:t}};let Trt=(()=>{class t{constructor(t,e,n){this.router=t,this.modal=e,this.message=n,this.mWidth=300,this.mLeft=300,this.isHover=!1,this.versionsLen=0,this.permissions=[],this.closeModal=new Dc,this.versionSwitch=new Dc,this.mCurVersionId=0,this.isSearching=!1,this.mOperations=[],this.mShowOperation=!1,this.isSelected=!1,this.mClick=!1}ngOnInit(){MF.instance().subscribeBroardcast(_F.VersionPanel,this),this.setOperations()}ngAfterViewInit(){let t=document.createElement("div");t.innerText=qF.mLanguagePackage.version_description+": "+this.data.description,t.style.maxWidth="200px",t.style.wordBreak="break-all",t.style.position="absolute",t.style.backgroundColor="#f2f2f2",t.style.padding="10px",t.style.color="#333",this.container.nativeElement.addEventListener("mouseenter",(()=>{let{top:e}=this.container.nativeElement.getBoundingClientRect(),n=document.body.clientHeight;t.style.top=e+"px",t.style.left=this.mWidth+this.mLeft+"px",this.data.description&&document.body.appendChild(t);let{height:i}=t.getBoundingClientRect();e+i>n&&(t.style.top=n-i+"px")})),this.container.nativeElement.addEventListener("mouseleave",(()=>{this.data.description&&document.body.removeChild(t)}))}ngOnDestroy(){MF.instance().unsubscribeBroardcast(_F.VersionPanel,this)}notify(t,e){if("object"==typeof e&&t===_F.VersionPanel)if(e.type===p4.Switch&&void 0!==e.data)e.data===this.data.versionId?(MF.instance().broardcast(_F.VersionPanel,{type:p4.SwitchEnd,data:{isCurrent:this.data.isCurrent,versionData:{name:this.data.name,operateTime:this.formatDate(this.data.operateTime),operate:this.data.mark}}}),this.versionSwitch.emit(this.data.versionId),this.isSelected=!0):this.isSelected=!1;else if(e.type===p4.detailRes&&void 0!==e.data){let{versionId:t,data:n}=e.data;this.data.versionId===t&&(this.data=Object.assign(Object.assign({},this.data),n))}}setOperations(){let t=[];t=this.data.isCurrent?g4:f4,this.mOperations=b4.filter((e=>t.includes(e.type)))}operation(t){switch(t){case p4.Open:this.closeModal.emit({type:t}),window.location.href="/service/editor?projectId="+this.curDoc.projectId+"&id="+this.curDoc.id+"&versionId="+this.data.versionId;break;case p4.Compare:break;case p4.Restore:case p4.EditVersion:case p4.CreateVersion:this.createModal(t);break;case p4.Delete:if(this.isSelected)return void this.message.info(qF.mLanguagePackage.version_delete_tip);this.createModal(t)}this.mShowOperation=!1}formatDate(t){return xF(new Date(t),"yyyy/MM/dd HH:mm:ss")}createModal(t){if(t===p4.CreateVersion){let e=U5._instance.mGs;if(!e)return;if(e.mDocEditMode!==EW.Edit)return void this.message.error(qF.mLanguagePackage.version_create_condition);e.setDuringVersionOper(!0),this.modal.create({nzContent:xrt,nzFooter:null,nzComponentParams:{modalType:t,curVersion:this.data,curDoc:{id:U5._instance.mGs&&U5._instance.mGs.mDocId}}}).afterClose.subscribe((n=>{e&&(e.setDuringVersionOper(!1),e.setGlobalKeydownEvent(!0)),n===p4.Restore?this.createModal(p4.CreateVersion):this.closeModal.emit({type:t,res:n})}))}else this.modal.create({nzContent:xrt,nzFooter:null,nzComponentParams:{modalType:t,curVersion:this.data,curDoc:{id:U5._instance.mGs&&U5._instance.mGs.mDocId}}}).afterClose.subscribe((e=>{let n=U5._instance.mGs;n&&n.setGlobalKeydownEvent(!0),e===p4.Restore?this.createModal(p4.CreateVersion):this.closeModal.emit({type:t,res:e})}))}switchVersion(){if(this.mClick||this.isSelected||this.mCurVersionId===this.data.versionId)return;this.mClick=!0;let t=setTimeout((()=>{MF.instance().broardcast(_F.UpdatePage,{type:"loading",data:{isLoading:!0,loadingMessage:qF.mLanguagePackage.version_loading_switch}}),MF.instance().broardcast(_F.GetFileData,{type:p4.Switch,data:{docId:this.data.docId,versionId:this.data.versionId,isCurrent:this.data.isCurrent}}),this.mClick=!1,clearTimeout(t)}),250)}showHover(){return this.isHover&&this.data.description}show(t){if(0===this.permissions.length)return!1;if(2===this.versionsLen&&t===p4.Delete)return this.permissions=this.permissions.filter((t=>t.type!==p4.Delete)),!1;let e=this.permissions.find((e=>e.type===t));return!!e&&e.isShow}checkOpers(){this.permissions.filter((t=>this.mOperations.map((t=>t.type)).includes(t.type))).some((t=>t.isShow))||this.message.info(qF.mLanguagePackage.version_insufficient_permissions)}}return t["ɵfac"]=function(e){return new(e||t)(Zo(kO),Zo(AT),Zo(HA))},t["ɵcmp"]=qt({type:t,selectors:[["app-versionInnerItem"]],viewQuery:function(t,e){if(1&t&&Nc(Crt,5),2&t){let t;Vc(t=Gc())&&(e.container=t.first)}},inputs:{mWidth:"mWidth",mLeft:"mLeft",curDoc:"curDoc",data:"data",isHover:"isHover",versionsLen:"versionsLen",permissions:"permissions",mCurVersionId:"mCurVersionId",isSearching:"isSearching"},outputs:{closeModal:"closeModal",versionSwitch:"versionSwitch"},decls:27,vars:14,consts:[[1,"container",3,"ngClass"],["container",""],[1,"branch"],["class","up line",4,"ngIf"],["class","down line",4,"ngIf"],["class","icon",4,"ngIf"],[1,"content",3,"click"],[1,"left"],[1,"versionName",3,"title"],[1,"controlledText"],[1,"mark","controlledText"],[1,"right"],[1,"profile"],["alt","avatar",1,"avator",3,"src"],[1,"name","controlledText","isShow"],[1,"versionTime","isShow"],["appStopPropagation","","nz-dropdown","","nzPlacement","bottomLeft",1,"operation",3,"nzDropdownMenu"],["aria-hidden","true",1,"icon",3,"click"],[0,"xlink","href","#icon-gengduocaozuo"],["navMenu","nzDropdownMenu"],[1,"operList"],[4,"ngFor","ngForOf"],[1,"up","line"],[1,"down","line"],[1,"icon"],["aria-hidden","true",1,"icon","svg-hover"],[0,"xlink","href","#icon-a-ziyuan4",4,"ngIf"],[0,"xlink","href","#icon-lishibanbenjiedian",4,"ngIf"],[0,"xlink","href","#icon-qidian",4,"ngIf"],[0,"xlink","href","#icon-a-ziyuan4"],[0,"xlink","href","#icon-lishibanbenjiedian"],[0,"xlink","href","#icon-qidian"],[3,"click",4,"ngIf"],[3,"click"]],template:function(t,e){if(1&t&&(Yo(0,"div",0,1),Yo(2,"div",2),Ho(3,krt,1,0,"div",3),Ho(4,Srt,1,0,"div",4),Ho(5,Drt,5,3,"div",5),jo(),Yo(6,"div",6),es("click",(function(){return e.switchVersion()})),Yo(7,"div",7),Yo(8,"div",8),Yo(9,"span",9),Bs(10),jo(),jo(),Yo(11,"div",10),Bs(12),jo(),jo(),Yo(13,"div",11),Yo(14,"div",12),Xo(15,"img",13),Yo(16,"div",14),Bs(17),jo(),jo(),Yo(18,"div",15),Bs(19),jo(),jo(),jo(),Yo(20,"div",16),gn(),Yo(21,"svg",17),es("click",(function(){return e.checkOpers()})),Xo(22,"use",18),jo(),jo(),jo(),fn(),Yo(23,"nz-dropdown-menu",null,19),Yo(25,"ul",20),Ho(26,Ort,2,1,"div",21),jo(),jo()),2&t){const t=Go(24);Uo("ngClass",fc(12,Art,e.isSelected)),sa(3),Uo("ngIf",!e.isSearching&&!e.data.isCurrent),sa(1),Uo("ngIf",!e.isSearching&&!e.data.isOrigin),sa(1),Uo("ngIf",!e.isSearching),sa(3),Uo("title",e.data.name),sa(2),Vs(e.data.name),sa(2),Vs(e.data.mark),sa(3),Uo("src",e.data.avatarUrl||"/assets/image/default_avatar.png",Hr),sa(2),Ns(" ",e.data.operator," "),sa(2),Ns(" ",e.formatDate(e.data.operateTime)," "),sa(1),Uo("nzDropdownMenu",t),sa(6),Uo("ngForOf",e.mOperations)}},directives:[Gd,Yd,i7,gA,bA,Ud],pipes:[H3],styles:[".container[_ngcontent-%COMP%]{position:relative;width:100%;min-width:300px;height:100%;display:flex}.container[_ngcontent-%COMP%]:hover{background-color:var(--editor_command_panel_hover);color:var(--main_font)}.container[_ngcontent-%COMP%]:hover .operation[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{visibility:visible}.container[_ngcontent-%COMP%]:hover .right{color:var(--main_font)}.container[_ngcontent-%COMP%]:hover .mark{color:var(--main_font)}.container[_ngcontent-%COMP%] .branch[_ngcontent-%COMP%]{position:relative;min-width:30px}.container[_ngcontent-%COMP%] .branch[_ngcontent-%COMP%] .line[_ngcontent-%COMP%]{position:absolute;left:50%;transform:translate(-50%);width:0;border-left:2px solid #1ba5ea}.container[_ngcontent-%COMP%] .branch[_ngcontent-%COMP%] .up[_ngcontent-%COMP%]{top:0;height:40%}.container[_ngcontent-%COMP%] .branch[_ngcontent-%COMP%] .down[_ngcontent-%COMP%]{top:40%;height:60%}.container[_ngcontent-%COMP%] .branch[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{position:absolute;top:40%;left:50%;transform:translate(-50%,-50%);color:#1ba5ea}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{flex:1;display:flex;justify-content:space-between;color:var(--main_font);font-size:12px;margin-right:30px}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{flex:1;min-width:155px;display:flex;flex-direction:column;justify-content:center}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .versionName[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{max-width:12em;display:inline-block;background-color:#fff;padding:0 8px;border-radius:6px;border:1px solid #1ba5ea;color:#1ba5ea}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .mark[_ngcontent-%COMP%]{width:10em;margin-left:8px}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{flex:1;min-width:120px;padding-top:5px}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .profile[_ngcontent-%COMP%]{display:flex}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .profile[_ngcontent-%COMP%] .avator[_ngcontent-%COMP%]{margin-right:5px}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .profile[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{width:6em}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .versionTime[_ngcontent-%COMP%]{max-width:10em}.container[_ngcontent-%COMP%] .avator[_ngcontent-%COMP%]{width:24px;height:24px;border-radius:50%}.container[_ngcontent-%COMP%] .operation[_ngcontent-%COMP%]{position:absolute;top:0;right:0;width:30px;color:var(--var(--editor_main_selected_icon));padding-top:5px}.container[_ngcontent-%COMP%] .operation[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{font-size:22px;visibility:hidden}.container[_ngcontent-%COMP%] .paddingTop10px[_ngcontent-%COMP%]{padding-top:10px}.selected[_ngcontent-%COMP%]{background-color:var(--version_selected)!important;color:var(--main_white)!important}.selected[_ngcontent-%COMP%] .right{color:var(--main_white)}.selected[_ngcontent-%COMP%] .mark{color:var(--main_white)}.operList[_ngcontent-%COMP%]{background-color:#fff;margin:0;padding:0}.operList[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style:none;color:#555555fe;cursor:pointer;padding:5px 10px;font-size:12px;font-family:sans-serif}.operList[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{background-color:#078bed;color:#fff}.description[_ngcontent-%COMP%]{max-width:200px;padding:10px;word-break:break-all}.container[_ngcontent-%COMP%] .ant-avatar.ant-avatar-icon[_ngcontent-%COMP%]{width:20px;height:20px}.controlledText[_ngcontent-%COMP%]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}"]}),t})();const Irt=["container"];function Lrt(t,e){if(1&t){const t=Jo();gn(),Yo(0,"svg",10),es("click",(function(){return Ne(t),os().createVersion()})),Xo(1,"use",11),jo()}}function zrt(t,e){if(1&t){const t=Jo();Yo(0,"div",15),es("click",(function(){return Ne(t),os(2).clear()})),gn(),Yo(1,"svg",16),Xo(2,"use",17),jo(),jo()}}function Rrt(t,e){if(1&t){const t=Jo();Ho(0,zrt,3,0,"div",12),gn(),Yo(1,"svg",13),es("click",(function(){return Ne(t),os().search()})),Xo(2,"use",14),jo()}2&t&&Uo("ngIf",os().mSearchValue)}function Frt(t,e){if(1&t){const t=Jo();Yo(0,"li",18),es("mouseenter",(function(){const e=Ne(t).index;return os().hoverChange(e)})),Yo(1,"app-versionInnerItem",19),es("closeModal",(function(e){return Ne(t),os().closeModal(e)}))("versionSwitch",(function(e){return Ne(t),os().mCurVersionId=e})),jo(),jo()}if(2&t){const t=e.$implicit,n=e.index,i=os();Ps(i.mCurVersionId===t.versionId?"selected":""),sa(1),Uo("data",t)("isHover",i.hoverIndex===n)("versionsLen",i.copiedList.length)("permissions",i.permissions)("mCurVersionId",i.mCurVersionId)("mWidth",i.mWidth)("mLeft",i.mLeft)("isSearching",i.isSearching)}}let Brt=(()=>{class t{constructor(t,e,n){this.modal=t,this.changeDetectorRef=e,this.message=n,this.versionList=[],this.copiedList=[],this.hoverIndex=-1,this.mCurVersionId=0,this.mInit=!1,this.permissions=[],this.mDuringCreate=!1,this.mWidth=0,this.mLeft=0,this.mSearchValue="",this.isSearching=!1}ngOnInit(){MF.instance().subscribeBroardcast(_F.VersionPanel,this),this.getVersionList(!0)}ngAfterViewInit(){new ResizeObserver((t=>{for(const e of t){let{left:t}=this.container.nativeElement.getBoundingClientRect();this.mWidth=e.contentRect.width,this.mLeft=t}})).observe(this.container.nativeElement)}ngOnDestroy(){MF.instance().unsubscribeBroardcast(_F.VersionPanel,this)}notify(t,e){if("object"==typeof e&&t===_F.VersionPanel)if("versionPanel"===e.type&&e.data){if(this.versionList=e.data,this.copiedList=e.data,0===this.versionList.length)return void MF.instance().broardcast(_F.VersionPanel,{type:p4.versionEmpty,data:{}});if(this.mInit)this.mCurVersionId=this.versionList[0].versionId,this.mInit=!1;else{let t=this.versionList.find((t=>t.versionId===this.mCurVersionId));t&&MF.instance().broardcast(_F.VersionPanel,{type:p4.EditEnd,data:{isCurrent:t.isCurrent,versionData:{name:t.name,operateTime:xF(new Date(t.operateTime),"yyyy/MM/dd HH:mm:ss"),operate:t.mark}}})}this.changeDetectorRef.detectChanges()}else e.type===p4.SetPermissions&&(e.data.verionShow||MF.instance().broardcast(_F.VersionPanel,{type:p4.versionEmpty,data:{}}),this.permissions=e.data.versionOpers,this.changeDetectorRef.detectChanges())}getVersionList(t){this.mInit=t,MF.instance().broardcast(_F.GetFileData,{type:"loadVersionData",data:{isInit:t}})}hoverChange(t,e){this.hoverIndex=e?-1:t}showCreate(){return!!(this.permissions.find((t=>t.type===p4.CreateVersion))||{isShow:!1}).isShow}createVersion(){if(this.mDuringCreate)return void this.message.info("已处于创建状态,请勿重复点击");let t=U5._instance.mGs;t&&(t.mDocEditMode===EW.Edit?(this.mDuringCreate=!0,t.setDuringVersionOper(!0),this.modal.create({nzContent:xrt,nzFooter:null,nzComponentParams:{modalType:p4.CreateVersion,curDoc:{id:U5._instance.mGs&&U5._instance.mGs.mDocId}}}).afterClose.subscribe((e=>{t&&(t.setDuringVersionOper(!1),t.setGlobalKeydownEvent(!0)),e&&this.getVersionList(),this.mDuringCreate=!1}))):this.message.error(qF.mLanguagePackage.version_create_condition))}closeModal(t){if((t.type===p4.EditVersion||t.type===p4.CreateVersion||t.type===p4.Delete)&&t.res&&this.getVersionList(),t.type===p4.Restore&&t.res){let t=this.versionList[0];MF.instance().broardcast(_F.GetFileData,{type:p4.Switch,data:{docId:t.docId,versionId:t.versionId,isCurrent:!0}}),MF.instance().broardcast(_F.VersionPanel,{type:p4.detailReq,data:{versionId:t.versionId,docId:t.docId}})}}search(){this.isSearching=!0,this.versionList=this.copiedList.filter((t=>-1!==t.name.indexOf(this.mSearchValue)||-1!==t.operator.indexOf(this.mSearchValue)))}clear(){this.isSearching=!1,this.versionList=this.copiedList,this.mSearchValue=""}}return t["ɵfac"]=function(e){return new(e||t)(Zo(AT),Zo(Gl),Zo(HA))},t["ɵcmp"]=qt({type:t,selectors:[["app-version"]],viewQuery:function(t,e){if(1&t&&Nc(Irt,5),2&t){let t;Vc(t=Gc())&&(e.container=t.first)}},decls:13,vars:7,consts:[[1,"container"],["container",""],[1,"create"],["class","icon svg-hover","aria-hidden","true",3,"click",4,"ngIf"],[1,"search-box"],[3,"nzSuffix"],["id","searchInput","type","text","nz-input","",3,"placeholder","ngModel","ngModelChange","keyup.enter"],["suffixIconSearch",""],[1,"version"],["class","version_item",3,"class","mouseenter",4,"ngFor","ngForOf"],["aria-hidden","true",1,"icon","svg-hover",3,"click"],[0,"xlink","href","#icon-chuangjianbanben"],["class","cancel",3,"click",4,"ngIf"],["aria-hidden","true",1,"icon","icon-hover",2,"cursor","pointer",3,"click"],[0,"xlink","href","#icon-Search"],[1,"cancel",3,"click"],["aria-hidden","true",1,"icon",2,"cursor","pointer"],[0,"xlink","href","#icon-Cancel"],[1,"version_item",3,"mouseenter"],[3,"data","isHover","versionsLen","permissions","mCurVersionId","mWidth","mLeft","isSearching","closeModal","versionSwitch"]],template:function(t,e){if(1&t&&(Yo(0,"div",0,1),Yo(2,"div",2),Yo(3,"span"),Ho(4,Lrt,2,0,"svg",3),jo(),Yo(5,"div",4),Yo(6,"nz-input-group",5),Yo(7,"input",6),es("ngModelChange",(function(t){return e.mSearchValue=t}))("keyup.enter",(function(){return e.search()})),Cc(8,"translate"),jo(),jo(),Ho(9,Rrt,3,1,"ng-template",null,7,Yc),jo(),jo(),Yo(11,"ul",8),Ho(12,Frt,2,10,"li",9),jo(),jo()),2&t){const t=Go(10);sa(4),Uo("ngIf",e.showCreate()),sa(2),Uo("nzSuffix",t),sa(1),hs("placeholder",kc(8,5,"searchInput")),Uo("ngModel",e.mSearchValue),sa(5),Uo("ngForOf",e.versionList)}},directives:[Yd,sM,c_,l_,s_,np,xp,Np,Ud,Trt],pipes:[H3],styles:[".container[_ngcontent-%COMP%]{height:100%;overflow:auto;border:1px solid var(--editor_main_border);border-top:0}.create[_ngcontent-%COMP%]{display:flex;justify-content:space-between;height:35px;line-height:26px;padding:5px 10px;color:var(--main_font)}.create[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{font-size:18px;cursor:pointer}.version[_ngcontent-%COMP%]{width:100%;height:calc(100% - 35px);overflow:auto;scroll-behavior:smooth;margin:0;padding:10px 5px}.version[_ngcontent-%COMP%]::-webkit-scrollbar{width:10px;height:10px}.version[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:10px;background-color:var(--editor_main_scrollBar)}.version[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:var(--scrollbar_track)}.version[_ngcontent-%COMP%]::-webkit-scrollbar-corner{width:10px;height:10px;background-color:var(--editor_main_background)}.version[_ngcontent-%COMP%] .version_item[_ngcontent-%COMP%]{height:60px;cursor:pointer}.version[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%]{background-color:var(--version_selected)!important;color:var(--main_white)!important}.version[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%] .right{color:var(--main_white)}.version[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%] .container{background-color:var(--version_selected)!important;color:var(--main_white)!important}.version[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%] .mark{color:var(--main_white)!important}.search-box[_ngcontent-%COMP%]{width:200px;height:28px;color:#fff;float:right;border-radius:4px;margin-left:20px}.search-box[_ngcontent-%COMP%] .ant-input-affix-wrapper[_ngcontent-%COMP%]{height:28px;border:1px solid var(--editor_command_panel_border);background-color:var(--editor_input_background)}.search-box[_ngcontent-%COMP%] .ant-input-affix-wrapper[_ngcontent-%COMP%] > input.ant-input[_ngcontent-%COMP%]{color:var(--main_font);background-color:var(--editor_input_background);border:none}.search-box[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{font-size:20px;color:var(--main_font)}.search-box[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]:hover{color:#078bde}.search-box[_ngcontent-%COMP%] .cancel[_ngcontent-%COMP%]{height:100%;padding:0 5px;margin-right:8px}.search-box[_ngcontent-%COMP%] .cancel[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{font-size:16px;color:#fff;border-radius:50%}"]}),t})();function Vrt(t,e){if(1&t){const t=Jo();gn(),fn(),Yo(0,"div",12),es("click",(function(){const e=Ne(t).$implicit;return os(2).move(e.id)})),Yo(1,"div",13),Bs(2),Cc(3,"translate"),jo(),jo()}if(2&t){const t=e.index,n=os(2);sa(2),Hs(" ",kc(3,2,"sign_locate")," ",n.name+t," ")}}function Nrt(t,e){if(1&t){const t=Jo();gn(),fn(),Yo(0,"div",11),Yo(1,"div",12),es("click",(function(){return Ne(t),os().deleteSign()})),Yo(2,"div",13),gn(),Yo(3,"svg",4),Xo(4,"use",14),jo(),Bs(5),Cc(6,"translate"),jo(),jo(),Ho(7,Vrt,4,4,"div",15),jo()}if(2&t){const t=os();sa(5),Ns(" ",kc(6,2,"delete")," "),sa(2),Uo("ngForOf",t.position)}}let Hrt=(()=>{class t{constructor(t,e,n,i){this.renderer=t,this.mDb=e,this.message=n,this.changeDetectorRef=i,this.mGs=null,this.mShowBtn=!1,this.mCrrentSrc="",this.name="",this.time=0,this.signId=0,this.position=[]}ngOnInit(){MF.instance().subscribeBroardcast(_F.SignPanel,this)}ngOnDestroy(){MF.instance().unsubscribeBroardcast(_F.SignPanel,this)}notify(t,e){t===_F.SignPanel&&"deleteSign"===e.type&&e.data&&U5._instance&&U5._instance.mGs&&(MF.instance().broardcast(_F.GetFileData,{type:"getSignHistory",data:""}),this.position.forEach((t=>{this.mGs.deleteSign(t.id)})))}showDeleteBtn(){this.mShowBtn=!this.mShowBtn,r.log(this.mShowBtn),this.changeDetectorRef.detectChanges()}getGs(){if(!this.mGs){let t=n7.instance().mGs;if(!t)return!1;this.mGs=t}return!0}move(t){if(this.getGs()){let e=Number(t.split("-").pop()),n=this.mDb.getDB();if(n){let i=n.getAllLayoutInfo(),r=Number((i.find((t=>t.mIsModelSpace))||{}).handleId),a=n.getCurLayout(),o=jF.instance().getCurView();if(!o||!a)return;if(e===r){if(a.mIsModelSpace||!a.mIsModelSpace&&!o.isOverallView())return void this.mGs.locateSign(t)}else if(!a.mIsModelSpace&&o.isOverallView())return void this.mGs.locateSign(t);let s=(i.find((t=>Number(t.handleId)===e))||{}).mLayoutName;this.message.info(s?"该签章图不在当前视口中,请切换到"+s:"该签章图handle与layouts的hanlde不符")}}}deleteSign(){this.getGs()&&MF.instance().broardcast(_F.GetFileData,{type:"deleteSign",data:this.signId})}dateFormat(t){return xF(new Date(t))}}return t["ɵfac"]=function(e){return new(e||t)(Zo(wl),Zo(sB),Zo(HA),Zo(Gl))},t["ɵcmp"]=qt({type:t,selectors:[["app-sign-history-item"]],inputs:{mCrrentSrc:"mCrrentSrc",name:"name",time:"time",signId:"signId",position:"position"},decls:14,vars:4,consts:[[1,"container"],[1,"row1"],[1,"name"],[1,"more",3,"click"],["aria-hidden","true",1,"icon"],[0,"xlink","href","#icon-More"],["class","sign-btn-div",4,"ngIf"],[1,"row2"],[1,"image"],[3,"src"],[1,"time"],[1,"sign-btn-div"],[1,"sign-btn-box",3,"click"],[1,"sign-btn"],[0,"xlink","href","#icon-FileDelete"],["class","sign-btn-box",3,"click",4,"ngFor","ngForOf"]],template:function(t,e){1&t&&(Yo(0,"div",0),Yo(1,"div",1),Yo(2,"div",2),Bs(3),jo(),Yo(4,"div",3),es("click",(function(){return e.showDeleteBtn()})),gn(),Yo(5,"svg",4),Xo(6,"use",5),jo(),Ho(7,Nrt,8,4,"div",6),jo(),jo(),fn(),Yo(8,"div",7),Yo(9,"div",8),Xo(10,"img",9),jo(),Yo(11,"div",10),Yo(12,"span"),Bs(13),jo(),jo(),jo(),jo()),2&t&&(sa(3),Vs(e.name),sa(4),Uo("ngIf",e.mShowBtn),sa(3),Uo("src",e.mCrrentSrc,Hr),sa(3),Vs(e.dateFormat(e.time)))},directives:[Yd,Ud],pipes:[H3],styles:[".container[_ngcontent-%COMP%]{height:160px;display:flex;flex-direction:column;border-bottom:1px solid var(--editor_main_border)}.container[_ngcontent-%COMP%] .row1[_ngcontent-%COMP%]{padding:0 10px;height:50px;display:flex;align-items:center}.container[_ngcontent-%COMP%] .row1[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{width:25px;height:25px;margin-right:10px}.container[_ngcontent-%COMP%] .row1[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%] .row1[_ngcontent-%COMP%] .more[_ngcontent-%COMP%]{margin-left:auto;cursor:pointer;position:relative}.container[_ngcontent-%COMP%] .row1[_ngcontent-%COMP%] .more[_ngcontent-%COMP%] .sign-btn-div[_ngcontent-%COMP%]{max-height:100px;overflow:auto;position:absolute;right:0;background-color:#fff;border:1px solid var(--editor_main_border);color:#000;z-index:99999}.container[_ngcontent-%COMP%] .row1[_ngcontent-%COMP%] .more[_ngcontent-%COMP%] .sign-btn-div[_ngcontent-%COMP%] .sign-btn-box[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:#e8e8e8}.container[_ngcontent-%COMP%] .row1[_ngcontent-%COMP%] .more[_ngcontent-%COMP%] .sign-btn-div[_ngcontent-%COMP%] .sign-btn[_ngcontent-%COMP%]{margin:2px 8px;white-space:nowrap}.container[_ngcontent-%COMP%] .row2[_ngcontent-%COMP%]{flex-grow:1;padding-left:45px;display:flex;flex-direction:column}.container[_ngcontent-%COMP%] .row2[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:120px;height:70px;cursor:pointer}.container[_ngcontent-%COMP%] .row2[_ngcontent-%COMP%] .time[_ngcontent-%COMP%]{flex-grow:1;display:flex;align-items:center}"]}),t})();function Grt(t,e){if(1&t&&(Yo(0,"div"),Xo(1,"app-sign-history-item",2),jo()),2&t){const t=e.$implicit;sa(1),Uo("name",t.name)("time",t.signTime)("signId",t.signId)("mCrrentSrc",t.signData)("position",t.position)}}let Zrt=(()=>{class t{constructor(t){this.changeDetectorRef=t,this.mSignHistory=[],this.mInit=!0}ngOnInit(){MF.instance().subscribeBroardcast(_F.SignPanel,this),MF.instance().subscribeBroardcast(_F.UserOptionsChange,this)}ngOnDestroy(){MF.instance().unsubscribeBroardcast(_F.SignPanel,this),MF.instance().unsubscribeBroardcast(_F.UserOptionsChange,this)}notify(t,e){switch(t){case _F.SignPanel:"addSignRecord"===e.type&&e.data&&(this.mSignHistory=e.data.signRecordList,this.changeDetectorRef.detectChanges());break;case _F.UserOptionsChange:"update"===e.type&&e.data.panel&&e.data.panel.signPanel&&this.mInit&&(MF.instance().broardcast(_F.GetFileData,{type:"getSignHistory",data:""}),this.mInit=!1)}}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Gl))},t["ɵcmp"]=qt({type:t,selectors:[["app-sign"]],decls:2,vars:1,consts:[[1,"container"],[4,"ngFor","ngForOf"],[3,"name","time","signId","mCrrentSrc","position"]],template:function(t,e){1&t&&(Yo(0,"div",0),Ho(1,Grt,2,5,"div",1),jo()),2&t&&(sa(1),Uo("ngForOf",e.mSignHistory))},directives:[Ud,Hrt],styles:[".container[_ngcontent-%COMP%]{overflow:auto;height:100%}.container[_ngcontent-%COMP%]::-webkit-scrollbar{width:10px;height:10px}.container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:10px;background-color:var(--editor_main_scrollBar)}.container[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:var(--scrollbar_track)}.container[_ngcontent-%COMP%]::-webkit-scrollbar-corner{width:10px;height:10px;background-color:var(--editor_main_background)}"]}),t})();function Urt(t,e){1&t&&(Yo(0,"div",9),Xo(1,"app-cmd-interaction-panel"),jo()),2&t&&ks(os().getMainStyle())}function Wrt(t,e){1&t&&(Yo(0,"div",9),Xo(1,"app-layer"),jo()),2&t&&ks(os().getMainStyle())}function Yrt(t,e){1&t&&(Yo(0,"div",9),Xo(1,"app-xref"),jo()),2&t&&ks(os().getMainStyle())}function jrt(t,e){1&t&&(Yo(0,"div",10),Xo(1,"app-comment"),jo()),2&t&&ks(os().getMainStyle())}function Xrt(t,e){1&t&&(Yo(0,"div",9),Xo(1,"app-opm"),jo()),2&t&&ks(os().getMainStyle())}function qrt(t,e){1&t&&(Yo(0,"div",11),Xo(1,"app-version"),jo()),2&t&&ks(os().getMainStyle())}function $rt(t,e){1&t&&(Yo(0,"div",9),Xo(1,"app-sign"),jo()),2&t&&ks(os().getMainStyle())}function Krt(t,e){if(1&t){const t=Jo();qo(0),Yo(1,"div",12),es("dragstart",(function(e){return Ne(t),os().dragWindowBorder(e,"top")})),jo(),Yo(2,"div",13),es("dragstart",(function(e){return Ne(t),os().dragWindowBorder(e,"left")})),jo(),Yo(3,"div",14),es("dragstart",(function(e){return Ne(t),os().dragWindowBorder(e,"right")})),jo(),Yo(4,"div",15),es("dragstart",(function(e){return Ne(t),os().dragWindowBorder(e,"bottom")})),jo(),Yo(5,"div",16),es("dragstart",(function(e){return Ne(t),os().dragWindowBorder(e,"topleft")})),jo(),Yo(6,"div",17),es("dragstart",(function(e){return Ne(t),os().dragWindowBorder(e,"topright")})),jo(),Yo(7,"div",18),es("dragstart",(function(e){return Ne(t),os().dragWindowBorder(e,"bottomleft")})),jo(),Yo(8,"div",19),es("dragstart",(function(e){return Ne(t),os().dragWindowBorder(e,"bottomright")})),jo(),$o()}2&t&&(sa(1),Uo("draggable",!0),sa(1),Uo("draggable",!0),sa(1),Uo("draggable",!0),sa(1),Uo("draggable",!0),sa(1),Uo("draggable",!0),sa(1),Uo("draggable",!0),sa(1),Uo("draggable",!0),sa(1),Uo("draggable",!0))}let Jrt=(()=>{class t{constructor(t,e){this.ref=t,this.settingService=e,this.mWindowList=[],this.tabShow={mTopShow:0,mBottomShow:0,mLeftShow:0,mRightShow:0},this.closeWindow=new Dc,this.dragWindow=new Dc,this.changeWindowData=new Dc}ngOnInit(){}getContainStyle(){const t={display:"show"===this.mWindowData.WindowVisible?"block":"none",position:"absolute",top:"",left:"",right:"",bottom:"",width:"100%",height:"100%"};return"floating"===this.mWindowData.WindowOrient&&(t.top=parseInt(this.mWindowData.yval)+"px",t.left=100+parseInt(this.mWindowData.xval)+"px",t.width=parseInt(this.mWindowData.width)+"px",t.height=parseInt(this.mWindowData.height)+"px"),"top"===this.mWindowData.WindowOrient&&("none"!==t.display&&(t.display=this.mWindowData.index===this.tabShow.mTopShow?"block":"none"),t.top="0",t.left="0"),"bottom"===this.mWindowData.WindowOrient&&("none"!==t.display&&(t.display=this.mWindowData.index===this.tabShow.mBottomShow?"block":"none"),t.bottom="0",t.left="0"),"left"===this.mWindowData.WindowOrient&&("none"!==t.display&&(t.display=this.mWindowData.index===this.tabShow.mLeftShow?"block":"none"),t.top="0",t.left="0"),"right"===this.mWindowData.WindowOrient&&("none"!==t.display&&(t.display=this.mWindowData.index===this.tabShow.mRightShow?"block":"none"),t.top="0",t.right="0"),t}getTitleStyle(t){return"bottom"===this.mWindowData.WindowOrient?{position:"absolute",bottom:"-24px",left:0,width:t.offsetHeight+"px",transformOrigin:"top left",transform:"rotate(-90deg)",display:"flex"}:{position:"absolute",top:0,left:0,width:"100%",display:"flex"}}getMainStyle(){return"bottom"===this.mWindowData.WindowOrient?{position:"absolute",top:"0",left:"24px",width:"calc(100% - 24px)",height:"100%"}:{position:"absolute",top:"24px",left:"0",width:"100%",height:"calc(100% - 22px)"}}dragWindowBorder(t,e){t.preventDefault();const n=this.mWindowData,i=parseInt(n.xval),r=parseInt(n.yval),a=parseInt(n.width),o=parseInt(n.height);document.onmousemove=s=>{let l=s.clientX-t.clientX,c=s.clientY-t.clientY;e.indexOf("top")>-1&&(c=o-c<=150?o-150:c,n.yval=r+c+"",n.height=o-c+""),e.indexOf("bottom")>-1&&(c=o+c<=150?150-o:c,n.height=o+c+""),e.indexOf("left")>-1&&(l=a-l<=150?a-150:l,n.xval=i+l+"",n.width=a-l+""),e.indexOf("right")>-1&&(l=a+l<=150?150-a:l,n.width=a+l+""),this.changeDetect()},document.onmouseup=t=>{document.onmousemove=null,document.onmouseup=null;let e=this.mWindowData;const n=parseInt(e.xval),i=parseInt(e.yval),r=parseInt(e.width),a=parseInt(e.height);t.clientX<0&&(e.xval=n-t.clientX+"",e.width=r+t.clientX+""),t.clientX>document.body.offsetWidth&&(e.width=r-(t.clientX-document.body.offsetWidth)+""),t.clientY<0&&(e.yval=i-t.clientY+"",e.height=a+t.clientY+""),t.clientY>document.body.offsetHeight&&(e.height=a-(t.clientY-document.body.offsetHeight)+""),this.changeWindowData.emit(e)}}dragTitle(t){t.preventDefault(),this.dragWindow.emit(t)}changeDetect(){setTimeout((()=>{this.ref.markForCheck(),this.ref.detectChanges()}))}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Gl),Zo(l8))},t["ɵcmp"]=qt({type:t,selectors:[["app-window-item"]],inputs:{mWindowData:"mWindowData",mWindowList:"mWindowList",tabShow:"tabShow"},outputs:{closeWindow:"closeWindow",dragWindow:"dragWindow",changeWindowData:"changeWindowData"},decls:17,vars:16,consts:[[1,"container"],["container",""],[1,"title",3,"draggable","dragstart"],[1,"close-btn"],[1,"close",3,"click"],["class","main",3,"style",4,"ngIf"],["id","commentPanelArea","class","main",3,"style",4,"ngIf"],["id","versionPanelArea","class","main",3,"style",4,"ngIf"],[4,"ngIf"],[1,"main"],["id","commentPanelArea",1,"main"],["id","versionPanelArea",1,"main"],[1,"top_Resize",3,"draggable","dragstart"],[1,"left_Resize",3,"draggable","dragstart"],[1,"right_Resize",3,"draggable","dragstart"],[1,"bottom_Resize",3,"draggable","dragstart"],[1,"topleft_Resize",3,"draggable","dragstart"],[1,"topright_Resize",3,"draggable","dragstart"],[1,"bottomleft_Resize",3,"draggable","dragstart"],[1,"bottomright_Resize",3,"draggable","dragstart"]],template:function(t,e){if(1&t&&(Yo(0,"div",0,1),Yo(2,"div"),Yo(3,"div",2),es("dragstart",(function(t){return e.dragTitle(t)})),Yo(4,"span"),Bs(5),Cc(6,"translate"),jo(),jo(),Yo(7,"div",3),Yo(8,"div",4),es("click",(function(){return e.closeWindow.emit(e.mWindowData)})),jo(),jo(),jo(),Ho(9,Urt,2,2,"div",5),Ho(10,Wrt,2,2,"div",5),Ho(11,Yrt,2,2,"div",5),Ho(12,jrt,2,2,"div",6),Ho(13,Xrt,2,2,"div",5),Ho(14,qrt,2,2,"div",7),Ho(15,$rt,2,2,"div",5),Ho(16,Krt,9,8,"ng-container",8),jo()),2&t){const t=Go(1);ks(e.getContainStyle()),sa(2),ks(e.getTitleStyle(t)),sa(1),Uo("draggable",!0),sa(2),Vs(kc(6,14,"editor_"+e.mWindowData.name)),sa(4),Uo("ngIf","commandPanel"===e.mWindowData.name),sa(1),Uo("ngIf","layerPanel"===e.mWindowData.name),sa(1),Uo("ngIf","xrefPanel"===e.mWindowData.name),sa(1),Uo("ngIf","commentPanel"===e.mWindowData.name),sa(1),Uo("ngIf","opmPanel"===e.mWindowData.name),sa(1),Uo("ngIf","versionPanel"===e.mWindowData.name),sa(1),Uo("ngIf","signPanel"===e.mWindowData.name),sa(1),Uo("ngIf","floating"===e.mWindowData.WindowOrient)}},directives:[Yd,Int,Jnt,Zit,C5,irt,Brt,Zrt],pipes:[H3],styles:['.container[_ngcontent-%COMP%]{width:250px;color:var(--main_font);height:100%;background-color:var(--editor_main_background)}.container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;background-color:var(--editor_main_title);color:var(--main_font)}.title[_ngcontent-%COMP%]{height:24px;width:calc(100% - 24px);background-color:var(--editor_main_background);border-bottom:1px solid var(--editor_main_border)}.title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--main_font);height:24px;line-height:24px;font-weight:bold;padding:0 10px;-webkit-user-select:none;user-select:none;cursor:default}.close-btn[_ngcontent-%COMP%]{position:relative;background-color:var(--editor_main_title);border-bottom:1px solid var(--editor_main_border);padding:3px}.close-btn[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{width:18px;height:18px}.close-btn[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]:before{content:"";position:absolute;width:2px;height:14px;background-color:#999;transform:rotate(45deg);right:11px}.close-btn[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]:after{content:"";position:absolute;width:2px;height:14px;background-color:#999;transform:rotate(-45deg);right:11px}.top_Resize[_ngcontent-%COMP%]{position:absolute;width:100%;height:8px;top:-4px;left:0px;cursor:n-resize}.bottom_Resize[_ngcontent-%COMP%]{position:absolute;width:100%;height:8px;bottom:-4px;left:0px;cursor:s-resize}.left_Resize[_ngcontent-%COMP%]{position:absolute;width:8px;height:100%;top:0px;left:-4px;cursor:w-resize}.right_Resize[_ngcontent-%COMP%]{position:absolute;width:8px;height:100%;top:0px;right:-4px;cursor:e-resize}.topleft_Resize[_ngcontent-%COMP%]{position:absolute;width:8px;height:8px;top:-4px;left:-4px;cursor:nw-resize}.topright_Resize[_ngcontent-%COMP%]{position:absolute;width:8px;height:8px;top:-4px;right:-4px;cursor:ne-resize}.bottomleft_Resize[_ngcontent-%COMP%]{position:absolute;width:8px;height:8px;bottom:-4px;left:-4px;cursor:sw-resize}.bottomright_Resize[_ngcontent-%COMP%]{position:absolute;width:8px;height:8px;bottom:-4px;right:-4px;cursor:se-resize}'],changeDetection:0}),t})();const Qrt=function(t,e){return{backgroundColor:t,color:e}};function tat(t,e){if(1&t){const t=Jo();Yo(0,"span",2),es("mousedown",(function(){const e=Ne(t).index;return os().select(e)}))("dragstart",(function(e){const n=Ne(t).$implicit;return os().dragTab(e,n)}))("mouseover",(function(){const e=Ne(t).index;return os().dragover(e)})),Bs(1),Cc(2,"translate"),jo()}if(2&t){const t=e.$implicit,n=e.index,i=os();ks(bc(7,Qrt,i.mShowIndex===n?"var(--editor_main_selected)":"",i.mShowIndex===n?"var(--window_selected_font)":"var(--main_font)")),Uo("title",t.name)("draggable",!0),sa(1),Ns(" ",kc(2,5,"editor_"+t.name)," ")}}let eat=(()=>{class t{constructor(){this.mWindowTabs=[],this.dragWindow=new Dc,this.showChange=new Dc,this.mShowIndex=0,this.mWindowTabDrag=!1,this.mDragIndex=-1}ngOnChanges(t){const e=t.mWindowTabs;if(e&&!e.firstChange&&0!==e.currentValue.length&&(e.currentValue.length<e.previousValue.length&&(this.mShowIndex=this.mShowIndex>e.currentValue.length-1?e.currentValue.length-1:this.mShowIndex,this.showChange.emit(this.mShowIndex)),e.currentValue.length>e.previousValue.length))for(let t=0;t<e.currentValue.length;t++){const n=e.currentValue[t];let i=!0;for(let t=0;t<e.previousValue.length;t++)if(e.previousValue[t].name===n.name){i=!1;continue}if(i){this.mShowIndex=n.index,this.showChange.emit(this.mShowIndex);break}}}ngOnInit(){}select(t){this.mShowIndex=t,this.showChange.emit(this.mShowIndex)}dragTab(t,e){t.preventDefault(),this.mWindowTabDrag=!0,document.onmousemove=t=>{this.mWindowTabDrag?this.mDragIndex!==this.mShowIndex&&(this.mDragIndex>this.mShowIndex&&(e.index=this.mDragIndex+.5),this.mDragIndex<this.mShowIndex&&(e.index=this.mDragIndex-.5),this.mWindowTabs=this.mWindowTabs.sort(((t,e)=>t.index-e.index)),this.mWindowTabs.forEach(((t,e)=>{t.index=e})),this.mShowIndex=this.mDragIndex,this.showChange.emit(this.mShowIndex)):(document.onmousemove=null,document.onmouseup=null,this.mWindowTabDrag=!1,this.dragWindow.emit({dragEvent:t,window:this.mWindowTabs[this.mShowIndex]}))},document.onmouseup=t=>{document.onmousemove=null,document.onmouseup=null,this.mWindowTabDrag=!1}}dragleave(){this.mWindowTabDrag=!1}dragover(t){this.mDragIndex=t}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵcmp"]=qt({type:t,selectors:[["app-window-tab"]],inputs:{mWindowTabs:"mWindowTabs"},outputs:{dragWindow:"dragWindow",showChange:"showChange"},features:[pe],decls:2,vars:3,consts:[[1,"tabItem",3,"mouseleave"],[3,"title","style","draggable","mousedown","dragstart","mouseover",4,"ngFor","ngForOf"],[3,"title","draggable","mousedown","dragstart","mouseover"]],template:function(t,e){1&t&&(Yo(0,"div",0),es("mouseleave",(function(){return e.dragleave()})),Ho(1,tat,3,10,"span",1),jo()),2&t&&(xs("display",e.mWindowTabs.length>1?"":"none"),sa(1),Uo("ngForOf",e.mWindowTabs))},directives:[Ud],pipes:[H3],styles:[".tabItem[_ngcontent-%COMP%]{height:24px;width:100%;background-color:var(--editor_main_tabItem);display:flex;border:1px solid var(--editor_main_border)}.tabItem[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:12px;height:24px;line-height:24px;padding:0 5px;cursor:default;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}"]}),t})();const nat=["container"],iat=["top"],rat=["bottom"],aat=["left"],oat=["right"],sat=["floating"];function lat(t,e){if(1&t){const t=Jo();Yo(0,"div",28),es("mouseenter",(function(){return Ne(t),os(2).mModalOver="top"}))("mouseleave",(function(){return Ne(t),os(2).mModalOver="floating"})),Xo(1,"div"),jo()}}function cat(t,e){if(1&t){const t=Jo();Yo(0,"div",29),es("mouseenter",(function(){return Ne(t),os(2).mModalOver="left"}))("mouseleave",(function(){return Ne(t),os(2).mModalOver="floating"})),Xo(1,"div"),jo()}}function hat(t,e){if(1&t){const t=Jo();Yo(0,"div",30),es("mouseenter",(function(){return Ne(t),os(2).mModalOver="right"}))("mouseleave",(function(){return Ne(t),os(2).mModalOver="floating"})),Xo(1,"div"),jo()}}function dat(t,e){if(1&t){const t=Jo();Yo(0,"div",31),es("mouseenter",(function(){return Ne(t),os(2).mModalOver="bottom"}))("mouseleave",(function(){return Ne(t),os(2).mModalOver="floating"})),Xo(1,"div"),jo()}}function uat(t,e){if(1&t&&(Yo(0,"div",23),Ho(1,lat,2,0,"div",24),Ho(2,cat,2,0,"div",25),Ho(3,hat,2,0,"div",26),Ho(4,dat,2,0,"div",27),jo()),2&t){const t=os();sa(1),Uo("ngIf",t.mShowPosition.indexOf("top")>-1),sa(1),Uo("ngIf",t.mShowPosition.indexOf("left")>-1),sa(1),Uo("ngIf",t.mShowPosition.indexOf("right")>-1),sa(1),Uo("ngIf",t.mShowPosition.indexOf("bottom")>-1)}}const mat=function(t){return{top:0,left:0,width:t}},pat=function(t){return{position:"absolute",width:"100%",height:t}},gat=function(t){return{top:0,right:0,width:t}},fat=function(t,e){return{left:t,right:e,top:0}},bat=function(t){return{top:0,left:0,height:t}},yat=function(t){return{bottom:0,left:0,height:t}},vat=function(){return{position:"absolute",width:"100%",height:"100%"}},wat=function(t,e){return{left:0,top:t,bottom:e}},xat=["*"];let Cat=(()=>{class t{constructor(t,e,n,i,r){this.componentFactoryResolver=t,this.injector=e,this.appRef=n,this.settingService=i,this.changeDetectorRef=r,this.pageConfig={},this.mWindowList=[],this.mTopWindowShow=[],this.mBottomWindowShow=[],this.mLeftWindowShow=[],this.mRightWindowShow=[],this.mFloatingWindowShow=[],this.tabShow={mTopShow:0,mBottomShow:0,mLeftShow:0,mRightShow:0},this.mTopHeight=0,this.mBottomHeight=0,this.mLeftWidth=0,this.mRightWidth=0,this.mComponentArr=[],this.mShowPosition=[],this.mShowModal=!1,this.mModalOver="floating"}ngOnInit(){MF.instance().subscribeBroardcast(_F.VersionPanel,this)}ngAfterViewInit(){this.settingService.pageConfig$.subscribe((t=>{this.pageConfig=t,this.mTopHeight=this.pageConfig.top,this.mBottomHeight=this.pageConfig.bottom,this.mLeftWidth=this.pageConfig.left,this.mRightWidth=this.pageConfig.right,this.mWindowList.forEach((t=>{Object.assign(t,this.pageConfig[t.name])})),this.getWindow(),this.initWindow(),this.changeDetect()})),this.mWindowList=[Object.assign({name:"layerPanel"},this.pageConfig.layerPanel),Object.assign({name:"xrefPanel"},this.pageConfig.xrefPanel),Object.assign({name:"commandPanel"},this.pageConfig.commandPanel),Object.assign({name:"commentPanel"},this.pageConfig.commentPanel),Object.assign({name:"opmPanel"},this.pageConfig.opmPanel),Object.assign({name:"versionPanel"},this.pageConfig.versionPanel),Object.assign({name:"signPanel"},this.pageConfig.signPanel)],this.mWindowList.forEach((t=>{const e=this.componentFactoryResolver.resolveComponentFactory(Jrt).create(this.injector);this.appRef.attachView(e.hostView),e.instance.mWindowData=t,e.instance.mWindowList=this.mWindowList,e.instance.tabShow=this.tabShow,e.instance.closeWindow.subscribe((()=>{this.changeVisible(t)})),e.instance.dragWindow.subscribe((e=>{this.dragWindow({dragEvent:e,window:t})})),e.instance.changeWindowData.subscribe((t=>{this.changeWindowData(t)})),this.mComponentArr.push(e)})),this.getWindow(),this.initWindow(),this.changeDetect(),MF.instance().subscribeBroardcast(_F.StatusBar,this)}ngOnDestroy(){this.mComponentArr.forEach((t=>{this.appRef.detachView(t.hostView),t.destroy()})),MF.instance().unsubscribeBroardcast(_F.StatusBar,this),MF.instance().unsubscribeBroardcast(_F.VersionPanel,this)}notify(t,e){t===_F.StatusBar&&"object"==typeof e?"setting"===e.type&&(this.getWindow(),this.changeDetect()):t===_F.VersionPanel&&e.type===p4.versionEmpty&&(this.pageConfig.versionPanel.WindowVisible="hide",this.mWindowList=this.mWindowList.filter((t=>"versionPanel"!==t.name)),this.mWindowList.forEach((t=>{Object.assign(t,this.pageConfig[t.name])})),this.getWindow(),this.initWindow(),this.changeDetect())}selectWindow(t){return"top"===t?this.mTopWindowShow:"bottom"===t?this.mBottomWindowShow:"left"===t?this.mLeftWindowShow:"right"===t?this.mRightWindowShow:"floating"===t?this.mFloatingWindowShow:[]}getWindow(){const t=t=>{let e=this.mWindowList.filter((e=>e.WindowOrient===t)),n=e.filter((t=>"show"===t.WindowVisible)),i=e.filter((t=>"hide"===t.WindowVisible));return n.sort(((t,e)=>t.index-e.index)),n.forEach(((t,e)=>{t.index=e})),i.forEach(((t,e)=>{t.index=e+n.length})),n};this.mTopWindowShow=t("top"),this.mBottomWindowShow=t("bottom"),this.mLeftWindowShow=t("left"),this.mRightWindowShow=t("right"),this.mFloatingWindowShow=t("floating")}initWindow(){this.mFloat.nativeElement.innerHTML="",this.mTop.nativeElement.innerHTML="",this.mBottom.nativeElement.innerHTML="",this.mLeft.nativeElement.innerHTML="",this.mRight.nativeElement.innerHTML="",this.mComponentArr.forEach((t=>{"floating"===t.instance.mWindowData.WindowOrient&&this.mFloat.nativeElement.appendChild(t.hostView.rootNodes[0]),"top"===t.instance.mWindowData.WindowOrient&&this.mTop.nativeElement.appendChild(t.hostView.rootNodes[0]),"bottom"===t.instance.mWindowData.WindowOrient&&this.mBottom.nativeElement.appendChild(t.hostView.rootNodes[0]),"left"===t.instance.mWindowData.WindowOrient&&this.mLeft.nativeElement.appendChild(t.hostView.rootNodes[0]),"right"===t.instance.mWindowData.WindowOrient&&this.mRight.nativeElement.appendChild(t.hostView.rootNodes[0])})),this.changeDetectorRef.detectChanges()}changeDetect(){this.mComponentArr.forEach((t=>{t.instance.changeDetect()}))}getLen(t){let e=0;return this.selectWindow(t).length&&("top"===t&&(e=this.mTopHeight),"bottom"===t&&(e=this.mBottomHeight),"left"===t&&(e=this.mLeftWidth),"right"===t&&(e=this.mRightWidth)),e}tabChange(t,e){"top"===t&&(this.tabShow.mTopShow=e),"bottom"===t&&(this.tabShow.mBottomShow=e),"left"===t&&(this.tabShow.mLeftShow=e),"right"===t&&(this.tabShow.mRightShow=e),this.changeDetect()}dragBorder(t,e){t.preventDefault();const n=this.mContainer.nativeElement.getBoundingClientRect(),i=t.currentTarget.getBoundingClientRect(),r=t.clientX-i.left,a=t.clientY-i.top,o=t.currentTarget.cloneNode(!0);o.style.position="fixed",o.style.left=i.left+"px",o.style.top=i.top+"px",o.style.width=i.width+"px",o.style.height=i.height+"px",o.style.background="var(--main_font)",o.style.opacity="50%",document.body.appendChild(o),document.onmousemove=t=>{if("top"===e){let e=t.clientY-a;e=e<=n.top+150?n.top+150:e,e=e>=n.top+n.height/2-20?n.top+n.height/2-20:e,o.style.top=e+"px"}if("bottom"===e){let e=t.clientY-a+6;e=e>=n.bottom-150?n.bottom-150:e,e=e<=n.bottom-n.height/2+20?n.bottom-n.height/2+20:e,o.style.top=e+"px"}if("left"===e){let e=t.clientX-r;e=e<=n.left+150?n.left+150:e,e=e>=n.left+n.width/2-20?n.left+n.width/2-20:e,o.style.left=e+"px"}if("right"===e){let e=t.clientX-r+6;e=e>=n.right-150?n.right-150:e,e=e<=n.right-n.width/2+20?n.right-n.width/2+20:e,o.style.left=e+"px"}},document.onmouseup=t=>{document.onmousemove=null,document.onmouseup=null,"top"===e&&(this.mTopHeight=parseInt(o.style.top)-n.top),"bottom"===e&&(this.mBottomHeight=n.bottom-parseInt(o.style.top)-6),"left"===e&&(this.mLeftWidth=parseInt(o.style.left)-n.left),"right"===e&&(this.mRightWidth=n.right-parseInt(o.style.left)-6),document.body.removeChild(o),this.pageConfig.top=this.mTopHeight,this.pageConfig.bottom=this.mBottomHeight,this.pageConfig.left=this.mLeftWidth,this.pageConfig.right=this.mRightWidth,this.settingService.pageConfig$.next(this.pageConfig)}}dragWindow(t){const e=this.mContainer.nativeElement.getBoundingClientRect(),n=t.window;this.mShowPosition=n.showPosition;const i=document.createElement("div");i.style.position="fixed",i.style.width=n.width+"px",i.style.height=n.height+"px",i.style.border="1px solid var(--main_font)","floating"===n.WindowOrient?(i.style.left=t.dragEvent.clientX-t.dragEvent.offsetX+"px",i.style.top=t.dragEvent.clientY-t.dragEvent.offsetY+"px"):(i.style.left=t.dragEvent.clientX-n.width/2+"px",i.style.top=t.dragEvent.clientY-10+"px"),document.body.appendChild(i),this.mShowModal=!0,document.onmousemove=r=>{if(i.style.backgroundColor="","floating"!==this.mModalOver)return i.style.backgroundColor="var(--window_preview)",i.style.opacity="0.5","top"===this.mModalOver&&(i.style.left=e.left+this.getLen("left")+"px",i.style.top=e.top+"px",i.style.width=e.width-this.getLen("left")-this.getLen("right")+"px",i.style.height=this.mTopHeight+"px"),"left"===this.mModalOver&&(i.style.left=e.left+"px",i.style.top=e.top+"px",i.style.width=this.mLeftWidth+"px",i.style.height=e.height+"px"),"right"===this.mModalOver&&(i.style.left=e.right-this.mRightWidth+"px",i.style.top=e.top+"px",i.style.width=this.mRightWidth+"px",i.style.height=e.height+"px"),void("bottom"===this.mModalOver&&(i.style.left=e.left+this.getLen("left")+"px",i.style.top=e.bottom-this.mBottomHeight+"px",i.style.width=e.width-this.getLen("left")-this.getLen("right")+"px",i.style.height=this.mBottomHeight+"px"));i.style.width=n.width+"px",i.style.height=n.height+"px","floating"===n.WindowOrient?(i.style.left=r.clientX-t.dragEvent.offsetX+"px",i.style.top=r.clientY-t.dragEvent.offsetY+"px"):(i.style.left=r.clientX-n.width/2+"px",i.style.top=r.clientY-10+"px")},document.onmouseup=r=>{if(document.onmousemove=null,document.onmouseup=null,"floating"===this.mModalOver){let i=0,a=0;"floating"===n.WindowOrient?(i=r.clientX-t.dragEvent.offsetX,a=r.clientY-t.dragEvent.offsetY):(i=r.clientX-n.width/2,a=r.clientY-10),i=i<document.body.offsetWidth-n.width?i:document.body.offsetWidth-n.width,a=a<document.body.offsetHeight-n.height?a:document.body.offsetHeight-n.height,i=i>0?i:0,a=a>0?a:0,n.xval=i-e.left,n.yval=a-e.top}else n.index=this.selectWindow(this.mModalOver).length;n.WindowOrient=this.mModalOver,this.initWindow(),this.changeWindowData(n),document.body.removeChild(i),this.mShowModal=!1,this.mModalOver="floating"}}changeWindowData(t){Object.assign(this.pageConfig[t.name],t),delete this.pageConfig[t.name].name,this.settingService.pageConfig$.next(this.pageConfig)}changeVisible(t){this.pageConfig[t.name].WindowVisible="hide"===this.pageConfig[t.name].WindowVisible?"show":"hide",this.settingService.pageConfig$.next(this.pageConfig)}}return t["ɵfac"]=function(e){return new(e||t)(Zo(ml),Zo(wo),Zo(Ih),Zo(l8),Zo(Gl))},t["ɵcmp"]=qt({type:t,selectors:[["app-window"]],viewQuery:function(t,e){if(1&t&&(Nc(nat,5),Nc(iat,5),Nc(rat,5),Nc(aat,5),Nc(oat,5),Nc(sat,5)),2&t){let t;Vc(t=Gc())&&(e.mContainer=t.first),Vc(t=Gc())&&(e.mTop=t.first),Vc(t=Gc())&&(e.mBottom=t.first),Vc(t=Gc())&&(e.mLeft=t.first),Vc(t=Gc())&&(e.mRight=t.first),Vc(t=Gc())&&(e.mFloat=t.first)}},ngContentSelectors:xat,decls:28,vars:56,consts:[[1,"container"],["container",""],[1,"left"],["left",""],[1,"leftTab",3,"mWindowTabs","showChange","dragWindow"],[1,"leftVertical",3,"mousedown"],[1,"right"],["right",""],[1,"rightTab",3,"mWindowTabs","showChange","dragWindow"],[1,"rightVertical",3,"mousedown"],[1,"body"],[1,"top"],["top",""],[1,"topTab",3,"mWindowTabs","showChange","dragWindow"],[1,"topTransverse",3,"mousedown"],[1,"bottom"],["bottom",""],[1,"bottomTab",3,"mWindowTabs","showChange","dragWindow"],[1,"bottomTransverse",3,"mousedown"],[1,"main"],[2,"position","absolute","width","0","height","0","left","-100px"],["floating",""],["class","modal",4,"ngIf"],[1,"modal"],["class","topModal",3,"mouseenter","mouseleave",4,"ngIf"],["class","leftModal",3,"mouseenter","mouseleave",4,"ngIf"],["class","rightModal",3,"mouseenter","mouseleave",4,"ngIf"],["class","bottomModal",3,"mouseenter","mouseleave",4,"ngIf"],[1,"topModal",3,"mouseenter","mouseleave"],[1,"leftModal",3,"mouseenter","mouseleave"],[1,"rightModal",3,"mouseenter","mouseleave"],[1,"bottomModal",3,"mouseenter","mouseleave"]],template:function(t,e){1&t&&(ls(),Yo(0,"div",0,1),Yo(2,"div",2),Xo(3,"div",null,3),Yo(5,"app-window-tab",4),es("showChange",(function(t){return e.tabChange("left",t)}))("dragWindow",(function(t){return e.dragWindow(t)})),jo(),Yo(6,"div",5),es("mousedown",(function(t){return e.dragBorder(t,"left")})),jo(),jo(),Yo(7,"div",6),Xo(8,"div",null,7),Yo(10,"app-window-tab",8),es("showChange",(function(t){return e.tabChange("right",t)}))("dragWindow",(function(t){return e.dragWindow(t)})),jo(),Yo(11,"div",9),es("mousedown",(function(t){return e.dragBorder(t,"right")})),jo(),jo(),Yo(12,"div",10),Yo(13,"div",11),Xo(14,"div",null,12),Yo(16,"app-window-tab",13),es("showChange",(function(t){return e.tabChange("top",t)}))("dragWindow",(function(t){return e.dragWindow(t)})),jo(),Yo(17,"div",14),es("mousedown",(function(t){return e.dragBorder(t,"top")})),jo(),jo(),Yo(18,"div",15),Xo(19,"div",null,16),Yo(21,"app-window-tab",17),es("showChange",(function(t){return e.tabChange("bottom",t)}))("dragWindow",(function(t){return e.dragWindow(t)})),jo(),Yo(22,"div",18),es("mousedown",(function(t){return e.dragBorder(t,"bottom")})),jo(),jo(),Yo(23,"div",19),cs(24),jo(),jo(),Xo(25,"div",20,21),Ho(27,uat,5,4,"div",22),jo()),2&t&&(sa(2),ks(fc(35,mat,e.getLen("left")+"px")),sa(1),ks(fc(37,pat,e.selectWindow("left").length>1?"calc(100% - 24px)":"calc(100% - 2px)")),sa(2),Uo("mWindowTabs",e.selectWindow("left")),sa(1),xs("display",e.selectWindow("left").length>0?"":"none"),sa(1),ks(fc(39,gat,e.getLen("right")+"px")),sa(1),ks(fc(41,pat,e.selectWindow("right").length>1?"calc(100% - 24px)":"calc(100% - 2px)")),sa(2),Uo("mWindowTabs",e.selectWindow("right")),sa(1),xs("display",e.selectWindow("right").length>0?"":"none"),sa(1),ks(bc(43,fat,e.getLen("left")+"px",e.getLen("right")+"px")),sa(1),ks(fc(46,bat,e.getLen("top")+"px")),sa(1),ks(fc(48,pat,e.selectWindow("top").length>1?"calc(100% - 24px)":"calc(100% - 2px)")),sa(2),Uo("mWindowTabs",e.selectWindow("top")),sa(1),xs("display",e.selectWindow("top").length>0?"":"none"),sa(1),ks(fc(50,yat,e.getLen("bottom")+"px")),sa(1),ks(gc(52,vat)),sa(2),xs("width",e.getLen("bottom")-24,"px"),Uo("mWindowTabs",e.selectWindow("bottom")),sa(1),xs("display",e.selectWindow("bottom").length>0?"":"none"),sa(1),ks(bc(53,wat,e.getLen("top")+"px",e.getLen("bottom")+"px")),sa(4),Uo("ngIf",e.mShowModal))},directives:[eat,Yd],styles:[".container[_ngcontent-%COMP%]{position:relative;background-color:var(--editor_main_background);width:100%;height:100%}.left[_ngcontent-%COMP%], .right[_ngcontent-%COMP%], .body[_ngcontent-%COMP%]{position:absolute;height:100%}.top[_ngcontent-%COMP%], .bottom[_ngcontent-%COMP%], .main[_ngcontent-%COMP%]{position:absolute;width:100%}.topTab[_ngcontent-%COMP%], .leftTab[_ngcontent-%COMP%], .rightTab[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;width:100%}.bottomTab[_ngcontent-%COMP%]{position:absolute;bottom:-24px;left:0;transform-origin:top left;transform:rotate(-90deg)}.topTransverse[_ngcontent-%COMP%], .bottomTransverse[_ngcontent-%COMP%]{position:absolute;width:100%;height:6px;cursor:s-resize;z-index:10}.leftVertical[_ngcontent-%COMP%], .rightVertical[_ngcontent-%COMP%]{position:absolute;width:6px;height:100%;cursor:w-resize;z-index:10}.topTransverse[_ngcontent-%COMP%]{bottom:-6px;left:0}.bottomTransverse[_ngcontent-%COMP%]{top:-6px;left:0}.leftVertical[_ngcontent-%COMP%]{top:0;right:-6px}.rightVertical[_ngcontent-%COMP%]{top:0;left:-6px}.modal[_ngcontent-%COMP%]{position:absolute;height:100%;width:100%;top:0;left:0;z-index:9999}.modal[_ngcontent-%COMP%] .topModal[_ngcontent-%COMP%], .modal[_ngcontent-%COMP%] .leftModal[_ngcontent-%COMP%], .modal[_ngcontent-%COMP%] .rightModal[_ngcontent-%COMP%], .modal[_ngcontent-%COMP%] .bottomModal[_ngcontent-%COMP%]{position:absolute;width:40px;height:40px;border:1px solid var(--main_border);background-color:var(--main_font);padding:11px}.modal[_ngcontent-%COMP%] .topModal[_ngcontent-%COMP%] div[_ngcontent-%COMP%], .modal[_ngcontent-%COMP%] .leftModal[_ngcontent-%COMP%] div[_ngcontent-%COMP%], .modal[_ngcontent-%COMP%] .rightModal[_ngcontent-%COMP%] div[_ngcontent-%COMP%], .modal[_ngcontent-%COMP%] .bottomModal[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{width:16px;height:16px}.modal[_ngcontent-%COMP%] .topModal[_ngcontent-%COMP%]{top:10px;left:calc(50% - 20px)}.modal[_ngcontent-%COMP%] .topModal[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{border-left:8px solid transparent;border-right:8px solid transparent;border-bottom:16px solid var(--main_background)}.modal[_ngcontent-%COMP%] .leftModal[_ngcontent-%COMP%]{top:calc(50% - 20px);left:10px}.modal[_ngcontent-%COMP%] .leftModal[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{border-top:8px solid transparent;border-bottom:8px solid transparent;border-right:16px solid var(--main_background)}.modal[_ngcontent-%COMP%] .rightModal[_ngcontent-%COMP%]{top:calc(50% - 20px);right:10px}.modal[_ngcontent-%COMP%] .rightModal[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{border-top:8px solid transparent;border-bottom:8px solid transparent;border-left:16px solid var(--main_background)}.modal[_ngcontent-%COMP%] .bottomModal[_ngcontent-%COMP%]{bottom:10px;left:calc(50% - 20px)}.modal[_ngcontent-%COMP%] .bottomModal[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{border-left:8px solid transparent;border-right:8px solid transparent;border-top:16px solid var(--main_background)}"]}),t})();const kat=["objectSnapBlock"];let Sat=(()=>{class t{constructor(t){this.modal=t}ngOnInit(){}handleOk(t){this.objectSnapBlock.submit(),"apply"!==t&&this.modal.destroy()}handleCancel(){this.objectSnapBlock.cancel(),this.modal.destroy()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(OT))},t["ɵcmp"]=qt({type:t,selectors:[["app-drafting-settings"]],viewQuery:function(t,e){if(1&t&&Nc(kat,5),2&t){let t;Vc(t=Gc())&&(e.objectSnapBlock=t.first)}},decls:6,vars:3,consts:[[1,"settings"],[3,"nzTitle"],[1,"settings-page"],["objectSnapBlock",""]],template:function(t,e){1&t&&(Yo(0,"div",0),Yo(1,"nz-tabset"),Yo(2,"nz-tab",1),Cc(3,"translate"),Xo(4,"app-object-snap-block",2,3),jo(),jo(),jo()),2&t&&(sa(2),Uo("nzTitle",kc(3,1,"oSnap")))},directives:[Xz,Wz,W3],pipes:[H3],styles:[".modal-drafting-settings[_ngcontent-%COMP%] .ant-modal-body[_ngcontent-%COMP%]{padding:1px}.modal-drafting-settings[_ngcontent-%COMP%] .ant-modal-body[_ngcontent-%COMP%], .modal-drafting-settings[_ngcontent-%COMP%] .ant-modal-footer[_ngcontent-%COMP%], .modal-drafting-settings[_ngcontent-%COMP%] .ant-btn[_ngcontent-%COMP%]{background-color:#f2f2f2}.modal-drafting-settings[_ngcontent-%COMP%] .ant-modal-footer[_ngcontent-%COMP%]{border-top:1px solid #d9d9d9}.modal-drafting-settings[_ngcontent-%COMP%] .ant-btn-primary[_ngcontent-%COMP%]{color:#1890ff}.modal-drafting-settings[_ngcontent-%COMP%] .ant-slider-rail[_ngcontent-%COMP%]{background-color:#fff}.settings[_ngcontent-%COMP%]{width:500px}[_nghost-%COMP%] .ant-tabs{background-color:#f2f2f2}[_nghost-%COMP%] .ant-tabs-nav{padding:0 20px}"]}),t})();function Pat(t,e){if(1&t){const t=Jo();Yo(0,"div",6),es("click",(function(){return Ne(t),os().select()})),Cc(1,"translate"),Bs(2,"GRID"),jo()}2&t&&hs("title",kc(1,1,"grid"))}function _at(t,e){if(1&t){const t=Jo();Yo(0,"div",7),es("click",(function(){return Ne(t),os().select()})),Cc(1,"translate"),Bs(2,"LWEIGHT"),jo()}2&t&&hs("title",kc(1,1,"lineWidth"))}function Mat(t,e){if(1&t){const t=Jo();Yo(0,"div",7),es("click",(function(){return Ne(t),os().select()})),Cc(1,"translate"),Bs(2,"OSNAP"),jo()}2&t&&hs("title",kc(1,1,"oSnap"))}function Dat(t,e){if(1&t){const t=Jo();Yo(0,"div",8),es("click",(function(){return Ne(t),os().select()})),Cc(1,"translate"),gn(),Yo(2,"svg",9),Xo(3,"use",10),jo(),jo()}2&t&&hs("title",kc(1,1,"fullScreen"))}function Eat(t,e){if(1&t){const t=Jo();Yo(0,"div",8),es("click",(function(){return Ne(t),os().select()})),Cc(1,"translate"),gn(),Yo(2,"svg",9),Xo(3,"use",11),jo(),jo()}2&t&&hs("title",kc(1,1,"draftingSettings"))}function Oat(t,e){1&t&&(Yo(0,"div",12),gn(),Yo(1,"svg",9),Xo(2,"use",13),jo(),jo()),2&t&&Uo("title",os().content)}function Aat(t,e){1&t&&(Yo(0,"div",12),gn(),Yo(1,"svg",9),Xo(2,"use",14),jo(),jo()),2&t&&Uo("title",os().content)}function Tat(t,e){1&t&&Xo(0,"div"),2&t&&Ps(os().mIsTipExceed?"tooltipOut":"tooltipIn")}let Iat=(()=>{class t{constructor(){this.clickChange=!0,this.content="",this.iconSrc="",this.selectedIconSrc="",this.mIsSelected=!1,this.mIsTipExceed=!1,this.mIsHover=!1,this.mZcBroadcast=MF.instance(),this.mCommand=KF.command}ngOnInit(){"OSNAP"===this.iconSrc&&(this.mIsSelected=XF.instance().getItem("osnapSwitch"),this.mIsSelected&&(this.selectedIconSrc=this.iconSrc),this.mZcBroadcast.subscribeBroardcast(_F.StatusBar,this))}ngOnDestroy(){"OSNAP"===this.iconSrc&&MF.instance().unsubscribeBroardcast(_F.StatusBar,this)}notify(t,e){"switch"===e.type&&"OSNAP"===e.data.name&&"OSNAP"===this.iconSrc&&t===_F.StatusBar&&"object"==typeof e&&(this.mIsSelected=e.data.switch,XF.instance().setItem("osnapSwitch",this.mIsSelected),this.selectedIconSrc=this.mIsSelected?this.iconSrc:"")}enter(){this.mIsHover=!0}select(){let t=U5._instance;t&&t.mGs&&t.mGs.m3DOrbitActive||(this.mIsSelected=!this.mIsSelected,this.selectedIconSrc=this.mIsSelected?this.iconSrc:"")}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵcmp"]=qt({type:t,selectors:[["app-statusBarBtn"]],inputs:{clickChange:"clickChange",content:"content",iconSrc:"iconSrc",selectedIconSrc:"selectedIconSrc"},decls:9,vars:10,consts:[[1,"container","not-select",3,"mouseenter","mouseleave"],["style","margin-right: 2px;","class","control-btn","style","margin-right: 2px;",3,"title","click",4,"ngIf"],["class","control-btn",3,"title","click",4,"ngIf"],["class","control-icon",3,"title","click",4,"ngIf"],["class","control-icon",3,"title",4,"ngIf"],[3,"class",4,"ngIf"],[1,"control-btn",2,"margin-right","2px",3,"title","click"],[1,"control-btn",3,"title","click"],[1,"control-icon",3,"title","click"],["aria-hidden","true",1,"icon"],[0,"xlink","href","#icon-FullScreen"],[0,"xlink","href","#icon-caotushezhi"],[1,"control-icon",3,"title"],[0,"xlink","href","#icon-qiehuanweiming"],[0,"xlink","href","#icon-qiehuanweian"]],template:function(t,e){1&t&&(Yo(0,"div",0),es("mouseenter",(function(){return e.enter()}))("mouseleave",(function(){return e.mIsHover=!1})),Ho(1,Pat,3,3,"div",1),Ho(2,_at,3,3,"div",2),Ho(3,Mat,3,3,"div",2),Ho(4,Dat,4,3,"div",3),Ho(5,Eat,4,3,"div",3),Ho(6,Oat,3,1,"div",4),Ho(7,Aat,3,1,"div",4),Ho(8,Tat,1,2,"div",5),jo()),2&t&&(Ps(e.selectedIconSrc===e.iconSrc?"selected":""),sa(1),Uo("ngIf","GRID"===e.iconSrc&&e.mCommand.GRID),sa(1),Uo("ngIf","LWEIGHT"===e.iconSrc),sa(1),Uo("ngIf","OSNAP"===e.iconSrc),sa(1),Uo("ngIf","FULLSCREEN"===e.iconSrc),sa(1),Uo("ngIf","draftingSettings"===e.iconSrc),sa(1),Uo("ngIf","qiehuanweiming"===e.iconSrc),sa(1),Uo("ngIf","qiehuanweian"===e.iconSrc),sa(1),Uo("ngIf",e.mIsHover))},directives:[Yd],pipes:[H3],styles:[".container[_ngcontent-%COMP%]{box-sizing:border-box;display:flex;justify-content:center;align-items:center;font-size:14px}.container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:1.6em;height:1.6em}.container[_ngcontent-%COMP%] .tooltipIn[_ngcontent-%COMP%]{position:absolute;top:-54px;left:-18px;padding:1em}.container[_ngcontent-%COMP%] .tooltipOut[_ngcontent-%COMP%]{position:absolute;top:-54px;right:-18px;padding:1em}.control-btn[_ngcontent-%COMP%]{padding:0 8px;cursor:pointer;color:var(--editor_not_active_font)}.control-btn[_ngcontent-%COMP%]:hover{background-color:#ffffff1a}.control-icon[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:30px;height:30px;cursor:pointer}.control-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{font-size:20px}.control-icon[_ngcontent-%COMP%]:hover{background-color:var(--editor_main_selected)}.selected[_ngcontent-%COMP%] .control-btn[_ngcontent-%COMP%]{background-color:var(--editor_active);color:#ffffffb3}"]}),t})();function Lat(t,e){if(1&t){const t=Jo();Yo(0,"p",12),es("click",(function(){return Ne(t),os().switch("coordinate")})),Bs(1,"0,0,0"),jo()}}function zat(t,e){if(1&t){const t=Jo();Yo(0,"div"),Yo(1,"app-statusBarBtn",13),es("click",(function(){const e=Ne(t).$implicit;return os().switch(e.iconSrc)})),jo(),jo()}if(2&t){const t=e.$implicit,n=e.index,i=os();sa(1),xs("display",i.statusArr[n+1]?"block":"none"),Uo("content",t.name)("iconSrc",t.iconSrc)("selectedIconSrc",t.selectedIconSrc)}}function Rat(t,e){if(1&t){const t=Jo();Yo(0,"app-statusBarBtn",14),es("click",(function(){return Ne(t),os().changeTheme("light")})),jo()}2&t&&Uo("content",os().mDarkThemeTips)("iconSrc","qiehuanweiming")("clickChange",!1)}function Fat(t,e){if(1&t){const t=Jo();Yo(0,"app-statusBarBtn",14),es("click",(function(){return Ne(t),os().changeTheme("dark")})),jo()}2&t&&Uo("content",os().mLightThemeTips)("iconSrc","qiehuanweian")("clickChange",!1)}function Bat(t,e){if(1&t){const t=Jo();Yo(0,"app-statusBarBtn",14),es("click",(function(){return Ne(t),os().fullScreen()})),jo()}2&t&&Uo("content",os().mFullScreenTip)("iconSrc","FULLSCREEN")("clickChange",!1)}function Vat(t,e){if(1&t){const t=Jo();Yo(0,"app-statusBarBtn",14),es("click",(function(){return Ne(t),os().openSettings()})),jo()}2&t&&Uo("content",os().mDraftingSettings)("iconSrc","draftingSettings")("clickChange",!1)}function Nat(t,e){1&t&&(gn(),fn(),Yo(0,"span"),Bs(1),Cc(2,"translate"),jo()),2&t&&(sa(1),Vs(kc(2,1,"copyright")))}const Hat=function(t){return{disabledCoordinate:t}};let Gat=(()=>{class t{constructor(t){this.modal=t,this.quickBtnsArr=[],this.statusArr=new Array(19).fill(!0),this.mIsFullScreen=!1,this.mFullScreenTip=qF.mLanguagePackage.fullScreen+" - "+qF.mLanguagePackage.shutdown,this.mDraftingSettings=qF.mLanguagePackage.draftingSettings,this.mCoordinateSwitch=HJ.mCoordinateSwitch,this.mDarkThemeTips=qF.mLanguagePackage.theme_dark_tips,this.mLightThemeTips=qF.mLanguagePackage.theme_light_tips,this.mZcadCmdContext=new $F,this.mZcGsSwitch=new HJ,this.mZcBroadcast=MF.instance(),this.mISEdit=!1,this.mShowCopyRight=!0}ngOnInit(){this.mZcBroadcast.subscribeBroardcast(_F.StatusBar,this),this.mZcBroadcast.subscribeBroardcast(_F.WebsocketStatus,this),this.mZcBroadcast.subscribeBroardcast(_F.ResizePage,this),HJ.reset(),this.quickBtnsArr=[{name:"栅格显示",controlFlag:"GRID",iconSrc:"GRID",selectedIconSrc:"",tip:"捕捉模式(F9)"},{name:"线宽",controlFlag:"LWEIGHT",iconSrc:"LWEIGHT",selectedIconSrc:"",tip:"捕捉模式(F9)"}],document.addEventListener("fullscreenchange",(t=>{this.mIsFullScreen=document.fullscreen,this.mIsFullScreen?MF.instance().broardcast(_F.StatusBar,{type:"setting",data:{type:"requestFullscreen"}}):MF.instance().broardcast(_F.StatusBar,{type:"setting",data:{type:"exitFullscreen"}})}),!1)}ngOnDestroy(){MF.instance().unsubscribeBroardcast(_F.StatusBar,this),MF.instance().unsubscribeBroardcast(_F.WebsocketStatus,this),MF.instance().unsubscribeBroardcast(_F.ResizePage,this),document.removeEventListener("fullscreenchange",(t=>{this.mIsFullScreen=document.fullscreen}),!1)}setOptions(t){this.statusArr=t}fullScreen(){let t=document.documentElement;if(this.mIsFullScreen=!this.mIsFullScreen,this.mIsFullScreen){if(!t.requestFullscreen)return void r.error("不支持fullscreen");t.requestFullscreen(),MF.instance().broardcast(_F.StatusBar,{type:"setting",data:{type:"requestFullscreen"}})}else document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen&&document.mozCancelFullScreen(),MF.instance().broardcast(_F.StatusBar,{type:"setting",data:{type:"exitFullscreen"}});const e=qF.mLanguagePackage.fullScreen+" - ";this.mFullScreenTip=this.mIsFullScreen?e+qF.mLanguagePackage.open:e+qF.mLanguagePackage.shutdown}openSettings(){let t=U5._instance;if(t&&t.mGs&&t.mGs.m3DOrbitActive)return;let e=this.modal.create({nzTitle:'<div class="about-title">'+qF.mLanguagePackage.draftingSettings+"</div>",nzMaskClosable:!1,nzContent:Sat,nzClassName:"modal-drafting-settings",nzStyle:{width:"400px"},nzComponentParams:{},nzOnOk:()=>new Promise((t=>setTimeout(t,1e3))),nzFooter:[{label:qF.mLanguagePackage.cancel,onClick:t=>{t.handleCancel()}},{label:qF.mLanguagePackage.ok,type:"primary",onClick:t=>{t.handleOk()}}]}),n=n7.instance().mGs;e.afterOpen.subscribe((t=>{n&&n.setGlobalKeydownEvent(!1)})),e.afterClose.subscribe((t=>{n&&n.setGlobalKeydownEvent(!0)}))}notify(t,e){if(t===_F.StatusBar&&"object"==typeof e&&this.quickBtnsArr.length>0){if("switch"===e.type){let t=e.data,n=t.name;this.quickBtnsArr[0].selectedIconSrc=t.switch?n:""}}else t===_F.WebsocketStatus&&"object"==typeof e?"websocketStatus"===e.type&&(this.mISEdit=e.data.isConnected,this.mISEdit&&this.quickBtnsArr.length<=2?this.quickBtnsArr.splice(2,0,{name:"对象捕捉",controlFlag:"OSNAP",iconSrc:"OSNAP",selectedIconSrc:"",tip:"对象捕捉(F3)"}):!this.mISEdit&&this.quickBtnsArr.length>2&&this.quickBtnsArr.splice(2)):t===_F.ResizePage&&"object"==typeof e&&(this.mShowCopyRight=!(window.innerWidth<1360))}switch(t){let e=U5._instance;if(e&&e.mGs&&e.mGs.m3DOrbitActive)return;let n=qF.mLanguagePackage.command+":<";const i=" "+qF.mLanguagePackage.open+" >",r=" "+qF.mLanguagePackage.shutdown+" >";switch(t){case"coordinate":HJ.mCoordinateSwitch=!HJ.mCoordinateSwitch,this.mCoordinateSwitch=HJ.mCoordinateSwitch,n+=this.mCoordinateSwitch?""+qF.mLanguagePackage.coordinate+i:""+qF.mLanguagePackage.coordinate+r,this.mZcBroadcast.broardcast(_F.History,{label:"",history:n});break;case"SNAP":HJ.mSnapSwitch=!HJ.mSnapSwitch,n+=HJ.mSnapSwitch?""+qF.mLanguagePackage.snap+i:""+qF.mLanguagePackage.snap+r,this.mZcBroadcast.broardcast(_F.History,{label:"",history:n});break;case"GRID":let t="on";"GRID"===this.quickBtnsArr[0].selectedIconSrc?(this.quickBtnsArr[0].selectedIconSrc="",t="off"):(this.quickBtnsArr[0].selectedIconSrc="GRID",t="on"),n7.instance().setExecuteCmdByClickButton("GRID",t);break;case"ORTHO":HJ.mOrthoSwitch=!HJ.mOrthoSwitch,n+=HJ.mOrthoSwitch?""+qF.mLanguagePackage.ortho+i:""+qF.mLanguagePackage.ortho+r,this.mZcBroadcast.broardcast(_F.History,{label:"",history:n});break;case"POLAR":HJ.mPolarSwitch=!HJ.mPolarSwitch,n+=HJ.mPolarSwitch?""+qF.mLanguagePackage.polar+i:""+qF.mLanguagePackage.polar+r,this.mZcBroadcast.broardcast(_F.History,{label:"",history:n});break;case"OSNAP":if(HJ.mOsnapSwitch=!HJ.mOsnapSwitch,XF.instance().setItem("osnapSwitch",HJ.mOsnapSwitch),n+=HJ.mOsnapSwitch?""+qF.mLanguagePackage.oSnap+i:""+qF.mLanguagePackage.oSnap+r,HJ.mOsnapSwitch){let t=XF.instance().getItem("osnapModes");t?0===Object.values(t).filter((t=>t)).length&&this.openSettings():XF.instance().setItem("osnapModes",U3)}else this.mZcBroadcast.broardcast(_F.GsInteraction,{type:"draw",data:{type:"Shorterm",operate:"clearAllSnap"}});this.mZcBroadcast.broardcast(_F.History,{label:"",history:n});break;case"OTRACK":HJ.mOtrackSwitch=!HJ.mOtrackSwitch,n+=HJ.mOtrackSwitch?""+qF.mLanguagePackage.oTrack+i:""+qF.mLanguagePackage.oTrack+r,this.mZcBroadcast.broardcast(_F.History,{label:"",history:n});break;case"DYNAMIC_UCS":HJ.mDynamicUcsSwitch=!HJ.mDynamicUcsSwitch,n+=HJ.mDynamicUcsSwitch?""+qF.mLanguagePackage.dynamicUCS+i:""+qF.mLanguagePackage.dynamicUCS+r,this.mZcBroadcast.broardcast(_F.History,{label:"",history:n});break;case"DYNAMIC_INPUT":HJ.mDynamicInputSwitch=!HJ.mDynamicInputSwitch,n+=HJ.mDynamicInputSwitch?""+qF.mLanguagePackage.dynamicInput+i:""+qF.mLanguagePackage.dynamicInput+r,this.mZcBroadcast.broardcast(_F.History,{label:"",history:n});break;case"LWEIGHT":HJ.mLineWidthSwitch=!HJ.mLineWidthSwitch,n+=HJ.mLineWidthSwitch?""+qF.mLanguagePackage.lineWidth+i:""+qF.mLanguagePackage.lineWidth+r,this.mZcBroadcast.broardcast(_F.GsInteraction,{type:"draw",data:{type:"Longterm"}}),this.mZcBroadcast.broardcast(_F.History,{label:"",history:n});break;case"TRANS":HJ.mTransparencySwitch=!HJ.mTransparencySwitch,n+=HJ.mTransparencySwitch?""+qF.mLanguagePackage.transparency+i:""+qF.mLanguagePackage.transparency+r,this.mZcBroadcast.broardcast(_F.History,{label:"",history:n});break;case"CYCLESELECT_normal":HJ.mCycleSelectSwitch=!HJ.mCycleSelectSwitch,n+=HJ.mCycleSelectSwitch?""+qF.mLanguagePackage.cycleSelect+i:""+qF.mLanguagePackage.cycleSelect+r,this.mZcBroadcast.broardcast(_F.History,{label:"",history:n})}}changeTheme(t){U5._instance&&U5._instance.mGs&&U5._instance.mGs.changeTheme(t)}getThemeColor(){return document.body.getAttribute("cloud2d-theme-style")}}return t["ɵfac"]=function(e){return new(e||t)(Zo(AT))},t["ɵcmp"]=qt({type:t,selectors:[["app-statusBar"]],decls:15,vars:10,consts:[[1,"container"],[2,"padding","3px","display","flex","align-items","center","min-width","530px"],[1,"coordinate",3,"ngClass"],["id","coordinate",3,"click",4,"ngIf"],[1,"quickBtn"],[4,"ngFor","ngForOf"],[1,"statusBarControlBtn"],[3,"content","iconSrc","clickChange","click",4,"ngIf"],[1,"copyright"],["aria-hidden","true",1,"icon"],[0,"xlink","href","#icon-ZWSOFT"],[4,"ngIf"],["id","coordinate",3,"click"],[3,"content","iconSrc","selectedIconSrc","click"],[3,"content","iconSrc","clickChange","click"]],template:function(t,e){1&t&&(Yo(0,"div",0),Yo(1,"div",1),Yo(2,"div",2),Ho(3,Lat,2,0,"p",3),jo(),Yo(4,"div",4),Ho(5,zat,2,5,"div",5),jo(),jo(),Yo(6,"div",6),Ho(7,Rat,1,3,"app-statusBarBtn",7),Ho(8,Fat,1,3,"app-statusBarBtn",7),Ho(9,Bat,1,3,"app-statusBarBtn",7),Ho(10,Vat,1,3,"app-statusBarBtn",7),jo(),jo(),Yo(11,"div",8),gn(),Yo(12,"svg",9),Xo(13,"use",10),jo(),Ho(14,Nat,3,3,"span",11),jo()),2&t&&(sa(2),Uo("ngClass",fc(8,Hat,!e.mCoordinateSwitch)),sa(1),Uo("ngIf",e.statusArr[0]),sa(2),Uo("ngForOf",e.quickBtnsArr),sa(2),Uo("ngIf","dark"===e.getThemeColor()),sa(1),Uo("ngIf","light"===e.getThemeColor()),sa(1),Uo("ngIf",e.statusArr[18]),sa(1),Uo("ngIf",e.mISEdit),sa(4),Uo("ngIf",e.mShowCopyRight))},directives:[Gd,Yd,Ud,Iat],pipes:[H3],styles:[".container[_ngcontent-%COMP%]{z-index:99;display:flex;justify-content:space-between;height:100%;font-size:12px;color:var(--main_font);background-color:var(--editor_main_background)}.container[_ngcontent-%COMP%] .coordinate[_ngcontent-%COMP%]{display:flex;align-items:center;height:100%;border:1px solid var(--editor_main_border);background-color:var(--editor_main_selected);width:240px;padding:0 .5em;margin:0 10px;text-align:left;color:#fff}.container[_ngcontent-%COMP%] .coordinate[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.container[_ngcontent-%COMP%] .disabledCoordinate[_ngcontent-%COMP%]{color:var(--editor_not_active_font);background-color:var(--editor_not_active)}.container[_ngcontent-%COMP%] .quickBtn[_ngcontent-%COMP%]{display:flex;align-items:center;border:1px solid var(--editor_main_border);background-color:var(--editor_not_active)}.container[_ngcontent-%COMP%] .statusBarControlBtn[_ngcontent-%COMP%]{height:100%;width:auto;padding-right:1em;display:flex}.container[_ngcontent-%COMP%] .statusBarControlBtn[_ngcontent-%COMP%] .settingBtn[_ngcontent-%COMP%]{display:flex}.copyright[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;margin-top:-30px;height:30px;color:#aaa;min-width:980px;margin-left:5px}.copyright[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{height:20px;width:80px;margin-right:5px}"]}),t})();function Zat(t,e){1&t&&(gn(),Xo(0,"use",41))}function Uat(t,e){1&t&&(gn(),Xo(0,"use",42))}function Wat(t,e){1&t&&(gn(),Xo(0,"use",43))}function Yat(t,e){1&t&&(gn(),Xo(0,"use",44))}function jat(t,e){1&t&&(gn(),Xo(0,"use",45))}function Xat(t,e){1&t&&(gn(),Xo(0,"use",46))}function qat(t,e){if(1&t){const t=Jo();Yo(0,"div",33),es("click",(function(){Ne(t);const e=os().$implicit;return os(2).zwExecuteCommand(e.command,e.subCommand)})),Cc(1,"translate"),gn(),Yo(2,"svg",34),Ho(3,Zat,1,0,"use",35),Ho(4,Uat,1,0,"use",36),Ho(5,Wat,1,0,"use",37),Ho(6,Yat,1,0,"use",38),Ho(7,jat,1,0,"use",39),Ho(8,Xat,1,0,"use",40),jo(),jo()}if(2&t){const t=os().$implicit;Uo("title",kc(1,8,t.name)),sa(2),Uo("ngSwitch",t.icon),sa(1),Uo("ngSwitchCase","pingyi"),sa(1),Uo("ngSwitchCase","ZoomCenter"),sa(1),Uo("ngSwitchCase","ZoomIn"),sa(1),Uo("ngSwitchCase","ZoomOut"),sa(1),Uo("ngSwitchCase","ZoomAll"),sa(1),Uo("ngSwitchCase","ZoomRange")}}function $at(t,e){if(1&t&&(Yo(0,"div"),Ho(1,qat,9,10,"div",3),jo()),2&t){const t=e.$implicit,n=os(2);sa(1),Uo("ngIf",n.isShow(t.command,t.type))}}function Kat(t,e){if(1&t){const t=Jo();Yo(0,"div",33),es("click",(function(){return Ne(t),os(2).regen()})),Cc(1,"translate"),gn(),Yo(2,"svg",47),Xo(3,"use",48),jo(),jo()}2&t&&Uo("title",kc(1,1,"regen"))}function Jat(t,e){if(1&t){const t=Jo();Yo(0,"div",33),es("click",(function(){return Ne(t),os(2).zwExecuteCommand("plot")})),Cc(1,"translate"),gn(),Yo(2,"svg",47),Xo(3,"use",49),jo(),jo()}2&t&&Uo("title",kc(1,1,"print"))}function Qat(t,e){if(1&t&&(Yo(0,"div",9),gn(),Yo(1,"svg",50),Xo(2,"use"),jo(),Bs(3),Cc(4,"translate"),fn(),Xo(5,"i",13),jo()),2&t){os();const t=Go(6),e=os();Uo("nzDropdownMenu",t),sa(2),Fo("href","#icon-"+e.mDefaultDirection.icon,null,"xlink"),sa(1),Ns(" ",kc(4,3,e.mDefaultDirection.translate)," ")}}function tot(t,e){if(1&t){const t=Jo();Yo(0,"li",51),es("click",(function(){const e=Ne(t).$implicit;return os(2).changeDirection(e)})),gn(),Yo(1,"svg",50),Xo(2,"use"),jo(),Bs(3),Cc(4,"translate"),jo()}if(2&t){const t=e.$implicit;sa(2),Fo("href","#icon-"+t.icon,null,"xlink"),sa(1),Ns(" ",kc(4,2,t.translate)," ")}}function eot(t,e){if(1&t){const t=Jo();Yo(0,"div",52),es("click",(function(){return Ne(t),os(2).zwExecuteCommand("fcmp")})),gn(),Yo(1,"svg",50),Xo(2,"use"),jo(),Bs(3," 图纸对比 "),jo()}2&t&&(sa(2),Fo("href","#icon-duibifenxi",null,"xlink"))}function not(t,e){1&t&&(gn(),Xo(0,"use",53))}function iot(t,e){1&t&&(gn(),Xo(0,"use",54))}function rot(t,e){1&t&&(gn(),Xo(0,"use",53))}function aot(t,e){1&t&&(gn(),Xo(0,"use",54))}function oot(t,e){if(1&t){const t=Jo();Yo(0,"li",51),es("click",(function(){Ne(t);const e=os().$implicit,n=os(2);return n.editCommand(e,n.mPolylineButtons,!0)})),gn(),Yo(1,"svg",10),Ho(2,rot,1,0,"use",11),Ho(3,aot,1,0,"use",12),jo(),Bs(4),Cc(5,"translate"),jo()}if(2&t){const t=os().$implicit;sa(1),Uo("ngSwitch",t.icon),sa(1),Uo("ngSwitchCase","duoduanxian"),sa(1),Uo("ngSwitchCase","juxing"),sa(1),Ns(" ",kc(5,4,t.translate)," ")}}function sot(t,e){if(1&t&&(Yo(0,"div"),Ho(1,oot,6,6,"li",55),jo()),2&t){const t=e.$implicit,n=os(2);sa(1),Uo("ngIf",n.isShow("Polyline",t.type))}}function lot(t,e){1&t&&(gn(),Xo(0,"use",56))}function cot(t,e){1&t&&(gn(),Xo(0,"use",57))}function hot(t,e){1&t&&(gn(),Xo(0,"use",58))}function dot(t,e){1&t&&(gn(),Xo(0,"use",59))}function uot(t,e){1&t&&(gn(),Xo(0,"use",56))}function mot(t,e){1&t&&(gn(),Xo(0,"use",57))}function pot(t,e){1&t&&(gn(),Xo(0,"use",58))}function got(t,e){1&t&&(gn(),Xo(0,"use",59))}function fot(t,e){if(1&t){const t=Jo();Yo(0,"li",51),es("click",(function(){const e=Ne(t).$implicit,n=os(2);return n.editCommand(e,n.mCircleButtons)})),gn(),Yo(1,"svg",10),Ho(2,uot,1,0,"use",15),Ho(3,mot,1,0,"use",16),Ho(4,pot,1,0,"use",17),Ho(5,got,1,0,"use",18),jo(),Bs(6),Cc(7,"translate"),jo()}if(2&t){const t=e.$implicit;sa(1),Uo("ngSwitch",t.icon),sa(1),Uo("ngSwitchCase","yuanxinbanjing"),sa(1),Uo("ngSwitchCase","yuanxinzhijing"),sa(1),Uo("ngSwitchCase","liangdian"),sa(1),Uo("ngSwitchCase","yuansandian"),sa(1),Ns(" ",kc(7,6,t.translate)," ")}}function bot(t,e){1&t&&(gn(),Xo(0,"use",60))}function yot(t,e){1&t&&(gn(),Xo(0,"use",61))}function vot(t,e){1&t&&(gn(),Xo(0,"use",62))}function wot(t,e){1&t&&(gn(),Xo(0,"use",63))}function xot(t,e){1&t&&(gn(),Xo(0,"use",60))}function Cot(t,e){1&t&&(gn(),Xo(0,"use",61))}function kot(t,e){1&t&&(gn(),Xo(0,"use",62))}function Sot(t,e){1&t&&(gn(),Xo(0,"use",63))}function Pot(t,e){if(1&t){const t=Jo();Yo(0,"li",51),es("click",(function(){const e=Ne(t).$implicit,n=os(2);return n.editCommand(e,n.mArcButtons)})),gn(),Yo(1,"svg",10),Ho(2,xot,1,0,"use",20),Ho(3,Cot,1,0,"use",21),Ho(4,kot,1,0,"use",22),Ho(5,Sot,1,0,"use",23),jo(),Bs(6),Cc(7,"translate"),jo()}if(2&t){const t=e.$implicit;sa(1),Uo("ngSwitch",t.icon),sa(1),Uo("ngSwitchCase","qidianduandianbanjing"),sa(1),Uo("ngSwitchCase","qidianyuanxinduandian"),sa(1),Uo("ngSwitchCase","yuanhusandian"),sa(1),Uo("ngSwitchCase","yuanxinqidianduandian"),sa(1),Ns(" ",kc(7,6,t.translate)," ")}}function _ot(t,e){1&t&&(gn(),Xo(0,"use",64))}function Mot(t,e){1&t&&(gn(),Xo(0,"use",65))}function Dot(t,e){1&t&&(gn(),Xo(0,"use",66))}function Eot(t,e){1&t&&(gn(),Xo(0,"use",64))}function Oot(t,e){1&t&&(gn(),Xo(0,"use",65))}function Aot(t,e){1&t&&(gn(),Xo(0,"use",66))}function Tot(t,e){if(1&t){const t=Jo();Yo(0,"li",51),es("click",(function(){Ne(t);const e=os().$implicit,n=os(2);return n.editCommand(e,n.mMeasureButtons)})),gn(),Yo(1,"svg",10),Ho(2,Eot,1,0,"use",25),Ho(3,Oot,1,0,"use",26),Ho(4,Aot,1,0,"use",27),jo(),Bs(5),Cc(6,"translate"),jo()}if(2&t){const t=os().$implicit;sa(1),Uo("ngSwitch",t.icon),sa(1),Uo("ngSwitchCase","juli"),sa(1),Uo("ngSwitchCase","jiaodu"),sa(1),Uo("ngSwitchCase","mianji"),sa(1),Ns(" ",kc(6,5,t.translate)," ")}}function Iot(t,e){if(1&t&&(Yo(0,"div"),Ho(1,Tot,7,7,"li",55),jo()),2&t){const t=e.$implicit,n=os(2);sa(1),Uo("ngIf",n.isShow("Measure",t.type))}}function Lot(t,e){1&t&&Xo(0,"img",70),2&t&&Uo("src",os().$implicit.icon,Hr)}function zot(t,e){if(1&t&&(Yo(0,"span"),Bs(1),jo()),2&t){const t=os().$implicit;sa(1),Vs(t.label)}}function Rot(t,e){if(1&t){const t=Jo();Yo(0,"div"),Yo(1,"div",67),es("click",(function(){const e=Ne(t),n=e.index,i=e.$implicit;return os(2).extendButtonClick(n,i)})),Ho(2,Lot,1,1,"img",68),Ho(3,zot,2,1,"span",69),jo(),jo()}if(2&t){const t=e.$implicit;sa(1),ks(t.style?t.style:""),Uo("title",t.title?t.title:""),sa(1),Uo("ngIf",t.icon),sa(1),Uo("ngIf",t.label)}}function Fot(t,e){if(1&t){const t=Jo();Yo(0,"div",71),es("click",(function(){return Ne(t),os(2).showStyleModal()})),Cc(1,"translate"),gn(),Yo(2,"svg",47),Xo(3,"use",72),jo(),jo()}2&t&&Uo("title",kc(1,1,"text_style"))}function Bot(t,e){if(1&t){const t=Jo();Yo(0,"div",71),es("click",(function(){return Ne(t),os(2).showDimStyleModal()})),Cc(1,"translate"),gn(),Yo(2,"svg",47),Xo(3,"use",73),jo(),jo()}2&t&&Uo("title",kc(1,1,"dimensionStyle"))}function Vot(t,e){if(1&t){const t=Jo();Yo(0,"div",74),es("click",(function(){return Ne(t),os(2).showSignatureDataModal()})),Bs(1),Cc(2,"translate"),Xo(3,"i",75),jo()}2&t&&(sa(1),Ns(" ",kc(2,1,"sign_demo_btn")," "))}function Not(t,e){if(1&t){const t=Jo();Yo(0,"div",76),es("nzPopoverVisibleChange",(function(e){return Ne(t),os(2).qrCodeChange(e)})),gn(),Yo(1,"svg",77),Xo(2,"use",78),jo(),fn(),Yo(3,"span"),Bs(4),Cc(5,"translate"),jo(),jo()}if(2&t){os();const t=Go(70),e=os();xs("display",e.qrCode?"block":"none")("margin-right",e.isForSDK||e.isAnonymous||!e.isCurrentVersion?"40px":"122px"),Uo("nzPopoverContent",t),sa(4),Vs(kc(5,6,"viewInWeChat"))}}function Hot(t,e){if(1&t&&(Yo(0,"div",79),Xo(1,"img",80),Yo(2,"span"),Bs(3),Cc(4,"translate"),jo(),Yo(5,"span"),Bs(6),Cc(7,"translate"),jo(),jo()),2&t){const t=os(2);sa(1),Uo("src",t.qrCode,Hr),sa(2),Vs(kc(4,3,"qr_code_tips_one")),sa(3),Vs(kc(7,5,"qr_code_tips_two"))}}function Got(t,e){if(1&t&&(Yo(0,"div",1),Ho(1,$at,2,1,"div",2),Ho(2,Kat,4,3,"div",3),Ho(3,Jat,4,3,"div",3),Ho(4,Qat,6,5,"div",4),Yo(5,"nz-dropdown-menu",null,5),Yo(7,"ul",6),Ho(8,tot,5,4,"li",7),jo(),jo(),Ho(9,eot,4,1,"div",8),Yo(10,"div",1),Yo(11,"div"),Yo(12,"div",9),gn(),Yo(13,"svg",10),Ho(14,not,1,0,"use",11),Ho(15,iot,1,0,"use",12),jo(),Bs(16),Cc(17,"translate"),fn(),Xo(18,"i",13),jo(),Yo(19,"nz-dropdown-menu",null,14),Yo(21,"ul",6),Ho(22,sot,2,1,"div",2),jo(),jo(),jo(),Yo(23,"div"),Yo(24,"div",9),gn(),Yo(25,"svg",10),Ho(26,lot,1,0,"use",15),Ho(27,cot,1,0,"use",16),Ho(28,hot,1,0,"use",17),Ho(29,dot,1,0,"use",18),jo(),Bs(30),Cc(31,"translate"),fn(),Xo(32,"i",13),jo(),Yo(33,"nz-dropdown-menu",null,19),Yo(35,"ul",6),Ho(36,fot,8,8,"li",7),jo(),jo(),jo(),Yo(37,"div"),Yo(38,"div",9),gn(),Yo(39,"svg",10),Ho(40,bot,1,0,"use",20),Ho(41,yot,1,0,"use",21),Ho(42,vot,1,0,"use",22),Ho(43,wot,1,0,"use",23),jo(),Bs(44),Cc(45,"translate"),fn(),Xo(46,"i",13),jo(),Yo(47,"nz-dropdown-menu",null,24),Yo(49,"ul",6),Ho(50,Pot,8,8,"li",7),jo(),jo(),jo(),Yo(51,"div"),Yo(52,"div",9),gn(),Yo(53,"svg",10),Ho(54,_ot,1,0,"use",25),Ho(55,Mot,1,0,"use",26),Ho(56,Dot,1,0,"use",27),jo(),Bs(57),Cc(58,"translate"),fn(),Xo(59,"i",13),jo(),Yo(60,"nz-dropdown-menu",null,28),Yo(62,"ul",6),Ho(63,Iot,2,1,"div",2),jo(),jo(),jo(),Ho(64,Rot,4,5,"div",2),Ho(65,Fot,4,3,"div",29),Ho(66,Bot,4,3,"div",29),jo(),Ho(67,Vot,4,3,"div",30),Ho(68,Not,6,8,"div",31),Ho(69,Hot,8,7,"ng-template",null,32,Yc),jo()),2&t){const t=Go(20),e=Go(34),n=Go(48),i=Go(61),r=os();sa(1),Uo("ngForOf",r.toolList),sa(1),Uo("ngIf",r.ifDisplay("视口重生成")&&r.isShow("Regen")),sa(1),Uo("ngIf",r.mLayoutIsActive&&r.isShow("Plot")),sa(1),Uo("ngIf",r.isShow("View")),sa(4),Uo("ngForOf",r.directions),sa(1),Uo("ngIf",r.isShow("Fcmp")),sa(2),xs("display",r.elementDisplay("Polyline")),sa(1),Uo("nzDropdownMenu",t),sa(1),Uo("ngSwitch",r.mPolylineButtons.icon),sa(1),Uo("ngSwitchCase","duoduanxian"),sa(1),Uo("ngSwitchCase","juxing"),sa(1),Ns(" ",kc(17,48,r.mPolylineButtons.translate)," "),sa(6),Uo("ngForOf",r.mPolylineButtons.submenu),sa(1),xs("display",r.elementDisplay("Circle")),sa(1),Uo("nzDropdownMenu",e),sa(1),Uo("ngSwitch",r.mCircleButtons.icon),sa(1),Uo("ngSwitchCase","yuanxinbanjing"),sa(1),Uo("ngSwitchCase","yuanxinzhijing"),sa(1),Uo("ngSwitchCase","liangdian"),sa(1),Uo("ngSwitchCase","yuansandian"),sa(1),Ns(" ",kc(31,50,r.mCircleButtons.translate)," "),sa(6),Uo("ngForOf",r.mCircleButtons.submenu),sa(1),xs("display",r.elementDisplay("Arc")),sa(1),Uo("nzDropdownMenu",n),sa(1),Uo("ngSwitch",r.mArcButtons.icon),sa(1),Uo("ngSwitchCase","qidianduandianbanjing"),sa(1),Uo("ngSwitchCase","qidianyuanxinduandian"),sa(1),Uo("ngSwitchCase","yuanhusandian"),sa(1),Uo("ngSwitchCase","yuanxinqidianduandian"),sa(1),Ns(" ",kc(45,52,r.mArcButtons.translate)," "),sa(6),Uo("ngForOf",r.mArcButtons.submenu),sa(1),xs("display",r.elementDisplay("Measure")),sa(1),Uo("nzDropdownMenu",i),sa(1),Uo("ngSwitch",r.mMeasureButtons.icon),sa(1),Uo("ngSwitchCase","juli"),sa(1),Uo("ngSwitchCase","jiaodu"),sa(1),Uo("ngSwitchCase","mianji"),sa(1),Ns(" ",kc(58,54,r.mMeasureButtons.translate)," "),sa(6),Uo("ngForOf",r.mMeasureButtons.submenu),sa(1),Uo("ngForOf",r.mExtendButtons),sa(1),Uo("ngIf",r.environment.forSDK&&r.isShow("Style")),sa(1),Uo("ngIf",r.environment.forSDK&&r.isShow("DimStyle")),sa(1),Uo("ngIf",r.isShow("Sign")),sa(1),Uo("ngIf",!r.isMiniProgram)}}let Zot=(()=>{class t{constructor(t){this.modal=t,this.mLayoutIndex=0,this.toolList=[{type:"Pan",icon:"pingyi",name:"editor_tool_move",command:"’_pan",subCommand:""},{type:"ZoomCenter",icon:"ZoomCenter",name:"editor_tool_ZoomCenter",command:"’_zoom",subCommand:"_c"},{type:"ZoomIn",icon:"ZoomIn",name:"editor_tool_ZoomIn",command:"’_zoom",subCommand:"2x"},{type:"ZoomOut",icon:"ZoomOut",name:"editor_tool_ZoomOut",command:"’_zoom",subCommand:".5x"},{type:"ZoomAll",icon:"ZoomAll",name:"editor_tool_ZoomAll",command:"’_zoom",subCommand:"_a"},{type:"ZoomRange",icon:"ZoomRange",name:"editor_tool_ZoomRange",command:"’_zoom",subCommand:"_e"}],this.mPolylineButtons={command:"",translate:"editor_tool_Polyline",icon:"duoduanxian",submenu:[{command:"pline",mainBranch:void 0,subBranch:void 0,translate:"editor_tool_Polyline",icon:"duoduanxian",type:"PLINE"},{command:"rectangle",mainBranch:void 0,subBranch:void 0,translate:"editor_tool_rectangle",icon:"juxing",type:"RECTANGLE"}]},this.mCircleButtons={command:"circle",translate:"editor_tool_Circle",icon:"yuanxinbanjing",submenu:[{command:"circle",mainBranch:eW.cCenterBranch,subBranch:eW.cCenterRadiusBranch,translate:"editor_tool_CircleRadius",icon:"yuanxinbanjing"},{command:"circle",mainBranch:eW.cCenterBranch,subBranch:eW.cCenterDiameterBranch,translate:"editor_tool_CircleDiameter",icon:"yuanxinzhijing"},{command:"circle",mainBranch:eW.c2pFirstBranch,subBranch:void 0,translate:"editor_tool_Circle2p",icon:"liangdian"},{command:"circle",mainBranch:eW.c3pFirstBranch,subBranch:void 0,translate:"editor_tool_Circle3p",icon:"yuansandian"}]},this.mArcButtons={command:"arc",translate:"editor_tool_Arc",icon:"yuanhusandian",submenu:[{command:"arc",mainBranch:$U.bStart,subBranch:void 0,translate:"editor_tool_Arc3p",icon:"yuanhusandian"},{command:"arc",mainBranch:$U.bStart,subBranch:$U.bStartCenter,translate:"editor_tool_ArcSCE",icon:"qidianyuanxinduandian"},{command:"arc",mainBranch:$U.bStart,subBranch:$U.bStartSecondEnd,translate:"editor_tool_ArcSEC",icon:"qidianduandianbanjing"},{command:"arc",mainBranch:$U.bCenter,subBranch:void 0,translate:"editor_tool_ArcCSE",icon:"yuanxinqidianduandian"}]},this.mMeasureButtons={command:"measuregeom",translate:"editor_tool_Measure",icon:"juli",submenu:[{command:"dist",mainBranch:void 0,subBranch:void 0,translate:"editor_tool_Dist",icon:"juli",type:"DIST"},{command:"measuregeom",mainBranch:gW.mAStartBranch,subBranch:void 0,translate:"editor_tool_Angle",icon:"jiaodu",type:"MEASUREGEOM"},{command:"area",mainBranch:void 0,subBranch:void 0,translate:"editor_tool_Area",icon:"mianji",type:"AREA"}]},this.statusSubject=new y,this.directions=X7,this.mDefaultDirection=X7[0],this.mZcBroadcast=MF.instance(),this.mDocEditMode=EW.Readonly,this.mLayoutIsActive=!0,this.mSignImagelist=[],this.mSelectedSignImageIndex=0,this.operatePermission=m4,this.environment=tU,this.isAnonymous=!1,this.isForSDK=tU.forSDK,this.isCurrentVersion=!0,this.isMiniProgram=fF,this.hideTool=new Dc,this.extendClick=new Dc,this.showModal=new Dc,this.getQrCode=new Dc}ngOnChanges(t){if(t.mLayoutIndex){let e=t.mLayoutIndex.currentValue;(e||0===e)&&(this.mDefaultDirection=X7[0])}}ngOnInit(){MF.instance().subscribeBroardcast(_F.ChangeDirection,this),MF.instance().subscribeBroardcast(_F.WebsocketStatus,this),MF.instance().subscribeBroardcast(_F.UpdatePage,this),MF.instance().subscribeBroardcast(_F.LayoutInActive,this),MF.instance().subscribeBroardcast(_F.GetFileData,this),-1!==location.href.indexOf("/anonymous")&&(this.isAnonymous=!0)}zwExecuteCommand(t,e,n){rB.instance().mIsAnonymous&&("plot"===t||"’_zoom"===t&&"_c"===e)?MF.instance().broardcast(_F.AnonymousCallback,{type:"showAnonymousModal"}):n7.instance().setExecuteCmdByClickButton(t,e,n)}editCommand(t,e,n=!1){n7.instance().mDrawCommentBubble||((new OF).pub(EF.ESCAPE,{enter:null,esc:!0}),e.icon=t.icon,n&&(e.translate=t.translate),this.zwExecuteCommand(t.command,t.mainBranch,t.subBranch))}changeDirection(t){this.mDefaultDirection=t,t.dir===Q3.Orbit?this.zwExecuteCommand(t.command):this.zwExecuteCommand("-view",t.command)}regen(){rB.instance().mIsAnonymous?MF.instance().broardcast(_F.AnonymousCallback,{type:"showAnonymousModal"}):MF.instance().broardcast(_F.GetFileData,{type:"regen"})}showStyleModal(){(function(){let t=new OF;new Promise(((e,n)=>{t.addCb(EF.styleModal,(()=>{MF.instance().broardcast(_F.CmdModalVisible,{type:"styleModal",data:{visible:!0}}),e(!0)}))}))})(),this.showModal.emit()}showDimStyleModal(){(function(){let t=new OF;new Promise(((e,n)=>{t.addCb(EF.dimStyleModal,(()=>{MF.instance().broardcast(_F.CmdModalVisible,{type:"dimStyleModal",data:{visible:!0}}),e(!0)}))}))})(),this.showModal.emit()}notify(t,e){switch(t){case _F.ChangeDirection:if(e.data||e.data===Q3.TOP){let t=e.data,n=X7.find((e=>e.dir===t));this.mDefaultDirection=n}break;case _F.WebsocketStatus:"websocketStatus"===e.type&&(e.data.isConnected?(Object.assign(eB.commandButton,{Polyline:!0,Circle:!0,Arc:!0,Measure:!0}),Object.assign(eB.command,tB.command),iB(Object.assign(Object.assign({},tB),{panel:Object.assign(Object.assign({},tB.panel),{opmPanel:!1,versionPanel:!tU.forSDK&&tB.panel.versionPanel,signPanel:!!tU.forSDK&&KF.panel.signPanel}),commandButton:Object.assign(Object.assign({},tB.commandButton),{Sign:!1})})),this.mDocEditMode=EW.Edit):(Object.assign(eB.commandButton,{commandButton:Object.assign({},JF.commandButton)}),Object.assign(eB.command,JF.command),Object.assign(KF.commandButton,{commandButton:Object.assign({},JF.commandButton)}),Object.assign(KF.command,JF.command),this.mDocEditMode=EW.Readonly),MF.instance().broardcast(_F.GetFileData,{type:"getUserOptions",data:{}}));break;case _F.LayoutInActive:{if(void 0===e.data)break;let{data:t}=e;this.mLayoutIsActive=t;break}case _F.GetFileData:"setSignImageList"===e.type&&e.data&&(this.mSignImagelist=e.data.signImageList);break;case _F.VersionPanel:e.type===p4.SwitchEnd&&(this.isCurrentVersion=e.data.isCurrent)}}ifDisplay(t){return rB.instance().hasPermission(t)}isShow(t,e){let n=t,i=KF.commandButton,r=KF.command;return"Polyline"!==t||e?"Measure"!==t||e?"Regen"===t||"Style"===t||"DimStyle"===t||"Sign"===t?i[t]:-1!==t.indexOf("_")&&e?(n=t.split("_")[1].toUpperCase(),i[e]&&r[n]):(n=e||t.toUpperCase(),i[t]&&r[n]):i.Measure&&(r.DIST||r.AREA||r.MEASUREGEOM):i.Polyline&&(r.PLINE||r.RECTANGLE)}elementDisplay(t){return this.isShow(t)?"":"none"}isInEditMode(){return this.mDocEditMode===EW.Edit}extendButtonClick(t,e){this.extendClick.emit({index:t,button:e})}ngOnDestroy(){this.statusSubject.unsubscribe(),MF.instance().unsubscribeBroardcast(_F.ChangeDirection,this),MF.instance().unsubscribeBroardcast(_F.WebsocketStatus,this),MF.instance().unsubscribeBroardcast(_F.UpdatePage,this),MF.instance().unsubscribeBroardcast(_F.LayoutInActive,this)}mouseoverSignImage(t){this.mSelectedSignImageIndex=t}showSignatureDataModal(){this.modal.create({nzTitle:qF.mLanguagePackage.sign_blockData_title,nzContent:R7}).afterClose.subscribe((()=>{U5._instance&&U5._instance.mGs&&U5._instance.mGs.setGlobalKeydownEvent(!0)}))}qrCodeChange(t){t&&this.getQrCode.emit()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(AT))},t["ɵcmp"]=qt({type:t,selectors:[["app-tool"]],inputs:{mLayoutIndex:"mLayoutIndex",mExtendButtons:"mExtendButtons",qrCode:"qrCode"},outputs:{hideTool:"hideTool",extendClick:"extendClick",showModal:"showModal",getQrCode:"getQrCode"},features:[pe],decls:1,vars:1,consts:[["class","tool-container",4,"ngIf"],[1,"tool-container"],[4,"ngFor","ngForOf"],["class","tool-item",3,"title","click",4,"ngIf"],["nz-dropdown","","nzTrigger","click","class","direction",3,"nzDropdownMenu",4,"ngIf"],["navMenu","nzDropdownMenu"],["nz-menu","",1,"dropdownMenu"],["nz-menu-item","",3,"click",4,"ngFor","ngForOf"],["nzTrigger","click","class","direction",3,"click",4,"ngIf"],["nz-dropdown","","nzTrigger","click",1,"direction",3,"nzDropdownMenu"],["aria-hidden","true",1,"icon",3,"ngSwitch"],[0,"xlink","href","#icon-duoduanxian",4,"ngSwitchCase"],[0,"xlink","href","#icon-juxing",4,"ngSwitchCase"],["nz-icon","","nzType","down"],["nzDropdownPolylineMenu","nzDropdownMenu"],[0,"xlink","href","#icon-yuanxinbanjing",4,"ngSwitchCase"],[0,"xlink","href","#icon-yuanxinzhijing",4,"ngSwitchCase"],[0,"xlink","href","#icon-liangdian",4,"ngSwitchCase"],[0,"xlink","href","#icon-yuansandian",4,"ngSwitchCase"],["navCircleMenu","nzDropdownMenu"],[0,"xlink","href","#icon-qidianduandianbanjing",4,"ngSwitchCase"],[0,"xlink","href","#icon-qidianyuanxinduandian",4,"ngSwitchCase"],[0,"xlink","href","#icon-yuanhusandian",4,"ngSwitchCase"],[0,"xlink","href","#icon-yuanxinqidianduandian",4,"ngSwitchCase"],["navArcMenu","nzDropdownMenu"],[0,"xlink","href","#icon-juli",4,"ngSwitchCase"],[0,"xlink","href","#icon-jiaodu",4,"ngSwitchCase"],[0,"xlink","href","#icon-mianji",4,"ngSwitchCase"],["navMeasureMenu","nzDropdownMenu"],["class","tool-item form",3,"title","click",4,"ngIf"],["class","signature",3,"click",4,"ngIf"],["class","miniProgram","nz-popover","","nzPopoverPlacement","bottom",3,"display","nzPopoverContent","marginRight","nzPopoverVisibleChange",4,"ngIf"],["miniProgram",""],[1,"tool-item",3,"title","click"],["aria-hidden","true",1,"tool_icon",3,"ngSwitch"],[0,"xlink","href","#icon-pingyi",4,"ngSwitchCase"],[0,"xlink","href","#icon-ZoomCenter",4,"ngSwitchCase"],[0,"xlink","href","#icon-ZoomIn",4,"ngSwitchCase"],[0,"xlink","href","#icon-ZoomOut",4,"ngSwitchCase"],[0,"xlink","href","#icon-ZoomAll",4,"ngSwitchCase"],[0,"xlink","href","#icon-ZoomRange",4,"ngSwitchCase"],[0,"xlink","href","#icon-pingyi"],[0,"xlink","href","#icon-ZoomCenter"],[0,"xlink","href","#icon-ZoomIn"],[0,"xlink","href","#icon-ZoomOut"],[0,"xlink","href","#icon-ZoomAll"],[0,"xlink","href","#icon-ZoomRange"],["aria-hidden","true",1,"tool_icon"],[0,"xlink","href","#icon-geshizhuanhuan"],[0,"xlink","href","#icon-dayin"],["aria-hidden","true",1,"icon"],["nz-menu-item","",3,"click"],["nzTrigger","click",1,"direction",3,"click"],[0,"xlink","href","#icon-duoduanxian"],[0,"xlink","href","#icon-juxing"],["nz-menu-item","",3,"click",4,"ngIf"],[0,"xlink","href","#icon-yuanxinbanjing"],[0,"xlink","href","#icon-yuanxinzhijing"],[0,"xlink","href","#icon-liangdian"],[0,"xlink","href","#icon-yuansandian"],[0,"xlink","href","#icon-qidianduandianbanjing"],[0,"xlink","href","#icon-qidianyuanxinduandian"],[0,"xlink","href","#icon-yuanhusandian"],[0,"xlink","href","#icon-yuanxinqidianduandian"],[0,"xlink","href","#icon-juli"],[0,"xlink","href","#icon-jiaodu"],[0,"xlink","href","#icon-mianji"],[1,"extendButton",3,"title","click"],[3,"src",4,"ngIf"],[4,"ngIf"],[3,"src"],[1,"tool-item","form",3,"title","click"],[0,"xlink","href","#icon-wenziyangshi"],[0,"xlink","href","#icon-biaozhuyangshi1"],[1,"signature",3,"click"],["nz-icon","","nzType","question-circle","nzTheme","fill"],["nz-popover","","nzPopoverPlacement","bottom",1,"miniProgram",3,"nzPopoverContent","nzPopoverVisibleChange"],["aria-hidden","true",1,"icon","svg-icon"],[0,"xlink","href","#icon-xiaochengxu"],[1,"miniProgram-content"],[1,"qrCode",3,"src"]],template:function(t,e){1&t&&Ho(0,Got,71,56,"div",0),2&t&&Uo("ngIf",e.mLayoutIsActive)},directives:[Yd,Ud,bA,oA,gA,$d,Kd,sM,eP,tA,eI],pipes:[H3],styles:['.tool-container[_ngcontent-%COMP%]{display:flex;align-items:center;height:100%;padding-left:5px;border-bottom:1px solid var(--editor_main_border)}.tool-container[_ngcontent-%COMP%] .tool-item[_ngcontent-%COMP%]{margin:5px;width:32px;height:30px;display:flex;align-items:center;justify-content:center;cursor:pointer}.tool-container[_ngcontent-%COMP%] .tool-item[_ngcontent-%COMP%]:hover{background-color:var(--editor_main_selected)}.tool-container[_ngcontent-%COMP%] .tool-item[_ngcontent-%COMP%]:hover svg[_ngcontent-%COMP%]{color:var(--editor_main_selected_icon)}.tool-container[_ngcontent-%COMP%] .tool-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:22px}.tool-container[_ngcontent-%COMP%] .tool-item[_ngcontent-%COMP%] .tool_icon[_ngcontent-%COMP%]{width:22px;height:22px;color:var(--editor_tool_icon)}.tool-container[_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{background-color:var(--editor_main_selected)}.tool-container[_ngcontent-%COMP%] .direction[_ngcontent-%COMP%]{outline:none;background-color:var(--editor_main_selected);color:#fff;padding:3px 6px;letter-spacing:2px;cursor:pointer;margin-right:8px}.tool-container[_ngcontent-%COMP%] .extendButton[_ngcontent-%COMP%]{padding:5px;margin:0 5px;height:30px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#fff}.tool-container[_ngcontent-%COMP%] .extendButton[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:20px;height:20px;max-width:100%}.tool-container[_ngcontent-%COMP%] .extendButton[_ngcontent-%COMP%]:hover{background-color:var(--editor_main_selected)}.tool-container[_ngcontent-%COMP%] .form[_ngcontent-%COMP%]{background-color:var(--editor_main_selected);cursor:pointer}.tool-container[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{color:var(--main_white)!important}.tool-container[_ngcontent-%COMP%] .signature[_ngcontent-%COMP%]{cursor:pointer;height:30px;line-height:30px;color:#333;font-family:"Arial Normal",sans-serif;font-size:12px;background-color:#fff;padding:0 1em;border:1px solid #797979;border-radius:5px}.tool-container[_ngcontent-%COMP%] .signature[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#7f7f7f;vertical-align:baseline}.tool-container[_ngcontent-%COMP%] .miniProgram[_ngcontent-%COMP%]{color:var(--main_font);cursor:pointer;padding:4px;font-size:13px;margin-left:auto}.tool-container[_ngcontent-%COMP%] .miniProgram[_ngcontent-%COMP%]:hover{background-color:var(--editor_main_selected);color:var(--main_white)}.dropdownMenu[_ngcontent-%COMP%]{color:#fff;background-color:var(--editor_main_selected)}.dropdownMenu[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{color:#fff}.dropdownMenu[_ngcontent-%COMP%] li[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:5px}.dropdownMenu[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{background-color:#1b69a8}[_nghost-%COMP%] .ant-dropdown-menu-sub{background-color:var(--editor_main_selected)}[_nghost-%COMP%] .ant-dropdown-menu-sub .subMenuSignImageUl{max-height:500px;overflow:auto;margin-right:2px}[_nghost-%COMP%] .ant-dropdown-menu-sub .subMenuSignImageUl::-webkit-scrollbar{width:5px;height:5px}[_nghost-%COMP%] .ant-dropdown-menu-sub .subMenuSignImageUl::-webkit-scrollbar-thumb{border-radius:3px;background-color:#d4d4d4}[_nghost-%COMP%] .ant-dropdown-menu-sub .subMenuSignImageUl::-webkit-scrollbar-track{background-color:transparent}[_nghost-%COMP%] .ant-dropdown-menu-sub .subMenuSignImageUl .subMenuSignImageLi{width:160px}[_nghost-%COMP%] .ant-dropdown-menu-sub .subMenuSignImageUl .subMenuSignImageLi:hover{background-color:var(--editor_main_selected)}[_nghost-%COMP%] .subMenuSignImage [nz-submenu-title]{color:#fff}[_nghost-%COMP%] .subMenuSignImage [nz-submenu-title]:hover{background-color:#1b69a8}[_nghost-%COMP%] .subMenuSignImage [nz-submenu-title] svg{color:#fff} .miniProgram-content{display:flex;flex-direction:column;padding:4px 20px;align-items:center} .miniProgram-content .qrCode{max-width:110px} .miniProgram-content span{color:#7f7f7f;font-size:12px}']}),t})();function Uot(t,e){if(1&t){const t=Jo();Yo(0,"li",4),es("click",(function(){return Ne(t),os().changeVisible("layerPanel")})),Cc(1,"translate"),Yo(2,"div",5),gn(),Yo(3,"svg",6),Xo(4,"use",7),jo(),jo(),jo()}if(2&t){const t=os();Uo("title",kc(1,3,"editor_layerPanel")),sa(2),Ps(-1===t.mShowList.indexOf("layerPanel")?"":"selected")}}function Wot(t,e){if(1&t){const t=Jo();Yo(0,"li",4),es("click",(function(){return Ne(t),os().changeVisible("xrefPanel")})),Cc(1,"translate"),Yo(2,"div",5),gn(),Yo(3,"svg",6),Xo(4,"use",8),jo(),jo(),jo()}if(2&t){const t=os();Uo("title",kc(1,3,"editor_xrefPanel")),sa(2),Ps(-1===t.mShowList.indexOf("xrefPanel")?"":"selected")}}function Yot(t,e){if(1&t){const t=Jo();Yo(0,"li",4),es("click",(function(){return Ne(t),os().changeVisible("commandPanel")})),Cc(1,"translate"),Yo(2,"div",5),gn(),Yo(3,"svg",6),Xo(4,"use",9),jo(),jo(),jo()}if(2&t){const t=os();Uo("title",kc(1,3,"editor_commandPanel")),sa(2),Ps(-1===t.mShowList.indexOf("commandPanel")?"":"selected")}}function jot(t,e){if(1&t){const t=Jo();Yo(0,"li",4),es("click",(function(){return Ne(t),os().changeVisible("commentPanel")})),Cc(1,"translate"),Yo(2,"div",5),gn(),Yo(3,"svg",6),Xo(4,"use",10),jo(),jo(),jo()}if(2&t){const t=os();Uo("title",kc(1,3,"editor_commentPanel")),sa(2),Ps(-1===t.mShowList.indexOf("commentPanel")?"":"selected")}}function Xot(t,e){if(1&t){const t=Jo();Yo(0,"li",4),es("click",(function(){return Ne(t),os().changeVisible("opmPanel")})),Cc(1,"translate"),Yo(2,"div",5),gn(),Yo(3,"svg",6),Xo(4,"use",11),jo(),jo(),jo()}if(2&t){const t=os();Uo("title",kc(1,3,"editor_opmPanel")),sa(2),Ps(-1===t.mShowList.indexOf("opmPanel")?"":"selected")}}function qot(t,e){if(1&t){const t=Jo();Yo(0,"li",4),es("click",(function(){return Ne(t),os().changeVisible("versionPanel")})),Cc(1,"translate"),Yo(2,"div",5),gn(),Yo(3,"svg",6),Xo(4,"use",12),jo(),jo(),jo()}if(2&t){const t=os();Uo("title",kc(1,3,"editor_versionPanel")),sa(2),Ps(-1===t.mShowList.indexOf("versionPanel")?"":"selected")}}function $ot(t,e){if(1&t){const t=Jo();Yo(0,"li",13),es("click",(function(){return Ne(t),os().changeVisible("signPanel")})),Yo(1,"div",5),gn(),Yo(2,"svg",6),Xo(3,"use",14),jo(),jo(),jo()}if(2&t){const t=os();sa(1),Ps(-1===t.mShowList.indexOf("signPanel")?"":"selected")}}let Kot=(()=>{class t{constructor(t,e){this.settingService=t,this.changeDetectorRef=e,this.hideMenu=new Dc,this.mShowList=[],this.pageConfig={},this.operatePermission=m4,this.mShowVersion=!0}ngOnInit(){this.settingService.pageConfig$.subscribe((t=>{this.pageConfig=t,this.getShowList()})),MF.instance().subscribeBroardcast(_F.VersionPanel,this)}ngOnDestroy(){MF.instance().unsubscribeBroardcast(_F.VersionPanel,this)}notify(t,e){"object"==typeof e&&t===_F.VersionPanel&&e.type===p4.versionEmpty&&(this.mShowVersion=!1)}ifDisplay(t){return rB.instance().hasPermission(t)}ifShow(t){return KF.panel[t]}getShowList(){this.mShowList=[],"hide"!==this.pageConfig.layerPanel.WindowVisible&&this.mShowList.push("layerPanel"),"hide"!==this.pageConfig.xrefPanel.WindowVisible&&this.mShowList.push("xrefPanel"),"hide"!==this.pageConfig.commandPanel.WindowVisible&&this.mShowList.push("commandPanel"),"hide"!==this.pageConfig.commentPanel.WindowVisible&&this.mShowList.push("commentPanel"),"hide"!==this.pageConfig.opmPanel.WindowVisible&&this.mShowList.push("opmPanel"),"hide"!==this.pageConfig.versionPanel.WindowVisible&&this.mShowList.push("versionPanel"),"hide"!==this.pageConfig.signPanel.WindowVisible&&this.mShowList.push("signPanel")}changeVisible(t){rB.instance().mIsAnonymous&&"layerPanel"!==t?MF.instance().broardcast(_F.AnonymousCallback,{type:"showAnonymousModal"}):(this.pageConfig[t].WindowVisible="hide"===this.pageConfig[t].WindowVisible?"show":"hide",this.settingService.pageConfig$.next(this.pageConfig),this.changeDetectorRef.detectChanges())}}return t["ɵfac"]=function(e){return new(e||t)(Zo(l8),Zo(Gl))},t["ɵcmp"]=qt({type:t,selectors:[["app-left_menu"]],outputs:{hideMenu:"hideMenu"},decls:9,vars:7,consts:[[1,"left_menu"],[1,"left_menu_list"],["class","left_menu_item",3,"title","click",4,"ngIf"],["class","left_menu_item",3,"click",4,"ngIf"],[1,"left_menu_item",3,"title","click"],[1,"icon_c"],["aria-hidden","true",1,"icon","svg-icon"],[0,"xlink","href","#icon-Layer"],[0,"xlink","href","#icon-waibucanzhao"],[0,"xlink","href","#icon-ThumbnailDown"],[0,"xlink","href","#icon-pinglun"],[0,"xlink","href","#icon-texing"],[0,"xlink","href","#icon-RecentView"],[1,"left_menu_item",3,"click"],[0,"xlink","href","#icon-qianzhangliebiao"]],template:function(t,e){1&t&&(Yo(0,"div",0),Yo(1,"ul",1),Ho(2,Uot,5,5,"li",2),Ho(3,Wot,5,5,"li",2),Ho(4,Yot,5,5,"li",2),Ho(5,jot,5,5,"li",2),Ho(6,Xot,5,5,"li",2),Ho(7,qot,5,5,"li",2),Ho(8,$ot,4,2,"li",3),jo(),jo()),2&t&&(sa(2),Uo("ngIf",e.ifShow("layerPanel")),sa(1),Uo("ngIf",e.ifDisplay("外部参照面板")&&e.ifShow("xrefPanel")),sa(1),Uo("ngIf",e.ifShow("commandPanel")),sa(1),Uo("ngIf",e.ifDisplay("批注面版")&&e.ifShow("commentPanel")),sa(1),Uo("ngIf",e.ifShow("opmPanel")),sa(1),Uo("ngIf",e.ifShow("versionPanel")&&e.mShowVersion),sa(1),Uo("ngIf",e.ifShow("signPanel")))},directives:[Yd],pipes:[H3],styles:[".left_menu[_ngcontent-%COMP%]{position:relative;width:100%;height:100%;background-color:var(--editor_main_background);border-bottom:1px solid var(--editor_main_border);border-right:1px solid var(--editor_main_border)}.left_menu[_ngcontent-%COMP%] .left_menu_list[_ngcontent-%COMP%]{margin:0;padding:0}.left_menu[_ngcontent-%COMP%] .left_menu_list[_ngcontent-%COMP%] .left_menu_item[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;list-style:none;padding:10px 4px;border-bottom:1px solid var(--editor_main_border_light);color:var(--main_font);cursor:pointer}.left_menu[_ngcontent-%COMP%] .left_menu_list[_ngcontent-%COMP%] .left_menu_item[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%]{background-color:var(--editor_main_selected);color:var(--editor_main_selected_icon)}.left_menu[_ngcontent-%COMP%] .left_menu_list[_ngcontent-%COMP%] .left_menu_item[_ngcontent-%COMP%] .icon_c[_ngcontent-%COMP%]{display:flex;line-height:32px;text-align:center;border-radius:4px;align-items:center;justify-content:center}.left_menu[_ngcontent-%COMP%] .left_menu_list[_ngcontent-%COMP%] .left_menu_item[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{margin:5px;font-size:22px}"]}),t})();const Jot=["scroll"],Qot=["tool"],tst=["toolComponent"],est=["statusBarComponent"];function nst(t,e){if(1&t){const t=Jo();Yo(0,"div",38,39),Yo(2,"app-tool",40,41),es("extendClick",(function(e){return Ne(t),os(2).extendClick(e)}))("showModal",(function(){return Ne(t),os(2).showModal()})),jo(),jo()}if(2&t){const t=os(2);sa(2),Uo("mLayoutIndex",t.mLayoutIndex)("mExtendButtons",t.mExtendButtons)("qrCode",t.mQrCode)}}function ist(t,e){1&t&&(Yo(0,"div",42),Xo(1,"app-left_menu"),jo())}function rst(t,e){if(1&t){const t=Jo();Yo(0,"li",48),es("click",(function(){return Ne(t),os(3).exitCommand()})),gn(),Yo(1,"svg",49),Xo(2,"use"),jo(),fn(),Yo(3,"span"),Bs(4),Cc(5,"translate"),jo(),jo()}2&t&&(sa(4),Vs(kc(5,1,"exit")))}function ast(t,e){if(1&t){const t=Jo();Yo(0,"li",48),es("click",(function(){Ne(t);const e=os(3);return e.excuteHistoryCmd(e.mLastCommand,"-VIEW"===e.mLastCommand&&e.mCurrentDirection?e.mCurrentDirection.command:"")})),gn(),Yo(1,"svg",49),Xo(2,"use"),jo(),fn(),Yo(3,"span"),Bs(4),Cc(5,"translate"),Cc(6,"translate"),jo(),jo()}if(2&t){const t=os(3);sa(4),Hs("",kc(5,2,"repeat"),"","-VIEW"===t.mLastCommand&&t.mCurrentDirection?kc(6,4,t.mCurrentDirection.translate):t.mLastCommand,"")}}function ost(t,e){if(1&t){const t=Jo();Yo(0,"li",48),es("click",(function(){const e=Ne(t).$implicit;return os(4).excuteHistoryCmd(e)})),gn(),Yo(1,"svg",49),Xo(2,"use"),jo(),fn(),Yo(3,"span"),Bs(4),jo(),jo()}if(2&t){const t=e.$implicit;sa(4),Vs(t)}}function sst(t,e){if(1&t&&(Yo(0,"li",46),Yo(1,"ul",47),Ho(2,ost,5,1,"li",55),jo(),jo()),2&t){os(2);const t=Go(15),e=os();Uo("nzTitle",t),sa(2),Uo("ngForOf",e.mCmdHistoryList)}}function lst(t,e){if(1&t){const t=Jo();Yo(0,"li",48),es("click",(function(){return Ne(t),os(3).toolComponent.zwExecuteCommand("’_pan")})),gn(),Yo(1,"svg",49),Xo(2,"use",56),jo(),fn(),Yo(3,"span"),Bs(4),Cc(5,"translate"),jo(),jo()}2&t&&(sa(4),Vs(kc(5,1,"pan")))}function cst(t,e){if(1&t){const t=Jo();Yo(0,"li",48),es("click",(function(){return Ne(t),os(3).toolComponent.regen()})),gn(),Yo(1,"svg",49),Xo(2,"use",57),jo(),fn(),Yo(3,"span"),Bs(4),Cc(5,"translate"),jo(),jo()}2&t&&(sa(4),Vs(kc(5,1,"regen")))}function hst(t,e){if(1&t){const t=Jo();Yo(0,"li",48),es("click",(function(){Ne(t);const e=os(3);return e.toolComponent.changeDirection(e.directions)})),gn(),Yo(1,"svg",49),Xo(2,"use",58),jo(),fn(),Yo(3,"span"),Bs(4),Cc(5,"translate"),jo(),jo()}2&t&&(sa(4),Vs(kc(5,1,"3DOrbit")))}function dst(t,e){if(1&t){const t=Jo();Yo(0,"li",48),es("click",(function(){return Ne(t),os(2),Go(48).changeTheme("light")})),gn(),Yo(1,"svg",49),Xo(2,"use",59),jo(),fn(),Yo(3,"span"),Bs(4),Cc(5,"translate"),jo(),jo()}2&t&&(sa(4),Vs(kc(5,1,"theme_dark_tips")))}function ust(t,e){if(1&t){const t=Jo();Yo(0,"li",48),es("click",(function(){return Ne(t),os(2),Go(48).changeTheme("dark")})),gn(),Yo(1,"svg",49),Xo(2,"use",60),jo(),fn(),Yo(3,"span"),Bs(4),Cc(5,"translate"),jo(),jo()}2&t&&(sa(4),Vs(kc(5,1,"theme_light_tips")))}function mst(t,e){if(1&t){const t=Jo();Yo(0,"ul",43),Ho(1,rst,6,3,"li",44),Ho(2,ast,7,6,"li",44),Ho(3,sst,3,2,"li",45),Ho(4,lst,6,3,"li",44),Yo(5,"li",46),Yo(6,"ul",47),Yo(7,"li",48),es("click",(function(){return Ne(t),os(2).toolComponent.zwExecuteCommand("’_zoom","2x")})),gn(),Yo(8,"svg",49),Xo(9,"use",50),jo(),fn(),Yo(10,"span"),Bs(11),Cc(12,"translate"),jo(),jo(),Yo(13,"li",48),es("click",(function(){return Ne(t),os(2).toolComponent.zwExecuteCommand("’_zoom",".5x")})),gn(),Yo(14,"svg",49),Xo(15,"use",51),jo(),fn(),Yo(16,"span"),Bs(17),Cc(18,"translate"),jo(),jo(),Yo(19,"li",48),es("click",(function(){return Ne(t),os(2).toolComponent.zwExecuteCommand("’_zoom","_a")})),gn(),Yo(20,"svg",49),Xo(21,"use",52),jo(),fn(),Yo(22,"span"),Bs(23),Cc(24,"translate"),jo(),jo(),Yo(25,"li",48),es("click",(function(){return Ne(t),os(2).toolComponent.zwExecuteCommand("’_zoom","_c")})),gn(),Yo(26,"svg",49),Xo(27,"use",53),jo(),fn(),Yo(28,"span"),Bs(29),Cc(30,"translate"),jo(),jo(),Yo(31,"li",48),es("click",(function(){return Ne(t),os(2).toolComponent.zwExecuteCommand("’_zoom","_e")})),gn(),Yo(32,"svg",49),Xo(33,"use",54),jo(),fn(),Yo(34,"span"),Bs(35),Cc(36,"translate"),jo(),jo(),jo(),jo(),Ho(37,cst,6,3,"li",44),Ho(38,hst,6,3,"li",44),Ho(39,dst,6,3,"li",44),Ho(40,ust,6,3,"li",44),jo()}if(2&t){os();const t=Go(13),e=os();sa(1),Uo("ngIf",e.mCmdExecutionStatus),sa(1),Uo("ngIf",!e.mCmdExecutionStatus&&e.mLastCommand),sa(1),Uo("ngIf",!e.mCmdExecutionStatus&&0!==e.mCmdHistoryList.length),sa(1),Uo("ngIf",!e.mCmdExecutionStatus),sa(1),Uo("nzTitle",t),sa(6),Vs(kc(12,14,"zoomIn")),sa(6),Vs(kc(18,16,"zoomOut")),sa(6),Vs(kc(24,18,"zoomAll")),sa(6),Vs(kc(30,20,"zoomCenter")),sa(6),Vs(kc(36,22,"zoomExtents")),sa(2),Uo("ngIf",!!e.toolComponent&&e.toolComponent.ifDisplay("视口重生成")&&e.toolComponent.isShow("Regen")),sa(1),Uo("ngIf",!e.mCmdExecutionStatus||e.mCmdExecutionStatus&&"3DORBIT"!==e.mLastCommand),sa(1),Uo("ngIf","dark"===e.getThemeColor()),sa(1),Uo("ngIf","light"===e.getThemeColor())}}function pst(t,e){1&t&&(gn(),Yo(0,"svg",49),Xo(1,"use",61),jo(),fn(),Yo(2,"span"),Bs(3),Cc(4,"translate"),jo()),2&t&&(sa(3),Vs(kc(4,1,"zoom")))}function gst(t,e){1&t&&(gn(),Yo(0,"svg",49),Xo(1,"use"),jo(),fn(),Yo(2,"span"),Bs(3),Cc(4,"translate"),jo()),2&t&&(sa(3),Vs(kc(4,1,"lastInput")))}function fst(t,e){if(1&t){const t=Jo();Yo(0,"div",62),es("click",(function(){const e=Ne(t),n=e.$implicit,i=e.index;return os(2).selectLayout(n,i)})),Bs(1),jo()}if(2&t){const t=e.$implicit,n=e.index;Ps(os(2).mLayoutIndex===n?"selected":""),ds("id","tab",n,""),sa(1),Ns("",t.name," ")}}function bst(t,e){if(1&t){const t=Jo();Yo(0,"li",63),es("click",(function(){const e=Ne(t),n=e.$implicit,i=e.index;return os(2).selectLayout(n,i)})),Yo(1,"span",64),Yo(2,"i"),Bs(3,"√"),jo(),jo(),Yo(4,"span"),Bs(5),jo(),jo()}if(2&t){const t=e.$implicit,n=e.index,i=os(2);sa(2),xs("display",i.mLayoutIndex===n?"block":"none"),sa(3),Vs(t.name)}}function yst(t,e){if(1&t){const t=Jo();Yo(0,"div",6),Ho(1,nst,4,3,"div",7),Yo(2,"div",8),Ho(3,ist,2,0,"div",9),Yo(4,"div",10,11),Yo(6,"app-window"),Yo(7,"div",12),Yo(8,"canvas",13),es("mousedown",(function(e){return Ne(t),os().cancel(e)}))("contextmenu",(function(e){Ne(t);const n=Go(10);return os().contextMenu(e,n)})),jo(),Yo(9,"nz-dropdown-menu",null,14),Ho(11,mst,41,24,"ul",15),jo(),Ho(12,pst,5,3,"ng-template",null,16,Yc),Ho(14,gst,5,3,"ng-template",null,17,Yc),Xo(16,"div",18),jo(),Yo(17,"div",19),Yo(18,"div",20),Yo(19,"div",21),gn(),Yo(20,"svg",22),Xo(21,"use",23),jo(),jo(),fn(),Yo(22,"div",24),es("click",(function(){return Ne(t),os().scrollToStart()})),Cc(23,"translate"),gn(),Yo(24,"svg",22),Xo(25,"use",25),jo(),jo(),fn(),Yo(26,"div",24),es("click",(function(){return Ne(t),os().scrollToLeft()})),Cc(27,"translate"),gn(),Yo(28,"svg",22),Xo(29,"use",26),jo(),jo(),fn(),Yo(30,"div",24),es("click",(function(){return Ne(t),os().scrollToRight()})),Cc(31,"translate"),gn(),Yo(32,"svg",22),Xo(33,"use",27),jo(),jo(),fn(),Yo(34,"div",24),es("click",(function(){return Ne(t),os().scrollToEnd()})),Cc(35,"translate"),gn(),Yo(36,"svg",22),Xo(37,"use",28),jo(),jo(),jo(),fn(),Yo(38,"div",29,30),Ho(40,fst,2,4,"div",31),jo(),Yo(41,"nz-dropdown-menu",null,32),Yo(43,"ul",33),Ho(44,bst,6,3,"li",34),jo(),jo(),jo(),jo(),jo(),jo(),Yo(45,"div",35,36),Xo(47,"app-statusBar",null,37),jo(),jo()}if(2&t){const t=Go(42),e=Go(46),n=os();Ps(n.mIsFullScreen?"fullScreen":""),sa(1),Uo("ngIf",n.mToolVisible),sa(1),xs("height","calc(100% - "+(e.offsetHeight+(n.tool?n.tool.nativeElement.offsetHeight:0))+"px)"),sa(1),Uo("ngIf",n.mMenuVisible),sa(8),Uo("ngIf",!!n.toolComponent&&n.toolComponent.mLayoutIsActive),sa(8),Uo("nzDropdownMenu",t),sa(3),Ps(n.scrollRef&&n.canScrollToLeft()?"":"disabled"),hs("title",kc(23,22,"rollLeftToStart")),sa(4),Ps(n.scrollRef&&n.canScrollToLeft()?"":"disabled"),hs("title",kc(27,24,"rollToLeft")),sa(4),Ps(n.scrollRef&&n.canScrollToRight()?"":"disabled"),hs("title",kc(31,26,"rollRight")),sa(4),Ps(n.scrollRef&&n.canScrollToRight()?"":"disabled"),hs("title",kc(35,28,"rollRightToEnd")),sa(6),Uo("ngForOf",n.mLayoutList),sa(4),Uo("ngForOf",n.mLayoutList)}}function vst(t,e){if(1&t){const t=Jo();Yo(0,"div"),Yo(1,"app-mobile-editor",65),es("selectLayout",(function(e){return Ne(t),os().selectLayoutByIndex(e)}))("getShareInfo",(function(){return Ne(t),os().getShareInfo()})),jo(),jo()}if(2&t){const t=os();sa(1),Uo("mLayoutList",t.mLayoutList)("mLayoutIndex",t.mLayoutIndex)("fileName",t.mFileName)("qrCode",t.mQrCode)}}function wst(t,e){1&t&&Xo(0,"div",66)}function xst(t,e){if(1&t&&(gn(),fn(),Yo(0,"div",73),Bs(1),jo()),2&t){const t=os(2);sa(1),Ns(" ",t.mLoadingPercent+" %"," ")}}function Cst(t,e){if(1&t&&(gn(),fn(),Yo(0,"div",74),Bs(1),jo()),2&t){const t=os(2);sa(1),Ns(" ",t.mLoadingMessage," ")}}function kst(t,e){if(1&t&&(Yo(0,"div",67),Yo(1,"div",68),Yo(2,"div",69),gn(),Yo(3,"svg",22),Xo(4,"use",70),jo(),jo(),Ho(5,xst,2,1,"div",71),Ho(6,Cst,2,1,"div",72),jo(),jo()),2&t){const t=os();sa(5),Uo("ngIf",t.mLoadingPercent),sa(1),Uo("ngIf",t.mLoadingMessage)}}let Sst=(()=>{class t{constructor(t,e,n,i,r,a,o,s,l,c){this.coreUIOContextService=e,this.webSocket=n,this.settingService=i,this.messageService=r,this.nzModalService=a,this.nzContextMenuService=o,this.viewContainerRef=s,this.changeDetectorRef=l,this.message=c,this.scrollRef={},this.ZwEvtCoreEditor=new Dc,this.ZwEvtDrawEnd=new Dc,this.ZwEvtChangeSetting=new Dc,this.ZwEvtChangeLayout=new Dc,this.ZwEvtLoadXrefData=new Dc,this.ZwEvtLoadImageData=new Dc,this.ZwEvtLoadImageList=new Dc,this.ZwEvtPlotDwg=new Dc,this.ZwEvtLoadCommentData=new Dc,this.ZwEvtExportCommentData=new Dc,this.ZwEvtUpdateCommentData=new Dc,this.ZwEvtDrawCommentBubble=new Dc,this.ZwEvtGetCommentDataForNextPage=new Dc,this.ZwEvtGetRegenData=new Dc,this.ZwEvtLoadVersionData=new Dc,this.ZwEvtVersionOperation=new Dc,this.ZwEvtExtendButtonClick=new Dc,this.ZwEvtDWGOpenFail=new Dc,this.ZwEvtLoadSignHistoryData=new Dc,this.ZwEvtLoadSignImageData=new Dc,this.ZwEvtSignBlockData=new Dc,this.ZwEvtSignPanelOperation=new Dc,this.ZwEvtLoadDwgFile=new Dc,this.ZwEvtGetTextStyleFont=new Dc,this.ZwEvtAlternateFontInfo=new Dc,this.ZwEvtFileOperate=new Dc,this.ZwEvtGetShareInfo=new Dc,this.ZwEvtGetQrCode=new Dc,this.ZwEvtChangeTheme=new Dc,this.ZwEvtGetLayoutHandle=new Dc,this.ZwEvtFileCompare=new Dc,this.textStyleList=[],this.dimStyleList=[],this.linetypeList=[],this.isMobile=mF,this.mLayoutList=[],this.mLayoutIndex=0,this.isShowCancelButton=!1,this.mPreLayoutIndex=0,this.mIsReadyDB=!1,this.mIsEntryEdit=!1,this.mEntryEditUrl="",this.mOpenDwgPhase=new Map([[OW.init,qF.mLanguagePackage.OpenDwgPhaseInit],[OW.getData,qF.mLanguagePackage.OpenDwgPhaseGetData],[OW.readData,qF.mLanguagePackage.OpenDwgPhaseReadData],[OW.drawData,qF.mLanguagePackage.OpenDwgPhaseDrawData],[OW.drawDataEnd,qF.mLanguagePackage.OpenDwgPhaseDrawDataEnd],[OW.end,qF.mLanguagePackage.OpenDwgPhaseEnd]]),this.mLoadingPercent=0,this.mLoadingMessage=qF.mLanguagePackage.dwgTransfering,this.isLoading=!1,this.mShowLoadingProgress=!1,this.mLoadingChangeNum=0,this.mFakeOffset=Math.round(11*Math.random())-5,this.mToolVisible=!0,this.mMenuVisible=!0,this.mGetPermissionFlag=!1,this.zcadCmdContext=new $F,this.mFileName="",this.mIsFullScreen=!1,this.mImageMap=[],this.mDownloadDwgFlag=!1,this.mQrCode="",this.directions={dir:Q3.Orbit,command:"3dorbit",translate:"Orbit",icon:"sanweidongtaiguancha"},this.mCmdHistoryList=[],this.mLastCommand="",this.mCmdExecutionStatus=!1,this.mCurrentDirection=X7[0],this.mFcmpLayerTableCache=null,this.isLoading=!0,this.mDwgVisualize=t,MF.instance().subscribeBroardcast(_F.UpdatePage,this),MF.instance().subscribeBroardcast(_F.SwitchLayout,this),MF.instance().subscribeBroardcast(_F.ReadyToEntryEdit,this),MF.instance().subscribeBroardcast(_F.GetFileData,this),MF.instance().subscribeBroardcast(_F.AcceptLogger,this),MF.instance().subscribeBroardcast(_F.FileCompare,this),MF.instance().subscribeBroardcast(_F.StatusBar,this),MF.instance().subscribeBroardcast(_F.SignBlockData,this),MF.instance().subscribeBroardcast(_F.VersionPanel,this),MF.instance().subscribeBroardcast(_F.FileOperate,this),MF.instance().subscribeBroardcast(_F.ChangeDirection,this),this.zcadCmdContext.setMessageService(this.messageService),this.zcadCmdContext.setModalService(this.nzModalService),this.zcadCmdContext.setViewContainerRef(this.viewContainerRef),uj.instance().reset()}ngOnInit(){if(uF){let t=XF.instance().getItem("cloud2d-theme-style");if("dark"===t&&document.body.setAttribute("cloud2d-theme-style","dark"),"light"===t&&document.body.setAttribute("cloud2d-theme-style","light"),-1!==dF.indexOf("chrome/")||-1!==dF.indexOf("edge/")){let t=-1!==dF.indexOf("chrome/")?"chrome":"edge",e=dF.replace(t+"/","").split(".")[0];return void(Number(e)<95&&this.message.warning(t+" "+qF.mLanguagePackage.chromeVersionLow))}if(-1!==dF.indexOf("safari/")){let t=dF.replace("safari/","");return void(Number(t)<15.4&&this.message.warning(qF.mLanguagePackage.safariVersionLow))}}else history.replaceState({},"","/unSupportedBrowser")}ngAfterViewInit(){this.ZwEvtCoreEditor.emit({ZwSetSdkPermission:t=>{switch(rB.instance().mFeatureId=t.featureId,t.featureId){case 149:case 167:case 177:nB(tB),iB({commandButton:{Polyline:!1,Circle:!1,Arc:!1,Measure:!1}});break;case 165:nB(JF);break;case 166:nB(QF)}this.mGetPermissionFlag=!0,iB({panel:{opmPanel:!1,signPanel:!1},commandButton:{Sign:!1,Fcmp:!1},command:{FCMP:!1}}),tU.forSDK&&iB({panel:{versionPanel:!1}}),this.mUserOptions&&iB(this.mUserOptions),n7.instance().updateCommand(),this.checkVisible();let e=[];t.permissions.forEach((t=>{e.push(t.permissionId)})),rB.instance().update(e),rB.instance().mExpiredTime=t.expiredTime,rB.instance().mForCloud2D=t.forCloud2D},ZwSetPageConfig:t=>{this.settingService.pageConfig$.next(t),this.changeDetectorRef.detectChanges()},ZwGetPageConfig:()=>this.settingService.pageConfig$.getValue(),ZwSetLoadingState:t=>{t||"string"==typeof t?(this.isLoading=!0,"string"==typeof t&&MF.instance().broardcast(_F.UpdatePage,{type:"loading",data:{isLoading:!0,loadingMessage:t}})):t||(this.isLoading=!1),this.changeDetectorRef.detectChanges()},ZwSetLayoutInfo:t=>{!1===n7.instance().mIsInitFcmp&&MF.instance().broardcast(_F.FileCompare,{type:"setFcmpInfo",data:{isToolbarVisiable:!1}}),this.isLoading=!0,MF.instance().broardcast(_F.UpdatePage,{type:"loading",data:{isLoading:!0,loadingProgressPreset:{phase:OW.init}}}),this.mDwgVisualize.clear(),this.mDwgVisualize.initDwgService(),this.mDwgVisualize.hideDwgControl(!1);let e={};return this.mLayoutList=t.sort(((t,e)=>t.tabOrder-e.tabOrder)),this.mLayoutList.forEach((t=>{if("YES"===t.isDefault){if(U5._instance&&U5._instance.mGs&&t.handleId){U5._instance.mGs.mCurLayoutHandle=String(t.handleId);let e={handleId:String(t.handleId),pageNum:1};this.getCommentCallbackParams(e,"initial")}this.mLayoutIndex=t.tabOrder,e=JSON.parse(JSON.stringify(t))}("模型"===t.name||"Model"===t.name)&&(t.name=qF.mLanguagePackage.model)})),U5._instance&&U5._instance.mGs&&(U5._instance.mGs.mLayoutList=this.mLayoutList),e},ZwSetDwgBase:(t,e)=>{U5._instance&&U5._instance.mGs&&(U5._instance.mGs.mDocId=t,U5._instance.mGs.mFileName=e),this.mFileName=e},ZwSetDwgData:t=>{this.mDwgVisualize.loadDipslayData(t)},ZwSetDwgFileData:t=>{if(t){if(!U5._instance.mGs)return;this.mDownloadDwgFlag=!0;let e=new Uint8Array(t),n=VZ(e),i=e.byteLength,a=new Uint8Array(U5._instance.mGs.mCharMapper),o=VZ(a),s=new B7(n,i,o,a.byteLength);this.textStyleList=function(t){let e=new V7,n=[];if(0===t.getSymbolTable(e,0)){let t=new N7;for(e.newIterator(t);!t.done();t.step()){let e=new H7;if(0===t.getZcDbTextStyleTableRecord(e,0)){let t={handle:e.getZcDbHandle(),name:e.getName(),xScale:e.xScale(),fileName:e.fileName(),font:e.font()};n.push(t)}}}return n}(s).sort(this.sortList);let l=s.textstyle();this.textStyleList.forEach(((t,e)=>{""!==t.name?t.handle===l&&(this.currentTextStyle=t):this.textStyleList.splice(e,1)})),this.dimStyleList=function(t){let e=new G7,n=[];if(0===t.getSymbolTable(e,0)){let t=new Z7;for(e.newIterator(t);!t.done();t.step()){let e=new U7;if(0===t.getZcDbDimStyleTableRecord(e,0)){let t={handle:e.getZcDbHandle(),name:e.getName(),dimtxsty:e.dimtxsty(),dimdli:e.dimdli(),dimexo:e.dimexo(),dimexe:e.dimexe(),dimasz:e.dimasz(),dimtxt:e.dimtxt(),dimscale:e.dimscale(),dimdec:e.dimdec(),dimtix:e.dimtix(),dimblk:e.dimblk(),dimlunit:e.dimlunit(),IsDimStyleAnnotative:e.IsDimStyleAnnotative()};r.log(t),n.push(t)}}}return n}(s).sort(this.sortList);let c=s.dimstyle();this.dimStyleList.forEach(((t,e)=>{let n="";for(let i=0;i<e;i++)if(t.name.startsWith(this.dimStyleList[i].name)){n=t.name.split(this.dimStyleList[i].name)[1];let r="";switch(n){case"$0":r=qF.mLanguagePackage.dim_linear;break;case"$2":r=qF.mLanguagePackage.dim_angular;break;case"$3":r=qF.mLanguagePackage.dim_diameter;break;case"$4":r=qF.mLanguagePackage.dim_radial;break;case"$6":r=qF.mLanguagePackage.dim_ordinate;break;case"$7":r=qF.mLanguagePackage.dim_leader;break;default:r=t.name}if(r!==t.name){let n=this.dimStyleList.splice(e,1)[0];this.dimStyleList.splice(i+1,0,n),t.baseDimStyle=this.dimStyleList[i].name}t.name=r}t.handle===c&&(this.currentDimStyle=t),t.dimtxsty=this.textStyleList.filter((e=>e.handle===t.dimtxsty))[0].name})),this.linetypeList=function(t){let e=new W7,n=[];if(0===t.getSymbolTable(e,0)){let t=new Y7;for(e.newIterator(t);!t.done();t.step()){let e=new j7;if(0===t.getZcDbLinetypeTableRecord(e,0)){let t={handle:e.getZcDbHandle(),name:e.getName()};n.push(t)}}}return n}(s),this.isLoading=!1,this.changeDetectorRef.detectChanges(),(new OF).pub(EF.styleModal,!0),(new OF).pub(EF.dimStyleModal,!0)}},ZwSetXrefList:t=>{MF.instance().broardcast(_F.GetFileData,{type:"xrefList",data:t})},ZwSetXrefData:t=>{(new OF).pub(EF.XREF,t)},ZwSetImageData:t=>{U5._instance&&U5._instance.mGs&&U5._instance.mGs.setImageData(t)},ZwSetImageList:t=>{MF.instance().broardcast(_F.GetFileData,{type:"setImageList",data:t}),this.mImageMap.push((new Map).set(t.completePath,t.data))},ZwSetExecuteCmd:(t,e,n)=>{let i=!1,r=t.split("_");if(0!==r.length){let t=r.shift(),a=r.shift(),o=r.shift();n&&(n7.instance().mDrawCommentBubbleBySdk=!0,n7.instance().mDrawCommentBubble=!0,n7.instance().mBubbleColor=e),i=""!==n7.instance().cmdString(t),i&&n7.instance().setExecuteCmdByClickButton(t,a,o)}else i=n7.instance().setExecuteCmd(t);i||(MF.instance().broardcast(_F.History,{label:"",history:qF.mLanguagePackage.command+":"+t}),MF.instance().broardcast(_F.History,{label:"",history:qF.mLanguagePackage.unknownCommand+"“"+t+"”。"+qF.mLanguagePackage.getHelp}))},ZwSetInterruptCmd:()=>{n7.instance().clear("keepHistory"),h4.mCmd=null},ZwSetCommentData:t=>{MF.instance().broardcast(_F.CommentPanel,{type:"setCommentData",data:t})},ZwSetCommentBubblesOff:t=>{MF.instance().broardcast(_F.GsInteraction,{type:"bubblesOff",data:{bubblesOff:t}})},ZwSetBubblesData:t=>{MF.instance().broardcast(_F.GsInteraction,{type:"setBubblesData",data:{marks:t}})},ZwSetDeleteBubbles:t=>{MF.instance().broardcast(_F.GsInteraction,{type:"deleteBubbles",data:{ids:t}})},ZwSetLocateBubble:t=>{MF.instance().broardcast(_F.GsInteraction,{type:"locateBubble",data:{id:t}})},ZwSetBubbleHighlight:t=>{MF.instance().broardcast(_F.GsInteraction,{type:"highlightBubble",data:{highlightBubble:t}})},ZwSetCancelBubbleHighlight:t=>{MF.instance().broardcast(_F.GsInteraction,{type:"cancelBubbleHighlight",data:{ids:t}})},ZwSetWatermark:t=>{149!==rB.instance().mFeatureId&&(this.isLoading?this.mWatermarkOptions=t:MF.instance().broardcast(_F.GsInteraction,{type:"watermark",data:{options:t}}))},ZwSetRegenData:t=>{(new OF).pub(EF.regenData,t)},ZwSignBlockData:t=>{MF.instance().broardcast(_F.SignPanel,t)},ZwSetQrcode:t=>{this.mQrCode=t},ZwSetUserOptions:t=>{this.mUserOptions=t,this.mGetPermissionFlag&&(iB(t),this.checkVisible(),n7.instance().updateCommand())},ZwSetSignHistoryData:t=>{MF.instance().broardcast(_F.GsInteraction,{type:"setSignHistoryData",data:{signHistory:t}})},ZwDeleteSignCallback:t=>{MF.instance().broardcast(_F.SignPanel,{type:"deleteSign",data:t})},ZwSetSignImageData:t=>{MF.instance().broardcast(_F.GetFileData,{type:"setSignImageList",data:{signImageList:t}})},ZwSetExtendButton:t=>{this.mExtendButtons=t,this.checkVisible()},ZwEntryEdit:t=>{let e=rB.instance().mFeatureId,n=qF.mLanguagePackage.currentSdkVersion;if(!rB.instance().mForCloud2D){switch(e){case 149:n+=qF.mLanguagePackage.trailVersion;break;case 165:n+=qF.mLanguagePackage.stanVersion+","+qF.mLanguagePackage.editModeNotSupported,MF.instance().broardcast(_F.History,{label:"",history:n});break;case 166:n+=qF.mLanguagePackage.profVersion;break;case 167:case 177:n+=qF.mLanguagePackage.fullVersion}if(165===e)return;MF.instance().broardcast(_F.History,{label:"",history:n}),this.mIsReadyDB=!0}165!==e&&(this.mIsEntryEdit=!0,this.mEntryEditUrl=t,this.entryEdit())},ZwSetVersionData:t=>{MF.instance().broardcast(_F.VersionPanel,{type:"versionPanel",data:t})},ZwVersionOperResult:t=>{MF.instance().broardcast(_F.VersionPanel,{type:t.type,data:t.res})},ZwSetTextStyleFont:t=>{(new OF).pub(EF.textStyleFont,t)},ZwSetFcmpDwgBase:t=>{let e=function(){let t=new OF;return new Promise(((e,n)=>{t.addCb(EF.fcmpWaitConfirmStart,(t=>{e(t)}))}))}().then((()=>{n7.instance().mIsInitFcmp=!0}));return MF.instance().broardcast(_F.FileCompare,{type:"setFcmpInfo",data:Object.assign({isToolbarVisiable:!0},t)}),e},ZwSetFcmpRegenData:t=>{(new OF).pub(EF.fcmpRegenData,t)}}),this.settingService.pageConfig$.subscribe((t=>{this.ZwEvtChangeSetting.emit(t)})),this.coreUIOContextService.initData()}ngOnDestroy(){this.mDwgVisualize.hideDwgControl(!0),this.mDwgVisualize.clear(),this.mIsReadyDB=!1,this.mIsEntryEdit=!1,this.mEntryEditUrl="",MF.instance().unsubscribeBroardcast(_F.UpdatePage,this),MF.instance().unsubscribeBroardcast(_F.SwitchLayout,this),MF.instance().unsubscribeBroardcast(_F.ReadyToEntryEdit,this),MF.instance().unsubscribeBroardcast(_F.GetFileData,this),MF.instance().unsubscribeBroardcast(_F.AcceptLogger,this),MF.instance().unsubscribeBroardcast(_F.FileCompare,this),MF.instance().unsubscribeBroardcast(_F.StatusBar,this),MF.instance().unsubscribeBroardcast(_F.SignBlockData,this),MF.instance().unsubscribeBroardcast(_F.VersionPanel,this),MF.instance().unsubscribeBroardcast(_F.FileOperate,this)}notify(t,e){if("object"==typeof e)switch(t){case _F.UpdatePage:if("updateLayoutList"===e.type)this.isLoading=!1,this.scrollTab(this.mLayoutIndex,0);else if("loading"===e.type){let t=e.data;if(!0===t.isLoading){if(t.loadingMessage||"string"==typeof t.loadingMessage)return this.isLoading=!0,this.mLoadingMessage=t.loadingMessage,void this.changeDetectorRef.detectChanges();if(t.loadingProgressPreset){if(t.loadingProgressPreset.phase===OW.init&&(this.isLoading=!0,this.mShowLoadingProgress=!0,this.mLoadingPercent=OW.init,this.mLoadingMessage=this.mOpenDwgPhase.get(OW.init),this.mLoadingChangeNum=OW.drawData+this.mFakeOffset,clearInterval(this.mLoadingTimer),this.mLoadingTimer=setInterval((()=>{this.mLoadingPercent<OW.getData?(this.mLoadingPercent++,this.changeDetectorRef.detectChanges()):(this.mLoadingMessage=this.mOpenDwgPhase.get(OW.getData),this.changeDetectorRef.detectChanges(),clearInterval(this.mLoadingTimer),this.mLoadingTimer=setInterval((()=>{this.mLoadingPercent<OW.readData+this.mFakeOffset?(this.mLoadingPercent++,this.changeDetectorRef.detectChanges()):clearInterval(this.mLoadingTimer)}),800))}),100)),this.mShowLoadingProgress&&t.loadingProgressPreset.phase===OW.readData&&(this.isLoading=!0,this.mLoadingPercent=OW.readData+this.mFakeOffset,this.mLoadingMessage=this.mOpenDwgPhase.get(OW.readData),clearInterval(this.mLoadingTimer),this.mLoadingTimer=setInterval((()=>{this.mLoadingPercent<OW.readDataEnd+this.mFakeOffset?(this.mLoadingPercent++,this.changeDetectorRef.detectChanges()):clearInterval(this.mLoadingTimer)}),800)),this.mShowLoadingProgress&&t.loadingProgressPreset.phase===OW.drawData){this.isLoading=!0,clearInterval(this.mLoadingTimer);let e=OW.drawData+this.mFakeOffset;this.mLoadingPercent=e+Math.floor((OW.drawDataEnd-e)/100*Math.min(t.loadingProgressPreset.precent,100)),this.mLoadingMessage=this.mOpenDwgPhase.get(OW.drawData),this.mLoadingPercent>=this.mLoadingChangeNum&&(this.mLoadingChangeNum=Math.floor(this.mLoadingPercent+1),this.changeDetectorRef.detectChanges())}return}}if(!1===t.isLoading)if(this.mLoadingPercent&&t.loadingProgressPreset&&t.loadingProgressPreset.phase===OW.end)this.mLoadingPercent=OW.end,this.mLoadingMessage=this.mOpenDwgPhase.get(OW.end),this.mGetPermissionFlag||(nB(eB),this.checkVisible()),setTimeout((()=>{if(this.isLoading=!1,this.mLoadingMessage=qF.mLanguagePackage.dwgTransfering,this.mShowLoadingProgress=!1,this.mLoadingPercent=0,this.mFakeOffset=Math.floor(11*Math.random())-5,this.isShowCancelButton=!1,this.ZwEvtDrawEnd.emit(),this.mWatermarkOptions&&MF.instance().broardcast(_F.GsInteraction,{type:"watermark",data:{options:this.mWatermarkOptions}}),MF.instance().broardcast(_F.ZwEvtDrawEnd,{}),"true"===XF.instance().getItem("reconnectWebsocket")&&(XF.instance().removeItem("reconnectWebsocket"),MF.instance().broardcast(_F.ReadyToEntryEdit,{type:"connectWebsocket"})),U5._instance&&U5._instance.mGs)for(let t=0;t<this.mImageMap.length;t++)U5._instance.mGs.setImageData(this.mImageMap[t]);this.changeDetectorRef.detectChanges()}),100);else{if(this.isLoading=!1,this.mLoadingMessage=qF.mLanguagePackage.dwgTransfering,this.mShowLoadingProgress=!1,this.mLoadingPercent=0,this.mFakeOffset=Math.floor(11*Math.random())-5,this.isShowCancelButton=!1,U5._instance.mGs){let t=U5._instance.mGs.mCurLayoutHandle;U5._instance.mGs.getSignRegenLayout(BigInt(t))&&!U5._instance.mGs.isInEditMode()&&(MF.instance().broardcast(_F.GsInteraction,{type:"updateViewDataHttp"}),MF.instance().broardcast(_F.UpdatePage,{type:"loading",data:{isLoading:!0,loadingProgressPreset:{phase:OW.init}}}),MF.instance().broardcast(_F.UpdatePage,{type:"loading",data:{isLoading:!0,loadingMessage:qF.mLanguagePackage.regening+", "+qF.mLanguagePackage.OpenDwgPhaseGetData+"..."}}),U5._instance.mGs.setSignRegenLayout(BigInt(t),!1))}this.changeDetectorRef.detectChanges()}}else"changeTheme"===e.type&&this.changeTheme(e.data.theme);break;case _F.SwitchLayout:e.data&&this.switchLayout(e.data.handle);break;case _F.ReadyToEntryEdit:"connectWebsocket"===e.type&&(this.mIsReadyDB=!0,this.mIsEntryEdit=!0,this.entryEdit());break;case _F.GetFileData:if("xref"===e.type&&e.data)this.ZwEvtLoadXrefData.emit(e.data);else if("image"===e.type&&e.data)this.ZwEvtLoadImageData.emit(e.data);else if("imageList"===e.type&&e.data)this.ZwEvtLoadImageList.emit(e.data);else if("plotDwg"===e.type&&e.data)this.ZwEvtPlotDwg.emit(e.data);else if("loadCommentData"!==e.type&&"getCommentDataForNextPage"!==e.type||null===U5._instance.mGs)if("updateCommentData"===e.type)ZwCloud2D.ZwDataManager.ZwSetInterruptCmd(),tU.forSDK||MF.instance().broardcast(_F.UpdatePage,{type:"loading",data:{isLoading:!0,loadingMessage:qF.mLanguagePackage.savingComment}}),this.ZwEvtUpdateCommentData.emit(e.data);else if("drawCommentBubble"===e.type)e.data||this.messageService.warning(qF.mLanguagePackage.commentDisabled),this.ZwEvtDrawCommentBubble.emit(e.data);else if("exportCommentData"===e.type)this.ZwEvtExportCommentData.emit(e.data);else if("regenData"===e.type)this.ZwEvtGetRegenData.emit(e.data);else if("signImageList"===e.type&&e.data)this.ZwEvtLoadSignImageData.emit(e.data);else if("OpenDWGFail"===e.type)this.ZwEvtDWGOpenFail.emit(e.data);else if("alternateFontInfo"===e.type)this.ZwEvtAlternateFontInfo.emit(e.data);else if("loadVersionData"===e.type&&e.data)this.ZwEvtLoadVersionData.emit();else if(e.type!==p4.CreateVersion&&e.type!==p4.EditVersion&&e.type!==p4.Delete&&e.type!==p4.Switch&&e.type!==p4.Restore||!e.data)if("textStyle"===e.type)this.ZwEvtGetTextStyleFont.emit(e.data);else if("deleteSign"===e.type)this.ZwEvtSignPanelOperation.emit(e.data);else if("getSignHistory"===e.type)if(U5._instance&&U5._instance.mGs)this.ZwEvtLoadSignHistoryData.emit({docId:U5._instance.mGs.mDocId});else{let t=setInterval((()=>{U5._instance&&U5._instance.mGs&&(this.ZwEvtLoadSignHistoryData.emit({docId:U5._instance.mGs.mDocId}),clearInterval(t))}),10)}else"regen"===e.type&&this.regen();else this.ZwEvtVersionOperation.emit(e);else{let t={handleId:U5._instance.mGs.mCurLayoutHandle,pageNum:1};e.data&&(e.data.handleId&&(t.handleId=e.data.handleId),e.data.pageNum&&(t.pageNum=e.data.pageNum),e.data.keyword&&(t.keyword=e.data.keyword),e.data.userIds&&(t.userIds=e.data.userIds),e.data.startTime&&(t.startTime=e.data.startTime),e.data.endTime&&(t.endTime=e.data.endTime)),"getCommentDataForNextPage"===e.type&&this.ZwEvtGetCommentDataForNextPage.emit(e.data),this.getCommentCallbackParams(t)}break;case _F.AcceptLogger:{let t=Object.assign({},e);U5._instance&&U5._instance.mGs&&Object.assign(t,{docId:U5._instance.mGs.mDocId||"",handleId:U5._instance.mGs.mCurLayoutHandle||""}),delete t.type,"info"===e.type&&ZwCloud2D.ZwMessageCallback.ZwEvtLogInfo(t),"error"===e.type&&ZwCloud2D.ZwMessageCallback.ZwEvtLoadError(t);break}case _F.StatusBar:if("setting"===e.type&&e.data)switch(e.data.type){case"requestFullscreen":this.mIsFullScreen=!0;break;case"exitFullscreen":this.mIsFullScreen=!1}break;case _F.FileCompare:"enterFcmp"===e.type&&this.ZwEvtFileCompare.emit({state:"enterFcmp"}),"getFcmpRegenData"===e.type&&(null==e?void 0:e.data)&&this.ZwEvtFileCompare.emit({state:"getFcmpRegenData",params:e.data}),"exitFcmp"===e.type&&(n7.instance().mIsInitFcmp=!1,this.ZwEvtFileCompare.emit({state:"exitFcmp",params:null}));break;case _F.VersionPanel:e.type===p4.detailReq&&this.ZwEvtVersionOperation.emit(e);break;case _F.SignBlockData:(e.type===I7.GetBlockData||e.type===I7.UploadSign||e.type===I7.UploadCert||e.type===I7.UploadDwg||e.type===I7.ConFirmEdit)&&this.ZwEvtSignBlockData.emit(e);break;case _F.FileOperate:"operateVisible"===e.type&&this.ZwEvtFileOperate.emit();break;case _F.ChangeDirection:if(e.data||e.data===Q3.TOP){let t=e.data,n=X7.find((e=>e.dir===t));this.mCurrentDirection=n}}}scrollTab(t,e){let n=document.getElementById("tab"+t),i=document.getElementById("tab"+e);if(!(this.scrollRef&&this.scrollRef.nativeElement&&n&&i))return;let r=this.scrollRef.nativeElement.scrollLeft,a=this.scrollRef.nativeElement.clientWidth;if(t>=e){if(r<n.offsetLeft+n.clientWidth-105&&r+a>n.offsetLeft+n.clientWidth-105)return;this.scrollTo(n.offsetLeft+n.clientWidth-a-105)}else{if(r<n.offsetLeft-105&&r+a>n.offsetLeft-105)return;this.scrollTo(n.offsetLeft-105)}}canScrollToLeft(){return!(!this.scrollRef.nativeElement||0>=this.scrollRef.nativeElement.scrollLeft)}canScrollToRight(){return!(!this.scrollRef.nativeElement||this.scrollRef.nativeElement.scrollWidth-this.scrollRef.nativeElement.clientWidth<=this.scrollRef.nativeElement.scrollLeft)}scrollToStart(){this.scrollTo(0)}scrollToEnd(){this.scrollTo(this.scrollRef.nativeElement.scrollWidth)}scrollToRight(){this.scrollTo(this.scrollRef.nativeElement.scrollLeft+20)}scrollToLeft(){this.scrollTo(this.scrollRef.nativeElement.scrollLeft-20)}scrollTo(t){this.scrollRef.nativeElement.scrollLeft=t<=0?0:t>=this.scrollRef.nativeElement.scrollWidth-this.scrollRef.nativeElement.clientWidth?this.scrollRef.nativeElement.scrollWidth-this.scrollRef.nativeElement.clientWidth:t}selectLayoutByIndex(t){this.selectLayout(this.mLayoutList[t],t)}selectLayout(t,e){var n=this;return jR((function*(){var i,r,a,o,s;if(n.mPreLayoutIndex=n.mLayoutIndex,n.mLayoutIndex===e||!(yield n.checkSwitchLayoutCondition()))return;n.scrollTab(e,n.mLayoutIndex),n.isLoading=!0,n.isShowCancelButton=!0,n.mLayoutIndex=e;let l=String(n.mLayoutList[n.mLayoutIndex].handleId);if(n.ZwEvtGetLayoutHandle.emit(l),U5._instance&&U5._instance.mGs&&(U5._instance.mGs.clearBubble(),U5._instance.mGs.mCurLayoutHandle=l,n.getCommentCallbackParams({handleId:l,pageNum:1})),MF.instance().broardcast(_F.History,{history:qF.mLanguagePackage.command+" : <"+qF.mLanguagePackage.SwitchTo+" : "+t.name+">"}),null===(r=null===(i=U5._instance)||void 0===i?void 0:i.mGs)||void 0===r?void 0:r.fcmpMatptr){let e=null===(a=U5._instance.mGs)||void 0===a?void 0:a.mGsManager.database();if(!e)return;let i=null===(o=U5._instance.mGs)||void 0===o?void 0:o.mGsManager.isInPaperSpace(),r=null===(s=e.getAllLayoutInfo().find((e=>e.handleId===BigInt(t.handleId))))||void 0===s?void 0:s.mIsModelSpace;if(r?MF.instance().broardcast(_F.FileCompare,{type:"setFcmpInfo",data:{isToolbarVisiable:!0}}):MF.instance().broardcast(_F.FileCompare,{type:"setFcmpInfo",data:{isToolbarVisiable:!1}}),i===r){let t=e.getSymbolTable(o3.kZwDbLayerTable);n.mFcmpLayerTableCache&&(e.removeSymbolTable(o3.kZwDbLayerTable),e.addSymbolTable(o3.kZwDbLayerTable,n.mFcmpLayerTableCache),e.updateLayerColor(),MF.instance().broardcast(_F.UpdatePage,{type:"updateLayerList",data:e})),n.mFcmpLayerTableCache=t}}else MF.instance().broardcast(_F.FileCompare,{type:"setFcmpInfo",data:{isToolbarVisiable:!1}}),n.mFcmpLayerTableCache=null;setTimeout((()=>{if(n.mDwgVisualize.changeLayout(BigInt(t.handleId))){let t=jF.instance().getCurView();t&&MF.instance().broardcast(_F.StatusBar,{type:"switch",data:{switch:t.mGridSwitch,name:"GRID"}})}else n.switchLayout(t.handleId)}))}))()}checkSwitchLayoutCondition(){var t=this;return jR((function*(){return n7.instance().mCmdExecutionStatus?(MF.instance().broardcast(_F.History,{history:qF.mLanguagePackage.cmdExecuting}),!1):!(t.webSocket&&t.webSocket.mDataQueue.length>0)||(MF.instance().broardcast(_F.UpdatePage,{type:"loading",data:{isLoading:!0,loadingMessage:qF.mLanguagePackage.layout_switching}}),yield function(){let t=new OF;return new Promise(((e,n)=>{t.addCb(EF.waitWsQueueEmpty,(t=>{e(t)}))}))}().then((()=>!0)))}))()}switchLayout(t){let e=this.mLayoutList.filter((e=>e.handleId===t))[0];!e||this.ZwEvtChangeLayout.emit(e)}cancelSwitchLayout(){this.isShowCancelButton=!1,this.isLoading=!1,this.scrollTab(this.mPreLayoutIndex,this.mLayoutIndex),this.mLayoutIndex=this.mPreLayoutIndex}cancel(t){1===t.button&&t.preventDefault()}checkVisible(){let t=KF;this.mToolVisible=!t.commandButton||-1!==Object.values(t.commandButton).indexOf(!0),this.mMenuVisible=!t.panel||-1!==Object.values(t.panel).indexOf(!0),this.mExtendButtons&&this.mExtendButtons.length>=1&&(this.mToolVisible=!0),this.changeDetectorRef.detectChanges()}hideMenu(){this.mMenuVisible=!1,this.changeDetectorRef.detectChanges()}entryEdit(){this.mIsReadyDB&&this.mIsEntryEdit&&this.mEntryEditUrl&&(this.mIsReadyDB=!1,this.mIsEntryEdit=!1,this.webSocket.connect(this.mEntryEditUrl),this.mDwgVisualize.setMessageService(this.messageService),this.mDwgVisualize.setWebSocket(this.webSocket))}getCommentCallbackParams(t,e){t.pageSize=this.settingService.pageConfig$.getValue().options.commentsPageSize,"initial"===e&&(t.initial=!0),this.ZwEvtLoadCommentData.emit(t)}extendClick(t){this.ZwEvtExtendButtonClick.emit(t)}showModal(){this.mDownloadDwgFlag?((new OF).pub(EF.styleModal,!0),(new OF).pub(EF.dimStyleModal,!0)):(this.isLoading=!0,this.mLoadingMessage=qF.mLanguagePackage.readingDwg,this.ZwEvtLoadDwgFile.emit())}sortList(t,e){let n=t.name.toLowerCase(),i=e.name.toLowerCase();return n<i?-1:n>i?1:0}getShareInfo(){this.ZwEvtGetShareInfo.emit()}getQrCode(){this.ZwEvtGetQrCode.emit()}changeTheme(t){XF.instance().setItem("cloud2d-theme-style",t),this.ZwEvtChangeTheme.emit(t)}contextMenu(t,e){let n=n7.instance(),i=JSON.parse(JSON.stringify(n.mCmdHistoryList));U5._instance.mGs&&!U5._instance.mGs.isInEditMode()&&(i=i.filter((t=>-1===n.mEditCommand.indexOf(t)))),this.mCmdExecutionStatus=n.mCmdExecutionStatus,this.mCmdHistoryList=Array.from(new Set(i.reverse())),this.mLastCommand=this.mCmdHistoryList[0],this.mLastCommand&&(this.mLastCommand=this.mLastCommand.toUpperCase()),this.nzContextMenuService.create(t,e)}getThemeColor(){return document.body.getAttribute("cloud2d-theme-style")}regen(){U5._instance.mGs&&U5._instance.mGs.isInEditMode()?MF.instance().broardcast(_F.GsInteraction,{type:"updateViewData"}):MF.instance().broardcast(_F.GsInteraction,{type:"updateViewDataHttp"}),MF.instance().broardcast(_F.UpdatePage,{type:"loading",data:{isLoading:!0,loadingProgressPreset:{phase:OW.init}}}),MF.instance().broardcast(_F.UpdatePage,{type:"loading",data:{isLoading:!0,loadingMessage:qF.mLanguagePackage.regening+", "+qF.mLanguagePackage.OpenDwgPhaseGetData+"..."}})}excuteHistoryCmd(t,e){e?n7.instance().setExecuteCmdByClickButton(t,e):(this.mCurrentDirection=void 0,n7.instance().setExecuteCmdByClickButton(t))}exitCommand(){n7.instance().clear("keepHistory"),h4.mCmd=null,uB.unInitialize()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(y4),Zo(jF),Zo(A5),Zo(l8),Zo(HA),Zo(AT),Zo(wA),Zo(tc),Zo(Gl),Zo(HA))},t["ɵcmp"]=qt({type:t,selectors:[["app-dwg-editor"]],viewQuery:function(t,e){if(1&t&&(Nc(Jot,5),Nc(Qot,5),Nc(tst,5),Nc(est,5)),2&t){let t;Vc(t=Gc())&&(e.scrollRef=t.first),Vc(t=Gc())&&(e.tool=t.first),Vc(t=Gc())&&(e.toolComponent=t.first),Vc(t=Gc())&&(e.statusBarComponent=t.first)}},outputs:{ZwEvtCoreEditor:"ZwEvtCoreEditor",ZwEvtDrawEnd:"ZwEvtDrawEnd",ZwEvtChangeSetting:"ZwEvtChangeSetting",ZwEvtChangeLayout:"ZwEvtChangeLayout",ZwEvtLoadXrefData:"ZwEvtLoadXrefData",ZwEvtLoadImageData:"ZwEvtLoadImageData",ZwEvtLoadImageList:"ZwEvtLoadImageList",ZwEvtPlotDwg:"ZwEvtPlotDwg",ZwEvtLoadCommentData:"ZwEvtLoadCommentData",ZwEvtExportCommentData:"ZwEvtExportCommentData",ZwEvtUpdateCommentData:"ZwEvtUpdateCommentData",ZwEvtDrawCommentBubble:"ZwEvtDrawCommentBubble",ZwEvtGetCommentDataForNextPage:"ZwEvtGetCommentDataForNextPage",ZwEvtGetRegenData:"ZwEvtGetRegenData",ZwEvtLoadVersionData:"ZwEvtLoadVersionData",ZwEvtVersionOperation:"ZwEvtVersionOperation",ZwEvtExtendButtonClick:"ZwEvtExtendButtonClick",ZwEvtDWGOpenFail:"ZwEvtDWGOpenFail",ZwEvtLoadSignHistoryData:"ZwEvtLoadSignHistoryData",ZwEvtLoadSignImageData:"ZwEvtLoadSignImageData",ZwEvtSignBlockData:"ZwEvtSignBlockData",ZwEvtSignPanelOperation:"ZwEvtSignPanelOperation",ZwEvtLoadDwgFile:"ZwEvtLoadDwgFile",ZwEvtGetTextStyleFont:"ZwEvtGetTextStyleFont",ZwEvtAlternateFontInfo:"ZwEvtAlternateFontInfo",ZwEvtFileOperate:"ZwEvtFileOperate",ZwEvtGetShareInfo:"ZwEvtGetShareInfo",ZwEvtGetQrCode:"ZwEvtGetQrCode",ZwEvtChangeTheme:"ZwEvtChangeTheme",ZwEvtGetLayoutHandle:"ZwEvtGetLayoutHandle",ZwEvtFileCompare:"ZwEvtFileCompare"},decls:13,vars:8,consts:[["class","container not-select",3,"class",4,"ngIf"],[4,"ngIf"],["style","\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n backdrop-filter: saturate(180%) blur(5px);",4,"ngIf"],["class","spin",4,"ngIf"],[3,"textStyleList","currentTextStyle"],[3,"dimStyleList","currentDimStyle"],[1,"container","not-select"],["class","tool",4,"ngIf"],["id","main_c",1,"main_c"],["id","left_menu","class","left_menu",4,"ngIf"],[1,"main"],["browseMain",""],[1,"painter"],["id","mainCanvas",2,"width","100%","height","100%",3,"mousedown","contextmenu"],["menu","nzDropdownMenu"],["nz-menu","","class","cloudMenu",4,"ngIf"],["zoom",""],["recentCmd",""],["id","content",2,"position","absolute","pointer-events","none","left","0","top","0"],[1,"layer_picker"],[1,"slip_list"],["nz-dropdown","","nzTrigger","click","nzPlacement","topLeft",1,"icon-container",3,"nzDropdownMenu"],["aria-hidden","true",1,"icon","svg-icon"],[0,"xlink","href","#icon-liebiao"],[1,"icon-container",3,"title","click"],[0,"xlink","href","#icon-shouye"],[0,"xlink","href","#icon-xiangzuo"],[0,"xlink","href","#icon-xiangyou"],[0,"xlink","href","#icon-weiye"],[1,"layout-scroll"],["scroll",""],[3,"id","class","click",4,"ngFor","ngForOf"],["menu_layout","nzDropdownMenu"],["nz-menu","",1,"list_ul"],["class","list_li","nz-menu-item","",3,"click",4,"ngFor","ngForOf"],[1,"statusBar"],["statusBar",""],["statusBarComponent",""],[1,"tool"],["tool",""],[3,"mLayoutIndex","mExtendButtons","qrCode","extendClick","showModal"],["toolComponent",""],["id","left_menu",1,"left_menu"],["nz-menu","",1,"cloudMenu"],["nz-menu-item","",3,"click",4,"ngIf"],["nz-submenu","",3,"nzTitle",4,"ngIf"],["nz-submenu","",3,"nzTitle"],[1,"cloudSubMenu"],["nz-menu-item","",3,"click"],["aria-hidden","true"],[0,"xlink","href","#icon-ZoomIn"],[0,"xlink","href","#icon-ZoomOut"],[0,"xlink","href","#icon-ZoomAll"],[0,"xlink","href","#icon-ZoomCenter"],[0,"xlink","href","#icon-ZoomRange"],["nz-menu-item","",3,"click",4,"ngFor","ngForOf"],[0,"xlink","href","#icon-pingyi"],[0,"xlink","href","#icon-zhongshengcheng"],[0,"xlink","href","#icon-sanweidongtaiguancha"],[0,"xlink","href","#icon-qiehuanweiming"],[0,"xlink","href","#icon-qiehuanweian"],[0,"xlink","href","#icon-suofang"],[3,"id","click"],["nz-menu-item","",1,"list_li",3,"click"],[1,"list_li_span"],[3,"mLayoutList","mLayoutIndex","fileName","qrCode","selectLayout","getShareInfo"],[2,"position","absolute","top","0","left","0","width","100%","height","100%","backdrop-filter","saturate(180%) blur(5px)"],[1,"spin"],[1,"loadingBar"],[1,"svg"],[0,"xlink","href","#icon-chilun"],["class","percent",4,"ngIf"],["class","description",4,"ngIf"],[1,"percent"],[1,"description"]],template:function(t,e){1&t&&(Ho(0,yst,49,30,"div",0),Ho(1,vst,2,4,"div",1),Ho(2,wst,1,0,"div",2),Ho(3,kst,7,2,"div",3),Xo(4,"app-about-modal"),Xo(5,"app-text_modal"),Xo(6,"app-image_modal"),Xo(7,"app-print_modal"),Xo(8,"app-ucsman-modal"),Xo(9,"app-options-modal"),Xo(10,"app-style_modal",4),Xo(11,"app-dim_style_modal",5),Xo(12,"app-fcmp-toolbar")),2&t&&(Uo("ngIf",!e.isMobile),sa(1),Uo("ngIf",e.isMobile),sa(1),Uo("ngIf",e.isLoading),sa(1),Uo("ngIf",e.isLoading),sa(7),Uo("textStyleList",e.textStyleList)("currentTextStyle",e.currentTextStyle),sa(1),Uo("dimStyleList",e.dimStyleList)("currentDimStyle",e.currentDimStyle))},directives:[Yd,Q7,e9,l9,Z9,Y9,stt,htt,Ett,Mnt,Cat,bA,gA,Ud,oA,Gat,Zot,Kot,sM,iA,tA,U4],pipes:[H3],styles:[".container[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;flex-direction:column;position:relative}.container[_ngcontent-%COMP%] .tool[_ngcontent-%COMP%]{height:36px;border-top:1px solid var(--editor_main_border);border-bottom:1px solid var(--editor_main_border);background-color:var(--editor_main_background)}.container[_ngcontent-%COMP%] .main_c[_ngcontent-%COMP%]{position:relative;display:flex}.container[_ngcontent-%COMP%] .main_c[_ngcontent-%COMP%] .left_menu[_ngcontent-%COMP%]{position:relative;height:100%}.container[_ngcontent-%COMP%] .main_c[_ngcontent-%COMP%] .main[_ngcontent-%COMP%]{position:relative;flex:1}.container[_ngcontent-%COMP%] .main_c[_ngcontent-%COMP%] .main[_ngcontent-%COMP%] .painter[_ngcontent-%COMP%]{position:relative;height:100%;overflow:hidden;background-color:var(--editor_main_background);height:calc(100% - 22px)}.container[_ngcontent-%COMP%] .main_c[_ngcontent-%COMP%] .main[_ngcontent-%COMP%] .painter[_ngcontent-%COMP%] .tool[_ngcontent-%COMP%]{width:100%;height:20px;background-color:var(--ribbon_background);color:#fff}.container[_ngcontent-%COMP%] .main_c[_ngcontent-%COMP%] .main[_ngcontent-%COMP%] .layer_picker[_ngcontent-%COMP%]{position:absolute;left:0;bottom:0;display:flex;flex-direction:row;width:100%;margin:0;padding:0;height:22px;color:#fff;background-color:var(--editor_main_background);border:1px solid var(--editor_main_border);border-right:0;border-left:0}.container[_ngcontent-%COMP%] .main_c[_ngcontent-%COMP%] .main[_ngcontent-%COMP%] .layer_picker[_ngcontent-%COMP%] .list[_ngcontent-%COMP%]{background-color:#414852;margin-right:2px;cursor:pointer}.container[_ngcontent-%COMP%] .main_c[_ngcontent-%COMP%] .main[_ngcontent-%COMP%] .layer_picker[_ngcontent-%COMP%] .slip_list[_ngcontent-%COMP%]{display:flex;background-color:#414852}.container[_ngcontent-%COMP%] .main_c[_ngcontent-%COMP%] .main[_ngcontent-%COMP%] .layer_picker[_ngcontent-%COMP%] .slip_list[_ngcontent-%COMP%] .icon-container[_ngcontent-%COMP%]{height:20px;padding:1px 3px;background-color:var(--editor_main_background);color:var(--editor_slip_list);cursor:pointer;border-right:1px solid var(--editor_main_border)}.container[_ngcontent-%COMP%] .main_c[_ngcontent-%COMP%] .main[_ngcontent-%COMP%] .layer_picker[_ngcontent-%COMP%] .slip_list[_ngcontent-%COMP%] .svg-icon[_ngcontent-%COMP%]{vertical-align:0}.container[_ngcontent-%COMP%] .main_c[_ngcontent-%COMP%] .main[_ngcontent-%COMP%] .layer_picker[_ngcontent-%COMP%] .slip_list[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]{color:var(--editor_slip_list_disable)}.container[_ngcontent-%COMP%] .main_c[_ngcontent-%COMP%] .main[_ngcontent-%COMP%] .layer_picker[_ngcontent-%COMP%] .layout-scroll[_ngcontent-%COMP%]{width:calc(100% - 105px);overflow-x:auto;overflow-y:hidden;white-space:nowrap}.container[_ngcontent-%COMP%] .main_c[_ngcontent-%COMP%] .main[_ngcontent-%COMP%] .layer_picker[_ngcontent-%COMP%] .layout-scroll[_ngcontent-%COMP%]::-webkit-scrollbar{width:0px;height:0px}.container[_ngcontent-%COMP%] .main_c[_ngcontent-%COMP%] .main[_ngcontent-%COMP%] .layer_picker[_ngcontent-%COMP%] .layout-scroll[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{min-width:50px;max-width:120px;display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;list-style:none;font-size:12px;padding:0 1em;background-color:var(--editor_not_active);color:var(--editor_not_active_font);cursor:pointer;height:20px;border-right:1px solid var(--editor_main_border)}.container[_ngcontent-%COMP%] .main_c[_ngcontent-%COMP%] .main[_ngcontent-%COMP%] .layer_picker[_ngcontent-%COMP%] .layout-scroll[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%]{background-color:var(--editor_active);color:var(--editor_active_font)}.container[_ngcontent-%COMP%] .main_c[_ngcontent-%COMP%] .main[_ngcontent-%COMP%] .command[_ngcontent-%COMP%]{bottom:0px;height:150px;left:0px;position:absolute;width:100%;z-index:999}.container[_ngcontent-%COMP%] .statusBar[_ngcontent-%COMP%]{width:100%;height:30px;font-size:12px}.fullScreen[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0;bottom:0}.spin[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;z-index:11;background-color:#00000080;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff}.spin[_ngcontent-%COMP%] .loadingBar[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.spin[_ngcontent-%COMP%] .loadingBar[_ngcontent-%COMP%] .svg[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{height:40px;width:40px;color:#0079ef;animation:spin 2s linear infinite}.spin[_ngcontent-%COMP%] .loadingBar[_ngcontent-%COMP%] .percent[_ngcontent-%COMP%]{font-size:22px;margin-bottom:5px}.spin[_ngcontent-%COMP%] .loadingBar[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{margin-bottom:5px}.blur[_ngcontent-%COMP%]{filter:blur(5px)}.list_ul[_ngcontent-%COMP%]{max-height:400px;overflow-y:auto;padding:0;border:1px solid #a0a0a0}.list_ul[_ngcontent-%COMP%] .list_li[_ngcontent-%COMP%]{padding:0 5em 0 0;background-color:var(--editor_main_selected);color:#fff}.list_ul[_ngcontent-%COMP%] .list_li[_ngcontent-%COMP%]:hover{background-color:#2191ec}.list_ul[_ngcontent-%COMP%] .list_li[_ngcontent-%COMP%] .list_li_span[_ngcontent-%COMP%]{display:inline-block;width:2em;height:2em;line-height:2em;text-align:center;color:#5fbcfe;font-weight:900;border-right:1px solid var(--editor_main_border_light)}.list_ul[_ngcontent-%COMP%] .list_li[_ngcontent-%COMP%] .list_li_span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:inline-block;width:100%;height:100%;background-color:var(--editor_main_selected)}.list_ul[_ngcontent-%COMP%] .list_li[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(2){padding-left:5px}.list_ul[_ngcontent-%COMP%]::-webkit-scrollbar{width:10px;height:10px}.list_ul[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:10px;background-color:var(--editor_main_scrollBar)}.list_ul[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:var(--scrollbar_track)}.list_ul[_ngcontent-%COMP%]::-webkit-scrollbar-corner{width:10px;height:10px;background-color:var(--editor_main_background)} .ant-dropdown{margin-bottom:1px} .ant-modal{width:-webkit-fit-content!important;border-radius:8px;overflow:hidden;padding:0} .ant-modal-content{width:-webkit-fit-content;height:-webkit-fit-conent;margin:0 auto} .ant-modal-body{padding:0;height:-webkit-fit-conent} .ant-modal-footer{padding:16px}.container[_ngcontent-%COMP%] .ant-radio-group{display:flex;width:100%;height:100%;margin-top:10px;flex-direction:row;justify-content:space-around} .ant-image-preview-operations{top:unset;bottom:0;justify-content:center} .ant-image-preview-img{max-height:calc(100% - 80px)} .ant-message .anticon{top:-1px} .cloudMenu, .cloudSubMenu{background-color:var(--editor_main_background)} .cloudMenu li, .cloudMenu .ant-dropdown-menu-submenu, .cloudMenu .ant-dropdown-menu, .cloudMenu .ant-dropdown-menu-submenu-title, .cloudSubMenu li, .cloudSubMenu .ant-dropdown-menu-submenu, .cloudSubMenu .ant-dropdown-menu, .cloudSubMenu .ant-dropdown-menu-submenu-title{color:var(--context_menu_font);padding:0} .cloudMenu li .ant-dropdown-menu-submenu-title, .cloudMenu .ant-dropdown-menu-submenu .ant-dropdown-menu-submenu-title, .cloudMenu .ant-dropdown-menu .ant-dropdown-menu-submenu-title, .cloudMenu .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-title, .cloudSubMenu li .ant-dropdown-menu-submenu-title, .cloudSubMenu .ant-dropdown-menu-submenu .ant-dropdown-menu-submenu-title, .cloudSubMenu .ant-dropdown-menu .ant-dropdown-menu-submenu-title, .cloudSubMenu .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-title{color:var(--context_menu_font);position:relative} .cloudMenu li span:not(.ant-dropdown-menu-submenu-expand-icon), .cloudMenu .ant-dropdown-menu-submenu span:not(.ant-dropdown-menu-submenu-expand-icon), .cloudMenu .ant-dropdown-menu span:not(.ant-dropdown-menu-submenu-expand-icon), .cloudMenu .ant-dropdown-menu-submenu-title span:not(.ant-dropdown-menu-submenu-expand-icon), .cloudSubMenu li span:not(.ant-dropdown-menu-submenu-expand-icon), .cloudSubMenu .ant-dropdown-menu-submenu span:not(.ant-dropdown-menu-submenu-expand-icon), .cloudSubMenu .ant-dropdown-menu span:not(.ant-dropdown-menu-submenu-expand-icon), .cloudSubMenu .ant-dropdown-menu-submenu-title span:not(.ant-dropdown-menu-submenu-expand-icon){text-indent:4px;font-size:12px;padding:4px 20px 4px 0;border-left:1px solid var(--context_menu_border);display:inline-block} .cloudMenu li .ant-dropdown-menu-submenu-expand-icon, .cloudMenu .ant-dropdown-menu-submenu .ant-dropdown-menu-submenu-expand-icon, .cloudMenu .ant-dropdown-menu .ant-dropdown-menu-submenu-expand-icon, .cloudMenu .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-expand-icon, .cloudSubMenu li .ant-dropdown-menu-submenu-expand-icon, .cloudSubMenu .ant-dropdown-menu-submenu .ant-dropdown-menu-submenu-expand-icon, .cloudSubMenu .ant-dropdown-menu .ant-dropdown-menu-submenu-expand-icon, .cloudSubMenu .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-expand-icon{top:0;height:100%} .cloudMenu li svg, .cloudMenu .ant-dropdown-menu-submenu svg, .cloudMenu .ant-dropdown-menu svg, .cloudMenu .ant-dropdown-menu-submenu-title svg, .cloudSubMenu li svg, .cloudSubMenu .ant-dropdown-menu-submenu svg, .cloudSubMenu .ant-dropdown-menu svg, .cloudSubMenu .ant-dropdown-menu-submenu-title svg{margin:0 6px;font-size:16px} .cloudMenu li .anticon svg, .cloudMenu .ant-dropdown-menu-submenu .anticon svg, .cloudMenu .ant-dropdown-menu .anticon svg, .cloudMenu .ant-dropdown-menu-submenu-title .anticon svg, .cloudSubMenu li .anticon svg, .cloudSubMenu .ant-dropdown-menu-submenu .anticon svg, .cloudSubMenu .ant-dropdown-menu .anticon svg, .cloudSubMenu .ant-dropdown-menu-submenu-title .anticon svg{font-size:unset!important} .cloudMenu li svg, .cloudMenu li i, .cloudMenu .ant-dropdown-menu-submenu svg, .cloudMenu .ant-dropdown-menu-submenu i, .cloudMenu .ant-dropdown-menu svg, .cloudMenu .ant-dropdown-menu i, .cloudMenu .ant-dropdown-menu-submenu-title svg, .cloudMenu .ant-dropdown-menu-submenu-title i, .cloudSubMenu li svg, .cloudSubMenu li i, .cloudSubMenu .ant-dropdown-menu-submenu svg, .cloudSubMenu .ant-dropdown-menu-submenu i, .cloudSubMenu .ant-dropdown-menu svg, .cloudSubMenu .ant-dropdown-menu i, .cloudSubMenu .ant-dropdown-menu-submenu-title svg, .cloudSubMenu .ant-dropdown-menu-submenu-title i{color:var(--context_menu_icon)!important} .cloudMenu li:hover, .cloudMenu .ant-dropdown-menu-submenu:hover, .cloudMenu .ant-dropdown-menu:hover, .cloudMenu .ant-dropdown-menu-submenu-title:hover, .cloudSubMenu li:hover, .cloudSubMenu .ant-dropdown-menu-submenu:hover, .cloudSubMenu .ant-dropdown-menu:hover, .cloudSubMenu .ant-dropdown-menu-submenu-title:hover{background-color:var(--context_menu_hover);color:var(--main_white)} .cloudMenu li:hover svg, .cloudMenu .ant-dropdown-menu-submenu:hover svg, .cloudMenu .ant-dropdown-menu:hover svg, .cloudMenu .ant-dropdown-menu-submenu-title:hover svg, .cloudSubMenu li:hover svg, .cloudSubMenu .ant-dropdown-menu-submenu:hover svg, .cloudSubMenu .ant-dropdown-menu:hover svg, .cloudSubMenu .ant-dropdown-menu-submenu-title:hover svg{color:var(--main_white)!important} .ant-dropdown-menu{padding:0}"]}),t})();function Pst(t,e){1&t&&(gn(),Xo(0,"use",20))}function _st(t,e){1&t&&(gn(),Xo(0,"use",21))}function Mst(t,e){1&t&&(gn(),Xo(0,"use",22))}function Dst(t,e){1&t&&(gn(),Xo(0,"use",23))}function Est(t,e){1&t&&(gn(),Xo(0,"use",24))}function Ost(t,e){1&t&&(gn(),Xo(0,"use",25))}const Ast=function(t){return{"background-color":t}};function Tst(t,e){if(1&t){const t=Jo();Yo(0,"div",6),Yo(1,"div",7),Xo(2,"div",8),jo(),Yo(3,"div",9),Yo(4,"span"),Bs(5),jo(),jo(),Yo(6,"div",10),es("click",(function(){const e=Ne(t).$implicit;return os().changeVis(e)})),gn(),Yo(7,"svg",11),Ho(8,Pst,1,0,"use",12),Ho(9,_st,1,0,"use",13),jo(),jo(),fn(),Yo(10,"div",14),gn(),Yo(11,"svg",11),Ho(12,Mst,1,0,"use",15),Ho(13,Dst,1,0,"use",16),jo(),jo(),fn(),Yo(14,"div",17),gn(),Yo(15,"svg",11),Ho(16,Est,1,0,"use",18),Ho(17,Ost,1,0,"use",19),jo(),jo(),jo()}if(2&t){const t=e.$implicit,n=os();sa(2),ks(fc(16,Ast,n.number2Rgb16(t.mColor))),sa(1),Uo("title",t.mLayerName),sa(2),Vs(n.modify(t.mLayerName)),sa(2),Ps(t.mIsOff?"off_icon":""),sa(1),Uo("ngIf",!t.mIsOff),sa(1),Uo("ngIf",t.mIsOff),sa(2),Ps(t.mIsFrozen?"off_icon":""),sa(1),Uo("ngIf",!t.mIsFrozen),sa(1),Uo("ngIf",t.mIsFrozen),sa(2),Ps(t.mIsLocked?"off_icon":""),sa(1),Uo("ngIf",t.mIsLocked),sa(1),Uo("ngIf",!t.mIsLocked)}}var Ist,Lst=((Ist=Lst||(Lst={}))[Ist.kLnWtByLayer=-1]="kLnWtByLayer",Ist[Ist.kLnWtByBlock=-2]="kLnWtByBlock",Ist[Ist.kLnWtByLwDefault=-3]="kLnWtByLwDefault",Ist[Ist.kLnWt000=0]="kLnWt000",Ist[Ist.kLnWt005=5]="kLnWt005",Ist[Ist.kLnWt009=9]="kLnWt009",Ist[Ist.kLnWt013=13]="kLnWt013",Ist[Ist.kLnWt015=15]="kLnWt015",Ist[Ist.kLnWt018=18]="kLnWt018",Ist[Ist.kLnWt020=20]="kLnWt020",Ist[Ist.kLnWt025=25]="kLnWt025",Ist[Ist.kLnWt030=30]="kLnWt030",Ist[Ist.kLnWt035=35]="kLnWt035",Ist[Ist.kLnWt040=40]="kLnWt040",Ist[Ist.kLnWt050=50]="kLnWt050",Ist[Ist.kLnWt053=53]="kLnWt053",Ist[Ist.kLnWt060=60]="kLnWt060",Ist[Ist.kLnWt070=70]="kLnWt070",Ist[Ist.kLnWt080=80]="kLnWt080",Ist[Ist.kLnWt090=90]="kLnWt090",Ist[Ist.kLnWt100=100]="kLnWt100",Ist[Ist.kLnWt106=106]="kLnWt106",Ist[Ist.kLnWt120=120]="kLnWt120",Ist[Ist.kLnWt140=140]="kLnWt140",Ist[Ist.kLnWt158=158]="kLnWt158",Ist[Ist.kLnWt200=200]="kLnWt200",Ist[Ist.kLnWt211=211]="kLnWt211",Lst);let zst=(()=>{class t{constructor(t,e,n){this.changeDetectorRef=t,this.dwgVisualizeService=e,this.databaseService=n,this.closeLayer=new Dc,this.layerList=[],this.sortType="mLayerName"}ngOnInit(){MF.instance().subscribeBroardcast(_F.UpdatePage,this);let t=this.databaseService.getDB();t&&this.getLayerList(t)}notify(t,e){if(t===_F.UpdatePage&&"object"==typeof e&&"updateLayerList"===e.type){let t=e.data;t&&this.getLayerList(t),this.changeDetectorRef.detectChanges()}}close(){this.closeLayer.emit()}changeLayerStatus(t,e){let n=t.mLayerHandle,i=this.databaseService.getDB();if(null===i)return;let r=i.getSymbolTable(o3.kZwDbLayerTable);t[e]=!t[e],this.changeDetectorRef.detectChanges();let a=r.get(n);a&&(a[e]=t[e]),this.dwgVisualizeService.repaint()}changeVis(t){this.changeLayerStatus(t,"mIsOff")}changeFrz(t){this.changeLayerStatus(t,"mIsFrozen")}changeLck(t){this.changeLayerStatus(t,"mIsLocked")}modify(t){return t.replace(/\\((M|N)|(m|n))\+[A-Za-z0-9]{5}/g," ")}getValue(t,e){return t[e]}compare(t){let e=this;return"mLayerName"===t?function(n,i){let r=e.getValue(n,t),a=e.getValue(i,t);return r.localeCompare(a)}:function(t,n){let i=e.getValue(t,"mLayerName"),r=e.getValue(n,"mLayerName");return i.localeCompare(r)}}getLayerList(t){this.layerList=[];let e=t.getSymbolTable(o3.kZwDbLayerTable);if(e){let t=e.itemCount();for(let n=0;n<t;n++){let t=e.getAt(n);if(void 0===t)break;let i=t.getLayerInfo();i=Object.assign({},i),this.layerList.push(i)}}this.layerList.length&&this.layerList.sort(this.compare(this.sortType))}number2Rgb16(t){return mJ(t)}getLineWeight(t){let e=1,n="";switch(t){case Lst.kLnWtByLayer:return n=qF.mLanguagePackage.editor_byLayer,{height:e,text:n};case Lst.kLnWtByBlock:return n=qF.mLanguagePackage.editor_byBlock,{height:e,text:n};case Lst.kLnWtByLwDefault:return n=qF.mLanguagePackage.editor_default,{height:e,text:n};case Lst.kLnWt000:case Lst.kLnWt005:case Lst.kLnWt009:case Lst.kLnWt013:case Lst.kLnWt015:case Lst.kLnWt018:case Lst.kLnWt020:case Lst.kLnWt025:e=1;break;case Lst.kLnWt030:case Lst.kLnWt035:e=3;break;case Lst.kLnWt040:e=4;break;case Lst.kLnWt050:case Lst.kLnWt053:e=5;break;case Lst.kLnWt060:e=6;break;case Lst.kLnWt070:e=7;break;case Lst.kLnWt080:e=8;break;case Lst.kLnWt090:e=9;break;case Lst.kLnWt100:case Lst.kLnWt106:e=10;break;case Lst.kLnWt120:e=12;break;case Lst.kLnWt140:e=13;break;case Lst.kLnWt158:e=14;break;case Lst.kLnWt200:case Lst.kLnWt211:e=15}return n=(t*=.01).toFixed(2)+"mm",{height:e,text:n}}getOpacity(t){return Math.round(100*(1-(255&t)/255))}ngOnDestroy(){MF.instance().unsubscribeBroardcast(_F.UpdatePage,this)}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Gl),Zo(y4),Zo(sB))},t["ɵcmp"]=qt({type:t,selectors:[["app-mobile-layer"]],outputs:{closeLayer:"closeLayer"},decls:13,vars:14,consts:[[1,"container"],[1,"title"],[2,"color","var(--panel_title)"],[1,"content"],[1,"layer-list"],["class","layer-item",4,"ngFor","ngForOf"],[1,"layer-item"],[1,"layer-color"],[1,"color-item"],[1,"layer-name",3,"title"],[1,"layer-visible",3,"click"],["aria-hidden","true",1,"icon"],[0,"xlink","href","#icon-xianshi",4,"ngIf"],[0,"xlink","href","#icon-yincang",4,"ngIf"],[1,"layer-freeze"],[0,"xlink","href","#icon-jiedong",4,"ngIf"],[0,"xlink","href","#icon-dongjie",4,"ngIf"],[1,"layer-lock"],[0,"xlink","href","#icon-suoding",4,"ngIf"],[0,"xlink","href","#icon-jiesuo",4,"ngIf"],[0,"xlink","href","#icon-xianshi"],[0,"xlink","href","#icon-yincang"],[0,"xlink","href","#icon-jiedong"],[0,"xlink","href","#icon-dongjie"],[0,"xlink","href","#icon-suoding"],[0,"xlink","href","#icon-jiesuo"]],template:function(t,e){1&t&&(Yo(0,"div",0),Yo(1,"div",1),Yo(2,"span"),Bs(3),Cc(4,"translate"),jo(),Yo(5,"span",2),Bs(6),Cc(7,"translate"),Cc(8,"translate"),Cc(9,"translate"),jo(),jo(),Yo(10,"div",3),Yo(11,"div",4),Ho(12,Tst,18,18,"div",5),jo(),jo(),jo()),2&t&&(sa(3),Vs(kc(4,6,"editor_layerPanel")),sa(3),Zs("",kc(7,8,"total")," ",e.layerList.length,"",kc(8,10,"unit"),"",kc(9,12,"editor_layerPanel"),""),sa(6),Uo("ngForOf",e.layerList))},directives:[Ud,Yd],pipes:[H3],styles:[".container[_ngcontent-%COMP%]{width:100%;background-color:var(--editor_mobile_background);color:var(--main_font);overflow:hidden;font-size:14px}.container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{width:100%;position:relative;display:flex;align-items:center;justify-content:space-between;height:40px;line-height:40px;border-top:1px solid var(--editor_mobile_border);border-bottom:1px solid var(--editor_mobile_border);padding:0 10px}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{text-align:center;font-size:16px;margin:0 auto}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-list[_ngcontent-%COMP%]{overflow-y:auto;max-height:400px}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-list[_ngcontent-%COMP%]::-webkit-scrollbar{width:10px}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-list[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:99px;border:3.5px solid rgba(0,0,0,0);box-shadow:99px 0 #b0b0b080 inset}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-list[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:transparent}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-title[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-item[_ngcontent-%COMP%]{color:var(--main_font);display:flex;align-items:center}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-title[_ngcontent-%COMP%] div[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-item[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{border-bottom:1px solid var(--editor_mobile_border);height:40px;line-height:40px}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-title[_ngcontent-%COMP%] .layer-visible[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-item[_ngcontent-%COMP%] .layer-visible[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-width:28px;width:10%}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-title[_ngcontent-%COMP%] .layer-freeze[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-item[_ngcontent-%COMP%] .layer-freeze[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-width:28px;width:10%}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-title[_ngcontent-%COMP%] .layer-color[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-item[_ngcontent-%COMP%] .layer-color[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-width:28px;width:5%}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-title[_ngcontent-%COMP%] .layer-color[_ngcontent-%COMP%] .color-item[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-item[_ngcontent-%COMP%] .layer-color[_ngcontent-%COMP%] .color-item[_ngcontent-%COMP%]{height:100%;width:15px}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-title[_ngcontent-%COMP%] .layer-name[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-item[_ngcontent-%COMP%] .layer-name[_ngcontent-%COMP%]{text-align:left;padding:0 5px;min-width:120px;width:65%}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-title[_ngcontent-%COMP%] .layer-name[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-item[_ngcontent-%COMP%] .layer-name[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;width:100%}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-title[_ngcontent-%COMP%] .layer-lock[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-item[_ngcontent-%COMP%] .layer-lock[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-width:28px;width:10%}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-title[_ngcontent-%COMP%] .layer-type[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-item[_ngcontent-%COMP%] .layer-type[_ngcontent-%COMP%]{text-align:left;padding:0 5px;min-width:70px;width:15%}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-title[_ngcontent-%COMP%] .layer-lweight[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-item[_ngcontent-%COMP%] .layer-lweight[_ngcontent-%COMP%]{display:flex;align-items:center;padding:0 5px;min-width:90px;width:30%}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-title[_ngcontent-%COMP%] .layer-lweight[_ngcontent-%COMP%] .layer-lweight-icon[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-item[_ngcontent-%COMP%] .layer-lweight[_ngcontent-%COMP%] .layer-lweight-icon[_ngcontent-%COMP%]{margin-right:5px;border:none;background-color:var(--layer_lweight_icon);width:35px}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-title[_ngcontent-%COMP%] .layer-lweight[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-item[_ngcontent-%COMP%] .layer-lweight[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;text-align:left;width:50px}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-title[_ngcontent-%COMP%] .layer-opacity[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layer-item[_ngcontent-%COMP%] .layer-opacity[_ngcontent-%COMP%]{display:flex;align-items:center;padding:0 0 0 5px;min-width:45px;width:10%}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{word-break:keep-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:20px}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .off_icon[_ngcontent-%COMP%]{color:#6d6d6d}"]}),t})();function Rst(t,e){if(1&t){const t=Jo();Yo(0,"div",6),es("click",(function(){const e=Ne(t).index;return os().selectLayout(e)})),Yo(1,"div",7),Yo(2,"span"),Bs(3),jo(),jo(),Yo(4,"div",8),Yo(5,"i"),Bs(6,"√"),jo(),jo(),jo()}if(2&t){const t=e.$implicit,n=e.index,i=os();sa(1),Uo("title",t.name),sa(2),Vs(t.name),sa(2),xs("display",i.mLayoutIndex===n?"block":"none")}}let Fst=(()=>{class t{constructor(){this.mLayoutList=[],this.mLayoutIndex=0,this.changeLayout=new Dc}ngOnInit(){}selectLayout(t){this.changeLayout.emit(t)}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵcmp"]=qt({type:t,selectors:[["app-mobile-layout"]],inputs:{mLayoutList:"mLayoutList",mLayoutIndex:"mLayoutIndex"},outputs:{changeLayout:"changeLayout"},decls:13,vars:14,consts:[[1,"container"],[1,"title"],[2,"color","var(--panel_title)"],[1,"content"],[2,"overflow-y","auto","max-height","400px"],["class","layout-item",3,"click",4,"ngFor","ngForOf"],[1,"layout-item",3,"click"],[1,"layout-name",3,"title"],[1,"layout-status"]],template:function(t,e){1&t&&(Yo(0,"div",0),Yo(1,"div",1),Yo(2,"span"),Bs(3),Cc(4,"translate"),jo(),Yo(5,"span",2),Bs(6),Cc(7,"translate"),Cc(8,"translate"),Cc(9,"translate"),jo(),jo(),Yo(10,"div",3),Yo(11,"div",4),Ho(12,Rst,7,4,"div",5),jo(),jo(),jo()),2&t&&(sa(3),Vs(kc(4,6,"editor_layout")),sa(3),Zs("",kc(7,8,"total"),"",e.mLayoutList.length,"",kc(8,10,"unit"),"",kc(9,12,"editor_layout"),""),sa(6),Uo("ngForOf",e.mLayoutList))},directives:[Ud],pipes:[H3],styles:[".container[_ngcontent-%COMP%]{width:100%;background-color:var(--editor_mobile_background);color:var(--main_font);font-size:14px}.container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{width:100%;position:relative;display:flex;align-items:center;justify-content:space-between;height:40px;line-height:40px;border-top:1px solid var(--editor_mobile_border);border-bottom:1px solid var(--editor_mobile_border);padding:0 10px}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{text-align:center;margin:0 auto;overflow-y:auto}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]::-webkit-scrollbar{width:10px;height:10px}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:10px;background-color:var(--editor_main_scrollBar)}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:var(--scrollbar_track)}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]::-webkit-scrollbar-corner{width:10px;height:10px;background-color:var(--editor_main_background)}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layout-item[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;height:40px;line-height:40px;border-bottom:1px solid var(--editor_mobile_border);padding:0 10px}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layout-item[_ngcontent-%COMP%] .layout-status[_ngcontent-%COMP%]{display:inline-block;width:2em;height:2em;line-height:2em;text-align:center;color:#5fbcfe;font-weight:900}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .layout-item[_ngcontent-%COMP%] .layout-status[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:inline-block;width:100%;height:100%}"]}),t})();const Bst=[{name:"xref_name",id:"name"},{name:"xref_status",id:"status"},{name:"xref_size",id:"size"},{name:"xref_type",id:"suffix"},{name:"xref_date",id:"createTime"},{name:"xref_foundPath",id:"foundPath"},{name:"xref_savePath",id:"refPath"}];function Vst(t,e,n,i){let r=JSON.parse(JSON.stringify(t));switch(n){case"size":r.sort(((t,n)=>{let i=t.originSize-n.originSize;return e?i:-i}));break;case"name":if(i){let t=r[0],i=r.slice(1);i.sort(((t,i)=>{let r=t[n].localeCompare(i[n]);return e?r:-r})),r=[t,...i]}else r.sort(((t,i)=>{let r=t[n].localeCompare(i[n]);return e?r:-r}));break;default:r.sort(((t,i)=>{let r=t[n].localeCompare(i[n]);return e?r:-r}))}return r}function Nst(t,e){1&t&&(gn(),Xo(0,"use",22))}function Hst(t,e){1&t&&(gn(),Xo(0,"use",23))}function Gst(t,e){1&t&&(gn(),Xo(0,"use",24))}function Zst(t,e){1&t&&(gn(),Xo(0,"use",25))}function Ust(t,e){1&t&&(gn(),Xo(0,"use",26))}function Wst(t,e){1&t&&(gn(),Xo(0,"use",27))}function Yst(t,e){1&t&&(gn(),Xo(0,"use",28))}function jst(t,e){1&t&&(gn(),Xo(0,"use")),2&t&&Fo("href","dwg"===os().$implicit.name.split(".").pop()?"#icon-SmoreDwg":"#icon-DXF",null,"xlink")}function Xst(t,e){if(1&t){const t=Jo();Yo(0,"div",11),es("click",(function(){const e=Ne(t).$implicit;return os(2).getDetail(e)})),Yo(1,"div",12),gn(),Yo(2,"svg",13),Ho(3,Nst,1,0,"use",14),Ho(4,Hst,1,0,"use",15),Ho(5,Gst,1,0,"use",16),Ho(6,Zst,1,0,"use",17),Ho(7,Ust,1,0,"use",18),Ho(8,Wst,1,0,"use",19),Ho(9,Yst,1,0,"use",20),Ho(10,jst,1,1,"use",21),jo(),fn(),Yo(11,"span"),Bs(12),jo(),jo(),Yo(13,"span"),Bs(14),Cc(15,"translate"),jo(),jo()}if(2&t){const t=e.$implicit,n=os(2);Ps(n.mCurrentItemKey===t.key?"selectedItem":""),sa(2),Uo("ngSwitch",n.mIconList[("DWG"===t.suffix?t.suffix+"_":"")+t.status]),sa(1),Uo("ngSwitchCase",0),sa(1),Uo("ngSwitchCase",1),sa(1),Uo("ngSwitchCase",2),sa(1),Uo("ngSwitchCase",3),sa(1),Uo("ngSwitchCase",4),sa(1),Uo("ngSwitchCase",5),sa(1),Uo("ngSwitchCase",6),sa(1),Uo("ngSwitchCase",7),sa(2),Ns(" ",t.name," "),sa(2),Ns(" ",kc(15,13,n.mStatusList[t.status])," ")}}function qst(t,e){if(1&t&&(Yo(0,"div",8),Yo(1,"div",9),Ho(2,Xst,16,15,"div",10),jo(),jo()),2&t){const t=os();sa(2),Uo("ngForOf",t.mTableData)}}function $st(t,e){1&t&&Xo(0,"i",34),2&t&&Uo("nzType",os().$implicit.isExpanded?"caret-down":"caret-right")}function Kst(t,e){1&t&&Ho(0,$st,1,1,"i",33),2&t&&Uo("ngIf",!e.origin.isLeaf)}function Jst(t,e){1&t&&(gn(),Xo(0,"use",22))}function Qst(t,e){1&t&&(gn(),Xo(0,"use",23))}function tlt(t,e){1&t&&(gn(),Xo(0,"use",24))}function elt(t,e){1&t&&(gn(),Xo(0,"use",25))}function nlt(t,e){1&t&&(gn(),Xo(0,"use",26))}function ilt(t,e){1&t&&(gn(),Xo(0,"use",27))}function rlt(t,e){1&t&&(gn(),Xo(0,"use",28))}function alt(t,e){1&t&&(gn(),Xo(0,"use")),2&t&&Fo("href","dwg"===os().origin.name.split(".").pop()?"#icon-SmoreDwg":"#icon-DXF",null,"xlink")}function olt(t,e){if(1&t&&(Yo(0,"p",35),gn(),Yo(1,"svg",13),Ho(2,Jst,1,0,"use",14),Ho(3,Qst,1,0,"use",15),Ho(4,tlt,1,0,"use",16),Ho(5,elt,1,0,"use",17),Ho(6,nlt,1,0,"use",18),Ho(7,ilt,1,0,"use",19),Ho(8,rlt,1,0,"use",20),Ho(9,alt,1,1,"use",21),jo(),Bs(10),jo()),2&t){const t=e.origin,n=os(2);sa(1),Uo("ngSwitch",n.mIconList[("DWG"===t.suffix?t.suffix+"_":"")+t.status]),sa(1),Uo("ngSwitchCase",0),sa(1),Uo("ngSwitchCase",1),sa(1),Uo("ngSwitchCase",2),sa(1),Uo("ngSwitchCase",3),sa(1),Uo("ngSwitchCase",4),sa(1),Uo("ngSwitchCase",5),sa(1),Uo("ngSwitchCase",6),sa(1),Uo("ngSwitchCase",7),sa(1),Ns(" ",t.title," ")}}const slt=function(t){return[t]};function llt(t,e){if(1&t){const t=Jo();Yo(0,"div",29),Yo(1,"nz-tree",30),es("nzClick",(function(e){return Ne(t),os().activeNode(e)})),jo(),Ho(2,Kst,1,1,"ng-template",null,31,Yc),Ho(4,olt,11,10,"ng-template",null,32,Yc),jo()}if(2&t){const t=Go(3),e=Go(5),n=os();sa(1),Uo("nzData",n.nodes)("nzTreeTemplate",e)("nzSelectedKeys",fc(4,slt,n.mCurrentItemKey))("nzExpandedIcon",t)}}function clt(t,e){if(1&t&&(Yo(0,"p"),Bs(1),Cc(2,"translate"),jo()),2&t){const t=os(4);sa(1),Vs(kc(2,1,t.mStatusList[t.mCurrentDetail.status]))}}function hlt(t,e){if(1&t&&(Yo(0,"p"),Bs(1),Cc(2,"translate"),jo()),2&t){const t=os().$implicit,e=os(3);sa(1),Ns(" ",kc(2,1,e.mCurrentDetail[t.id])," ")}}function dlt(t,e){if(1&t&&(Yo(0,"p"),Bs(1),jo()),2&t){const t=os().$implicit,e=os(3);sa(1),Vs(e.mCurrentDetail[t.id])}}function ult(t,e){if(1&t&&(Yo(0,"li"),Yo(1,"div",45),Bs(2),Cc(3,"translate"),jo(),Yo(4,"div",46),Ho(5,clt,3,3,"p",21),Ho(6,hlt,3,3,"p",21),Ho(7,dlt,2,1,"p",47),jo(),jo()),2&t){const t=e.$implicit;sa(2),Vs(kc(3,4,t.name)),sa(2),Uo("ngSwitch",t.id),sa(1),Uo("ngSwitchCase","status"),sa(1),Uo("ngSwitchCase","suffix")}}function mlt(t,e){if(1&t&&(Yo(0,"ul",43),Ho(1,ult,8,6,"li",44),jo()),2&t){const t=os(2);sa(1),Uo("ngForOf",t.mDetailKeys)}}function plt(t,e){if(1&t&&(Yo(0,"div",48),Xo(1,"img",49),jo()),2&t){const t=os(2);sa(1),Uo("src",t.mPreviewSrc,Hr)}}function glt(t,e){if(1&t){const t=Jo();Yo(0,"div"),Yo(1,"div",36),Yo(2,"p",2),Bs(3),Cc(4,"translate"),jo(),Yo(5,"div",3),gn(),Yo(6,"svg",37),es("click",(function(){return Ne(t),os().mDetailType=0})),Xo(7,"use",38),jo(),Yo(8,"svg",37),es("click",(function(){return Ne(t),os().getPreview()})),Xo(9,"use",39),jo(),fn(),Yo(10,"i",40),es("click",(function(){return Ne(t),os().mShowDetail=!1})),jo(),jo(),jo(),Ho(11,mlt,2,1,"ul",41),Ho(12,plt,2,1,"div",42),jo()}if(2&t){const t=os();sa(3),Vs(kc(4,3,t.mdetailTypeList[t.mDetailType])),sa(8),Uo("ngIf",0===t.mDetailType),sa(1),Uo("ngIf",1===t.mDetailType)}}let flt=(()=>{class t{constructor(t,e){this.message=t,this.changeDetectorRef=e,this.mTableHeader=[],this.mListType=0,this.mDetailType=0,this.mTableData=[],this.mStatusList={NOT_FOUND:"xref_notfound",LOADED:"xref_loaded",NO_REF:"xref_notref",UNLOADED:"xref_unloaded",OPENED:"xref_opened"},this.mIconList={DWG_NOT_FOUND:0,DWG_LOADED:1,DWG_NO_REF:2,DWG_UNLOADED:3,NOT_FOUND:4,LOADED:5,UNLOADED:6,OPENED:7},this.mPreviewSrc="",this.mCurrentItemKey="",this.mShowDetail=!1,this.mDetailKeys=[],this.mdetailTypeList=["xref_detail","xref_preview"],this.treeData={},this.nodes=[],this.mSortFlag=!1,this.mSelectedHead="name",this.mSrcMap=new Map,MF.instance().subscribeBroardcast(_F.GetFileData,this),this.mTableHeader=[{name:"",flex:4,type:"icon"},{name:"xref_status",flex:1,type:"status"}]}ngOnInit(){this.mDetailKeys=Bst}ngOnDestroy(){this.mRouterSubject&&this.mRouterSubject.unsubscribe(),MF.instance().unsubscribeBroardcast(_F.GetFileData,this)}notify(t,e){if("object"==typeof e&&t===_F.GetFileData&&"xrefList"===e.type&&e.data){let t=e.data.docName,n=e.data.xrefRelations;this.mSrcMap=e.data.srcMap,this.mCurDocDetail={name:t,status:"OPENED",suffix:"xref_current"};let i=function(t,e){let n,i=JSON.parse(JSON.stringify(t)),r=[],a=0;return n=[{name:e.name,title:e.name,key:"0",expanded:!1,status:e.status,suffix:"xref_current",children:function t(e,n){if(e.length)for(let i=0;i<e.length;i++){let o=e[i];n&&"DWG"!==o.suffix&&(o.name=n+" | "+o.name),o.title=o.name,o.originSize=o.size,o.size=CF(o.size),o.createTime=xF("string"==typeof o.createTime?o.createTime:String(o.createTime)),o.key=String(++a),o.list&&o.list.length?(o.expanded=!1,o.children=t(o.list,o.title)):o.isLeaf=!0,delete o.list,r.push(o)}return e}(i)}],r.unshift(e),{treeData:n,tableData:r}}(n,this.mCurDocDetail);this.mTableData=Vst(i.tableData,this.mSortFlag,"name",!0),this.nodes=i.treeData,this.changeDetectorRef.detectChanges()}}getDetail(t){this.mShowDetail=!0,t.key!==this.mCurrentItemKey&&(this.mCurrentDetail=t,this.mCurrentItemKey=t.key,1===this.mDetailType&&!this.getPreview()&&(this.mDetailType=0))}getPreview(){if("NOT_FOUND"===this.mCurrentDetail.status)return this.message.error(qF.mLanguagePackage.xref_cannot_preview),!1;let t=this.mCurrentDetail.fileId;return t?(this.mSrcMap.has(t)&&(this.mDetailType=1,this.mPreviewSrc=this.mSrcMap.get(t),this.changeDetectorRef.detectChanges()),!0):(this.message.error(qF.mLanguagePackage.xref_cannot_preview),!1)}activeNode(t){this.getDetail(t.node.origin)}sort(t){"icon"!==t&&(this.mSelectedHead=t,this.mSortFlag=!this.mSortFlag,this.mTableData=Vst(this.mTableData,this.mSortFlag,t))}}return t["ɵfac"]=function(e){return new(e||t)(Zo(HA),Zo(Gl))},t["ɵcmp"]=qt({type:t,selectors:[["app-mobile-xref"]],decls:14,vars:18,consts:[[1,"container"],[1,"header"],[1,"title"],[1,"list"],["class","table",4,"ngIf"],["class","tree",4,"ngIf"],[1,"detail"],[4,"ngIf"],[1,"table"],[1,"tableContent"],["class","tableItem",3,"class","click",4,"ngFor","ngForOf"],[1,"tableItem",3,"click"],[1,"name"],["aria-hidden","true",1,"icon",3,"ngSwitch"],[0,"xlink","href","#icon-Dwgweizhaodao",4,"ngSwitchCase"],[0,"xlink","href","#icon-guanlianDwg",4,"ngSwitchCase"],[0,"xlink","href","#icon-SmoreDwg",4,"ngSwitchCase"],[0,"xlink","href","#icon-Dwgyixiezai",4,"ngSwitchCase"],[0,"xlink","href","#icon-tupianweizhaodao",4,"ngSwitchCase"],[0,"xlink","href","#icon-guanliantupian",4,"ngSwitchCase"],[0,"xlink","href","#icon-tupianyixiezai",4,"ngSwitchCase"],[4,"ngSwitchCase"],[0,"xlink","href","#icon-Dwgweizhaodao"],[0,"xlink","href","#icon-guanlianDwg"],[0,"xlink","href","#icon-SmoreDwg"],[0,"xlink","href","#icon-Dwgyixiezai"],[0,"xlink","href","#icon-tupianweizhaodao"],[0,"xlink","href","#icon-guanliantupian"],[0,"xlink","href","#icon-tupianyixiezai"],[1,"tree"],["nzShowIcon","",2,"margin-top","10px",3,"nzData","nzTreeTemplate","nzSelectedKeys","nzExpandedIcon","nzClick"],["expandedIcon",""],["treeItem",""],["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","",3,"nzType"],[2,"max-width","20em","overflow","hidden","white-space","nowrap","text-overflow","ellipsis"],[1,"header","dark","sticky"],["aria-hidden","true",1,"icon","pointer",3,"click"],[0,"xlink","href","#icon-xiangqingxinxi"],[0,"xlink","href","#icon-tupianxinxi"],["nz-icon","","nzType","caret-down","nzTheme","outline",1,"icon","pointer",3,"click"],["class","detailContent",4,"ngIf"],["class","preview",4,"ngIf"],[1,"detailContent"],[4,"ngFor","ngForOf"],[1,"itemTitle"],[1,"itemContetn",3,"ngSwitch"],[4,"ngSwitchDefault"],[1,"preview"],["alt","",3,"src"]],template:function(t,e){1&t&&(Yo(0,"div",0),Yo(1,"div",1),Yo(2,"p",2),Bs(3),Cc(4,"translate"),jo(),Yo(5,"div",3),Bs(6),Cc(7,"translate"),Cc(8,"translate"),Cc(9,"translate"),jo(),jo(),Ho(10,qst,3,1,"div",4),Ho(11,llt,6,6,"div",5),Yo(12,"div",6),Ho(13,glt,13,5,"div",7),jo(),jo()),2&t&&(sa(3),Vs(kc(4,10,"xref_manager")),sa(3),Zs(" ",kc(7,12,"total"),"",e.mTableData.length,"",kc(8,14,"unit"),"",kc(9,16,"editor_File")," "),sa(4),Uo("ngIf",0===e.mListType),sa(1),Uo("ngIf",1===e.mListType),sa(1),Ps(e.mShowDetail?"popup":"popdown"),sa(1),Uo("ngIf",e.mShowDetail))},directives:[Yd,Ud,$d,Kd,GR,sM,eP,Jd],pipes:[H3],styles:[".container[_ngcontent-%COMP%]{width:100%;background-color:var(--editor_mobile_background);color:var(--main_font);font-size:14px;border-bottom:1px solid var(--editor_main_border)}.container[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{padding:0;margin:0}.container[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style:none}.container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%] .dark[_ngcontent-%COMP%]{background-color:var(--editor_main_title)}.container[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{min-width:21px;margin-right:4px;font-size:1.5em}.container[_ngcontent-%COMP%] .pointer[_ngcontent-%COMP%]{cursor:pointer}.container[_ngcontent-%COMP%] .selectedItem[_ngcontent-%COMP%]{color:var(--main_white);background-color:#078bed}.container[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;border-top:1px solid var(--editor_mobile_border);border-bottom:1px solid var(--editor_mobile_border);padding:0 10px;height:40px;line-height:40px}.container[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .list[_ngcontent-%COMP%]{text-align:right;color:var(--editor_tool_icon)}.container[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:8px}.container[_ngcontent-%COMP%] .table[_ngcontent-%COMP%]{width:100%;overflow-y:auto;max-height:400px}.container[_ngcontent-%COMP%] .table[_ngcontent-%COMP%]::-webkit-scrollbar{width:10px;height:10px}.container[_ngcontent-%COMP%] .table[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:10px;background-color:var(--editor_main_scrollBar)}.container[_ngcontent-%COMP%] .table[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:var(--scrollbar_track)}.container[_ngcontent-%COMP%] .table[_ngcontent-%COMP%]::-webkit-scrollbar-corner{width:10px;height:10px;background-color:var(--editor_main_background)}.container[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .tableheader[_ngcontent-%COMP%]{position:sticky;top:0;display:flex;flex-direction:row;background-color:var(--editor_main_background);border-right:1px solid var(--editor_main_background);border-left:1px solid var(--editor_main_background);border-bottom:1px solid var(--editor_mobile_border)}.container[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .tableheader[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{border-right:1px solid var(--editor_main_background);padding:4px 2px 4px 10px}.container[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .tableContent[_ngcontent-%COMP%] .tableItem[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:0 10px;height:40px;line-height:40px}.container[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .tableContent[_ngcontent-%COMP%] .tableItem[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{width:70%;display:flex;align-items:center}.container[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .tableContent[_ngcontent-%COMP%] .tableItem[_ngcontent-%COMP%] .name[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;word-break:keep-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.container[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%]{position:relative;transition:height .2s ease-in-out}.container[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%] .sticky[_ngcontent-%COMP%]{position:sticky;top:0}.container[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%] .detailContent[_ngcontent-%COMP%]{padding:0 10px;overflow:auto;height:260px}.container[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%] .detailContent[_ngcontent-%COMP%]::-webkit-scrollbar{width:10px;height:10px}.container[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%] .detailContent[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:10px;background-color:var(--editor_main_scrollBar)}.container[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%] .detailContent[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:var(--scrollbar_track)}.container[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%] .detailContent[_ngcontent-%COMP%]::-webkit-scrollbar-corner{width:10px;height:10px;background-color:var(--editor_main_background)}.container[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%] .detailContent[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{min-width:18em;display:flex;flex-direction:row;padding:4px 0}.container[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%] .detailContent[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .itemTitle[_ngcontent-%COMP%]{width:8em;white-space:nowrap}.container[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%] .detailContent[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .itemContetn[_ngcontent-%COMP%]{flex:1;word-break:break-all}.container[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%]{height:274px;line-height:274px;text-align:center}.container[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:200px;height:auto}.container[_ngcontent-%COMP%] .popup[_ngcontent-%COMP%]{height:300px}.container[_ngcontent-%COMP%] .popdown[_ngcontent-%COMP%]{height:0}[_nghost-%COMP%] .ant-tree{color:var(--main_font);background-color:transparent}[_nghost-%COMP%] .ant-tree-node-content-wrapper:hover{color:var(--main_white);background-color:#078bed}[_nghost-%COMP%] .ant-tree-node-content-wrapper:hover svg{color:var(--main_white)}[_nghost-%COMP%] .ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected{background-color:#078bed;color:var(--main_white)}[_nghost-%COMP%] .ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected svg{color:var(--main_white)}[_nghost-%COMP%] .ant-tree-show-line .ant-tree-switcher{color:var(--main_white);background-color:transparent}[_nghost-%COMP%] .ant-tree-list .ant-tree-node-selected{color:var(--main_white)}"]}),t})(),blt=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({imports:[[Vx,nu,Wp,RL,Ex,nP]]}),t})(),ylt=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({imports:[[nu]]}),t})();const vlt=["mobileReplyInputPanelContainner"];function wlt(t,e){if(1&t){const t=Jo();Yo(0,"div",12),es("click",(function(){return Ne(t),os(2).fold()})),gn(),Yo(1,"svg",13),Xo(2,"use",14),jo(),jo()}}function xlt(t,e){1&t&&(gn(),Yo(0,"svg",13),Xo(1,"use",21),jo())}function Clt(t,e){1&t&&Xo(0,"img",22),2&t&&Uo("src",os(2).$implicit.avatarUrl||"/assets/image/default_avatar.png",Hr)}function klt(t,e){if(1&t&&(Yo(0,"div",18),Ho(1,xlt,2,0,"svg",19),Ho(2,Clt,1,1,"img",20),Bs(3),jo()),2&t){const t=os().$implicit;sa(1),Uo("ngIf","-1"===t.memberId),sa(1),Uo("ngIf","-1"!==t.memberId),sa(1),Ns(" ",t.memberName," ")}}function Slt(t,e){if(1&t){const t=Jo();Yo(0,"div",16),es("click",(function(){const e=Ne(t).$implicit;return os(3).selectMember(e)})),Ho(1,klt,4,3,"div",17),jo()}if(2&t){const t=e.$implicit,n=os(3);sa(1),Uo("ngIf",t.memberId!=n.mCurUserId)}}function Plt(t,e){if(1&t&&(Yo(0,"div"),Ho(1,Slt,2,1,"div",15),jo()),2&t){const t=os(2);sa(1),Uo("ngForOf",t.mMemberList)}}function _lt(t,e){1&t&&(Yo(0,"div",23),Bs(1),Cc(2,"translate"),jo()),2&t&&(sa(1),Vs(kc(2,1,"noData")))}const Mlt=function(t){return{"border-bottom":t}},Dlt=function(t){return{margin:t}};function Elt(t,e){if(1&t){const t=Jo();Yo(0,"div",2),Yo(1,"div",3),Yo(2,"div",4),es("input",(function(e){return Ne(t),os().input(e)}))("click",(function(e){return Ne(t),os().click(e)})),jo(),Yo(3,"div"),Yo(4,"button",5),es("click",(function(){return Ne(t),os().save()})),Bs(5),Cc(6,"translate"),jo(),Yo(7,"button",6),es("click",(function(){return Ne(t),os().cancel()})),Bs(8),Cc(9,"translate"),jo(),jo(),jo(),Ho(10,wlt,3,0,"div",7),Yo(11,"div",8),Yo(12,"div",9),Ho(13,Plt,2,1,"div",10),Ho(14,_lt,3,3,"div",11),jo(),jo(),jo()}if(2&t){const t=os();sa(1),Uo("ngStyle",fc(15,Mlt,t.mIsEdit?"none":"1px solid var(--editor_main_border)")),sa(1),Uo("ngStyle",fc(17,Dlt,t.mIsEdit?"15px 15px 5px 0px":"15px 15px 5px 15px"))("id",t.comment.id?"atInput"+t.comment.id:"atInput"),sa(2),Uo("disabled",t.mCommentDisabled),sa(1),Vs(kc(6,11,"commit")),sa(2),Uo("disabled",t.mCommentDisabled),sa(1),Vs(kc(9,13,"cancel")),sa(2),Uo("ngIf",!t.mIsReply&&!t.mIsEdit),sa(1),Uo("id",t.comment.id?"memberList"+t.comment.id:"memberList"),sa(2),Uo("ngIf",t.mMemberList.length>2),sa(1),Uo("ngIf",t.mMemberList.length<=2)}}function Olt(t,e){1&t&&(gn(),Yo(0,"svg",13),Xo(1,"use",21),jo())}function Alt(t,e){1&t&&Xo(0,"img",22),2&t&&Uo("src",os(2).$implicit.avatarUrl||"/assets/image/default_avatar.png",Hr)}function Tlt(t,e){if(1&t&&(Yo(0,"div",18),Ho(1,Olt,2,0,"svg",19),Ho(2,Alt,1,1,"img",20),Bs(3),jo()),2&t){const t=os().$implicit;sa(1),Uo("ngIf","-1"===t.memberId),sa(1),Uo("ngIf","-1"!==t.memberId),sa(1),Ns(" ",t.memberName," ")}}function Ilt(t,e){if(1&t){const t=Jo();Yo(0,"div",16),es("click",(function(){const e=Ne(t).$implicit;return os(3).selectMember(e)})),Ho(1,Tlt,4,3,"div",17),jo()}if(2&t){const t=e.$implicit,n=os(3);sa(1),Uo("ngIf",t.memberId!=n.mCurUserId)}}function Llt(t,e){if(1&t&&(Yo(0,"div"),Ho(1,Ilt,2,1,"div",15),jo()),2&t){const t=os(2);sa(1),Uo("ngForOf",t.mMemberList)}}function zlt(t,e){1&t&&(Yo(0,"div",23),Bs(1),Cc(2,"translate"),jo()),2&t&&(sa(1),Vs(kc(2,1,"noData")))}function Rlt(t,e){if(1&t){const t=Jo();Yo(0,"div",24,25),Yo(2,"div",26),Yo(3,"div",27),es("input",(function(e){return Ne(t),os().input(e)}))("click",(function(e){return Ne(t),os().click(e)})),jo(),Yo(4,"div",28),Yo(5,"button",6),es("click",(function(){return Ne(t),os().fold()})),Bs(6),Cc(7,"translate"),jo(),Yo(8,"button",5),es("click",(function(){return Ne(t),os().save()})),Bs(9),Cc(10,"translate"),jo(),jo(),jo(),Yo(11,"div",8),Yo(12,"div",9),Ho(13,Llt,2,1,"div",10),Ho(14,zlt,3,3,"div",11),jo(),jo(),jo()}if(2&t){const t=os();sa(3),Uo("id",t.comment.id?"atInput"+t.comment.id:"atInput"),Fo("contenteditable",t.mIsMobileContenteditable),sa(2),Uo("disabled",t.mCommentDisabled),sa(1),Vs(kc(7,9,"cancel")),sa(2),Uo("disabled",t.mCommentDisabled),sa(1),Vs(kc(10,11,"commit")),sa(2),Uo("id",t.comment.id?"memberList"+t.comment.id:"memberList"),sa(2),Uo("ngIf",t.mMemberList.length>2),sa(1),Uo("ngIf",t.mMemberList.length<=2)}}let Flt=(()=>{class t{constructor(t){this.messageService=t,this.comment={id:""},this.mMemberList=[],this.mCurUserId="",this.mGs=null,this.mActivedReply={},this.mActivedEdit={},this.mCommentDisabled=!1,this.mIsReply=!1,this.mIsEdit=!1,this.mIsMobileContenteditable=!0,this.onSave=new Dc,this.onCancel=new Dc,this.onCheckPaperSpace=new Dc,this.onFold=new Dc,this.mState={},this.mInputContent={id:"",parentId:"",atUserIds:"",content:"",realContent:"",mark:""},this.mAllInputMarks={},this.mIsMobile=mF,this.focusNodeInfo={}}ngOnInit(){MF.instance().subscribeBroardcast(_F.CommentPanel,this)}ngAfterViewInit(){let t=setTimeout((()=>{this.initEvent(),clearTimeout(t)}),100)}ngOnDestroy(){MF.instance().unsubscribeBroardcast(_F.CommentPanel,this)}notify(t,e){if("object"==typeof e&&t===_F.CommentPanel)if("drawCommentBubble"===e.type){let t=e.data;if(!this.comment.id&&this.isReplyOrEdit())return;this.addTag(t.data,t.type)}else if("setCommentData"===e.type){let t=document.getElementById("atInput"+this.comment.id);t&&(t.innerHTML=""),this.clear()}}initEvent(){let t=document.getElementById("atInput"+this.comment.id);if(null!==t){if(mF){const e=t;let n=(t,e)=>null===e?t.textContent:t.textContent.slice(e.length),i=(t,e)=>{if(null===e)return"";{const n=e.replace(/\n/g,""),i=t.textContent.replace(/\n/g,""),r=Math.min(n.length,i.length),a=Math.max(n.length,i.length);let o="";for(let t=r;t<a;t++)(t>=i.length||n.charAt(t)!==i.charAt(t))&&(o+=n.charAt(t));return o}};new MutationObserver((t=>{t.forEach((t=>{if("characterData"===t.type){const e=n(t.target,t.oldValue),r=i(t.target,t.oldValue);if("@"===e){const t=window.getSelection();null!==t&&(this.mState.focusNode=t.focusNode,this.mState.focusOffset=t.focusOffset-1,this.showMemberList(!0))}r&&this.deleteRichText()}}))})).observe(e,{characterData:!0,subtree:!0,characterDataOldValue:!0})}else t.addEventListener("keydown",(t=>{let e=t.target;if("Digit2"===t.code&&t.shiftKey){const t=window.getSelection();null!==t&&(this.mState.focusNode=t.focusNode,this.mState.focusOffset=t.focusOffset,this.showMemberList(!0))}else if("Backspace"===t.code)this.deleteRichText();else if("Delete"===t.code)this.deleteRichText();else if(!t.ctrlKey||67!==t.keyCode&&88!==t.keyCode){if(("ArrowLeft"===t.code||"ArrowRight"===t.code||"ArrowDown"===t.code||"ArrowUp"===t.code)&&e){const t=document.createRange();t.selectNodeContents(e);const n=window.getSelection();null!==n&&(n.rangeCount>0&&n.removeAllRanges(),n.addRange(t),n.selectAllChildren(e))}}else t.preventDefault()}));t.addEventListener("contextmenu",(t=>{t.preventDefault()})),t.addEventListener("click",(()=>{mF||this.recordSelection()}))}}recordSelection(){let t=window.getSelection();t&&t.anchorNode&&(this.focusNodeInfo.node=t.anchorNode,this.focusNodeInfo.offset=t.anchorOffset)}clickToDelete(){let t=document.getElementById("atInput"+this.comment.id);if(this.mClickAtMemberEl){t&&t.removeChild(this.mClickAtMemberEl);let e=this.mClickAtMemberEl.id;return e&&36===e.length&&(this.mGs.deleteBubble([e]),delete this.mAllInputMarks[e]),this.mClickAtMemberEl=void 0,!0}return!1}deleteRichText(){this.showMemberList(!1);let t=document.getElementById("atInput"+this.comment.id);const e=window.getSelection();if(!this.clickToDelete()&&t&&null!==e&&e.rangeCount>0){let n=null,i=(null==e?void 0:e.getRangeAt(0)).startContainer;if(!i.parentElement)return;if("atFont"!==i.parentElement.className){if(mF)n=i.nextElementSibling;else{let t=e.anchorNode;t&&1===e.anchorOffset&&3===t.nodeType&&t.textContent&&160===t.textContent.charCodeAt(0)&&(n=i.previousSibling)}if(null===this.mGs||!n)return void this.checkInputBubble();let r=n.id?n.id:n.firstChild?n.firstChild.id:void 0;if(r&&36===r.length&&(this.mGs.deleteBubble([r]),n)){if(n.nextSibling&&160===n.nextSibling.textContent.charCodeAt(0)){let t=n.nextSibling.nodeValue.slice(1);n.nextSibling.nodeValue=t}e.selectAllChildren(n),t.removeChild(n)}}else"atFont"===i.parentElement.className&&(n=i.parentElement,n&&(e.selectAllChildren(n),t.removeChild(n)))}}checkInputBubble(){let t=document.getElementById("atInput"+this.comment.id).innerHTML.split('id="'),e=[];for(let n=1;n<t.length;n++){let i=t[n].split('"');i[0]&&36===i[0].length&&e.push(i[0])}let n=Object.keys(this.mAllInputMarks);if(e.length<n.length)for(let t=0;t<n.length;t++){const i=n[t];e.length>0&&e.includes(i)||(this.mGs.deleteBubble([i]),delete this.mAllInputMarks[i])}}input(t){let e=t.target;if(e&&-1===e.innerHTML.indexOf("svg")){if(null===this.mGs)return;let t=Object.keys(this.mAllInputMarks);t.length>0&&this.mGs.deleteBubble(t)}null!==t.data&&-1===t.data.indexOf("@")&&this.showMemberList(!1),this.recordSelection()}click(t){this.showMemberList(!1);let e=t.target;if("atFont"===e.className||"bubble"===e.className||"svg"===e.nodeName||"use"===e.nodeName){const t=window.getSelection();if(t&&t.rangeCount<=0)return;(null==t?void 0:t.getRangeAt(0)).selectNode(e),t&&t.selectAllChildren(e),this.mClickAtMemberEl=e}else this.mClickAtMemberEl=void 0}save(){this.getInputParams()&&this.onSave.emit(this)}fold(){this.cancel(),this.onFold.emit(this)}getInputParams(){let t=document.getElementById("atInput"+this.comment.id);if(this.mInputContent.parentId=this.comment.id,null===t)return!1;let e=t.innerHTML,n=/<span/g;if(e){let i=e.match(/<span.*?<\/span> /g),r=/id="(?:[^"\\]|\\.)*"/g,a="",o=[];i&&i.forEach((t=>{a=t.match(r),a&&a[0]&&o.push(a[0].slice(4,a[0].length-1))})),this.mInputContent.atUserIds="",this.mInputContent.atUserIds+=o.join(",");let s=[],l=e.split(" "),c="",h="",d=[],u=!1;for(let t=0;t<l.length;t++){const e=l[t];if(e){let t=[];e.indexOf('<div class="bubble"')>-1?t=e.split('<div class="bubble"'):e.indexOf('<svg class="icon')>-1&&(t=e.split('<svg class="icon')),2===t.length&&(c+=t[0]);let i=e.split(n).filter((t=>""!==t));if(i.length>0){for(let e=0;e<i.length;e++){const n=i[e];let a=n.match(r);if(a&&a[0]){let e=a[0].slice(4,a[0].length-1);if(e&&36===e.length){if(t=n.indexOf("</svg></div>")>-1?n.split("</svg></div>"):n.split("</svg>"),this.checkSpecialChar(t[1])){u=!0;break}c+="#";let i=this.getMarkById(e);i&&s.push(i),2===t.length&&(c+=t[1])}else{if(t=n.split("</span>"),this.checkSpecialChar(t[1])){u=!0;break}c+="$",d.push(e),2===t.length&&(c+=t[1])}}else{if(this.checkSpecialChar(n)){u=!0;break}c+=n,h+=n}}if(u)break}}}if(u)return this.messageService.warning(qF.mLanguagePackage.commentSpecialChar),!1;if(s.length>0&&(this.mInputContent.mark=JSON.stringify(s)),this.mInputContent.content=c+"{"+d.join(",")+"}",this.mInputContent.realContent=h,this.mInputContent.content.length>1e3)return this.messageService.error(qF.mLanguagePackage.commentContentLimit),!1;if(this.mIsEdit){let e=this.comment.id;mF&&(e=t.getAttribute("name"),t.removeAttribute("name")),this.mInputContent.id=e,this.mInputContent.parentId=""}return!0}return!1}checkSpecialChar(t){let e=/[\\/:*"<>#~$%^&*(){}|]/g;return e.lastIndex=0,!(!t||!e.test(t))}getMarkById(t){let e=null;for(const n in this.mAllInputMarks)if(Object.prototype.hasOwnProperty.call(this.mAllInputMarks,n)){const i=this.mAllInputMarks[n];if(i.id===t){e=JSON.parse(JSON.stringify(i));break}}if(e)switch(e.type){case x5.Pin:e.pt=[e.pt.mX,e.pt.mY,e.pt.mZ];break;case x5.Circle:e.center=[e.center.mX,e.center.mY,e.center.mZ],e.endPt=[e.endPt.mX,e.endPt.mY,e.endPt.mZ];break;case x5.Rectangle:e.points=[e.points[0].mX,e.points[0].mY,e.points[0].mZ,e.points[1].mX,e.points[1].mY,e.points[1].mZ];break;case x5.Polyline:let t=[];e.points.forEach((e=>{t.push(e.mX,e.mY,e.mZ)})),e.points=t;break;case x5.Leader:let n=[];e.points.forEach((t=>{n.push(t.mX,t.mY,t.mZ)})),e.points=n;let i=[];e.polygonPts.forEach((t=>{i.push(t.mX,t.mY,t.mZ)})),e.polygonPts=i;break;case x5.Image:e.originPoint=[e.origin.mX,e.origin.mY,e.origin.mZ],e.uvector=[e.uVec.mX,e.uVec.mY,e.uVec.mZ],e.vvector=[e.vVec.mX,e.vVec.mY,e.vVec.mZ];break;case x5.Revcloud:e.originPt=[e.originPt.mX,e.originPt.mY,e.originPt.mZ],e.diagonalPt=[e.diagonalPt.mX,e.diagonalPt.mY,e.diagonalPt.mZ]}else this.mIsEdit&&(e=this.getOldMarkDataById(t));return e}cancel(){this.onCancel.emit(this)}selectMember(t){const e=window.getSelection();if(null!==e){let n=document.getElementById("atInput"+this.comment.id);if(null===n||e&&e.rangeCount<=0)return;const i=null==e?void 0:e.getRangeAt(0);let r=this.mState.focusOffset+1;i.setStart(this.mState.focusNode,r-1),i.setEnd(this.mState.focusNode,r),i.deleteContents();const a=document.createElement("span");a.style.color="orange",a.className="atFont",a.setAttribute("id",t.memberId),a.setAttribute("contenteditable","false"),a.innerText="@"+t.memberName;const o=document.createElement("span");o.innerHTML=" ";let s,l=document.createDocumentFragment();l.appendChild(a),o&&o.firstChild&&(s=l.appendChild(o.firstChild)),i.insertNode(l),s&&e.extend(s,1),e.collapseToEnd(),n&&n.focus(),this.showMemberList(!1)}}showMemberList(t){let e=document.getElementById("memberList"+this.comment.id);e&&(e.style.display=t?"block":"none")}addTag(t,e){let n=document.getElementById("atInput"+this.comment.id);mF||n&&n.focus();const i=window.getSelection();if(null!==i){let r,a=t.id,o=t.color?t.color:n7.instance().mBubbleDefaultColor.str;switch(e){case x5.Pin:r='<div class="bubble" contenteditable="false" style="vertical-align: -0.3em;width: 14px;height: 14px;background-color: '+o+';border-radius: 7px;display: inline-block;border: 1px solid #fff;"><svg id="'+a+'" aria-hidden="true" style="margin: 0 0 6px 0px;height: 12px;width: 12px;cursor:pointer;z-index:1000;"><use xlink:href="#icon-zhirutuding"></use></svg></div>';break;case x5.Circle:r='<svg class="icon bubble" contenteditable="false" id="'+a+'" style="color:'+o+';" aria-hidden="true" style="margin-right: 5px;cursor:pointer;"><use xlink:href="#icon-yuanxin"></use></svg>';break;case x5.Rectangle:r='<svg class="icon bubble" contenteditable="false" id="'+a+'" style="color:'+o+';" aria-hidden="true" style="margin-right: 5px;cursor:pointer;"><use xlink:href="#icon-duandian"></use></svg>';break;case x5.Polyline:r='<svg class="icon bubble" contenteditable="false" id="'+a+'" style="color:'+o+';" aria-hidden="true" style="margin-right: 5px;cursor:pointer;"><use xlink:href="#icon-zidingyixingzhuanggongju"></use></svg>';break;case x5.Leader:r='<svg class="icon bubble" contenteditable="false" id="'+a+'" style="color:'+o+';" aria-hidden="true" style="margin-right: 5px;cursor:pointer;"><use xlink:href="#icon-jiantou"></use></svg>';break;case x5.Revcloud:r='<svg class="icon bubble" contenteditable="false" id="'+a+'" style="color:'+o+';" aria-hidden="true" style="margin-right: 5px;cursor:pointer;"><use xlink:href="#icon-yunxian1"></use></svg>';break;case x5.Image:r='<svg class="icon bubble" contenteditable="false" id="'+a+'" style="color:'+o+';" aria-hidden="true" style="margin-right: 5px;cursor:pointer;"><use xlink:href="#icon-tupianxinxi"></use></svg>'}if(this.focusNodeInfo.node){let t=document.createRange();t.setStart(this.focusNodeInfo.node,this.focusNodeInfo.offset),t.collapse(!0),i.removeAllRanges(),i.addRange(t)}let s=i.anchorNode,l=i.anchorOffset;if(s&&!mF){if(1===s.nodeType&&s.classList.contains("input-div"))n.innerHTML+=" ",n.innerHTML+=r,n.innerHTML+=" ";else{let t=s.textContent.slice(0,l),e=s.textContent.slice(l),i=t,a=s.previousSibling;for(;a;)1===a.nodeType&&(i=a.outerHTML+i),3===a.nodeType&&a.textContent&&(i=a.textContent+i),a=a.previousSibling;let o=e,c=s.nextSibling;for(;c;)1===c.nodeType&&(o+=c.outerHTML),3===c.nodeType&&c.textContent&&(o+=c.textContent),c=c.nextSibling;n.innerHTML=i+" "+r+" "+o}let t=n.lastChild,e=document.createRange();e.setStart(t,t.length),e.setEnd(t,t.length),i.removeAllRanges(),i.addRange(e)}else n.innerHTML+=" ",n.innerHTML+=r,n.innerHTML+=" ";t.type=e,this.mAllInputMarks[a]=t,this.showMemberList(!1)}}clear(){this.showMemberList(!1),this.mAllInputMarks={},this.mInputContent={id:"",parentId:"",atUserIds:"",content:"",realContent:"",mark:""}}isReplyOrEdit(){let t=!1;for(const e in this.mActivedReply)if(Object.prototype.hasOwnProperty.call(this.mActivedReply,e)&&this.mActivedReply[e].showReply){t=!0;break}for(const e in this.mActivedEdit)if(Object.prototype.hasOwnProperty.call(this.mActivedEdit,e)&&this.mActivedEdit[e].showEdit){t=!0;break}return t}isCommenting(){let t=document.getElementById("atInput"+this.comment.id);return!(!t||!t.innerHTML.trim())}backfill(t){let e=document.getElementById("atInput"+this.comment.id);e&&(e.innerHTML=t+" ")}getOldMarkDataById(t){let e="";if(this.mCurEditedComment){let n=JSON.parse(this.mCurEditedComment.originMark);for(let i=0;i<n.length;i++){const r=n[i];if(r.id===t){e=r;break}}}return e}}return t["ɵfac"]=function(e){return new(e||t)(Zo(HA))},t["ɵcmp"]=qt({type:t,selectors:[["app-comment-input"]],viewQuery:function(t,e){if(1&t&&Nc(vlt,5),2&t){let t;Vc(t=Gc())&&(e.mobileReplyInputPanelContainner=t.first)}},inputs:{comment:"comment",mMemberList:"mMemberList",mCurUserId:"mCurUserId",mGs:"mGs",mActivedReply:"mActivedReply",mActivedEdit:"mActivedEdit",mCommentDisabled:"mCommentDisabled",mIsReply:"mIsReply",mIsEdit:"mIsEdit",mCurEditedComment:"mCurEditedComment",mIsMobileContenteditable:"mIsMobileContenteditable"},outputs:{onSave:"onSave",onCancel:"onCancel",onCheckPaperSpace:"onCheckPaperSpace",onFold:"onFold"},decls:2,vars:2,consts:[["class","container",4,"ngIf"],["class","container mobile",4,"ngIf"],[1,"container"],[1,"input-box",3,"ngStyle"],["contenteditable","",1,"input-div",2,"-webkit-user-select","text",3,"ngStyle","id","input","click"],["nz-button","","nzType","primary","nzValue","small",1,"btn",3,"disabled","click"],["nz-button","","nzType","text","nzValue","small",1,"btn",3,"disabled","click"],["class","fold",3,"click",4,"ngIf"],[1,"member-list-box",3,"id"],[1,"member-list"],[4,"ngIf"],["class","no-data",4,"ngIf"],[1,"fold",3,"click"],["aria-hidden","true",1,"icon"],[0,"xlink","href","#icon-shouqi"],["class","userName-box",3,"click",4,"ngFor","ngForOf"],[1,"userName-box",3,"click"],["class","userName",4,"ngIf"],[1,"userName"],["class","icon","aria-hidden","true",4,"ngIf"],["alt","avatar",3,"src",4,"ngIf"],[0,"xlink","href","#icon-xiangmuchengyuan"],["alt","avatar",3,"src"],[1,"no-data"],[1,"container","mobile"],["mobileReplyInputPanelContainner",""],[1,"input-box"],[1,"input-div",2,"-webkit-user-select","text",3,"id","input","click"],[1,"input-button"]],template:function(t,e){1&t&&(Ho(0,Elt,15,19,"div",0),Ho(1,Rlt,15,13,"div",1)),2&t&&(Uo("ngIf",!e.mIsMobile),sa(1),Uo("ngIf",e.mIsMobile))},directives:[Yd,Qd,bM,uM,sM,Ud],pipes:[H3],styles:[".container[_ngcontent-%COMP%] .input-box[_ngcontent-%COMP%]{height:103px}.container[_ngcontent-%COMP%] .input-box[_ngcontent-%COMP%] .ant-btn-primary[_ngcontent-%COMP%]{border-color:var(--editor_main_background);background:var(--editor_comment_button_mobile);color:#fff!important}.container[_ngcontent-%COMP%] .input-box[_ngcontent-%COMP%] .ant-btn-primary[_ngcontent-%COMP%]:hover{border-color:#1890ff;background:#1890ff}.container[_ngcontent-%COMP%] .input-box[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{color:var(--main_font);margin-right:15px;float:right}.container[_ngcontent-%COMP%] .input-box[_ngcontent-%COMP%] .input-div[_ngcontent-%COMP%]{outline:none;border:1px solid var(--editor_main_border);height:60px;border-radius:5px;background-color:var(--editor_main_background);overflow-y:auto;background-color:var(--editor_input_background)}.container[_ngcontent-%COMP%] .input-box[_ngcontent-%COMP%] .input-div[_ngcontent-%COMP%]:hover, .container[_ngcontent-%COMP%] .input-box[_ngcontent-%COMP%] .input-div[_ngcontent-%COMP%]:focus{border-color:#40a9ff}.container[_ngcontent-%COMP%] .input-box[_ngcontent-%COMP%] .input-div[_ngcontent-%COMP%]:empty:before{content:attr(placeholder)}.container[_ngcontent-%COMP%] .input-box[_ngcontent-%COMP%] .input-div[_ngcontent-%COMP%]::-webkit-scrollbar{width:10px;height:10px}.container[_ngcontent-%COMP%] .input-box[_ngcontent-%COMP%] .input-div[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:10px;background-color:var(--editor_main_scrollBar)}.container[_ngcontent-%COMP%] .input-box[_ngcontent-%COMP%] .input-div[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:var(--scrollbar_track)}.container[_ngcontent-%COMP%] .input-box[_ngcontent-%COMP%] .input-div[_ngcontent-%COMP%]::-webkit-scrollbar-corner{width:10px;height:10px;background-color:var(--editor_main_background)}.container[_ngcontent-%COMP%] .fold[_ngcontent-%COMP%]{float:right;line-height:32px;cursor:pointer;color:#999;display:flex;align-items:center;justify-content:center;width:100%;margin-top:-30px}.container[_ngcontent-%COMP%] .disabled-class[_ngcontent-%COMP%]{pointer-events:none}.container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:26px;width:26px}.container[_ngcontent-%COMP%] .member-list-box[_ngcontent-%COMP%]{display:none;border-bottom:1px solid var(--editor_main_border)}.container[_ngcontent-%COMP%] .member-list-box[_ngcontent-%COMP%] .member-list[_ngcontent-%COMP%]{border:1px solid #999;background:var(--editor_main_background);margin:0 15px 5px}.container[_ngcontent-%COMP%] .member-list-box[_ngcontent-%COMP%] .member-list[_ngcontent-%COMP%] .userName-box[_ngcontent-%COMP%]:hover{background-color:var(--editor_main_background);cursor:pointer}.container[_ngcontent-%COMP%] .member-list-box[_ngcontent-%COMP%] .member-list[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:24px;height:24px;margin-bottom:-4px}.container[_ngcontent-%COMP%] .member-list-box[_ngcontent-%COMP%] .member-list[_ngcontent-%COMP%] .userName[_ngcontent-%COMP%]{margin:5px 10px}.container[_ngcontent-%COMP%] .followers[_ngcontent-%COMP%]{color:#40a9ff}.container[_ngcontent-%COMP%] .rectangle[_ngcontent-%COMP%]{height:10px;width:10px;margin-right:3px}.container[_ngcontent-%COMP%] .no-data[_ngcontent-%COMP%]{color:#999;font-size:12px;margin:5px}.mobile[_ngcontent-%COMP%]{padding:2vw 3vw}.mobile[_ngcontent-%COMP%] .input-box[_ngcontent-%COMP%]{height:auto}.mobile[_ngcontent-%COMP%] .input-box[_ngcontent-%COMP%] .input-div[_ngcontent-%COMP%]{margin:0;height:20vw;border-radius:5px}.mobile[_ngcontent-%COMP%] .input-box[_ngcontent-%COMP%] .input-button[_ngcontent-%COMP%]{padding-top:2vw;justify-content:space-between;display:flex}.mobile[_ngcontent-%COMP%] .input-box[_ngcontent-%COMP%] .input-button[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{float:unset;margin-right:0;flex-grow:1;height:10vw;border-radius:5px}.mobile[_ngcontent-%COMP%] .member-list-box[_ngcontent-%COMP%]{padding:2vw 0 1vw}.mobile[_ngcontent-%COMP%] .member-list-box[_ngcontent-%COMP%] .member-list[_ngcontent-%COMP%]{border:1px solid #999;border-radius:5px;background:var(--editor_main_background);margin:0}"]}),t})();function Blt(t,e){if(1&t&&(Yo(0,"span"),Bs(1),Cc(2,"translate"),jo()),2&t){const t=os(2);sa(1),Hs("",kc(2,2,"commentMobile_reply")," @",t.replyTargetUserName," :")}}function Vlt(t,e){if(1&t&&(Yo(0,"span"),Bs(1),jo()),2&t){const t=os(2);sa(1),Vs(t.mTips)}}function Nlt(t,e){if(1&t&&(qo(0),Ho(1,Blt,3,4,"span",4),Ho(2,Vlt,2,1,"ng-template",null,5,Yc),$o()),2&t){const t=Go(3),e=os();sa(1),Uo("ngIf",e.replyTargetUserName&&e.mTips===e.mDeafultTips)("ngIfElse",t)}}function Hlt(t,e){if(1&t&&(Yo(0,"span"),Bs(1),Cc(2,"translate"),Cc(3,"translate"),Cc(4,"dateFormat"),jo()),2&t){const t=os();sa(1),Gs("",kc(2,3,"commentMobile_editComment"),", ",kc(3,5,"commentMobile_lastUpdateTime"),": ",kc(4,7,t.lastUpdateTime),"")}}function Glt(t,e){if(1&t){const t=Jo();Yo(0,"div",6),es("click",(function(){return Ne(t),os().cmdEnter()})),Bs(1),Cc(2,"translate"),jo()}2&t&&(sa(1),Vs(kc(2,1,"commentMobile_finish")))}let Zlt=(()=>{class t{constructor(){this.replyTargetUserName="",this.isActiveOtherPanel=!1,this.lastUpdateTime="",this.mCmdEndEvt=new Dc,this.mDeafultTips=qF.mLanguagePackage.commentMobile_chooseCommentToolAndSetColor,this.mTips=this.mDeafultTips,this.mCurrentCmd=""}ngOnInit(){MF.instance().subscribeBroardcast(_F.History,this)}ngOnDestroy(){MF.instance().unsubscribeBroardcast(_F.History,this)}notify(t,e){if(t===_F.History&&"object"==typeof e){switch(this.mCurrentCmd=n7.instance().mCmdHistoryList.length?n7.instance().mCmdHistoryList[n7.instance().mCmdHistoryList.length-1]:"",this.mCurrentCmd){case"CIRCLE":qF.mLanguagePackage.circleCenterRadius+":"===e.label&&(this.mTips=qF.mLanguagePackage.commentMobile_clickToConfirmCircleCenter),qF.mLanguagePackage.circleRadius+":"===e.label&&(this.mTips=qF.mLanguagePackage.commentMobile_clickToSetCircleRadius);break;case"RECTANGLE":qF.mLanguagePackage.rectFirstPt===e.label&&(this.mTips=qF.mLanguagePackage.commentMobile_clickToSetRectangleStartPoint),qF.mLanguagePackage.rectAnotherPt===e.label&&(this.mTips=qF.mLanguagePackage.commentMobile_clickToSetRectangleEndPoint);break;case"REVCLOUD":qF.mLanguagePackage.revCloud1+":"===e.label&&(this.mTips=qF.mLanguagePackage.commentMobile_clickToSetCloudStartPoint),qF.mLanguagePackage.oppositeCorner+":"===e.label&&(this.mTips=qF.mLanguagePackage.commentMobile_clickToSetCloudEndPoint);break;case"PLINE":qF.mLanguagePackage.plineFirstPoint===e.label&&(this.mTips=qF.mLanguagePackage.commentMobile_clickToSetPolylineFirstPoint),qF.mLanguagePackage.plineNextPoint===e.label&&(this.mTips=qF.mLanguagePackage.commentMobile_clickToSetPolylineNextPoint);break;case"LEADER":qF.mLanguagePackage.leader1===e.label&&(this.mTips=qF.mLanguagePackage.commentMobile_clickToSetLeaderLineStartPoint),(qF.mLanguagePackage.lineCmdDesc+":"===e.label||qF.mLanguagePackage.leaderNextPt===e.label)&&(this.mTips=qF.mLanguagePackage.commentMobile_clickToSetLeaderLineNextPoint);break;case"IMAGE":this.mTips="请选择图片",qF.mLanguagePackage.insertPoint===e.label&&(this.mTips=qF.mLanguagePackage.commentMobile_clickToSelectImageInsertPoint),qF.mLanguagePackage.scaleFactor===e.label&&(this.mTips=qF.mLanguagePackage.commentMobile_clickToSetImageEndPoint),qF.mLanguagePackage.command+":"===e.label&&setTimeout((()=>{this.mCmdEndEvt.emit()}),0);break;case"BUBBLE":this.mTips=qF.mLanguagePackage.commentMobile_clickToSetStampPoint}qF.mLanguagePackage.command+":"===e.label&&(this.mTips=this.mDeafultTips,this.mCurrentCmd="")}}isOnCmd(){return!!this.mCurrentCmd}isAbsolutePosition(){return!this.isActiveOtherPanel&&this.mMobileType!==Z4.commentPanel&&this.isOnCmd()}cmdEnter(){switch(this.mCurrentCmd){case"PLINE":case"LEADER":n7.instance().endMobileContinuousBubbleCmd();break;default:n7.instance().resetExecuteCmd(),n7.instance().clear("keepHistory"),h4.mCmd=null}this.mCmdEndEvt.emit()}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵcmp"]=qt({type:t,selectors:[["app-comment-mobile-cmdTips"]],inputs:{replyTargetUserName:"replyTargetUserName",isActiveOtherPanel:"isActiveOtherPanel",mMobileType:["mobileType","mMobileType"],lastUpdateTime:"lastUpdateTime"},outputs:{mCmdEndEvt:"mCmdEndEvt"},decls:5,vars:5,consts:[[1,"tipsPanel"],[1,"text"],[4,"ngIf"],["class","button",3,"click",4,"ngIf"],[4,"ngIf","ngIfElse"],["cmdTips",""],[1,"button",3,"click"]],template:function(t,e){1&t&&(Yo(0,"div",0),Yo(1,"div",1),Ho(2,Nlt,4,2,"ng-container",2),Ho(3,Hlt,5,9,"span",2),jo(),Ho(4,Glt,3,3,"div",3),jo()),2&t&&(Ps(e.isAbsolutePosition()?"absolute":""),sa(2),Uo("ngIf",!e.lastUpdateTime),sa(1),Uo("ngIf",e.lastUpdateTime),sa(1),Uo("ngIf",e.isOnCmd()))},directives:[Yd],pipes:[H3,Y4],styles:[".tipsPanel[_ngcontent-%COMP%]{height:12vw;padding:0 2vw;display:flex;align-items:center;justify-content:space-between;background-color:var(--editor_command_tips);width:100%;border-bottom:1px solid var(--editor_mobile_border);font-size:12px;color:var(--main_font)}.tipsPanel[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{padding:1vw;background-color:#40a5ee;border-radius:4px;width:12vw;display:flex;justify-content:center;color:#fff}.absolute[_ngcontent-%COMP%]{position:absolute;transform:translateY(-100%)}"]}),t})();function Ult(t,e){if(1&t){const t=Jo();Yo(0,"app-comment-mobile-card",3),es("exportCommentEvt",(function(){return Ne(t),os().exportComment()}))("showBubbleEvt",(function(){return Ne(t),os().showBubble()}))("deleteCommentEvt",(function(e){return Ne(t),os().deleteComment(e)}))("editCommentEvt",(function(e){return Ne(t),os().editComment(e)}))("toCommentToolReplyEvt",(function(){return Ne(t),os().toCommentMobileToolReply()})),jo()}if(2&t){const t=e.$implicit,n=e.index,i=os();Uo("commentData",t)("index",n+1)("total",i.mTotalCommentList.length)("mBubbleOffBtnIcon",i.mBubbleOffBtnIcon)("mCurUserId",i.mCurUserId)}}let Wlt=(()=>{class t{constructor(){this.startIndex=0,this.sliderIndexChangedEvt=new Dc,this.exportCommentEvt=new Dc,this.showBubbleEvt=new Dc,this.deleteCommentEvt=new Dc,this.toCommentMobileToolReplyEvt=new Dc,this.editCommentEvt=new Dc,this.mSliderId="",this.mSliderComponentId="",this.mCurrentIndex=0,this.isRebuildSlider=!1,this.isInit=!1,this.mId=(4294967296*(1+Math.random())|0).toString(16).substring(1)}ngOnChanges(t){t.mTotalCommentList&&t.mTotalCommentList.previousValue!==t.mTotalCommentList.currentValue&&this.isInit&&(this.isRebuildSlider=!0)}ngOnInit(){this.mSliderId="my-slider-"+this.mId,this.mSliderComponentId="my-slider-Component-"+this.mId,this.isInit=!0}ngAfterViewInit(){this.myCreateSlider("#"+this.mSliderId)}ngAfterViewChecked(){if(this.isInit&&this.isRebuildSlider){let t=document.querySelector("#"+this.mSliderId).children;if(document.querySelector("#"+this.mSliderId).style.width="calc("+100*this.mTotalCommentList.length+"%)",Array.prototype.forEach.call(t,(t=>{t.style.width="calc("+100/this.mTotalCommentList.length+"%)"})),t.length===this.mTotalCommentList.length){let t=document.querySelector("#"+this.mSliderComponentId),e=document.querySelector("#"+this.mSliderId+"-ow"),n=document.querySelector("#"+this.mSliderId);n.className="my-slider",t&&(t.appendChild(n),t.removeChild(e)),this.myCreateSlider("#"+this.mSliderId),this.isRebuildSlider=!1}}}myCreateSlider(t){let e=()=>{this.mSliderControl=tns({container:t,items:1,loop:!1,startIndex:this.startIndex,edgePadding:20,mouseDrag:!0,nav:!1,controls:!1,preventScrollOnTouch:"force"}),this.mSliderControl&&this.mSliderControl.events.on("indexChanged",((t,e)=>{this.mCurrentIndex=t.index,this.sliderIndexChangedEvt.emit(t.index)}))};if(document.querySelector("#"+this.mSliderId+"-ow"))e();else{let t=setInterval((()=>{document.querySelector("#"+this.mSliderId+"-ow")?clearInterval(t):e()}),100)}}exportComment(){this.exportCommentEvt.emit()}showBubble(){this.showBubbleEvt.emit()}deleteComment(t){this.deleteCommentEvt.emit(t)}toCommentMobileToolReply(){this.toCommentMobileToolReplyEvt.emit()}editComment(t){this.editCommentEvt.emit(t)}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵcmp"]=qt({type:t,selectors:[["app-comment-mobile-swipe"]],inputs:{mTotalCommentList:"mTotalCommentList",startIndex:"startIndex",mBubbleOffBtnIcon:"mBubbleOffBtnIcon",mCurUserId:"mCurUserId"},outputs:{sliderIndexChangedEvt:"sliderIndexChangedEvt",exportCommentEvt:"exportCommentEvt",showBubbleEvt:"showBubbleEvt",deleteCommentEvt:"deleteCommentEvt",toCommentMobileToolReplyEvt:"toCommentMobileToolReplyEvt",editCommentEvt:"editCommentEvt"},features:[pe],decls:3,vars:3,consts:[[3,"id"],[1,"my-slider",3,"id"],["class","tns-item",3,"commentData","index","total","mBubbleOffBtnIcon","mCurUserId","exportCommentEvt","showBubbleEvt","deleteCommentEvt","editCommentEvt","toCommentToolReplyEvt",4,"ngFor","ngForOf"],[1,"tns-item",3,"commentData","index","total","mBubbleOffBtnIcon","mCurUserId","exportCommentEvt","showBubbleEvt","deleteCommentEvt","editCommentEvt","toCommentToolReplyEvt"]],template:function(t,e){1&t&&(Yo(0,"div",0),Yo(1,"div",1),Ho(2,Ult,1,5,"app-comment-mobile-card",2),jo(),jo()),2&t&&(Uo("id",e.mSliderComponentId),sa(1),Uo("id",e.mSliderId),sa(1),Uo("ngForOf",e.mTotalCommentList))},directives:[Ud,s8],styles:[".my-slider[_ngcontent-%COMP%]{display:flex}.opacityHidden[_ngcontent-%COMP%]{opacity:0}.opacityShow[_ngcontent-%COMP%]{opacity:1}"]}),t})();const Ylt=["hourListElement"],jlt=["minuteListElement"],Xlt=["secondListElement"],qlt=["use12HoursListElement"];function $lt(t,e){if(1&t&&(Yo(0,"div",4),Yo(1,"div",5),Bs(2),jo(),jo()),2&t){const t=os();sa(2),Vs(t.dateHelper.format(null==t.time?null:t.time.value,t.format)||" ")}}function Klt(t,e){if(1&t){const t=Jo();Yo(0,"li",10),es("click",(function(){Ne(t);const e=os().$implicit;return os(2).selectHour(e)})),Yo(1,"div",11),Bs(2),Cc(3,"number"),jo(),jo()}if(2&t){const t=os().$implicit;Cs("ant-picker-time-panel-cell-selected",os(2).isSelectedHour(t))("ant-picker-time-panel-cell-disabled",t.disabled),sa(2),Vs(Sc(3,5,t.index,"2.0-0"))}}function Jlt(t,e){if(1&t&&(qo(0),Ho(1,Klt,4,8,"li",9),$o()),2&t){const t=e.$implicit,n=os(2);sa(1),Uo("ngIf",!(n.nzHideDisabledOptions&&t.disabled))}}function Qlt(t,e){if(1&t&&(Yo(0,"ul",6,7),Ho(2,Jlt,2,1,"ng-container",8),jo()),2&t){const t=os();sa(2),Uo("ngForOf",t.hourRange)("ngForTrackBy",t.trackByFn)}}function tct(t,e){if(1&t){const t=Jo();Yo(0,"li",10),es("click",(function(){Ne(t);const e=os().$implicit;return os(2).selectMinute(e)})),Yo(1,"div",11),Bs(2),Cc(3,"number"),jo(),jo()}if(2&t){const t=os().$implicit;Cs("ant-picker-time-panel-cell-selected",os(2).isSelectedMinute(t))("ant-picker-time-panel-cell-disabled",t.disabled),sa(2),Vs(Sc(3,5,t.index,"2.0-0"))}}function ect(t,e){if(1&t&&(qo(0),Ho(1,tct,4,8,"li",9),$o()),2&t){const t=e.$implicit,n=os(2);sa(1),Uo("ngIf",!(n.nzHideDisabledOptions&&t.disabled))}}function nct(t,e){if(1&t&&(Yo(0,"ul",6,12),Ho(2,ect,2,1,"ng-container",8),jo()),2&t){const t=os();sa(2),Uo("ngForOf",t.minuteRange)("ngForTrackBy",t.trackByFn)}}function ict(t,e){if(1&t){const t=Jo();Yo(0,"li",10),es("click",(function(){Ne(t);const e=os().$implicit;return os(2).selectSecond(e)})),Yo(1,"div",11),Bs(2),Cc(3,"number"),jo(),jo()}if(2&t){const t=os().$implicit;Cs("ant-picker-time-panel-cell-selected",os(2).isSelectedSecond(t))("ant-picker-time-panel-cell-disabled",t.disabled),sa(2),Vs(Sc(3,5,t.index,"2.0-0"))}}function rct(t,e){if(1&t&&(qo(0),Ho(1,ict,4,8,"li",9),$o()),2&t){const t=e.$implicit,n=os(2);sa(1),Uo("ngIf",!(n.nzHideDisabledOptions&&t.disabled))}}function act(t,e){if(1&t&&(Yo(0,"ul",6,13),Ho(2,rct,2,1,"ng-container",8),jo()),2&t){const t=os();sa(2),Uo("ngForOf",t.secondRange)("ngForTrackBy",t.trackByFn)}}function oct(t,e){if(1&t){const t=Jo();Yo(0,"li",10),es("click",(function(){Ne(t);const e=os().$implicit;return os(2).select12Hours(e)})),Yo(1,"div",11),Bs(2),jo(),jo()}if(2&t){const t=os().$implicit;Cs("ant-picker-time-panel-cell-selected",os(2).isSelected12Hours(t)),sa(2),Vs(t.value)}}function sct(t,e){if(1&t&&(qo(0),Ho(1,oct,3,3,"li",16),$o()),2&t){const t=os(2);sa(1),Uo("ngIf",!t.nzHideDisabledOptions)}}function lct(t,e){if(1&t&&(Yo(0,"ul",6,14),Ho(2,sct,2,1,"ng-container",15),jo()),2&t){const t=os();sa(2),Uo("ngForOf",t.use12HoursRange)}}function cct(t,e){}function hct(t,e){if(1&t&&(Yo(0,"div",24),Ho(1,cct,0,0,"ng-template",25),jo()),2&t){const t=os(2);sa(1),Uo("ngTemplateOutlet",t.nzAddOn)}}function dct(t,e){if(1&t){const t=Jo();Yo(0,"div",17),Ho(1,hct,2,1,"div",18),Yo(2,"ul",19),Yo(3,"li",20),Yo(4,"a",21),es("click",(function(){return Ne(t),os().onClickNow()})),Bs(5),Cc(6,"nzI18n"),jo(),jo(),Yo(7,"li",22),Yo(8,"button",23),es("click",(function(){return Ne(t),os().onClickOk()})),Bs(9),Cc(10,"nzI18n"),jo(),jo(),jo(),jo()}if(2&t){const t=os();sa(1),Uo("ngIf",t.nzAddOn),sa(4),Ns(" ",t.nzNowText||kc(6,3,"Calendar.lang.now")," "),sa(4),Ns(" ",t.nzOkText||kc(10,5,"Calendar.lang.ok")," ")}}class uct{constructor(){this.selected12Hours=void 0,this._use12Hours=!1,this._changes=new A}setMinutes(t,e){return e||(this.initValue(),this.value.setMinutes(t),this.update()),this}setHours(t,e){return e||(this.initValue(),this.value.setHours(this._use12Hours?"PM"===this.selected12Hours&&12!==t?t+12:"AM"===this.selected12Hours&&12===t?0:t:t),this.update()),this}setSeconds(t,e){return e||(this.initValue(),this.value.setSeconds(t),this.update()),this}setUse12Hours(t){return this._use12Hours=t,this}get changes(){return this._changes.asObservable()}setValue(t,e){return ix(e)&&(this._use12Hours=e),t!==this.value&&(this._value=t,ix(this.value)?this._use12Hours&&ix(this.hours)&&(this.selected12Hours=this.hours>=12?"PM":"AM"):this._clear()),this}initValue(){rx(this.value)&&this.setValue(new Date,this._use12Hours)}clear(){this._clear(),this.update()}get isEmpty(){return!(ix(this.hours)||ix(this.minutes)||ix(this.seconds))}_clear(){this._value=void 0,this.selected12Hours=void 0}update(){this.isEmpty?this._value=void 0:(ix(this.hours)&&this.value.setHours(this.hours),ix(this.minutes)&&this.value.setMinutes(this.minutes),ix(this.seconds)&&this.value.setSeconds(this.seconds),this._use12Hours&&("PM"===this.selected12Hours&&this.hours<12&&this.value.setHours(this.hours+12),"AM"===this.selected12Hours&&this.hours>=12&&this.value.setHours(this.hours-12))),this.changed()}changed(){this._changes.next(this.value)}get viewHours(){return this._use12Hours&&ix(this.hours)?this.calculateViewHour(this.hours):this.hours}setSelected12Hours(t){t.toUpperCase()!==this.selected12Hours&&(this.selected12Hours=t.toUpperCase(),this.update())}get value(){return this._value||this._defaultOpenValue}get hours(){var t;return null===(t=this.value)||void 0===t?void 0:t.getHours()}get minutes(){var t;return null===(t=this.value)||void 0===t?void 0:t.getMinutes()}get seconds(){var t;return null===(t=this.value)||void 0===t?void 0:t.getSeconds()}setDefaultOpenValue(t){return this._defaultOpenValue=t,this}calculateViewHour(t){const e=this.selected12Hours;return"PM"===e&&t>12?t-12:"AM"===e&&0===t?12:t}}function mct(t,e=1,n=0){return new Array(Math.ceil(t/e)).fill(0).map(((t,i)=>(i+n)*e))}let pct=(()=>{class t{constructor(t,e,n,i){this.ngZone=t,this.cdr=e,this.dateHelper=n,this.elementRef=i,this._nzHourStep=1,this._nzMinuteStep=1,this._nzSecondStep=1,this.unsubscribe$=new A,this._format="HH:mm:ss",this._disabledHours=()=>[],this._disabledMinutes=()=>[],this._disabledSeconds=()=>[],this._allowEmpty=!0,this.time=new uct,this.hourEnabled=!0,this.minuteEnabled=!0,this.secondEnabled=!0,this.firstScrolled=!1,this.enabledColumns=3,this.nzInDatePicker=!1,this.nzHideDisabledOptions=!1,this.nzUse12Hours=!1,this.closePanel=new Dc,this.elementRef.nativeElement.classList.add("ant-picker-time-panel")}set nzAllowEmpty(t){ix(t)&&(this._allowEmpty=t)}get nzAllowEmpty(){return this._allowEmpty}set nzDisabledHours(t){this._disabledHours=t,this._disabledHours&&this.buildHours()}get nzDisabledHours(){return this._disabledHours}set nzDisabledMinutes(t){ix(t)&&(this._disabledMinutes=t,this.buildMinutes())}get nzDisabledMinutes(){return this._disabledMinutes}set nzDisabledSeconds(t){ix(t)&&(this._disabledSeconds=t,this.buildSeconds())}get nzDisabledSeconds(){return this._disabledSeconds}set format(t){if(ix(t)){this._format=t,this.enabledColumns=0;const e=new Set(t);this.hourEnabled=e.has("H")||e.has("h"),this.minuteEnabled=e.has("m"),this.secondEnabled=e.has("s"),this.hourEnabled&&this.enabledColumns++,this.minuteEnabled&&this.enabledColumns++,this.secondEnabled&&this.enabledColumns++,this.nzUse12Hours&&this.build12Hours()}}get format(){return this._format}set nzHourStep(t){ix(t)&&(this._nzHourStep=t,this.buildHours())}get nzHourStep(){return this._nzHourStep}set nzMinuteStep(t){ix(t)&&(this._nzMinuteStep=t,this.buildMinutes())}get nzMinuteStep(){return this._nzMinuteStep}set nzSecondStep(t){ix(t)&&(this._nzSecondStep=t,this.buildSeconds())}get nzSecondStep(){return this._nzSecondStep}trackByFn(t){return t}buildHours(){var t;let e=24,n=null===(t=this.nzDisabledHours)||void 0===t?void 0:t.call(this),i=0;if(this.nzUse12Hours&&(e=12,n&&(n="PM"===this.time.selected12Hours?n.filter((t=>t>=12)).map((t=>t>12?t-12:t)):n.filter((t=>t<12||24===t)).map((t=>24===t||0===t?12:t))),i=1),this.hourRange=mct(e,this.nzHourStep,i).map((t=>({index:t,disabled:!!n&&-1!==n.indexOf(t)}))),this.nzUse12Hours&&12===this.hourRange[this.hourRange.length-1].index){const t=[...this.hourRange];t.unshift(t[t.length-1]),t.splice(t.length-1,1),this.hourRange=t}}buildMinutes(){this.minuteRange=mct(60,this.nzMinuteStep).map((t=>({index:t,disabled:!!this.nzDisabledMinutes&&-1!==this.nzDisabledMinutes(this.time.hours).indexOf(t)})))}buildSeconds(){this.secondRange=mct(60,this.nzSecondStep).map((t=>({index:t,disabled:!!this.nzDisabledSeconds&&-1!==this.nzDisabledSeconds(this.time.hours,this.time.minutes).indexOf(t)})))}build12Hours(){const t=this._format.includes("A");this.use12HoursRange=[{index:0,value:t?"AM":"am"},{index:1,value:t?"PM":"pm"}]}buildTimes(){this.buildHours(),this.buildMinutes(),this.buildSeconds(),this.build12Hours()}scrollToTime(t=0){this.hourEnabled&&this.hourListElement&&this.scrollToSelected(this.hourListElement.nativeElement,this.time.viewHours,t,"hour"),this.minuteEnabled&&this.minuteListElement&&this.scrollToSelected(this.minuteListElement.nativeElement,this.time.minutes,t,"minute"),this.secondEnabled&&this.secondListElement&&this.scrollToSelected(this.secondListElement.nativeElement,this.time.seconds,t,"second"),this.nzUse12Hours&&this.use12HoursListElement&&this.scrollToSelected(this.use12HoursListElement.nativeElement,"AM"===this.time.selected12Hours?0:1,t,"12-hour")}selectHour(t){this.time.setHours(t.index,t.disabled),this._disabledMinutes&&this.buildMinutes(),(this._disabledSeconds||this._disabledMinutes)&&this.buildSeconds()}selectMinute(t){this.time.setMinutes(t.index,t.disabled),this._disabledSeconds&&this.buildSeconds()}selectSecond(t){this.time.setSeconds(t.index,t.disabled)}select12Hours(t){this.time.setSelected12Hours(t.value),this._disabledHours&&this.buildHours(),this._disabledMinutes&&this.buildMinutes(),this._disabledSeconds&&this.buildSeconds()}scrollToSelected(t,e,n=0,i){if(!t)return;const r=this.translateIndex(e,i);this.scrollTo(t,(t.children[r]||t.children[0]).offsetTop,n)}translateIndex(t,e){var n,i,r;return"hour"===e?this.calcIndex(null===(n=this.nzDisabledHours)||void 0===n?void 0:n.call(this),this.hourRange.map((t=>t.index)).indexOf(t)):"minute"===e?this.calcIndex(null===(i=this.nzDisabledMinutes)||void 0===i?void 0:i.call(this,this.time.hours),this.minuteRange.map((t=>t.index)).indexOf(t)):"second"===e?this.calcIndex(null===(r=this.nzDisabledSeconds)||void 0===r?void 0:r.call(this,this.time.hours,this.time.minutes),this.secondRange.map((t=>t.index)).indexOf(t)):this.calcIndex([],this.use12HoursRange.map((t=>t.index)).indexOf(t))}scrollTo(t,e,n){if(n<=0)return void(t.scrollTop=e);const i=(e-t.scrollTop)/n*10;this.ngZone.runOutsideAngular((()=>{pI((()=>{t.scrollTop=t.scrollTop+i,t.scrollTop!==e&&this.scrollTo(t,e,n-10)}))}))}calcIndex(t,e){return(null==t?void 0:t.length)&&this.nzHideDisabledOptions?e-t.reduce(((t,n)=>t+(n<e?1:0)),0):e}changed(){this.onChange&&this.onChange(this.time.value)}touched(){this.onTouch&&this.onTouch()}timeDisabled(t){var e,n,i,r,a,o;const s=t.getHours(),l=t.getMinutes(),c=t.getSeconds();return(null!==(n=null===(e=this.nzDisabledHours)||void 0===e?void 0:e.call(this).indexOf(s))&&void 0!==n?n:-1)>-1||(null!==(r=null===(i=this.nzDisabledMinutes)||void 0===i?void 0:i.call(this,s).indexOf(l))&&void 0!==r?r:-1)>-1||(null!==(o=null===(a=this.nzDisabledSeconds)||void 0===a?void 0:a.call(this,s,l).indexOf(c))&&void 0!==o?o:-1)>-1}onClickNow(){const t=new Date;this.timeDisabled(t)||(this.time.setValue(t),this.changed(),this.closePanel.emit())}onClickOk(){this.time.setValue(this.time.value,this.nzUse12Hours),this.changed(),this.closePanel.emit()}isSelectedHour(t){return t.index===this.time.viewHours}isSelectedMinute(t){return t.index===this.time.minutes}isSelectedSecond(t){return t.index===this.time.seconds}isSelected12Hours(t){return t.value.toUpperCase()===this.time.selected12Hours}ngOnInit(){this.time.changes.pipe(aC(this.unsubscribe$)).subscribe((()=>{this.changed(),this.touched(),this.scrollToTime(120)})),this.buildTimes(),setTimeout((()=>{this.scrollToTime(),this.firstScrolled=!0})),this.ngZone.runOutsideAngular((()=>{Nx(this.elementRef.nativeElement,"mousedown").pipe(aC(this.unsubscribe$)).subscribe((t=>{t.preventDefault()}))}))}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}ngOnChanges(t){const{nzUse12Hours:e,nzDefaultOpenValue:n}=t;!(null==e?void 0:e.previousValue)&&(null==e?void 0:e.currentValue)&&(this.build12Hours(),this.enabledColumns++),(null==n?void 0:n.currentValue)&&this.time.setDefaultOpenValue(this.nzDefaultOpenValue||new Date)}writeValue(t){this.time.setValue(t,this.nzUse12Hours),this.buildTimes(),t&&this.firstScrolled&&this.scrollToTime(120),this.cdr.markForCheck()}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouch=t}}return t["ɵfac"]=function(e){return new(e||t)(Zo(ph),Zo(Gl),Zo(Ix),Zo(bl))},t["ɵcmp"]=qt({type:t,selectors:[["nz-time-picker-panel"]],viewQuery:function(t,e){if(1&t&&(Nc(Ylt,5),Nc(jlt,5),Nc(Xlt,5),Nc(qlt,5)),2&t){let t;Vc(t=Gc())&&(e.hourListElement=t.first),Vc(t=Gc())&&(e.minuteListElement=t.first),Vc(t=Gc())&&(e.secondListElement=t.first),Vc(t=Gc())&&(e.use12HoursListElement=t.first)}},hostVars:12,hostBindings:function(t,e){2&t&&Cs("ant-picker-time-panel-column-0",0===e.enabledColumns&&!e.nzInDatePicker)("ant-picker-time-panel-column-1",1===e.enabledColumns&&!e.nzInDatePicker)("ant-picker-time-panel-column-2",2===e.enabledColumns&&!e.nzInDatePicker)("ant-picker-time-panel-column-3",3===e.enabledColumns&&!e.nzInDatePicker)("ant-picker-time-panel-narrow",e.enabledColumns<3)("ant-picker-time-panel-placement-bottomLeft",!e.nzInDatePicker)},inputs:{nzInDatePicker:"nzInDatePicker",nzHideDisabledOptions:"nzHideDisabledOptions",nzUse12Hours:"nzUse12Hours",nzAllowEmpty:"nzAllowEmpty",nzDisabledHours:"nzDisabledHours",nzDisabledMinutes:"nzDisabledMinutes",nzDisabledSeconds:"nzDisabledSeconds",format:"format",nzHourStep:"nzHourStep",nzMinuteStep:"nzMinuteStep",nzSecondStep:"nzSecondStep",nzAddOn:"nzAddOn",nzClearText:"nzClearText",nzNowText:"nzNowText",nzOkText:"nzOkText",nzPlaceHolder:"nzPlaceHolder",nzDefaultOpenValue:"nzDefaultOpenValue"},outputs:{closePanel:"closePanel"},exportAs:["nzTimePickerPanel"],features:[hl([{provide:Km,useExisting:t,multi:!0}]),pe],decls:7,vars:6,consts:[["class","ant-picker-header",4,"ngIf"],[1,"ant-picker-content"],["class","ant-picker-time-panel-column","style","position: relative;",4,"ngIf"],["class","ant-picker-footer",4,"ngIf"],[1,"ant-picker-header"],[1,"ant-picker-header-view"],[1,"ant-picker-time-panel-column",2,"position","relative"],["hourListElement",""],[4,"ngFor","ngForOf","ngForTrackBy"],["class","ant-picker-time-panel-cell",3,"ant-picker-time-panel-cell-selected","ant-picker-time-panel-cell-disabled","click",4,"ngIf"],[1,"ant-picker-time-panel-cell",3,"click"],[1,"ant-picker-time-panel-cell-inner"],["minuteListElement",""],["secondListElement",""],["use12HoursListElement",""],[4,"ngFor","ngForOf"],["class","ant-picker-time-panel-cell",3,"ant-picker-time-panel-cell-selected","click",4,"ngIf"],[1,"ant-picker-footer"],["class","ant-picker-footer-extra",4,"ngIf"],[1,"ant-picker-ranges"],[1,"ant-picker-now"],[3,"click"],[1,"ant-picker-ok"],["nz-button","","type","button","nzSize","small","nzType","primary",3,"click"],[1,"ant-picker-footer-extra"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&(Ho(0,$lt,3,1,"div",0),Yo(1,"div",1),Ho(2,Qlt,3,2,"ul",2),Ho(3,nct,3,2,"ul",2),Ho(4,act,3,2,"ul",2),Ho(5,lct,3,1,"ul",2),jo(),Ho(6,dct,11,7,"div",3)),2&t&&(Uo("ngIf",e.nzInDatePicker),sa(2),Uo("ngIf",e.hourEnabled),sa(1),Uo("ngIf",e.minuteEnabled),sa(1),Uo("ngIf",e.secondEnabled),sa(1),Uo("ngIf",e.nzUse12Hours),sa(1),Uo("ngIf",!e.nzInDatePicker))},directives:[Yd,Ud,bM,uM,sM,tu],pipes:[eu,Dx],encapsulation:2,changeDetection:0}),Bk([hx()],t.prototype,"nzUse12Hours",void 0),t})(),gct=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({imports:[[Vx,nu,Wp,Ex,Fk,nP,RM,Yk,yM]]}),t})();function fct(t,e){1&t&&Ko(0)}function bct(t,e){if(1&t&&(qo(0),Ho(1,fct,1,0,"ng-container",4),$o()),2&t){const t=os(2);sa(1),Uo("ngTemplateOutlet",t.extraFooter)}}function yct(t,e){if(1&t&&(qo(0),Xo(1,"span",5),$o()),2&t){const t=os(2);sa(1),Uo("innerHTML",t.extraFooter,Nr)}}function vct(t,e){if(1&t&&(Yo(0,"div"),qo(1,2),Ho(2,bct,2,1,"ng-container",3),Ho(3,yct,2,1,"ng-container",3),$o(),jo()),2&t){const t=os();Us("",t.prefixCls,"-footer-extra"),sa(1),Uo("ngSwitch",!0),sa(1),Uo("ngSwitchCase",t.isTemplateRef(t.extraFooter)),sa(1),Uo("ngSwitchCase",t.isNonEmptyString(t.extraFooter))}}function wct(t,e){if(1&t){const t=Jo();Yo(0,"a",6),es("click",(function(){Ne(t);const e=os();return e.isTodayDisabled?null:e.onClickToday()})),Bs(1),jo()}if(2&t){const t=os();Ws("",t.prefixCls,"-today-btn ",t.isTodayDisabled?t.prefixCls+"-today-btn-disabled":"",""),hs("title",t.todayTitle),sa(1),Ns(" ",t.locale.today," ")}}function xct(t,e){1&t&&Ko(0)}function Cct(t,e){if(1&t){const t=Jo();Yo(0,"li"),Yo(1,"a",7),es("click",(function(){Ne(t);const e=os(2);return e.isTodayDisabled?null:e.onClickToday()})),Bs(2),jo(),jo()}if(2&t){const t=os(2);Us("",t.prefixCls,"-now"),sa(1),Us("",t.prefixCls,"-now-btn"),sa(1),Ns(" ",t.locale.now," ")}}function kct(t,e){if(1&t){const t=Jo();Yo(0,"li"),Yo(1,"button",8),es("click",(function(){Ne(t);const e=os(2);return e.okDisabled?null:e.clickOk.emit()})),Bs(2),jo(),jo()}if(2&t){const t=os(2);Us("",t.prefixCls,"-ok"),sa(1),Uo("disabled",t.okDisabled),sa(1),Ns(" ",t.locale.ok," ")}}function Sct(t,e){if(1&t&&(Yo(0,"ul"),Ho(1,xct,1,0,"ng-container",4),Ho(2,Cct,3,7,"li",0),Ho(3,kct,3,5,"li",0),jo()),2&t){const t=os();Us("",t.prefixCls,"-ranges"),sa(1),Uo("ngTemplateOutlet",t.rangeQuickSelector),sa(1),Uo("ngIf",t.showNow),sa(1),Uo("ngIf",t.hasTimePicker)}}function Pct(t,e){1&t&&Ko(0)}const _ct=function(t){return{partType:t}};function Mct(t,e){if(1&t&&(qo(0),Ho(1,Pct,1,0,"ng-container",7),$o()),2&t){const t=os(2),e=Go(4);sa(1),Uo("ngTemplateOutlet",e)("ngTemplateOutletContext",fc(2,_ct,t.datePickerService.activeInput))}}function Dct(t,e){1&t&&Ko(0)}function Ect(t,e){1&t&&Ko(0)}const Oct=function(){return{partType:"left"}},Act=function(){return{partType:"right"}};function Tct(t,e){if(1&t&&(Ho(0,Dct,1,0,"ng-container",7),Ho(1,Ect,1,0,"ng-container",7)),2&t){os(2);const t=Go(4);Uo("ngTemplateOutlet",t)("ngTemplateOutletContext",gc(4,Oct)),sa(1),Uo("ngTemplateOutlet",t)("ngTemplateOutletContext",gc(5,Act))}}function Ict(t,e){1&t&&Ko(0)}function Lct(t,e){if(1&t&&(qo(0),Yo(1,"div"),Xo(2,"div"),Yo(3,"div"),Yo(4,"div"),Ho(5,Mct,2,4,"ng-container",0),Ho(6,Tct,2,6,"ng-template",null,5,Yc),jo(),Ho(8,Ict,1,0,"ng-container",6),jo(),jo(),$o()),2&t){const t=Go(7),e=os(),n=Go(6);sa(1),Ws("",e.prefixCls,"-range-wrapper ",e.prefixCls,"-date-range-wrapper"),sa(1),Us("",e.prefixCls,"-range-arrow"),xs("left",null==e.datePickerService?null:e.datePickerService.arrowLeft,"px"),sa(1),Us("",e.prefixCls,"-panel-container"),sa(1),Us("",e.prefixCls,"-panels"),sa(1),Uo("ngIf",e.hasTimePicker)("ngIfElse",t),sa(3),Uo("ngTemplateOutlet",n)}}function zct(t,e){1&t&&Ko(0)}function Rct(t,e){1&t&&Ko(0)}function Fct(t,e){if(1&t&&(Yo(0,"div"),Yo(1,"div",8),Ho(2,zct,1,0,"ng-container",6),Ho(3,Rct,1,0,"ng-container",6),jo(),jo()),2&t){const t=os(),e=Go(4),o=Go(6);n=t.prefixCls,i=t.showWeek?t.prefixCls+"-week-number":"",r=t.hasTimePicker?t.prefixCls+"-time":"",a=t.isRange?t.prefixCls+"-range":"",Ds(ci,_s,No(Be(),"",n,"-panel-container ",i," ",r," ",a,""),!0),sa(1),Us("",t.prefixCls,"-panel"),Cs("ant-picker-panel-rtl","rtl"===t.dir),sa(1),Uo("ngTemplateOutlet",e),sa(1),Uo("ngTemplateOutlet",o)}var n,i,r,a}function Bct(t,e){if(1&t){const t=Jo();Yo(0,"div"),Yo(1,"inner-popup",9),es("panelModeChange",(function(e){const n=Ne(t).partType;return os().onPanelModeChange(e,n)}))("cellHover",(function(e){return Ne(t),os().onCellHover(e)}))("selectDate",(function(e){Ne(t);const n=os();return n.changeValueFromSelect(e,!n.showTime)}))("selectTime",(function(e){const n=Ne(t).partType;return os().onSelectTime(e,n)}))("headerChange",(function(e){const n=Ne(t).partType;return os().onActiveDateChange(e,n)})),jo(),jo()}if(2&t){const t=e.partType,n=os();Us("",n.prefixCls,"-panel"),Cs("ant-picker-panel-rtl","rtl"===n.dir),sa(1),Uo("showWeek",n.showWeek)("endPanelMode",n.getPanelMode(n.endPanelMode,t))("partType",t)("locale",n.locale)("showTimePicker",n.hasTimePicker)("timeOptions",n.getTimeOptions(t))("panelMode",n.getPanelMode(n.panelMode,t))("activeDate",n.getActiveDate(t))("value",n.getValue(t))("disabledDate",n.disabledDate)("dateRender",n.dateRender)("selectedValue",null==n.datePickerService?null:n.datePickerService.value)("hoverValue",n.hoverValue)}}function Vct(t,e){if(1&t){const t=Jo();Yo(0,"calendar-footer",11),es("clickOk",(function(){return Ne(t),os(2).onClickOk()}))("clickToday",(function(e){return Ne(t),os(2).onClickToday(e)})),jo()}if(2&t){const t=os(2),e=Go(8);Uo("locale",t.locale)("isRange",t.isRange)("showToday",t.showToday)("showNow",t.showNow)("hasTimePicker",t.hasTimePicker)("okDisabled",!t.isAllowed(null==t.datePickerService?null:t.datePickerService.value))("extraFooter",t.extraFooter)("rangeQuickSelector",t.ranges?e:null)}}function Nct(t,e){1&t&&Ho(0,Vct,1,8,"calendar-footer",10),2&t&&Uo("ngIf",os().hasFooter)}function Hct(t,e){if(1&t){const t=Jo();Yo(0,"li",13),es("click",(function(){const e=Ne(t).$implicit,n=os(2);return n.onClickPresetRange(n.ranges[e])}))("mouseenter",(function(){const e=Ne(t).$implicit,n=os(2);return n.onHoverPresetRange(n.ranges[e])}))("mouseleave",(function(){return Ne(t),os(2).onPresetRangeMouseLeave()})),Yo(1,"span",14),Bs(2),jo(),jo()}if(2&t){const t=e.$implicit;Us("",os(2).prefixCls,"-preset"),sa(2),Vs(t)}}function Gct(t,e){if(1&t&&Ho(0,Hct,3,4,"li",12),2&t){const t=os();Uo("ngForOf",t.getObjectKeys(t.ranges))}}const Zct=["separatorElement"],Uct=["pickerInput"],Wct=["rangePickerInput"];function Yct(t,e){1&t&&Ko(0)}function jct(t,e){if(1&t){const t=Jo();Yo(0,"div"),Yo(1,"input",7,8),es("ngModelChange",(function(e){return Ne(t),os(2).inputValue=e}))("focus",(function(e){return Ne(t),os(2).onFocus(e)}))("focusout",(function(e){return Ne(t),os(2).onFocusout(e)}))("ngModelChange",(function(e){return Ne(t),os(2).onInputChange(e)}))("keyup.enter",(function(e){return Ne(t),os(2).onKeyupEnter(e)})),jo(),Ho(3,Yct,1,0,"ng-container",9),jo()}if(2&t){const t=os(2),e=Go(4);Us("",t.prefixCls,"-input"),sa(1),Cs("ant-input-disabled",t.nzDisabled),hs("placeholder",t.getPlaceholder()),Uo("disabled",t.nzDisabled)("readOnly",t.nzInputReadOnly)("ngModel",t.inputValue)("size",t.inputSize),Fo("id",t.nzId),sa(2),Uo("ngTemplateOutlet",e)}}function Xct(t,e){1&t&&Ko(0)}function qct(t,e){if(1&t&&(qo(0),Bs(1),$o()),2&t){const t=os(3);sa(1),Vs(t.nzSeparator)}}function $ct(t,e){1&t&&Xo(0,"i",13)}function Kct(t,e){1&t&&Ko(0)}function Jct(t,e){1&t&&Ko(0)}function Qct(t,e){if(1&t&&(qo(0),Yo(1,"div"),Ho(2,Xct,1,0,"ng-container",10),jo(),Yo(3,"div",null,11),Yo(5,"span"),Ho(6,qct,2,1,"ng-container",0),jo(),Ho(7,$ct,1,0,"ng-template",null,12,Yc),jo(),Yo(9,"div"),Ho(10,Kct,1,0,"ng-container",10),jo(),Ho(11,Jct,1,0,"ng-container",9),$o()),2&t){const t=Go(8),e=os(2),n=Go(2),i=Go(4);sa(1),Us("",e.prefixCls,"-input"),sa(1),Uo("ngTemplateOutlet",n)("ngTemplateOutletContext",gc(19,Oct)),sa(1),Us("",e.prefixCls,"-range-separator"),sa(2),Us("",e.prefixCls,"-separator"),sa(1),Uo("ngIf",e.nzSeparator)("ngIfElse",t),sa(3),Us("",e.prefixCls,"-input"),sa(1),Uo("ngTemplateOutlet",n)("ngTemplateOutletContext",gc(20,Act)),sa(1),Uo("ngTemplateOutlet",i)}}function tht(t,e){if(1&t&&(qo(0),Ho(1,jct,4,12,"div",5),Ho(2,Qct,12,21,"ng-container",6),$o()),2&t){const t=os();sa(1),Uo("ngIf",!t.isRange),sa(1),Uo("ngIf",t.isRange)}}function eht(t,e){if(1&t){const t=Jo();Yo(0,"input",14,15),es("click",(function(e){return Ne(t),os().onClickInputBox(e)}))("focusout",(function(e){return Ne(t),os().onFocusout(e)}))("focus",(function(e){const n=Ne(t).partType;return os().onFocus(e,n)}))("keyup.enter",(function(e){return Ne(t),os().onKeyupEnter(e)}))("ngModelChange",(function(e){const n=Ne(t).partType,i=os();return i.inputValue[i.datePickerService.getActiveIndex(n)]=e}))("ngModelChange",(function(e){return Ne(t),os().onInputChange(e)})),jo()}if(2&t){const t=e.partType,n=os();hs("placeholder",n.getPlaceholder(t)),Uo("disabled",n.nzDisabled)("readOnly",n.nzInputReadOnly)("size",n.inputSize)("ngModel",n.inputValue[n.datePickerService.getActiveIndex(t)]),Fo("id",n.nzId)}}function nht(t,e){if(1&t){const t=Jo();Yo(0,"span",19),es("click",(function(e){return Ne(t),os(2).onClickClear(e)})),Xo(1,"i",20),jo()}2&t&&Us("",os(2).prefixCls,"-clear")}function iht(t,e){if(1&t&&(qo(0),Xo(1,"i",21),$o()),2&t){const t=e.$implicit;sa(1),Uo("nzType",t)}}function rht(t,e){if(1&t&&(Xo(0,"div",16),Ho(1,nht,2,3,"span",17),Yo(2,"span"),Ho(3,iht,2,1,"ng-container",18),jo()),2&t){const t=os();Us("",t.prefixCls,"-active-bar"),Uo("ngStyle",t.activeBarStyle),sa(1),Uo("ngIf",t.showClear()),sa(1),Us("",t.prefixCls,"-suffix"),sa(1),Uo("nzStringTemplateOutlet",t.nzSuffixIcon)}}function aht(t,e){if(1&t){const t=Jo();Yo(0,"div",16),Yo(1,"date-range-popup",22),es("panelModeChange",(function(e){return Ne(t),os().onPanelModeChange(e)}))("calendarChange",(function(e){return Ne(t),os().onCalendarChange(e)}))("resultOk",(function(){return Ne(t),os().onResultOk()})),jo(),jo()}if(2&t){const t=os();Ws("",t.prefixCls,"-dropdown ",t.nzDropdownClassName,""),Cs("ant-picker-dropdown-rtl","rtl"===t.dir)("ant-picker-dropdown-placement-bottomLeft","bottom"===t.currentPositionY&&"start"===t.currentPositionX)("ant-picker-dropdown-placement-topLeft","top"===t.currentPositionY&&"start"===t.currentPositionX)("ant-picker-dropdown-placement-bottomRight","bottom"===t.currentPositionY&&"end"===t.currentPositionX)("ant-picker-dropdown-placement-topRight","top"===t.currentPositionY&&"end"===t.currentPositionX)("ant-picker-dropdown-range",t.isRange)("ant-picker-active-left","left"===t.datePickerService.activeInput)("ant-picker-active-right","right"===t.datePickerService.activeInput),Uo("ngStyle",t.nzPopupStyle),sa(1),Uo("isRange",t.isRange)("inline",t.nzInline)("defaultPickerValue",t.nzDefaultPickerValue)("showWeek","week"===t.nzMode)("panelMode",t.panelMode)("locale",null==t.nzLocale?null:t.nzLocale.lang)("showToday","date"===t.nzMode&&t.nzShowToday&&!t.isRange&&!t.nzShowTime)("showNow","date"===t.nzMode&&t.nzShowNow&&!t.isRange&&!!t.nzShowTime)("showTime",t.nzShowTime)("dateRender",t.nzDateRender)("disabledDate",t.nzDisabledDate)("disabledTime",t.nzDisabledTime)("extraFooter",t.extraFooter)("ranges",t.nzRanges)("dir",t.dir)}}function oht(t,e){1&t&&Ko(0)}function sht(t,e){if(1&t&&(Yo(0,"div",23),Ho(1,oht,1,0,"ng-container",9),jo()),2&t){const t=os(),e=Go(6);Uo("nzNoAnimation",!(null==t.noAnimation||!t.noAnimation.nzNoAnimation))("@slideMotion","enter"),sa(1),Uo("ngTemplateOutlet",e)}}function lht(t,e){if(1&t){const t=Jo();qo(0),Yo(1,"decade-header",4),es("valueChange",(function(e){return Ne(t),os().activeDate=e}))("panelModeChange",(function(e){return Ne(t),os().panelModeChange.emit(e)}))("valueChange",(function(e){return Ne(t),os().headerChange.emit(e)})),jo(),Yo(2,"div"),Yo(3,"decade-table",5),es("valueChange",(function(e){return Ne(t),os().onChooseDecade(e)})),jo(),jo(),$o()}if(2&t){const t=os();sa(1),Uo("value",t.activeDate)("locale",t.locale)("showSuperPreBtn",t.enablePrevNext("prev","decade"))("showSuperNextBtn",t.enablePrevNext("next","decade"))("showNextBtn",!1)("showPreBtn",!1),sa(1),Us("",t.prefixCls,"-body"),sa(1),Uo("activeDate",t.activeDate)("value",t.value)("locale",t.locale)("disabledDate",t.disabledDate)}}function cht(t,e){if(1&t){const t=Jo();qo(0),Yo(1,"year-header",4),es("valueChange",(function(e){return Ne(t),os().activeDate=e}))("panelModeChange",(function(e){return Ne(t),os().panelModeChange.emit(e)}))("valueChange",(function(e){return Ne(t),os().headerChange.emit(e)})),jo(),Yo(2,"div"),Yo(3,"year-table",6),es("valueChange",(function(e){return Ne(t),os().onChooseYear(e)}))("cellHover",(function(e){return Ne(t),os().cellHover.emit(e)})),jo(),jo(),$o()}if(2&t){const t=os();sa(1),Uo("value",t.activeDate)("locale",t.locale)("showSuperPreBtn",t.enablePrevNext("prev","year"))("showSuperNextBtn",t.enablePrevNext("next","year"))("showNextBtn",!1)("showPreBtn",!1),sa(1),Us("",t.prefixCls,"-body"),sa(1),Uo("activeDate",t.activeDate)("value",t.value)("locale",t.locale)("disabledDate",t.disabledDate)("selectedValue",t.selectedValue)("hoverValue",t.hoverValue)}}function hht(t,e){if(1&t){const t=Jo();qo(0),Yo(1,"month-header",4),es("valueChange",(function(e){return Ne(t),os().activeDate=e}))("panelModeChange",(function(e){return Ne(t),os().panelModeChange.emit(e)}))("valueChange",(function(e){return Ne(t),os().headerChange.emit(e)})),jo(),Yo(2,"div"),Yo(3,"month-table",7),es("valueChange",(function(e){return Ne(t),os().onChooseMonth(e)}))("cellHover",(function(e){return Ne(t),os().cellHover.emit(e)})),jo(),jo(),$o()}if(2&t){const t=os();sa(1),Uo("value",t.activeDate)("locale",t.locale)("showSuperPreBtn",t.enablePrevNext("prev","month"))("showSuperNextBtn",t.enablePrevNext("next","month"))("showNextBtn",!1)("showPreBtn",!1),sa(1),Us("",t.prefixCls,"-body"),sa(1),Uo("value",t.value)("activeDate",t.activeDate)("locale",t.locale)("disabledDate",t.disabledDate)("selectedValue",t.selectedValue)("hoverValue",t.hoverValue)}}function dht(t,e){if(1&t){const t=Jo();qo(0),Yo(1,"date-header",8),es("valueChange",(function(e){return Ne(t),os().activeDate=e}))("panelModeChange",(function(e){return Ne(t),os().panelModeChange.emit(e)}))("valueChange",(function(e){return Ne(t),os().headerChange.emit(e)})),jo(),Yo(2,"div"),Yo(3,"date-table",9),es("valueChange",(function(e){return Ne(t),os().onSelectDate(e)}))("cellHover",(function(e){return Ne(t),os().cellHover.emit(e)})),jo(),jo(),$o()}if(2&t){const t=os();sa(1),Uo("value",t.activeDate)("locale",t.locale)("showSuperPreBtn",t.enablePrevNext("prev",t.showWeek?"week":"date"))("showSuperNextBtn",t.enablePrevNext("next",t.showWeek?"week":"date"))("showPreBtn",t.enablePrevNext("prev",t.showWeek?"week":"date"))("showNextBtn",t.enablePrevNext("next",t.showWeek?"week":"date")),sa(1),Us("",t.prefixCls,"-body"),sa(1),Uo("locale",t.locale)("showWeek",t.showWeek)("value",t.value)("activeDate",t.activeDate)("disabledDate",t.disabledDate)("cellRender",t.dateRender)("selectedValue",t.selectedValue)("hoverValue",t.hoverValue)}}function uht(t,e){if(1&t){const t=Jo();qo(0),Yo(1,"nz-time-picker-panel",10),es("ngModelChange",(function(e){return Ne(t),os().onSelectTime(e)})),jo(),$o()}if(2&t){const t=os();sa(1),Uo("nzInDatePicker",!0)("ngModel",null==t.value?null:t.value.nativeDate)("format",t.timeOptions.nzFormat)("nzHourStep",t.timeOptions.nzHourStep)("nzMinuteStep",t.timeOptions.nzMinuteStep)("nzSecondStep",t.timeOptions.nzSecondStep)("nzDisabledHours",t.timeOptions.nzDisabledHours)("nzDisabledMinutes",t.timeOptions.nzDisabledMinutes)("nzDisabledSeconds",t.timeOptions.nzDisabledSeconds)("nzHideDisabledOptions",!!t.timeOptions.nzHideDisabledOptions)("nzDefaultOpenValue",t.timeOptions.nzDefaultOpenValue)("nzUse12Hours",!!t.timeOptions.nzUse12Hours)("nzAddOn",t.timeOptions.nzAddOn)}}function mht(t,e){if(1&t){const t=Jo();qo(0),Yo(1,"button",6),es("click",(function(){return Ne(t).$implicit.onClick()})),Bs(2),jo(),$o()}if(2&t){const t=e.$implicit;sa(1),Ps(t.className),hs("title",t.title||null),sa(1),Ns(" ",t.label," ")}}function pht(t,e){1&t&&Xo(0,"th",6)}function ght(t,e){if(1&t&&(Yo(0,"th",7),Bs(1),jo()),2&t){const t=e.$implicit;hs("title",t.title),sa(1),Ns(" ",t.content," ")}}function fht(t,e){if(1&t&&(Yo(0,"thead"),Yo(1,"tr",3),Ho(2,pht,1,0,"th",4),Ho(3,ght,2,2,"th",5),jo(),jo()),2&t){const t=os();sa(2),Uo("ngIf",t.showWeek),sa(1),Uo("ngForOf",t.headRow)}}function bht(t,e){if(1&t&&(Yo(0,"td",11),Bs(1),jo()),2&t){const t=os().$implicit;Us("",os().prefixCls,"-cell-week"),sa(1),Ns(" ",t.weekNum," ")}}function yht(t,e){1&t&&Ko(0)}const vht=function(t){return{$implicit:t}};function wht(t,e){if(1&t&&(qo(0),Ho(1,yht,1,0,"ng-container",16),$o()),2&t){const t=os(2).$implicit;sa(1),Uo("ngTemplateOutlet",t.cellRender)("ngTemplateOutletContext",fc(2,vht,t.value))}}function xht(t,e){if(1&t&&(qo(0),Xo(1,"span",17),$o()),2&t){const t=os(2).$implicit;sa(1),Uo("innerHTML",t.cellRender,Nr)}}function Cht(t,e){if(1&t&&(qo(0),Yo(1,"div"),Bs(2),jo(),$o()),2&t){const t=os(2).$implicit,e=os(2);sa(1),Us("",e.prefixCls,"-cell-inner"),Fo("aria-selected",t.isSelected)("aria-disabled",t.isDisabled),sa(1),Ns(" ",t.content," ")}}function kht(t,e){if(1&t&&(qo(0),qo(1,13),Ho(2,wht,2,4,"ng-container",14),Ho(3,xht,2,1,"ng-container",14),Ho(4,Cht,3,6,"ng-container",15),$o(),$o()),2&t){const t=os().$implicit,e=os(2);sa(1),Uo("ngSwitch",!0),sa(1),Uo("ngSwitchCase",e.isTemplateRef(t.cellRender)),sa(1),Uo("ngSwitchCase",e.isNonEmptyString(t.cellRender))}}function Sht(t,e){1&t&&Ko(0)}function Pht(t,e){if(1&t&&(qo(0),Ho(1,Sht,1,0,"ng-container",16),$o()),2&t){const t=os(2).$implicit;sa(1),Uo("ngTemplateOutlet",t.fullCellRender)("ngTemplateOutletContext",fc(2,vht,t.value))}}function _ht(t,e){1&t&&Ko(0)}function Mht(t,e){if(1&t&&(Yo(0,"div"),Bs(1),jo(),Yo(2,"div"),Ho(3,_ht,1,0,"ng-container",16),jo()),2&t){const t=os(2).$implicit,e=os(2);Us("",e.prefixCls,"-date-value"),sa(1),Vs(t.content),sa(1),Us("",e.prefixCls,"-date-content"),sa(1),Uo("ngTemplateOutlet",t.cellRender)("ngTemplateOutletContext",fc(9,vht,t.value))}}function Dht(t,e){if(1&t&&(qo(0),Yo(1,"div"),Ho(2,Pht,2,4,"ng-container",18),Ho(3,Mht,4,11,"ng-template",null,19,Yc),jo(),$o()),2&t){const t=Go(4),e=os().$implicit,n=os(2);sa(1),Us("",n.prefixCls,"-date ant-picker-cell-inner"),Cs("ant-picker-calendar-date-today",e.isToday),sa(1),Uo("ngIf",e.fullCellRender)("ngIfElse",t)}}function Eht(t,e){if(1&t){const t=Jo();Yo(0,"td",12),es("click",(function(){const e=Ne(t).$implicit;return e.isDisabled?null:e.onClick()}))("mouseenter",(function(){return Ne(t).$implicit.onMouseEnter()})),qo(1,13),Ho(2,kht,5,3,"ng-container",14),Ho(3,Dht,5,7,"ng-container",14),$o(),jo()}if(2&t){const t=e.$implicit,n=os(2);hs("title",t.title),Uo("ngClass",t.classMap),sa(1),Uo("ngSwitch",n.prefixCls),sa(1),Uo("ngSwitchCase","ant-picker"),sa(1),Uo("ngSwitchCase","ant-picker-calendar")}}function Oht(t,e){if(1&t&&(Yo(0,"tr",8),Ho(1,bht,2,4,"td",9),Ho(2,Eht,4,5,"td",10),jo()),2&t){const t=e.$implicit,n=os();Uo("ngClass",t.classMap),sa(1),Uo("ngIf",t.weekNum),sa(1),Uo("ngForOf",t.dateCells)("ngForTrackBy",n.trackByBodyColumn)}}function Aht(t,e){if(1&t){const t=Jo();qo(0),Yo(1,"button",6),es("click",(function(){return Ne(t).$implicit.onClick()})),Bs(2),jo(),$o()}if(2&t){const t=e.$implicit;sa(1),Ps(t.className),hs("title",t.title||null),sa(1),Ns(" ",t.label," ")}}function Tht(t,e){1&t&&Xo(0,"th",6)}function Iht(t,e){if(1&t&&(Yo(0,"th",7),Bs(1),jo()),2&t){const t=e.$implicit;hs("title",t.title),sa(1),Ns(" ",t.content," ")}}function Lht(t,e){if(1&t&&(Yo(0,"thead"),Yo(1,"tr",3),Ho(2,Tht,1,0,"th",4),Ho(3,Iht,2,2,"th",5),jo(),jo()),2&t){const t=os();sa(2),Uo("ngIf",t.showWeek),sa(1),Uo("ngForOf",t.headRow)}}function zht(t,e){if(1&t&&(Yo(0,"td",11),Bs(1),jo()),2&t){const t=os().$implicit;Us("",os().prefixCls,"-cell-week"),sa(1),Ns(" ",t.weekNum," ")}}function Rht(t,e){1&t&&Ko(0)}function Fht(t,e){if(1&t&&(qo(0),Ho(1,Rht,1,0,"ng-container",16),$o()),2&t){const t=os(2).$implicit;sa(1),Uo("ngTemplateOutlet",t.cellRender)("ngTemplateOutletContext",fc(2,vht,t.value))}}function Bht(t,e){if(1&t&&(qo(0),Xo(1,"span",17),$o()),2&t){const t=os(2).$implicit;sa(1),Uo("innerHTML",t.cellRender,Nr)}}function Vht(t,e){if(1&t&&(qo(0),Yo(1,"div"),Bs(2),jo(),$o()),2&t){const t=os(2).$implicit,e=os(2);sa(1),Us("",e.prefixCls,"-cell-inner"),Fo("aria-selected",t.isSelected)("aria-disabled",t.isDisabled),sa(1),Ns(" ",t.content," ")}}function Nht(t,e){if(1&t&&(qo(0),qo(1,13),Ho(2,Fht,2,4,"ng-container",14),Ho(3,Bht,2,1,"ng-container",14),Ho(4,Vht,3,6,"ng-container",15),$o(),$o()),2&t){const t=os().$implicit,e=os(2);sa(1),Uo("ngSwitch",!0),sa(1),Uo("ngSwitchCase",e.isTemplateRef(t.cellRender)),sa(1),Uo("ngSwitchCase",e.isNonEmptyString(t.cellRender))}}function Hht(t,e){1&t&&Ko(0)}function Ght(t,e){if(1&t&&(qo(0),Ho(1,Hht,1,0,"ng-container",16),$o()),2&t){const t=os(2).$implicit;sa(1),Uo("ngTemplateOutlet",t.fullCellRender)("ngTemplateOutletContext",fc(2,vht,t.value))}}function Zht(t,e){1&t&&Ko(0)}function Uht(t,e){if(1&t&&(Yo(0,"div"),Bs(1),jo(),Yo(2,"div"),Ho(3,Zht,1,0,"ng-container",16),jo()),2&t){const t=os(2).$implicit,e=os(2);Us("",e.prefixCls,"-date-value"),sa(1),Vs(t.content),sa(1),Us("",e.prefixCls,"-date-content"),sa(1),Uo("ngTemplateOutlet",t.cellRender)("ngTemplateOutletContext",fc(9,vht,t.value))}}function Wht(t,e){if(1&t&&(qo(0),Yo(1,"div"),Ho(2,Ght,2,4,"ng-container",18),Ho(3,Uht,4,11,"ng-template",null,19,Yc),jo(),$o()),2&t){const t=Go(4),e=os().$implicit,n=os(2);sa(1),Us("",n.prefixCls,"-date ant-picker-cell-inner"),Cs("ant-picker-calendar-date-today",e.isToday),sa(1),Uo("ngIf",e.fullCellRender)("ngIfElse",t)}}function Yht(t,e){if(1&t){const t=Jo();Yo(0,"td",12),es("click",(function(){const e=Ne(t).$implicit;return e.isDisabled?null:e.onClick()}))("mouseenter",(function(){return Ne(t).$implicit.onMouseEnter()})),qo(1,13),Ho(2,Nht,5,3,"ng-container",14),Ho(3,Wht,5,7,"ng-container",14),$o(),jo()}if(2&t){const t=e.$implicit,n=os(2);hs("title",t.title),Uo("ngClass",t.classMap),sa(1),Uo("ngSwitch",n.prefixCls),sa(1),Uo("ngSwitchCase","ant-picker"),sa(1),Uo("ngSwitchCase","ant-picker-calendar")}}function jht(t,e){if(1&t&&(Yo(0,"tr",8),Ho(1,zht,2,4,"td",9),Ho(2,Yht,4,5,"td",10),jo()),2&t){const t=e.$implicit,n=os();Uo("ngClass",t.classMap),sa(1),Uo("ngIf",t.weekNum),sa(1),Uo("ngForOf",t.dateCells)("ngForTrackBy",n.trackByBodyColumn)}}function Xht(t,e){if(1&t){const t=Jo();qo(0),Yo(1,"button",6),es("click",(function(){return Ne(t).$implicit.onClick()})),Bs(2),jo(),$o()}if(2&t){const t=e.$implicit;sa(1),Ps(t.className),hs("title",t.title||null),sa(1),Ns(" ",t.label," ")}}function qht(t,e){1&t&&Xo(0,"th",6)}function $ht(t,e){if(1&t&&(Yo(0,"th",7),Bs(1),jo()),2&t){const t=e.$implicit;hs("title",t.title),sa(1),Ns(" ",t.content," ")}}function Kht(t,e){if(1&t&&(Yo(0,"thead"),Yo(1,"tr",3),Ho(2,qht,1,0,"th",4),Ho(3,$ht,2,2,"th",5),jo(),jo()),2&t){const t=os();sa(2),Uo("ngIf",t.showWeek),sa(1),Uo("ngForOf",t.headRow)}}function Jht(t,e){if(1&t&&(Yo(0,"td",11),Bs(1),jo()),2&t){const t=os().$implicit;Us("",os().prefixCls,"-cell-week"),sa(1),Ns(" ",t.weekNum," ")}}function Qht(t,e){1&t&&Ko(0)}function tdt(t,e){if(1&t&&(qo(0),Ho(1,Qht,1,0,"ng-container",16),$o()),2&t){const t=os(2).$implicit;sa(1),Uo("ngTemplateOutlet",t.cellRender)("ngTemplateOutletContext",fc(2,vht,t.value))}}function edt(t,e){if(1&t&&(qo(0),Xo(1,"span",17),$o()),2&t){const t=os(2).$implicit;sa(1),Uo("innerHTML",t.cellRender,Nr)}}function ndt(t,e){if(1&t&&(qo(0),Yo(1,"div"),Bs(2),jo(),$o()),2&t){const t=os(2).$implicit,e=os(2);sa(1),Us("",e.prefixCls,"-cell-inner"),Fo("aria-selected",t.isSelected)("aria-disabled",t.isDisabled),sa(1),Ns(" ",t.content," ")}}function idt(t,e){if(1&t&&(qo(0),qo(1,13),Ho(2,tdt,2,4,"ng-container",14),Ho(3,edt,2,1,"ng-container",14),Ho(4,ndt,3,6,"ng-container",15),$o(),$o()),2&t){const t=os().$implicit,e=os(2);sa(1),Uo("ngSwitch",!0),sa(1),Uo("ngSwitchCase",e.isTemplateRef(t.cellRender)),sa(1),Uo("ngSwitchCase",e.isNonEmptyString(t.cellRender))}}function rdt(t,e){1&t&&Ko(0)}function adt(t,e){if(1&t&&(qo(0),Ho(1,rdt,1,0,"ng-container",16),$o()),2&t){const t=os(2).$implicit;sa(1),Uo("ngTemplateOutlet",t.fullCellRender)("ngTemplateOutletContext",fc(2,vht,t.value))}}function odt(t,e){1&t&&Ko(0)}function sdt(t,e){if(1&t&&(Yo(0,"div"),Bs(1),jo(),Yo(2,"div"),Ho(3,odt,1,0,"ng-container",16),jo()),2&t){const t=os(2).$implicit,e=os(2);Us("",e.prefixCls,"-date-value"),sa(1),Vs(t.content),sa(1),Us("",e.prefixCls,"-date-content"),sa(1),Uo("ngTemplateOutlet",t.cellRender)("ngTemplateOutletContext",fc(9,vht,t.value))}}function ldt(t,e){if(1&t&&(qo(0),Yo(1,"div"),Ho(2,adt,2,4,"ng-container",18),Ho(3,sdt,4,11,"ng-template",null,19,Yc),jo(),$o()),2&t){const t=Go(4),e=os().$implicit,n=os(2);sa(1),Us("",n.prefixCls,"-date ant-picker-cell-inner"),Cs("ant-picker-calendar-date-today",e.isToday),sa(1),Uo("ngIf",e.fullCellRender)("ngIfElse",t)}}function cdt(t,e){if(1&t){const t=Jo();Yo(0,"td",12),es("click",(function(){const e=Ne(t).$implicit;return e.isDisabled?null:e.onClick()}))("mouseenter",(function(){return Ne(t).$implicit.onMouseEnter()})),qo(1,13),Ho(2,idt,5,3,"ng-container",14),Ho(3,ldt,5,7,"ng-container",14),$o(),jo()}if(2&t){const t=e.$implicit,n=os(2);hs("title",t.title),Uo("ngClass",t.classMap),sa(1),Uo("ngSwitch",n.prefixCls),sa(1),Uo("ngSwitchCase","ant-picker"),sa(1),Uo("ngSwitchCase","ant-picker-calendar")}}function hdt(t,e){if(1&t&&(Yo(0,"tr",8),Ho(1,Jht,2,4,"td",9),Ho(2,cdt,4,5,"td",10),jo()),2&t){const t=e.$implicit,n=os();Uo("ngClass",t.classMap),sa(1),Uo("ngIf",t.weekNum),sa(1),Uo("ngForOf",t.dateCells)("ngForTrackBy",n.trackByBodyColumn)}}function ddt(t,e){if(1&t){const t=Jo();qo(0),Yo(1,"button",6),es("click",(function(){return Ne(t).$implicit.onClick()})),Bs(2),jo(),$o()}if(2&t){const t=e.$implicit;sa(1),Ps(t.className),hs("title",t.title||null),sa(1),Ns(" ",t.label," ")}}function udt(t,e){1&t&&Xo(0,"th",6)}function mdt(t,e){if(1&t&&(Yo(0,"th",7),Bs(1),jo()),2&t){const t=e.$implicit;hs("title",t.title),sa(1),Ns(" ",t.content," ")}}function pdt(t,e){if(1&t&&(Yo(0,"thead"),Yo(1,"tr",3),Ho(2,udt,1,0,"th",4),Ho(3,mdt,2,2,"th",5),jo(),jo()),2&t){const t=os();sa(2),Uo("ngIf",t.showWeek),sa(1),Uo("ngForOf",t.headRow)}}function gdt(t,e){if(1&t&&(Yo(0,"td",11),Bs(1),jo()),2&t){const t=os().$implicit;Us("",os().prefixCls,"-cell-week"),sa(1),Ns(" ",t.weekNum," ")}}function fdt(t,e){1&t&&Ko(0)}function bdt(t,e){if(1&t&&(qo(0),Ho(1,fdt,1,0,"ng-container",16),$o()),2&t){const t=os(2).$implicit;sa(1),Uo("ngTemplateOutlet",t.cellRender)("ngTemplateOutletContext",fc(2,vht,t.value))}}function ydt(t,e){if(1&t&&(qo(0),Xo(1,"span",17),$o()),2&t){const t=os(2).$implicit;sa(1),Uo("innerHTML",t.cellRender,Nr)}}function vdt(t,e){if(1&t&&(qo(0),Yo(1,"div"),Bs(2),jo(),$o()),2&t){const t=os(2).$implicit,e=os(2);sa(1),Us("",e.prefixCls,"-cell-inner"),Fo("aria-selected",t.isSelected)("aria-disabled",t.isDisabled),sa(1),Ns(" ",t.content," ")}}function wdt(t,e){if(1&t&&(qo(0),qo(1,13),Ho(2,bdt,2,4,"ng-container",14),Ho(3,ydt,2,1,"ng-container",14),Ho(4,vdt,3,6,"ng-container",15),$o(),$o()),2&t){const t=os().$implicit,e=os(2);sa(1),Uo("ngSwitch",!0),sa(1),Uo("ngSwitchCase",e.isTemplateRef(t.cellRender)),sa(1),Uo("ngSwitchCase",e.isNonEmptyString(t.cellRender))}}function xdt(t,e){1&t&&Ko(0)}function Cdt(t,e){if(1&t&&(qo(0),Ho(1,xdt,1,0,"ng-container",16),$o()),2&t){const t=os(2).$implicit;sa(1),Uo("ngTemplateOutlet",t.fullCellRender)("ngTemplateOutletContext",fc(2,vht,t.value))}}function kdt(t,e){1&t&&Ko(0)}function Sdt(t,e){if(1&t&&(Yo(0,"div"),Bs(1),jo(),Yo(2,"div"),Ho(3,kdt,1,0,"ng-container",16),jo()),2&t){const t=os(2).$implicit,e=os(2);Us("",e.prefixCls,"-date-value"),sa(1),Vs(t.content),sa(1),Us("",e.prefixCls,"-date-content"),sa(1),Uo("ngTemplateOutlet",t.cellRender)("ngTemplateOutletContext",fc(9,vht,t.value))}}function Pdt(t,e){if(1&t&&(qo(0),Yo(1,"div"),Ho(2,Cdt,2,4,"ng-container",18),Ho(3,Sdt,4,11,"ng-template",null,19,Yc),jo(),$o()),2&t){const t=Go(4),e=os().$implicit,n=os(2);sa(1),Us("",n.prefixCls,"-date ant-picker-cell-inner"),Cs("ant-picker-calendar-date-today",e.isToday),sa(1),Uo("ngIf",e.fullCellRender)("ngIfElse",t)}}function _dt(t,e){if(1&t){const t=Jo();Yo(0,"td",12),es("click",(function(){const e=Ne(t).$implicit;return e.isDisabled?null:e.onClick()}))("mouseenter",(function(){return Ne(t).$implicit.onMouseEnter()})),qo(1,13),Ho(2,wdt,5,3,"ng-container",14),Ho(3,Pdt,5,7,"ng-container",14),$o(),jo()}if(2&t){const t=e.$implicit,n=os(2);hs("title",t.title),Uo("ngClass",t.classMap),sa(1),Uo("ngSwitch",n.prefixCls),sa(1),Uo("ngSwitchCase","ant-picker"),sa(1),Uo("ngSwitchCase","ant-picker-calendar")}}function Mdt(t,e){if(1&t&&(Yo(0,"tr",8),Ho(1,gdt,2,4,"td",9),Ho(2,_dt,4,5,"td",10),jo()),2&t){const t=e.$implicit,n=os();Uo("ngClass",t.classMap),sa(1),Uo("ngIf",t.weekNum),sa(1),Uo("ngForOf",t.dateCells)("ngForTrackBy",n.trackByBodyColumn)}}const Ddt="ant-picker",Edt={nzDisabledHours:()=>[],nzDisabledMinutes:()=>[],nzDisabledSeconds:()=>[]};function Odt(t,e){let n=e?e(t&&t.nativeDate):{};return n=Object.assign(Object.assign({},Edt),n),n}function Adt(t,e,n){return!(!t||e&&e(t.nativeDate)||n&&(i=t,r=n,!function(t,e){let n=!1;if(t){const i=t.getHours(),r=t.getMinutes(),a=t.getSeconds();n=-1!==e.nzDisabledHours().indexOf(i)||-1!==e.nzDisabledMinutes(i).indexOf(r)||-1!==e.nzDisabledSeconds(i,r).indexOf(a)}return!n}(i,Odt(i,r))));var i,r}function Tdt(t){return t&&t.replace(/Y/g,"y").replace(/D/g,"d")}let Idt=(()=>{class t{constructor(t){this.dateHelper=t,this.showToday=!1,this.showNow=!1,this.hasTimePicker=!1,this.isRange=!1,this.okDisabled=!1,this.rangeQuickSelector=null,this.clickOk=new Dc,this.clickToday=new Dc,this.prefixCls=Ddt,this.isTemplateRef=ox,this.isNonEmptyString=ax,this.isTodayDisabled=!1,this.todayTitle=""}ngOnChanges(t){const e=new Date;if(t.disabledDate&&(this.isTodayDisabled=!(!this.disabledDate||!this.disabledDate(e))),t.locale){const t=Tdt(this.locale.dateFormat);this.todayTitle=this.dateHelper.format(e,t)}}onClickToday(){const t=new xx;this.clickToday.emit(t.clone())}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Ix))},t["ɵcmp"]=qt({type:t,selectors:[["calendar-footer"]],inputs:{showToday:"showToday",showNow:"showNow",hasTimePicker:"hasTimePicker",isRange:"isRange",okDisabled:"okDisabled",rangeQuickSelector:"rangeQuickSelector",locale:"locale",disabledDate:"disabledDate",extraFooter:"extraFooter"},outputs:{clickOk:"clickOk",clickToday:"clickToday"},exportAs:["calendarFooter"],features:[pe],decls:4,vars:6,consts:[[3,"class",4,"ngIf"],["role","button",3,"class","title","click",4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngTemplateOutlet"],[3,"innerHTML"],["role","button",3,"title","click"],[3,"click"],["nz-button","","type","button","nzType","primary","nzSize","small",3,"disabled","click"]],template:function(t,e){1&t&&(Yo(0,"div"),Ho(1,vct,4,6,"div",0),Ho(2,wct,2,6,"a",1),Ho(3,Sct,4,6,"ul",0),jo()),2&t&&(Us("",e.prefixCls,"-footer"),sa(1),Uo("ngIf",e.extraFooter),sa(1),Uo("ngIf",e.showToday),sa(1),Uo("ngIf",e.hasTimePicker||e.rangeQuickSelector))},directives:[Yd,$d,Kd,tu,bM,uM,sM],encapsulation:2,changeDetection:0}),t})(),Ldt=(()=>{class t{constructor(){this.activeInput="left",this.arrowLeft=0,this.isRange=!1,this.valueChange$=new $u(1),this.emitValue$=new A,this.inputPartChange$=new A}initValue(t=!1){t&&(this.initialValue=this.isRange?[]:null),this.setValue(this.initialValue)}hasValue(t=this.value){return Array.isArray(t)?!!t[0]||!!t[1]:!!t}makeValue(t){return this.isRange?t?t.map((t=>new xx(t))):[]:t?new xx(t):null}setActiveDate(t,e=!1,n="month"){this.activeDate=this.isRange?function(t,e,n="month",i="left"){const[r,a]=t;let o=r||new xx,s=a||(e?o:o.add(1,n));return r&&!a?(o=r,s=e?r:r.add(1,n)):!r&&a?(o=e?a:a.add(-1,n),s=a):r&&a&&!e&&(r.isSame(a,n)||"left"===i?s=o.add(1,n):o=s.add(-1,n)),[o,s]}(t,e,{date:"month",month:"year",year:"decade"}[n],this.activeInput):vx(t)}setValue(t){this.value=t,this.valueChange$.next(this.value)}getActiveIndex(t=this.activeInput){return{left:0,right:1}[t]}ngOnDestroy(){this.valueChange$.complete(),this.emitValue$.complete(),this.inputPartChange$.complete()}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵprov"]=vt({token:t,factory:t["ɵfac"]}),t})(),zdt=(()=>{class t{constructor(t,e,n,i){this.datePickerService=t,this.cdr=e,this.ngZone=n,this.host=i,this.inline=!1,this.dir="ltr",this.panelModeChange=new Dc,this.calendarChange=new Dc,this.resultOk=new Dc,this.prefixCls=Ddt,this.endPanelMode="date",this.timeOptions=null,this.hoverValue=[],this.checkedPartArr=[!1,!1],this.destroy$=new A,this.disabledStartTime=t=>this.disabledTime&&this.disabledTime(t,"start"),this.disabledEndTime=t=>this.disabledTime&&this.disabledTime(t,"end")}get hasTimePicker(){return!!this.showTime}get hasFooter(){return this.showToday||this.hasTimePicker||!!this.extraFooter||!!this.ranges}ngOnInit(){J(this.datePickerService.valueChange$,this.datePickerService.inputPartChange$).pipe(aC(this.destroy$)).subscribe((()=>{this.updateActiveDate(),this.cdr.markForCheck()})),this.ngZone.runOutsideAngular((()=>{Nx(this.host.nativeElement,"mousedown").pipe(aC(this.destroy$)).subscribe((t=>t.preventDefault()))}))}ngOnChanges(t){(t.showTime||t.disabledTime)&&this.showTime&&this.buildTimeOptions(),t.panelMode&&(this.endPanelMode=this.panelMode),t.defaultPickerValue&&this.updateActiveDate()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}updateActiveDate(){const t=this.datePickerService.hasValue()?this.datePickerService.value:this.datePickerService.makeValue(this.defaultPickerValue);this.datePickerService.setActiveDate(t,this.hasTimePicker,this.getPanelMode(this.endPanelMode))}onClickOk(){this.changeValueFromSelect(this.isRange?this.datePickerService.value[{left:0,right:1}[this.datePickerService.activeInput]]:this.datePickerService.value),this.resultOk.emit()}onClickToday(t){this.changeValueFromSelect(t,!this.showTime)}onCellHover(t){if(!this.isRange)return;const e=this.datePickerService.value[{left:1,right:0}[this.datePickerService.activeInput]];e&&(this.hoverValue=e.isBeforeDay(t)?[e,t]:[t,e])}onPanelModeChange(t,e){this.panelMode=this.isRange?0===this.datePickerService.getActiveIndex(e)?[t,this.panelMode[1]]:[this.panelMode[0],t]:t,this.panelModeChange.emit(this.panelMode)}onActiveDateChange(t,e){if(this.isRange){const n=[];n[this.datePickerService.getActiveIndex(e)]=t,this.datePickerService.setActiveDate(n,this.hasTimePicker,this.getPanelMode(this.endPanelMode,e))}else this.datePickerService.setActiveDate(t)}onSelectTime(t,e){if(this.isRange){const n=vx(this.datePickerService.value),i=this.datePickerService.getActiveIndex(e);n[i]=this.overrideHms(t,n[i]),this.datePickerService.setValue(n)}else{const e=this.overrideHms(t,this.datePickerService.value);this.datePickerService.setValue(e)}this.datePickerService.inputPartChange$.next(),this.buildTimeOptions()}changeValueFromSelect(t,e=!0){if(this.isRange){const n=vx(this.datePickerService.value),i=this.datePickerService.activeInput;let r=i;n[this.datePickerService.getActiveIndex(i)]=t,this.checkedPartArr[this.datePickerService.getActiveIndex(i)]=!0,this.hoverValue=n,e?this.inline?(r=this.reversedPart(i),"right"===r&&(n[this.datePickerService.getActiveIndex(r)]=null,this.checkedPartArr[this.datePickerService.getActiveIndex(r)]=!1),this.datePickerService.setValue(n),this.calendarChange.emit(n),this.isBothAllowed(n)&&this.checkedPartArr[0]&&this.checkedPartArr[1]&&(this.clearHoverValue(),this.datePickerService.emitValue$.next())):(yx(n)&&(r=this.reversedPart(i),n[this.datePickerService.getActiveIndex(r)]=null,this.checkedPartArr[this.datePickerService.getActiveIndex(r)]=!1),this.datePickerService.setValue(n),this.isBothAllowed(n)&&this.checkedPartArr[0]&&this.checkedPartArr[1]?(this.calendarChange.emit(n),this.clearHoverValue(),this.datePickerService.emitValue$.next()):this.isAllowed(n)&&(r=this.reversedPart(i),this.calendarChange.emit([t.clone()]))):this.datePickerService.setValue(n),this.datePickerService.inputPartChange$.next(r)}else this.datePickerService.setValue(t),this.datePickerService.inputPartChange$.next(),e&&this.isAllowed(t)&&this.datePickerService.emitValue$.next()}reversedPart(t){return"left"===t?"right":"left"}getPanelMode(t,e){return this.isRange?t[this.datePickerService.getActiveIndex(e)]:t}getValue(t){return this.isRange?(this.datePickerService.value||[])[this.datePickerService.getActiveIndex(t)]:this.datePickerService.value}getActiveDate(t){return this.isRange?this.datePickerService.activeDate[this.datePickerService.getActiveIndex(t)]:this.datePickerService.activeDate}isOneAllowed(t){const e=this.datePickerService.getActiveIndex();return Adt(t[e],this.disabledDate,[this.disabledStartTime,this.disabledEndTime][e])}isBothAllowed(t){return Adt(t[0],this.disabledDate,this.disabledStartTime)&&Adt(t[1],this.disabledDate,this.disabledEndTime)}isAllowed(t,e=!1){return this.isRange?e?this.isBothAllowed(t):this.isOneAllowed(t):Adt(t,this.disabledDate,this.disabledTime)}getTimeOptions(t){return this.showTime&&this.timeOptions?this.timeOptions instanceof Array?this.timeOptions[this.datePickerService.getActiveIndex(t)]:this.timeOptions:null}onClickPresetRange(t){const e="function"==typeof t?t():t;e&&(this.datePickerService.setValue([new xx(e[0]),new xx(e[1])]),this.datePickerService.emitValue$.next())}onPresetRangeMouseLeave(){this.clearHoverValue()}onHoverPresetRange(t){"function"!=typeof t&&(this.hoverValue=[new xx(t[0]),new xx(t[1])])}getObjectKeys(t){return t?Object.keys(t):[]}show(t){return!(this.showTime&&this.isRange&&this.datePickerService.activeInput!==t)}clearHoverValue(){this.hoverValue=[]}buildTimeOptions(){if(this.showTime){const t="object"==typeof this.showTime?this.showTime:{};if(this.isRange){const e=this.datePickerService.value;this.timeOptions=[this.overrideTimeOptions(t,e[0],"start"),this.overrideTimeOptions(t,e[1],"end")]}else this.timeOptions=this.overrideTimeOptions(t,this.datePickerService.value)}else this.timeOptions=null}overrideTimeOptions(t,e,n){let i;return i=n?"start"===n?this.disabledStartTime:this.disabledEndTime:this.disabledTime,Object.assign(Object.assign({},t),Odt(e,i))}overrideHms(t,e){return t=t||new xx,(e=e||new xx).setHms(t.getHours(),t.getMinutes(),t.getSeconds())}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Ldt),Zo(Gl),Zo(ph),Zo(bl))},t["ɵcmp"]=qt({type:t,selectors:[["date-range-popup"]],inputs:{inline:"inline",dir:"dir",panelMode:"panelMode",isRange:"isRange",showWeek:"showWeek",locale:"locale",disabledDate:"disabledDate",disabledTime:"disabledTime",showToday:"showToday",showNow:"showNow",showTime:"showTime",extraFooter:"extraFooter",ranges:"ranges",dateRender:"dateRender",defaultPickerValue:"defaultPickerValue"},outputs:{panelModeChange:"panelModeChange",calendarChange:"calendarChange",resultOk:"resultOk"},exportAs:["dateRangePopup"],features:[pe],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["singlePanel",""],["tplInnerPopup",""],["tplFooter",""],["tplRangeQuickSelector",""],["noTimePicker",""],[4,"ngTemplateOutlet"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["tabindex","-1"],[3,"showWeek","endPanelMode","partType","locale","showTimePicker","timeOptions","panelMode","activeDate","value","disabledDate","dateRender","selectedValue","hoverValue","panelModeChange","cellHover","selectDate","selectTime","headerChange"],[3,"locale","isRange","showToday","showNow","hasTimePicker","okDisabled","extraFooter","rangeQuickSelector","clickOk","clickToday",4,"ngIf"],[3,"locale","isRange","showToday","showNow","hasTimePicker","okDisabled","extraFooter","rangeQuickSelector","clickOk","clickToday"],[3,"class","click","mouseenter","mouseleave",4,"ngFor","ngForOf"],[3,"click","mouseenter","mouseleave"],[1,"ant-tag","ant-tag-blue"]],template:function(t,e){if(1&t&&(Ho(0,Lct,9,18,"ng-container",0),Ho(1,Fct,4,13,"ng-template",null,1,Yc),Ho(3,Bct,2,18,"ng-template",null,2,Yc),Ho(5,Nct,1,1,"ng-template",null,3,Yc),Ho(7,Gct,1,1,"ng-template",null,4,Yc)),2&t){const t=Go(2);Uo("ngIf",e.isRange)("ngIfElse",t)}},directives:function(){return[Yd,tu,Bdt,Idt,Ud]},encapsulation:2,changeDetection:0}),t})();const Rdt={position:"relative"};let Fdt=(()=>{class t{constructor(t,e,n,i,r,a,o,s,l,c,h,d){this.nzConfigService=t,this.datePickerService=e,this.i18n=n,this.cdr=i,this.renderer=r,this.elementRef=a,this.dateHelper=o,this.nzResizeObserver=s,this.platform=l,this.directionality=h,this.noAnimation=d,this._nzModuleName="datePicker",this.isRange=!1,this.dir="ltr",this.panelMode="date",this.destroyed$=new A,this.isCustomPlaceHolder=!1,this.isCustomFormat=!1,this.showTime=!1,this.nzAllowClear=!0,this.nzAutoFocus=!1,this.nzDisabled=!1,this.nzBorderless=!1,this.nzInputReadOnly=!1,this.nzInline=!1,this.nzPlaceHolder="",this.nzPopupStyle=Rdt,this.nzSize="default",this.nzShowToday=!0,this.nzMode="date",this.nzShowNow=!0,this.nzDefaultPickerValue=null,this.nzSeparator=void 0,this.nzSuffixIcon="calendar",this.nzBackdrop=!1,this.nzId=null,this.nzOnPanelChange=new Dc,this.nzOnCalendarChange=new Dc,this.nzOnOk=new Dc,this.nzOnOpenChange=new Dc,this.inputSize=12,this.prefixCls=Ddt,this.activeBarStyle={},this.overlayOpen=!1,this.overlayPositions=[{offsetY:2,originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{offsetY:-2,originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{offsetY:2,originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{offsetY:-2,originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}],this.currentPositionX="start",this.currentPositionY="bottom",this.onChangeFn=()=>{},this.onTouchedFn=()=>{},this.document=c,this.origin=new Lk(this.elementRef)}get nzShowTime(){return this.showTime}set nzShowTime(t){this.showTime="object"==typeof t?t:sx(t)}get realOpenState(){return this.isOpenHandledByUser()?!!this.nzOpen:this.overlayOpen}ngAfterViewInit(){this.nzAutoFocus&&this.focus(),this.isRange&&this.platform.isBrowser&&this.nzResizeObserver.observe(this.elementRef).pipe(aC(this.destroyed$)).subscribe((()=>{this.updateInputWidthAndArrowLeft()})),this.datePickerService.inputPartChange$.pipe(aC(this.destroyed$)).subscribe((t=>{t&&(this.datePickerService.activeInput=t),this.focus(),this.updateInputWidthAndArrowLeft()}))}updateInputWidthAndArrowLeft(){var t,e,n;this.inputWidth=(null===(e=null===(t=this.rangePickerInputs)||void 0===t?void 0:t.first)||void 0===e?void 0:e.nativeElement.offsetWidth)||0;const i={position:"absolute",width:this.inputWidth+"px"};this.datePickerService.arrowLeft="left"===this.datePickerService.activeInput?0:this.inputWidth+(null===(n=this.separatorElement)||void 0===n?void 0:n.nativeElement.offsetWidth)||0,this.activeBarStyle=Object.assign(Object.assign({},i),"rtl"===this.dir?{right:this.datePickerService.arrowLeft+"px"}:{left:this.datePickerService.arrowLeft+"px"}),this.cdr.markForCheck()}getInput(t){var e,n;if(!this.nzInline)return this.isRange?"left"===t?null===(e=this.rangePickerInputs)||void 0===e?void 0:e.first.nativeElement:null===(n=this.rangePickerInputs)||void 0===n?void 0:n.last.nativeElement:this.pickerInput.nativeElement}focus(){const t=this.getInput(this.datePickerService.activeInput);this.document.activeElement!==t&&(null==t||t.focus())}onFocus(t,e){t.preventDefault(),e&&this.datePickerService.inputPartChange$.next(e),this.renderClass(!0)}onFocusout(t){t.preventDefault(),this.elementRef.nativeElement.contains(t.relatedTarget)||this.checkAndClose(),this.renderClass(!1)}open(){this.nzInline||!this.realOpenState&&!this.nzDisabled&&(this.updateInputWidthAndArrowLeft(),this.overlayOpen=!0,this.nzOnOpenChange.emit(!0),this.cdr.markForCheck())}close(){this.nzInline||this.realOpenState&&(this.overlayOpen=!1,this.nzOnOpenChange.emit(!1))}showClear(){return!this.nzDisabled&&!this.isEmptyValue(this.datePickerService.value)&&this.nzAllowClear}checkAndClose(){if(this.realOpenState)if(this.panel.isAllowed(this.datePickerService.value,!0)){if(Array.isArray(this.datePickerService.value)&&yx(this.datePickerService.value)){const t=this.datePickerService.getActiveIndex();return void this.panel.changeValueFromSelect(this.datePickerService.value[t],!0)}this.updateInputValue(),this.datePickerService.emitValue$.next()}else this.datePickerService.setValue(this.datePickerService.initialValue),this.close()}onClickInputBox(t){t.stopPropagation(),this.focus(),this.isOpenHandledByUser()||this.open()}onOverlayKeydown(t){27===t.keyCode&&this.datePickerService.initValue()}onPositionChange(t){this.currentPositionX=t.connectionPair.originX,this.currentPositionY=t.connectionPair.originY,this.cdr.detectChanges()}onClickClear(t){t.preventDefault(),t.stopPropagation(),this.datePickerService.initValue(!0),this.datePickerService.emitValue$.next()}updateInputValue(){const t=this.datePickerService.value;this.inputValue=this.isRange?t?t.map((t=>this.formatValue(t))):["",""]:this.formatValue(t),this.cdr.markForCheck()}formatValue(t){return this.dateHelper.format(t&&t.nativeDate,this.nzFormat)}onInputChange(t,e=!1){if(!this.platform.TRIDENT&&this.document.activeElement===this.getInput(this.datePickerService.activeInput)&&!this.realOpenState)return void this.open();const n=this.checkValidDate(t);n&&this.realOpenState&&this.panel.changeValueFromSelect(n,e)}onKeyupEnter(t){this.onInputChange(t.target.value,!0)}checkValidDate(t){const e=new xx(this.dateHelper.parseDate(t,this.nzFormat));return e.isValid()&&t===this.dateHelper.format(e.nativeDate,this.nzFormat)?e:null}getPlaceholder(t){return this.isRange?this.nzPlaceHolder[this.datePickerService.getActiveIndex(t)]:this.nzPlaceHolder}isEmptyValue(t){return null===t||(this.isRange?!t||!Array.isArray(t)||t.every((t=>!t)):!t)}isOpenHandledByUser(){return void 0!==this.nzOpen}ngOnInit(){var t;this.nzLocale||this.i18n.localeChange.pipe(aC(this.destroyed$)).subscribe((()=>this.setLocale())),this.datePickerService.isRange=this.isRange,this.datePickerService.initValue(!0),this.datePickerService.emitValue$.pipe(aC(this.destroyed$)).subscribe((t=>{var e,n,i,r;const a=this.datePickerService.value;if(this.datePickerService.initialValue=vx(a),this.isRange){const t=a;this.onChangeFn(t.length?[null!==(n=null===(e=t[0])||void 0===e?void 0:e.nativeDate)&&void 0!==n?n:null,null!==(r=null===(i=t[1])||void 0===i?void 0:i.nativeDate)&&void 0!==r?r:null]:[])}else this.onChangeFn(a?a.nativeDate:null);this.onTouchedFn(),this.close()})),null===(t=this.directionality.change)||void 0===t||t.pipe(aC(this.destroyed$)).subscribe((t=>{this.dir=t,this.cdr.detectChanges()})),this.dir=this.directionality.value,this.inputValue=this.isRange?["",""]:"",this.setModeAndFormat(),this.datePickerService.valueChange$.pipe(aC(this.destroyed$)).subscribe((()=>{this.updateInputValue()}))}ngOnChanges(t){var e,n;t.nzPopupStyle&&(this.nzPopupStyle=this.nzPopupStyle?Object.assign(Object.assign({},this.nzPopupStyle),Rdt):Rdt),(null===(e=t.nzPlaceHolder)||void 0===e?void 0:e.currentValue)&&(this.isCustomPlaceHolder=!0),(null===(n=t.nzFormat)||void 0===n?void 0:n.currentValue)&&(this.isCustomFormat=!0),t.nzLocale&&this.setDefaultPlaceHolder(),t.nzRenderExtraFooter&&(this.extraFooter=lx(this.nzRenderExtraFooter)),t.nzMode&&(this.setDefaultPlaceHolder(),this.setModeAndFormat())}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}setModeAndFormat(){const t={year:"yyyy",month:"yyyy-MM",week:this.i18n.getDateLocale()?"RRRR-II":"yyyy-ww",date:this.nzShowTime?"yyyy-MM-dd HH:mm:ss":"yyyy-MM-dd"};this.nzMode||(this.nzMode="date"),this.panelMode=this.isRange?[this.nzMode,this.nzMode]:this.nzMode,this.isCustomFormat||(this.nzFormat=t[this.nzMode]),this.inputSize=Math.max(10,this.nzFormat.length)+2,this.updateInputValue()}onOpenChange(t){this.nzOnOpenChange.emit(t)}writeValue(t){this.setValue(t),this.cdr.markForCheck()}registerOnChange(t){this.onChangeFn=t}registerOnTouched(t){this.onTouchedFn=t}setDisabledState(t){this.nzDisabled=t,this.cdr.markForCheck()}setLocale(){this.nzLocale=this.i18n.getLocaleData("DatePicker",{}),this.setDefaultPlaceHolder(),this.cdr.markForCheck()}setDefaultPlaceHolder(){if(!this.isCustomPlaceHolder&&this.nzLocale){const t={year:this.getPropertyOfLocale("yearPlaceholder"),month:this.getPropertyOfLocale("monthPlaceholder"),week:this.getPropertyOfLocale("weekPlaceholder"),date:this.getPropertyOfLocale("placeholder")},e={year:this.getPropertyOfLocale("rangeYearPlaceholder"),month:this.getPropertyOfLocale("rangeMonthPlaceholder"),week:this.getPropertyOfLocale("rangeWeekPlaceholder"),date:this.getPropertyOfLocale("rangePlaceholder")};this.nzPlaceHolder=this.isRange?e[this.nzMode]:t[this.nzMode]}}getPropertyOfLocale(t){return this.nzLocale.lang[t]||this.i18n.getLocaleData("DatePicker.lang."+t)}setValue(t){const e=this.datePickerService.makeValue(t);this.datePickerService.setValue(e),this.datePickerService.initialValue=e}renderClass(t){t?this.renderer.addClass(this.elementRef.nativeElement,"ant-picker-focused"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-picker-focused")}onPanelModeChange(t){this.nzOnPanelChange.emit(t)}onCalendarChange(t){if(this.isRange&&Array.isArray(t)){const e=t.filter((t=>t instanceof xx)).map((t=>t.nativeDate));this.nzOnCalendarChange.emit(e)}}onResultOk(){var t,e;if(this.isRange){const n=this.datePickerService.value;this.nzOnOk.emit(n.length?[(null===(t=n[0])||void 0===t?void 0:t.nativeDate)||null,(null===(e=n[1])||void 0===e?void 0:e.nativeDate)||null]:[])}else this.nzOnOk.emit(this.datePickerService.value?this.datePickerService.value.nativeDate:null)}}return t["ɵfac"]=function(e){return new(e||t)(Zo(ZS),Zo(Ldt),Zo(Mx),Zo(Gl),Zo(wl),Zo(bl),Zo(Ix),Zo(nz),Zo(bC),Zo(Hh),Zo(Fx,8),Zo(Gk,9))},t["ɵcmp"]=qt({type:t,selectors:[["nz-date-picker"],["nz-week-picker"],["nz-month-picker"],["nz-year-picker"],["nz-range-picker"]],viewQuery:function(t,e){if(1&t&&(Nc(zk,5),Nc(zdt,5),Nc(Zct,5),Nc(Uct,5),Nc(Wct,5)),2&t){let t;Vc(t=Gc())&&(e.cdkConnectedOverlay=t.first),Vc(t=Gc())&&(e.panel=t.first),Vc(t=Gc())&&(e.separatorElement=t.first),Vc(t=Gc())&&(e.pickerInput=t.first),Vc(t=Gc())&&(e.rangePickerInputs=t)}},hostVars:16,hostBindings:function(t,e){1&t&&es("click",(function(t){return e.onClickInputBox(t)})),2&t&&Cs("ant-picker",!0)("ant-picker-range",e.isRange)("ant-picker-large","large"===e.nzSize)("ant-picker-small","small"===e.nzSize)("ant-picker-disabled",e.nzDisabled)("ant-picker-rtl","rtl"===e.dir)("ant-picker-borderless",e.nzBorderless)("ant-picker-inline",e.nzInline)},inputs:{nzAllowClear:"nzAllowClear",nzAutoFocus:"nzAutoFocus",nzDisabled:"nzDisabled",nzBorderless:"nzBorderless",nzInputReadOnly:"nzInputReadOnly",nzInline:"nzInline",nzPlaceHolder:"nzPlaceHolder",nzPopupStyle:"nzPopupStyle",nzSize:"nzSize",nzShowToday:"nzShowToday",nzMode:"nzMode",nzShowNow:"nzShowNow",nzDefaultPickerValue:"nzDefaultPickerValue",nzSeparator:"nzSeparator",nzSuffixIcon:"nzSuffixIcon",nzBackdrop:"nzBackdrop",nzId:"nzId",nzShowTime:"nzShowTime",nzFormat:"nzFormat",nzLocale:"nzLocale",nzOpen:"nzOpen",nzDisabledDate:"nzDisabledDate",nzDropdownClassName:"nzDropdownClassName",nzDateRender:"nzDateRender",nzDisabledTime:"nzDisabledTime",nzRenderExtraFooter:"nzRenderExtraFooter",nzRanges:"nzRanges"},outputs:{nzOnPanelChange:"nzOnPanelChange",nzOnCalendarChange:"nzOnCalendarChange",nzOnOk:"nzOnOk",nzOnOpenChange:"nzOnOpenChange"},exportAs:["nzDatePicker"],features:[hl([Ldt,{provide:Km,multi:!0,useExisting:ut((()=>t))}]),pe],decls:8,vars:7,consts:[[4,"ngIf","ngIfElse"],["tplRangeInput",""],["tplRightRest",""],["inlineMode",""],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayTransformOriginOn","positionChange","detach","overlayKeydown"],[3,"class",4,"ngIf"],[4,"ngIf"],["autocomplete","off",3,"disabled","readOnly","ngModel","placeholder","size","ngModelChange","focus","focusout","keyup.enter"],["pickerInput",""],[4,"ngTemplateOutlet"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["separatorElement",""],["defaultSeparator",""],["nz-icon","","nzType","swap-right","nzTheme","outline"],["autocomplete","off",3,"disabled","readOnly","size","ngModel","placeholder","click","focusout","focus","keyup.enter","ngModelChange"],["rangePickerInput",""],[3,"ngStyle"],[3,"class","click",4,"ngIf"],[4,"nzStringTemplateOutlet"],[3,"click"],["nz-icon","","nzType","close-circle","nzTheme","fill"],["nz-icon","",3,"nzType"],[3,"isRange","inline","defaultPickerValue","showWeek","panelMode","locale","showToday","showNow","showTime","dateRender","disabledDate","disabledTime","extraFooter","ranges","dir","panelModeChange","calendarChange","resultOk"],[1,"ant-picker-wrapper",2,"position","relative",3,"nzNoAnimation"]],template:function(t,e){if(1&t&&(Ho(0,tht,3,2,"ng-container",0),Ho(1,eht,2,6,"ng-template",null,1,Yc),Ho(3,rht,4,9,"ng-template",null,2,Yc),Ho(5,aht,2,36,"ng-template",null,3,Yc),Ho(7,sht,2,3,"ng-template",4),es("positionChange",(function(t){return e.onPositionChange(t)}))("detach",(function(){return e.close()}))("overlayKeydown",(function(t){return e.onOverlayKeydown(t)}))),2&t){const t=Go(6);Uo("ngIf",!e.nzInline)("ngIfElse",t),sa(7),Uo("cdkConnectedOverlayHasBackdrop",e.nzBackdrop)("cdkConnectedOverlayOrigin",e.origin)("cdkConnectedOverlayOpen",e.realOpenState)("cdkConnectedOverlayPositions",e.overlayPositions)("cdkConnectedOverlayTransformOriginOn",".ant-picker-wrapper")}},directives:[Yd,zk,zM,np,xp,Np,tu,eP,sM,Qd,Uk,zdt,Bx,Gk],encapsulation:2,data:{animation:[P_]},changeDetection:0}),Bk([hx()],t.prototype,"nzAllowClear",void 0),Bk([hx()],t.prototype,"nzAutoFocus",void 0),Bk([hx()],t.prototype,"nzDisabled",void 0),Bk([hx()],t.prototype,"nzBorderless",void 0),Bk([hx()],t.prototype,"nzInputReadOnly",void 0),Bk([hx()],t.prototype,"nzInline",void 0),Bk([hx()],t.prototype,"nzOpen",void 0),Bk([hx()],t.prototype,"nzShowToday",void 0),Bk([hx()],t.prototype,"nzShowNow",void 0),Bk([US()],t.prototype,"nzSeparator",void 0),Bk([US()],t.prototype,"nzSuffixIcon",void 0),Bk([US()],t.prototype,"nzBackdrop",void 0),t})(),Bdt=(()=>{class t{constructor(){this.panelModeChange=new Dc,this.headerChange=new Dc,this.selectDate=new Dc,this.selectTime=new Dc,this.cellHover=new Dc,this.prefixCls=Ddt}enablePrevNext(t,e){return!(!this.showTimePicker&&e===this.endPanelMode&&("left"===this.partType&&"next"===t||"right"===this.partType&&"prev"===t))}onSelectTime(t){this.selectTime.emit(new xx(t))}onSelectDate(t){const e=t instanceof xx?t:new xx(t),n=this.timeOptions&&this.timeOptions.nzDefaultOpenValue;!this.value&&n&&e.setHms(n.getHours(),n.getMinutes(),n.getSeconds()),this.selectDate.emit(e)}onChooseMonth(t){this.activeDate=this.activeDate.setMonth(t.getMonth()),"month"===this.endPanelMode?(this.value=t,this.selectDate.emit(t)):(this.headerChange.emit(t),this.panelModeChange.emit(this.endPanelMode))}onChooseYear(t){this.activeDate=this.activeDate.setYear(t.getYear()),"year"===this.endPanelMode?(this.value=t,this.selectDate.emit(t)):(this.headerChange.emit(t),this.panelModeChange.emit(this.endPanelMode))}onChooseDecade(t){this.activeDate=this.activeDate.setYear(t.getYear()),"decade"===this.endPanelMode?(this.value=t,this.selectDate.emit(t)):(this.headerChange.emit(t),this.panelModeChange.emit("year"))}ngOnChanges(t){t.activeDate&&!t.activeDate.currentValue&&(this.activeDate=new xx),t.panelMode&&"time"===t.panelMode.currentValue&&(this.panelMode="date")}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵcmp"]=qt({type:t,selectors:[["inner-popup"]],inputs:{activeDate:"activeDate",value:"value",panelMode:"panelMode",endPanelMode:"endPanelMode",showWeek:"showWeek",locale:"locale",showTimePicker:"showTimePicker",timeOptions:"timeOptions",disabledDate:"disabledDate",dateRender:"dateRender",selectedValue:"selectedValue",hoverValue:"hoverValue",partType:"partType"},outputs:{panelModeChange:"panelModeChange",headerChange:"headerChange",selectDate:"selectDate",selectTime:"selectTime",cellHover:"cellHover"},exportAs:["innerPopup"],features:[pe],decls:8,vars:11,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[4,"ngIf"],[3,"value","locale","showSuperPreBtn","showSuperNextBtn","showNextBtn","showPreBtn","valueChange","panelModeChange"],[3,"activeDate","value","locale","disabledDate","valueChange"],[3,"activeDate","value","locale","disabledDate","selectedValue","hoverValue","valueChange","cellHover"],[3,"value","activeDate","locale","disabledDate","selectedValue","hoverValue","valueChange","cellHover"],[3,"value","locale","showSuperPreBtn","showSuperNextBtn","showPreBtn","showNextBtn","valueChange","panelModeChange"],[3,"locale","showWeek","value","activeDate","disabledDate","cellRender","selectedValue","hoverValue","valueChange","cellHover"],[3,"nzInDatePicker","ngModel","format","nzHourStep","nzMinuteStep","nzSecondStep","nzDisabledHours","nzDisabledMinutes","nzDisabledSeconds","nzHideDisabledOptions","nzDefaultOpenValue","nzUse12Hours","nzAddOn","ngModelChange"]],template:function(t,e){1&t&&(Yo(0,"div"),Yo(1,"div"),qo(2,0),Ho(3,lht,4,13,"ng-container",1),Ho(4,cht,4,15,"ng-container",1),Ho(5,hht,4,15,"ng-container",1),Ho(6,dht,4,17,"ng-container",2),$o(),jo(),Ho(7,uht,2,13,"ng-container",3),jo()),2&t&&(Cs("ant-picker-datetime-panel",e.showTimePicker),sa(1),Ws("",e.prefixCls,"-",e.panelMode,"-panel"),sa(1),Uo("ngSwitch",e.panelMode),sa(1),Uo("ngSwitchCase","decade"),sa(1),Uo("ngSwitchCase","year"),sa(1),Uo("ngSwitchCase","month"),sa(2),Uo("ngIf",e.showTimePicker&&e.timeOptions))},directives:function(){return[$d,Kd,Jd,Yd,Zdt,Udt,jdt,Xdt,Wdt,Ydt,Ndt,Gdt,pct,xp,Np]},encapsulation:2,changeDetection:0}),t})(),Vdt=(()=>{class t{constructor(){this.prefixCls="ant-picker-header",this.selectors=[],this.showSuperPreBtn=!0,this.showSuperNextBtn=!0,this.showPreBtn=!0,this.showNextBtn=!0,this.panelModeChange=new Dc,this.valueChange=new Dc}superPreviousTitle(){return this.locale.previousYear}previousTitle(){return this.locale.previousMonth}superNextTitle(){return this.locale.nextYear}nextTitle(){return this.locale.nextMonth}superPrevious(){this.changeValue(this.value.addYears(-1))}superNext(){this.changeValue(this.value.addYears(1))}previous(){this.changeValue(this.value.addMonths(-1))}next(){this.changeValue(this.value.addMonths(1))}changeValue(t){this.value!==t&&(this.value=t,this.valueChange.emit(this.value),this.render())}changeMode(t){this.panelModeChange.emit(t)}render(){this.value&&(this.selectors=this.getSelectors())}ngOnInit(){this.value||(this.value=new xx),this.selectors=this.getSelectors()}ngOnChanges(t){(t.value||t.locale)&&this.render()}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵdir"]=ne({type:t,inputs:{showSuperPreBtn:"showSuperPreBtn",showSuperNextBtn:"showSuperNextBtn",showPreBtn:"showPreBtn",showNextBtn:"showNextBtn",value:"value",locale:"locale"},outputs:{panelModeChange:"panelModeChange",valueChange:"valueChange"},features:[pe]}),t})(),Ndt=(()=>{class t extends Vdt{constructor(t){super(),this.dateHelper=t}getSelectors(){return[{className:this.prefixCls+"-year-btn",title:this.locale.yearSelect,onClick:()=>this.changeMode("year"),label:this.dateHelper.format(this.value.nativeDate,Tdt(this.locale.yearFormat))},{className:this.prefixCls+"-month-btn",title:this.locale.monthSelect,onClick:()=>this.changeMode("month"),label:this.dateHelper.format(this.value.nativeDate,this.locale.monthFormat||"MMM")}]}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Ix))},t["ɵcmp"]=qt({type:t,selectors:[["date-header"]],exportAs:["dateHeader"],features:[Co],decls:11,vars:31,consts:[["role","button","type","button","tabindex","-1",3,"title","click"],[1,"ant-picker-super-prev-icon"],[1,"ant-picker-prev-icon"],[4,"ngFor","ngForOf"],[1,"ant-picker-next-icon"],[1,"ant-picker-super-next-icon"],["role","button","type","button",3,"title","click"]],template:function(t,e){1&t&&(Yo(0,"div"),Yo(1,"button",0),es("click",(function(){return e.superPrevious()})),Xo(2,"span",1),jo(),Yo(3,"button",0),es("click",(function(){return e.previous()})),Xo(4,"span",2),jo(),Yo(5,"div"),Ho(6,mht,3,5,"ng-container",3),jo(),Yo(7,"button",0),es("click",(function(){return e.next()})),Xo(8,"span",4),jo(),Yo(9,"button",0),es("click",(function(){return e.superNext()})),Xo(10,"span",5),jo(),jo()),2&t&&(Ps(e.prefixCls),sa(1),Us("",e.prefixCls,"-super-prev-btn"),xs("visibility",e.showSuperPreBtn?"visible":"hidden"),hs("title",e.superPreviousTitle()),sa(2),Us("",e.prefixCls,"-prev-btn"),xs("visibility",e.showPreBtn?"visible":"hidden"),hs("title",e.previousTitle()),sa(2),Us("",e.prefixCls,"-view"),sa(1),Uo("ngForOf",e.selectors),sa(1),Us("",e.prefixCls,"-next-btn"),xs("visibility",e.showNextBtn?"visible":"hidden"),hs("title",e.nextTitle()),sa(2),Us("",e.prefixCls,"-super-next-btn"),xs("visibility",e.showSuperNextBtn?"visible":"hidden"),hs("title",e.superNextTitle()))},directives:[Ud],encapsulation:2,changeDetection:0}),t})(),Hdt=(()=>{class t{constructor(){this.isTemplateRef=ox,this.isNonEmptyString=ax,this.headRow=[],this.bodyRows=[],this.MAX_ROW=6,this.MAX_COL=7,this.prefixCls="ant-picker",this.activeDate=new xx,this.showWeek=!1,this.selectedValue=[],this.hoverValue=[],this.valueChange=new Dc,this.cellHover=new Dc}render(){this.activeDate&&(this.headRow=this.makeHeadRow(),this.bodyRows=this.makeBodyRows())}trackByBodyRow(t,e){return e.trackByIndex}trackByBodyColumn(t,e){return e.trackByIndex}hasRangeValue(){var t,e;return(null===(t=this.selectedValue)||void 0===t?void 0:t.length)>0||(null===(e=this.hoverValue)||void 0===e?void 0:e.length)>0}getClassMap(t){return{"ant-picker-cell":!0,"ant-picker-cell-in-view":!0,"ant-picker-cell-selected":t.isSelected,"ant-picker-cell-disabled":t.isDisabled,"ant-picker-cell-in-range":!!t.isInSelectedRange,"ant-picker-cell-range-start":!!t.isSelectedStart,"ant-picker-cell-range-end":!!t.isSelectedEnd,"ant-picker-cell-range-start-single":!!t.isStartSingle,"ant-picker-cell-range-end-single":!!t.isEndSingle,"ant-picker-cell-range-hover":!!t.isInHoverRange,"ant-picker-cell-range-hover-start":!!t.isHoverStart,"ant-picker-cell-range-hover-end":!!t.isHoverEnd,"ant-picker-cell-range-hover-edge-start":!!t.isFirstCellInPanel,"ant-picker-cell-range-hover-edge-end":!!t.isLastCellInPanel,"ant-picker-cell-range-start-near-hover":!!t.isRangeStartNearHover,"ant-picker-cell-range-end-near-hover":!!t.isRangeEndNearHover}}ngOnInit(){this.render()}ngOnChanges(t){t.activeDate&&!t.activeDate.currentValue&&(this.activeDate=new xx),(t.disabledDate||t.locale||t.showWeek||this.isDateRealChange(t.activeDate)||this.isDateRealChange(t.value)||this.isDateRealChange(t.selectedValue)||this.isDateRealChange(t.hoverValue))&&this.render()}isDateRealChange(t){if(t){const e=t.previousValue,n=t.currentValue;return Array.isArray(n)?!Array.isArray(e)||n.length!==e.length||n.some(((t,n)=>{const i=e[n];return i instanceof xx?i.isSameDay(t):i!==t})):!this.isSameDate(e,n)}return!1}isSameDate(t,e){return!t&&!e||t&&e&&e.isSameDay(t)}}return t["ɵfac"]=function(e){return new(e||t)},t["ɵdir"]=ne({type:t,inputs:{prefixCls:"prefixCls",activeDate:"activeDate",showWeek:"showWeek",selectedValue:"selectedValue",hoverValue:"hoverValue",value:"value",locale:"locale",disabledDate:"disabledDate",cellRender:"cellRender",fullCellRender:"fullCellRender"},outputs:{valueChange:"valueChange",cellHover:"cellHover"},features:[pe]}),t})(),Gdt=(()=>{class t extends Hdt{constructor(t,e){super(),this.i18n=t,this.dateHelper=e}changeValueFromInside(t){this.activeDate=this.activeDate.setYear(t.getYear()).setMonth(t.getMonth()).setDate(t.getDate()),this.valueChange.emit(this.activeDate),this.activeDate.isSameMonth(this.value)||this.render()}makeHeadRow(){const t=[],e=this.activeDate.calendarStart({weekStartsOn:this.dateHelper.getFirstDayOfWeek()});for(let n=0;n<this.MAX_COL;n++){const i=e.addDays(n);t.push({trackByIndex:null,value:i.nativeDate,title:this.dateHelper.format(i.nativeDate,"E"),content:this.dateHelper.format(i.nativeDate,this.getVeryShortWeekFormat()),isSelected:!1,isDisabled:!1,onClick(){},onMouseEnter(){}})}return t}getVeryShortWeekFormat(){return 0===this.i18n.getLocaleId().toLowerCase().indexOf("zh")?"EEEEE":"EEEEEE"}makeBodyRows(){const t=[],e=this.activeDate.calendarStart({weekStartsOn:this.dateHelper.getFirstDayOfWeek()});for(let n=0;n<this.MAX_ROW;n++){const i=e.addDays(7*n),r={isActive:!1,dateCells:[],trackByIndex:n};for(let t=0;t<7;t++){const e=i.addDays(t),n=Tdt(this.i18n.getLocaleData("DatePicker.lang.dateFormat","YYYY-MM-DD")),a=this.dateHelper.format(e.nativeDate,n),o=this.dateHelper.format(e.nativeDate,"dd"),s={trackByIndex:t,value:e.nativeDate,label:o,isSelected:!1,isDisabled:!1,isToday:!1,title:a,cellRender:lx(this.cellRender,e),fullCellRender:lx(this.fullCellRender,e),content:""+e.getDate(),onClick:()=>this.changeValueFromInside(e),onMouseEnter:()=>this.cellHover.emit(e)};this.addCellProperty(s,e),this.showWeek&&!r.weekNum&&(r.weekNum=this.dateHelper.getISOWeek(e.nativeDate)),e.isSameDay(this.value)&&(r.isActive=e.isSameDay(this.value)),r.dateCells.push(s)}r.classMap={"ant-picker-week-panel-row":this.showWeek,"ant-picker-week-panel-row-selected":this.showWeek&&r.isActive},t.push(r)}return t}addCellProperty(t,e){var n;if(this.hasRangeValue()&&!this.showWeek){const[n,i]=this.hoverValue,[r,a]=this.selectedValue;(null==r?void 0:r.isSameDay(e))&&(t.isSelectedStart=!0,t.isSelected=!0),(null==a?void 0:a.isSameDay(e))&&(t.isSelectedEnd=!0,t.isSelected=!0),n&&i&&(t.isHoverStart=n.isSameDay(e),t.isHoverEnd=i.isSameDay(e),t.isLastCellInPanel=e.isLastDayOfMonth(),t.isFirstCellInPanel=e.isFirstDayOfMonth(),t.isInHoverRange=n.isBeforeDay(e)&&e.isBeforeDay(i)),t.isStartSingle=r&&!a,t.isEndSingle=!r&&a,t.isInSelectedRange=(null==r?void 0:r.isBeforeDay(e))&&e.isBeforeDay(a),t.isRangeStartNearHover=r&&t.isInHoverRange,t.isRangeEndNearHover=a&&t.isInHoverRange}t.isToday=e.isToday(),t.isSelected=e.isSameDay(this.value),t.isDisabled=!!(null===(n=this.disabledDate)||void 0===n?void 0:n.call(this,e.nativeDate)),t.classMap=this.getClassMap(t)}getClassMap(t){const e=new xx(t.value);return Object.assign(Object.assign({},super.getClassMap(t)),{"ant-picker-cell-today":!!t.isToday,"ant-picker-cell-in-view":e.isSameMonth(this.activeDate)})}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Mx),Zo(Ix))},t["ɵcmp"]=qt({type:t,selectors:[["date-table"]],inputs:{locale:"locale"},exportAs:["dateTable"],features:[Co],decls:4,vars:3,consts:[["cellspacing","0","role","grid",1,"ant-picker-content"],[4,"ngIf"],["role","row",3,"ngClass",4,"ngFor","ngForOf","ngForTrackBy"],["role","row"],["role","columnheader",4,"ngIf"],["role","columnheader",3,"title",4,"ngFor","ngForOf"],["role","columnheader"],["role","columnheader",3,"title"],["role","row",3,"ngClass"],["role","gridcell",3,"class",4,"ngIf"],["role","gridcell",3,"title","ngClass","click","mouseenter",4,"ngFor","ngForOf","ngForTrackBy"],["role","gridcell"],["role","gridcell",3,"title","ngClass","click","mouseenter"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"],[4,"ngIf","ngIfElse"],["defaultCell",""]],template:function(t,e){1&t&&(Yo(0,"table",0),Ho(1,fht,4,2,"thead",1),Yo(2,"tbody"),Ho(3,Oht,3,4,"tr",2),jo(),jo()),2&t&&(sa(1),Uo("ngIf",e.headRow&&e.headRow.length>0),sa(2),Uo("ngForOf",e.bodyRows)("ngForTrackBy",e.trackByBodyRow))},directives:[Yd,Ud,Gd,$d,Kd,Jd,tu],encapsulation:2,changeDetection:0}),t})(),Zdt=(()=>{class t extends Vdt{previous(){}next(){}get startYear(){return 100*parseInt(""+this.value.getYear()/100,10)}get endYear(){return this.startYear+99}superPrevious(){this.changeValue(this.value.addYears(-100))}superNext(){this.changeValue(this.value.addYears(100))}getSelectors(){return[{className:this.prefixCls+"-decade-btn",title:"",onClick:()=>{},label:this.startYear+"-"+this.endYear}]}}return t["ɵfac"]=function(){let e;return function(n){return(e||(e=Kn(t)))(n||t)}}(),t["ɵcmp"]=qt({type:t,selectors:[["decade-header"]],exportAs:["decadeHeader"],features:[Co],decls:11,vars:31,consts:[["role","button","type","button","tabindex","-1",3,"title","click"],[1,"ant-picker-super-prev-icon"],[1,"ant-picker-prev-icon"],[4,"ngFor","ngForOf"],[1,"ant-picker-next-icon"],[1,"ant-picker-super-next-icon"],["role","button","type","button",3,"title","click"]],template:function(t,e){1&t&&(Yo(0,"div"),Yo(1,"button",0),es("click",(function(){return e.superPrevious()})),Xo(2,"span",1),jo(),Yo(3,"button",0),es("click",(function(){return e.previous()})),Xo(4,"span",2),jo(),Yo(5,"div"),Ho(6,Aht,3,5,"ng-container",3),jo(),Yo(7,"button",0),es("click",(function(){return e.next()})),Xo(8,"span",4),jo(),Yo(9,"button",0),es("click",(function(){return e.superNext()})),Xo(10,"span",5),jo(),jo()),2&t&&(Ps(e.prefixCls),sa(1),Us("",e.prefixCls,"-super-prev-btn"),xs("visibility",e.showSuperPreBtn?"visible":"hidden"),hs("title",e.superPreviousTitle()),sa(2),Us("",e.prefixCls,"-prev-btn"),xs("visibility",e.showPreBtn?"visible":"hidden"),hs("title",e.previousTitle()),sa(2),Us("",e.prefixCls,"-view"),sa(1),Uo("ngForOf",e.selectors),sa(1),Us("",e.prefixCls,"-next-btn"),xs("visibility",e.showNextBtn?"visible":"hidden"),hs("title",e.nextTitle()),sa(2),Us("",e.prefixCls,"-super-next-btn"),xs("visibility",e.showSuperNextBtn?"visible":"hidden"),hs("title",e.superNextTitle()))},directives:[Ud],encapsulation:2,changeDetection:0}),t})(),Udt=(()=>{class t extends Hdt{get startYear(){return 100*parseInt(""+this.activeDate.getYear()/100,10)}get endYear(){return this.startYear+99}makeHeadRow(){return[]}makeBodyRows(){const t=[],e=this.value&&this.value.getYear(),n=this.startYear,i=this.endYear,r=n-10;let a=0;for(let o=0;o<4;o++){const s={dateCells:[],trackByIndex:o};for(let t=0;t<3;t++){const o=r+10*a,l=r+10*a+9,c=o+"-"+l,h={trackByIndex:t,value:this.activeDate.setYear(o).nativeDate,content:c,title:c,isDisabled:!1,isSelected:e>=o&&e<=l,isLowerThanStart:l<n,isBiggerThanEnd:o>i,classMap:{},onClick(){},onMouseEnter(){}};h.classMap=this.getClassMap(h),h.onClick=()=>this.chooseDecade(o),a++,s.dateCells.push(h)}t.push(s)}return t}getClassMap(t){return{[this.prefixCls+"-cell"]:!0,[this.prefixCls+"-cell-in-view"]:!t.isBiggerThanEnd&&!t.isLowerThanStart,[this.prefixCls+"-cell-selected"]:t.isSelected,[this.prefixCls+"-cell-disabled"]:t.isDisabled}}chooseDecade(t){this.value=this.activeDate.setYear(t),this.valueChange.emit(this.value)}}return t["ɵfac"]=function(){let e;return function(n){return(e||(e=Kn(t)))(n||t)}}(),t["ɵcmp"]=qt({type:t,selectors:[["decade-table"]],exportAs:["decadeTable"],features:[Co],decls:4,vars:3,consts:[["cellspacing","0","role","grid",1,"ant-picker-content"],[4,"ngIf"],["role","row",3,"ngClass",4,"ngFor","ngForOf","ngForTrackBy"],["role","row"],["role","columnheader",4,"ngIf"],["role","columnheader",3,"title",4,"ngFor","ngForOf"],["role","columnheader"],["role","columnheader",3,"title"],["role","row",3,"ngClass"],["role","gridcell",3,"class",4,"ngIf"],["role","gridcell",3,"title","ngClass","click","mouseenter",4,"ngFor","ngForOf","ngForTrackBy"],["role","gridcell"],["role","gridcell",3,"title","ngClass","click","mouseenter"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"],[4,"ngIf","ngIfElse"],["defaultCell",""]],template:function(t,e){1&t&&(Yo(0,"table",0),Ho(1,Lht,4,2,"thead",1),Yo(2,"tbody"),Ho(3,jht,3,4,"tr",2),jo(),jo()),2&t&&(sa(1),Uo("ngIf",e.headRow&&e.headRow.length>0),sa(2),Uo("ngForOf",e.bodyRows)("ngForTrackBy",e.trackByBodyRow))},directives:[Yd,Ud,Gd,$d,Kd,Jd,tu],encapsulation:2,changeDetection:0}),t})(),Wdt=(()=>{class t extends Vdt{constructor(t){super(),this.dateHelper=t}getSelectors(){return[{className:this.prefixCls+"-month-btn",title:this.locale.yearSelect,onClick:()=>this.changeMode("year"),label:this.dateHelper.format(this.value.nativeDate,Tdt(this.locale.yearFormat))}]}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Ix))},t["ɵcmp"]=qt({type:t,selectors:[["month-header"]],exportAs:["monthHeader"],features:[Co],decls:11,vars:31,consts:[["role","button","type","button","tabindex","-1",3,"title","click"],[1,"ant-picker-super-prev-icon"],[1,"ant-picker-prev-icon"],[4,"ngFor","ngForOf"],[1,"ant-picker-next-icon"],[1,"ant-picker-super-next-icon"],["role","button","type","button",3,"title","click"]],template:function(t,e){1&t&&(Yo(0,"div"),Yo(1,"button",0),es("click",(function(){return e.superPrevious()})),Xo(2,"span",1),jo(),Yo(3,"button",0),es("click",(function(){return e.previous()})),Xo(4,"span",2),jo(),Yo(5,"div"),Ho(6,Xht,3,5,"ng-container",3),jo(),Yo(7,"button",0),es("click",(function(){return e.next()})),Xo(8,"span",4),jo(),Yo(9,"button",0),es("click",(function(){return e.superNext()})),Xo(10,"span",5),jo(),jo()),2&t&&(Ps(e.prefixCls),sa(1),Us("",e.prefixCls,"-super-prev-btn"),xs("visibility",e.showSuperPreBtn?"visible":"hidden"),hs("title",e.superPreviousTitle()),sa(2),Us("",e.prefixCls,"-prev-btn"),xs("visibility",e.showPreBtn?"visible":"hidden"),hs("title",e.previousTitle()),sa(2),Us("",e.prefixCls,"-view"),sa(1),Uo("ngForOf",e.selectors),sa(1),Us("",e.prefixCls,"-next-btn"),xs("visibility",e.showNextBtn?"visible":"hidden"),hs("title",e.nextTitle()),sa(2),Us("",e.prefixCls,"-super-next-btn"),xs("visibility",e.showSuperNextBtn?"visible":"hidden"),hs("title",e.superNextTitle()))},directives:[Ud],encapsulation:2,changeDetection:0}),t})(),Ydt=(()=>{class t extends Hdt{constructor(t){super(),this.dateHelper=t,this.MAX_ROW=4,this.MAX_COL=3}makeHeadRow(){return[]}makeBodyRows(){const t=[];let e=0;for(let n=0;n<this.MAX_ROW;n++){const i={dateCells:[],trackByIndex:n};for(let t=0;t<this.MAX_COL;t++){const n=this.activeDate.setMonth(e),r=this.isDisabledMonth(n),a=this.dateHelper.format(n.nativeDate,"MMM"),o={trackByIndex:t,value:n.nativeDate,isDisabled:r,isSelected:n.isSameMonth(this.value),content:a,title:a,classMap:{},cellRender:lx(this.cellRender,n),fullCellRender:lx(this.fullCellRender,n),onClick:()=>this.chooseMonth(o.value.getMonth()),onMouseEnter:()=>this.cellHover.emit(n)};this.addCellProperty(o,n),i.dateCells.push(o),e++}t.push(i)}return t}isDisabledMonth(t){if(!this.disabledDate)return!1;for(let e=t.setDate(1);e.getMonth()===t.getMonth();e=e.addDays(1))if(!this.disabledDate(e.nativeDate))return!1;return!0}addCellProperty(t,e){if(this.hasRangeValue()){const[n,i]=this.hoverValue,[r,a]=this.selectedValue;(null==r?void 0:r.isSameMonth(e))&&(t.isSelectedStart=!0,t.isSelected=!0),(null==a?void 0:a.isSameMonth(e))&&(t.isSelectedEnd=!0,t.isSelected=!0),n&&i&&(t.isHoverStart=n.isSameMonth(e),t.isHoverEnd=i.isSameMonth(e),t.isLastCellInPanel=11===e.getMonth(),t.isFirstCellInPanel=0===e.getMonth(),t.isInHoverRange=n.isBeforeMonth(e)&&e.isBeforeMonth(i)),t.isStartSingle=r&&!a,t.isEndSingle=!r&&a,t.isInSelectedRange=(null==r?void 0:r.isBeforeMonth(e))&&(null==e?void 0:e.isBeforeMonth(a)),t.isRangeStartNearHover=r&&t.isInHoverRange,t.isRangeEndNearHover=a&&t.isInHoverRange}else e.isSameMonth(this.value)&&(t.isSelected=!0);t.classMap=this.getClassMap(t)}chooseMonth(t){this.value=this.activeDate.setMonth(t),this.valueChange.emit(this.value)}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Ix))},t["ɵcmp"]=qt({type:t,selectors:[["month-table"]],exportAs:["monthTable"],features:[Co],decls:4,vars:3,consts:[["cellspacing","0","role","grid",1,"ant-picker-content"],[4,"ngIf"],["role","row",3,"ngClass",4,"ngFor","ngForOf","ngForTrackBy"],["role","row"],["role","columnheader",4,"ngIf"],["role","columnheader",3,"title",4,"ngFor","ngForOf"],["role","columnheader"],["role","columnheader",3,"title"],["role","row",3,"ngClass"],["role","gridcell",3,"class",4,"ngIf"],["role","gridcell",3,"title","ngClass","click","mouseenter",4,"ngFor","ngForOf","ngForTrackBy"],["role","gridcell"],["role","gridcell",3,"title","ngClass","click","mouseenter"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"],[4,"ngIf","ngIfElse"],["defaultCell",""]],template:function(t,e){1&t&&(Yo(0,"table",0),Ho(1,Kht,4,2,"thead",1),Yo(2,"tbody"),Ho(3,hdt,3,4,"tr",2),jo(),jo()),2&t&&(sa(1),Uo("ngIf",e.headRow&&e.headRow.length>0),sa(2),Uo("ngForOf",e.bodyRows)("ngForTrackBy",e.trackByBodyRow))},directives:[Yd,Ud,Gd,$d,Kd,Jd,tu],encapsulation:2,changeDetection:0}),t})(),jdt=(()=>{class t extends Vdt{get startYear(){return 10*parseInt(""+this.value.getYear()/10,10)}get endYear(){return this.startYear+9}superPrevious(){this.changeValue(this.value.addYears(-10))}superNext(){this.changeValue(this.value.addYears(10))}getSelectors(){return[{className:this.prefixCls+"-year-btn",title:"",onClick:()=>this.changeMode("decade"),label:this.startYear+"-"+this.endYear}]}}return t["ɵfac"]=function(){let e;return function(n){return(e||(e=Kn(t)))(n||t)}}(),t["ɵcmp"]=qt({type:t,selectors:[["year-header"]],exportAs:["yearHeader"],features:[Co],decls:11,vars:31,consts:[["role","button","type","button","tabindex","-1",3,"title","click"],[1,"ant-picker-super-prev-icon"],[1,"ant-picker-prev-icon"],[4,"ngFor","ngForOf"],[1,"ant-picker-next-icon"],[1,"ant-picker-super-next-icon"],["role","button","type","button",3,"title","click"]],template:function(t,e){1&t&&(Yo(0,"div"),Yo(1,"button",0),es("click",(function(){return e.superPrevious()})),Xo(2,"span",1),jo(),Yo(3,"button",0),es("click",(function(){return e.previous()})),Xo(4,"span",2),jo(),Yo(5,"div"),Ho(6,ddt,3,5,"ng-container",3),jo(),Yo(7,"button",0),es("click",(function(){return e.next()})),Xo(8,"span",4),jo(),Yo(9,"button",0),es("click",(function(){return e.superNext()})),Xo(10,"span",5),jo(),jo()),2&t&&(Ps(e.prefixCls),sa(1),Us("",e.prefixCls,"-super-prev-btn"),xs("visibility",e.showSuperPreBtn?"visible":"hidden"),hs("title",e.superPreviousTitle()),sa(2),Us("",e.prefixCls,"-prev-btn"),xs("visibility",e.showPreBtn?"visible":"hidden"),hs("title",e.previousTitle()),sa(2),Us("",e.prefixCls,"-view"),sa(1),Uo("ngForOf",e.selectors),sa(1),Us("",e.prefixCls,"-next-btn"),xs("visibility",e.showNextBtn?"visible":"hidden"),hs("title",e.nextTitle()),sa(2),Us("",e.prefixCls,"-super-next-btn"),xs("visibility",e.showSuperNextBtn?"visible":"hidden"),hs("title",e.superNextTitle()))},directives:[Ud],encapsulation:2,changeDetection:0}),t})(),Xdt=(()=>{class t extends Hdt{constructor(t){super(),this.dateHelper=t,this.MAX_ROW=4,this.MAX_COL=3}makeHeadRow(){return[]}makeBodyRows(){const t=this.activeDate&&this.activeDate.getYear(),e=10*parseInt(""+t/10,10),n=e+9,i=e-1,r=[];let a=0;for(let t=0;t<this.MAX_ROW;t++){const o={dateCells:[],trackByIndex:t};for(let t=0;t<this.MAX_COL;t++){const r=i+a,s=this.activeDate.setYear(r),l=this.dateHelper.format(s.nativeDate,"yyyy"),c=this.isDisabledYear(s),h={trackByIndex:t,value:s.nativeDate,isDisabled:c,isSameDecade:r>=e&&r<=n,isSelected:r===(this.value&&this.value.getYear()),content:l,title:l,classMap:{},isLastCellInPanel:s.getYear()===n,isFirstCellInPanel:s.getYear()===e,cellRender:lx(this.cellRender,s),fullCellRender:lx(this.fullCellRender,s),onClick:()=>this.chooseYear(h.value.getFullYear()),onMouseEnter:()=>this.cellHover.emit(s)};this.addCellProperty(h,s),o.dateCells.push(h),a++}r.push(o)}return r}getClassMap(t){return Object.assign(Object.assign({},super.getClassMap(t)),{"ant-picker-cell-in-view":!!t.isSameDecade})}isDisabledYear(t){if(!this.disabledDate)return!1;for(let e=t.setMonth(0).setDate(1);e.getYear()===t.getYear();e=e.addDays(1))if(!this.disabledDate(e.nativeDate))return!1;return!0}addCellProperty(t,e){if(this.hasRangeValue()){const[n,i]=this.hoverValue,[r,a]=this.selectedValue;(null==r?void 0:r.isSameYear(e))&&(t.isSelectedStart=!0,t.isSelected=!0),(null==a?void 0:a.isSameYear(e))&&(t.isSelectedEnd=!0,t.isSelected=!0),n&&i&&(t.isHoverStart=n.isSameYear(e),t.isHoverEnd=i.isSameYear(e),t.isInHoverRange=n.isBeforeYear(e)&&e.isBeforeYear(i)),t.isStartSingle=r&&!a,t.isEndSingle=!r&&a,t.isInSelectedRange=(null==r?void 0:r.isBeforeYear(e))&&(null==e?void 0:e.isBeforeYear(a)),t.isRangeStartNearHover=r&&t.isInHoverRange,t.isRangeEndNearHover=a&&t.isInHoverRange}else e.isSameYear(this.value)&&(t.isSelected=!0);t.classMap=this.getClassMap(t)}chooseYear(t){this.value=this.activeDate.setYear(t),this.valueChange.emit(this.value),this.render()}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Ix))},t["ɵcmp"]=qt({type:t,selectors:[["year-table"]],exportAs:["yearTable"],features:[Co],decls:4,vars:3,consts:[["cellspacing","0","role","grid",1,"ant-picker-content"],[4,"ngIf"],["role","row",3,"ngClass",4,"ngFor","ngForOf","ngForTrackBy"],["role","row"],["role","columnheader",4,"ngIf"],["role","columnheader",3,"title",4,"ngFor","ngForOf"],["role","columnheader"],["role","columnheader",3,"title"],["role","row",3,"ngClass"],["role","gridcell",3,"class",4,"ngIf"],["role","gridcell",3,"title","ngClass","click","mouseenter",4,"ngFor","ngForOf","ngForTrackBy"],["role","gridcell"],["role","gridcell",3,"title","ngClass","click","mouseenter"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"],[4,"ngIf","ngIfElse"],["defaultCell",""]],template:function(t,e){1&t&&(Yo(0,"table",0),Ho(1,pdt,4,2,"thead",1),Yo(2,"tbody"),Ho(3,Mdt,3,4,"tr",2),jo(),jo()),2&t&&(sa(1),Uo("ngIf",e.headRow&&e.headRow.length>0),sa(2),Uo("ngForOf",e.bodyRows)("ngForTrackBy",e.trackByBodyRow))},directives:[Yd,Ud,Gd,$d,Kd,Jd,tu],encapsulation:2,changeDetection:0}),t})(),qdt=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({imports:[[nu,Wp,Ex,gct,Yk]]}),t})(),$dt=(()=>{class t{constructor(t){this.datePicker=t,this.datePicker.isRange=!0}}return t["ɵfac"]=function(e){return new(e||t)(Zo(Fdt,9))},t["ɵdir"]=ne({type:t,selectors:[["nz-range-picker"]],exportAs:["nzRangePicker"]}),t})(),Kdt=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({imports:[[Vx,nu,Wp,Fk,qdt,nP,RM,Zk,Yk,gct,yM,qdt]]}),t})(),Jdt=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({imports:[[nu,UR,Wp,WR,ylt,blt,ZA,Kdt]]}),t})();$t(C5,[Yd,Gd,Ud,Qd,gA,bA,oA,Flt,sM,tA,s_,np,Zp,xp,Np,bM,uM,sA,iA,Fdt,$dt,tu,Zlt,Wlt],[H3,Y4,W4]);let Qdt=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({imports:[[nu,WR,UR,Wp,Jdt]]}),t})();$t(U4,[Yd,sM,eP,Qd,zst,flt,Fst,C5,rM],[H3]);let tut=null,eut=null;const nut={ZwEditor:new class{ZwInit(t){document.body.setAttribute("cloud2d-theme-style","dark"),t.className+="ZwCloud2d",tut=document.createElement("zw-cloud2d-editor"),tut.addEventListener("ZwEvtCoreEditor",(t=>{eut=t.detail})),tut.addEventListener("ZwEvtDrawEnd",(t=>{nut.ZwMessageCallback.ZwEvtDrawEnd()})),tut.addEventListener("ZwEvtChangeSetting",(t=>{nut.ZwMessageCallback.ZwEvtChangeSetting(t.detail)})),tut.addEventListener("ZwEvtChangeLayout",(t=>{nut.ZwMessageCallback.ZwEvtChangeLayout(t.detail)})),tut.addEventListener("ZwEvtLoadXrefData",(t=>{nut.ZwMessageCallback.ZwEvtLoadXrefData(t.detail)})),tut.addEventListener("ZwEvtLoadImageData",(t=>{nut.ZwMessageCallback.ZwEvtLoadImageData(t.detail)})),tut.addEventListener("ZwEvtLoadImageList",(t=>{nut.ZwMessageCallback.ZwEvtLoadImageList()})),tut.addEventListener("ZwEvtPlotDwg",(t=>{nut.ZwMessageCallback.ZwEvtPlotDwg(t.detail)})),tut.addEventListener("ZwEvtLoadCommentData",(t=>{nut.ZwMessageCallback.ZwEvtLoadCommentData(t.detail)})),tut.addEventListener("ZwEvtLoadVersionData",(t=>{nut.ZwMessageCallback.ZwEvtLoadVersionData(t.detail)})),tut.addEventListener("ZwEvtVersionOperation",(t=>{nut.ZwMessageCallback.ZwEvtVersionOperation(t.detail)})),tut.addEventListener("ZwEvtExportCommentData",(t=>{nut.ZwMessageCallback.ZwEvtExportCommentData(t.detail)})),tut.addEventListener("ZwEvtUpdateCommentData",(t=>{nut.ZwMessageCallback.ZwEvtUpdateCommentData(t.detail)})),tut.addEventListener("ZwEvtDrawCommentBubble",(t=>{nut.ZwMessageCallback.ZwEvtDrawCommentBubble(t.detail)})),tut.addEventListener("ZwEvtGetCommentDataForNextPage",(t=>{nut.ZwMessageCallback.ZwEvtGetCommentDataForNextPage(t.detail)})),tut.addEventListener("ZwEvtGetRegenData",(t=>{nut.ZwMessageCallback.ZwEvtGetRegenData(t.detail)})),tut.addEventListener("ZwEvtLoadSignHistoryData",(t=>{nut.ZwMessageCallback.ZwEvtLoadSignHistoryData(t.detail)})),tut.addEventListener("ZwEvtLoadSignImageData",(t=>{nut.ZwMessageCallback.ZwEvtLoadSignImageData(t.detail)})),tut.addEventListener("ZwEvtExtendButtonClick",(t=>{nut.ZwMessageCallback.ZwEvtExtendButtonClick(t.detail)})),tut.addEventListener("ZwEvtDWGOpenFail",(t=>{nut.ZwMessageCallback.ZwEvtDWGOpenFail(t.detail)})),tut.addEventListener("ZwEvtLoadDwgFile",(t=>{nut.ZwMessageCallback.ZwEvtLoadDwgFile(t.detail)})),tut.addEventListener("ZwEvtGetTextStyleFont",(t=>{nut.ZwMessageCallback.ZwEvtGetTextStyleFont(t.detail)})),tut.addEventListener("ZwEvtAlternateFontInfo",(t=>{nut.ZwMessageCallback.ZwEvtAlternateFontInfo(t.detail)})),tut.addEventListener("ZwEvtSignBlockData",(t=>{nut.ZwMessageCallback.ZwEvtSignBlockData(t.detail)})),tut.addEventListener("ZwEvtSignPanelOperation",(t=>{nut.ZwMessageCallback.ZwEvtSignPanelOperation(t.detail)})),tut.addEventListener("ZwEvtFileOperate",(t=>{nut.ZwMessageCallback.ZwEvtFileOperate(t.detail)})),tut.addEventListener("ZwEvtGetShareInfo",(t=>{nut.ZwMessageCallback.ZwEvtGetShareInfo(t.detail)})),tut.addEventListener("ZwEvtGetQrCode",(t=>{nut.ZwMessageCallback.ZwEvtGetQrCode(t.detail)})),tut.addEventListener("ZwEvtChangeTheme",(t=>{nut.ZwMessageCallback.ZwEvtChangeTheme(t.detail)})),tut.addEventListener("ZwEvtGetLayoutHandle",(t=>{nut.ZwMessageCallback.ZwEvtGetLayoutHandle(t.detail)})),tut.addEventListener("ZwEvtFileCompare",(t=>{nut.ZwMessageCallback.ZwEvtFileCompare(t.detail)})),tut&&t.appendChild(tut)}ZwSetPageConfig(t){let e=function(t){let e=JSON.parse(JSON.stringify(iF));for(let n in t){let i=t[n];switch(n){case"top":case"bottom":case"left":case"right":rF(i)&&(e[n]=i);break;case"layerPanel":case"xrefPanel":case"commandPanel":case"commentPanel":case"versionPanel":case"opmPanel":case"signPanel":for(let t in i){let r=i[t];switch(t){case"WindowOrient":oF(r)&&(e[n][t]=r);break;case"WindowVisible":["hide","show"].includes(r)&&(e[n][t]=r);break;case"index":case"xval":case"yval":case"width":case"height":rF(r)&&(e[n][t]=r);break;case"showPosition":sF(r)&&(e[n][t]=r)}}break;case"options":for(let t in i){let r=i[t];switch(t){case"continuousDraw":"boolean"==typeof r&&(e[n][t]=r);break;case"cursorSize":case"zoomLevel":case"commentsPageSize":case"format":case"version":rF(r)&&(e[n][t]=r)}}}}return e}(t);!e||eut.ZwSetPageConfig(e)}ZwGetPageConfig(){return eut.ZwGetPageConfig()}ZwSetLoadingState(t){eut.ZwSetLoadingState(t)}ZwSetUserOptions(t){eut.ZwSetUserOptions(t)}ZwSetExtendButton(t){eut.ZwSetExtendButton(t)}},ZwDataProcessor:new class{ZwLoad(){}ZwGetDwgInfo(){return new Promise(((t,e)=>{e()}))}ZwGetFontDataList(t){return new Promise(((t,e)=>{t([])}))}ZwGetDwgData(t){return new Promise(((t,e)=>{e()}))}ZwGetLayoutData(t){return new Promise(((t,e)=>{e()}))}ZwGetXrefList(t){return new Promise(((t,e)=>{e()}))}ZwGetXrefData(t){return new Promise(((t,e)=>{e()}))}ZwGetImageData(t){return new Promise(((t,e)=>{e()}))}ZwGetPlotFile(t){return new Promise(((t,e)=>{e()}))}ZwGetLmfData(t){return new Promise(((e,n)=>{let i=!1,r="";zZ.getLmfData(t).then((n=>{i=!!n,r=n?n.timestamp+"":"",e({lmfFileId:t,hasCache:i,timestamp:r})})).catch((()=>{n()}))}))}},ZwDataManager:new class{ZwSetSdkPermission(t){return new Promise(((e,n)=>{eut.ZwSetSdkPermission(t),e()}))}ZwSetDwgInfo(t){return new Promise(((e,n)=>{let i=t.fonts||[],r=eut.ZwSetLayoutInfo(t.layouts||[]);eut.ZwSetDwgBase(t.id,t.name);let a=[],o=r.lmfFileId?r.lmfFileId:"",s=!1,l="";Promise.all([zZ.initFontData(i).then((()=>{i.forEach((t=>{"string"==typeof t&&!zZ.mFontList.includes(t)&&a.push(t),"object"==typeof t&&!zZ.mFontList.includes(t.name)&&a.push(t)}))})),zZ.getLmfData(o).then((t=>{s=!!t,l=t?t.timestamp+"":""}))]).then((()=>{e({missingFonts:a,layout:r,hasCache:s,timestamp:l})})).catch((()=>{n()}))}))}ZwSetFontDataList(t){var e,n=this;return new Promise((e=jR((function*(e,i){(function(t,e){if(!aF(e))return r.error("value of fontDataList must be an array"),!1;for(let t=0;t<e.length;t++){let i=e[t];if(!("string"==typeof i.name&&(n=i.data,n instanceof ArrayBuffer)))return r.error("data of fontDataList is wrong"),!1}var n;return!0})(0,t)||i(),t.forEach((t=>{let e=BZ(t.data);e instanceof ArrayBuffer&&zZ.setFontData({name:t.name,type:t.type,data:e})})),yield l3(Q2,n)(),yield t6(),e()})),function(t,n){return e.apply(this,arguments)}))}ZwSetDwgData(t,e,n){return new Promise(((i,r)=>{let a=mj.instance().GS;if(a&&(a.initTheme(),mj.instance().layoutFileIndex.set(Number(a.mCurLayoutHandle),t)),e){if(IJ.mEnableWASMWrapper){let a=e.slice(0);null==U5._instance.database()?a&&mj.instance().openDisplayData(a).then((e=>{e?(eut.ZwSetDwgData(e),zZ.setLmfData({fileId:t,timestamp:n,data:e}),i()):r(qF.mLanguagePackage.noSupport)})):mj.instance().appendLayoutData(a).then((e=>{e?(eut.ZwSetDwgData(e),zZ.setLmfData({fileId:t,timestamp:n,data:e}),i()):r(qF.mLanguagePackage.noSupport)}))}}else zZ.getLmfData(t).then((t=>{if(t){if(eut.ZwSetDwgData(t.data),IJ.mEnableWASMWrapper){let e=t.data;null!=U5._instance.database()&&mj.instance().isFontLoaded?mj.instance().appendLayoutCache(e,hj.LoadLmfCache):e&&mj.instance().openCacheData(e)}i()}else r(qF.mLanguagePackage.noSupport)}))}))}ZwSetDwgFileData(t){return new Promise(((e,n)=>{eut.ZwSetDwgFileData(t),e()}))}ZwSetXrefList(t){return new Promise(((e,n)=>{eut.ZwSetXrefList(t),e()}))}ZwSetXrefData(t){return new Promise(((e,n)=>{eut.ZwSetXrefData(t),e()}))}ZwSetImageData(t){return new Promise(((e,n)=>{eut.ZwSetImageData(t),e()}))}ZwSetImageList(t){return new Promise(((e,n)=>{eut.ZwSetImageList(t),e()}))}ZwSetExecuteCmd(t){eut.ZwSetExecuteCmd(t)}ZwSetInterruptCmd(){eut.ZwSetInterruptCmd()}ZwEntryEdit(t){eut.ZwEntryEdit(t)}ZwSetCommentData(t){eut.ZwSetCommentData(t)}ZwSetDrawCommentBubble(t,e){eut.ZwSetExecuteCmd(t,e,!0)}ZwSetCommentBubblesOff(t){eut.ZwSetCommentBubblesOff(t)}ZwSetBubblesData(t){eut.ZwSetBubblesData(t)}ZwSetDeleteBubbles(t){eut.ZwSetDeleteBubbles(t)}ZwSetLocateBubble(t){eut.ZwSetLocateBubble(t)}ZwSetBubbleHighlight(t){eut.ZwSetBubbleHighlight(t)}ZwSetCancelBubbleHighlight(t){eut.ZwSetCancelBubbleHighlight(t)}ZwSetSignHistoryData(t){eut.ZwSetSignHistoryData(t)}ZwDeleteSignCallback(t){eut.ZwDeleteSignCallback(t)}ZwSetSignImageData(t){eut.ZwSetSignImageData(t)}ZwSetWatermark(t){eut.ZwSetWatermark(t)}ZwSetRegenData(t){eut.ZwSetRegenData(t)}ZwSetPlotData(t,e){let n="";switch(t.params.ptType){case gU.pdf:n="application/pdf";break;case gU.png:n="image/png";break;case gU.jpg:n="image/jpg";break;default:n=""}let i=URL.createObjectURL(new Blob([e],{type:n}));if(t.resultType===bU.download){let e=document.createElement("a");e.href=i,e.download=t.filename,document.body.appendChild(e),e.click(),document.body.removeChild(e)}else if(t.resultType===bU.print){let e=document.createElement("iframe");if(t.params.ptType===gU.jpg||t.params.ptType===gU.png){let n=new Image;n.src=i;const r=new Promise((t=>{n.onload=()=>{n.style.maxWidth="100%",e.setAttribute("style","display:none"),document.body.appendChild(e),(e.contentDocument||e.contentWindow.document).body.appendChild(n),t(!0)}})),a=new Promise((t=>{e.onload=function(){t(!0)}}));Promise.all([r,a]).then((()=>{e.contentWindow.document.title=t.filename,e.contentWindow.addEventListener("afterprint",(function(){document.body.removeChild(e)})),e.contentWindow.print()}))}else e.src=i,e.setAttribute("style","display:none"),document.body.appendChild(e),e.onload=function(){e.contentWindow.document.title=t.filename,e.contentWindow.addEventListener("afterprint",(function(){document.body.removeChild(e)})),e.contentWindow.print()}}}ZwSetVersionData(t){eut.ZwSetVersionData(t)}ZwVersionOperResult(t){eut.ZwVersionOperResult(t)}ZwSetTextStyleFont(t){eut.ZwSetTextStyleFont(t)}ZwSignBlockData(t){eut.ZwSignBlockData(t)}ZwSetQrcode(t){eut.ZwSetQrcode(t)}ZwSetFcmpDwgInfo(t){return eut.ZwSetFcmpDwgBase(t).then((()=>this.ZwSetDwgInfo({id:"",name:t.baseFileName,fonts:t.fonts,layouts:t.layouts})))}ZwSetFcmpDwgData(t,e,n){return this.ZwSetDwgData(t,e,n)}ZwSetFcmpRegenData(t){eut.ZwSetFcmpRegenData(t)}},ZwMessageCallback:new class{ZwEvtLoadError(t){}ZwEvtLogInfo(t){}ZwEvtDrawEnd(){}ZwEvtChangeSetting(t){}ZwEvtChangeLayout(t){}ZwEvtLoadXrefData(t){}ZwEvtLoadImageData(t){}ZwEvtLoadImageList(){}ZwEvtPlotDwg(t){}ZwEvtLoadCommentData(t){}ZwEvtLoadVersionData(t){}ZwEvtVersionOperation(t){}ZwEvtLoadSignHistoryData(t){}ZwEvtLoadSignImageData(t){}ZwEvtExportCommentData(t){}ZwEvtUpdateCommentData(t){}ZwEvtGetCommentDataForNextPage(t){}ZwEvtDrawCommentBubble(t){}ZwEvtGetRegenData(t){}ZwEvtExtendButtonClick(t){}ZwEvtDWGOpenFail(t){}ZwEvtSignBlockData(t){}ZwEvtSignPanelOperation(t){}ZwEvtLoadDwgFile(t){}ZwEvtGetTextStyleFont(t){}ZwEvtAlternateFontInfo(t){}ZwEvtFileOperate(t){}ZwEvtGetShareInfo(t){}ZwEvtGetQrCode(t){}ZwEvtChangeTheme(t){}ZwEvtFileCompare(t){}ZwEvtGetLayoutHandle(t){}},ZwSetting:new class{constructor(){this.about={title:"",version:"",content:""}}ZwSetAbout(t){t&&(t.title&&(this.about.title=t.title),t.version&&(this.about.version=t.version),t.content&&(this.about.content=t.content))}}};window.ZwCloud2D=nut,window.ZwCloud2D.version=q7,window.ZwCloud2D.type="Cloud2D";let iut=(()=>{class t{}return t["ɵfac"]=function(e){return new(e||t)},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({imports:[[nu,WR,UR,Wp,ket]]}),t})();var rut,aut,out,sut;rut=Ym(),aut=rut,sut=void 0,"string"!=typeof(out=void 0)&&(sut=out,out=aut[Qs.LocaleId]),out=out.toLowerCase().replace(/_/g,"-"),$s[out]=aut,sut&&($s[out][Qs.ExtraData]=sut);const lut={message:{nzTop:64}},cut=[{name:"sync",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z" /></svg>'},{name:"unordered-list",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z" /></svg>'},jS,{name:"caret-right",theme:"fill",icon:'<svg viewBox="0 0 1024 1024" focusable="false"><path d="M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z" /></svg>'},{name:"caret-right",theme:"outline",icon:'<svg viewBox="0 0 1024 1024" focusable="false"><path d="M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z" /></svg>'},YS,WS,{name:"redo",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 00-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z" /></svg>'},{name:"question-circle",theme:"fill",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 708c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm62.9-219.5a48.3 48.3 0 00-30.9 44.8V620c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-21.5c0-23.1 6.7-45.9 19.9-64.9 12.9-18.6 30.9-32.8 52.1-40.9 34-13.1 56-41.6 56-72.7 0-44.1-43.1-80-96-80s-96 35.9-96 80v7.6c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V420c0-39.3 17.2-76 48.4-103.3C430.4 290.4 470 276 512 276s81.6 14.5 111.6 40.7C654.8 344 672 380.7 672 420c0 57.8-38.1 109.8-97.1 132.5z" /></svg>'}];let hut=(()=>{class t{constructor(t){this.injector=t,this.zcLanguage=new qF,this.zcLanguage.getLangPackage()}ngDoBootstrap(){const t=function(t,e){const n=(a=t,e.injector.get(ml).resolveComponentFactory(a).inputs),i=e.strategyFactory||new rm(t,e.injector),r=function(t){const e={};return t.forEach((({propName:t,templateName:n})=>{var i;e[(i=n,i.replace(/[A-Z]/g,(t=>"-"+t.toLowerCase())))]=t})),e}(n);var a;class o extends om{constructor(t){super(),this.injector=t}get ngElementStrategy(){if(!this._ngElementStrategy){const t=this._ngElementStrategy=i.create(this.injector||e.injector);n.forEach((({propName:e})=>{if(!this.hasOwnProperty(e))return;const n=this[e];delete this[e],t.setInputValue(e,n)}))}return this._ngElementStrategy}attributeChangedCallback(t,e,n,i){this.ngElementStrategy.setInputValue(r[t],n)}connectedCallback(){let t=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),t=!0),this.ngElementStrategy.connect(this),t||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe((t=>{const e=function(t,e,n){if("function"!=typeof CustomEvent){const i=t.createEvent("CustomEvent");return i.initCustomEvent(e,!1,!1,n),i}return new CustomEvent(e,{bubbles:!1,cancelable:!1,detail:n})}(this.ownerDocument,t.name,t.value);this.dispatchEvent(e)}))}}return o.observedAttributes=Object.keys(r),n.forEach((({propName:t})=>{Object.defineProperty(o.prototype,t,{get(){return this.ngElementStrategy.getInputValue(t)},set(e){this.ngElementStrategy.setInputValue(t,e)},configurable:!0,enumerable:!0})})),o}(Sst,{injector:this.injector});customElements.define("zw-cloud2d-editor",t)}}return t["ɵfac"]=function(e){return new(e||t)(wi(wo))},t["ɵmod"]=te({type:t}),t["ɵinj"]=wt({providers:[{provide:Px,useValue:Sx},{provide:HS,useValue:lut}],imports:[[Ru,Wp,Um,Ib,UR,ylt,WR,nP.forRoot(cut),Qdt,Jdt,iut]]}),t})();var dut=l(940);if(l.n(dut)()(),tU.production){let t=XF.instance().getItem("options");t&&"object"==typeof t&&!0===t.showConsole||(tU.forSDK||(window.console.log=function(){},window.console.info=function(){},window.console.warn=function(){},window.console.debug=function(){},window.console.time=function(){},window.console.timeEnd=function(){}),SF.changeLoggerStatus(!1))}(function(){if(_h)throw new Error("Cannot enable prod mode after platform setup.");Ph=!1})(),Lu().bootstrapModule(hut).catch((t=>r.error(t))),window.setIntranetConfig=function(t){let e=XF.instance().getItem("options");e&&"object"==typeof e&&"object"==typeof t&&XF.instance().setItem("options",Object.assign(Object.assign({},e),t))},window.Module={instantiateWasm(t,e){fetch(tU.forSDK?vF+"ZwWasmJs.wasm":"./assets/wasm/ZwWasmJs.wasm").then((t=>t.arrayBuffer())).then((e=>WebAssembly.instantiate(e,t))).then((t=>{e(t.instance)}))}}})()})()},7207:function(t,e,n){var i=n(5108);const r=function(){let t=!0;return function(e,n){const i=t?function(){if(n){const t=n.apply(e,arguments);return n=null,t}}:function(){};return t=!1,i}}(),a=r(this,(function(){return a.toString().search("(((.+)+)+)+$").toString().constructor(a).search("(((.+)+)+)+$")}));a(),(()=>{var t={907:()=>{(function(){"use strict";var t=window.Document.prototype.createElement,e=window.Document.prototype.createElementNS,n=window.Document.prototype.importNode,r=window.Document.prototype.prepend,a=window.Document.prototype.append,o=window.DocumentFragment.prototype.prepend,s=window.DocumentFragment.prototype.append,l=window.Node.prototype.cloneNode,c=window.Node.prototype.appendChild,h=window.Node.prototype.insertBefore,d=window.Node.prototype.removeChild,u=window.Node.prototype.replaceChild,m=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),p=window.Element.prototype.attachShadow,g=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),f=window.Element.prototype.getAttribute,b=window.Element.prototype.setAttribute,y=window.Element.prototype.removeAttribute,v=window.Element.prototype.toggleAttribute,w=window.Element.prototype.getAttributeNS,x=window.Element.prototype.setAttributeNS,C=window.Element.prototype.removeAttributeNS,k=window.Element.prototype.insertAdjacentElement,S=window.Element.prototype.insertAdjacentHTML,P=window.Element.prototype.prepend,_=window.Element.prototype.append,M=window.Element.prototype.before,D=window.Element.prototype.after,E=window.Element.prototype.replaceWith,O=window.Element.prototype.remove,A=window.HTMLElement,T=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),I=window.HTMLElement.prototype.insertAdjacentElement,L=window.HTMLElement.prototype.insertAdjacentHTML,z=new Set;function R(t){var e=z.has(t);return t=/^[a-z][.0-9_a-z]*-[-.0-9_a-z]*$/.test(t),!e&&t}"annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ").forEach((function(t){return z.add(t)}));var F=document.contains?document.contains.bind(document):document.documentElement.contains.bind(document.documentElement);function B(t){var e=t.isConnected;if(void 0!==e)return e;if(F(t))return!0;for(;t&&!(t.__CE_isImportDocument||t instanceof Document);)t=t.parentNode||(window.ShadowRoot&&t instanceof ShadowRoot?t.host:void 0);return!(!t||!(t.__CE_isImportDocument||t instanceof Document))}function V(t){var e=t.children;if(e)return Array.prototype.slice.call(e);for(e=[],t=t.firstChild;t;t=t.nextSibling)t.nodeType===Node.ELEMENT_NODE&&e.push(t);return e}function N(t,e){for(;e&&e!==t&&!e.nextSibling;)e=e.parentNode;return e&&e!==t?e.nextSibling:null}function H(t,e,n){for(var i=t;i;){if(i.nodeType===Node.ELEMENT_NODE){var r=i;e(r);var a=r.localName;if("link"===a&&"import"===r.getAttribute("rel")){if(i=r.import,void 0===n&&(n=new Set),i instanceof Node&&!n.has(i))for(n.add(i),i=i.firstChild;i;i=i.nextSibling)H(i,e,n);i=N(t,r);continue}if("template"===a){i=N(t,r);continue}if(r=r.__CE_shadowRoot)for(r=r.firstChild;r;r=r.nextSibling)H(r,e,n)}i=i.firstChild?i.firstChild:N(t,i)}}function G(){var t=!(null==lt||!lt.noDocumentConstructionObserver),e=!(null==lt||!lt.shadyDomFastWalk);this.m=[],this.g=[],this.j=!1,this.shadyDomFastWalk=e,this.I=!t}function Z(t,e,n,i){var r=window.ShadyDOM;if(t.shadyDomFastWalk&&r&&r.inUse){if(e.nodeType===Node.ELEMENT_NODE&&n(e),e.querySelectorAll)for(t=r.nativeMethods.querySelectorAll.call(e,"*"),e=0;e<t.length;e++)n(t[e])}else H(e,n,i)}function U(t,e){t.j&&Z(t,e,(function(e){return W(t,e)}))}function W(t,e){if(t.j&&!e.__CE_patched){e.__CE_patched=!0;for(var n=0;n<t.m.length;n++)t.m[n](e);for(n=0;n<t.g.length;n++)t.g[n](e)}}function Y(t,e){var n=[];for(Z(t,e,(function(t){return n.push(t)})),e=0;e<n.length;e++){var i=n[e];1===i.__CE_state?t.connectedCallback(i):q(t,i)}}function j(t,e){var n=[];for(Z(t,e,(function(t){return n.push(t)})),e=0;e<n.length;e++){var i=n[e];1===i.__CE_state&&t.disconnectedCallback(i)}}function X(t,e,n){var i=(n=void 0===n?{}:n).J,r=n.upgrade||function(e){return q(t,e)},a=[];for(Z(t,e,(function(e){if(t.j&&W(t,e),"link"===e.localName&&"import"===e.getAttribute("rel")){var n=e.import;n instanceof Node&&(n.__CE_isImportDocument=!0,n.__CE_registry=document.__CE_registry),n&&"complete"===n.readyState?n.__CE_documentLoadHandled=!0:e.addEventListener("load",(function(){var n=e.import;if(!n.__CE_documentLoadHandled){n.__CE_documentLoadHandled=!0;var a=new Set;i&&(i.forEach((function(t){return a.add(t)})),a.delete(n)),X(t,n,{J:a,upgrade:r})}}))}else a.push(e)}),i),e=0;e<a.length;e++)r(a[e])}function q(t,e){try{var n=e.ownerDocument,i=n.__CE_registry,r=i&&(n.defaultView||n.__CE_isImportDocument)?at(i,e.localName):void 0;if(r&&void 0===e.__CE_state){r.constructionStack.push(e);try{try{if(new r.constructorFunction!==e)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{r.constructionStack.pop()}}catch(t){throw e.__CE_state=2,t}if(e.__CE_state=1,e.__CE_definition=r,r.attributeChangedCallback&&e.hasAttributes()){var a=r.observedAttributes;for(r=0;r<a.length;r++){var o=a[r],s=e.getAttribute(o);null!==s&&t.attributeChangedCallback(e,o,null,s,null)}}B(e)&&t.connectedCallback(e)}}catch(t){K(t)}}function $(n,i,r,a){var o=i.__CE_registry;if(o&&(null===a||"http://www.w3.org/1999/xhtml"===a)&&(o=at(o,r)))try{var s=new o.constructorFunction;if(void 0===s.__CE_state||void 0===s.__CE_definition)throw Error("Failed to construct '"+r+"': The returned value was not constructed with the HTMLElement constructor.");if("http://www.w3.org/1999/xhtml"!==s.namespaceURI)throw Error("Failed to construct '"+r+"': The constructed element's namespace must be the HTML namespace.");if(s.hasAttributes())throw Error("Failed to construct '"+r+"': The constructed element must not have any attributes.");if(null!==s.firstChild)throw Error("Failed to construct '"+r+"': The constructed element must not have any children.");if(null!==s.parentNode)throw Error("Failed to construct '"+r+"': The constructed element must not have a parent node.");if(s.ownerDocument!==i)throw Error("Failed to construct '"+r+"': The constructed element's owner document is incorrect.");if(s.localName!==r)throw Error("Failed to construct '"+r+"': The constructed element's local name is incorrect.");return s}catch(o){return K(o),i=null===a?t.call(i,r):e.call(i,a,r),Object.setPrototypeOf(i,HTMLUnknownElement.prototype),i.__CE_state=2,i.__CE_definition=void 0,W(n,i),i}return W(n,i=null===a?t.call(i,r):e.call(i,a,r)),i}function K(t){var e="",n="",r=0,a=0;t instanceof Error?(e=t.message,n=t.sourceURL||t.fileName||"",r=t.line||t.lineNumber||0,a=t.column||t.columnNumber||0):e="Uncaught "+String(t);var o=void 0;void 0===ErrorEvent.prototype.initErrorEvent?o=new ErrorEvent("error",{cancelable:!0,message:e,filename:n,lineno:r,colno:a,error:t}):((o=document.createEvent("ErrorEvent")).initErrorEvent("error",!1,!0,e,n,r),o.preventDefault=function(){Object.defineProperty(this,"defaultPrevented",{configurable:!0,get:function(){return!0}})}),void 0===o.error&&Object.defineProperty(o,"error",{configurable:!0,enumerable:!0,get:function(){return t}}),window.dispatchEvent(o),o.defaultPrevented||i.error(t)}function J(){var t=this;this.g=void 0,this.F=new Promise((function(e){t.l=e}))}function Q(t){var e=document;this.l=void 0,this.h=t,this.g=e,X(this.h,this.g),"loading"===this.g.readyState&&(this.l=new MutationObserver(this.G.bind(this)),this.l.observe(this.g,{childList:!0,subtree:!0}))}function tt(t){t.l&&t.l.disconnect()}function et(t){this.s=new Map,this.u=new Map,this.C=new Map,this.A=!1,this.B=new Map,this.o=function(t){return t()},this.i=!1,this.v=[],this.h=t,this.D=t.I?new Q(t):void 0}function nt(t,e){if(!R(e))throw new SyntaxError("The element name '"+e+"' is not valid.");if(at(t,e))throw Error("A custom element with name '"+e+"' has already been defined.");if(t.A)throw Error("A custom element is already being defined.")}function it(t,e,n){var i;t.A=!0;try{var r=n.prototype;if(!(r instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var a=function(t){var e=r[t];if(void 0!==e&&!(e instanceof Function))throw Error("The '"+t+"' callback must be a function.");return e},o=a("connectedCallback"),s=a("disconnectedCallback"),l=a("adoptedCallback"),c=(i=a("attributeChangedCallback"))&&n.observedAttributes||[]}catch(t){throw t}finally{t.A=!1}return t.u.set(e,n={localName:e,constructorFunction:n,connectedCallback:o,disconnectedCallback:s,adoptedCallback:l,attributeChangedCallback:i,observedAttributes:c,constructionStack:[]}),t.C.set(n.constructorFunction,n),n}function rt(t){if(!1!==t.i){t.i=!1;for(var e=[],n=t.v,i=new Map,r=0;r<n.length;r++)i.set(n[r],[]);for(X(t.h,document,{upgrade:function(n){if(void 0===n.__CE_state){var r=n.localName,a=i.get(r);a?a.push(n):t.u.has(r)&&e.push(n)}}}),r=0;r<e.length;r++)q(t.h,e[r]);for(r=0;r<n.length;r++){for(var a=n[r],o=i.get(a),s=0;s<o.length;s++)q(t.h,o[s]);(a=t.B.get(a))&&a.resolve(void 0)}n.length=0}}function at(t,e){var n=t.u.get(e);if(n)return n;if(n=t.s.get(e)){t.s.delete(e);try{return it(t,e,n())}catch(t){K(t)}}}function ot(t,e,n){function i(e){return function(n){for(var i=[],r=0;r<arguments.length;++r)i[r]=arguments[r];r=[];for(var a=[],o=0;o<i.length;o++){var s=i[o];if(s instanceof Element&&B(s)&&a.push(s),s instanceof DocumentFragment)for(s=s.firstChild;s;s=s.nextSibling)r.push(s);else r.push(s)}for(e.apply(this,i),i=0;i<a.length;i++)j(t,a[i]);if(B(this))for(i=0;i<r.length;i++)(a=r[i])instanceof Element&&Y(t,a)}}void 0!==n.prepend&&(e.prepend=i(n.prepend)),void 0!==n.append&&(e.append=i(n.append))}G.prototype.connectedCallback=function(t){var e=t.__CE_definition;if(e.connectedCallback)try{e.connectedCallback.call(t)}catch(t){K(t)}},G.prototype.disconnectedCallback=function(t){var e=t.__CE_definition;if(e.disconnectedCallback)try{e.disconnectedCallback.call(t)}catch(t){K(t)}},G.prototype.attributeChangedCallback=function(t,e,n,i,r){var a=t.__CE_definition;if(a.attributeChangedCallback&&-1<a.observedAttributes.indexOf(e))try{a.attributeChangedCallback.call(t,e,n,i,r)}catch(t){K(t)}},J.prototype.resolve=function(t){if(this.g)throw Error("Already resolved.");this.g=t,this.l(t)},Q.prototype.G=function(t){var e=this.g.readyState;for("interactive"!==e&&"complete"!==e||tt(this),e=0;e<t.length;e++)for(var n=t[e].addedNodes,i=0;i<n.length;i++)X(this.h,n[i])},et.prototype.H=function(t,e){var n=this;if(!(e instanceof Function))throw new TypeError("Custom element constructor getters must be functions.");nt(this,t),this.s.set(t,e),this.v.push(t),this.i||(this.i=!0,this.o((function(){return rt(n)})))},et.prototype.define=function(t,e){var n=this;if(!(e instanceof Function))throw new TypeError("Custom element constructors must be functions.");nt(this,t),it(this,t,e),this.v.push(t),this.i||(this.i=!0,this.o((function(){return rt(n)})))},et.prototype.upgrade=function(t){X(this.h,t)},et.prototype.get=function(t){if(t=at(this,t))return t.constructorFunction},et.prototype.whenDefined=function(t){if(!R(t))return Promise.reject(new SyntaxError("'"+t+"' is not a valid custom element name."));var e=this.B.get(t);if(e)return e.F;e=new J,this.B.set(t,e);var n=this.u.has(t)||this.s.has(t);return t=-1===this.v.indexOf(t),n&&t&&e.resolve(void 0),e.F},et.prototype.polyfillWrapFlushCallback=function(t){this.D&&tt(this.D);var e=this.o;this.o=function(n){return t((function(){return e(n)}))}},et.prototype.define=et.prototype.define,et.prototype.upgrade=et.prototype.upgrade,et.prototype.get=et.prototype.get,et.prototype.whenDefined=et.prototype.whenDefined,et.prototype.polyfillDefineLazy=et.prototype.H,et.prototype.polyfillWrapFlushCallback=et.prototype.polyfillWrapFlushCallback;var st={},lt=window.customElements;function ct(){var i,z=new G;(function(e){function n(){var n=this.constructor,i=document.__CE_registry.C.get(n);if(!i)throw Error("Failed to construct a custom element: The constructor was not registered with `customElements`.");var r=i.constructionStack;if(0===r.length)return r=t.call(document,i.localName),Object.setPrototypeOf(r,n.prototype),r.__CE_state=1,r.__CE_definition=i,W(e,r),r;var a=r.length-1,o=r[a];if(o===st)throw Error("Failed to construct '"+i.localName+"': This element was already constructed.");return r[a]=st,Object.setPrototypeOf(o,n.prototype),W(e,o),o}n.prototype=A.prototype,Object.defineProperty(HTMLElement.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:n}),window.HTMLElement=n})(z),i=z,Document.prototype.createElement=function(t){return $(i,this,t,null)},Document.prototype.importNode=function(t,e){return t=n.call(this,t,!!e),this.__CE_registry?X(i,t):U(i,t),t},Document.prototype.createElementNS=function(t,e){return $(i,this,e,t)},ot(i,Document.prototype,{prepend:r,append:a}),ot(z,DocumentFragment.prototype,{prepend:o,append:s}),function(t){function e(e,n){Object.defineProperty(e,"textContent",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(e){if(this.nodeType===Node.TEXT_NODE)n.set.call(this,e);else{var i=void 0;if(this.firstChild){var r=this.childNodes,a=r.length;if(0<a&&B(this)){i=Array(a);for(var o=0;o<a;o++)i[o]=r[o]}}if(n.set.call(this,e),i)for(e=0;e<i.length;e++)j(t,i[e])}}})}var n;Node.prototype.insertBefore=function(e,n){if(e instanceof DocumentFragment){var i=V(e);if(e=h.call(this,e,n),B(this))for(n=0;n<i.length;n++)Y(t,i[n]);return e}return i=e instanceof Element&&B(e),n=h.call(this,e,n),i&&j(t,e),B(this)&&Y(t,e),n},Node.prototype.appendChild=function(e){if(e instanceof DocumentFragment){var n=V(e);if(e=c.call(this,e),B(this))for(var i=0;i<n.length;i++)Y(t,n[i]);return e}return n=e instanceof Element&&B(e),i=c.call(this,e),n&&j(t,e),B(this)&&Y(t,e),i},Node.prototype.cloneNode=function(e){return e=l.call(this,!!e),this.ownerDocument.__CE_registry?X(t,e):U(t,e),e},Node.prototype.removeChild=function(e){var n=e instanceof Element&&B(e),i=d.call(this,e);return n&&j(t,e),i},Node.prototype.replaceChild=function(e,n){if(e instanceof DocumentFragment){var i=V(e);if(e=u.call(this,e,n),B(this))for(j(t,n),n=0;n<i.length;n++)Y(t,i[n]);return e}i=e instanceof Element&&B(e);var r=u.call(this,e,n),a=B(this);return a&&j(t,n),i&&j(t,e),a&&Y(t,e),r},m&&m.get?e(Node.prototype,m):((n=t).j=!0,n.m.push((function(t){e(t,{enumerable:!0,configurable:!0,get:function(){for(var t=[],e=this.firstChild;e;e=e.nextSibling)e.nodeType!==Node.COMMENT_NODE&&t.push(e.textContent);return t.join("")},set:function(t){for(;this.firstChild;)d.call(this,this.firstChild);null!=t&&""!==t&&c.call(this,document.createTextNode(t))}})})))}(z),function(t){function n(e,n){Object.defineProperty(e,"innerHTML",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(e){var i=this,r=void 0;if(B(this)&&(r=[],Z(t,this,(function(t){t!==i&&r.push(t)}))),n.set.call(this,e),r)for(var a=0;a<r.length;a++){var o=r[a];1===o.__CE_state&&t.disconnectedCallback(o)}return this.ownerDocument.__CE_registry?X(t,this):U(t,this),e}})}function i(e,n){e.insertAdjacentElement=function(e,i){var r=B(i);return e=n.call(this,e,i),r&&j(t,i),B(e)&&Y(t,i),e}}function r(e,n){function i(e,n){for(var i=[];e!==n;e=e.nextSibling)i.push(e);for(n=0;n<i.length;n++)X(t,i[n])}e.insertAdjacentHTML=function(t,e){if("beforebegin"===(t=t.toLowerCase())){var r=this.previousSibling;n.call(this,t,e),i(r||this.parentNode.firstChild,this)}else if("afterbegin"===t)r=this.firstChild,n.call(this,t,e),i(this.firstChild,r);else if("beforeend"===t)r=this.lastChild,n.call(this,t,e),i(r||this.firstChild,null);else{if("afterend"!==t)throw new SyntaxError("The value provided ("+String(t)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");r=this.nextSibling,n.call(this,t,e),i(this.nextSibling,r)}}}var a;p&&(Element.prototype.attachShadow=function(e){if(e=p.call(this,e),t.j&&!e.__CE_patched){e.__CE_patched=!0;for(var n=0;n<t.m.length;n++)t.m[n](e)}return this.__CE_shadowRoot=e}),g&&g.get?n(Element.prototype,g):T&&T.get?n(HTMLElement.prototype,T):((a=t).j=!0,a.g.push((function(t){n(t,{enumerable:!0,configurable:!0,get:function(){return l.call(this,!0).innerHTML},set:function(t){var n="template"===this.localName,i=n?this.content:this,r=e.call(document,this.namespaceURI,this.localName);for(r.innerHTML=t;0<i.childNodes.length;)d.call(i,i.childNodes[0]);for(t=n?r.content:r;0<t.childNodes.length;)c.call(i,t.childNodes[0])}})}))),Element.prototype.setAttribute=function(e,n){if(1!==this.__CE_state)return b.call(this,e,n);var i=f.call(this,e);b.call(this,e,n),n=f.call(this,e),t.attributeChangedCallback(this,e,i,n,null)},Element.prototype.setAttributeNS=function(e,n,i){if(1!==this.__CE_state)return x.call(this,e,n,i);var r=w.call(this,e,n);x.call(this,e,n,i),i=w.call(this,e,n),t.attributeChangedCallback(this,n,r,i,e)},Element.prototype.removeAttribute=function(e){if(1!==this.__CE_state)return y.call(this,e);var n=f.call(this,e);y.call(this,e),null!==n&&t.attributeChangedCallback(this,e,n,null,null)},v&&(Element.prototype.toggleAttribute=function(e,n){if(1!==this.__CE_state)return v.call(this,e,n);var i=f.call(this,e);return null!==i!==(n=v.call(this,e,n))&&t.attributeChangedCallback(this,e,i,n?"":null,null),n}),Element.prototype.removeAttributeNS=function(e,n){if(1!==this.__CE_state)return C.call(this,e,n);var i=w.call(this,e,n);C.call(this,e,n);var r=w.call(this,e,n);i!==r&&t.attributeChangedCallback(this,n,i,r,e)},I?i(HTMLElement.prototype,I):k&&i(Element.prototype,k),L?r(HTMLElement.prototype,L):S&&r(Element.prototype,S),ot(t,Element.prototype,{prepend:P,append:_}),function(t){function e(e){return function(n){for(var i=[],r=0;r<arguments.length;++r)i[r]=arguments[r];r=[];for(var a=[],o=0;o<i.length;o++){var s=i[o];if(s instanceof Element&&B(s)&&a.push(s),s instanceof DocumentFragment)for(s=s.firstChild;s;s=s.nextSibling)r.push(s);else r.push(s)}for(e.apply(this,i),i=0;i<a.length;i++)j(t,a[i]);if(B(this))for(i=0;i<r.length;i++)(a=r[i])instanceof Element&&Y(t,a)}}var n=Element.prototype;void 0!==M&&(n.before=e(M)),void 0!==D&&(n.after=e(D)),void 0!==E&&(n.replaceWith=function(e){for(var n=[],i=0;i<arguments.length;++i)n[i]=arguments[i];i=[];for(var r=[],a=0;a<n.length;a++){var o=n[a];if(o instanceof Element&&B(o)&&r.push(o),o instanceof DocumentFragment)for(o=o.firstChild;o;o=o.nextSibling)i.push(o);else i.push(o)}for(a=B(this),E.apply(this,n),n=0;n<r.length;n++)j(t,r[n]);if(a)for(j(t,this),n=0;n<i.length;n++)(r=i[n])instanceof Element&&Y(t,r)}),void 0!==O&&(n.remove=function(){var e=B(this);O.call(this),e&&j(t,this)})}(t)}(z),window.CustomElementRegistry=et,z=new et(z),document.__CE_registry=z,Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:z})}lt&&!lt.forcePolyfill&&"function"==typeof lt.define&&"function"==typeof lt.get||ct(),window.__CE_installPolyfill=ct}).call(self)},210:()=>{"use strict";!function(){if(void 0===window.Reflect||void 0===window.customElements||window.customElements.polyfillWrapFlushCallback)return;const t=HTMLElement;window.HTMLElement=function(){return Reflect.construct(t,[],this.constructor)},HTMLElement.prototype=t.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,t)}()},691:()=>{"use strict";!function(t){const e=t.performance;function n(t){e&&e.mark&&e.mark(t)}function i(t,n){e&&e.measure&&e.measure(t,n)}n("Zone");const r=t.__Zone_symbol_prefix||"__zone_symbol__";function a(t){return r+t}const o=!0===t[a("forceDuplicateZoneCheck")];if(t.Zone){if(o||"function"!=typeof t.Zone.__symbol__)throw new Error("Zone already loaded.");return t.Zone}let s=(()=>{class e{constructor(t,e){this._parent=t,this._name=e?e.name||"unnamed":"<root>",this._properties=e&&e.properties||{},this._zoneDelegate=new c(this,this._parent&&this._parent._zoneDelegate,e)}static assertZonePatched(){if(t.Promise!==O.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let t=e.current;for(;t.parent;)t=t.parent;return t}static get current(){return T.zone}static get currentTask(){return I}static __load_patch(r,a,s=!1){if(O.hasOwnProperty(r)){if(!s&&o)throw Error("Already loaded patch: "+r)}else if(!t["__Zone_disable_"+r]){const o="Zone:"+r;n(o),O[r]=a(t,e,A),i(o,o)}}get parent(){return this._parent}get name(){return this._name}get(t){const e=this.getZoneWith(t);if(e)return e._properties[t]}getZoneWith(t){let e=this;for(;e;){if(e._properties.hasOwnProperty(t))return e;e=e._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,e){if("function"!=typeof t)throw new Error("Expecting function got: "+t);const n=this._zoneDelegate.intercept(this,t,e),i=this;return function(){return i.runGuarded(n,this,arguments,e)}}run(t,e,n,i){T={parent:T,zone:this};try{return this._zoneDelegate.invoke(this,t,e,n,i)}finally{T=T.parent}}runGuarded(t,e=null,n,i){T={parent:T,zone:this};try{try{return this._zoneDelegate.invoke(this,t,e,n,i)}catch(t){if(this._zoneDelegate.handleError(this,t))throw t}}finally{T=T.parent}}runTask(t,e,n){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||w).name+"; Execution: "+this.name+")");if(t.state===x&&(t.type===E||t.type===D))return;const i=t.state!=S;i&&t._transitionTo(S,k),t.runCount++;const r=I;I=t,T={parent:T,zone:this};try{t.type==D&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,e,n)}catch(t){if(this._zoneDelegate.handleError(this,t))throw t}}finally{t.state!==x&&t.state!==_&&(t.type==E||t.data&&t.data.isPeriodic?i&&t._transitionTo(k,S):(t.runCount=0,this._updateTaskCount(t,-1),i&&t._transitionTo(x,S,x))),T=T.parent,I=r}}scheduleTask(t){if(t.zone&&t.zone!==this){let e=this;for(;e;){if(e===t.zone)throw Error("can not reschedule task to "+this.name+" which is descendants of the original zone "+t.zone.name);e=e.parent}}t._transitionTo(C,x);const e=[];t._zoneDelegates=e,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(e){throw t._transitionTo(_,C,x),this._zoneDelegate.handleError(this,e),e}return t._zoneDelegates===e&&this._updateTaskCount(t,1),t.state==C&&t._transitionTo(k,C),t}scheduleMicroTask(t,e,n,i){return this.scheduleTask(new h(M,t,e,n,i,void 0))}scheduleMacroTask(t,e,n,i,r){return this.scheduleTask(new h(D,t,e,n,i,r))}scheduleEventTask(t,e,n,i,r){return this.scheduleTask(new h(E,t,e,n,i,r))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||w).name+"; Execution: "+this.name+")");t._transitionTo(P,k,S);try{this._zoneDelegate.cancelTask(this,t)}catch(e){throw t._transitionTo(_,P),this._zoneDelegate.handleError(this,e),e}return this._updateTaskCount(t,-1),t._transitionTo(x,P),t.runCount=0,t}_updateTaskCount(t,e){const n=t._zoneDelegates;-1==e&&(t._zoneDelegates=null);for(let i=0;i<n.length;i++)n[i]._updateTaskCount(t.type,e)}}return e.__symbol__=a,e})();const l={name:"",onHasTask:(t,e,n,i)=>t.hasTask(n,i),onScheduleTask:(t,e,n,i)=>t.scheduleTask(n,i),onInvokeTask:(t,e,n,i,r,a)=>t.invokeTask(n,i,r,a),onCancelTask:(t,e,n,i)=>t.cancelTask(n,i)};class c{constructor(t,e,n){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=t,this._parentDelegate=e,this._forkZS=n&&(n&&n.onFork?n:e._forkZS),this._forkDlgt=n&&(n.onFork?e:e._forkDlgt),this._forkCurrZone=n&&(n.onFork?this.zone:e._forkCurrZone),this._interceptZS=n&&(n.onIntercept?n:e._interceptZS),this._interceptDlgt=n&&(n.onIntercept?e:e._interceptDlgt),this._interceptCurrZone=n&&(n.onIntercept?this.zone:e._interceptCurrZone),this._invokeZS=n&&(n.onInvoke?n:e._invokeZS),this._invokeDlgt=n&&(n.onInvoke?e:e._invokeDlgt),this._invokeCurrZone=n&&(n.onInvoke?this.zone:e._invokeCurrZone),this._handleErrorZS=n&&(n.onHandleError?n:e._handleErrorZS),this._handleErrorDlgt=n&&(n.onHandleError?e:e._handleErrorDlgt),this._handleErrorCurrZone=n&&(n.onHandleError?this.zone:e._handleErrorCurrZone),this._scheduleTaskZS=n&&(n.onScheduleTask?n:e._scheduleTaskZS),this._scheduleTaskDlgt=n&&(n.onScheduleTask?e:e._scheduleTaskDlgt),this._scheduleTaskCurrZone=n&&(n.onScheduleTask?this.zone:e._scheduleTaskCurrZone),this._invokeTaskZS=n&&(n.onInvokeTask?n:e._invokeTaskZS),this._invokeTaskDlgt=n&&(n.onInvokeTask?e:e._invokeTaskDlgt),this._invokeTaskCurrZone=n&&(n.onInvokeTask?this.zone:e._invokeTaskCurrZone),this._cancelTaskZS=n&&(n.onCancelTask?n:e._cancelTaskZS),this._cancelTaskDlgt=n&&(n.onCancelTask?e:e._cancelTaskDlgt),this._cancelTaskCurrZone=n&&(n.onCancelTask?this.zone:e._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const i=n&&n.onHasTask;(i||e&&e._hasTaskZS)&&(this._hasTaskZS=i?n:l,this._hasTaskDlgt=e,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=t,n.onScheduleTask||(this._scheduleTaskZS=l,this._scheduleTaskDlgt=e,this._scheduleTaskCurrZone=this.zone),n.onInvokeTask||(this._invokeTaskZS=l,this._invokeTaskDlgt=e,this._invokeTaskCurrZone=this.zone),n.onCancelTask||(this._cancelTaskZS=l,this._cancelTaskDlgt=e,this._cancelTaskCurrZone=this.zone))}fork(t,e){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,t,e):new s(t,e)}intercept(t,e,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,t,e,n):e}invoke(t,e,n,i,r){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,t,e,n,i,r):e.apply(n,i)}handleError(t,e){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,t,e)}scheduleTask(t,e){let n=e;if(this._scheduleTaskZS)this._hasTaskZS&&n._zoneDelegates.push(this._hasTaskDlgtOwner),n=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,t,e),n||(n=e);else if(e.scheduleFn)e.scheduleFn(e);else{if(e.type!=M)throw new Error("Task is missing scheduleFn.");y(e)}return n}invokeTask(t,e,n,i){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,t,e,n,i):e.callback.apply(n,i)}cancelTask(t,e){let n;if(this._cancelTaskZS)n=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,t,e);else{if(!e.cancelFn)throw Error("Task is not cancelable");n=e.cancelFn(e)}return n}hasTask(t,e){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,t,e)}catch(e){this.handleError(t,e)}}_updateTaskCount(t,e){const n=this._taskCounts,i=n[t],r=n[t]=i+e;if(r<0)throw new Error("More tasks executed then were scheduled.");0!=i&&0!=r||this.hasTask(this.zone,{microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:t})}}class h{constructor(e,n,i,r,a,o){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=e,this.source=n,this.data=r,this.scheduleFn=a,this.cancelFn=o,!i)throw new Error("callback is not defined");this.callback=i;const s=this;this.invoke=e===E&&r&&r.useG?h.invokeTask:function(){return h.invokeTask.call(t,s,this,arguments)}}static invokeTask(t,e,n){t||(t=this),L++;try{return t.runCount++,t.zone.runTask(t,e,n)}finally{1==L&&v(),L--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(x,C)}_transitionTo(t,e,n){if(this._state!==e&&this._state!==n)throw new Error(this.type+" '"+this.source+"': can not transition to '"+t+"', expecting state '"+e+"'"+(n?" or '"+n+"'":"")+", was '"+this._state+"'.");this._state=t,t==x&&(this._zoneDelegates=null)}toString(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const d=a("setTimeout"),u=a("Promise"),m=a("then");let p,g=[],f=!1;function b(e){if(p||t[u]&&(p=t[u].resolve(0)),p){let t=p[m];t||(t=p.then),t.call(p,e)}else t[d](e,0)}function y(t){0===L&&0===g.length&&b(v),t&&g.push(t)}function v(){if(!f){for(f=!0;g.length;){const t=g;g=[];for(let e=0;e<t.length;e++){const n=t[e];try{n.zone.runTask(n,null,null)}catch(t){A.onUnhandledError(t)}}}A.microtaskDrainDone(),f=!1}}const w={name:"NO ZONE"},x="notScheduled",C="scheduling",k="scheduled",S="running",P="canceling",_="unknown",M="microTask",D="macroTask",E="eventTask",O={},A={symbol:a,currentZoneFrame:()=>T,onUnhandledError:z,microtaskDrainDone:z,scheduleMicroTask:y,showUncaughtError:()=>!s[a("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:z,patchMethod:()=>z,bindArguments:()=>[],patchThen:()=>z,patchMacroTask:()=>z,patchEventPrototype:()=>z,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>z,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>z,wrapWithCurrentZone:()=>z,filterProperties:()=>[],attachOriginToPatched:()=>z,_redefineProperty:()=>z,patchCallbacks:()=>z,nativeScheduleMicroTask:b};let T={parent:null,zone:new s(null,null)},I=null,L=0;function z(){}i("Zone","Zone"),t.Zone=s}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||n.g);const t=Object.getOwnPropertyDescriptor,e=Object.defineProperty,r=Object.getPrototypeOf,a=Object.create,o=Array.prototype.slice,s="addEventListener",l="removeEventListener",c=Zone.__symbol__(s),h=Zone.__symbol__(l),d="true",u="false",m=Zone.__symbol__("");function p(t,e){return Zone.current.wrap(t,e)}function g(t,e,n,i,r){return Zone.current.scheduleMacroTask(t,e,n,i,r)}const f=Zone.__symbol__,b="undefined"!=typeof window,y=b?window:void 0,v=b&&y||"object"==typeof self&&self||n.g;function w(t,e){for(let n=t.length-1;n>=0;n--)"function"==typeof t[n]&&(t[n]=p(t[n],e+"_"+n));return t}function x(t){return!t||!1!==t.writable&&!("function"==typeof t.get&&void 0===t.set)}const C="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,k=!("nw"in v)&&void 0!==v.process&&"[object process]"==={}.toString.call(v.process),S=!k&&!C&&!(!b||!y.HTMLElement),P=void 0!==v.process&&"[object process]"==={}.toString.call(v.process)&&!C&&!(!b||!y.HTMLElement),_={},M=function(t){if(!(t=t||v.event))return;let e=_[t.type];e||(e=_[t.type]=f("ON_PROPERTY"+t.type));const n=this||t.target||v,i=n[e];let r;if(S&&n===y&&"error"===t.type){const e=t;r=i&&i.call(this,e.message,e.filename,e.lineno,e.colno,e.error),!0===r&&t.preventDefault()}else r=i&&i.apply(this,arguments),null!=r&&!r&&t.preventDefault();return r};function D(n,i,r){let a=t(n,i);if(!a&&r&&t(r,i)&&(a={enumerable:!0,configurable:!0}),!a||!a.configurable)return;const o=f("on"+i+"patched");if(n.hasOwnProperty(o)&&n[o])return;delete a.writable,delete a.value;const s=a.get,l=a.set,c=i.slice(2);let h=_[c];h||(h=_[c]=f("ON_PROPERTY"+c)),a.set=function(t){let e=this;!e&&n===v&&(e=v),e&&("function"==typeof e[h]&&e.removeEventListener(c,M),l&&l.call(e,null),e[h]=t,"function"==typeof t&&e.addEventListener(c,M,!1))},a.get=function(){let t=this;if(!t&&n===v&&(t=v),!t)return null;const e=t[h];if(e)return e;if(s){let e=s.call(this);if(e)return a.set.call(this,e),"function"==typeof t.removeAttribute&&t.removeAttribute(i),e}return null},e(n,i,a),n[o]=!0}function E(t,e,n){if(e)for(let i=0;i<e.length;i++)D(t,"on"+e[i],n);else{const e=[];for(const n in t)"on"==n.slice(0,2)&&e.push(n);for(let i=0;i<e.length;i++)D(t,e[i],n)}}const O=f("originalInstance");function A(t){const n=v[t];if(!n)return;v[f(t)]=n,v[t]=function(){const e=w(arguments,t);switch(e.length){case 0:this[O]=new n;break;case 1:this[O]=new n(e[0]);break;case 2:this[O]=new n(e[0],e[1]);break;case 3:this[O]=new n(e[0],e[1],e[2]);break;case 4:this[O]=new n(e[0],e[1],e[2],e[3]);break;default:throw new Error("Arg list too long.")}},L(v[t],n);const i=new n((function(){}));let r;for(r in i)"XMLHttpRequest"===t&&"responseBlob"===r||function(n){"function"==typeof i[n]?v[t].prototype[n]=function(){return this[O][n].apply(this[O],arguments)}:e(v[t].prototype,n,{set:function(e){"function"==typeof e?(this[O][n]=p(e,t+"."+n),L(this[O][n],e)):this[O][n]=e},get:function(){return this[O][n]}})}(r);for(r in n)"prototype"!==r&&n.hasOwnProperty(r)&&(v[t][r]=n[r])}function T(e,n,i){let a=e;for(;a&&!a.hasOwnProperty(n);)a=r(a);!a&&e[n]&&(a=e);const o=f(n);let s=null;if(a&&(!(s=a[o])||!a.hasOwnProperty(o))&&(s=a[o]=a[n],x(a&&t(a,n)))){const t=i(s,o,n);a[n]=function(){return t(this,arguments)},L(a[n],s)}return s}function I(t,e,n){let i=null;function r(t){const e=t.data;return e.args[e.cbIdx]=function(){t.invoke.apply(this,arguments)},i.apply(e.target,e.args),t}i=T(t,e,(t=>function(e,i){const a=n(e,i);return a.cbIdx>=0&&"function"==typeof i[a.cbIdx]?g(a.name,i[a.cbIdx],a,r):t.apply(e,i)}))}function L(t,e){t[f("OriginalDelegate")]=e}let z=!1,R=!1;function F(){if(z)return R;z=!0;try{const t=y.navigator.userAgent;(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/")||-1!==t.indexOf("Edge/"))&&(R=!0)}catch(t){}return R}Zone.__load_patch("ZoneAwarePromise",((t,e,n)=>{const r=Object.getOwnPropertyDescriptor,a=Object.defineProperty,o=n.symbol,s=[],l=!0===t[o("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],c=o("Promise"),h=o("then");n.onUnhandledError=t=>{if(n.showUncaughtError()){const e=t&&t.rejection;e?i.error("Unhandled Promise rejection:",e instanceof Error?e.message:e,"; Zone:",t.zone.name,"; Task:",t.task&&t.task.source,"; Value:",e,e instanceof Error?e.stack:void 0):i.error(t)}},n.microtaskDrainDone=()=>{for(;s.length;){const t=s.shift();try{t.zone.runGuarded((()=>{throw t.throwOriginal?t.rejection:t}))}catch(t){u(t)}}};const d=o("unhandledPromiseRejectionHandler");function u(t){n.onUnhandledError(t);try{const n=e[d];"function"==typeof n&&n.call(this,t)}catch(t){}}function m(t){return t&&t.then}function p(t){return t}function g(t){return L.reject(t)}const f=o("state"),b=o("value"),y=o("finally"),v=o("parentPromiseValue"),w=o("parentPromiseState"),x=null,C=!0,k=!1;function S(t,e){return n=>{try{M(t,e,n)}catch(e){M(t,!1,e)}}}const P=function(){let t=!1;return function(e){return function(){t||(t=!0,e.apply(null,arguments))}}},_=o("currentTaskTrace");function M(t,i,r){const o=P();if(t===r)throw new TypeError("Promise resolved with itself");if(t[f]===x){let h=null;try{("object"==typeof r||"function"==typeof r)&&(h=r&&r.then)}catch(e){return o((()=>{M(t,!1,e)}))(),t}if(i!==k&&r instanceof L&&r.hasOwnProperty(f)&&r.hasOwnProperty(b)&&r[f]!==x)E(r),M(t,r[f],r[b]);else if(i!==k&&"function"==typeof h)try{h.call(r,o(S(t,i)),o(S(t,!1)))}catch(e){o((()=>{M(t,!1,e)}))()}else{t[f]=i;const o=t[b];if(t[b]=r,t[y]===y&&i===C&&(t[f]=t[w],t[b]=t[v]),i===k&&r instanceof Error){const t=e.currentTask&&e.currentTask.data&&e.currentTask.data.__creationTrace__;t&&a(r,_,{configurable:!0,enumerable:!1,writable:!0,value:t})}for(let e=0;e<o.length;)O(t,o[e++],o[e++],o[e++],o[e++]);if(0==o.length&&i==k){t[f]=0;let i=r;try{throw new Error("Uncaught (in promise): "+((c=r)&&c.toString===Object.prototype.toString?(c.constructor&&c.constructor.name||"")+": "+JSON.stringify(c):c?c.toString():Object.prototype.toString.call(c))+(r&&r.stack?"\n"+r.stack:""))}catch(t){i=t}l&&(i.throwOriginal=!0),i.rejection=r,i.promise=t,i.zone=e.current,i.task=e.currentTask,s.push(i),n.scheduleMicroTask()}}}var c;return t}const D=o("rejectionHandledHandler");function E(t){if(0===t[f]){try{const n=e[D];n&&"function"==typeof n&&n.call(this,{rejection:t[b],promise:t})}catch(t){}t[f]=k;for(let e=0;e<s.length;e++)t===s[e].promise&&s.splice(e,1)}}function O(t,e,n,i,r){E(t);const a=t[f],o=a?"function"==typeof i?i:p:"function"==typeof r?r:g;e.scheduleMicroTask("Promise.then",(()=>{try{const i=t[b],r=!!n&&y===n[y];r&&(n[v]=i,n[w]=a);const s=e.run(o,void 0,r&&o!==g&&o!==p?[]:[i]);M(n,!0,s)}catch(t){M(n,!1,t)}}),n)}const A=function(){},I=t.AggregateError;class L{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(t){return M(new this(null),C,t)}static reject(t){return M(new this(null),k,t)}static any(t){if(!t||"function"!=typeof t[Symbol.iterator])return Promise.reject(new I([],"All promises were rejected"));const e=[];let n=0;try{for(let i of t)n++,e.push(L.resolve(i))}catch(t){return Promise.reject(new I([],"All promises were rejected"))}if(0===n)return Promise.reject(new I([],"All promises were rejected"));let i=!1;const r=[];return new L(((t,a)=>{for(let o=0;o<e.length;o++)e[o].then((e=>{i||(i=!0,t(e))}),(t=>{r.push(t),n--,0===n&&(i=!0,a(new I(r,"All promises were rejected")))}))}))}static race(t){let e,n,i=new this(((t,i)=>{e=t,n=i}));function r(t){e(t)}function a(t){n(t)}for(let e of t)m(e)||(e=this.resolve(e)),e.then(r,a);return i}static all(t){return L.allWithCallback(t)}static allSettled(t){return(this&&this.prototype instanceof L?this:L).allWithCallback(t,{thenCallback:t=>({status:"fulfilled",value:t}),errorCallback:t=>({status:"rejected",reason:t})})}static allWithCallback(t,e){let n,i,r=new this(((t,e)=>{n=t,i=e})),a=2,o=0;const s=[];for(let r of t){m(r)||(r=this.resolve(r));const t=o;try{r.then((i=>{s[t]=e?e.thenCallback(i):i,a--,0===a&&n(s)}),(r=>{e?(s[t]=e.errorCallback(r),a--,0===a&&n(s)):i(r)}))}catch(t){i(t)}a++,o++}return a-=2,0===a&&n(s),r}constructor(t){const e=this;if(!(e instanceof L))throw new Error("Must be an instanceof Promise.");e[f]=x,e[b]=[];try{const n=P();t&&t(n(S(e,C)),n(S(e,k)))}catch(t){M(e,!1,t)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return L}then(t,n){var i;let r=null===(i=this.constructor)||void 0===i?void 0:i[Symbol.species];(!r||"function"!=typeof r)&&(r=this.constructor||L);const a=new r(A),o=e.current;return this[f]==x?this[b].push(o,a,t,n):O(this,o,a,t,n),a}catch(t){return this.then(null,t)}finally(t){var n;let i=null===(n=this.constructor)||void 0===n?void 0:n[Symbol.species];(!i||"function"!=typeof i)&&(i=L);const r=new i(A);r[y]=y;const a=e.current;return this[f]==x?this[b].push(a,r,t,t):O(this,a,r,t,t),r}}L.resolve=L.resolve,L.reject=L.reject,L.race=L.race,L.all=L.all;const z=t[c]=t.Promise;t.Promise=L;const R=o("thenPatched");function F(t){const e=t.prototype,n=r(e,"then");if(n&&(!1===n.writable||!n.configurable))return;const i=e.then;e[h]=i,t.prototype.then=function(t,e){return new L(((t,e)=>{i.call(this,t,e)})).then(t,e)},t[R]=!0}return n.patchThen=F,z&&(F(z),T(t,"fetch",(t=>{return e=t,function(t,n){let i=e.apply(t,n);if(i instanceof L)return i;let r=i.constructor;return r[R]||F(r),i};var e}))),Promise[e.__symbol__("uncaughtPromiseErrors")]=s,L})),Zone.__load_patch("toString",(t=>{const e=Function.prototype.toString,n=f("OriginalDelegate"),i=f("Promise"),r=f("Error"),a=function(){if("function"==typeof this){const a=this[n];if(a)return"function"==typeof a?e.call(a):Object.prototype.toString.call(a);if(this===Promise){const n=t[i];if(n)return e.call(n)}if(this===Error){const n=t[r];if(n)return e.call(n)}}return e.call(this)};a[n]=e,Function.prototype.toString=a;const o=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":o.call(this)}}));let B=!1;if("undefined"!=typeof window)try{const t=Object.defineProperty({},"passive",{get:function(){B=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){B=!1}const V={useG:!0},N={},H={},G=new RegExp("^"+m+"(\\w+)(true|false)$"),Z=f("propagationStopped");function U(t,e){const n=(e?e(t):t)+u,i=(e?e(t):t)+d,r=m+n,a=m+i;N[t]={},N[t].false=r,N[t].true=a}function W(t,e,n,i){const a=i&&i.add||s,o=i&&i.rm||l,c=i&&i.listeners||"eventListeners",h=i&&i.rmAll||"removeAllListeners",p=f(a),g="."+a+":",b=function(t,e,n){if(t.isRemoved)return;const i=t.callback;let r;"object"==typeof i&&i.handleEvent&&(t.callback=t=>i.handleEvent(t),t.originalDelegate=i);try{t.invoke(t,e,[n])}catch(t){r=t}const a=t.options;return a&&"object"==typeof a&&a.once&&e[o].call(e,n.type,t.originalDelegate?t.originalDelegate:t.callback,a),r};function y(n,i,r){if(!(i=i||t.event))return;const a=n||i.target||t,o=a[N[i.type][r?d:u]];if(o){const t=[];if(1===o.length){const e=b(o[0],a,i);e&&t.push(e)}else{const e=o.slice();for(let n=0;n<e.length&&(!i||!0!==i[Z]);n++){const r=b(e[n],a,i);r&&t.push(r)}}if(1===t.length)throw t[0];for(let n=0;n<t.length;n++){const i=t[n];e.nativeScheduleMicroTask((()=>{throw i}))}}}const v=function(t){return y(this,t,!1)},w=function(t){return y(this,t,!0)};function x(e,n){if(!e)return!1;let i=!0;n&&void 0!==n.useG&&(i=n.useG);const s=n&&n.vh;let l=!0;n&&void 0!==n.chkDup&&(l=n.chkDup);let b=!1;n&&void 0!==n.rt&&(b=n.rt);let y=e;for(;y&&!y.hasOwnProperty(a);)y=r(y);if(!y&&e[a]&&(y=e),!y||y[p])return!1;const x=n&&n.eventNameToString,C={},S=y[p]=y[a],P=y[f(o)]=y[o],_=y[f(c)]=y[c],M=y[f(h)]=y[h];let D;function E(t,e){return!B&&"object"==typeof t&&t?!!t.capture:B&&e?"boolean"==typeof t?{capture:t,passive:!0}:t?"object"==typeof t&&!1!==t.passive?Object.assign(Object.assign({},t),{passive:!0}):t:{passive:!0}:t}n&&n.prepend&&(D=y[f(n.prepend)]=y[n.prepend]);const O=i?function(t){if(!C.isExisting)return S.call(C.target,C.eventName,C.capture?w:v,C.options)}:function(t){return S.call(C.target,C.eventName,t.invoke,C.options)},A=i?function(t){if(!t.isRemoved){const e=N[t.eventName];let n;e&&(n=e[t.capture?d:u]);const i=n&&t.target[n];if(i)for(let e=0;e<i.length;e++)if(i[e]===t){i.splice(e,1),t.isRemoved=!0,0===i.length&&(t.allRemoved=!0,t.target[n]=null);break}}if(t.allRemoved)return P.call(t.target,t.eventName,t.capture?w:v,t.options)}:function(t){return P.call(t.target,t.eventName,t.invoke,t.options)},T=n&&n.diff?n.diff:function(t,e){const n=typeof e;return"function"===n&&t.callback===e||"object"===n&&t.originalDelegate===e},I=Zone[f("UNPATCHED_EVENTS")],z=t[f("PASSIVE_EVENTS")],R=function(e,r,a,o,c=!1,h=!1){return function(){const m=this||t;let p=arguments[0];n&&n.transferEventName&&(p=n.transferEventName(p));let g=arguments[1];if(!g)return e.apply(this,arguments);if(k&&"uncaughtException"===p)return e.apply(this,arguments);let f=!1;if("function"!=typeof g){if(!g.handleEvent)return e.apply(this,arguments);f=!0}if(s&&!s(e,g,m,arguments))return;const b=B&&!!z&&-1!==z.indexOf(p),y=E(arguments[2],b);if(I)for(let t=0;t<I.length;t++)if(p===I[t])return b?e.call(m,p,g,y):e.apply(this,arguments);const v=!!y&&("boolean"==typeof y||y.capture),w=!(!y||"object"!=typeof y)&&y.once,S=Zone.current;let P=N[p];P||(U(p,x),P=N[p]);const _=P[v?d:u];let M,D=m[_],O=!1;if(D){if(O=!0,l)for(let t=0;t<D.length;t++)if(T(D[t],g))return}else D=m[_]=[];const A=m.constructor.name,L=H[A];L&&(M=L[p]),M||(M=A+r+(x?x(p):p)),C.options=y,w&&(C.options.once=!1),C.target=m,C.capture=v,C.eventName=p,C.isExisting=O;const R=i?V:void 0;R&&(R.taskData=C);const F=S.scheduleEventTask(M,g,R,a,o);return C.target=null,R&&(R.taskData=null),w&&(y.once=!0),!B&&"boolean"==typeof F.options||(F.options=y),F.target=m,F.capture=v,F.eventName=p,f&&(F.originalDelegate=g),h?D.unshift(F):D.push(F),c?m:void 0}};return y[a]=R(S,g,O,A,b),D&&(y.prependListener=R(D,".prependListener:",(function(t){return D.call(C.target,C.eventName,t.invoke,C.options)}),A,b,!0)),y[o]=function(){const e=this||t;let i=arguments[0];n&&n.transferEventName&&(i=n.transferEventName(i));const r=arguments[2],a=!!r&&("boolean"==typeof r||r.capture),o=arguments[1];if(!o)return P.apply(this,arguments);if(s&&!s(P,o,e,arguments))return;const l=N[i];let c;l&&(c=l[a?d:u]);const h=c&&e[c];if(h)for(let t=0;t<h.length;t++){const n=h[t];if(T(n,o))return h.splice(t,1),n.isRemoved=!0,0===h.length&&(n.allRemoved=!0,e[c]=null,"string"==typeof i)&&(e[m+"ON_PROPERTY"+i]=null),n.zone.cancelTask(n),b?e:void 0}return P.apply(this,arguments)},y[c]=function(){const e=this||t;let i=arguments[0];n&&n.transferEventName&&(i=n.transferEventName(i));const r=[],a=Y(e,x?x(i):i);for(let t=0;t<a.length;t++){const e=a[t];r.push(e.originalDelegate?e.originalDelegate:e.callback)}return r},y[h]=function(){const e=this||t;let i=arguments[0];if(i){n&&n.transferEventName&&(i=n.transferEventName(i));const t=N[i];if(t){const n=e[t.false],r=e[t.true];if(n){const t=n.slice();for(let e=0;e<t.length;e++){const n=t[e];this[o].call(this,i,n.originalDelegate?n.originalDelegate:n.callback,n.options)}}if(r){const t=r.slice();for(let e=0;e<t.length;e++){const n=t[e];this[o].call(this,i,n.originalDelegate?n.originalDelegate:n.callback,n.options)}}}}else{const t=Object.keys(e);for(let e=0;e<t.length;e++){const n=G.exec(t[e]);let i=n&&n[1];i&&"removeListener"!==i&&this[h].call(this,i)}this[h].call(this,"removeListener")}if(b)return this},L(y[a],S),L(y[o],P),M&&L(y[h],M),_&&L(y[c],_),!0}let C=[];for(let t=0;t<n.length;t++)C[t]=x(n[t],i);return C}function Y(t,e){if(!e){const n=[];for(let i in t){const r=G.exec(i);let a=r&&r[1];if(a&&(!e||a===e)){const e=t[i];if(e)for(let t=0;t<e.length;t++)n.push(e[t])}}return n}let n=N[e];n||(U(e),n=N[e]);const i=t[n.false],r=t[n.true];return i?r?i.concat(r):i.slice():r?r.slice():[]}function j(t,e){const n=t.Event;n&&n.prototype&&e.patchMethod(n.prototype,"stopImmediatePropagation",(t=>function(e,n){e[Z]=!0,t&&t.apply(e,n)}))}function X(t,e,n,i,r){const a=Zone.__symbol__(i);if(e[a])return;const o=e[a]=e[i];e[i]=function(a,s,l){return s&&s.prototype&&r.forEach((function(e){const r=n+"."+i+"::"+e,a=s.prototype;try{if(a.hasOwnProperty(e)){const n=t.ObjectGetOwnPropertyDescriptor(a,e);n&&n.value?(n.value=t.wrapWithCurrentZone(n.value,r),t._redefineProperty(s.prototype,e,n)):a[e]&&(a[e]=t.wrapWithCurrentZone(a[e],r))}else a[e]&&(a[e]=t.wrapWithCurrentZone(a[e],r))}catch(t){}})),o.call(e,a,s,l)},t.attachOriginToPatched(e[i],o)}function q(t,e,n){if(!n||0===n.length)return e;const i=n.filter((e=>e.target===t));if(!i||0===i.length)return e;const r=i[0].ignoreProperties;return e.filter((t=>-1===r.indexOf(t)))}function $(t,e,n,i){t&&E(t,q(t,e,n),i)}function K(t){return Object.getOwnPropertyNames(t).filter((t=>t.startsWith("on")&&t.length>2)).map((t=>t.substring(2)))}Zone.__load_patch("util",((n,i,r)=>{const c=K(n);r.patchOnProperties=E,r.patchMethod=T,r.bindArguments=w,r.patchMacroTask=I;const h=i.__symbol__("BLACK_LISTED_EVENTS"),g=i.__symbol__("UNPATCHED_EVENTS");n[g]&&(n[h]=n[g]),n[h]&&(i[h]=i[g]=n[h]),r.patchEventPrototype=j,r.patchEventTarget=W,r.isIEOrEdge=F,r.ObjectDefineProperty=e,r.ObjectGetOwnPropertyDescriptor=t,r.ObjectCreate=a,r.ArraySlice=o,r.patchClass=A,r.wrapWithCurrentZone=p,r.filterProperties=q,r.attachOriginToPatched=L,r._redefineProperty=Object.defineProperty,r.patchCallbacks=X,r.getGlobalObjects=()=>({globalSources:H,zoneSymbolEventNames:N,eventNames:c,isBrowser:S,isMix:P,isNode:k,TRUE_STR:d,FALSE_STR:u,ZONE_SYMBOL_PREFIX:m,ADD_EVENT_LISTENER_STR:s,REMOVE_EVENT_LISTENER_STR:l})}));const J=f("zoneTask");function Q(t,e,n,i){let r=null,a=null;n+=i;const o={};function s(e){const n=e.data;return n.args[0]=function(){return e.invoke.apply(this,arguments)},n.handleId=r.apply(t,n.args),e}function l(e){return a.call(t,e.data.handleId)}r=T(t,e+=i,(n=>function(r,a){if("function"==typeof a[0]){const t={isPeriodic:"Interval"===i,delay:"Timeout"===i||"Interval"===i?a[1]||0:void 0,args:a},n=a[0];a[0]=function(){try{return n.apply(this,arguments)}finally{t.isPeriodic||("number"==typeof t.handleId?delete o[t.handleId]:t.handleId&&(t.handleId[J]=null))}};const r=g(e,a[0],t,s,l);if(!r)return r;const c=r.data.handleId;return"number"==typeof c?o[c]=r:c&&(c[J]=r),c&&c.ref&&c.unref&&"function"==typeof c.ref&&"function"==typeof c.unref&&(r.ref=c.ref.bind(c),r.unref=c.unref.bind(c)),"number"==typeof c||c?c:r}return n.apply(t,a)})),a=T(t,n,(e=>function(n,i){const r=i[0];let a;"number"==typeof r?a=o[r]:(a=r&&r[J],a||(a=r)),a&&"string"==typeof a.type?"notScheduled"!==a.state&&(a.cancelFn&&a.data.isPeriodic||0===a.runCount)&&("number"==typeof r?delete o[r]:r&&(r[J]=null),a.zone.cancelTask(a)):e.apply(t,i)}))}Zone.__load_patch("legacy",(t=>{const e=t[Zone.__symbol__("legacyPatch")];e&&e()})),Zone.__load_patch("queueMicrotask",((t,e,n)=>{n.patchMethod(t,"queueMicrotask",(t=>function(t,n){e.current.scheduleMicroTask("queueMicrotask",n[0])}))})),Zone.__load_patch("timers",(t=>{const e="set",n="clear";Q(t,e,n,"Timeout"),Q(t,e,n,"Interval"),Q(t,e,n,"Immediate")})),Zone.__load_patch("requestAnimationFrame",(t=>{Q(t,"request","cancel","AnimationFrame"),Q(t,"mozRequest","mozCancel","AnimationFrame"),Q(t,"webkitRequest","webkitCancel","AnimationFrame")})),Zone.__load_patch("blocking",((t,e)=>{const n=["alert","prompt","confirm"];for(let i=0;i<n.length;i++)T(t,n[i],((n,i,r)=>function(i,a){return e.current.run(n,t,a,r)}))})),Zone.__load_patch("EventTarget",((t,e,n)=>{var i,r;i=t,(r=n).patchEventPrototype(i,r),function(t,e){if(Zone[e.symbol("patchEventTarget")])return;const{eventNames:n,zoneSymbolEventNames:i,TRUE_STR:r,FALSE_STR:a,ZONE_SYMBOL_PREFIX:o}=e.getGlobalObjects();for(let t=0;t<n.length;t++){const e=n[t],s=o+(e+a),l=o+(e+r);i[e]={},i[e][a]=s,i[e][r]=l}const s=t.EventTarget;s&&s.prototype&&e.patchEventTarget(t,e,[s&&s.prototype])}(t,n);const a=t.XMLHttpRequestEventTarget;a&&a.prototype&&n.patchEventTarget(t,n,[a.prototype])})),Zone.__load_patch("MutationObserver",((t,e,n)=>{A("MutationObserver"),A("WebKitMutationObserver")})),Zone.__load_patch("IntersectionObserver",((t,e,n)=>{A("IntersectionObserver")})),Zone.__load_patch("FileReader",((t,e,n)=>{A("FileReader")})),Zone.__load_patch("on_property",((t,e,n)=>{!function(t,e){if(k&&!P||Zone[t.symbol("patchEvents")])return;const n=e.__Zone_ignore_on_properties;let i=[];if(S){const t=window;i=i.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const e=function(){try{const t=y.navigator.userAgent;if(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/"))return!0}catch(t){}return!1}()?[{target:t,ignoreProperties:["error"]}]:[];$(t,K(t),n&&n.concat(e),r(t))}i=i.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let t=0;t<i.length;t++){const r=e[i[t]];r&&r.prototype&&$(r.prototype,K(r.prototype),n)}}(n,t)})),Zone.__load_patch("customElements",((t,e,n)=>{!function(t,e){const{isBrowser:n,isMix:i}=e.getGlobalObjects();(n||i)&&t.customElements&&"customElements"in t&&e.patchCallbacks(e,t.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(t,n)})),Zone.__load_patch("XHR",((t,e)=>{!function(t){const l=t.XMLHttpRequest;if(!l)return;const d=l.prototype;let u=d[c],m=d[h];if(!u){const e=t.XMLHttpRequestEventTarget;if(e){const t=e.prototype;u=t[c],m=t[h]}}const p="readystatechange",b="scheduled";function y(t){const i=t.data,o=i.target;o[a]=!1,o[s]=!1;const l=o[r];u||(u=o[c],m=o[h]),l&&m.call(o,p,l);const d=o[r]=()=>{if(o.readyState===o.DONE)if(!i.aborted&&o[a]&&t.state===b){const n=o[e.__symbol__("loadfalse")];if(0!==o.status&&n&&n.length>0){const r=t.invoke;t.invoke=function(){const n=o[e.__symbol__("loadfalse")];for(let e=0;e<n.length;e++)n[e]===t&&n.splice(e,1);!i.aborted&&t.state===b&&r.call(t)},n.push(t)}else t.invoke()}else!i.aborted&&!1===o[a]&&(o[s]=!0)};return u.call(o,p,d),o[n]||(o[n]=t),S.apply(o,i.args),o[a]=!0,t}function v(){}function w(t){const e=t.data;return e.aborted=!0,P.apply(e.target,e.args)}const x=T(d,"open",(()=>function(t,e){return t[i]=0==e[2],t[o]=e[1],x.apply(t,e)})),C=f("fetchTaskAborting"),k=f("fetchTaskScheduling"),S=T(d,"send",(()=>function(t,n){if(!0===e.current[k]||t[i])return S.apply(t,n);{const e={target:t,url:t[o],isPeriodic:!1,args:n,aborted:!1},i=g("XMLHttpRequest.send",v,e,y,w);t&&!0===t[s]&&!e.aborted&&i.state===b&&i.invoke()}})),P=T(d,"abort",(()=>function(t,i){const r=t[n];if(r&&"string"==typeof r.type){if(null==r.cancelFn||r.data&&r.data.aborted)return;r.zone.cancelTask(r)}else if(!0===e.current[C])return P.apply(t,i)}))}(t);const n=f("xhrTask"),i=f("xhrSync"),r=f("xhrListener"),a=f("xhrScheduled"),o=f("xhrURL"),s=f("xhrErrorBeforeScheduled")})),Zone.__load_patch("geolocation",(e=>{e.navigator&&e.navigator.geolocation&&function(e,n){const i=e.constructor.name;for(let r=0;r<n.length;r++){const a=n[r],o=e[a];if(o){if(!x(t(e,a)))continue;e[a]=(t=>{const e=function(){return t.apply(this,w(arguments,i+"."+a))};return L(e,t),e})(o)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])})),Zone.__load_patch("PromiseRejectionEvent",((t,e)=>{function n(e){return function(n){Y(t,e).forEach((i=>{const r=t.PromiseRejectionEvent;if(r){const t=new r(e,{promise:n.promise,reason:n.rejection});i.invoke(t)}}))}}t.PromiseRejectionEvent&&(e[f("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),e[f("rejectionHandledHandler")]=n("rejectionhandled"))}))}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var a=e[n]={exports:{}};return t[n](a,a.exports,r),a.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";r(691),r(210),r(907)})()})()},8688:function(t,e,n){var i,r,a,o,s,l,c,h,d,u,m,p,g=n(5108);window._iconfont_svg_string_3171550='<svg><symbol id="icon-yijianfankui" viewBox="0 0 1024 1024"><path d="M512 830.898c-27.198 0-53.704-2.466-79.472-6.73l-186.276 113.03v-188.17c-97.13-68.194-159.45-172.744-159.45-290.178C86.802 253.372 277.17 86.804 512 86.804c234.822 0 425.198 166.568 425.198 372.046 0 205.48-190.376 372.048-425.198 372.048z m0-690.946c-205.478 0-372.046 142.778-372.046 318.896 0 108.064 62.856 203.394 158.784 261.068l-1.67 123.272 125.096-75.2c28.816 6.142 58.798 9.758 89.838 9.758 205.47 0 372.046-142.78 372.046-318.898C884.046 282.73 717.47 139.952 512 139.952zM724.598 512c-29.36 0-53.148-23.796-53.148-53.15 0-29.36 23.79-53.148 53.148-53.148 29.352 0 53.15 23.79 53.15 53.148 0 29.352-23.798 53.15-53.15 53.15zM512 512c-29.362 0-53.15-23.796-53.15-53.15 0-29.36 23.79-53.148 53.15-53.148 29.352 0 53.15 23.79 53.15 53.148 0 29.352-23.798 53.15-53.15 53.15z m-212.598 0c-29.362 0-53.15-23.796-53.15-53.15 0-29.36 23.79-53.148 53.15-53.148 29.352 0 53.148 23.79 53.148 53.148 0 29.352-23.796 53.15-53.148 53.15z" ></path></symbol><symbol id="icon-duibifenxi" viewBox="0 0 1024 1024"><path d="M548.352 146.432V51.2H451.584v95.232H38.912v731.648h412.16V972.8H547.84v-95.232h412.16V146.432h-411.648zM421.888 691.2H370.176L266.752 409.6H317.44l62.976 188.416c6.144 17.92 11.264 35.84 15.872 54.272 5.632-20.48 10.752-38.4 15.36-53.248l62.976-189.44h50.688l-103.424 281.6z m446.464 95.232h-320V237.568h320v548.864z" ></path><path d="M658.944 658.944c-31.232 0-49.664-15.36-56.32-45.568l-45.056 7.68c5.12 25.088 15.36 44.032 31.744 56.32 16.384 12.288 38.912 18.432 67.072 18.432 32.256 0 57.344-7.168 74.24-21.504 16.896-14.336 25.6-34.816 25.6-61.952 0-10.752-1.536-20.48-4.096-28.672-2.56-8.192-7.168-15.36-12.288-22.016-5.632-6.144-12.8-11.776-22.016-16.896-9.216-5.12-25.088-11.264-46.592-17.92-18.432-5.632-31.232-10.752-37.888-14.336-6.656-4.096-11.264-8.192-14.848-13.824-3.072-5.12-5.12-11.776-5.12-19.968 0-11.776 3.584-20.992 10.752-27.648 7.168-6.656 17.408-9.728 31.232-9.728 26.112 0 41.984 12.8 48.128 38.4l45.568-8.192c-5.632-22.528-15.872-39.424-31.232-49.664s-35.84-15.872-62.464-15.872c-28.16 0-49.664 6.656-65.536 19.968-15.872 13.312-23.552 31.744-23.552 55.296 0 15.36 2.56 28.16 7.68 38.4s12.8 18.944 22.528 25.6 25.6 13.312 47.616 19.456c9.216 2.56 17.408 5.12 25.6 7.68 7.68 2.56 14.848 5.632 20.48 9.216s10.24 8.192 13.824 13.312c3.584 5.12 5.12 12.288 5.12 20.48 0.512 28.672-16.384 43.52-50.176 43.52z" ></path></symbol><symbol id="icon-DXF" viewBox="0 0 1024 1024"><path d="M236.09375 247.0625h109.6875v109.6875h-109.6875z" ></path><path d="M270.265625 208.25V90.125h50.625v118.125h63.28125v63.28125H933.875V182.9375c0-51.46875-41.34375-92.8125-92.8125-92.8125H182.9375C131.46875 90.125 90.125 131.46875 90.125 182.9375v88.59375h116.859375V208.25h63.28125zM185.46875 520.859375c-13.078125 0-22.78125 1.265625-29.53125 2.53125V722.9375c6.328125 1.265625 15.609375 1.265625 24.046875 1.265625 48.515625 0.421875 81.421875-24.890625 90.28125-77.625v-56.109375c-8.015625-44.296875-37.125-69.609375-84.796875-69.609375z" ></path><path d="M169.4375 763.859375c-25.734375 0-45.984375-1.6875-60.75-3.375V488.375c19.828125-3.796875 45.140625-5.90625 72.140625-5.90625 39.234375 0 67.921875 7.171875 89.4375 21.515625V385.4375h-63.28125V322.15625H90.125v518.90625c0 51.46875 41.34375 92.8125 92.8125 92.8125h87.328125v-196.171875c-24.890625 17.296875-59.484375 26.15625-100.828125 26.15625zM384.171875 322.15625v63.28125h-63.28125v548.4375H841.0625c51.46875 0 92.8125-41.34375 92.8125-92.8125V322.15625H384.171875z m137.953125 439.171875l-27.421875-50.625c-11.8125-21.09375-18.984375-35.4375-27.421875-50.625h-0.84375c-6.328125 15.609375-13.5 29.53125-24.46875 50.203125l-25.734375 51.046875H344.9375L431.421875 621.6875 348.3125 484.15625H419.1875l27 51.46875c9.28125 17.71875 15.609375 31.21875 22.78125 46.828125h1.265625c7.171875-17.71875 13.078125-29.53125 21.09375-46.40625l27-51.890625h71.296875l-83.953125 134.15625 88.171875 142.59375h-71.71875z m284.34375-226.546875h-115.59375v63.703125H798.875v50.625h-108V760.90625h-60.328125V484.15625h175.921875v50.625z" ></path></symbol><symbol id="icon-sanweidongtaiguancha" viewBox="0 0 1024 1024"><path d="M521.708583 513.532934m-51.097805 0a51.097804 51.097804 0 1 0 102.195609 0 51.097804 51.097804 0 1 0-102.195609 0Z" fill="#00A0E9" ></path><path d="M521.708583 1016.846307c-71.536926 0-136.431138-56.207585-181.908184-158.914171-40.878244-91.976048-63.361277-213.588822-63.361277-341.844312s22.483034-249.868263 63.361277-341.844311C385.277445 71.536926 450.171657 15.329341 521.708583 15.329341s136.431138 56.207585 181.908183 158.914172c40.878244 91.976048 63.361277 213.588822 63.361278 341.844311s-22.483034 249.868263-63.361278 341.844312c-45.477046 102.706587-110.371257 158.914172-181.908183 158.914171z m0-919.760479c-77.157685 0-163.512974 179.353293-163.512974 419.001996s86.355289 419.001996 163.512974 419.001996 163.512974-179.353293 163.512974-419.001996-86.355289-419.001996-163.512974-419.001996z" ></path><path d="M521.708583 758.802395c-128.255489 0-249.868263-22.483034-341.844312-63.361277-102.706587-45.477046-158.914172-110.371257-158.914171-181.908184s56.207585-136.431138 158.914171-181.908184c91.976048-40.878244 213.588822-63.361277 341.844312-63.361277 128.255489 0 249.868263 22.483034 341.844311 63.361277 102.706587 45.477046 158.914172 110.371257 158.914172 181.908184s-56.207585 136.431138-158.914172 181.908184c-91.976048 40.878244-213.588822 63.361277-341.844311 63.361277z m0-408.782435c-239.648703 0-419.001996 86.355289-419.001996 163.512974s179.353293 163.512974 419.001996 163.512974 419.001996-86.355289 419.001996-163.512974-179.353293-163.512974-419.001996-163.512974z" ></path><path d="M1012.247505 135.409182h-30.658683V97.085828c2.043912-10.219561 3.576846-39.856287-8.686626-54.67465-5.10978-6.131737-12.774451-9.197605-22.994012-9.197605h-84.311378v-30.658683H950.419162c19.417166 0 35.768463 7.153693 46.499002 19.928144 21.972056 26.570858 16.862275 68.982036 15.329341 78.179641v34.746507zM84.822355 1024c-16.862275 0-39.856287-3.065868-56.718563-16.862275-12.774451-10.730539-19.928144-27.081836-19.928143-46.499002v-84.311378h30.658682V960.638723c0 10.219561 3.065868 17.884232 9.197605 22.994012 14.818363 12.263473 44.966068 10.219561 54.674651 8.175648h38.323353v30.658683h-34.235529c-3.576846 0.510978-11.752495 1.532934-21.972056 1.532934z" fill="#00A0E9" ></path></symbol><symbol id="icon-suofang" viewBox="0 0 1024 1024"><path d="M921.6 113.664h-179.2V0h204.8c42.496 0 76.8 38.4 76.8 85.504v227.328h-102.4V113.664zM281.6 0H76.8C34.304 0 0 38.4 0 85.504v227.328h102.4V113.664h179.2V0zM102.4 910.336v-199.168H0v227.328c0 47.104 34.304 85.504 76.8 85.504h204.8v-113.664H102.4z m0 0" ></path><path d="M997.888 963.584L890.88 857.6c39.936-49.664 61.44-111.104 61.44-174.592 0-154.624-125.44-279.552-280.064-279.552-154.624 0-280.064 125.44-280.064 279.552 0 154.624 125.44 279.552 280.064 279.552 64 0 125.44-22.016 175.104-61.952l106.496 106.496c11.776 12.288 31.744 12.8 44.032 0.512 12.288-12.288 12.288-31.744 0-44.032zM453.632 682.496c0-120.32 97.792-218.112 218.624-218.112 120.32 0 218.624 97.792 218.624 218.112s-97.792 218.112-218.624 218.112c-120.832 0.512-218.624-97.28-218.624-218.112z m0 0" ></path><path d="M773.632 655.872h-202.752c-14.848-0.512-27.648 11.776-27.648 27.136 0 14.848 12.288 27.136 27.648 27.136h202.752c14.848 0 27.136-11.776 27.648-27.136-0.512-15.36-12.8-27.136-27.648-27.136z m0 0" ></path></symbol><symbol id="icon-Dwgyixiezai" viewBox="0 0 1024 1024"><path d="M218.112 239.616h102.4v102.4h-102.4z m-84.48-153.088c-50.176 0-90.624 40.448-90.624 90.624v85.504h136.704v-61.44h71.68V86.528h-117.76z m230.4 178.176h522.24v-87.552c0-50.176-40.448-90.624-90.624-90.624H312.832v114.176h51.2v64z m-209.92 485.888H80.384V482.816h71.68c40.96 0 73.728 11.264 96.256 33.28v-135.68h-68.608v-66.56H43.52v522.24c0 50.176 40.448 90.624 90.624 90.624H248.32V716.8c-22.016 22.016-54.272 33.792-94.208 33.792z" ></path><path d="M128 521.216v190.976h20.992c53.76 0 84.992-30.72 84.992-96.256s-30.72-94.208-84.992-94.208H128z m405.504 348.672V750.592h-23.04l-33.28-141.312c-4.608-20.992-8.192-31.232-11.776-51.2h-1.536c-3.584 20.48-7.68 30.72-12.288 51.2l-32.256 141.312h-57.856l-53.248-267.776h48.64l23.04 135.168c4.096 28.672 8.704 56.832 13.312 85.504h1.536c5.632-28.672 11.264-57.344 17.408-85.504l33.28-135.168h41.472l32.768 135.168c4.608 22.016 9.216 44.544 13.824 67.072v-63.488a145.32 145.32 0 0 1 33.792-93.184l7.68-46.08h45.568l-1.024 6.144c18.432-8.192 38.4-12.8 59.904-12.8h206.848V315.904h-522.24v64H309.76v546.304h235.52c-7.68-17.408-11.776-36.352-11.776-56.32z" ></path><path d="M940.544 565.248h-261.12a56.158 56.158 0 0 0-56.32 56.32v248.32a56.158 56.158 0 0 0 56.32 56.32h261.12a56.158 56.158 0 0 0 56.32-56.32v-248.32c0-30.72-25.088-56.32-56.32-56.32zM851.968 737.28v123.904H698.88v-42.496h101.888V737.28h-69.12l98.816-138.752L929.28 737.28h-77.312z" ></path></symbol><symbol id="icon-tupianweizhaodao" viewBox="0 0 1024 1024"><path d="M548.352 867.328v-40.96H150.528c-34.304 0-62.464-27.648-62.464-62.464V609.28c69.632-83.968 138.752-167.936 146.944-177.152 14.848-17.408 49.664-17.92 64 0 12.288 14.848 96.256 116.736 171.52 207.872 36.352-51.2 68.096-95.744 72.192-101.888 36.352-55.808 98.816-57.344 143.872-57.344h176.64v-312.32c0-45.056-36.864-81.92-81.92-81.92h-675.84c-45.056 0-81.92 36.864-81.92 81.92v670.72c0 45.056 36.864 81.92 81.92 81.92h453.632c-6.656-16.384-10.752-34.816-10.752-53.76zM649.728 197.12c56.832 0 102.4 45.568 102.4 102.4s-45.568 102.4-102.4 102.4-102.4-45.568-102.4-102.4 45.568-102.4 102.4-102.4z" ></path><path d="M946.688 562.688h-261.12a56.158 56.158 0 0 0-56.32 56.32v248.32a56.158 56.158 0 0 0 56.32 56.32h261.12a56.158 56.158 0 0 0 56.32-56.32v-248.32c0-30.72-25.088-56.32-56.32-56.32z m-156.16 53.248h51.2v153.6h-51.2v-153.6z m66.56 266.24h-81.92v-75.264h81.92v75.264z" ></path></symbol><symbol id="icon-SmoreDwg" viewBox="0 0 1024 1024"><path d="M270.336 249.856h102.4v102.4h-102.4z m-84.48-153.088c-50.176 0-90.624 40.448-90.624 90.624v85.504h136.704v-61.44h71.68V96.768h-117.76z m225.28 178.688h527.36v-88.064c0-50.176-40.448-90.624-90.624-90.624H354.816v114.176h56.32v64.512z m-204.8 485.376h-73.728V493.056h71.68c40.96 0 73.728 11.264 96.256 33.28v-135.68h-68.608v-66.56H95.232v522.24c0 50.176 40.448 90.624 90.624 90.624h114.176V727.04c-22.016 22.016-53.76 33.792-93.696 33.792z" ></path><path d="M179.712 531.456v190.976h20.992c53.76 0 84.992-30.72 84.992-96.256s-30.72-94.208-84.992-94.208h-20.992z m231.424-204.8v64h-59.904V936.96h496.64c50.176 0 90.624-40.448 90.624-90.624v-519.68h-527.36z m210.432 434.176h-58.88l-33.28-141.312c-4.608-20.992-8.192-41.472-11.776-61.44h-1.536c-3.584 20.48-7.68 40.96-12.288 61.44L471.04 760.832h-57.856l-53.248-267.776h48.64l23.04 135.168c4.096 28.672 8.704 56.832 13.312 85.504h1.536c5.632-28.672 11.264-57.344 17.408-85.504l32.768-135.168h41.472l32.768 135.168c6.144 27.648 11.776 56.832 17.92 85.504h1.536c4.096-28.672 8.704-57.344 12.8-85.504l23.04-135.168h45.568l-50.176 267.776z m288.768-27.136c-17.92 17.92-48.64 31.744-85.504 31.744-72.192 0-125.952-49.152-125.952-137.728 0-87.552 55.296-139.776 126.976-139.776 37.888 0 64 16.896 80.896 33.792l-25.6 30.72c-13.312-13.312-29.184-23.04-54.272-23.04-47.616 0-79.36 36.864-79.36 96.768 0 60.928 28.16 98.304 81.92 98.304 14.848 0 29.696-4.096 38.4-11.776v-57.856h-50.688v-38.912h93.184v117.76z" ></path></symbol><symbol id="icon-tupianyixiezai" viewBox="0 0 1024 1024"><path d="M947.712 562.688h-261.12a56.158 56.158 0 0 0-56.32 56.32v248.32a56.158 56.158 0 0 0 56.32 56.32h261.12a56.158 56.158 0 0 0 56.32-56.32v-248.32c0-30.72-25.088-56.32-56.32-56.32zM862.208 737.28v123.904H709.12v-42.496h101.888V737.28h-69.12l98.816-138.752L939.52 737.28h-77.312z" ></path><path d="M548.352 867.328v-40.96H150.528c-34.304 0-62.464-27.648-62.464-62.464V609.28c69.632-83.968 138.752-167.936 146.944-177.152 14.848-17.408 49.664-17.92 64 0 12.288 14.848 96.256 116.736 171.52 207.872 36.352-51.2 68.096-95.744 72.192-101.888 36.352-55.808 98.816-57.344 143.872-57.344h176.64v-312.32c0-45.056-36.864-81.92-81.92-81.92h-675.84c-45.056 0-81.92 36.864-81.92 81.92v670.72c0 45.056 36.864 81.92 81.92 81.92h453.632c-6.656-16.384-10.752-34.816-10.752-53.76zM649.728 197.12c56.832 0 102.4 45.568 102.4 102.4s-45.568 102.4-102.4 102.4-102.4-45.568-102.4-102.4 45.568-102.4 102.4-102.4z" ></path></symbol><symbol id="icon-guanliantupian" viewBox="0 0 1024 1024"><path d="M681.472 897.536h261.12a56.158 56.158 0 0 0 56.32-56.32v-248.32a56.158 56.158 0 0 0-56.32-56.32h-261.12a56.158 56.158 0 0 0-56.32 56.32v248.32c0 30.72 25.6 56.32 56.32 56.32z" ></path><path d="M543.232 841.216v-40.96H145.408c-34.304 0-62.464-27.648-62.464-62.464V583.168c69.632-83.968 138.752-167.936 146.944-177.152 14.848-17.408 49.664-17.92 64 0 12.288 14.848 96.256 116.736 171.52 207.872 36.352-51.2 68.096-95.744 72.192-101.888 36.352-55.808 98.816-57.344 143.872-57.344h176.64v-312.32c0-45.056-36.864-81.92-81.92-81.92h-675.84c-45.056 0-81.92 36.864-81.92 81.92v670.72c0 45.056 36.864 81.92 81.92 81.92h453.632c-6.656-16.896-10.752-34.816-10.752-53.76z m101.376-670.72c56.832 0 102.4 45.568 102.4 102.4s-45.568 102.4-102.4 102.4-102.4-45.568-102.4-102.4c0-56.32 45.568-102.4 102.4-102.4z" ></path></symbol><symbol id="icon-guanlianDwg" viewBox="0 0 1024 1024"><path d="M218.112 244.736h102.4v102.4h-102.4z m-84.48-153.088c-50.176 0-90.624 40.448-90.624 90.624v85.504h136.704v-61.44h71.68V91.648h-117.76z m230.4 178.688h522.24v-88.064c0-50.176-40.448-90.624-90.624-90.624H312.832v114.176h51.2v64.512z m-209.92 485.376H80.384V487.936h71.68c40.96 0 73.728 11.264 96.256 33.28v-135.68h-68.608v-66.56H43.008v522.24c0 50.176 40.448 90.624 90.624 90.624h114.176V721.92c-22.016 22.016-53.76 33.792-93.696 33.792z" ></path><path d="M128 526.336v190.976h20.48c53.76 0 84.992-30.72 84.992-96.256s-30.72-94.208-84.992-94.208H128z m405.504 348.672V755.712h-23.04L477.184 614.4c-4.608-20.992-8.192-41.472-11.776-61.44l-1.536 10.24c-3.584 20.48-7.68 30.72-12.288 51.2l-32.256 141.312h-57.856l-53.248-267.776h48.64l23.04 135.168c4.096 28.672 8.704 56.832 13.312 85.504h1.536c5.632-28.672 11.264-57.344 17.408-85.504l33.28-135.168h40.96l32.768 135.168c4.608 22.016 9.216 44.544 13.824 67.072v-63.488a145.32 145.32 0 0 1 33.792-93.184l7.68-46.08h45.568l-1.024 6.144c18.432-8.192 38.4-12.8 59.904-12.8H885.76V321.536H363.52v64h-54.272V931.84h235.52c-7.168-17.408-11.264-36.864-11.264-56.832z" ></path><path d="M679.424 931.328h261.12a56.158 56.158 0 0 0 56.32-56.32v-248.32a56.158 56.158 0 0 0-56.32-56.32h-261.12a56.158 56.158 0 0 0-56.32 56.32v248.32a56.158 56.158 0 0 0 56.32 56.32z" ></path></symbol><symbol id="icon-Dwgweizhaodao" viewBox="0 0 1024 1024"><path d="M212.992 239.616h102.4v102.4h-102.4z m-84.48-153.088c-50.176 0-90.624 40.448-90.624 90.624v85.504h136.704v-61.44h71.68V86.528h-117.76z m230.4 178.176h522.24v-87.552c0-50.176-40.448-90.624-90.624-90.624H307.712v114.176h51.2v64z m-209.92 485.888H75.264V482.816h71.68c40.96 0 73.728 11.264 96.256 33.28v-135.68h-68.608v-66.56H38.4v522.24c0 50.176 40.448 90.624 90.624 90.624H243.2V716.8c-22.016 22.016-54.272 33.792-94.208 33.792z" ></path><path d="M122.88 521.216v190.976h20.992c53.76 0 84.992-30.72 84.992-96.256s-30.72-94.208-84.992-94.208H122.88z m405.504 348.672V750.592h-23.04l-33.28-141.312c-4.608-20.992-8.192-41.472-11.776-61.44l-1.536 10.24c-3.584 20.48-7.68 30.72-12.288 51.2l-32.256 141.312h-57.856l-53.248-267.776h48.64l23.04 135.168c4.096 28.672 8.704 56.832 13.312 85.504h1.536c5.632-28.672 11.264-57.344 17.408-85.504l33.28-135.168h41.472l32.768 135.168c4.608 22.016 9.216 44.544 13.824 67.072v-63.488a145.32 145.32 0 0 1 33.792-93.184l7.68-46.08h45.568l-1.024 6.144c18.432-8.192 38.4-12.8 59.904-12.8h206.848V315.904h-522.24v64H304.64v546.304h235.52c-7.68-17.408-11.776-36.352-11.776-56.32z" ></path><path d="M935.424 565.248h-261.12a56.158 56.158 0 0 0-56.32 56.32v248.32a56.158 56.158 0 0 0 56.32 56.32h261.12a56.158 56.158 0 0 0 56.32-56.32v-248.32c0-30.72-25.088-56.32-56.32-56.32z m-160.256 50.688h51.2v153.6h-51.2v-153.6z m66.56 266.24h-81.92v-75.264h81.92v75.264z" ></path></symbol><symbol id="icon-ZoomAll" viewBox="0 0 1024 1024"><path d="M882.176 877.568l-65.024-65.024c24.576-33.792 37.888-74.24 37.888-116.224 0-52.736-20.48-102.4-57.856-139.776s-87.04-57.856-139.776-57.856c-109.056 0-197.632 88.576-197.632 197.632 0 52.736 20.48 102.4 57.856 139.776 37.376 37.376 87.04 57.856 139.776 57.856 41.984 0 82.432-13.312 116.224-37.888l65.024 65.024c5.632 6.144 13.312 9.216 22.016 9.216h0.512c8.192 0 15.872-3.072 21.504-8.704l0.512-0.512c11.264-12.288 11.264-31.744-1.024-43.52z m-89.088-180.736c0 75.264-60.928 136.192-136.192 136.192-74.24 0-134.656-59.392-136.192-133.632v-2.56c0-75.264 60.928-136.192 136.192-136.192 36.352 0 70.656 14.336 96.256 39.936 26.112 25.6 39.936 59.392 39.936 96.256z" ></path><path d="M409.088 678.912h-291.84v-494.08h793.6V560.64c0 22.528 18.432 40.96 40.96 40.96s40.96-18.432 40.96-40.96V143.872c0-22.528-18.432-40.96-40.96-40.96H76.288c-22.528 0-40.96 18.432-40.96 40.96v576c0 22.528 18.432 40.96 40.96 40.96h340.48c-5.632-20.992-8.704-42.496-8.704-64.512 0-5.632 0.512-11.264 1.024-17.408z" ></path><path d="M589.312 357.376H201.728c-19.968 0-36.352-16.384-36.352-36.352 0-19.968 16.384-36.352 36.352-36.352h388.096c19.968 0 36.352 16.384 36.352 36.352 0 19.968-16.384 36.352-36.864 36.352z m-230.4 204.8H201.728c-19.968 0-36.352-16.384-36.352-36.352 0-19.968 16.384-36.352 36.352-36.352h157.696c19.968 0 36.352 16.384 36.352 36.352 0 19.968-16.384 36.352-36.864 36.352z" ></path></symbol><symbol id="icon-qiehuanweian" viewBox="0 0 1024 1024"><path d="M510.723192 2.553616C227.27182 2.553616 0 229.825436 0 513.276808s227.27182 510.723192 510.723192 510.723192 510.723192-227.27182 510.723192-510.723192S794.174564 2.553616 510.723192 2.553616z m-58.222444 970.374065c-229.825436-28.089776-406.024938-222.675312-406.024938-459.650873s176.199501-431.561097 406.024938-459.650873c-109.294763 123.084289-174.156608 283.451372-174.156608 459.650873s65.372569 336.566584 174.156608 459.650873z m0 0" ></path></symbol><symbol id="icon-qiehuanweiming" viewBox="0 0 1024 1024"><path d="M510.723192 1024c283.451372 0 510.723192-227.27182 510.723192-510.723192S794.174564 2.553616 510.723192 2.553616 0 229.825436 0 513.276808c0 282.940648 227.27182 510.723192 510.723192 510.723192z m58.222444-970.374065c229.825436 28.089776 406.024938 222.675312 406.024938 459.650873s-176.199501 431.561097-406.024938 459.650873c109.294763-123.084289 174.156608-283.451372 174.156608-459.650873 0-176.710224-65.372569-336.566584-174.156608-459.650873z m0 0" ></path></symbol><symbol id="icon-ZoomCenter" viewBox="0 0 1024 1024"><path d="M217.088 708.608V301.193L13.38 504.9zM307.2 211.081h406.87L510.907 7.919z m287.812 237.568c-16.93-28.4-48.606-47.514-84.104-47.514-54.067 0-98.304 44.237-98.304 98.304 0 37.137 20.753 69.905 51.336 86.289 25.122-60.075 72.09-109.227 131.072-137.08z m-74.82 428.168c-25.668-25.668-45.875-56.252-58.982-89.02H307.2l203.708 203.708 69.359-69.359c-21.846-12.56-42.053-27.853-60.075-45.329z m375.74-375.74c19.66 19.661 36.045 42.599 48.606 66.629l62.805-62.806-203.708-203.707v139.81c34.407 13.107 66.082 33.314 92.297 60.074z m52.429 381.201L879 812.92c26.215-36.044 40.414-79.189 40.414-123.972 0-56.252-21.845-109.226-61.713-149.094S764.86 478.14 708.608 478.14c-116.326 0-210.807 94.48-210.807 210.807 0 56.252 21.845 109.227 61.713 149.095 39.867 39.867 92.842 61.713 149.094 61.713 44.783 0 87.927-14.2 123.972-40.414l69.36 69.359c6.007 6.553 14.199 9.83 23.483 9.83h0.546c8.738 0 16.93-3.277 22.938-9.284l0.546-0.546c12.015-13.107 11.469-33.86-1.092-46.422z m-95.028-193.33c0 80.28-64.99 145.27-145.271 145.27-79.19 0-143.633-63.35-145.272-142.54v-2.73c0-80.282 64.99-145.272 145.272-145.272 38.775 0 75.366 15.291 102.673 42.598 27.853 27.307 42.598 63.898 42.598 102.673z" ></path></symbol><symbol id="icon-ZoomRange" viewBox="0 0 1024 1024"><path d="M287.744 761.003l148.48-148.48c24.064-78.848 86.528-140.8 164.864-164.864L756.736 292.01l70.144 70.144c8.192 8.192 22.528 3.072 23.552-8.192l23.552-227.328c1.024-8.704-6.144-16.384-15.36-15.36l-227.328 23.552c-11.776 1.024-16.896 15.36-8.192 23.552l70.144 70.144L491.52 431.787 287.744 228.523l70.656-70.144c8.192-8.192 3.072-22.528-8.192-23.552L122.88 110.763c-8.704-1.024-16.384 6.656-15.36 15.36l23.552 227.328c1.024 11.776 15.36 16.896 23.552 8.192l70.656-70.144 203.264 203.264L225.28 698.027l-70.144-70.144c-8.192-8.192-22.528-3.072-23.552 8.192L107.52 863.403c-1.024 8.704 6.656 16.384 15.36 15.36l227.328-23.552c11.776-1.024 16.896-15.36 8.192-23.552l-70.656-70.656z" ></path><path d="M899.584 866.475L834.56 801.45c24.576-33.792 37.888-74.24 37.888-116.224 0-52.736-20.48-102.4-57.856-139.776s-87.04-57.856-139.776-57.856c-109.056 0-197.632 88.576-197.632 197.632 0 52.736 20.48 102.4 57.856 139.776 37.376 37.376 87.04 57.856 139.776 57.856 41.984 0 82.432-13.312 116.224-37.888l65.024 65.024c5.632 6.144 13.312 9.216 22.016 9.216h0.512c8.192 0 15.872-3.072 21.504-8.704l0.512-0.512c11.264-12.288 11.264-31.744-1.024-43.52z m-89.088-181.248c0 75.264-60.928 136.192-136.192 136.192-74.24 0-134.656-59.392-136.192-133.632v-2.56c0-75.264 60.928-136.192 136.192-136.192 36.352 0 70.656 14.336 96.256 39.936 26.112 25.6 39.936 59.904 39.936 96.256z" ></path></symbol><symbol id="icon-pingyi" viewBox="0 0 1024 1024"><path d="M500.761 65.163c28.73 0 53.154 19.416 55.614 45.158l30.134 319.884c5.624 19.944 12.3 26.27 18.362 26.27 10.367 0 19.241-18.274 19.241-18.274l53.593-265.59c4.744-23.81 28.289-40.59 54.91-40.59 3.162 0 6.5 0.264 9.84 0.792 30.31 4.743 50.604 30.31 45.158 57.106l-52.45 260.143c0.087 1.054 1.318 38.656 15.638 38.656 4.92 0 11.421-4.393 19.767-16.253l87.944-167.982c10.632-14.935 28.818-23.106 47.356-23.106 10.103 0 20.382 2.373 29.607 7.556 26.093 14.409 34 44.806 17.659 67.825L795.43 650.9s-19.503 127.83-83.814 231.852l1.581 79.246h-320.85l-6.063-83.024s-62.114-29.871-116.41-116.146L84.498 624.544c-23.546-17.571-26.532-48.584-6.589-69.32 11.07-11.508 26.796-17.394 42.698-17.394 12.74 0 25.479 3.778 36.021 11.596l106.043 73.449c11.158 7.643 25.04 13.354 37.69 13.354 32.156 0 57.02-36.021 12.3-164.907l-89.261-256.1c-9.05-26.006 7.555-53.505 36.987-61.5 5.447-1.494 10.982-2.109 16.341-2.109 23.81 0 45.95 13.618 53.329 34.792L418.44 440.22c0.966 1.67 2.021 3.69 3.252 6.853 6.589 16.518 24.248 41.117 37.426 41.117 10.015 0 17.395-14.057 15.55-55.965l-29.607-313.822c-2.547-27.06 20.208-50.78 51.044-53.065 1.582-0.088 3.163-0.176 4.656-0.176z" ></path></symbol><symbol id="icon-u32" viewBox="0 0 1024 1024"><path d="M576.426473 481.26504H801.297647L501.054141 16.074479 199.564811 481.26504h226.24158v519.134726h150.744665V481.26504z" ></path></symbol><symbol id="icon-xiaochengxu" viewBox="0 0 1024 1024"><path d="M512 0C229.376 0 0 229.376 0 512s229.376 512 512 512 512-229.376 512-512S794.624 0 512 0z m256.512 460.288c-19.968 31.744-51.2 55.296-87.552 65.536-7.68 2.56-16.384 4.096-24.576 4.096-15.872 0-28.672-13.312-28.672-29.184s12.8-29.184 28.672-29.184c2.048 0 4.608-0.512 6.656-1.024 23.04-5.632 43.52-20.48 55.808-40.96 7.168-11.776 11.264-25.6 11.264-39.424 0-46.08-42.496-83.968-94.208-83.968-17.92 0-35.328 4.608-51.2 13.312-26.112 13.824-43.008 40.96-43.52 70.656v244.224c-0.512 50.176-28.16 96.256-72.704 120.32-24.576 13.824-51.712 20.992-79.872 20.48-84.48 0-153.6-63.488-153.6-141.824 0-24.576 7.168-48.64 19.968-69.632 19.968-31.744 51.2-55.296 87.552-65.536 7.68-2.56 16.384-4.096 24.576-4.096 10.24 0 19.968 5.632 25.088 14.336 5.12 9.216 5.12 19.968 0 29.184-5.12 9.216-14.848 14.336-25.088 14.336-2.048 0-4.608 0.512-6.656 1.024-23.04 6.144-43.008 20.992-55.808 40.96-7.168 11.776-11.264 25.6-11.264 39.424 0 46.08 42.496 83.968 94.72 83.968 17.92 0 35.328-4.608 51.2-13.312 26.112-13.824 43.008-40.96 43.52-70.656V390.144c0.512-50.176 28.672-96.768 72.704-120.32 24.064-14.336 51.2-22.016 79.36-21.504 84.48 0 153.6 63.488 153.6 141.824 0 25.088-7.168 49.152-19.968 70.144z m0 0" ></path></symbol><symbol id="icon-fenxiang" viewBox="0 0 1024 1024"><path d="M238.2 674.9c-89.8 0-162.9-73.1-162.9-162.9 0-89.8 73.1-162.9 162.9-162.9 89.8 0 162.9 73.1 162.9 162.9 0 89.8-73.1 162.9-162.9 162.9z m0-263.3c-55.3 0-100.3 45-100.3 100.3s45 100.4 100.3 100.4 100.4-45 100.4-100.4c-0.1-55.2-45.1-100.3-100.4-100.3z m547.6-41.3c-89.8 0-162.9-73.1-162.9-162.9S696 44.5 785.8 44.5s162.9 73.1 162.9 162.9-73 162.9-162.9 162.9z m0-263.2c-55.3 0-100.3 45-100.3 100.3s45 100.3 100.3 100.3 100.3-45 100.3-100.3-44.9-100.3-100.3-100.3z m0 872.4c-89.8 0-162.9-73.1-162.9-162.9s73.1-163 162.9-163 162.9 73.1 162.9 162.9-73 163-162.9 163z m0-263.3c-55.3 0-100.3 45-100.3 100.4 0 55.3 45 100.3 100.3 100.3s100.3-45 100.3-100.3c0.1-55.3-44.9-100.4-100.3-100.4z" ></path><path d="M347.08 437.607l307.67-200.986 34.236 52.41-307.67 200.985zM654.8 787.4L347.1 586.3l34.3-52.4L689 735z" ></path></symbol><symbol id="icon-quanping" viewBox="0 0 1080 1024"><path d="M237.14175 510.661878c22.818324 0 40.848876 20.373504 40.848875 44.668907v172.156109h157.436252c22.258053 0 40.899809 19.762299 40.89981 44.719841 0 24.346337-18.030551 44.719841-40.89981 44.719842H237.14175c-22.207119 0-40.848876-19.711365-40.848876-44.719842v-216.87595c0-11.816632 4.176568-22.971126 12.020368-31.578931a38.811525 38.811525 0 0 1 28.828508-13.089976z m573.870674-42.733425c0.611205 24.346337 18.641756 44.719841 40.848875 44.719841 22.258053 0 40.848876-19.762299 40.848876-44.719841V251.103437c0-24.295404-17.979617-44.668908-40.848876-44.668908h-198.285127c-22.258053 0-40.848876 19.711365-40.848876 44.668908 0 24.295404 18.030551 44.668908 40.848876 44.668907h157.436252v172.207043zM1072.40448 71.001661V952.97065c-1.22241 36.16297-28.217303 65.70455-61.273313 65.70455H64.680038C31.624028 1018.6752 4.578202 989.133619 2.79552 952.97065V71.001661C4.578202 34.838692 31.624028 5.297111 64.680038 5.297111h946.451129c33.05601 0 60.101837 29.541581 61.273313 65.70455z m-78.743593 19.711366L993.100616 101.86752H82.710589v814.94016h910.950298V90.662093z" ></path></symbol><symbol id="icon-home" viewBox="0 0 1131 1024"><path d="M1122.189833 566.656594c7.968129-18.132602 3.217898-43.773634-10.624173-57.104928L600.328429 16.753503a51.588531 51.588531 0 0 0-37.082449-14.250693 51.588531 51.588531 0 0 0-36.980293 14.301771L16.816177 509.602743c-13.790993 13.382371-18.541224 38.972326-10.573095 57.104928 7.559507 17.213203 24.925944 34.630717 46.736144 34.630717H129.544778v359.383071c0 24.925944 29.114319 58.330794 58.892649 58.330794h224.38457c28.858931 0 46.736144-28.807853 46.736144-55.470439V794.259062h180.406624v166.41132c0 17.877214 14.046382 33.20054 20.124635 38.972325 6.12933 5.822864 22.320978 19.358468 41.37298 19.358469h220.96236c14.710393 0 28.041686-7.968129 37.491071-22.474212 6.946574-10.67525 11.083872-24.057622 11.083873-35.856582v-359.383072h104.505083c21.810201 0 39.176637-17.366436 46.736144-34.681794z m-194.095462-61.804082c-28.399231 0-60.067438 19.000924-60.067438 46.225367v371.488499h-125.191573v-185.923022c0-9.347229-1.225866-21.14619-10.879561-29.369708-8.683218-7.457352-19.818168-8.478907-30.595574-8.478907H408.020688c-13.586682 0-23.649 1.940955-31.566051 6.12933a34.222095 34.222095 0 0 0-18.847691 31.719285v185.923022H231.34274v-379.405551c0-38.308315-32.332218-38.308315-42.95639-38.308315h-14.965782L563.399213 127.694383l391.306667 377.209207h-26.611509z" ></path></symbol><symbol id="icon-dianhua" viewBox="0 0 1033 1024"><path d="M387.440287 326.08642h-0.112366a102.422222 102.422222 0 0 0 6.4049-139.053757L286.197915 51.068989c-34.665119-45.845602-101.130005-52.081953-145.346291-17.304468-3.146267 3.090083-6.348717 3.090083-6.348717 6.292534L39.721619 134.894527c-90.118071 90.061888 37.923752 333.391918 271.758798 567.33933 232.430462 232.318096 470.984908 357.101286 562.676113 270.185664l93.208155-93.208155c41.070019-41.070019 41.070019-107.422539 0-145.346291l-6.292534-6.348717-135.963674-107.422539a102.422222 102.422222 0 0 0-138.997574 6.292534l-58.486853 58.43067a918.990832 918.990832 0 0 1-167.538709-128.041824c-48.935686-48.879503-90.061888-104.276272-127.98564-167.426342l55.340586-63.262437zM230.913512 95.397641l107.478723 137.424441c11.011934 14.270567 11.011934 34.833669-3.146267 45.845602l-75.847504 80.566905c-11.124301 11.180484-14.270567 28.541135-6.348717 41.182385 41.126202 75.847504 93.264338 143.716974 153.380508 205.406278a891.798098 891.798098 0 0 0 205.350094 153.324325 38.935052 38.935052 0 0 0 41.126203-6.348717l80.510721-80.566905c14.270567-14.214384 31.631218-14.214384 45.901785-3.20245l135.963674 110.624989s3.090083 0 3.090084 3.146267a32.923435 32.923435 0 0 1 1.573133 47.418736s0 1.573133-1.51695 1.573133l-96.410605 93.264339c-45.901786 45.845602-260.803047-69.498787-466.265508-271.814981C150.346608 450.925793 39.721619 232.822082 83.937904 187.032663L181.921643 89.105107c14.270567-11.068117 37.923752-11.068117 48.991869 6.348717z" ></path></symbol><symbol id="icon-zanwuwenjian" viewBox="0 0 1024 1024"><path d="M645.12 35.84v-5.12H168.96c-28.278 0-51.2 22.927-51.2 51.2v855.04c0 28.273 22.922 51.2 51.2 51.2H870.4c28.278 0 51.2-22.927 51.2-51.2V305.495L645.12 35.84z" ></path><path d="M645.12 256c0 28.273 22.922 51.2 51.2 51.2h228.285L645.12 30.72V256z" ></path><path d="M543.54 618.03v14.623h-56.674v-16.456c-1.229-36.562 16.45-67.64 53.012-93.235 32.912-21.934 47.53-45.701 43.879-71.296-3.661-29.25-21.34-45.077-53.018-47.529-43.873-2.432-70.098 19.507-78.612 65.812l-56.674-18.278c15.826-70.666 62.157-104.801 138.942-102.374 68.24 3.655 105.4 38.39 111.508 104.202 1.198 40.217-21.929 76.785-69.468 109.686-24.386 15.856-35.353 34.135-32.896 54.845z m-62.158 51.185h67.64v63.984h-67.64v-63.984z" ></path></symbol><symbol id="icon-wujieguo" viewBox="0 0 1572 1024"><path d="M157.742721 698.69146v-0.007579h21.116655a10.444634 10.444634 0 0 1 10.247566 10.535589c0 5.68467-4.585634 10.300623-10.247566 10.308202h-21.116655v21.04086a10.444634 10.444634 0 0 1-10.459793 10.217247 10.308202 10.308202 0 0 1-10.459794-10.217247v-21.056019H115.69132a10.444634 10.444634 0 0 1-10.247566-10.406737c0-5.760466 4.494679-10.421896 10.247566-10.421895h21.131814v-21.04844a10.444634 10.444634 0 0 1 10.459794-10.217247c5.760466 0 10.459793 4.494679 10.459793 10.217247v21.056019zM1559.370196 615.339034h-21.116656v-21.056019a10.239986 10.239986 0 0 0-3.09246-7.261219 10.308202 10.308202 0 0 0-7.367333-2.933289 10.444634 10.444634 0 0 0-10.459793 10.209668v21.040859h-21.131815c-2.743801 0-5.381488 1.106616-7.306696 3.077302a10.490112 10.490112 0 0 0-2.94087 7.291537c0 5.714989 4.562895 10.368839 10.247566 10.459793h21.139394v21.056019c0 5.730148 4.676589 10.209668 10.452214 10.209668a10.444634 10.444634 0 0 0 10.459793-10.217247v-21.04086h21.116656c5.760466 0 10.255145-4.669009 10.255145-10.421896a10.444634 10.444634 0 0 0-10.255145-10.414316z m-780.975169 343.808862l-0.015159-4.123281H251.805066c-5.548238 4.123281-10.86151 1.932788-14.780143-1.985845a20.714939 20.714939 0 0 1-6.078807-14.734666c0-11.498193 9.474451-20.836212 20.85895-21.177291h94.858199c-7.321855-12.278888-11.157113-26.619416-4.722066-41.22523v-604.469944c-6.397149-22.109578 2.440618-43.302029 18.145467-58.915924a83.776881 83.776881 0 0 1 59.196367-24.330389h62.667806v-20.927166c0-22.117157 8.837767-43.317188 24.557776-58.931082 15.765486-15.636633 37.041312-24.375866 59.196367-24.951913h501.835117c22.155055 0.560887 43.44604 9.300121 59.211526 24.936754 15.68969 15.568417 24.527458 36.783607 18.62298 58.931082v604.469945c5.912057 15.143962 1.872151 29.340478-5.237476 39.30002h115.724728c11.55883 2.273868 20.934746 11.520932 20.934746 23.11766 0 11.498193-9.31528 20.828632-20.919587 14.780143h-251.004723v26.983235c0 15.159121-4.047485 29.348058-11.157113 41.573889h11.21775a20.805893 20.805893 0 0 1 20.866529 20.836211c0 11.498193-9.474451 20.843791-20.866529 16.720511h-110.0249c9.792792 20.487552 7.139946 41.460196-6.427467 54.845699a41.808855 41.808855 0 0 1-59.14331 0l-50.934646-50.722418z m6.533581-111.343743l69.921445 69.66374h66.654655c22.93575 0 41.535991-18.676037 41.535991-41.710321 0-0.022739 0-0.045477 0.416876-0.060637V270.438716c-0.424455-0.022739-0.424455-0.045477-0.424456-0.075795 0-22.367283-18.054513-40.505171-40.323261-40.505171-0.015159 0-0.030318 0-0.045477 5.101044h-504.950317c-22.291487-5.078305-40.361159 13.082321-37.882643 35.479922v605.25064c-2.387562 23.057023 16.220259 41.717901 39.178748 41.429877h317.507787l-10.740237-10.391577a41.490514 41.490514 0 0 1-10.891829-40.262625l-19.737175-19.706858c-61.523292 45.628954-147.960599 36.245458-198.160028-21.518372-50.214588-57.604659-47.182764-144.49674 6.912559-198.448051 54.284812-54.254494 141.457336-57.453068 199.569826-7.299117 58.135229 50.146372 67.42019 136.545781 21.253088 197.811369l19.767493 19.699277a41.801276 41.801276 0 0 1 40.436955 10.793294zM1001.362957 813.294414l3.509336-0.022739h62.93309c23.041864-0.121273 41.649685-18.721514 39.67142-41.664843v-604.242558c1.970686-23.034284-16.621976-41.687582-39.542567-41.687582-0.045477 0-0.083375 0-0.128853 3.175835H565.409379c-23.019125-3.046983-41.611787 15.568417-41.626946 38.504167V189.489011h397.335717c22.162635-1.364321 43.44604 7.374912 59.211526 23.019125 15.68969 15.560838 24.527458 36.776027 21.033281 58.923503v541.862775zM267.555393 47.531423v0.01516H298.927193c8.610381 0 15.613894 6.973196 15.68969 15.621474 0 8.61796-7.109628 15.636633-15.901917 15.636633h-31.159573v31.03072c0 8.701335-7.026253 15.757906-15.68969 15.757906-8.671017 0-15.68969-7.056571-15.68969-15.765485v-31.023141h-31.167153a15.780645 15.780645 0 0 1-15.901918-15.636633c0-8.61796 7.109628-15.636633 15.901918-15.636634h31.159573V16.508283c0-8.708915 7.026253-15.765486 15.68969-15.765486 8.671017 0 15.68969 7.056571 15.68969 15.765486V47.523844zM21.757827 938.304104h0.01516c0-11.505773 9.474451-20.836212 20.85137-21.177291h125.631214c11.513352 0.34108 20.851371 9.588144 20.851371 21.177291 0 11.498193-9.474451 20.843791-20.843791 16.720511H42.624357c-5.540659 4.123281-10.86151 1.932788-14.780143-1.985845a20.714939 20.714939 0 0 1-6.078807-14.734666z m511.734023-134.688789c40.846251 40.69466 107.07645 40.69466 147.922702 0a103.923353 103.923353 0 0 0 27.06661-100.641403 104.400865 104.400865 0 0 0-73.953771-73.688487 104.870798 104.870798 0 0 0-101.035541 26.968076 103.817239 103.817239 0 0 0-30.644163 73.680907c0 27.688134 11.03584 54.224175 30.644163 73.680907z m-72.460598-490.405139v0.007579c0.053057-11.543671 9.398655-20.86653 20.896848-17.614898h230.100296c11.505773-3.27437 20.874109 6.048489 20.919587 17.607319-0.045477 11.55125-9.406234 20.874109-20.904428 20.290483H481.93568c-5.540659 0.560887-10.86151-1.629605-14.802882-5.540659a20.730098 20.730098 0 0 1-6.101546-14.749824z m0 104.181058v-0.00758c0-11.490614 9.3077-20.836212 20.767996-15.666951h334.971094c0.015159-5.16926 0.030318-5.16926 0.045477-5.16926a20.767996 20.767996 0 0 1 20.722518 20.843791c0 11.505773-9.322859 20.836212-20.767995 22.223271H481.806827c-5.5255-1.394639-10.823612-3.592712-14.734665-7.503765a20.669461 20.669461 0 0 1-6.03333-14.719506z m6.086387 118.923303a20.714939 20.714939 0 0 1-6.078807-14.742245c0-11.505773 9.322859-20.836212 20.86653-21.321303h146.505323c11.520932 0.485092 20.874109 9.747315 20.87411 21.321303 0 11.505773-9.322859 20.843791-20.87411 16.576499H481.912941c-5.548238 4.267293-10.86909 2.084379-14.795302-1.826674zM126.3785 334.046387c0 34.524898-28.097431 62.508635-62.76634 62.508635a62.796658 62.796658 0 0 1-54.337869-31.242948 62.303987 62.303987 0 0 1 0-62.516214 62.804238 62.804238 0 0 1 54.345449-31.258107c34.66133 0 62.75876 27.983737 62.75876 62.508634z m-62.75876 31.258108h-0.00758c11.217749 0 21.571429-5.957535 27.187883-15.629054a31.144414 31.144414 0 0 0 0-31.250528 31.394539 31.394539 0 0 0-27.316735-15.636633c-17.205602 0-31.182312 13.984289-31.242949 31.273267 0.075796 17.281398 14.037346 31.242948 31.242949 31.242948h0.136432z m1296.85521-93.759163h0.015159c-34.66133 0-62.76634-27.991317-62.766339-62.516214s28.10501-62.508635 62.75876-62.508635c34.66133 0 62.743601 27.983737 62.743601 62.508635s-28.097431 62.508635-62.75876 62.508635z m-0.121273-31.258107h0.136432a31.402119 31.402119 0 0 0 27.172725-15.636633 31.144414 31.144414 0 0 0 0-31.242948 31.394539 31.394539 0 0 0-27.309157-15.636634c-17.213182 0-31.189891 13.976709-31.250527 31.273267 0.075796 17.281398 14.044925 31.242948 31.250527 31.242948z" ></path></symbol><symbol id="icon-shanchu" viewBox="0 0 1024 1024"><path d="M680.376409 104.23816h0.142622-356.127023v88.924789h355.984401V104.23816zM553.942046 398.253321h74.947837v395.348061h-74.876526V398.253321z m-177.92089 0h74.876527v395.348061h-74.876527V398.253321z m383.296506 516.36279l28.381769-632.528372h-570.487822l28.310458 632.528372h513.795595zM313.766673 15.24206h376.094096c40.932501 0 74.306039 34.657135 74.876527 77.728966v100.191923h149.895675c20.466251 0 37.081708 17.328568 37.509575 38.864483v40.219392a9.626982 9.626982 0 0 1-9.127806 9.840915h-71.097044l-28.738324 646.148769c-1.854085 41.859544-34.229269 74.733905-73.66424 75.375703H236.608195c-39.577593 0-72.309331-32.517806-74.733905-74.092105l-0.071311-1.283598-28.952257-646.077458H62.110232a9.555671 9.555671 0 0 1-9.341738-9.555671v-39.934148c0-21.607226 16.401525-39.149727 36.796465-39.434971h150.466163V94.397245c0-43.214453 32.945672-78.442076 73.735551-79.155185z" ></path></symbol><symbol id="icon-jilu" viewBox="0 0 1027 1024"><path d="M1019.517674 510.90899A508.992282 508.992282 0 0 0 511.228067 1.916708a508.353487 508.353487 0 1 0 508.417366 508.992282z m-92.369835 0.894314a415.919773 415.919773 0 1 1-831.903425 0 415.919773 415.919773 0 0 1 831.903425-1.53311v1.53311z m-151.905578 7.984944c0-25.551821-20.696975-46.184917-46.248797-46.184917H557.412984V292.440917a46.184917 46.184917 0 1 0-92.433714 0v227.41121c0 25.487942 20.696975 46.184917 46.184917 46.184918h217.829277c25.551821 0 46.248797-20.696975 46.248797-46.248797z" ></path></symbol><symbol id="icon-pengyouquan" viewBox="0 0 1024 1024"><path d="M513.666 64.134a430.957 430.957 0 0 0-50.431 2.977c-40.505 4.583-79.33 14.702-115.828 29.397 0 0 300.947 297.82 308.96 308.891V87.804c-8.969-3.053-18.131-5.802-27.369-8.362-36.761-9.889-75.437-15.308-115.332-15.308zM828.014 193.516c-12.064-12.064-24.703-23.215-37.756-33.556-31.916-25.352-66.504-45.735-102.66-61.085 0 0 2.215 423.265 0 436.781l224.637-224.593a456.235 456.235 0 0 0-13.518-25.199c-19.051-32.985-42.488-64.176-70.703-92.348zM926.621 346.301s-297.736 300.91-308.885 308.924h317.631c3.053-8.969 5.805-18.133 8.322-27.371 9.924-36.842 15.35-75.399 15.35-115.332 0-17.067-1.07-33.903-3.021-50.432-4.58-40.506-14.656-79.33-29.397-115.789zM484.917 688.668l224.632 224.595a444.809 444.809 0 0 0 25.236-13.513c32.986-18.977 64.139-42.452 92.391-70.703 12.021-12.027 23.135-24.703 33.518-37.756 25.309-31.921 45.738-66.468 61.082-102.662 0.002 0-423.302 2.218-436.859 0.039zM369.663 618.118v317.63a455.336 455.336 0 0 0 27.372 8.326c36.804 9.926 75.403 15.345 115.337 15.345 17.023 0 33.859-1.07 50.353-2.978 40.506-4.62 79.332-14.695 115.828-29.436 0.037 0.001-300.874-297.738-308.89-308.887zM338.051 485.643L113.495 710.235c4.203 8.592 8.747 16.992 13.518 25.236 18.976 33.062 42.451 64.213 70.703 92.428 12.026 12.065 24.702 23.173 37.756 33.52 31.952 25.39 66.429 45.736 102.698 61.08-0.001 0.001-2.292-423.302-0.119-436.856zM82.267 395.89c-9.888 36.804-15.307 75.402-15.307 115.336 0 17.024 1.069 33.897 3.015 50.393 4.583 40.542 14.622 79.369 29.435 115.789 0 0 297.706-300.911 308.853-308.89H90.592c-3.054 8.931-5.803 18.132-8.325 27.372zM289.073 125.521c-33.061 19.013-64.214 42.494-92.391 70.665-12.139 12.104-23.21 24.779-33.556 37.756-25.352 31.921-45.736 66.506-61.119 102.736 0 0 423.377-2.253 436.895-0.076L314.305 112.009c-8.548 4.273-16.987 8.742-25.232 13.512z" ></path></symbol><symbol id="icon-erweima2" viewBox="0 0 1024 1024"><path d="M955.146 554.186v234.26H722.129V633.1h-77.672V947.52h-77.672v-392.09H799.8v155.345h77.673V554.186h77.672z m-491.51 1.243V943.79H75.274V555.43h388.362z m491.51 310.69v77.671H722.129v-77.672h233.017zM385.963 633.1H152.947v233.017h233.016V633.101z m-77.672 77.673v77.672H230.62v-77.672h77.672zM463.636 63.297V451.66H75.274V63.297h388.362z m491.51 0V451.66H566.785V63.297h388.361zM385.963 140.97H152.947v233.016h233.016V140.97z m491.51 0H644.458v233.016h233.017V140.97z m-569.182 77.672v77.672H230.62v-77.672h77.672z m491.51 0v77.672H722.13v-77.672h77.672z" ></path></symbol><symbol id="icon-wode" viewBox="0 0 1070 1024"><path d="M21.945 1023.86c-2.397-11.961-2.397-43.051 0-76.538 7.167-59.807 31.113-102.859 66.997-129.179 26.32-19.128 59.807-28.693 88.524-35.884 14.358-2.397 28.716-7.167 40.678-9.564 71.768-16.732 122.685-33.487 177.698-105.255 4.794-4.771 33.51-47.846-43.052-141.117-33.51-40.678-55.036-95.69-64.6-165.062-9.588-71.768-2.397-138.742 4.77-181.794 9.588-50.242 38.281-95.69 81.356-129.178S470.03 0.069 522.67 0.069C575.286 0.07 627.925 16.803 671 50.29s71.792 78.936 81.356 131.575c7.167 43.052 14.358 110.026 4.794 181.794-9.588 66.974-31.114 121.987-64.6 165.039-76.586 93.294-45.473 136.369-43.076 141.14 55.037 74.165 129.202 90.897 200.97 105.255 14.358 2.397 28.716 7.167 43.075 9.564 26.32 7.168 59.807 16.756 86.126 35.884 78.96 55.013 71.792 174.627 69.395 203.32H21.945z" fill="#488CF9" ></path></symbol><symbol id="icon-yunpan" viewBox="0 0 1024 1024"><path d="M610.862 551.935C650.608 489.454 720.463 448 800 448c123.712 0 224 100.288 224 224 0 123.378-99.748 223.46-223 223.998L618.058 896H256C114.615 896 0 781.385 0 640c0-121.114 84.105-222.583 197.096-249.19C224.058 241.366 354.79 128 512 128c155.2 0 284.595 110.487 313.82 257.096A292.253 292.253 0 0 0 800.5 384c-102.33 0-192.215 53.276-243.434 133.603l53.796 34.332z" fill="#488CF9" ></path></symbol><symbol id="icon-excel" viewBox="0 0 1024 1024"><path d="M787.990323 0.512l235.52 237.056v707.072c0 43.52-34.816 78.336-78.336 78.336H76.822323c-43.52-1.024-77.824-36.864-76.8-80.384V80.384C0.022323 36.864 34.838323 0.512 78.358323 0.512h709.632z m0 0" fill="#325A3B" ></path><path d="M1020.950323 236.544h-155.136c-43.52 0-78.336-34.816-78.336-78.336V0l233.472 236.544z m0 0" fill="#6DC088" ></path><path d="M309.270323 756.736l-72.192-144.384h-0.512L163.862323 756.736H96.278323l104.96-192-101.376-185.344h72.192l68.096 133.632 0.512-0.512 69.12-133.12h67.072l-101.376 179.712 105.984 198.144H309.270323zM416.790323 379.392h62.976v324.608h154.624l-7.168 53.248H416.790323V379.392zM723.990323 649.728c4.608 36.864 25.6 62.464 65.536 62.464 39.936 0 57.856-20.48 57.856-53.248 0-35.84-18.432-52.736-72.704-72.704-74.752-26.624-102.912-55.296-102.912-110.08 0-62.464 45.568-102.4 114.688-102.4 84.48 0 114.176 51.2 117.248 104.448h-61.952c-3.584-26.624-15.36-54.784-56.32-54.784-34.304 0-50.176 18.944-50.176 47.104 0 30.72 16.896 42.496 68.096 60.928 82.944 29.696 109.056 64 109.056 120.832 0 60.928-38.912 109.568-124.928 109.568-81.92 0-121.856-47.104-125.952-112.128h62.464z" fill="#FFFFFF" ></path></symbol><symbol id="icon-weixin" viewBox="0 0 1024 1024"><path d="M693.248 348.16c11.776 0 23.552 1.024 34.816 2.048C696.832 205.312 540.672 97.28 362.496 97.28 163.328 97.792 0 232.448 0 403.456c0 98.304 54.272 179.712 144.896 242.688l-36.352 108.032L235.008 691.2c45.568 8.704 81.92 17.92 126.976 17.92 11.776 0 22.528-0.512 33.792-1.536-7.168-24.576-10.752-50.176-11.264-75.776 0.512-156.672 136.192-283.648 308.736-283.648zM498.176 250.368c27.648 0 45.568 17.92 45.568 45.056 0 26.624-17.92 45.056-45.568 45.056-27.136 0-54.272-17.92-54.272-45.056 0-27.136 27.136-45.056 54.272-45.056zM244.736 340.48c-26.624 0-54.272-17.92-54.272-45.056 0-27.136 27.648-45.056 54.272-45.056 27.136 0 45.568 17.92 45.568 45.056-0.512 26.624-18.432 45.056-45.568 45.056zM1024 628.224c0-143.872-144.896-261.12-308.224-261.12-172.032 0-308.224 117.248-308.224 261.12 0 144.384 135.68 261.12 308.224 261.12 35.84 0 72.704-8.704 109.056-17.92l99.328 53.76-27.648-89.6c73.216-54.784 127.488-126.464 127.488-207.36z m-408.064-45.056c-17.92 0-36.352-17.92-36.352-36.352 0-17.92 18.432-36.352 36.352-36.352 27.648 0 45.568 17.92 45.568 36.352 0 18.432-17.92 36.352-45.568 36.352z m199.168 0c-17.92 0-35.84-17.92-35.84-36.352 0-17.92 17.92-36.352 35.84-36.352 27.648 0 45.568 17.92 45.568 36.352 0 18.432-17.92 36.352-45.568 36.352z m0 0" ></path></symbol><symbol id="icon-bianji" viewBox="0 0 1024 1024"><path d="M981.034965 351.904096c-17.390609 0-31.200799 15.344655-31.200799 34.781219v496.655344c0 39.384615-29.666334 71.608392-65.47053 71.608392H127.872128c-35.804196 0-65.470529-32.223776-65.47053-71.608392V141.170829c0-39.384615 29.666334-71.608392 65.47053-71.608391h511.488511c17.390609 0 31.200799-15.344655 31.2008-34.781219 0-18.925075-13.81019-34.781219-31.2008-34.781219H127.872128C56.775225 1.534466 0 63.936064 0 141.170829v741.146853c0 77.746254 57.798202 140.147852 127.872128 140.147852h756.491508c71.096903 0 127.872128-62.913087 127.872128-140.147852v-496.143856c0-19.436563-13.81019-34.26973-31.200799-34.26973z m0 0" ></path><path d="M285.410589 561.614386c-1.022977 2.557443-3.068931 5.626374-3.580419 7.672327L214.825175 793.83017c-2.557443 9.206793 0 18.925075 6.64935 25.574425 4.603397 4.603397 11.252747 7.160839 17.902098 7.16084 2.557443 0 4.603397-0.511489 7.16084-1.022977L469.034965 758.025974c3.068931-0.511489 5.626374-2.045954 7.672328-3.58042L1010.18981 216.35964c7.672328-7.672328 11.764236-18.413586 11.764236-29.154845s-4.091908-20.971029-11.764236-29.154845L874.645355 24.03996c-15.856144-15.856144-41.430569-15.856144-57.286714 0L286.945055 559.056943l-1.534466 2.557443z m519.16084-451.644356l41.942058-42.453546 119.688311 120.711288-41.942058 42.453547-119.688311-120.711289z m-444.995005 448.575425l408.67932-412.259741L887.944056 266.997003l-408.679321 412.25974L359.576424 558.545455z m-82.349651 204.083916l47.568432-160.607393 112.015984 112.527473-159.584416 48.07992z m0 0" ></path><path d="M830.35045 144.014705l51.353446-50.642477 14.362598 14.567193-51.353447 50.642477z" ></path><path d="M875.939421 189.752008l51.353446-50.637363 14.362598 14.562078-51.353447 50.642478z" ></path></symbol><symbol id="icon-zhongshengcheng" viewBox="0 0 1024 1024"><path d="M908.8 728.576H901.12c-10.752-1.024-19.456-7.68-24.576-16.896-4.608-9.728-4.608-20.48 1.024-29.696 68.096-187.904-15.872-397.312-195.072-485.376-147.456-70.144-323.072-38.912-437.248 78.336-15.36 11.776-37.376 10.24-51.2-3.584s-15.36-35.84-3.584-51.2C330.24 79.36 542.72 41.984 721.408 125.952c213.504 105.472 311.808 356.864 226.304 579.584-6.144 14.848-22.016 24.576-38.912 23.04zM518.656 1002.496c-70.144-0.512-139.776-16.896-203.264-47.104-205.824-103.936-305.664-343.552-234.496-563.712 3.584-10.752 11.264-19.968 22.016-24.576 10.752-4.608 22.528-4.096 32.768 1.024 18.432 7.168 28.672 27.648 23.552 47.104-59.392 183.296 23.552 382.976 195.072 470.016 147.456 70.144 323.072 38.912 437.248-78.336 9.216-12.288 24.576-17.92 39.424-14.848 14.848 3.072 26.624 14.848 29.696 29.696 3.072 14.848-2.56 30.72-14.848 39.424-83.456 92.16-203.264 143.36-327.168 141.312z" ></path><path d="M181.76 493.568c-15.36 0-23.04 0-30.72-15.36l-30.72-46.08-53.76 46.08c-16.896 12.8-40.96 9.216-53.76-7.68-6.144-8.192-8.704-18.432-7.168-28.16 1.536-10.24 6.656-18.944 14.848-25.088L104.448 348.16c7.68-7.68 23.04-15.36 30.72-7.68s23.04 7.68 23.04 15.36L211.968 440.32c15.36 15.36 7.68 38.4-15.36 53.76h-14.848zM891.904 774.656h-7.68l-23.04-23.04-46.08-84.48c-15.36-15.36-7.68-38.4 15.36-53.76 19.456-5.12 39.936 0.512 53.76 15.36l23.04 53.76 53.76-46.08c17.408-9.216 39.424-6.144 53.76 7.68 7.68 15.36 7.68 46.08-7.68 53.76l-91.648 69.12-23.552 7.68z" ></path></symbol><symbol id="icon-pdf" viewBox="0 0 1024 1024"><path d="M788.502323 1.024l235.52 237.056v706.56c0 43.52-34.816 78.336-78.336 78.336H76.822323c-43.52-1.024-77.824-36.864-76.8-80.384V80.896C0.022323 37.376 34.838323 1.024 78.358323 1.024H788.502323z m0 0" fill="#FF3300" ></path><path d="M1021.974323 237.056h-155.136c-43.52 0-78.336-34.816-78.336-78.336V0.512l233.472 236.544z m0 0" fill="#FF9999" ></path><path d="M168.470323 655.36v140.8H97.814323V478.208c0-22.528 0-45.056-0.512-67.072h69.12c1.024 6.656 2.048 24.576 2.048 37.888 14.336-23.552 41.472-45.056 91.136-45.056 67.072 0.512 119.296 56.32 119.296 137.728 0 95.232-59.904 149.504-129.536 149.504-44.544 0.512-68.608-17.408-80.896-35.84z m137.728-110.08c0-47.616-23.552-83.968-68.608-83.968-51.2 0-71.168 33.28-71.168 87.04 0 53.248 20.992 86.016 69.12 86.016 46.592 0 70.656-35.328 70.656-89.088zM704.022323 290.816v316.928c0 25.6 0 51.2 0.512 76.8h-69.12c-1.536-8.704-2.048-23.552-2.56-33.28-13.824 22.528-36.864 40.448-87.552 40.448-73.728 0-123.392-56.832-123.392-141.312C421.398323 462.336 481.302323 404.48 554.006323 404.48c50.176 0 71.68 18.944 78.848 30.72V290.816h71.168z m-209.408 257.536c0 51.2 25.6 86.016 70.144 86.016 53.248 0 70.656-38.912 70.656-87.552 0-51.2-14.336-86.016-68.608-86.016-48.128 0-72.192 37.888-72.192 87.552zM797.206323 684.544v-220.16H752.662323V411.136h45.056V384c0-60.416 28.672-97.792 92.672-97.792 12.8 0 26.624 1.024 33.792 3.072v55.296c-5.12-1.024-12.8-1.536-18.944-1.536-27.648 0-36.352 11.776-36.352 43.52v24.576h54.784v53.248h-54.784v220.16h-71.68z" fill="#FFFFFF" ></path></symbol><symbol id="icon-dwf" viewBox="0 0 1024 1024"><path d="M739.40901858 90.96875l194.0625 195.328125v581.765625c0 35.859375-28.6875 64.546875-64.546875 64.546875H153.42464358c-35.859375-0.84375-64.125-30.375-63.28125-66.234375V156.78125C90.14339358 120.921875 118.83089358 90.96875 154.69026858 90.96875h584.71875z m0 0" fill="#7F3D00" ></path><path d="M931.78401858 285.453125h-127.828125c-35.859375 0-64.546875-28.6875-64.546875-64.546875V90.546875l192.375 194.90625z m0 0" fill="#FF842A" ></path><path d="M375.75276858 378.265625v248.0625c0 19.828125 0 39.65625 0.421875 59.90625h-39.65625c-0.84375-5.90625-1.6875-21.09375-2.109375-28.6875-10.546875 21.09375-31.640625 33.75-65.8125 33.75-54.84375 0-88.59375-44.296875-88.59375-109.6875 0-65.8125 36.28125-113.90625 95.765625-113.90625 36.28125 0 53.15625 14.34375 58.640625 26.15625V378.265625h41.34375z m-153.140625 202.078125c0 49.78125 22.78125 76.78125 55.6875 76.78125 48.09375 0 57.796875-36.28125 57.796875-80.15625 0-45.5625-8.859375-75.09375-55.265625-75.09375-36.28125 0-58.21875 29.109375-58.21875 78.46875zM456.75276858 472.765625c25.3125 97.453125 39.234375 153.140625 43.03125 175.921875h0.421875c3.796875-20.671875 17.296875-70.03125 46.828125-175.921875h39.65625c31.640625 118.125 40.921875 152.296875 44.296875 172.125h0.421875c5.0625-22.78125 13.078125-54.84375 45.140625-172.125h41.34375l-65.390625 213.890625h-44.296875c-20.25-78.46875-38.8125-145.125-43.453125-169.171875h-0.421875c-3.796875 24.046875-21.515625 85.640625-44.71875 169.171875H474.89339358L412.87776858 472.765625h43.875zM772.31526858 686.234375V505.671875h-33.75v-32.90625h33.75v-24.46875c0-40.078125 16.453125-74.25 63.28125-74.25 8.015625 0 18.984375 1.265625 24.46875 2.953125v34.171875c-4.640625-1.265625-11.8125-1.6875-17.71875-1.6875-21.09375 0-29.109375 11.8125-29.109375 41.765625v21.515625h41.765625v32.90625h-41.765625v180.984375h-40.921875z" fill="#FFFFFF" ></path></symbol><symbol id="icon-dwfx" viewBox="0 0 1024 1024"><path d="M739.40901858 90.96875l194.0625 195.328125v581.765625c0 35.859375-28.6875 64.546875-64.546875 64.546875H153.42464358c-35.859375-0.84375-64.125-30.375-63.28125-66.234375V156.78125C90.14339358 120.921875 118.83089358 90.96875 154.69026858 90.96875h584.71875z m0 0" fill="#6600FF" ></path><path d="M931.78401858 285.453125h-127.828125c-35.859375 0-64.546875-28.6875-64.546875-64.546875V90.546875l192.375 194.90625z m0 0" fill="#6666FF" ></path><path d="M322.17464358 385.015625v196.171875c0 15.609375 0 31.21875 0.421875 47.671875h-31.21875c-0.84375-4.640625-1.265625-16.875-1.6875-22.78125-8.4375 16.875-24.890625 26.578125-52.3125 26.578125-43.453125 0-70.03125-35.015625-70.03125-86.90625s28.6875-90.28125 75.9375-90.28125c28.6875 0 42.1875 11.390625 46.40625 20.671875V385.015625H322.17464358z m-121.078125 159.890625c0 39.234375 18.140625 60.75 43.875 60.75 37.96875 0 45.984375-28.6875 45.984375-63.28125 0-35.859375-7.171875-59.484375-43.875-59.484375-28.6875 0-45.984375 22.78125-45.984375 62.015625zM385.87776858 459.6875c19.828125 77.203125 31.21875 121.078125 34.171875 139.21875h0.421875c2.953125-16.453125 13.5-55.6875 37.125-139.21875h31.640625c24.890625 93.234375 32.484375 120.65625 35.015625 136.265625h0.421875c4.21875-18.140625 10.546875-43.453125 35.4375-136.265625h32.90625L541.54964358 628.859375h-35.015625c-16.03125-62.015625-30.796875-114.75-34.171875-133.734375h-0.421875c-2.953125 18.984375-16.875 67.921875-35.4375 133.734375h-36.28125L351.28401858 459.6875h34.59375zM635.62776858 628.859375V485.84375H609.04964358v-26.15625h26.578125V440.28125c0-31.640625 13.078125-58.640625 50.203125-58.640625 6.328125 0 15.1875 0.84375 19.40625 2.109375V410.75c-3.796875-0.84375-9.28125-1.265625-13.921875-1.265625-16.875 0-22.78125 9.28125-22.78125 32.90625v16.875h32.90625v26.15625h-32.90625v143.015625h-32.90625zM754.59651858 459.6875c22.78125 36.28125 32.0625 51.890625 37.96875 61.171875h0.421875c6.75-10.96875 20.25-32.0625 39.234375-61.171875h36.28125L811.54964358 540.6875l56.953125 88.171875h-37.546875c-19.40625-32.0625-32.90625-54-39.234375-64.96875h-0.421875c-5.484375 9.28125-18.5625 31.640625-39.234375 64.96875h-36.28125l56.109375-83.953125-54.421875-85.21875h37.125z" fill="#FFFFFF" ></path></symbol><symbol id="icon-ZRX1" viewBox="0 0 1024 1024"><path d="M50.176 481.792c4.608-25.6 8.704-51.712 14.336-76.8 9.216-41.984 25.088-81.92 47.616-120.32 62.976 82.432 124.928 163.328 186.368 244.224 20.992 27.136 20.48 27.648-3.584 52.224-14.336 14.336-28.16 29.696-43.008 43.52-8.704 8.192-9.216 14.848-3.584 25.088 22.016 39.936 51.2 73.728 87.552 100.864l14.336 10.752c-24.576 18.944-48.64 37.376-72.192 55.296-16.384 12.288-32.768 24.064-49.152 36.352-8.704 6.656-15.872 8.192-25.088 0-70.656-65.536-119.296-144.384-140.288-239.104-5.12-23.552-9.216-47.616-13.824-71.168V481.792h0.512z m489.984-431.616c25.6 4.608 51.712 9.216 77.312 14.336 43.008 9.216 82.944 25.6 123.904 48.64L461.312 313.856c-20.48-19.968-41.472-39.424-61.44-60.416-9.728-10.24-17.408-10.752-29.184-4.096-43.52 24.576-79.36 57.856-109.056 100.864-6.144-7.68-11.264-13.824-15.872-19.968-25.6-33.792-50.688-68.096-76.8-101.888-7.168-9.216-7.68-15.36 1.024-24.576C245.76 120.832 339.968 72.192 451.072 54.784c10.24-1.536 20.992-3.072 31.232-5.12h57.856zM283.648 908.288l278.016-207.872c19.968 22.016 40.96 43.008 59.392 65.536 11.264 13.824 21.504 12.8 35.328 4.608 41.984-24.576 76.8-56.32 105.472-99.328 14.848 19.456 29.184 37.376 43.008 55.808 15.872 20.992 30.72 43.008 47.616 62.976 10.752 13.312 8.192 21.504-3.072 33.28-73.216 76.8-161.28 124.416-265.728 141.824-102.4 16.896-199.68-2.048-291.328-50.176-2.56-1.024-4.608-3.584-8.704-6.656m388.096-648.192c43.52-32.256 84.992-62.976 125.952-94.208 9.728-7.68 15.36-2.048 21.504 3.584 41.984 38.4 76.288 82.432 102.4 133.12 36.864 72.704 54.784 150.528 50.176 231.936-4.096 69.632-22.016 136.192-58.88 200.704-18.432-24.064-35.84-46.592-53.248-69.12-47.616-62.976-95.232-125.952-143.36-188.928-6.656-8.704-7.68-14.336 1.024-22.528 18.432-17.92 35.328-37.376 53.76-55.296 9.216-8.704 9.216-16.384 3.584-26.624-21.504-39.936-50.176-72.704-86.016-99.84-5.12-3.584-9.728-7.168-16.896-12.8M564.224 382.976H458.24L382.976 457.728v105.984l75.264 75.264h105.984l74.752-75.264V457.728z" ></path></symbol><symbol id="icon-jishuzhisvg" viewBox="0 0 1024 1024"><path d="M943.104 51.2H70.656C43.008 51.2 20.48 72.192 20.48 98.304v636.928c0 26.112 22.528 47.104 50.176 47.104h337.408v138.24H314.88c-15.36-0.512-28.16 11.264-28.672 25.6s11.776 26.624 27.136 27.136H699.392c15.36-0.512 27.648-12.288 27.136-27.136-0.512-13.824-12.288-25.088-27.136-25.6h-93.696v-138.24h337.408c27.648 0 50.176-20.992 50.176-47.104V98.304c0-26.112-22.528-47.104-50.176-47.104z m-393.728 868.352H464.384v-138.24h84.48v138.24z m387.072-190.464H77.312v-624.64H936.96v624.64h-0.512z" ></path><path d="M262.656 411.648L330.24 348.16c9.728-9.216 9.728-24.064 0-33.28-9.728-9.216-25.6-9.216-35.328 0L209.92 394.24c-4.608 4.608-7.68 10.752-7.168 17.408 0 6.144 2.56 12.288 7.168 17.408l84.992 79.872c9.728 9.216 25.6 9.216 35.328 0 9.728-9.216 9.728-24.064 0-33.28L262.656 411.648z m185.344 108.032l-6.656-3.072c-11.776-6.144-15.872-20.48-9.216-31.744L532.48 318.464c6.656-11.264 21.504-14.848 33.28-8.704l6.144 3.072c11.776 6.144 15.872 20.48 9.216 31.744L481.28 510.976c-6.656 11.264-21.504 15.36-33.28 8.704 0 0.512 0 0.512 0 0zM805.376 394.24l-84.992-80.384c-9.728-9.216-25.6-9.216-35.328 0-9.728 9.216-9.728 24.064 0 33.28L752.64 410.624l-67.584 63.488c-9.728 9.216-9.728 24.064 0 33.28 9.728 9.216 25.6 9.216 35.328 0l84.992-79.872c5.12-4.608 7.168-10.752 7.168-17.408 0.512-5.12-2.56-11.264-7.168-15.872z" ></path></symbol><symbol id="icon-SAAShua" viewBox="0 0 1024 1024"><path d="M784.896 229.376c-52.224-128-154.624-215.04-272.896-215.04s-220.672 87.04-272.896 215.04C104.96 246.784 0 373.76 0 527.36c0 160.256 113.152 291.328 256 300.032v0.512h151.04v-107.52H336.384v-1.024h-7.68c-120.832 0-219.136-93.696-219.136-208.896 0-111.104 90.624-201.728 204.8-208.384 6.144-14.848 13.312-28.672 22.016-42.496V256h2.56c43.008-67.584 110.592-110.592 185.856-110.592s142.848 43.52 186.368 110.592h1.536v1.536c8.704 13.824 16.384 28.672 22.528 44.032 109.056 9.728 195.072 99.328 195.072 208.384 0 115.712-95.744 208.896-214.016 208.896h-3.584v0.512h-53.76v108.032H768v-0.512c142.336-7.68 256-138.752 256-299.52-0.512-153.6-104.448-280.064-239.104-297.984z" ></path><path d="M490.496 519.168l-76.8-132.608-76.8 132.608h57.856v147.968h38.4v-147.968h57.344zM530.944 534.528l76.8 132.608 76.8-132.608h-57.856v-148.48h-38.4v147.968h-57.344v0.512z" ></path></symbol><symbol id="icon-jicheng1" viewBox="0 0 1024 1024"><path d="M790.016 142.336h-123.904c-52.224 0-94.72 42.496-94.72 94.72V322.56H438.784c-5.12 0-42.496-1.536-54.784-45.056 28.16-19.968 46.592-52.736 46.592-90.112 0-60.928-49.664-110.592-110.592-110.592S209.92 126.464 209.92 187.392s49.664 110.592 110.592 110.592c11.264 38.4 34.816 60.416 55.296 72.704 30.208 17.92 59.904 18.432 63.488 18.432h132.608v54.784H289.28C274.944 398.848 233.472 366.592 184.32 366.592c-60.928 0-110.592 49.664-110.592 110.592s49.664 110.592 110.592 110.592c49.152 0 91.136-32.256 105.472-77.312h282.112v50.688h-133.12c-3.072 0-33.28 0.512-63.488 18.432-23.552 13.824-50.176 40.448-59.392 90.112-58.88 2.048-106.496 50.688-106.496 110.08 0 60.928 49.664 110.592 110.592 110.592s110.592-49.664 110.592-110.592c0-38.4-19.968-72.192-49.664-92.16 6.656-54.272 45.568-59.904 57.856-60.416h132.608V706.56c0 52.224 42.496 94.72 94.72 94.72h123.904c52.224 0 94.72-42.496 94.72-94.72V237.056c0-52.224-42.496-94.72-94.72-94.72zM276.48 187.392c0-24.064 19.456-44.032 44.032-44.032s44.032 19.456 44.032 44.032-19.456 44.032-44.032 44.032-44.032-19.968-44.032-44.032z m-92.16 333.312c-24.064 0-44.032-19.456-44.032-44.032 0-24.064 19.456-44.032 44.032-44.032s44.032 19.456 44.032 44.032c-0.512 24.064-19.968 44.032-44.032 44.032z m136.192 302.592c-24.064 0-44.032-19.456-44.032-44.032s19.456-44.032 44.032-44.032 44.032 19.456 44.032 44.032-19.968 44.032-44.032 44.032z m497.664-116.736c0 15.36-12.8 28.16-28.16 28.16h-123.904c-15.36 0-28.16-12.8-28.16-28.16V237.056c0-15.36 12.8-28.16 28.16-28.16h123.904c15.36 0 28.16 12.8 28.16 28.16V706.56z" ></path><path d="M720.896 648.704c-8.704 0-15.36-6.656-15.36-15.36V333.824c0-8.704 6.656-15.36 15.36-15.36s15.36 6.656 15.36 15.36v299.52c0 8.704-7.168 15.36-15.36 15.36z" ></path></symbol><symbol id="icon-xiaji" viewBox="0 0 1024 1024"><path d="M21.996747 63.687685a19.596211 19.596211 0 0 1-19.596211-19.59621V19.596211a19.596211 19.596211 0 0 1 39.192422 0v24.495264a19.596211 19.596211 0 0 1-19.596211 19.59621zM21.996747 945.713137a19.596211 19.596211 0 0 1-19.596211-19.59621v-48.990528a19.596211 19.596211 0 0 1 39.192422 0v48.990528a19.596211 19.596211 0 0 1-19.596211 19.59621z m0-97.981054a19.596211 19.596211 0 0 1-19.596211-19.596211v-48.990527a19.596211 19.596211 0 0 1 39.192422 0v48.990527a19.596211 19.596211 0 0 1-19.596211 19.596211z m0-97.981054a19.596211 19.596211 0 0 1-19.596211-19.596211v-48.990528a19.596211 19.596211 0 0 1 39.192422 0v48.990528a19.596211 19.596211 0 0 1-19.596211 19.596211z m0-97.981055a19.596211 19.596211 0 0 1-19.596211-19.596211v-48.990527a19.596211 19.596211 0 0 1 39.192422 0v48.990527a19.596211 19.596211 0 0 1-19.596211 19.49823z m0-97.981054a19.596211 19.596211 0 0 1-19.596211-19.596211v-48.990527a19.596211 19.596211 0 0 1 39.192422 0v48.990527a19.596211 19.596211 0 0 1-19.596211 19.49823z m0-97.981055a19.596211 19.596211 0 0 1-19.596211-19.596211v-48.990527a19.596211 19.596211 0 0 1 39.192422 0v48.990527a19.596211 19.596211 0 0 1-19.596211 19.49823z m0-97.981054a19.596211 19.596211 0 0 1-19.596211-19.596211v-48.990527a19.596211 19.596211 0 0 1 39.192422 0v48.990527a19.596211 19.596211 0 0 1-19.596211 19.49823z m0-97.981055a19.596211 19.596211 0 0 1-19.596211-19.596211v-48.990527a19.596211 19.596211 0 0 1 39.192422 0v48.990527a19.596211 19.596211 0 0 1-19.596211 19.400249z m0-97.981054a19.596211 19.596211 0 0 1-19.596211-19.596211v-48.990527a19.596211 19.596211 0 0 1 39.192422 0v48.990527a19.596211 19.596211 0 0 1-19.596211 19.400249zM21.996747 1019.002966a19.596211 19.596211 0 0 1-19.596211-19.596211v-24.495263a19.596211 19.596211 0 0 1 39.192422 0v24.495263a19.596211 19.596211 0 0 1-19.596211 19.596211z" ></path><path d="M46.49201 1024H21.996747a19.596211 19.596211 0 0 1 0-39.192422h24.495263a19.596211 19.596211 0 0 1 0 39.192422zM928.419481 1024h-48.990527a19.596211 19.596211 0 0 1 0-39.192422h48.990527a19.596211 19.596211 0 0 1 0 39.192422z m-97.981054 0h-48.990527a19.596211 19.596211 0 0 1 0-39.192422h48.990527a19.596211 19.596211 0 0 1 0 39.192422z m-97.981054 0h-48.990528a19.596211 19.596211 0 0 1 0-39.192422h48.990528a19.596211 19.596211 0 0 1 0 39.192422z m-97.981055 0h-48.990527a19.596211 19.596211 0 0 1 0-39.192422h48.990527a19.596211 19.596211 0 0 1 0 39.192422z m-97.981054 0h-48.990528a19.596211 19.596211 0 0 1 0-39.192422h48.990528a19.596211 19.596211 0 1 1 0 39.192422z m-97.981055 0h-48.990527a19.596211 19.596211 0 0 1 0-39.192422h48.990527a19.596211 19.596211 0 1 1 0 39.192422z m-97.981054 0h-48.990528a19.596211 19.596211 0 1 1 0-39.192422h48.990528a19.596211 19.596211 0 0 1 0 39.192422z m-97.981055 0h-48.990527a19.596211 19.596211 0 0 1 0-39.192422h48.990527a19.596211 19.596211 0 0 1 0 39.192422z m-97.981054 0h-48.990527a19.596211 19.596211 0 0 1 0-39.192422h48.990527a19.596211 19.596211 0 0 1 0 39.192422zM1001.807291 1024h-24.495263a19.596211 19.596211 0 0 1 0-39.192422h24.495263a19.596211 19.596211 0 0 1 0 39.192422z" ></path></symbol><symbol id="icon-a-ziyuan4" viewBox="0 0 1024 1024"><path d="M512 512m-458.105263 0a458.105263 458.105263 0 1 0 916.210526 0 458.105263 458.105263 0 1 0-916.210526 0Z" fill="#FFFFFF" ></path><path d="M512 1024a512 512 0 1 1 512-512 512.592842 512.592842 0 0 1-512 512z m0-916.210526a404.210526 404.210526 0 1 0 404.210526 404.210526 404.695579 404.695579 0 0 0-404.210526-404.210526z" fill="#299AD7" ></path></symbol><symbol id="icon-a-ziyuan3" viewBox="0 0 1024 1024"><path d="M512 512m-426.666667 0a426.666667 426.666667 0 1 0 853.333334 0 426.666667 426.666667 0 1 0-853.333334 0Z" fill="#299AD7" ></path><path d="M512 1024a512 512 0 1 1 512-512 512.568889 512.568889 0 0 1-512 512z m0-853.333333a341.333333 341.333333 0 1 0 341.333333 341.333333 341.731556 341.731556 0 0 0-341.333333-341.333333z" fill="#FFFFFF" ></path></symbol><symbol id="icon-a-ziyuan1" viewBox="0 0 1024 1024"><path d="M512 512m-485.052632 0a485.052632 485.052632 0 1 0 970.105264 0 485.052632 485.052632 0 1 0-970.105264 0Z" fill="#FFFFFF" ></path><path d="M512 1024a512 512 0 1 1 512-512 512.592842 512.592842 0 0 1-512 512z m0-970.105263a458.105263 458.105263 0 1 0 458.105263 458.105263 458.644211 458.644211 0 0 0-458.105263-458.105263z" fill="#299AD7" ></path></symbol><symbol id="icon-liebiao2" viewBox="0 0 1024 1024"><path d="M117.76 176.64h768c16.896 0 30.72-13.824 30.72-30.72s-13.824-30.72-30.72-30.72H117.76c-16.896 0-30.72 13.824-30.72 30.72s13.824 30.72 30.72 30.72zM757.76 385.536c0-14.336-11.264-25.6-25.6-25.6H117.76c-14.336 0-25.6 11.264-25.6 25.6s11.264 25.6 25.6 25.6h614.4c14.336 0 25.6-11.264 25.6-25.6zM117.76 600.064c-14.336 0-25.6 11.264-25.6 25.6s11.264 25.6 25.6 25.6h512c14.336 0 25.6-11.264 25.6-25.6s-11.264-25.6-25.6-25.6H117.76zM885.76 834.56H117.76c-16.896 0-30.72 13.824-30.72 30.72s13.824 30.72 30.72 30.72h768c16.896 0 30.72-13.824 30.72-30.72s-13.824-30.72-30.72-30.72z" ></path></symbol><symbol id="icon-ZWSOFT" viewBox="0 0 4356 1024"><path d="M3714.573545 409.058201h217.803175v412.850794H4063.492063V409.058201h217.261376V336.998942H3714.573545zM2983.686772 409.058201c-21.671958-23.839153-52.012698-41.718519-90.480423-53.638095-39.551323-12.461376-87.22963-18.962963-143.576719-18.962963h-34.675133c-56.34709 0-104.025397 6.501587-143.576719 18.962963-38.467725 11.919577-68.266667 29.798942-90.480424 53.638095-15.712169 17.337566-27.631746 37.925926-35.216931 62.306878-8.126984 24.922751-11.919577 53.096296-11.919576 86.146032 0 54.721693 6.501587 100.774603 18.962963 137.075132 11.919577 35.216931 30.340741 62.306878 54.179894 81.269842 18.962963 15.17037 45.511111 26.006349 78.560846 34.133333 34.133333 8.126984 76.393651 11.919577 125.697355 11.919577h42.260317c49.303704 0 91.022222-3.792593 125.697355-11.919577 33.591534-7.585185 59.597884-18.962963 78.560846-34.133333 23.839153-18.962963 42.260317-46.05291 54.179894-81.269842 12.461376-36.842328 18.962963-82.353439 18.962963-137.075132 0-32.507937-3.792593-61.22328-11.919576-86.146032-7.585185-24.380952-19.504762-44.969312-35.216932-62.306878z m-91.564021 251.394709c-5.959788 23.839153-14.628571 42.260317-26.548148 54.721693-11.919577 11.919577-28.173545 21.130159-48.761905 26.548148-19.504762 5.417989-43.885714 8.126984-71.51746 8.126984h-23.839153c-28.173545 0-52.012698-2.708995-71.517461-8.126984-21.130159-5.959788-37.384127-14.628571-48.761904-26.548148-11.919577-12.461376-20.58836-30.88254-26.548149-54.721693-5.417989-22.213757-8.126984-49.303704-8.126984-81.269841 0-35.75873 3.792593-65.557672 11.919577-89.938625 8.126984-26.006349 21.130159-45.511111 37.925926-58.514285 10.835979-8.126984 25.46455-14.628571 43.343915-18.421164 16.795767-3.792593 36.842328-5.417989 60.681482-5.41799h27.089947c23.297354 0 43.343915 2.167196 60.681481 5.41799 17.879365 3.792593 32.507937 10.29418 43.343916 18.421164 17.337566 13.003175 29.798942 32.507937 37.925926 58.514285 8.126984 24.380952 11.919577 54.179894 11.919576 89.938625-1.625397 31.966138-4.334392 59.056085-9.210582 81.269841zM744.431746 341.333333l-27.631746-86.146031H46.05291V341.333333h449.693122l-449.693122 393.887831v86.146032H753.100529v-86.146032H294.738624z" ></path><path d="M1737.549206 293.655026c56.888889-18.962963 116.486772-29.257143 174.45926-37.384127v-7.585185l-317.49418 7.043387c-19.504762 0-32.507937 5.959788-38.467725 23.839153L1499.157672 460.529101c61.22328-76.93545 143.57672-135.991534 238.391534-166.874075z" ></path><path d="M1484.529101 508.207407l-37.925926 120.821164-98.065609-314.243386c-14.628571-47.136508-44.969312-59.597884-89.396825-59.597883H1152.406349l-117.028571 373.841269-117.028572-373.841269h-130.031746l176.626455 566.179894H1074.929101c54.179894 0 67.724868-11.919577 80.186243-53.096297l102.941799-328.871957 119.195767 381.968254h113.777778c54.179894 0 67.724868-11.919577 80.186243-53.096297l93.731217-299.614814c22.213757-63.932275 54.179894-102.4 91.022222-128.40635-109.443386 21.671958-204.8 82.895238-271.441269 167.957672zM3089.337566 498.455026v323.453969h131.657143v-209.134392h435.606349V540.715344h-435.606349V503.873016c0-57.430688 30.88254-94.814815 102.941799-94.814815h332.66455V336.998942h-370.048677c-124.071958 0-197.214815 54.721693-197.214815 161.456084zM2185.616931 542.88254h-160.372487c-53.638095-0.541799-80.186243-29.798942-80.186243-66.099471 0-33.591534 27.089947-67.724868 81.269841-67.724868l335.373545 0.541799V336.998942h-365.714285c-146.827513 0-190.171429 72.601058-190.171429 139.784127-0.541799 67.724868 43.343915 139.242328 190.171429 139.242328H2156.359788c54.179894 0.541799 80.728042 29.257143 80.728043 66.099471 0 33.591534-27.089947 67.724868-81.269842 67.724867l-335.373545-0.541798v72.059259h365.714286c146.827513 0 190.171429-73.142857 190.171429-139.784127-0.541799-67.724868-44.427513-138.700529-190.713228-138.700529z" ></path></symbol><symbol id="icon-ZWSOFT1" viewBox="0 0 4356 1024"><path d="M3714.573545 409.058201h217.803175v412.850794H4063.492063V409.058201h217.261376V336.998942H3714.573545zM2983.686772 409.058201c-21.671958-23.839153-52.012698-41.718519-90.480423-53.638095-39.551323-12.461376-87.22963-18.962963-143.576719-18.962963h-34.675133c-56.34709 0-104.025397 6.501587-143.576719 18.962963-38.467725 11.919577-68.266667 29.798942-90.480424 53.638095-15.712169 17.337566-27.631746 37.925926-35.216931 62.306878-8.126984 24.922751-11.919577 53.096296-11.919576 86.146032 0 54.721693 6.501587 100.774603 18.962963 137.075132 11.919577 35.216931 30.340741 62.306878 54.179894 81.269842 18.962963 15.17037 45.511111 26.006349 78.560846 34.133333 34.133333 8.126984 76.393651 11.919577 125.697355 11.919577h42.260317c49.303704 0 91.022222-3.792593 125.697355-11.919577 33.591534-7.585185 59.597884-18.962963 78.560846-34.133333 23.839153-18.962963 42.260317-46.05291 54.179894-81.269842 12.461376-36.842328 18.962963-82.353439 18.962963-137.075132 0-32.507937-3.792593-61.22328-11.919576-86.146032-7.585185-24.380952-19.504762-44.969312-35.216932-62.306878z m-91.564021 251.394709c-5.959788 23.839153-14.628571 42.260317-26.548148 54.721693-11.919577 11.919577-28.173545 21.130159-48.761905 26.548148-19.504762 5.417989-43.885714 8.126984-71.51746 8.126984h-23.839153c-28.173545 0-52.012698-2.708995-71.517461-8.126984-21.130159-5.959788-37.384127-14.628571-48.761904-26.548148-11.919577-12.461376-20.58836-30.88254-26.548149-54.721693-5.417989-22.213757-8.126984-49.303704-8.126984-81.269841 0-35.75873 3.792593-65.557672 11.919577-89.938625 8.126984-26.006349 21.130159-45.511111 37.925926-58.514285 10.835979-8.126984 25.46455-14.628571 43.343915-18.421164 16.795767-3.792593 36.842328-5.417989 60.681482-5.41799h27.089947c23.297354 0 43.343915 2.167196 60.681481 5.41799 17.879365 3.792593 32.507937 10.29418 43.343916 18.421164 17.337566 13.003175 29.798942 32.507937 37.925926 58.514285 8.126984 24.380952 11.919577 54.179894 11.919576 89.938625-1.625397 31.966138-4.334392 59.056085-9.210582 81.269841zM744.431746 341.333333l-27.631746-86.146031H46.05291V341.333333h449.693122l-449.693122 393.887831v86.146032H753.100529v-86.146032H294.738624z" fill="#1D66A0" ></path><path d="M1737.549206 293.655026c56.888889-18.962963 116.486772-29.257143 174.45926-37.384127v-7.585185l-317.49418 7.043387c-19.504762 0-32.507937 5.959788-38.467725 23.839153L1499.157672 460.529101c61.22328-76.93545 143.57672-135.991534 238.391534-166.874075z" fill="#80B741" ></path><path d="M1484.529101 508.207407l-37.925926 120.821164-98.065609-314.243386c-14.628571-47.136508-44.969312-59.597884-89.396825-59.597883H1152.406349l-117.028571 373.841269-117.028572-373.841269h-130.031746l176.626455 566.179894H1074.929101c54.179894 0 67.724868-11.919577 80.186243-53.096297l102.941799-328.871957 119.195767 381.968254h113.777778c54.179894 0 67.724868-11.919577 80.186243-53.096297l93.731217-299.614814c22.213757-63.932275 54.179894-102.4 91.022222-128.40635-109.443386 21.671958-204.8 82.895238-271.441269 167.957672zM3089.337566 498.455026v323.453969h131.657143v-209.134392h435.606349V540.715344h-435.606349V503.873016c0-57.430688 30.88254-94.814815 102.941799-94.814815h332.66455V336.998942h-370.048677c-124.071958 0-197.214815 54.721693-197.214815 161.456084zM2185.616931 542.88254h-160.372487c-53.638095-0.541799-80.186243-29.798942-80.186243-66.099471 0-33.591534 27.089947-67.724868 81.269841-67.724868l335.373545 0.541799V336.998942h-365.714285c-146.827513 0-190.171429 72.601058-190.171429 139.784127-0.541799 67.724868 43.343915 139.242328 190.171429 139.242328H2156.359788c54.179894 0.541799 80.728042 29.257143 80.728043 66.099471 0 33.591534-27.089947 67.724868-81.269842 67.724867l-335.373545-0.541798v72.059259h365.714286c146.827513 0 190.171429-73.142857 190.171429-139.784127-0.541799-67.724868-44.427513-138.700529-190.713228-138.700529z" fill="#1D66A0" ></path></symbol><symbol id="icon-jiaoseguanli" viewBox="0 0 1024 1024"><path d="M649.216 889.856c1.024-2.56 2.56-8.192 2.56-10.752 0-16.384-13.312-30.208-30.208-30.208h-1.024c-17.92 0-32.256-13.312-36.864-34.304l-0.512-2.56v-1.536c-2.56-15.36-4.096-28.16-4.096-37.888 0-13.824 2.56-29.696 4.096-37.376l0.512-4.096c3.584-20.992 18.432-34.304 36.864-34.304h2.048c16.384 0 30.208-13.312 30.208-30.208 0-4.096-2.048-9.728-3.072-12.288-8.704-19.456-2.048-42.496 14.848-53.248l0.512-0.512 31.744-16.896c-35.328-11.264-76.8-23.04-119.296-32.256 62.464-39.424 99.84-108.544 99.84-182.272V240.64c0-119.296-96.768-216.576-216.064-216.576C399.36 24.576 339.968 51.2 299.52 97.792 264.192 137.216 245.248 188.416 244.736 240.64v129.024c0 72.704 36.352 137.216 91.136 176.128-133.12 23.04-259.072 77.824-265.216 80.896-35.84 14.848-62.976 54.784-62.976 93.696v155.648h0.512c5.12 39.936 39.424 70.144 79.872 70.144H670.72l-5.632-3.072c-16.896-12.288-24.064-34.816-15.872-53.248zM786.944 946.176h10.24c-2.048-1.024-4.096-1.536-4.608-1.536-0.512-0.512-2.048-0.512-5.632 1.536z" ></path><path d="M1008.64 741.376l-0.512-3.072c-2.048-10.752-8.704-17.408-16.896-17.408h-2.048c-27.648 0-50.688-22.528-50.688-50.688 0-8.192 4.096-18.432 4.096-18.432 4.096-10.24-0.512-21.504-11.264-27.136l-48.64-27.136c-3.072-1.024-6.144-2.048-9.216-2.048-6.144 0-13.312 3.072-17.92 7.168-0.512 0.512-22.528 22.016-39.936 22.016-14.848 0-33.792-15.872-39.936-22.016-4.608-4.608-11.264-7.168-17.92-7.168-3.072 0-6.144 1.024-9.216 2.048l-50.688 27.648c-8.192 5.12-11.264 17.408-7.168 27.136 1.536 3.072 5.12 12.288 5.12 20.992 0 27.648-22.528 50.688-50.688 50.688h-2.048c-12.288 0-15.872 12.288-16.896 17.92v0.512c0 0.512 0 1.536-0.512 2.048v1.024c-1.024 6.656-3.584 22.016-3.584 34.304 0 8.704 1.024 20.48 3.584 34.816l0.512 3.072c2.048 10.752 8.704 17.408 16.896 17.408h1.024c27.648 0 50.688 22.528 50.688 50.688 0 8.192-4.096 18.432-4.096 18.432-4.096 9.216 0 21.504 8.704 28.16l47.616 26.624c3.072 1.024 6.144 2.048 9.216 2.048 7.168 0 13.312-2.56 17.408-6.656l2.56-2.56c16.896-14.336 28.672-20.992 38.4-20.992 15.36 0 33.792 16.896 40.96 24.064 4.608 4.608 11.264 7.168 17.92 7.168 4.096 0 7.168-1.024 11.776-3.072l49.152-27.136c8.192-5.12 11.776-17.408 7.168-27.136-3.584-6.656-4.608-17.408-4.608-20.992v-0.512c0.512-27.648 23.04-49.664 50.688-49.664h2.048c12.288 0 15.872-12.288 16.896-17.92l0.512-3.072c1.024-6.144 3.584-20.992 3.584-34.816 2.048-10.24 0.512-22.016-2.048-36.352z m-264.704 36.352c0-40.96 33.28-73.728 73.728-73.728s73.728 33.28 73.728 73.728-33.28 73.728-73.728 73.728-73.728-33.28-73.728-73.728z" ></path></symbol><symbol id="icon-jiaose" viewBox="0 0 1024 1024"><path d="M931.84 656.896c-5.632-2.56-110.08-49.664-226.816-75.264 59.904-39.424 96.256-108.544 96.256-182.272V270.848c0-119.296-93.696-216.576-208.384-216.576-59.904 0-116.736 26.624-156.16 73.728-33.792 39.424-52.224 90.624-52.736 142.848V399.36c0 72.704 34.816 137.216 88.064 176.128-128.512 23.04-250.368 77.824-256 80.896-34.816 14.848-60.416 54.784-60.416 93.696v155.648h0.512c5.12 39.936 37.888 70.144 77.312 70.144h679.936c34.304 0 64.512-23.04 75.776-57.344l2.048-6.144v-161.792c0.512-39.424-25.6-79.872-59.392-93.696z" ></path><path d="M194.048 596.992c31.232-9.216 62.464-18.432 93.696-28.672 41.472-13.312 60.928-20.992 60.928-20.992s26.624-12.288 19.968-36.864c-16.896-32.768-28.672-58.368-28.672-154.112V231.424s7.168-60.416 29.696-66.56c1.536-2.048 2.048-5.12 1.536-8.192-5.632-14.336-19.456-24.064-34.816-24.064-87.04 0-157.184 73.216-157.184 163.328V399.36c0 40.448 14.848 76.8 37.888 105.472-74.24 23.552-139.776 60.928-151.552 68.096-27.136 13.312-46.592 45.056-46.592 76.8V762.88c0 21.504 16.896 39.424 37.888 39.424 19.456 0 35.328-15.36 37.376-34.816 0-1.536 1.024-2.56 1.024-4.608v-17.92c3.072-37.376 16.384-104.96 72.192-136.704 8.704-4.096 17.408-7.68 26.624-11.264z" ></path></symbol><symbol id="icon-biaozhuyangshi1" viewBox="0 0 1024 1024"><path d="M58.88 97.28h61.44v819.2h-61.44zM908.8 97.28h61.44v455.68h-61.44z" ></path><path d="M286.72 430.08h466.432v61.44H286.72z" ></path><path d="M322.56 583.168L110.08 460.8 322.56 338.432zM717.312 583.168L929.28 460.8l-211.968-122.368z" ></path><path d="M1000.448 558.08c1.536 4.096 3.072 8.192 3.584 12.288 1.024 4.608 1.536 9.728 1.536 14.336 0 5.12-1.024 10.24-3.072 15.36-2.048 5.632-5.12 10.24-9.216 14.336l-12.288 12.288-9.728 9.216c-3.072 3.072-6.144 5.632-8.704 8.192l-109.056-109.056c4.608-4.096 10.24-9.216 16.384-15.36s11.776-10.752 15.872-14.336c5.12-4.096 10.752-7.168 16.896-9.216 5.632-1.536 11.264-2.56 17.408-2.048 5.632 0 11.264 0.512 16.384 2.048 4.608 1.536 9.216 3.072 13.824 5.12 10.24 6.144 19.456 13.312 27.136 22.528 9.728 10.24 17.408 21.504 23.04 34.304z m-453.632 284.16l16.384-16.896c8.704-8.704 18.944-19.456 32.256-32.256l215.04-215.04 109.056 109.568-125.952 125.44-46.592 47.104c-15.36 15.36-29.696 29.184-41.984 41.472s-22.528 23.04-30.72 31.232c-8.192 8.192-12.8 12.8-14.336 13.824-4.096 3.584-8.192 7.168-13.312 11.264-4.608 3.584-10.24 6.656-15.872 9.216s-13.312 6.144-24.064 9.728-21.504 7.68-32.768 11.264-22.528 7.168-32.768 9.728-17.92 4.608-23.04 5.12c-10.24 1.024-17.408-0.512-20.992-4.608s-4.608-11.264-3.072-21.504c1.536-8.192 3.072-15.872 5.632-23.552 3.072-10.24 6.144-20.992 9.216-32.256 3.072-11.264 6.656-20.992 9.728-30.72 2.048-6.656 4.608-12.8 7.68-19.456 2.048-5.12 4.608-10.24 7.68-14.848 4.096-4.608 8.192-9.728 12.8-13.824z" ></path></symbol><symbol id="icon-zhushixing" viewBox="0 0 1024 1024"><path d="M967.111111 1024c0-233.244444-199.736889-423.310222-447.601778-427.064889C689.664 429.624889 687.217778 164.579556 512 0c-175.217778 164.465778-177.664 429.624889-7.509333 596.935111C256.625778 600.689778 56.888889 790.357333 56.888889 1024c248.775111 0 450.901333-187.335111 455.111111-419.953778 4.209778 232.618667 206.336 419.953778 455.111111 419.953778z" ></path></symbol><symbol id="icon-budayin" viewBox="0 0 1103 1024"><path d="M833.358629 468.02967a270.192141 270.192141 0 1 0 270.249023 270.192141 270.476554 270.476554 0 0 0-270.249023-270.192141z m110.238393 353.411321a19.283186 19.283186 0 1 1-27.303627 27.246744l-82.991649-83.219179-83.276062 82.365941a19.305939 19.305939 0 0 1-27.132979-27.474275l83.162297-82.252176-82.821001-83.105414a19.283186 19.283186 0 1 1 27.303626-27.246744l82.99165 83.219179 83.219179-82.365941a19.283186 19.283186 0 1 1 27.132979 27.417392l-83.162297 82.252176z" ></path><path d="M219.766498 951.303866v-219.566666h329.406881A284.41278 284.41278 0 0 1 1023.915191 528.32518v-45.676693a191.409801 191.409801 0 0 0-146.017521-175.141389V170.647668a170.647668 170.647668 0 0 0-170.647668-170.647668H147.127474v308.132806C80.404236 329.975707-6.853605 377.586406 0.427362 482.648487v395.276882h146.017521V1023.999772h686.970628a283.332011 283.332011 0 0 1-189.873971-72.695906z m0-877.811604h502.159204v85.949542h82.593471v279.577763H219.766498zM877.89767 1023.999772v-3.469835a286.801847 286.801847 0 0 1-44.482159 3.469835z" ></path></symbol><symbol id="icon-bofang" viewBox="0 0 1024 1024"><path d="M521.846154 34.461538C258.461538 34.461538 44.307692 248.615385 44.307692 512s214.153846 477.538462 477.538462 477.538462 477.538462-214.153846 477.538461-477.538462-214.153846-477.538462-477.538461-477.538462z m0 886.153847c-225.476923 0-408.615385-183.138462-408.615385-408.615385s183.138462-408.615385 408.615385-408.615385 408.615385 183.138462 408.615384 408.615385-183.138462 408.615385-408.615384 408.615385z" ></path><path d="M703.015385 481.969231L456.861538 339.692308c-10.830769-6.4-23.630769-6.4-34.461538 0s-17.230769 17.723077-17.230769 30.030769v284.061538c0 12.307692 6.4 23.630769 17.230769 30.03077 5.415385 2.953846 11.323077 4.430769 17.230769 4.430769s11.815385-1.476923 17.230769-4.430769l246.153847-142.276923c10.830769-6.4 17.230769-17.723077 17.230769-30.03077s-6.4-23.138462-17.230769-29.538461z" ></path></symbol><symbol id="icon-duanyunxietongchajian" viewBox="0 0 1024 1024"><path d="M462.848 5.12h0.512zM983.04 474.624c-32.768-44.544-91.136-61.952-143.36-43.52V256.512c0-22.016-8.704-43.52-24.576-59.392-15.872-15.872-36.864-24.576-59.392-24.576h-174.592c13.824-38.4 7.68-80.896-15.872-114.176C542.208 25.088 503.808 5.12 463.36 5.12v1.024c-40.96 0-78.848 19.456-102.4 52.736-23.552 33.28-29.696 75.776-15.872 114.176H169.984c-46.08 0-83.456 37.376-83.456 83.456v174.592c51.712-17.408 109.568 0.512 142.336 45.056 32.768 44.544 32.768 104.96 0 148.992-32.768 44.544-90.624 61.952-142.336 44.032v174.08c0 22.016 8.704 43.52 24.576 59.392 15.872 15.872 36.864 24.576 59.392 24.576h174.592c-18.432-52.224-0.512-110.08 43.52-143.36 44.544-32.768 104.96-32.768 149.504 0s61.952 91.136 43.52 143.36h174.592c22.016 0 43.52-8.704 59.392-24.576 15.872-15.872 24.576-36.864 24.576-59.392v-174.592c52.224 18.432 110.592 1.024 143.36-43.52 32.768-45.056 32.768-105.984-0.512-150.528z m-418.304-141.312c81.408 0 147.456 71.168 147.456 158.208 0 4.608-3.584 8.704-8.704 8.704-4.608 0-8.704-3.584-8.704-8.704 0-77.824-58.368-141.312-130.048-141.312-4.608 0-8.704-3.584-8.704-8.704s4.096-8.192 8.704-8.192zM251.904 368.64c0-27.136 17.92-52.224 45.568-63.488 5.12-2.048 8.704-6.656 9.728-11.776 7.68-36.352 41.472-62.464 80.384-62.464 28.16 0 54.272 13.824 69.632 36.352 2.56 4.096 6.656 6.656 11.264 7.168 42.496 6.144 73.216 40.448 73.216 81.408 0 45.568-36.864 82.432-81.92 82.432H325.12c-40.96-2.048-73.216-32.768-73.216-69.632z m230.912 259.584c-81.408 0-147.968-71.168-147.968-159.232 0-5.12 4.096-9.216 9.216-9.216s9.216 4.096 9.216 9.216c0 77.312 57.856 140.8 129.536 140.8 5.12 0 9.216 4.096 9.216 9.216s-4.096 9.216-9.216 9.216z m266.24 54.272c0 3.072-2.56 6.144-6.144 6.144h-104.96v36.864h51.2c4.608 1.024 8.192 5.12 8.192 9.216 0 2.56-1.024 4.608-2.56 6.144-1.536 1.536-3.584 2.048-5.632 2.048H573.44c-1.536 0-3.584-0.512-4.608-2.048-1.536-1.536-2.56-3.584-2.56-6.144 0-4.096 3.072-8.192 8.192-9.216h53.248v-36.864h-104.96c-3.072 0-6.144-2.56-6.144-6.144v-144.384c0-3.072 2.56-6.144 6.144-6.144h221.184c3.072 0 6.144 2.56 6.144 6.144v144.384z" ></path></symbol><symbol id="icon-qianzhangliebiao" viewBox="0 0 1024 1024"><path d="M870.4 135.936H102.4a10.24 10.24 0 0 1 0-20.48h768a10.24 10.24 0 0 1 0 20.48zM102.4 522.24a10.24 10.24 0 0 1 0-20.48h614.4a10.24 10.24 0 0 1 0 20.48zM870.4 903.936H102.4a10.24 10.24 0 0 1 0-20.48h768a10.24 10.24 0 0 1 0 20.48z" ></path><path d="M980.1216 694.9888l-208.896-33.9456a750.4384 750.4384 0 0 1 29.5936-171.5712 137.3696 137.3696 0 0 0 37.888-94.6688v-6.5024a137.2672 137.2672 0 0 0-274.2272 0v6.5024a137.3696 137.3696 0 0 0 37.888 94.6688 753.3056 753.3056 0 0 1 29.6448 171.5712l-208.9472 33.9456a33.5872 33.5872 0 0 0-28.8256 32.8192v71.68a33.6896 33.6896 0 0 0 34.1504 33.28h5.12v8.7552a71.1168 71.1168 0 0 0 19.5584 49.3568 65.5872 65.5872 0 0 0 47.36 20.48h401.9712a65.6384 65.6384 0 0 0 47.4112-20.48 71.1168 71.1168 0 0 0 19.6096-49.2544v-8.7552h5.12a33.6896 33.6896 0 0 0 34.1504-33.28v-71.68a33.536 33.536 0 0 0-28.5696-32.9216z m-77.6704 181.2992H500.4288a34.1504 34.1504 0 0 1-33.4848-34.816v-8.7552h134.144c22.1696 8.6016 58.8288 14.1824 100.352 14.1824s78.1824-5.5808 100.352-14.1824h134.144v8.7552a34.1504 34.1504 0 0 1-33.4848 34.816z" ></path></symbol><symbol id="icon-qingchushaixuan" viewBox="0 0 1024 1024"><path d="M41.5744 63.744c-7.4752 17.8688-4.0448 32.8192 9.216 44.9024l317.44 364.544v447.488a38.5536 38.5536 0 0 0 25.344 37.9904c14.3872 4.0448 31.6416-1.7408 44.9024-9.216l164.7104-77.1584a38.8096 38.8096 0 0 0 12.0832-28.7744V473.1904l317.44-364.544a37.7344 37.7344 0 0 0 9.216-44.9024 39.168 39.168 0 0 0-38.2464-25.344H79.616a39.1168 39.1168 0 0 0-38.0416 25.344z m0 0" ></path><path d="M757.76 362.7008a256 256 0 1 0 256 256 256.3072 256.3072 0 0 0-256-256z m104.448 334.848a18.3296 18.3296 0 0 1-12.9536 31.232 18.0736 18.0736 0 0 1-12.9536-5.4272L757.76 644.5056l-78.8992 78.0288a18.2784 18.2784 0 0 1-25.6-25.9584l78.7968-77.9776-78.4896-78.7456a18.2784 18.2784 0 0 1 25.9072-25.6L757.76 592.896l78.8992-78.0288a18.2784 18.2784 0 1 1 25.6 26.0096l-78.7968 77.9264z m0 0" ></path></symbol><symbol id="icon-shouqishaixuan" viewBox="0 0 1024 1024"><path d="M41.5744 76.8c-7.4752 17.8688-4.0448 32.8192 9.216 44.9024l317.44 364.544v447.488a38.5536 38.5536 0 0 0 25.344 37.9904c14.3872 4.0448 31.6416-1.7408 44.9024-9.216l164.7104-77.1584a38.8096 38.8096 0 0 0 12.0832-28.7744V485.9904l317.44-364.544a37.7344 37.7344 0 0 0 9.216-44.9024A39.168 39.168 0 0 0 903.68 51.2H79.616a39.1168 39.1168 0 0 0-38.0416 25.6z m0 0" ></path><path d="M766.3104 370.7904a256 256 0 1 0 256 256 256 256 0 0 0-256-256z m129.3824 327.68l-129.3824-129.8432-129.3824 129.9456-26.0608-26.0608L766.3104 517.12 921.6 672.512z m0 0" ></path></symbol><symbol id="icon-shouqi" viewBox="0 0 1024 1024"><path d="M494.4384 159.7952l388.8128 376.4736a43.8784 43.8784 0 0 0 60.672 0 40.6528 40.6528 0 0 0 0-58.7776L496.1792 43.9296 48.4352 477.4912a40.6016 40.6016 0 0 0 0 58.7776 43.8784 43.8784 0 0 0 60.672 0z m0.6656 416.1536l388.1472 375.808a43.8784 43.8784 0 0 0 60.672 0 40.6016 40.6016 0 0 0 0-58.7264L496.1792 459.4176 48.4352 893.0304a40.6016 40.6016 0 0 0 0 58.7776 43.9808 43.9808 0 0 0 60.672 0z m0 0" ></path></symbol><symbol id="icon-zhankai" viewBox="0 0 1024 1024"><path d="M514.2016 860.416L125.3888 483.9424a43.8784 43.8784 0 0 0-60.672 0 40.6016 40.6016 0 0 0 0 58.7264l447.744 433.6128L960.2048 542.72a40.5504 40.5504 0 0 0 0-58.7264 43.8784 43.8784 0 0 0-60.672 0z m-0.6656-416.1536L125.3888 68.4032a43.8784 43.8784 0 0 0-60.672 0 40.6528 40.6528 0 0 0 0 58.7776l447.744 433.5616 447.744-433.5616a40.6016 40.6016 0 0 0 0-58.7776 43.8784 43.8784 0 0 0-60.672 0z m0 0" ></path></symbol><symbol id="icon-jiantou" viewBox="0 0 1024 1024"><path d="M146.432 955.0848l270.0288-270.4896 124.6208 224.768a65.6896 65.6896 0 0 0 118.4256-7.3216l306.7392-760.1664A65.792 65.792 0 0 0 880.64 56.32L121.9584 363.52a65.9456 65.9456 0 0 0-7.2704 118.6304l224.3584 124.8256-270.0288 270.5408a54.784 54.784 0 1 0 77.4144 77.568z m0 0" ></path></symbol><symbol id="icon-dianziqianzhang" viewBox="0 0 1024 1024"><path d="M948.251894 685.399225l-327.170013-53.116077A1174.411253 1174.411253 0 0 1 667.65797 363.574942a215.137173 215.137173 0 0 0 59.144241-148.258687V205.079752a214.966565 214.966565 0 0 0-429.478175 0v10.236503a215.137173 215.137173 0 0 0 58.859893 148.258687 1173.899427 1173.899427 0 0 1 46.405481 268.708206l-327.170013 53.116077a52.604252 52.604252 0 0 0-44.699397 51.182516v112.203448a52.77486 52.77486 0 0 0 53.457294 52.092427h7.961725v13.64867a111.521014 111.521014 0 0 0 30.709509 77.228729A102.990595 102.990595 0 0 0 197.063175 1024H826.892463a102.990595 102.990595 0 0 0 73.9303-31.960637 111.521014 111.521014 0 0 0 30.70951-77.228729v-13.648671h7.961724a52.77486 52.77486 0 0 0 53.457294-52.092427v-112.203448a52.547383 52.547383 0 0 0-44.699397-51.466863zM826.892463 969.405317H197.063175a53.571033 53.571033 0 0 1-52.604252-54.594683v-13.648671h210.417008c34.747241 13.421193 92.185397 22.17909 157.187192 22.17909s122.439951-8.757897 157.187192-22.17909h210.018922v13.648671a53.627902 53.627902 0 0 1-52.376774 54.594683z" ></path></symbol><symbol id="icon-yunxian1" viewBox="0 0 1024 1024"><path d="M338.944 1009.664l-95.232-201.728H43.52V389.632h56.32v361.984h179.712l65.024 138.24 81.92-138.24H993.28v56.32H458.752z" ></path><path d="M319.488 673.792c-25.6 0-110.08-19.456-140.288-71.68-43.008-69.12-41.984-115.712-16.896-178.688 29.696-67.072 98.816-91.136 98.816-91.136s-7.168-29.696 17.408-86.528S358.4 137.216 438.272 129.536c70.144-3.584 94.72 8.704 133.632 38.4 33.28 26.112 48.128 56.832 48.128 56.832s73.216-38.912 131.584 0c29.184 19.456 41.472 43.008 49.152 72.704s-6.144 67.584-6.144 67.584c35.84 3.072 98.816 48.64 112.128 86.528 13.312 37.888 20.48 102.4-4.608 138.24-38.912 67.584-92.672 82.432-138.24 82.432-44.544 0-418.304 1.536-444.416 1.536z" ></path></symbol><symbol id="icon-congbendigengxin" viewBox="0 0 1024 1024"><path d="M537.6 25.6a486.4 486.4 0 1 0 486.4 486.4 486.9632 486.9632 0 0 0-486.4-486.4z m0 921.6a435.2 435.2 0 1 1 435.2-435.2 435.712 435.712 0 0 1-435.2 435.2z" ></path><path d="M793.6 602.4192v118.1184a19.8144 19.8144 0 0 1-19.8144 19.7632H301.3632a19.7632 19.7632 0 0 1-19.7632-19.7632v-118.1184a19.8144 19.8144 0 0 1 39.5776 0v98.304h432.7936v-98.304a19.7632 19.7632 0 0 1 19.7632-19.7632 20.0192 20.0192 0 0 1 19.8144 19.7632z m-230.144-308.5824a36.608 36.608 0 0 0-51.7632 0L405.504 399.9744a19.7632 19.7632 0 0 0 27.904 27.9552l84.6848-84.6336v266.7008a20.48 20.48 0 0 0 19.2 20.48 19.968 19.968 0 0 0 20.48-19.8144V343.04l84.6336 84.6336a19.7632 19.7632 0 0 0 27.9552-27.904z m0 0" ></path></symbol><symbol id="icon-congyunduangengxin" viewBox="0 0 1024 1024"><path d="M631.0912 531.8656L532.48 430.08a19.1488 19.1488 0 0 0-27.904 0l-98.304 101.7856a20.48 20.48 0 0 0 0 28.7744 19.2 19.2 0 0 0 27.9552 0L499.2 493.4656v195.1744a19.7632 19.7632 0 1 0 39.4752 0V493.4656l64.9728 67.1744a19.2512 19.2512 0 0 0 27.5968 0 20.48 20.48 0 0 0-0.1536-28.7744z" ></path><path d="M375.808 653.6704h-41.984a89.0368 89.0368 0 0 1-59.9552-27.5968 90.7776 90.7776 0 0 1-25.0368-63.4368 92.9792 92.9792 0 0 1 25.344-64.4608 86.3232 86.3232 0 0 1 54.5792-26.88l37.376-3.9424 8.7552-38.4a152.7808 152.7808 0 0 1 46.7456-81.152 142.1824 142.1824 0 0 1 224.9216 48.2304l12.544 26.88 28.8256 2.9184a111.7184 111.7184 0 0 1 86.272 58.9312A21.5552 21.5552 0 0 0 793.6 496.64h1.28a21.9648 21.9648 0 0 0 19.6096-32.256 157.7984 157.7984 0 0 0-26.9824-39.2192 155.9552 155.9552 0 0 0-98.5088-49.2544A188.5184 188.5184 0 0 0 390.656 311.552 206.592 206.592 0 0 0 328.4992 419.84a134.656 134.656 0 0 0-84.0192 41.6256 144.7424 144.7424 0 0 0-0.6656 198.4 131.84 131.84 0 0 0 92.16 42.3936c0.6144 0 1.8432 0.3584 2.56 0.3584h37.5808a23.552 23.552 0 0 0 23.2448-24.6784 23.7568 23.7568 0 0 0-23.6032-24.2688zM798.2592 523.4688a21.7088 21.7088 0 1 0 21.0432 21.7088 21.4016 21.4016 0 0 0-21.0432-21.7088zM787.2512 593.92a24.832 24.832 0 0 0-19.7632 10.7008 129.1264 129.1264 0 0 1-12.8 16.0256 107.52 107.52 0 0 1-77.7728 33.0752h-30.72a24.8832 24.8832 0 0 0-24.4224 25.2416 22.8352 22.8352 0 0 0 22.5792 23.296h29.184a156.3648 156.3648 0 0 0 131.9936-73.216 22.4256 22.4256 0 0 0-18.176-35.2256z" ></path><path d="M512 0a486.4 486.4 0 1 0 486.4 486.4 486.9632 486.9632 0 0 0-486.4-486.4z m0 921.6a435.2 435.2 0 1 1 435.2-435.2 435.712 435.712 0 0 1-435.2 435.2z" ></path></symbol><symbol id="icon-lishibanbenjiedian" viewBox="0 0 1024 1024"><path d="M51.17952 495.3344l460.8-460.8 460.8 460.8-460.8 460.8z" ></path></symbol><symbol id="icon-qidian" viewBox="0 0 1024 1024"><path d="M882.304 996.2496h-368.64l305.0496-503.9616a282.368 282.368 0 0 0 63.5392-176.7936C882.304 141.2608 716.5184 0 512.0256 0S141.7472 141.2608 141.7472 315.4944a282.6752 282.6752 0 0 0 63.5392 176.7936l305.0496 503.9616h-368.64a13.8752 13.8752 0 0 0 0 27.7504h740.608a13.8752 13.8752 0 0 0 0-27.7504z" ></path></symbol><symbol id="icon-chuangjianbanben" viewBox="0 0 1024 1024"><path d="M796.760315 363.222022a182.793413 182.793413 0 1 0-74.386124-3.274218c-41.643951 180.695867-247.305725 327.42173-503.103951 369.372639V362.505787a182.486455 182.486455 0 1 0-73.055974 0V1024h73.055974v-220.60039l10.948164-1.841748c4.502049-0.716235 9.004098-1.534789 13.403827-2.353343L245.566297 798.897561c255.28663-46.862235 508.117597-203.103792 551.194018-435.675539zM876.978639 731.673787v-146.214266h-73.055973v146.214266h-146.111947v73.055973h146.111947v146.214267h73.055973v-146.214267H1023.192905v-73.055973h-146.214266z" ></path></symbol><symbol id="icon-wuwangluo" viewBox="0 0 1186 1024"><path d="M659.908152 716.984552L561.436474 617.062822a344.84861 344.84861 0 0 0-208.54377 89.77137 45.083419 45.083419 0 0 0 60.836252 66.636457 254.61586 254.61586 0 0 1 172.292482-66.570546 243.872297 243.872297 0 0 1 73.886714 10.084449zM342.940078 392.634398a604.803296 604.803296 0 0 0-164.778579 105.45829 45.083419 45.083419 0 1 0 60.836252 66.570546A549.437693 549.437693 0 0 1 410.828853 462.170958zM604.212993 893.495366a65.252317 65.252317 0 1 0 65.911431 65.911431 65.911432 65.911432 0 0 0-65.911431-65.911431zM148.69909 195.69104a934.558187 934.558187 0 0 0-133.207003 95.571576 45.149331 45.149331 0 1 0 59.320288 68.086509 825.277034 825.277034 0 0 1 139.07312-97.087539zM129.914332 8.898043a27.550978 27.550978 0 0 0-39.085479-1.450051 25.77137 25.77137 0 0 0 0 37.635427l787.707518 802.208033a28.07827 28.07827 0 0 0 18.850669 8.700309 30.187436 30.187436 0 0 0 18.784758-7.250257 25.77137 25.77137 0 0 0 0-37.635428zM1171.051304 291.262616a879.653965 879.653965 0 0 0-845.643667-173.808445L397.778389 191.143151a814.665294 814.665294 0 0 1 196.943358-24.453141 789.15757 789.15757 0 0 1 518.393409 192.659115 46.138002 46.138002 0 0 0 29.001029 11.5345 48.774459 48.774459 0 0 0 34.735325-15.884655 47.060762 47.060762 0 0 0-5.800206-63.736354zM586.021438 343.398558a352.757981 352.757981 0 0 0-39.085479 1.450052l89.837281 91.221421a526.368692 526.368692 0 0 1 298.249228 130.3069 45.610711 45.610711 0 0 0 63.736354-2.900103 45.347065 45.347065 0 0 0-2.900103-63.670443A613.503605 613.503605 0 0 0 586.021438 343.398558z" ></path></symbol><symbol id="icon-jiazaizhong" viewBox="0 0 1081 1024"><path d="M60.016731 252.852715a156.641907 156.641907 0 1 0 127.073546-181.458209 156.641907 156.641907 0 0 0-127.073546 181.458209zM2.170693 600.926285a136.988334 136.988334 0 1 0 269.869952-46.933905v-0.821343a136.988334 136.988334 0 0 0-269.869952 46.933905zM168.844722 869.798891A117.334762 117.334762 0 1 0 264.003213 733.6319 117.334762 117.334762 0 0 0 168.844722 869.798891z m350.772269 69.344844a102.667916 102.667916 0 1 0 83.249014-118.918781 102.609249 102.609249 0 0 0-83.249014 118.918781z m308.003749-165.618016a97.915858 97.915858 0 1 0 79.435634-113.404047 97.915858 97.915858 0 0 0-79.435634 113.34538z m96.507842-354.937653a78.262286 78.262286 0 1 0 63.478106-90.699771 78.262286 78.262286 0 0 0-63.478106 90.641103z m-166.674029-268.813939a58.667381 58.667381 0 1 0 47.637913-68.054162 58.667381 58.667381 0 0 0-47.637913 68.054162zM451.738832 47.516882a39.18981 39.18981 0 0 0 77.147606-13.552165A39.18981 39.18981 0 1 0 451.738832 47.458215z" ></path></symbol><symbol id="icon-shangchuanzhiyun" viewBox="0 0 1024 1024"><path d="M735.3344 308.992C692.736 204.288 608.8192 133.12 512.256 133.12S331.8272 204.2368 289.1776 308.8896C179.2 323.3792 93.44 427.0592 93.44 552.96c0 130.9696 92.6208 238.0288 209.408 245.3504v0.4096h123.392v-88.064H368.64v-0.6656h-6.144c-98.9696 0-179.2-76.8-179.2-171.008-0.256-90.6752 73.8304-164.864 167.424-170.3424a246.5792 246.5792 0 0 1 17.92-34.56v-2.9184h1.8944C405.5552 276.0704 460.8 240.64 522.496 240.64s116.9408 35.5328 152.2176 90.624h1.1264v1.3312a244.992 244.992 0 0 1 18.5856 36.0448c89.2928 7.8336 159.3344 81.0496 159.3344 170.2912 0 94.464-78.3872 171.008-175.104 171.008H675.84v0.5632h-44.032V798.72h89.088v-0.3584c116.992-7.0656 209.92-114.2272 209.92-245.4016-0.256-125.696-85.504-229.2224-195.4816-243.968z" ></path><path d="M633.1904 601.4976l-101.888-176.64-102.4 176.64h76.8v197.12h51.2v-197.12h76.288z" ></path></symbol><symbol id="icon-congyunxiazai" viewBox="0 0 1024 1024"><path d="M730.2144 235.52c-42.5984-104.704-126.5152-175.9744-223.0784-175.9744S326.7072 130.8672 284.0576 235.52C174.08 250.0096 88.32 353.6896 88.32 479.488c0 130.9696 92.6208 237.9776 209.408 245.3504v0.4096h123.392v-88.064H363.52v-0.6656h-6.144c-98.9696 0-179.2-76.544-179.2-171.008 0-90.7264 74.0864-164.9664 167.68-170.5984A243.7632 243.7632 0 0 1 363.52 260.7104v-2.9184h1.8944c35.2768-55.1424 90.3168-90.624 152.2176-90.624s116.9408 35.4816 152.2176 90.624h0.8704v1.3312a244.992 244.992 0 0 1 18.8416 36.2496c89.2928 7.7824 159.3344 81.0496 159.3344 170.2912 0 94.464-78.3872 171.008-175.104 171.008h-3.072v0.5632h-44.032v88.064h89.088v-0.4096c116.992-7.0144 209.92-114.176 209.92-245.3504-0.256-125.6448-85.504-229.2224-195.4816-244.0192z" ></path><path d="M551.2704 548.608v-197.12h-51.2v197.12h-76.288l101.888 176.64 102.4-176.64h-76.8z" ></path></symbol><symbol id="icon-wenziyangshi" viewBox="0 0 1024 1024"><path d="M273.649971 645.657042h577.141693l-257.823967-575.441153c-8.228424-16.456849-12.616918 2.742808-12.616918-9.874109 0-18.651096 6.58274-18.651096 32.913698-26.330959V0H375.133873v34.010821c25.782397 9.325548 29.622328 10.971233 29.622328 31.268013 0 13.165479-5.485616-2.742808-15.908288 19.199657L89.333262 780.603204c-12.068356 25.233835-22.491027 42.787807-31.816575 51.564793s-38.947876 15.359726-56.501848 18.651096v32.913697h238.62431v-32.913697c-29.622328-7.679863-34.559383-21.393904-34.559383-40.593561 0-9.874109 4.388493-24.136712 12.616918-41.690684z m218.327529-484.928484l155.791504 382.89602H341.671613z" ></path><path d="M1017.334976 546.31253A65.827396 65.827396 0 0 1 1021.339476 559.532865a75.756361 75.756361 0 0 1 1.590829 15.579151 44.872342 44.872342 0 0 1-3.126801 16.456849 50.303102 50.303102 0 0 1-9.983822 15.57915c-4.991911 4.991911-9.490116 9.380404-13.43976 13.110623s-7.350726 7.076445-10.312959 9.983822-6.418171 6.253603-9.325548 8.72213l-116.624203-117.008196c4.991911-4.553062 10.971233-10.093534 17.773397-16.456849s12.616918-11.57465 17.169979-15.30487a54.856163 54.856163 0 0 1 18.102534-9.654685 58.037821 58.037821 0 0 1 18.376815-2.523383 69.06391 69.06391 0 0 1 17.499116 2.85252 89.086409 89.086409 0 0 1 14.646595 5.485617 113.66197 113.66197 0 0 1 29.018911 24.026999 139.279799 139.279799 0 0 1 24.630417 35.875931z m-486.025607 304.451706q3.785075-3.730219 17.499117-17.773397t34.285102-34.614239l230.395885-230.395885L930.003964 685.702041l-134.123319 133.849038-49.919109 50.577383c-16.456849 16.182568-31.652006 31.103445-44.927197 44.598061s-24.356136 24.630417-32.913698 33.352547-13.933465 13.768897-15.579151 14.975733c-4.169068 3.785075-8.941555 7.734719-14.372314 11.903787a79.267156 79.267156 0 0 1-16.840843 9.928966 262.870734 262.870734 0 0 1-25.562972 10.642095q-16.895698 6.253603-35.272513 12.178069t-34.943376 10.258102c-10.971233 2.907377-19.254513 4.772486-24.630417 5.485616-10.971233 1.206836-18.705952-0.438849-22.491027-4.99191s-4.772486-12.287781-3.071945-23.094445a207.904859 207.904859 0 0 1 5.924466-25.288692q4.607918-16.456849 9.983821-34.285102c3.510794-11.848931 6.966733-22.820164 10.258103-32.913698a140.322066 140.322066 0 0 1 8.118712-20.625917 105.982107 105.982107 0 0 1 8.447849-15.908287 100.331923 100.331923 0 0 1 13.384904-15.908288z" ></path></symbol><symbol id="icon-biaogeyangshi" viewBox="0 0 1024 1024"><path d="M1020.274879 0.306174H0V255.145263h1.122639v186.358101H0v72.767429h1.122639v181.969602H0v72.767429h1.122639v250.042358h313.165296v0.357203h72.869488v-0.357203h245.960034v0.357203h72.869487v-0.357203h313.165296V255.145263h1.122639z m-387.157422 441.19719h-245.960034V255.145263h245.960034z m0 254.737031h-245.960034v-181.969602h245.960034z m72.869487-181.969602h240.295809v181.969602h-240.295809zM73.992126 255.145263h240.295809v186.358101H73.992126z m0 259.278617h240.295809v181.969602H73.992126z m0 431.756815V769.007824h240.295809v177.019784z m313.165297 0V769.007824h245.960034v177.019784z m318.829521 0V769.007824h240.295809v177.019784z m240.295809-504.524244h-240.295809V255.145263h240.295809z m0 0" fill="#727272" ></path><path d="M1020.581053 1024H204.116211l816.464842-816.464843v816.464843z" fill="#FFFFFF" ></path><path d="M1011.855085 557.849604a62.561619 62.561619 0 0 1 3.77615 12.195943 70.879354 70.879354 0 0 1 1.479843 14.492251 41.537649 41.537649 0 0 1-2.908656 15.308716 46.181293 46.181293 0 0 1-9.287288 14.492251c-4.643644 4.643644-8.828026 8.725968-12.502118 12.195944s-6.837893 6.582748-9.542432 9.287287-6.021428 5.817312-8.725968 8.11362l-108.487766-108.487766 16.533413-15.308716q9.593462-9.032142 15.921064-14.237106a51.029053 51.029053 0 0 1 16.839587-8.981113 53.070215 53.070215 0 0 1 17.145762-2.347336 66.337768 66.337768 0 0 1 16.227239 2.602481 87.565854 87.565854 0 0 1 13.624757 5.102905 105.732197 105.732197 0 0 1 26.994369 22.350726 130.226142 130.226142 0 0 1 22.912044 33.321971z m-452.015348 283.211242l16.227239-16.533413q12.808292-13.114467 31.944187-32.250361l214.322021-214.322021 108.487766 109.100114-124.766034 124.766034-46.385409 46.997757q-23.269248 22.656899-41.792794 41.48662c-12.40006 12.604176-22.656899 22.912045-30.617432 31.076693s-12.961379 12.757263-14.492251 13.930932c-3.878208 3.469976-8.317736 7.144067-13.369611 11.022275a74.910649 74.910649 0 0 1-15.66592 9.287288 254.583944 254.583944 0 0 1-23.779538 9.848607q-15.716948 5.817312-32.760652 11.32845t-32.505506 9.542432c-10.205811 2.70454-17.911197 4.439528-22.912045 5.102906-10.205811 1.122639-17.451936-0.408232-20.921912-4.643644s-4.439528-11.430508-2.908656-21.483231a193.40011 193.40011 0 0 1 5.511138-23.524394q4.388499-15.308716 9.287288-31.893157c3.316888-11.022275 6.48069-21.177057 9.593461-30.617432a129.205561 129.205561 0 0 1 7.5523-19.135895 91.852295 91.852295 0 0 1 7.807445-14.798425 94.454776 94.454776 0 0 1 12.502118-14.798425z m0 0" ></path></symbol><symbol id="icon-u13147" viewBox="0 0 1122 1024"><path d="M1094.8659 628.831877L945.722115 325.577073h-783.462989L11.524904 628.831877V1005.546421h1083.340996V628.820352zM1038.91249 625.224582H693.902958c0 90.101701-62.614805 157.441716-139.969962 157.441717S413.963034 715.326284 413.963034 625.224582H68.826728l127.453916-253.547892h715.189456l127.44239 253.547892zM541.670498 192.510529V6.844322h46.099617v185.666207h-46.099617z m-204.221303 37.801686L215.365885 99.020506l33.940843-36.510897 122.071785 131.291709-33.952367 36.510897z m440.677763 0.080674l-33.952368-36.510897L866.234851 62.590284l33.952367 36.510896-122.06026 131.291709z" fill="#4F5B68" ></path></symbol><symbol id="icon-texing" viewBox="0 0 1024 1024"><path d="M546.816 565.248h116.736v243.2h-116.736V983.04H478.72v-174.592H362.496v-242.688h116.736V45.568h4.608V40.96h62.976v524.288zM370.688 212.48h-117.76V35.84H184.32v176.64h-117.76v245.76h117.76V988.16H253.44V458.24h117.76v-245.76z m471.04 0V35.84h-68.608v176.64h-117.76v245.76h117.76V988.16h68.608V458.24h117.76v-245.76h-117.76z" ></path></symbol><symbol id="icon-yanse" viewBox="0 0 1024 1024"><path d="M40.448 676.9127619c0 151.04 122.368 273.408 273.408 273.408s273.408-122.368 273.408-273.408S464.896 403.5047619 313.856 403.5047619 40.448 525.8727619 40.448 676.9127619z" fill="#FFD731" ></path><path d="M242.176 330.8007619c0 151.04 122.368 273.408 273.408 273.408s273.408-122.368 273.408-273.408-122.368-273.408-273.408-273.408-273.408 122.88-273.408 273.408z" fill="#4D91FF" ></path><path d="M436.224 682.5447619c0 151.04 122.368 273.408 273.408 273.408S983.04 833.5847619 983.04 682.5447619s-122.88-273.408-273.408-273.408-273.408 122.368-273.408 273.408z" fill="#FF4848" ></path><path d="M515.584 413.2327619c82.432 62.976 130.56 160.256 130.56 263.68 0 106.496-51.2 206.848-137.728 269.312-82.432-62.464-130.56-160.256-130.56-263.68 0-105.984 50.176-205.312 135.68-267.776l2.048-1.536z" fill="#FF9D3B" ></path><path d="M709.632 350.7687619c46.592 0 92.16 9.728 134.656 28.672-26.624 181.248-195.072 307.2-376.32 280.576-29.696-4.608-58.88-12.8-86.528-25.088 23.552-163.328 163.328-284.16 328.192-284.16z" fill="#964DFF" ></path><path d="M313.856 345.1367619c167.936 0 309.76 125.44 329.728 292.352-168.96 70.656-363.52-9.216-434.176-178.688-11.776-28.16-19.456-57.856-23.04-88.576 40.448-16.896 83.456-25.6 127.488-25.088z" fill="#59EA59" ></path><path d="M515.584 413.2327619l5.632 4.096c7.68 6.144 14.848 12.288 21.504 18.944l-2.56-2.56c2.56 2.56 5.12 4.608 7.68 7.168l-4.608-4.608c2.56 2.56 5.632 5.12 8.192 8.192l-3.584-3.584 5.632 5.632-2.048-2.048c2.56 2.56 4.608 4.608 6.656 7.168l-4.608-5.12c3.072 3.584 6.656 6.656 9.728 10.24l-4.608-5.12c2.048 2.56 4.608 4.608 6.656 7.168l-2.048-2.048c2.56 2.56 4.608 5.12 6.656 8.192l-5.12-6.144c10.24 11.776 19.456 24.064 27.648 36.864l-2.56-3.584c2.048 3.072 4.096 6.144 6.144 9.728l-3.584-5.632c2.048 3.072 3.584 5.632 5.632 8.704l-1.536-3.072c1.536 2.56 3.584 5.632 5.12 8.192l-3.072-5.12c9.216 15.36 17.408 31.232 24.064 47.616l-2.56-6.144c4.096 9.728 7.68 19.456 10.752 29.184l-1.024-2.56c1.024 2.56 2.048 5.632 2.56 8.704l-2.048-6.144c5.632 17.408 9.728 35.328 12.288 53.248l-1.024-7.168c0.512 4.096 1.536 8.192 2.048 12.288l0.512 3.584-11.264 4.608c-4.608 1.536-8.704 3.072-13.312 4.608l9.216-3.072c-4.096 1.536-8.192 2.56-11.776 4.096l2.56-1.024c-5.12 1.536-9.728 3.072-14.848 4.608l12.288-3.584c-4.608 1.536-9.728 3.072-14.848 4.096l2.56-0.512c-4.096 1.024-8.192 2.048-12.8 3.072l10.24-2.56-13.824 3.072 3.584-1.024-15.36 3.072 11.776-2.56-15.36 3.072 3.072-0.512c-5.12 1.024-9.728 1.536-14.848 2.56l11.776-2.048c-14.336 2.56-29.184 4.096-44.032 4.608h-12.8l-13.312-0.512c-4.608 0-9.216-0.512-14.336-1.024l11.776 1.024c-4.608 0-8.704-0.512-13.312-1.024h1.536c-5.12-0.512-9.728-1.024-14.336-1.536l13.312 1.536-15.36-1.536 2.048 0.512c-3.584-0.512-7.68-1.024-11.264-1.536l9.216 1.536c-5.12-0.512-9.728-1.536-14.848-2.56l6.144 1.024c-4.608-1.024-9.216-1.536-13.824-2.56l8.192 1.536c-3.584-0.512-7.68-1.536-11.264-2.048l3.072 0.512c-5.12-1.024-9.728-2.048-14.848-3.584l11.776 2.56c-5.12-1.024-10.24-2.56-15.36-3.584l3.584 1.024c-4.096-1.024-7.68-2.048-11.776-3.072l8.192 2.048c-12.8-3.584-25.6-7.68-37.888-12.8l2.56 1.024c-4.096-1.536-7.68-3.072-11.264-4.608l-2.048-1.024 1.024-5.632-1.024 5.632c1.536-11.776 4.096-23.552 7.168-35.328l-1.024 4.608c1.024-3.584 2.048-7.168 2.56-10.752l-1.536 6.144 3.072-10.752-1.536 4.608c1.024-3.072 2.048-6.656 3.072-9.728l-1.536 5.12c1.024-3.072 2.048-6.656 3.072-9.728l-1.536 4.608c1.024-3.584 2.56-7.168 3.584-10.752l-2.048 6.144c8.192-25.088 19.456-48.64 33.28-71.168l-2.56 3.584c1.536-3.072 3.584-5.632 5.12-8.704l-3.072 4.608c2.048-3.072 3.584-5.632 5.632-8.704l-4.096 5.632 6.144-9.216-3.584 5.632c2.048-2.56 3.584-5.632 5.632-8.192l-2.048 2.56c2.048-3.072 4.096-6.144 6.656-9.216l-4.608 6.656c2.048-3.072 4.096-5.632 6.144-8.704l-1.536 2.048 6.144-7.68-4.608 5.632c9.728-12.8 19.968-24.576 31.232-35.84l-5.12 5.12c2.56-2.56 4.608-5.12 7.168-7.168l-1.536 2.048 6.656-6.656-4.608 4.608c2.56-2.56 5.12-4.608 7.68-7.168l-3.072 2.56c2.56-2.56 5.12-4.608 7.68-7.168l-4.608 4.096c2.56-2.048 4.608-4.608 7.168-6.656l-2.56 2.048c2.56-2.048 4.608-4.096 7.168-6.144l-4.608 4.096c2.56-2.56 5.632-4.608 8.704-7.168l-4.096 3.072c2.56-2.048 5.12-4.096 8.192-6.656l-4.096 4.096c4.608-3.584 9.216-7.168 13.824-10.24z" fill="#FFFFFF" ></path></symbol><symbol id="icon-banbenduibishezhi" viewBox="0 0 1024 1024"><path d="M353.792 813.22666667L296.96 861.35466667c-40.96-11.776-80.384-30.72-114.688-56.32l1.536-75.264c1.024-32.768-21.504-61.44-53.248-68.096l-73.216-15.36c-16.384-39.936-26.112-82.432-28.16-125.952l59.392-45.568c25.6-19.968 33.792-55.296 18.944-84.48l-33.792-67.584c20.48-38.4 47.104-72.192 79.36-100.864L225.28 240.29866667c31.232 7.68 63.488-7.68 77.312-37.888l30.72-69.12c20.992-3.584 42.496-5.632 63.488-5.632 21.504 0 43.008 1.536 63.488 5.632l30.72 69.12c13.312 29.696 46.08 45.568 77.312 37.888l72.192-18.432c32.256 28.672 58.88 62.976 79.36 100.864L686.08 390.31466667c-14.848 29.184-6.656 65.024 18.944 84.48l59.392 45.568c-2.048 43.52-11.776 86.016-28.16 125.952l-73.216 15.36c-31.744 6.656-54.272 35.328-53.248 68.096l1.536 75.264c-34.816 25.6-73.728 44.544-114.688 56.32L439.808 813.22666667c-24.576-20.992-60.928-20.992-86.016 0z m-107.52-311.296c0 84.48 67.584 152.576 151.04 152.576s151.04-68.608 151.04-152.576-67.584-152.576-151.04-152.576-151.04 68.608-151.04 152.576z m654.336 50.176l101.376 236.544-256.512 22.016 155.136-258.56z" ></path></symbol><symbol id="icon-shangyige" viewBox="0 0 1024 1024"><path d="M551.936 655.36v208.384L50.688 519.168l501.248-344.576v208.384h420.352V655.36h-420.352z" ></path></symbol><symbol id="icon-xiayige" viewBox="0 0 1024 1024"><path d="M71.68 655.36V382.976h420.352V174.592l501.248 344.576-501.248 344.576V655.36H71.68z" ></path></symbol><symbol id="icon-wancheng" viewBox="0 0 1024 1024"><path d="M168.448 401.408l230.4 228.352 460.8-456.704 115.2 114.176L398.848 858.112l-345.6-343.04 115.2-113.664z" fill="#62D987" ></path></symbol><symbol id="icon-biaojimian" viewBox="0 0 1024 1024"><path d="M881.152 84.13866667v861.184c0 22.528-25.088 35.84-44.032 23.04l-304.128-205.312c-9.728-6.656-22.016-6.656-31.232 0l-304.128 205.312c-18.432 12.8-44.032-0.512-44.032-23.04V84.13866667c0-15.36 12.8-28.16 28.16-28.16h670.72c16.384 0.512 28.672 12.8 28.672 28.16z" ></path></symbol><symbol id="icon-biaojixian" viewBox="0 0 1024 1024"><path d="M808.448 124.58666667H230.912v748.032l221.184-167.936c18.944-14.848 43.008-22.528 67.584-22.528 25.088 0 47.104 7.68 67.584 22.528l221.184 167.936V124.58666667zM168.96 65.70666667c6.656-6.656 16.384-9.728 26.112-9.728H844.8c10.752 0 19.456 3.072 26.112 9.728 6.656 6.656 10.24 14.848 12.8 24.576v852.992c-3.072 13.312-11.264 25.088-23.552 30.72-12.288 6.144-27.136 4.608-37.888-3.584L542.72 758.44266667c-13.312-10.24-32.256-10.24-45.056 0l-279.552 211.968c-10.752 8.192-25.6 9.728-37.888 3.584-12.8-5.632-20.992-17.408-23.552-30.72V90.28266667c2.048-9.728 5.632-17.92 12.288-24.576z" ></path></symbol><symbol id="icon-tuantianchong" viewBox="0 0 1024 1024"><path d="M70.144 123.392c4.096-33.28 20.48-49.664 53.76-53.76h762.88c33.28 4.096 49.664 20.48 53.76 53.76v762.88c-4.096 33.28-20.48 49.664-53.76 53.76h-762.88c-33.28-4.096-49.664-20.48-53.76-53.76v-762.88z" fill="#81D3F8" ></path><path d="M914.432 47.104h-814.08c-29.696 0-53.76 24.064-53.76 53.76v814.08c0 29.696 24.064 53.76 53.76 53.76h814.08c29.696 0 53.76-24.064 53.76-53.76v-814.08c0-29.696-24.064-53.76-53.76-53.76z m-7.68 860.16h-798.72v-798.72h798.72v798.72z" fill="#333333" ></path><path d="M134.144 178.176l44.032-44.032h48.128l-92.16 92.16v-48.128z m656.384 704.512l92.16-92.16v48.128l-44.032 44.032h-48.128zM134.144 518.144l384-384h48.128l-432.128 432.128v-48.128z m0-169.984L348.16 134.144h48.128L134.144 396.288V348.16z m0 354.304v-14.336L688.64 134.144h48.128L151.552 719.36l-17.408-16.896z m0 156.16L858.624 134.144h24.064v24.064L158.208 882.688h-24.064v-24.064z m146.432 24.064L882.688 280.064v48.128L328.704 882.688h-48.128z m169.984 0L882.688 450.56v48.128l-384 384H450.56z m169.984 0l262.144-262.144v48.128l-214.016 214.016h-48.128z" fill="#0000FF" ></path></symbol><symbol id="icon-wenzi" viewBox="0 0 1024 1024"><path d="M687.616 697.856H306.176l-52.224 114.688c-7.68 16.384-11.776 29.696-11.776 38.912 0 17.92 4.608 30.72 32.256 37.888v30.72H51.712v-30.72c16.384-3.072 44.032-9.216 52.736-17.408 8.704-8.192 18.432-24.576 29.696-48.128L413.696 174.08c9.728-20.48 14.848-5.632 14.848-17.92 0-18.944-3.584-20.48-27.648-29.184v-31.744h222.208v31.744c-24.576 7.168-30.72 7.168-30.72 24.576 0 11.776 4.096-6.144 11.776 9.216l291.84 651.264c13.824 27.648 25.6 46.592 35.84 56.832s24.064 16.896 41.472 19.968v30.72h-253.952v-30.72c27.136-4.608 47.104-17.408 47.104-38.4 0-8.704-4.096-21.504-12.288-38.4l-66.56-114.176z m-32.256-95.232L509.952 245.248l-140.288 357.376H655.36z" fill="#2DBE60" fill-opacity=".988" ></path></symbol><symbol id="icon-wancheng-blue" viewBox="0 0 1024 1024"><path d="M168.448 401.408l230.4 228.352 460.8-456.704 115.2 114.176L398.848 858.112l-345.6-343.04 115.2-113.664z" fill="#2f69d1" ></path></symbol><symbol id="icon-PICdxf" viewBox="0 0 1024 1024"><path d="M754.176 78.50666667l193.536 194.56v580.096c0 35.84-28.672 64.512-64.512 64.512H169.984c-35.84-1.024-64-30.208-62.976-66.048V144.04266667c0-35.84 28.672-65.536 64.512-65.536h582.656z" fill="#4FB386" ></path><path d="M946.176 272.55466667h-127.488c-35.84 0-64.512-28.672-64.512-64.512V77.99466667l192 194.56z" fill="#76DFB3" ></path><path d="M361.984 672.93866667v-15.872c-13.312 13.312-32.256 19.968-57.856 19.968-26.624 0-48.64-9.728-65.024-28.672-16.896-19.456-25.088-45.056-25.088-76.8 0-32.256 9.728-59.392 28.672-82.432 19.456-22.528 41.984-34.304 68.608-34.304 22.016 0 38.912 5.12 50.176 15.36V371.37066667H399.36v301.568h-37.376z m0-164.352c-9.728-14.336-22.528-21.504-39.424-21.504-20.48 0-36.864 7.68-49.664 23.04s-18.944 34.304-18.944 57.856c0 51.712 23.552 77.312 70.656 77.312 6.144 0 13.312-2.048 21.504-5.632s13.824-7.68 15.872-12.288v-118.784z m232.96 164.864l-58.368-77.824-52.224 77.824h-44.544l77.824-109.568-71.168-104.96h43.008l48.128 73.728 53.76-73.728h41.984l-77.824 104.448 84.992 109.568h-45.568z m200.704-268.288c-7.68-2.56-14.848-4.096-21.504-4.096-11.776 0-20.992 4.608-28.672 13.312-7.68 8.704-11.264 19.968-11.264 33.28 0 3.584 0.512 7.168 1.024 11.264h43.52v32.256h-43.52v182.272h-37.888v-182.272h-31.232v-32.256h31.232c0-27.136 6.656-48.64 19.968-64.512 13.312-15.36 31.232-23.552 53.248-23.552 11.264 0 23.04 2.048 35.84 6.144l-10.752 28.16z" fill="#FFFFFF" ></path></symbol><symbol id="icon-erweima" viewBox="0 0 1024 1024"><path d="M955.14601245 554.18622105v234.25964563h-233.01688889v-155.3445926h-77.6722963v314.4174554h-77.67229629V555.42897778h233.01688888v155.3445926h77.6722963v-156.58734933h77.6722963z m-491.51029096 1.24275673v388.36148148H75.27424V555.42897778h388.36148149z m491.51029096 310.6891852v77.67229628h-233.01688889V866.11816298h233.01688889zM385.96342519 633.10127408H152.9465363V866.11816298H385.96342519v-233.0168889zM308.29112889 710.77357038v77.6722963H230.61883259V710.77357038h77.6722963z m155.3445926-647.47626193v388.36148148H75.27424V63.29730845h388.36148149z m491.51029096 0v388.36148148h-388.36148148V63.29730845h388.36148148zM385.96342519 140.96960475H152.9465363v233.01688889H385.96342519V140.96960475z m491.51029096 0h-233.01688889v233.01688889h233.01688889V140.96960475zM308.29112889 218.64190105v77.67229629H230.61883259V218.64190105h77.6722963z m491.51029096 0v77.67229629h-77.67229629V218.64190105h77.67229629z" ></path></symbol><symbol id="icon-a-yincanglianjiefou" viewBox="0 0 1024 1024"><path d="M130.56 243.8144m199.68 0l409.6 0q199.68 0 199.68 199.68l0 0q0 199.68-199.68 199.68l-409.6 0q-199.68 0-199.68-199.68l0 0q0-199.68 199.68-199.68Z" fill="#BBBBBB" ></path><path d="M330.24 443.4944m-168.96 0a168.96 168.96 0 1 0 337.92 0 168.96 168.96 0 1 0-337.92 0Z" fill="#FFFFFF" ></path></symbol><symbol id="icon-a-yincanglianjieshi" viewBox="0 0 1024 1024"><path d="M107.52 178.176m199.68 0l409.6 0q199.68 0 199.68 199.68l0 0q0 199.68-199.68 199.68l-409.6 0q-199.68 0-199.68-199.68l0 0q0-199.68 199.68-199.68Z" fill="#006BD3" ></path><path d="M716.8 377.856m-168.96 0a168.96 168.96 0 1 0 337.92 0 168.96 168.96 0 1 0-337.92 0Z" fill="#FFFFFF" ></path></symbol><symbol id="icon-guanzhu" viewBox="0 0 1024 1024"><path d="M761.856 964.77866667c-10.24 0-20.992-2.56-30.72-7.68l-222.72-117.248-222.72 117.248c-22.528 11.776-49.152 9.728-69.12-5.12s-30.208-39.424-26.112-64.512l42.496-247.808-180.736-176.128C33.792 445.61066667 27.136 420.01066667 35.84 395.94666667c7.168-23.552 28.16-40.96 52.736-44.544L337.92 315.05066667l111.616-225.792c11.264-22.528 33.792-36.864 58.88-36.864s48.128 13.824 58.88 36.864l111.616 225.792 249.344 36.352c25.088 3.584 45.568 20.992 53.248 45.056 7.68 23.552 1.536 49.664-16.896 67.584l-180.224 175.616 42.496 247.808c4.096 24.576-5.632 49.152-26.112 64.512-11.776 8.192-25.6 12.8-38.912 12.8zM142.336 431.27466667l182.784 178.176-43.52 251.392 226.304-118.784 225.792 118.784-43.52-251.392 182.784-178.176-252.928-36.864L508.416 165.54666667 395.264 394.41066667l-252.928 36.864z" ></path></symbol><symbol id="icon-yiguanzhu" viewBox="0 0 1024 1024"><path d="M514.048 821.93066667l-258.56 135.68c-16.384 8.704-36.352 2.048-45.056-13.824-3.584-6.656-4.608-13.824-3.584-20.992l49.152-287.744L47.616 431.27466667c-13.312-12.8-13.312-33.792-0.512-47.104 5.12-5.12 11.776-8.704 18.944-9.728l288.768-41.984 129.024-261.632c8.192-16.384 28.16-23.04 44.544-14.848 6.656 3.072 11.776 8.704 14.848 14.848l129.024 261.632 288.768 41.984c17.92 2.56 30.72 19.456 28.16 37.376-1.024 7.168-4.608 13.824-9.728 18.944l-208.896 203.776 49.152 287.744c3.072 17.92-9.216 35.328-27.136 38.4-7.168 1.024-14.336 0-20.992-3.072l-257.536-135.68z" ></path></symbol><symbol id="icon-huifu1" viewBox="0 0 1024 1024"><path d="M412.36028928 198.28498795c0.53859304 0 1.07718606 1.07718606 1.07718606 3.23155818v89.40644313c1.6157791 42.54884945 33.39276792 78.09598948 74.8644313 82.40473373 105.56423406 10.23326759 198.20223537 52.78211703 276.29822486 126.56936226 56.01367521 53.32071006 103.94845496 121.72202498 142.18856015 203.58816568 1.07718606 2.69296516 1.07718606 6.46311637-2.15437212 6.46311637-1.07718606 0-2.69296516-0.53859304-4.30874425-2.15437212-81.8661407-68.40131492-239.67389875-120.10624589-403.94477318-123.87639711-44.70322157 0.53859304-82.40473372 37.16291913-84.02051282 82.40473373v110.41157134c0 2.15437212 0 3.23155818-1.07718606 3.23155818-0.53859304 0-1.6157791-1.07718606-3.77015121-2.69296516-68.93990796-68.93990796-280.06837607-269.83510848-280.06837607-269.83510848-4.84733728-6.46311637-7.54030243-14.54201184-7.54030243-22.62090729 0-9.69467455 3.77015122-18.85075608 10.23326758-25.85246549 0 0 210.58987509-191.20052597 277.91400395-258.52465483 2.69296516-1.07718606 3.77015122-2.15437212 4.30874424-2.15437212m0-64.63116371c-18.31216305 0-34.46995398 7.00170941-48.47337278 21.00512821-63.01538462 63.01538462-259.60184089 241.82827087-274.68244576 255.29309664-1.6157791 1.07718606-2.69296516 2.69296516-3.77015121 3.77015121-18.31216305 18.85075608-28.54543064 44.16462853-28.54543064 70.55568705 0 22.6209073 7.54030243 44.70322157 21.00512821 62.47679159 2.15437212 2.69296516 4.30874425 4.84733728 6.46311637 7.00170941 2.15437212 2.15437212 211.12846811 201.43379356 278.99119 268.75792241 14.54201184 14.54201184 30.69980276 21.54372124 49.01196581 21.54372124 29.6226167 0 56.01367521-20.46653517 63.01538462-49.55055884 2.15437212-7.54030243 2.15437212-14.0034188 2.15437212-18.31216306v-2.15437212V667.39951786c0.53859304-10.77186062 9.69467455-19.92794214 19.92794214-19.92794214h1.07718607c164.27087442 3.77015122 299.45772518 57.09086127 360.8573307 108.79579224 17.23497698 14.0034188 34.46995398 17.23497698 45.78040762 17.23497699 23.15950033 0 44.16462853-11.84904668 56.55226825-31.23839579 12.38763971-19.92794214 14.0034188-45.78040763 3.77015122-67.32412887-42.01025641-89.40644313-94.25378041-164.27087442-156.73057199-222.97751479-44.16462853-41.47166337-93.17659435-74.86443129-145.42011835-99.10111769-52.78211703-24.23668639-109.33438527-39.31729125-168.57961866-44.70322156-9.15608153-1.07718606-16.15779092-9.69467455-17.234977-19.92794214V200.9779531v-4.84733728c-0.53859304-5.38593031-1.07718606-9.69467455-2.15437212-14.54201183-7.54030243-28.00683761-33.93136094-47.93477975-63.01538462-47.93477975z" ></path></symbol><symbol id="icon-jiejue" viewBox="0 0 1024 1024"><path d="M876.544 89.088H122.368c-27.648 0-49.664 22.016-49.664 49.664v573.952c0 27.648 22.016 49.664 49.664 49.664h84.992v188.416c0 23.552 13.312 34.304 27.648 34.304 6.144 0 15.36-2.048 25.6-12.288L465.92 779.264c10.24-8.704 30.208-17.408 44.544-17.408h366.592c27.648 0 49.664-22.016 49.664-49.664v-573.44c-0.512-27.136-22.528-49.664-50.176-49.664z m-93.696 208.896l-322.56 321.024c-1.536 1.536-3.584 3.072-5.632 4.608-13.824 9.728-32.256 7.68-44.032-4.096L249.344 458.752c-13.312-13.312-13.824-35.328 0-49.152l25.088-25.088c13.312-13.312 35.328-13.312 48.64 0L435.2 495.616l273.408-271.872c13.312-13.312 35.328-13.312 48.64 0l25.088 25.088c13.824 13.312 14.336 35.328 0.512 49.152z" ></path></symbol><symbol id="icon-pinglun" viewBox="0 0 1024 1024"><path d="M843.776 142.848h-655.36c-68.096 0-122.88 54.784-122.88 122.88v409.6c0 68.096 54.784 122.88 122.88 122.88h204.8l91.648 107.008 4.608 4.608c17.408 14.848 43.008 12.8 57.856-4.608l91.648-107.008h204.8c68.096 0 122.88-54.784 122.88-122.88v-409.6c0-67.584-54.784-122.88-122.88-122.88z m-102.4 432.64h-450.56v-61.44h450.56v61.44z m0-183.808h-450.56v-61.44h450.56v61.44z" ></path></symbol><symbol id="icon-pinglunkong" viewBox="0 0 1024 1024"><path d="M194.048 432.128l3.072-1.536-3.072 1.536z m568.32 65.536h-373.76c-11.264 0-19.968-10.24-19.968-23.04s9.216-23.04 19.968-23.04H762.88c11.264 0 19.968 10.24 19.968 23.04 0 12.288-9.216 23.04-20.48 23.04z m0 188.416h-373.76c-11.264 0-19.968-10.24-19.968-23.04s9.216-23.04 19.968-23.04H762.88c11.264 0 19.968 10.24 19.968 23.04 0 12.288-9.216 23.04-20.48 23.04z m-186.368 273.92c-4.608 0-8.704-1.536-12.288-4.096l-129.536-96.256H218.112c-24.064 0-43.52-19.456-43.52-43.52V315.392c0-24.064 19.456-43.52 43.52-43.52h714.752c24.064 0 43.52 19.456 43.52 43.52v500.224c0 24.064-19.456 43.52-43.52 43.52h-233.984l-109.568 95.232c-3.584 3.584-8.192 5.632-13.312 5.632zM218.112 312.32c-1.536 0-2.56 1.024-2.56 2.56v500.224c0 1.536 1.024 2.56 2.56 2.56h223.232c4.608 0 8.704 1.536 12.288 4.096l121.856 90.624 102.912-89.6c3.584-3.072 8.704-5.12 13.312-5.12h241.664c1.536 0 2.56-1.024 2.56-2.56V315.392c0-1.536-1.024-2.56-2.56-2.56L218.112 312.32z m-32.256 349.184H95.232c-22.016 0-40.448-18.432-40.448-40.448v-435.2c0-22.528 17.92-40.448 40.448-40.448h606.72c22.016 0 40.448 18.432 40.448 40.448V291.84h-40.96V185.856l-606.208 0.512 0.512 434.176 89.6-0.512 0.512 41.472z" ></path></symbol><symbol id="icon-xianshiqipao" viewBox="0 0 1024 1024"><path d="M527.36 894.976c-24.064 4.608-49.152 7.168-74.752 7.168H87.552c-13.312 0-26.112-7.68-32.256-19.456-6.144-11.776-5.632-26.624 2.048-37.888l72.704-105.472C78.848 670.208 51.2 586.24 51.2 500.224c0-221.184 180.224-401.408 401.408-401.408 188.416 0 346.624 130.56 389.632 305.664-28.672-15.36-58.368-26.624-88.576-34.816-50.688-116.224-166.4-197.632-301.056-197.632-181.248 0-328.704 147.456-328.704 328.704 0 78.336 28.16 154.112 78.848 213.504 10.752 12.8 11.776 30.72 2.56 44.544L156.672 829.44h240.128c11.264 7.168 21.504 13.312 29.696 17.92 32.768 20.48 66.048 36.352 100.864 47.616z m445.44-257.536c0-13.824-5.632-23.552-5.632-24.064-43.52-82.944-124.416-125.44-128-127.488-57.856-38.4-121.344-57.856-187.392-57.856v-0.512c-20.48 0-40.448 2.048-60.416 5.632l59.904 71.68c81.408 1.536 147.456 59.904 147.456 131.584 0 12.8-2.048 25.6-6.144 37.376l78.848 94.72c28.16-20.48 69.12-55.808 95.744-107.008 0-0.512 5.632-10.24 5.632-24.064z m-325.12 131.072c-83.456 0-150.528-58.88-150.528-131.584 0-15.872 3.072-30.72 8.704-44.544l-72.704-87.04c-28.16 20.48-70.144 56.32-97.28 108.032-0.512 0.512-5.632 10.24-5.632 24.064s5.632 24.064 5.632 24.576c43.52 82.944 124.416 122.368 128 124.416 58.368 38.4 121.344 57.344 187.392 57.344v0.512c20.48 0 40.448-1.536 60.416-4.608l-58.368-70.144c-2.048-1.024-3.584-1.024-5.632-1.024z m183.296 132.608L404.992 391.168l49.664-41.984 425.472 509.952-49.152 41.984z" ></path></symbol><symbol id="icon-yincangqipao" viewBox="0 0 1024 1024"><path d="M533.504 899.072c-24.064 4.608-49.152 7.168-74.752 7.168H93.696c-13.312 0-26.112-7.68-32.256-19.456-6.144-11.776-5.632-26.624 2.048-37.888l72.704-105.472c-51.2-69.12-78.848-152.576-78.848-238.592 0-221.184 180.224-401.408 401.408-401.408 188.416 0 346.624 130.56 389.632 305.664-28.672-15.36-58.368-26.624-88.576-34.816-50.688-116.224-166.4-197.632-301.056-197.632-181.248 0-328.704 147.456-328.704 328.704 0 78.336 28.16 154.112 78.848 213.504 10.752 12.8 11.776 30.72 2.56 44.544l-48.64 70.656h240.128c11.264 7.168 21.504 13.312 29.696 17.92 32.768 19.968 66.048 35.84 100.864 47.104z m445.44-257.536c0-13.824-5.632-23.552-5.632-24.064-43.52-82.944-124.416-125.44-128-127.488-57.856-38.4-121.344-57.856-187.392-57.856v-0.512c-66.048 0-129.536 19.456-187.392 57.856-3.072 2.048-84.48 44.544-128 127.488-0.512 0.512-5.632 10.24-5.632 24.064s5.632 24.064 5.632 24.576c43.52 82.944 124.416 122.368 128 124.416 58.368 38.4 121.344 57.344 187.392 57.344v0.512c66.048 0 129.536-15.872 187.392-53.76 3.584-2.048 84.48-44.544 128-127.488 0.512-1.024 5.632-11.264 5.632-25.088z m-321.024 120.32c-66.56 0-120.32-53.76-120.32-120.32s53.76-120.32 120.32-120.32 120.32 53.76 120.32 120.32-53.76 120.32-120.32 120.32z" ></path></symbol><symbol id="icon-shaixuan" viewBox="0 0 1024 1024"><path d="M96.768 163.328c-6.656 15.872-3.584 29.184 8.192 39.936L387.072 527.36v397.824c-0.512 14.848 8.192 28.672 22.528 33.792 12.8 3.584 28.16-1.536 39.936-8.192l146.432-68.608c7.168-6.656 10.752-15.872 10.752-25.6V527.36l282.112-324.096c11.776-11.264 14.336-24.576 8.192-39.936-6.656-14.848-17.92-22.528-33.792-22.528H130.56c-15.872 0-27.136 7.68-33.792 22.528z" ></path></symbol><symbol id="icon-yishaixuan" viewBox="0 0 1024 1024"><path d="M708.096 404.48l-107.008 122.88v329.216c0 9.728-3.584 18.944-10.752 25.6l-146.432 68.608c-11.776 6.656-27.136 11.776-39.936 8.192-13.824-5.12-23.04-18.944-22.528-33.792V527.36L99.328 203.264c-11.776-11.264-14.336-24.576-8.192-39.936 6.656-14.848 17.92-22.528 33.792-22.528h431.616c-3.072 14.848-4.608 29.696-4.608 45.568 0 100.864 65.536 186.88 156.16 218.112z m74.24-376.832c-87.552 0-158.72 71.168-158.72 158.72s71.168 158.72 158.72 158.72 158.72-71.168 158.72-158.72-71.168-158.72-158.72-158.72z" ></path></symbol><symbol id="icon-tuoyuangongju" viewBox="0 0 1024 1024"><path d="M517.12 70.656c-245.76 0-445.44 199.68-445.44 445.44s199.68 445.44 445.44 445.44 445.44-199.68 445.44-445.44-199.68-445.44-445.44-445.44z m0 809.984c-201.216 0-364.544-163.328-364.544-364.544 0-201.216 163.328-364.544 364.544-364.544 201.216 0 364.544 163.328 364.544 364.544 0 200.704-163.328 364.544-364.544 364.544z" ></path></symbol><symbol id="icon-juxinggongju" viewBox="0 0 1024 1024"><path d="M50.688 172.032V834.56h921.6V172.032H50.688z m846.336 586.752H125.952v-512h771.072v512z" ></path></symbol><symbol id="icon-zidingyixingzhuanggongju" viewBox="0 0 1024 1024"><path d="M430.08 60.928L81.408 413.184v524.288l870.4 2.56V527.36L430.08 60.928z m458.752 815.104l-743.936-2.048v-435.2L432.64 148.48l455.68 407.552v320z" ></path></symbol><symbol id="icon-zhirutuding" viewBox="0 0 1024 1024"><path d="M939.52 313.344l-121.856-120.832-0.512-0.512L696.32 70.144c-9.728-9.728-22.528-14.848-35.328-14.848-7.68 0-15.872 2.048-23.04 6.144-13.312 7.168-24.576 21.504-22.016 48.64v57.344c0 8.192-3.584 15.872-9.728 21.504L403.456 359.936c-18.432 15.872-41.984 25.088-66.048 26.624l-97.792 6.144c-13.824 1.024-27.136 6.144-36.864 15.36-6.656 6.656-12.8 15.36-13.824 26.624-1.024 11.264 3.072 22.528 11.264 30.208l131.584 130.048-172.032 223.232-92.16 105.984c-0.512 0.512-1.024 1.536-1.536 2.56-0.512 1.536-1.536 4.608-2.56 9.216-1.536 5.632 3.584 10.752 9.216 9.216l6.656-1.536c3.584-1.024 6.656-2.048 7.68-3.072 0.512-0.512 1.024-0.512 1.536-1.024L203.264 839.68l210.944-162.304 130.048 131.584c7.168 7.168 16.896 11.264 27.136 11.264h3.584c11.264-1.024 19.968-7.168 26.624-13.824 9.216-10.24 14.848-23.04 15.36-36.864l6.144-97.792c1.536-24.576 10.752-47.616 26.624-66.048L820.736 404.48c5.12-6.144 13.312-9.728 21.504-9.728h57.344c2.56 0 4.608 0.512 6.656 0.512 22.528 0 34.816-10.24 41.984-22.528 10.752-19.456 6.656-43.52-8.704-59.392z" ></path></symbol><symbol id="icon-tuoyuan" viewBox="0 0 1024 1024"><path d="M735.232 513.536c0 125.952-102.4 228.864-228.864 228.864-125.952 0-228.864-102.4-228.864-228.864 0-125.952 102.912-228.864 228.864-228.864s228.864 102.912 228.864 228.864z m219.136 0c0 247.296-200.704 448-448 448s-448-200.704-448-448 200.704-448 448-448 448 200.704 448 448z m-140.8 0c0-169.472-137.728-307.2-307.2-307.2s-307.2 137.728-307.2 307.2 137.728 307.2 307.2 307.2 307.2-137.728 307.2-307.2z" ></path></symbol><symbol id="icon-juxing1" viewBox="0 0 1024 1024"><path d="M508.928 65.536c-247.296 0-448 200.704-448 448s200.704 448 448 448 448-200.704 448-448-200.192-448-448-448z m307.2 672.256h-614.4V289.28h614.4v448.512z m-72.704-72.704H274.944V362.496h468.48v302.592z" ></path></symbol><symbol id="icon-zidingyixingzhuang" viewBox="0 0 1024 1024"><path d="M291.84 414.208l176.128-177.664L753.664 491.52v190.464L291.84 680.96V414.208z m678.912 99.328c0 247.296-200.704 448-448 448s-448-200.704-448-448 200.704-448 448-448 448 200.704 448 448zM824.32 460.288L464.896 138.752 221.184 385.024v366.592l603.648 1.536V460.288z" ></path></symbol><symbol id="icon-tuding" viewBox="0 0 1024 1024"><path d="M512.23819612 5.51170617c-276.11694741 0-500.21186126 224.09491386-500.21186126 500.21186125s224.09491386 500.21186126 500.21186126 500.21186129 500.21186126-224.09491386 500.21186125-500.21186129S788.35514353 5.51170617 512.23819612 5.51170617z m344.14576054 401.88450111c-5.14503628 9.71840188-14.86343816 17.15012096-32.01355911 17.15012096H775.20671748c-6.28837768 0-12.57675538 2.85835349-16.57845027 7.43171909L626.57233584 586.90080664c-12.00508468 14.29176747-19.43680376 32.01355912-20.58014514 50.87869216l-4.5733656 75.46053223c-0.57167069 10.86174328-4.57336558 20.58014515-12.00508467 28.58353493-5.14503628 5.14503628-12.00508468 9.71840188-20.58014514 10.86174327h-2.85835351c-8.00338978 0-15.43510886-3.43002419-20.58014513-8.57506049L445.35272439 642.92453507l-162.35447841 124.62421231-88.03728757 76.60387363c-0.57167069 0.57167069-0.57167069 0.57167069-1.1433414 0.57167068-1.1433414 0.57167069-3.43002419 1.71501209-6.28837769 2.28668282l-5.14503628 1.14334137c-4.0016949 1.1433414-8.00338978-2.85835349-6.86004838-7.43171907 1.1433414-3.43002419 1.71501209-5.71670699 2.28668281-6.86004839 0-0.57167069 0.57167069-1.1433414 1.14334137-1.71501209L249.26967477 750.39862642l132.05593138-172.07288026-101.18571365-100.04237225c-6.28837768-6.28837768-9.71840188-14.86343816-8.57506047-23.43849866 0.57167069-8.57506048 5.14503628-15.43510886 10.86174326-20.58014513 8.00338978-7.43171908 17.72179166-11.43341396 28.58353493-12.00508468l75.46053221-4.57336558c18.86513306-1.1433414 36.58692471-8.57506048 50.87869216-20.58014516l154.35108863-131.48426065c5.14503628-4.0016949 7.43171908-10.29007257 7.43171907-16.57845028v-44.01864379c-1.71501209-20.58014515 6.86004838-32.01355912 17.15012096-37.1585954 5.71670699-2.85835349 12.00508468-4.57336558 17.72179166-4.57336561 10.29007257 0 20.00847445 4.0016949 27.44019353 11.43341398l93.18232387 93.75399458 0.57167071 0.57167069L849.52390829 361.66255138c12.00508468 12.00508468 14.86343816 30.87021772 6.86004837 45.7336559z" ></path></symbol><symbol id="icon-lianjieshixiao" viewBox="0 0 1024 1024"><path d="M540.317808 654.027397l-35.769863-35.711415-104.094977 104.094977a35.068493 35.068493 0 0 1-49.621918 0l-24.781735-24.781735a35.068493 35.068493 0 0 1 0-49.621918l104.094977-104.094977L391.510502 505.220091a81.826484 81.826484 0 0 0-115.726027 0L126.977169 654.027397a81.826484 81.826484 0 0 0 0 115.726028l148.807306 148.807306a81.826484 81.826484 0 0 0 115.726027 0l148.807306-148.807306a81.826484 81.826484 0 0 0 0-115.726028z" ></path><path d="M915.550685 278.794521L766.743379 129.987215a81.826484 81.826484 0 0 0-115.726027 0L502.210046 278.794521a81.826484 81.826484 0 0 0 0 115.726027l37.23105 37.172603 106.958904-106.958904a35.068493 35.068493 0 0 1 49.56347 0l24.840183 24.840182a35.068493 35.068493 0 0 1 0 49.563471L613.610959 506.096804l37.406393 37.46484a81.826484 81.826484 0 0 0 115.726027 0l148.807306-149.041096a81.826484 81.826484 0 0 0 0-115.726027z" ></path><path d="M34.980822 341.333333m46.757991 0l93.515982 0q46.757991 0 46.75799 46.757991l0 0q0 46.757991-46.75799 46.757991l-93.515982 0q-46.757991 0-46.757991-46.757991l0 0q0-46.757991 46.757991-46.757991Z" ></path><path d="M239.387663 309.367558m-33.062893-33.062892l-66.125784-66.125785q-33.062892-33.062892 0-66.125785l0 0q33.062892-33.062892 66.125784 0l66.125785 66.125785q33.062892 33.062892 0 66.125785l0 0q-33.062892 33.062892-66.125785 0Z" ></path><path d="M314.06758 187.031963m0-46.75799l0-93.515982q0-46.757991 46.757991-46.757991l0 0q46.757991 0 46.757991 46.757991l0 93.515982q0 46.757991-46.757991 46.75799l0 0q-46.757991 0-46.757991-46.75799Z" ></path><path d="M989.019178 682.666667m-46.757991 0l-93.515982 0q-46.757991 0-46.75799-46.757991l0 0q0-46.757991 46.75799-46.757991l93.515982 0q46.757991 0 46.757991 46.757991l0 0q0 46.757991-46.757991 46.757991Z" ></path><path d="M784.596809 714.613489m33.062892 33.062893l66.125785 66.125785q33.062892 33.062892 0 66.125785l0 0q-33.062892 33.062892-66.125785 0l-66.125785-66.125785q-33.062892-33.062892 0-66.125785l0 0q33.062892-33.062892 66.125785 0Z" ></path><path d="M709.93242 836.968037m0 46.75799l0 93.515982q0 46.757991-46.757991 46.757991l0 0q-46.757991 0-46.757991-46.757991l0-93.515982q0-46.757991 46.757991-46.75799l0 0q46.757991 0 46.757991 46.75799Z" ></path></symbol><symbol id="icon-dingdan" viewBox="0 0 1024 1024"><path d="M305.32571429 239.39047619H183.13142857v610.46857142h651.2V239.39047619h-122.19428571v81.46285714h-407.31428572V239.39047619z m406.81142857-80.96h162.92571428c22.62857143 0 40.73142857 18.10285714 40.73142857 40.73142857v691.93142857c0 22.62857143-18.10285714 40.73142857-40.73142857 40.73142857H142.4c-22.62857143 0-40.73142857-18.10285714-40.73142857-40.73142857V199.16190476c0-22.62857143 18.10285714-40.73142857 40.73142857-40.73142857h162.92571429v-40.73142858c0-22.62857143 18.10285714-40.73142857 40.73142857-40.73142857h325.85142857c22.62857143 0 40.73142857 18.10285714 40.73142857 40.73142857-0.50285714 0-0.50285714 40.73142857-0.50285714 40.73142858z m-325.34857143 0V239.39047619h244.38857143V158.43047619H386.78857143zM305.32571429 443.04761904h407.31428571v81.46285715h-407.31428571V443.04761904z m0 162.92571429h203.65714285v81.46285714H305.32571429v-81.46285714z" ></path></symbol><symbol id="icon-huiyuan" viewBox="0 0 1024 1024"><path d="M787.2512 561.69813333h-156.74026667l-155.10186666 181.31626667v-181.31626667H350.34453333v31.1296h31.1296V937.984h93.93493334l311.84213333-376.28586667z m217.9072 7.09973334c0 125.61066667-98.304 240.29866667-223.91466667 247.94453333l-13.1072 0.54613333h-77.0048v-84.65066666h81.37386667c84.10453333-2.73066667 150.18666667-84.10453333 147.456-168.20906667-1.09226667-40.41386667-18.56853333-84.10453333-48.05973333-111.95733333s-57.344-58.9824-98.304-57.344c-3.82293333 0-7.09973333 0.54613333-10.37653334 0.54613333l-8.192 1.09226667-49.152 7.64586666 0.54613334-51.88266666c0-105.40373333-91.20426667-196.608-196.608-196.608-102.12693333 0-204.25386667 88.4736-207.53066667 190.0544v5.46133333l1.09226667 51.33653333-48.05973334-6.00746666c-83.5584-2.73066667-143.63306667 84.65066667-146.36373333 168.7552-2.73066667 78.09706667 53.52106667 156.19413333 131.072 167.1168h81.37386667v84.65066666h-76.45866667c-130.52586667 0-237.02186667-117.41866667-237.02186667-247.94453333 0-126.1568 87.38133333-251.76746667 212.992-258.32106667h1.09226667C242.21013333 178.31253333 370.00533333 75.09333333 503.808 71.81653333h7.09973333c134.89493333 0 257.77493333 105.94986667 277.98186667 239.2064 124.5184 4.9152 212.992 127.24906667 216.81493333 252.3136l-0.54613333 5.46133334z" ></path></symbol><symbol id="icon-chilun" viewBox="0 0 1024 1024"><path d="M925.6 443h-41.4c-19 0-39-14.8-44.7-32.9l-23.8-57.7c-8.9-16.7-5.3-41.3 8.1-54.7l29.3-29.3c13.4-13.4 13.4-35.4 0-48.8l-48.8-48.7c-13.4-13.4-35.3-13.4-48.7 0l-29.3 29.3c-13.4 13.4-38.1 17.1-54.8 8.1l-57.6-23.7c-18.1-5.6-33-25.7-33-44.7V98.5c0-18.9-15.5-34.5-34.5-34.5h-68.9c-19 0-34.5 15.5-34.5 34.5v41.4c0 18.9-14.8 39.1-32.9 44.7l-57.7 23.7c-16.7 9-41.3 5.4-54.7-8.1l-29.4-29.3c-13.4-13.4-35.3-13.4-48.7 0l-48.7 48.7c-13.5 13.4-13.5 35.3 0 48.7l29.3 29.3c13.4 13.4 17.1 38.1 8.1 54.7l-23.7 57.8c-5.7 18.1-25.7 32.9-44.7 32.9H98.5c-19 0-34.5 15.5-34.5 34.5v68.9c0 19 15.5 34.5 34.5 34.5h41.4c19 0.1 39 14.9 44.6 33l23.8 57.7c8.9 16.7 5.3 41.4-8.1 54.8l-29.4 29.3c-13.4 13.4-13.4 35.3 0 48.8l48.8 48.7c13.4 13.4 35.3 13.4 48.7 0l29.3-29.3c13.3-13.4 38-17 54.7-8l57.8 23.8c18.1 5.6 32.9 25.7 32.9 44.6v41.3c0 18.9 15.5 34.5 34.5 34.5h68.9c18.9 0 34.5-15.5 34.5-34.5v-41.3c0-19 14.9-39 33-44.6l57.7-23.8c16.7-9 41.3-5.4 54.8 8l29.2 29.3c13.4 13.4 35.4 13.4 48.7 0l48.8-48.7c13.4-13.5 13.4-35.4 0-48.8l-29.3-29.3c-13.4-13.4-17-38.1-8.1-54.8l23.8-57.7c5.6-18.1 25.8-32.9 44.7-32.9h41.4c18.9 0 34.4-15.5 34.4-34.5v-69c0-18.9-15.5-34.5-34.4-34.5z m-241.2 68.9c0 95.2-77.1 172.3-172.3 172.3-95.2 0-172.3-77.1-172.3-172.3 0-95.2 77.1-172.3 172.3-172.3 95.2 0 172.3 77.2 172.3 172.3z" ></path></symbol><symbol id="icon-zitiotf" viewBox="0 0 1024 1024"><path d="M799.744 103.936v195.584h119.296l-119.296-195.584zM287.744 191.488c-1.024-2.56-2.048-6.656-3.072-12.8h-0.512c-1.024 5.632-2.048 9.728-3.072 12.8l-27.648 77.312h62.464l-28.16-77.312z" ></path><path d="M926.72 368.128V322.56h-153.6V96.256H88.576v839.68h839.68L926.72 368.128z m-658.944-220.16h26.112l72.192 189.44h-27.136l-19.456-51.712H241.152l-18.432 51.712h-27.136l72.192-189.44z m642.56 770.048H104.448V373.76h805.888v544.256z" ></path><path d="M175.616 662.528c0-41.472 12.288-74.752 36.352-100.864 24.064-26.112 55.808-38.912 95.232-38.912 37.376 0 68.096 12.288 90.624 37.376 23.04 25.088 34.304 57.344 34.304 96.768 0 40.96-11.776 74.24-35.84 99.84s-55.296 38.4-93.696 38.4c-37.888 0-68.608-12.288-92.16-37.376-23.04-24.576-34.816-56.32-34.816-95.232z m58.88-3.072c0 25.6 6.144 46.592 18.432 62.976 12.288 16.384 29.184 24.576 50.688 24.576 22.016 0 38.912-7.68 51.2-23.552 12.288-15.36 18.432-36.352 18.432-62.976 0-27.648-6.144-49.152-17.92-65.024-11.776-15.872-28.672-24.064-50.176-24.064-22.016 0-39.424 8.192-51.712 24.576-12.288 16.384-18.944 37.376-18.944 63.488z m409.088-86.528H568.32v217.6h-56.32v-217.6H437.248v-46.08h206.336v46.08z m186.368 0h-94.208v67.584h86.528v46.08h-86.528v103.936h-56.32V527.36H829.44v45.568z" ></path></symbol><symbol id="icon-qidianyuanxinchangdu" viewBox="0 0 1024 1024"><path d="M789.504 93.184C674.816 101.888 492.032 138.24 346.624 271.36c-119.808 110.08-189.952 264.704-209.408 460.8h51.712c18.944-180.736 82.944-322.56 192-422.4 131.584-120.832 301.568-155.136 408.576-164.352H901.12V93.184h-111.616z" fill="#DDDDDD" ></path><path d="M275.968 740.352L829.44 176.64h71.68L347.648 740.352h-71.68zM953.344 916.48h-133.12v-133.12h133.12v133.12zM246.272 826.88v55.808H181.76V947.2H126.464v-64.512H61.952v-55.808h64.512V762.88h55.808v64.512h64z" fill="#34C3FF" ></path></symbol><symbol id="icon-yuanxinqidianduandian" viewBox="0 0 1024 1024"><path d="M758.272 117.76c-113.664 8.704-295.424 45.056-440.32 177.152-124.928 114.176-196.608 276.992-213.504 484.352h51.2c16.384-192 82.432-341.504 196.608-445.952 131.072-119.808 299.52-154.624 406.016-163.328V117.76z" fill="#DDDDDD" ></path><path d="M192.512 943.104h-133.12v-133.12h133.12v133.12zM922.112 74.752h-133.12v133.12h133.12v-133.12z m-38.4 754.176v-64.512h-55.808v64.512h-64.512v55.808h64.512v64.512h55.808v-64.512h64.512v-55.808h-64.512z" fill="#34C3FF" ></path></symbol><symbol id="icon-yuanxinqidianjiaodu" viewBox="0 0 1024 1024"><path d="M779.776 162.304c-110.08 9.216-283.648 44.544-418.304 167.936-111.616 102.4-177.664 247.808-196.608 432.64H111.616c19.968-200.704 91.648-358.912 214.528-471.552 148.992-136.704 336.384-173.568 453.632-182.272v53.248z m-58.368 572.928h-164.864l323.072-325.12V337.408l-1.024-1.024-448 451.072h290.816v-52.224z" fill="#DDDDDD" ></path><path d="M947.2 201.728h-136.192V65.536H947.2v136.192zM203.264 788.992H66.56v136.192h136.192v-136.192z m672.768-54.784v-66.048H819.2v66.048h-66.048v56.832H819.2v66.048h56.832v-66.048H942.08v-56.832h-66.048z" fill="#34C3FF" ></path></symbol><symbol id="icon-yuanxinqidianchangdu" viewBox="0 0 1024 1024"><path d="M800.256 63.488c-120.832 9.216-313.344 47.104-466.432 187.392-126.464 115.712-200.704 278.528-220.672 485.376h54.272c19.456-189.952 87.552-339.456 202.24-444.928 138.752-127.488 317.44-163.328 430.592-173.056h122.368V63.488h-122.368z" fill="#DDDDDD" ></path><path d="M259.584 744.96l583.168-593.92h75.776l-583.168 593.92H259.584z m698.368 55.296v58.368h-67.584V926.72h-58.368v-67.584h-67.584v-58.368h67.584v-67.584h58.368v67.584h67.584zM203.264 922.112h-133.12v-133.12h133.12v133.12z" fill="#34C3FF" ></path></symbol><symbol id="icon-jixu" viewBox="0 0 1024 1024"><path d="M769.536 117.76c-113.664 8.704-295.424 45.056-440.32 177.152-124.928 114.176-196.608 276.992-213.504 484.352h51.2C183.296 587.264 249.344 437.248 363.52 332.8c131.072-119.808 299.52-154.624 406.016-163.328V117.76z" fill="#DDDDDD" ></path><path d="M203.776 943.104h-133.12v-133.12h133.12v133.12zM933.376 74.752h-133.12v133.12h133.12v-133.12z m-25.6 397.312c-13.824 0-25.088 11.264-25.088 25.088V624.64c0 74.24-60.416 135.168-135.168 135.168H507.904l-14.336 1.536v-79.872l-139.776 102.912 139.776 101.888V808.96l14.336 1.536H747.52c25.088 0 49.152-5.12 72.192-14.848 22.016-9.216 41.984-22.528 58.88-39.936 16.896-16.896 30.208-36.864 39.936-58.88 9.728-23.04 14.848-47.104 14.848-72.192V497.664c0-14.336-11.776-25.6-25.6-25.6z" fill="#34C3FF" ></path></symbol><symbol id="icon-juli" viewBox="0 0 1024 1024"><path d="M809.984 600.064v100.864h-31.232v-100.864h-109.056v149.504h-31.744v-149.504h-108.544v100.864h-31.744v-100.864H389.12v149.504h-31.744v-149.504H248.32v100.864h-31.232v-100.864h-138.24v266.24h870.4v-266.24z" fill="#81D89E" ></path><path d="M133.632 561.664h-51.2v-394.24h51.2v394.24z m808.96-394.24h-51.2v394.24h51.2v-394.24z m-57.856 194.56l-119.808-88.064v70.144h-501.76V273.92l-122.88 90.624 122.88 90.624V385.024h501.76v70.144l119.808-88.064v-5.12z" fill="#DDDDDD" ></path></symbol><symbol id="icon-banjing" viewBox="0 0 1024 1024"><path d="M813.568 717.824v100.864h-31.232v-100.864h-109.056v149.504h-31.232v-149.504h-109.056v100.864h-31.744v-100.864H392.704v149.504h-31.744v-149.504H252.416v100.864h-31.744v-100.864h-138.24v266.24h870.4v-266.24z" fill="#81D89E" ></path><path d="M503.296 43.008c-177.152 0-321.024 143.872-321.024 321.024s143.872 321.024 321.024 321.024S824.32 541.184 824.32 364.032 680.448 43.008 503.296 43.008z m0 591.36c-148.992 0-269.824-121.344-269.824-269.824 0-84.992 39.424-160.256 100.352-209.92l4.608 125.952 42.496-33.792 102.912 124.928c7.168 8.704 19.968 9.728 28.672 2.56 8.704-7.168 9.728-19.968 2.56-28.672l-102.4-124.416 46.08-36.864L337.92 151.04c45.568-35.84 102.912-56.832 165.376-56.832 148.992 0 269.824 121.344 269.824 269.824s-120.832 270.336-269.824 270.336z" fill="#DDDDDD" ></path></symbol><symbol id="icon-jiaodu" viewBox="0 0 1024 1024"><path d="M807.936 722.944v100.864h-31.232v-100.864h-109.056v149.504h-31.232v-149.504H527.36v100.864h-31.232v-100.864H387.072v149.504h-31.232v-149.504H246.784v100.864H215.04v-100.864H76.8v266.24h870.4v-266.24z" fill="#81D89E" ></path><path d="M858.624 629.248h-118.272l68.096-110.08-60.928 5.12c-29.696-130.048-103.424-246.272-207.872-329.216l31.744-51.2L444.416 153.6l40.96-82.944c6.144-12.8 1.024-28.16-11.776-34.304-12.8-6.144-28.16-1.024-34.304 11.776L135.68 660.992c-4.608 9.216 2.048 19.456 12.288 19.456h710.656c14.336 0 25.6-11.264 25.6-25.6s-11.776-25.6-25.6-25.6zM442.88 156.672l46.592 118.272 28.16-45.056c93.696 75.264 160.256 180.224 188.416 297.472l-51.712 4.096 84.992 97.792H208.384l234.496-472.576z" fill="#DDDDDD" ></path></symbol><symbol id="icon-mianji" viewBox="0 0 1024 1024"><path d="M799.232 681.984v100.864H768v-100.864h-109.056v149.504h-31.232v-149.504h-109.056v100.864h-31.232v-100.864H378.368v149.504h-31.232v-149.504H238.08v100.864h-31.232v-100.864H68.096v266.24h870.4v-266.24z" fill="#81D89E" ></path><path d="M803.84 210.944l-195.584 143.36-285.184-285.696-222.208 285.184v285.696h824.832L803.84 210.944z" fill="#DDDDDD" ></path></symbol><symbol id="icon-mianjizonghe" viewBox="0 0 1024 1024"><path d="M799.232 681.984v100.864h-31.744v-100.864h-109.056v149.504h-31.232v-149.504h-109.056v100.864h-31.232v-100.864H377.856v149.504h-31.232v-149.504H237.568v100.864h-31.232v-100.864h-138.24v266.24h870.4v-266.24z" fill="#81D89E" ></path><path d="M904.192 609.28H503.296V97.28h400.896v512z m-655.872 4.096c-90.112 0-163.84-73.728-163.84-163.84s73.728-163.84 163.84-163.84 163.84 73.728 163.84 163.84-73.728 163.84-163.84 163.84z" fill="#DDDDDD" ></path><path d="M449.536 124.928v55.808H385.536v64.512H329.728V180.736H265.216V124.928h64.512V60.928h55.808v64.512h64z" fill="#81D89E" ></path></symbol><symbol id="icon-mianyu" viewBox="0 0 1024 1024"><path d="M691.2 207.36h100.864v31.744H691.2V348.16h150.016v31.232H691.2v109.056h100.864v31.232H691.2v109.056h150.016v31.232H691.2v109.056h100.864v31.232H691.2v138.24h266.24v-870.4h-266.24z" fill="#81D89E" ></path><path d="M349.696 110.08c-157.696 0-281.6 66.56-281.6 151.552v495.104c1.536 83.968 124.928 150.016 281.6 150.016s280.064-66.048 281.6-150.016V261.12c0-84.48-123.392-151.04-281.6-151.04z" fill="#DDDDDD" ></path><path d="M68.096 244.736a281.6 136.704 0 1 0 563.2 0 281.6 136.704 0 1 0-563.2 0Z" fill="#F3F3F3" ></path></symbol><symbol id="icon-liebiao1" viewBox="0 0 1024 1024"><path d="M94.72 442.88h839.168v93.184H94.72V442.88z m0 217.6h839.168v93.184H94.72V660.48z" fill="#81D89E" ></path><path d="M79.36 127.488v781.312h870.4V127.488h-870.4z m30.72 750.592V318.464h248.832v559.616H110.08z m280.064 0V318.464h279.552v559.616H390.144z m528.384 0h-217.6V318.464h217.6v559.616z" fill="#DDDDDD" ></path></symbol><symbol id="icon-dianzuobiao" viewBox="0 0 1024 1024"><path d="M138.752 175.616H65.024l102.4-139.264 102.4 139.264H200.192v529.408h-61.44V175.616z m843.264 675.328l-139.264-102.4v66.56H297.472v61.44h545.792v76.8l138.752-102.4z" fill="#DDDDDD" ></path><path d="M660.48 644.608L601.6 547.84h56.832l19.968 35.84c5.632 11.264 11.776 22.528 17.92 33.792h1.536c4.608-11.264 10.24-22.528 14.848-33.792l16.896-35.84h54.784l-58.88 102.4 62.976 99.328h-56.832l-22.528-36.864c-6.656-11.776-12.8-24.064-19.456-35.84h-2.048c-5.632 11.264-11.264 23.552-16.896 35.84l-18.944 36.864h-54.784l63.488-104.96zM371.712 340.48L301.568 193.024h49.152l23.552 56.832c6.656 17.408 12.8 33.792 19.968 51.712h1.536c7.168-17.92 14.336-34.304 20.48-51.712l23.552-56.832h48.64L418.304 340.48v84.992h-46.592V340.48z m-304.64 395.264v199.68h199.68v-199.68h-199.68z" fill="#81D89E" ></path></symbol><symbol id="icon-liangdian" viewBox="0 0 1024 1024"><path d="M434.688 940.032c-194.048-45.568-338.944-220.16-338.944-428.032 0-207.872 144.896-382.464 338.944-428.032v52.736C268.8 181.248 146.432 332.8 146.432 512s122.368 330.752 287.744 375.296v52.736z m194.56-857.6v52.736c168.96 41.984 294.4 195.072 294.4 376.832 0 181.76-125.44 334.848-294.4 376.832v52.736c197.12-43.008 345.6-219.136 345.6-429.568 0-209.92-148.48-386.048-345.6-429.568z" fill="#DDDDDD" ></path><path d="M598.528 168.96h-133.12V35.84h133.12v133.12z m0 690.688h-133.12v133.12h133.12v-133.12z" fill="#34C3FF" ></path></symbol><symbol id="icon-yuansandian" viewBox="0 0 1024 1024"><path d="M401.408 954.368c-194.048-45.568-338.944-220.16-338.944-428.032 0-207.872 144.896-382.464 338.944-428.032v52.736C235.52 195.584 113.152 346.624 113.152 526.336s122.368 330.752 287.744 375.296v52.736z m476.672-523.264h52.736c-36.864-166.4-168.448-297.472-335.36-333.824v52.736c138.752 33.792 247.808 142.848 282.624 281.088z m-0.512 194.56c-35.84 136.192-144.384 243.712-281.6 277.504v52.736c165.376-36.352 295.936-165.888 334.336-330.24h-52.736z" fill="#DDDDDD" ></path><path d="M565.248 183.296h-133.12v-133.12h133.12v133.12z m0 690.688h-133.12v133.12h133.12v-133.12z m416.768-412.16h-133.12v133.12h133.12v-133.12z" fill="#34C3FF" ></path></symbol><symbol id="icon-xiangqiebanjing" viewBox="0 0 1024 1024"><path d="M450.56 863.744v66.048H187.904v-40.96h180.224c-92.672-41.472-168.96-114.688-214.016-205.312v163.84h-40.96V619.52h69.12c43.52 119.808 143.872 211.968 268.288 244.224z m537.088-375.808c0-242.176-197.12-439.808-439.808-439.808-172.032 0-321.536 99.328-393.728 244.224V130.56h-40.96v291.328c0 1.024-0.512 2.048-0.512 3.072h51.712C194.56 240.64 354.816 99.328 547.84 99.328c65.536 0 127.488 16.384 181.76 45.568l-145.92 245.76h59.392L773.12 172.032c98.816 70.656 162.816 185.856 162.816 315.904 0 180.736-123.904 332.8-291.328 376.32v66.048h259.584v-40.96H727.04c153.088-69.12 260.608-222.72 260.608-401.408z" fill="#DDDDDD" ></path><path d="M614.4 554.496H481.28v-133.12h133.12v133.12zM196.608 455.68h-133.12v133.12h133.12V455.68z m417.792 379.904H481.28v133.12h133.12v-133.12z" fill="#34C3FF" ></path></symbol><symbol id="icon-xiangqiexiangqie" viewBox="0 0 1024 1024"><path d="M161.792 897.024h164.864c-84.48-39.424-153.6-105.984-196.096-188.416v150.016h-40.96v-214.016h68.608c40.96 111.104 134.656 197.12 250.368 227.84v65.536H161.792v-40.96zM702.464 151.04h29.184L606.208 25.088l-29.184 29.184L650.24 126.976c-46.08-17.408-95.744-27.136-147.456-27.136-161.792 0-302.08 92.672-371.712 227.328V179.712h-40.96v273.408c0 1.536-0.512 2.56-0.512 4.096h51.712c29.184-173.056 180.224-305.152 361.472-305.152 73.728 0 142.848 22.016 200.192 59.904V151.04z m313.344 283.648l-125.44-125.44v29.184h-68.608c30.208 53.248 47.104 114.176 47.104 179.712 0 169.472-115.712 312.832-272.896 354.304v65.536h244.224v-40.96h-162.816c142.848-66.56 242.176-211.456 242.176-378.88 0-51.712-9.728-101.888-27.136-147.456l93.696 93.696 29.696-29.696z" fill="#DDDDDD" ></path><path d="M160.768 613.376H34.816V487.424h125.952v125.952z m404.48 232.96H439.296v125.952h125.952v-125.952z m294.4-664.576h-125.952v125.952h125.952V181.76z" fill="#34C3FF" ></path></symbol><symbol id="icon-yuanhusandian" viewBox="0 0 1024 1024"><path d="M274.432 429.568c-61.44 93.184-97.792 208.384-109.056 345.6h-51.2c10.24-134.144 43.52-249.856 99.84-345.6h60.416z m494.08-316.416c-98.304 7.168-246.784 34.816-378.88 126.464v64c126.464-100.352 279.552-130.048 378.88-138.24V113.152z" fill="#DDDDDD" ></path><path d="M202.752 939.008h-133.12v-133.12h133.12v133.12zM358.912 265.728h-133.12v133.12h133.12v-133.12z m573.44-194.56h-133.12v133.12h133.12v-133.12z" fill="#34C3FF" ></path></symbol><symbol id="icon-qidianduandianbanjing" viewBox="0 0 1024 1024"><path d="M345.6 296.448c-119.808 110.08-189.952 264.704-209.408 460.8h51.712c18.944-180.736 82.944-322.56 192-422.4C511.488 213.504 681.472 179.2 788.48 170.496V118.272c-114.176 8.704-297.472 45.056-442.88 178.176z" fill="#DDDDDD" ></path><path d="M952.32 209.408h-133.12v-133.12h133.12v133.12z m0 573.44h-133.12v133.12h133.12v-133.12zM909.312 240.64h-40.96v512h40.96V240.64zM181.248 851.968v-64.512H125.44v64.512H61.44v55.808h64.512v64.512h55.808v-64.512H245.76v-55.808H181.248z" fill="#34C3FF" ></path></symbol><symbol id="icon-qidianduandianfangxiang" viewBox="0 0 1024 1024"><path d="M369.664 290.304c-119.808 110.08-189.952 264.704-209.408 460.8h51.712c18.944-180.736 82.944-322.56 192-422.4 131.584-120.832 301.568-155.136 408.576-164.352V112.128c-114.176 8.704-297.472 45.056-442.88 178.176z" fill="#DDDDDD" ></path><path d="M976.384 203.264h-133.12v-133.12h133.12v133.12zM184.832 846.336v-64.512H129.024v64.512H64.512v55.808h64.512v64.512h55.808v-64.512h64.512v-55.808H184.832z m42.496-650.24L136.192 72.192 46.592 196.096h70.656l4.608 555.008 40.96-0.512-4.608-554.496h69.12z" fill="#34C3FF" ></path></symbol><symbol id="icon-qidianduandianjiaodu" viewBox="0 0 1024 1024"><path d="M784.896 113.664v51.712c-107.52 8.704-277.504 43.52-408.576 164.352-109.056 100.352-173.568 242.176-192.512 422.4h-51.2c19.456-196.096 89.6-350.72 209.408-460.8 145.408-133.12 328.192-168.96 442.88-177.664z m163.84 724.48h-315.392l315.392-317.44V449.536l-0.512-0.512-437.76 440.832h438.272v-51.712z" fill="#DDDDDD" ></path><path d="M948.736 204.288h-133.12v-133.12h133.12v133.12zM177.152 847.36v-64.512H121.856v64.512H57.344v55.808h64.512V967.68h55.808v-64.512h64.512v-55.808H177.152z" fill="#34C3FF" ></path></symbol><symbol id="icon-qidianyuanxinduandian" viewBox="0 0 1024 1024"><path d="M342.016 278.528c-119.808 110.08-189.952 264.704-209.408 460.8H184.32c18.944-180.736 82.944-322.56 192-422.4 131.584-120.832 301.568-155.136 408.576-164.352V100.864c-114.176 8.192-297.472 44.544-442.88 177.664z" fill="#DDDDDD" ></path><path d="M949.248 191.488h-133.12v-133.12h133.12v133.12z m0 599.04h-133.12v133.12h133.12v-133.12zM177.664 834.56v-64.512H122.368V834.56H57.856v55.808h64.512v64.512h55.808v-64.512h64.512V834.56H177.664z" fill="#34C3FF" ></path></symbol><symbol id="icon-qidianyuanxinjiaodu" viewBox="0 0 1024 1024"><path d="M792.064 112.128V163.84c-107.52 8.704-277.504 43.52-408.576 164.352-109.568 100.352-173.568 242.176-192.512 422.4h-51.2c19.456-196.096 89.6-350.72 209.408-460.8 144.896-133.12 328.192-168.96 442.88-177.664z m163.84 724.48h-315.392l315.392-317.44V448l-0.512-0.512-437.76 440.832h438.272v-51.712z" fill="#DDDDDD" ></path><path d="M955.904 202.752h-133.12v-133.12h133.12v133.12z m-327.68 573.44h-133.12v133.12h133.12v-133.12zM184.32 845.824v-64.512H129.024v64.512H64.512v55.808h64.512v64.512H184.32v-64.512h64.512v-55.808H184.32z" fill="#34C3FF" ></path></symbol><symbol id="icon-duoduanxian" viewBox="0 0 1024 1024"><path d="M337.92 860.672c-164.352-39.424-286.72-187.392-286.72-363.52 0-175.104 121.344-322.56 284.16-363.008v53.248C201.216 226.816 102.4 350.72 102.4 497.664c0 147.456 99.84 272.384 235.52 310.784v52.224z m452.096-40.448H532.48v51.2h257.536v-51.2z" fill="#DDDDDD" ></path><path d="M499.2 222.208h-133.12v-133.12h133.12v133.12z m2.56 546.304H368.64v133.12h133.12v-133.12z m452.096 0h-133.12v133.12h133.12v-133.12z" fill="#34C3FF" ></path></symbol><symbol id="icon-juxing" viewBox="0 0 1024 1024"><path d="M768 809.472H133.12V370.688h51.2v387.584h583.68v51.2z m71.68-128h51.2V249.344H261.12v51.2h578.56v380.928z" fill="#DDDDDD" ></path><path d="M230.4 339.968H97.28v-133.12h133.12v133.12z m701.44 372.224h-133.12v133.12h133.12v-133.12z" fill="#34C3FF" ></path></symbol><symbol id="icon-zhengduobianxing" viewBox="0 0 1024 1024"><path d="M657.408 877.056H277.504L133.632 434.688l376.32-273.92 376.832 273.92-120.32 368.64h55.296l126.464-389.12-438.272-317.952-437.76 317.952 167.424 515.072h417.792z" fill="#DDDDDD" ></path><path d="M578.56 595.968H445.44v-133.12h133.12v133.12z m242.688 238.08h-133.12v133.12h133.12v-133.12z" fill="#34C3FF" ></path></symbol><symbol id="icon-sanweiduoduanxian" viewBox="0 0 1024 1024"><path d="M365.568 803.84c-153.088-36.864-267.264-174.592-267.264-338.944C98.304 301.568 211.456 163.84 363.52 126.464v49.664c-125.44 36.352-217.088 152.064-217.088 288.768 0 137.728 93.184 253.952 219.648 289.28v49.664z m421.888-38.4h-240.128v47.616h240.128v-47.616zM262.656 662.016h559.616l7.68 24.576h53.76l-23.552-75.776H220.16c11.776 18.944 26.112 35.84 42.496 51.2z m624.128 210.432l11.776 38.4H112.128l64.512-180.224c-13.824-13.824-26.624-29.184-38.4-45.056l-99.328 276.48h928.256l-27.648-89.6h-52.736z" fill="#DDDDDD" ></path><path d="M516.096 208.384H392.192V83.968h123.904v124.416z m2.56 508.928H394.24v123.904h123.904v-123.904z m421.376 0h-123.904v123.904h123.904v-123.904z" fill="#34C3FF" ></path></symbol><symbol id="icon-yuanxinbanjing" viewBox="0 0 1024 1024"><path d="M931.84 527.872c0 242.176-197.12 439.808-439.808 439.808s-439.808-197.12-439.808-439.808c0-242.176 197.12-439.808 439.808-439.808 27.648 0 54.784 2.56 81.408 7.68v52.224c-26.112-5.632-53.248-8.704-81.408-8.704-214.016 0-388.608 174.08-388.608 388.608 0 214.016 174.08 388.608 388.608 388.608s388.608-174.08 388.608-388.608c0-106.496-43.008-202.752-112.64-273.408V185.856c99.84 80.896 163.84 204.288 163.84 342.016z m-336.896-269.824L510.976 430.592h56.832l83.968-172.544h-56.832z" fill="#DDDDDD" ></path><path d="M558.592 594.432h-133.12v-133.12h133.12v133.12zM737.28 94.208h-133.12v133.12h133.12v-133.12z" fill="#34C3FF" ></path></symbol><symbol id="icon-yuanxinzhijing" viewBox="0 0 1024 1024"><path d="M675.328 254.976l-87.04 172.544h-57.344l87.04-172.544h57.344z m117.76-72.192v68.608c69.632 70.144 112.64 166.912 112.64 273.408 0 214.016-174.08 388.608-388.608 388.608-32.768 0-64-4.096-94.208-11.776v52.736c30.208 6.656 61.952 10.24 94.208 10.24 242.176 0 439.808-197.12 439.808-439.808 0-138.24-64-261.632-163.84-342.016zM228.352 783.872c-61.952-68.608-99.84-159.744-99.84-259.584 0-214.016 174.08-388.608 388.608-388.608 27.648 0 55.296 3.072 81.408 8.704V92.672c-26.112-5.12-53.248-7.68-81.408-7.68-242.176 0-439.808 197.12-439.808 439.808 0 132.096 58.368 250.368 151.04 331.264v-72.192z m181.248-2.56l80.384-159.232H432.64l-80.384 159.232H409.6z" fill="#DDDDDD" ></path><path d="M578.56 591.36H445.44v-133.12h133.12v133.12z m183.808-500.224h-133.12v133.12h133.12v-133.12zM392.192 812.032h-133.12v133.12h133.12v-133.12z" fill="#34C3FF" ></path></symbol><symbol id="icon-kapiancaozuo" viewBox="0 0 1024 1024"><path d="M836.6567619 974.336H193.0727619c-76.8 0-139.264-62.464-139.264-139.264V192c0-76.8 62.464-139.264 139.264-139.264h643.584c76.8 0 139.264 62.464 139.264 139.264v643.584c0 76.288-62.464 138.752-139.264 138.752z" fill="#078BED" ></path><path d="M764.4647619 453.12c33.28 0 60.416 27.136 60.416 60.416 0 33.28-27.136 60.416-60.416 60.416-33.28 0-60.416-27.136-60.416-60.416 0-33.28 27.136-60.416 60.416-60.416zM205.3607619 513.536c0 33.28 27.136 60.416 60.416 60.416 33.28 0 60.416-27.136 60.416-60.416 0-33.28-27.136-60.416-60.416-60.416-33.28 0-60.416 27.136-60.416 60.416z m249.344 0c0 33.28 27.136 60.416 60.416 60.416 33.28 0 60.416-27.136 60.416-60.416 0-33.28-27.136-60.416-60.416-60.416-33.28 0-60.416 27.136-60.416 60.416z" fill="#FFFFFF" ></path></symbol><symbol id="icon-zuijindian" viewBox="0 0 1024 1024"><path d="M556.032 516.096l412.672-419.328c13.824-14.336 4.096-38.4-15.872-38.4H76.288c-19.968 0-30.208 24.064-15.872 38.4l412.672 419.328-412.672 419.328c-13.824 14.336-4.096 38.4 15.872 38.4h876.544c19.968 0 30.208-24.064 15.872-38.4l-412.672-419.328zM163.84 117.248h701.44l-350.72 356.352L163.84 117.248z m0 797.184l350.72-356.352 350.72 356.352H163.84z" ></path></symbol><symbol id="icon-caotushezhi" viewBox="0 0 1024 1024"><path d="M211.968 724.48h-61.44V297.472h61.44v427.008zM740.864 153.088h-460.8v61.44h460.8v-61.44z" fill="#DDDDDD" ></path><path d="M314.368 318.976h-256v-256h256v256z m-204.8-51.2h153.6v-153.6h-153.6v153.6z m863.232 51.2h-256v-256h256v256z m-204.8-51.2h153.6v-153.6h-153.6v153.6zM314.368 969.728h-256v-256h256v256z m-204.8-51.2h153.6v-153.6h-153.6v153.6z" fill="#62D987" ></path><path d="M965.632 610.816c-41.984-67.072-40.96-68.608-40.96-68.608s-144.384 38.912-171.52-94.72h-83.968s-23.04 133.632-171.008 94.208c-42.496 68.608-44.032 70.656-44.032 70.656s115.712 77.824 0 183.808l45.056 71.168s127.488-53.248 169.472 92.16h84.48s26.624-133.632 169.984-93.696c40.96-67.584 41.472-68.096 41.472-68.096s-108.032-90.112 1.024-186.88z m-256.512 186.88c-53.76 0-97.792-42.496-97.792-94.208 0-52.224 43.52-94.208 97.792-94.208 53.76 0 97.792 42.496 97.792 94.208 0 52.224-43.52 94.208-97.792 94.208z" fill="#DDDDDD" ></path></symbol><symbol id="icon-charudian" viewBox="0 0 1024 1024"><path d="M613.376 422.4V53.248H58.88v553.984h367.616v369.152h553.984V422.4h-367.104z m307.712 495.104h-435.2v-369.152H118.272V112.64h435.2v369.152h367.616v435.712z" ></path></symbol><symbol id="icon-chuizu" viewBox="0 0 1024 1024"><path d="M700.416 902.656v-563.2h-563.2V70.144h-61.44v893.952h893.44v-61.44h-268.8z m-563.2 0v-501.76h501.76v501.76h-501.76z" ></path></symbol><symbol id="icon-duandian" viewBox="0 0 1024 1024"><path d="M951.808 957.952h-890.88v-890.88h890.88v890.88zM120.32 898.56h772.608V125.952H120.32v772.608z" ></path></symbol><symbol id="icon-jihezhongxin" viewBox="0 0 1024 1024"><path d="M1012.224 974.848H68.096V60.928h944.128v913.92zM130.56 914.432h818.688V121.344H130.56v793.088zM675.84 386.56H404.48v262.656h271.36V386.56z" ></path></symbol><symbol id="icon-jiaodian" viewBox="0 0 1024 1024"><path d="M655.36 619.008V415.232l298.496-298.496c11.264-11.264 11.264-30.208 0-41.472-11.264-11.264-30.208-11.264-41.472 0L613.888 373.76H410.112L111.616 75.264c-11.264-11.264-30.208-11.264-41.472 0s-11.264 30.208 0 41.472L368.64 415.232v203.264l-298.496 298.496c-11.264 11.264-11.264 30.208 0 41.472 11.264 11.264 30.208 11.264 41.472 0L410.112 660.48h203.264l298.496 298.496c11.264 11.264 30.208 11.264 41.472 0 11.264-11.264 11.264-30.208 0-41.472L655.36 619.008z" ></path></symbol><symbol id="icon-jiedian" viewBox="0 0 1024 1024"><path d="M836.096 815.104c68.096-77.824 109.568-179.712 109.568-290.816 0-111.104-41.472-212.992-109.568-290.816l109.568-109.568c11.264-11.264 11.264-30.208 0-41.472-11.264-11.264-30.208-11.264-41.472 0l-109.568 109.568C716.8 123.904 614.912 82.432 503.808 82.432c-111.104 0-212.992 41.472-290.816 109.568L103.424 82.432c-11.264-11.264-30.208-11.264-41.472 0s-11.264 30.208 0 41.472l109.568 109.568C102.912 311.296 61.44 413.184 61.44 524.288c0 111.104 41.472 212.992 109.568 290.816L61.44 924.672c-11.264 11.264-11.264 30.208 0 41.472 11.264 11.264 30.208 11.264 41.472 0l109.568-109.568c77.824 68.096 179.712 109.568 290.816 109.568 111.104 0 212.992-41.472 290.816-109.568l109.568 109.568c11.264 11.264 30.208 11.264 41.472 0 11.264-11.264 11.264-30.208 0-41.472l-109.056-109.568z m50.688-290.816c0 95.232-34.816 181.76-92.16 248.832l-173.056-173.056V448.512l173.056-173.056c56.832 67.072 92.16 154.112 92.16 248.832zM503.296 141.312c95.232 0 181.76 34.816 248.832 92.16l-173.056 173.056H427.52L254.464 233.984c67.072-57.856 154.112-92.672 248.832-92.672z m-382.976 382.976c0-95.232 34.816-181.76 92.16-248.832l173.056 173.056v152.064l-173.056 173.056c-57.344-67.072-92.16-154.112-92.16-249.344z m382.976 382.976c-95.232 0-181.76-34.816-248.832-92.16l173.056-173.056h152.064l173.056 173.056c-67.072 57.344-154.112 92.16-249.344 92.16z" ></path></symbol><symbol id="icon-pinghangxian" viewBox="0 0 1024 1024"><path d="M58.88 708.608c-11.776-11.776-11.776-31.232 0-43.52L650.24 73.728c11.776-11.776 31.232-11.776 43.52 0 11.776 11.776 11.776 31.232 0 43.52L101.888 708.608c-11.776 11.776-31.232 11.776-43.008 0z m305.664 257.536L956.416 374.784c11.776-11.776 11.776-31.232 0-43.52-11.776-11.776-31.232-11.776-43.52 0L321.536 922.624c-11.776 11.776-11.776 31.232 0 43.52a29.696 29.696 0 0 0 43.008 0z" ></path></symbol><symbol id="icon-qiedian" viewBox="0 0 1024 1024"><path d="M730.112 138.752h221.696v-61.44h-890.88v61.44h221.696c-129.536 76.8-216.576 217.6-216.576 378.88 0 242.688 197.632 440.32 440.32 440.32s440.32-197.632 440.32-440.32c0-160.768-87.04-302.08-216.576-378.88z m-223.744 757.76c-208.896 0-378.88-169.984-378.88-378.88s169.984-378.88 378.88-378.88 378.88 169.984 378.88 378.88-169.984 378.88-378.88 378.88z" ></path></symbol><symbol id="icon-xiangxiandian" viewBox="0 0 1024 1024"><path d="M515.584 18.944L22.016 512.512l493.568 493.568 493.568-493.568-493.568-493.568z m0 78.848l414.72 414.72-414.72 414.72-414.72-414.72 414.72-414.72z" ></path></symbol><symbol id="icon-yanchangxian" viewBox="0 0 1024 1024"><path d="M598.016 559.616h-532.48v-122.88h532.48v122.88z m369.152-122.88h-81.92v122.88h81.92v-122.88z m-212.992 0h-61.44v122.88h61.44v-122.88z" ></path></symbol><symbol id="icon-yuanxin" viewBox="0 0 1024 1024"><path d="M517.632 977.408c-253.952 0-460.8-206.848-460.8-460.8s206.848-460.8 460.8-460.8 460.8 206.848 460.8 460.8-206.848 460.8-460.8 460.8z m0-860.16c-220.16 0-399.36 179.2-399.36 399.36s179.2 399.36 399.36 399.36 399.36-179.2 399.36-399.36-179.2-399.36-399.36-399.36z" ></path></symbol><symbol id="icon-zhongdian" viewBox="0 0 1024 1024"><path d="M948.224 966.144H75.776c-19.968 0-33.28-20.992-24.064-38.912L487.936 54.784c9.728-19.968 38.4-19.968 48.128 0l436.224 872.448c8.704 17.92-4.096 38.912-24.064 38.912z m-816.64-61.44h760.832L512 143.872 131.584 904.704z" ></path></symbol><symbol id="icon-qiehuanyuyan" viewBox="0 0 1024 1024"><path d="M846.04 866.77c-17.08 2.03-32.57-10.18-34.59-27.26-0.22-1.9-0.27-3.81-0.15-5.71v-123c0-33.73-22.17-33.73-30.53-33.73-21.28-0.46-38.91 16.43-39.36 37.72-0.01 0.46-0.01 0.92 0 1.37v117.66c-0.76 18.9-16.71 33.61-35.61 32.84-17.83-0.72-32.12-15.01-32.84-32.84V647.68c-1.23-17.23 11.74-32.19 28.97-33.41 1.69-0.12 3.39-0.1 5.08 0.05a31.953 31.953 0 0 1 31.33 17.76 89.435 89.435 0 0 1 54.99-17.76c54.11 0 86.45 33.59 86.45 90.03V833.8a32.25 32.25 0 0 1-8.88 23.72 34.026 34.026 0 0 1-24.82 9.33l-0.04-0.08z m-233.12-7.46h-134.7c-42.77 0-61.85-18.96-61.85-61.57V608.07c0-42.52 19.09-61.57 61.85-61.57h128.74c17.92 0 32.45 14.53 32.45 32.45s-14.53 32.45-32.45 32.45H490.73c-1.22-0.08-2.45 0.09-3.6 0.5 0.13 0-0.15 0.8-0.15 2.89v52.58h106c16.33-1.66 30.91 10.24 32.57 26.57 0.17 1.68 0.2 3.37 0.08 5.06 0.98 16.66-11.73 30.97-28.4 31.95-1.41 0.08-2.83 0.07-4.24-0.05H486.9V791c-0.04 1.06 0.08 2.13 0.35 3.15 1.12 0.15 2.25 0.23 3.38 0.24h122.31c16.96-1.07 31.58 11.81 32.65 28.76 0.07 1.16 0.08 2.33 0.02 3.5 1.35 16.68-11.07 31.3-27.75 32.65-1.64 0.13-3.28 0.13-4.92 0h-0.02zM327.54 482.85c-17.36 2.36-33.34-9.8-35.7-27.16-0.3-2.21-0.37-4.44-0.2-6.67V370.5h-85.27c-45.86 0-66.31-20.52-66.31-66.31v-93.87c0-45.58 20.52-65.9 66.31-65.9h85.27v-31.53c-1.38-17.11 11.37-32.11 28.48-33.49 1.92-0.15 3.84-0.13 5.76 0.07 30.26 0 36.63 18.17 36.63 33.42v31.59h86.09c45.86 0 66.33 20.34 66.33 65.88v93.89c0 45.86-20.52 66.29-66.33 66.29h-86.05v78.52c1.25 17.47-11.9 32.65-29.37 33.91-1.88 0.13-3.76 0.1-5.63-0.1v-0.02zM217.21 211.27c-6.47 0-7.07 0.6-7.07 7.07v78.2c0 6.53 0.6 7.15 7.07 7.15h74.43v-92.42h-74.43z m145.35 92.38h75.29c6.29 0 7.09-0.8 7.09-7.07v-78.25c0-6.29-0.8-7.09-7.09-7.09h-75.31v92.42h0.02z m151.42 655.91C266.43 958.82 66.36 757.55 67.1 510c0.1-35 4.31-69.86 12.52-103.88 4.81-19 23.92-30.68 43.03-26.29 19.1 4.61 30.86 23.81 26.29 42.91-48.93 202.33 75.42 406.01 277.75 454.94a376.924 376.924 0 0 0 87.29 10.56c19.69 0.02 35.64 15.99 35.63 35.69-0.02 19.67-15.96 35.61-35.63 35.63z m398.49-310.05c-19.69 0-35.66-15.96-35.66-35.65 0-2.95 0.37-5.9 1.09-8.76 51.31-201.82-70.7-407.02-272.52-458.33-29.89-7.6-60.59-11.5-91.43-11.62-19.68 0-35.64-15.95-35.64-35.63 0-19.68 15.95-35.64 35.63-35.64h0.01c247.57 0.76 447.65 202.08 446.89 449.65-0.11 36.8-4.76 73.44-13.83 109.1-4 15.8-18.23 26.88-34.54 26.88z" ></path></symbol><symbol id="icon-mgongzuotai" viewBox="0 0 1024 1024"><path d="M915.968 358.912v-2.048c1.536-12.8-4.096-25.6-15.872-32.768l-370.688-214.016c-11.264-6.656-24.576-5.632-34.304 1.024l-371.712 215.04c-12.288 7.168-18.432 21.504-15.36 34.816v490.496c0 17.92 14.848 32.768 32.768 32.768 1.536 0 3.072 0 4.608-0.512h732.16c2.048 0.512 4.096 0.512 6.144 0.512 15.36 0 28.16-10.752 31.744-25.088 0.512-2.56 1.024-5.12 1.024-8.192v-3.072l-0.512-488.96zM173.056 818.176v-445.44l339.968-196.096 337.408 195.072v446.976H173.056z m537.6-276.48c0-17.92-14.848-32.768-32.768-32.768-16.384 0-29.696 11.776-32.256 27.648-17.92 57.344-71.168 98.816-134.144 98.816-63.488 0-117.248-41.984-134.656-99.84-2.56-15.36-15.872-26.624-31.744-26.624-17.92 0-32.256 14.336-32.256 32.256 0 2.048 0 4.608 0.512 6.656 0.512 1.024 0.512 2.56 1.024 3.584 24.576 85.504 103.936 148.48 197.632 148.48 93.184 0 172.032-62.464 197.12-147.456l1.536-4.608c0-0.512 0.512-1.024 0.512-1.536-0.512-1.024-0.512-2.56-0.512-4.608z" ></path></symbol><symbol id="icon-mxiaoxi" viewBox="0 0 1024 1024"><path d="M510.976 103.424c-225.28 0-409.6 156.672-409.6 352.768v6.144c2.56 132.608 90.112 249.856 222.72 308.224l4.608 2.048v121.344c1.536 24.576 30.208 37.888 50.176 22.528l142.336-107.008h2.56c219.136-6.144 396.288-160.256 396.288-352.768 0.512-196.608-183.808-353.28-409.088-353.28z m0 62.976c192.512 0 346.624 131.072 346.624 289.792s-154.112 289.792-346.624 289.792h-3.072c-5.632 0.512-11.264 2.56-15.872 6.144l-100.352 75.264v-76.8c0-13.312-8.192-25.088-20.48-29.696-124.928-46.08-206.848-150.016-206.848-265.216 0.512-158.208 154.624-289.28 346.624-289.28z" ></path><path d="M306.176 481.792c11.776 0 22.528 6.656 28.16 16.896L332.8 496.64c35.328 54.272 88.576 85.504 152.576 87.552h5.632v62.976c-86.528 0-160.256-40.96-207.872-111.104l-3.072-5.12c-9.728-14.336-5.632-33.792 8.704-43.52 5.12-4.096 11.264-5.632 17.408-5.632z" ></path></symbol><symbol id="icon-xiangmu" viewBox="0 0 1024 1024"><path d="M971.264 497.664c0 22.016-17.92 39.424-39.424 39.424s-39.424-17.92-39.424-39.424c0-116.224-73.216-226.816-181.76-268.288-126.464-48.128-271.36 6.144-341.504 120.832 62.464 15.36 116.224 52.736 152.064 105.984 12.288 17.92 7.68 42.496-10.752 54.784-17.92 12.288-42.496 7.68-54.784-10.752C429.056 460.8 388.608 434.176 341.504 424.96c-8.704-1.536-17.408-2.56-26.112-3.072-4.608 0.512-9.216 0.512-13.824 0-33.792 1.024-66.56 11.264-94.72 30.72-39.424 26.624-66.56 67.584-75.264 114.176-9.216 47.104 0.512 94.72 27.136 134.144 33.28 49.152 88.576 78.848 148.48 78.848h184.32c22.016 0 39.424 17.92 39.424 39.424 0 22.016-17.92 39.424-39.424 39.424H307.712c-86.016 0-165.888-42.496-213.504-113.664-38.912-56.832-53.248-125.44-39.936-193.536C67.584 483.84 105.984 424.96 162.816 386.56c35.84-24.064 77.312-39.424 119.808-43.008 79.872-170.496 279.04-256 455.68-188.416 139.264 53.248 232.96 193.536 232.96 342.528z m-7.168 155.136v157.696c0 8.704-5.12 17.408-13.824 20.992l-150.528 80.384c-1.536 0-5.12 1.536-7.168 1.536-5.12 1.536-10.752 0-15.872-1.536l-150.528-80.384c-7.168-3.584-12.288-12.288-12.288-20.992v-157.696c0-8.704 5.12-17.408 12.288-20.992l152.576-80.384c7.168-3.584 15.872-3.584 22.528 0l150.528 80.384c10.24 5.12 12.288 10.752 12.288 20.992z m-45.568 11.264l-129.536-67.072-121.856 64v137.216l121.856 59.392 3.584-3.584v-122.368l125.952-67.584z" ></path></symbol><symbol id="icon-houtaiguanli" viewBox="0 0 1024 1024"><path d="M860.672 902.144c0 19.456-15.872 35.84-35.84 35.84h-614.4c-19.456 0-35.84-15.872-35.84-35.84s15.872-35.84 35.84-35.84h614.912c19.456 0.512 35.328 16.384 35.328 35.84z m92.16-706.56v491.52c0 70.656-57.344 128-128 128h-614.4c-70.656 0-128-57.344-128-128v-491.52c0-70.656 57.344-128 128-128h614.912c70.144 0 127.488 57.344 127.488 128z m-71.168 0c0-31.232-25.6-56.32-56.32-56.32H210.432c-31.232 0-56.32 25.6-56.32 56.32v491.52c0 31.232 25.6 56.32 56.32 56.32h614.912c31.232 0 56.32-25.6 56.32-56.32v-491.52z m-117.76 245.76c-0.512 18.432-3.072 36.352-7.68 53.76v7.68h-7.68c-25.6 0.512-49.152 13.824-62.976 35.328-12.288 22.528-11.776 50.176 1.536 72.192l3.072 7.68-6.144 6.144c-26.112 24.576-57.856 43.008-92.16 53.76h-7.68l-4.608-6.144c-6.656-12.8-16.896-23.04-29.696-29.696-33.792-17.408-75.776-4.096-93.184 29.696l-4.608 4.608h-7.68c-34.304-10.752-66.048-29.184-92.16-53.76l-6.144-6.144 3.072-6.144c13.312-22.016 13.824-49.664 1.536-72.192-13.824-21.504-37.376-34.816-62.976-35.328h-9.216v-7.68c-4.096-17.408-6.144-35.84-6.144-53.76 0.512-18.432 3.072-36.352 7.68-53.76v-7.68h7.68c26.112-0.512 49.664-14.336 62.976-36.864 12.288-22.528 11.776-50.176-1.536-72.192l-3.072-6.144 6.144-6.144c26.112-24.576 57.856-43.008 92.16-53.76h7.68l4.608 6.144c6.656 12.8 16.896 23.04 29.696 29.696 33.792 17.408 75.776 4.096 93.184-29.696l4.608-4.608h7.68c34.304 10.752 66.048 29.184 92.16 53.76l6.144 6.144-3.072 6.144c-13.312 22.016-13.824 49.664-1.536 72.192 13.824 21.504 37.376 34.816 62.976 35.328h9.216v7.68c4.096 17.408 6.144 35.84 6.144 53.76z m-246.272-69.12c-38.4 0-69.12 30.72-69.12 69.12s30.72 69.12 69.12 69.12 69.12-30.72 69.12-69.12c0.512-38.4-30.72-69.12-69.12-69.12z" ></path></symbol><symbol id="icon-powerUser" viewBox="0 0 1024 1024"><path d="M341.94993548 488.50625044l179.02631426 282.7518668 179.52499481-282.7518668h9.47493027c103.72555255 0 188.50124455 84.77569198 188.50124453 188.50124454v188.50124453c0 51.86277627-42.38784599 94.25062227-94.25062226 94.25062227H238.72306348c-51.86277627 0-94.25062227-42.38784599-94.25062227-94.25062227v-188.50124453c0-103.72555255 84.77569198-188.50124455 188.50124453-188.50124454h8.97624974z m202.96298022 0l23.43798545 47.3746514-47.37465141 141.12659314-46.87597086-141.12659315 23.43798543-47.37465139h47.37465139z m-23.43798542-436.34547347c103.72555255 0 188.50124455 84.77569198 188.50124454 188.50124454s-84.77569198 188.50124455-188.50124454 188.50124454-188.50124455-84.77569198-188.50124454-188.50124454 84.77569198-188.50124455 188.50124454-188.50124454z" ></path></symbol><symbol id="icon-adminUser" viewBox="0 0 1024 1024"><path d="M894.464 774.656c5.12 35.84 35.84 30.72 41.472 46.592 0 10.24-5.12 46.592-20.48 51.2-15.36 0-35.84-5.12-51.2 0-10.24 5.12-20.48 10.24-26.112 20.48-10.24 26.112 10.24 46.592 0 56.32-15.36 10.24-46.592 26.112-56.32 15.36-15.36-15.36-15.36-35.84-46.592-35.84-41.472 0-41.472 41.472-61.952 41.472s-56.32-15.36-56.32-30.72c5.12-20.48 15.36-35.84-5.12-56.32-26.112-20.48-56.32 0-67.072-10.24-15.36-10.24-20.48-35.84-15.36-51.2s41.472-15.36 41.472-56.32c0-30.72-35.84-35.84-41.472-56.32-5.12-15.36 5.12-41.472 20.48-46.592 26.112-10.24 40.96 10.24 67.072-10.24 15.36-15.36 10.24-51.2 10.24-61.952 5.12-15.36 26.112-20.48 41.472-20.48 30.72 0 20.48 35.84 61.952 41.472 41.472 0 35.84-15.36 56.32-41.472 26.112 0 46.592 10.24 51.2 20.48 10.24 20.48-10.24 51.2 20.48 71.68 26.112 15.36 51.2-5.12 67.072 0 10.24 5.12 15.36 20.48 20.48 41.472-10.24 29.696-56.832 24.576-51.712 71.168z m-185.344-102.912c-123.904 30.72-77.312 210.944 41.472 190.976 118.784-26.112 102.912-217.088-41.472-190.976zM498.176 491.52c-123.904 0-221.184-97.792-221.184-221.184S374.784 48.64 498.176 48.64c123.904 0 221.184 97.792 221.184 221.184 0.512 118.272-97.28 221.696-221.184 221.696z m180.224 51.2s-82.432 0-77.312 56.32c5.12 61.952-77.312 15.36-92.672 67.072-20.48 61.952 10.24 51.2 26.112 92.672 10.24 26.112-41.472 41.472-35.84 87.552 10.24 61.952 61.952 30.72 77.312 67.072 10.24 30.72-26.112 51.2-108.544 51.2-67.072 0-195.584 0-242.176-5.12 0 0-133.632-5.12-133.632-92.672 0 0-5.12-129.024 77.312-221.184 0 0 87.552-113.152 236.544-113.152l272.896 10.24z" ></path></symbol><symbol id="icon-ordinaryUser" viewBox="0 0 1024 1024"><path d="M515.072 463.872c-107.008 0-193.536-86.528-193.536-193.536S408.064 76.8 515.072 76.8s193.536 86.528 193.536 193.536-86.528 193.536-193.536 193.536zM394.24 512.512h241.664c146.944 0 265.728 119.296 265.728 265.728v169.472h-773.12V778.24c0-146.944 118.784-265.728 265.728-265.728z" ></path></symbol><symbol id="icon-activeUser" viewBox="0 0 1024 1024"><path d="M510.464 47.104c-222.208 0-402.432 183.296-402.432 409.6 0 308.224 360.96 512 402.432 512s402.432-200.192 402.432-512c0-226.304-179.712-409.6-402.432-409.6z m0 716.8c-166.912 0-302.08-137.728-302.08-307.2s135.168-307.2 302.08-307.2 302.08 137.728 302.08 307.2-135.168 307.2-302.08 307.2z m30.208-340.992h80.384c22.016 0 40.448 17.92 40.448 40.448v4.608c0 22.016-17.92 40.448-40.448 40.448H500.736c-22.016 0-40.448-17.92-40.448-40.448V292.352c0-22.016 17.92-40.448 40.448-40.448 22.016 0 40.448 17.92 40.448 40.448-0.512 0-0.512 130.56-0.512 130.56z" ></path></symbol><symbol id="icon-newDwg" viewBox="0 0 1024 1024"><path d="M706.048 334.336c-16.384 0-30.208-13.312-30.208-30.208V93.696H254.464c-66.56 0-120.32 53.76-120.32 120.32v609.28c0 66.56 53.76 120.32 120.32 120.32h541.696c66.56 0 120.32-53.76 120.32-120.32V334.336h-210.432z m0 245.76h-145.92v145.92c0 19.456-15.872 34.816-34.816 34.816-19.456 0-34.816-15.872-34.816-34.816v-145.92H344.576c-19.456 0-34.816-15.872-34.816-34.816s15.872-34.816 34.816-34.816h145.92V364.544c0-19.456 15.872-34.816 34.816-34.816 19.456 0 34.816 15.872 34.816 34.816v145.92h145.92c19.456 0 34.816 15.872 34.816 34.816s-15.872 34.816-34.816 34.816z m30.208-486.4v180.736H916.48l-180.224-180.736z" ></path></symbol><symbol id="icon-newUser" viewBox="0 0 1024 1024"><path d="M839.68 908.8c-9.216 9.216-21.504 14.848-34.304 14.848H94.72c-26.624 0-48.128-21.504-48.128-48.128v-1.536c1.024-27.136 7.68-65.024 34.816-90.112 22.528-20.992 46.592-37.376 73.728-50.176 24.064-11.264 48.128-18.944 71.68-26.112 25.088-7.68 50.688-15.872 77.312-28.672 27.136-12.8 43.008-34.816 47.104-65.536-21.504-13.312-39.936-30.72-54.272-51.712-13.312-19.456-22.016-40.96-26.112-64-9.728-2.56-23.04-9.728-32.768-31.232-7.68-15.872-11.776-36.864-11.776-58.368 0-13.824-2.56-26.624-4.608-37.888-3.584-16.896-6.144-31.744 3.072-43.008 2.56-3.584 8.704-8.704 19.456-9.216-0.512-10.24-1.024-19.968-1.024-28.16 0-40.96 3.584-73.216 10.24-98.816 9.216-33.792 25.088-57.856 47.104-71.68 5.632-3.584 12.288-4.096 18.432-1.024 5.632 2.56 9.728 8.192 10.752 14.848 0.512 3.072 1.536 6.144 2.56 9.216 4.096-3.584 8.192-7.168 12.8-10.24 11.264-7.68 26.624-16.384 46.08-25.088 31.744-14.336 63.488-25.088 64.512-25.6 10.24-3.584 20.992 2.048 24.576 12.288 2.048 6.656 0.512 13.824-4.096 18.944-6.656 7.168-9.728 12.288-11.264 15.36 9.216 0 18.944-1.536 29.184-3.072 34.816-5.12 77.824-11.776 130.048 31.232 33.792 28.16 37.376 77.312 31.744 158.72 0 1.024 0 2.56-0.512 3.584 2.048-0.512 4.096-0.512 6.144-0.512 11.776 0 18.944 5.632 22.528 9.728 9.216 11.776 6.144 26.112 2.048 43.008-2.56 11.264-5.632 24.064-5.632 37.376 0 22.016-4.608 43.008-13.312 59.392-9.728 18.432-24.064 29.184-39.424 31.232-8.704 45.568-35.328 85.504-75.264 112.128 3.072 32.256 18.944 55.296 46.592 68.608 26.624 12.8 51.712 20.992 76.288 28.672 23.04 7.168 46.592 14.848 70.144 26.112 26.624 12.8 50.688 29.184 72.704 50.176 26.624 25.088 33.28 62.976 34.304 90.112 1.024 12.288-4.096 24.576-12.8 34.304z m51.712-273.408v-57.856h57.856c10.752 0 19.456-8.704 19.456-19.456 0-10.752-8.704-19.456-19.456-19.456h-57.856V481.792c0-10.752-8.704-19.456-19.456-19.456s-19.456 8.704-19.456 19.456v57.856h-57.856c-10.752 0-19.456 8.704-19.456 19.456 0 10.752 8.704 19.456 19.456 19.456h57.856v57.856c0 10.752 8.704 19.456 19.456 19.456s19.456-10.24 19.456-20.48z" ></path></symbol><symbol id="icon-Top" viewBox="0 0 1024 1024"><path d="M664.064 72.192H307.2L78.848 300.544v640h642.048l228.352-228.352v-640h-285.184zM307.2 136.704v163.84H143.36l163.84-163.84z m-182.784 209.92H307.2v333.312l-182.784 182.784V346.624z m550.912 548.352H156.672l182.784-182.784h335.36v182.784h0.512z m0-228.864H353.28V346.624h322.048v319.488z m13.312-365.568H353.28V117.76h518.144l-182.784 182.784z m32.256 575.488v-163.84h163.84l-163.84 163.84z m182.784-209.92h-182.784v-332.8l182.784-182.784v515.584z" fill="#DDDDDD" ></path><path d="M327.168 116.224l544.256 1.536-182.784 182.784H143.36l183.808-184.32z" fill="#078BED" ></path></symbol><symbol id="icon-Bottom" viewBox="0 0 1024 1024"><path d="M663.552 72.192H306.688L78.336 300.544v640h642.048l228.352-228.352v-640h-285.184zM306.688 136.704v163.84h-163.84l163.84-163.84z m-182.784 209.92h182.784v333.312l-182.784 182.784V346.624z m550.912 548.352H156.16l182.784-182.784h335.36v182.784h0.512z m0-228.864h-322.56V346.624h322.048v319.488z m13.312-365.568H352.256V117.76H870.4l-182.272 182.784z m32.256 575.488v-163.84h163.84l-163.84 163.84z m182.784-209.92h-182.784v-332.8l182.784-182.784v515.584z" fill="#DDDDDD" ></path><path d="M340.48 710.144l544.256 1.536-183.296 182.784H156.672l183.808-184.32z" fill="#078BED" ></path></symbol><symbol id="icon-Left" viewBox="0 0 1024 1024"><path d="M663.04 72.192H306.176L77.824 300.544v640h642.048l228.352-228.352v-640h-285.184zM306.176 136.704v163.84h-163.84l163.84-163.84z m-182.784 209.92h182.784v333.312l-182.784 182.784V346.624z m550.4 548.352H155.648l182.784-182.784h335.36v182.784z m0-228.864H351.744V346.624h322.048v319.488z m13.824-365.568H351.744V117.76H870.4l-182.784 182.784z m32.256 575.488v-163.84h163.84l-163.84 163.84z m182.784-209.92h-182.784v-332.8l182.784-182.784v515.584z" fill="#DDDDDD" ></path><path d="M306.176 679.936v-542.72L123.392 318.976v543.744l182.784-182.784z" fill="#078BED" ></path></symbol><symbol id="icon-Right" viewBox="0 0 1024 1024"><path d="M662.528 72.192H305.664L77.312 300.544v640h642.048l228.352-228.352v-640h-285.184zM305.664 136.704v163.84h-163.84l163.84-163.84zM122.88 346.624h182.784v333.312L122.88 862.72V346.624z m550.4 548.352H155.136L337.92 712.192h335.36v182.784z m0-228.864H351.232V346.624h322.048v319.488z m13.824-365.568H351.232V117.76h518.144l-182.272 182.784z m32.256 575.488v-163.84h163.84l-163.84 163.84z m182.784-209.92h-182.784v-332.8l182.784-182.784v515.584z" fill="#DDDDDD" ></path><path d="M902.144 150.016l1.536 541.696-184.32 183.808V332.8l182.784-182.784z" fill="#078BED" ></path></symbol><symbol id="icon-Front" viewBox="0 0 1024 1024"><path d="M662.016 72.192H305.152L76.8 300.544v640h642.048l228.352-228.352v-640h-285.184zM305.152 136.704v163.84h-163.84l163.84-163.84z m-182.784 209.92h182.784v333.312l-182.784 182.784V346.624z m550.4 548.352H154.624l182.784-182.784h335.36v182.784z m0-228.864H350.72V346.624h322.048v319.488z m13.824-365.568H350.72V117.76h518.144l-182.272 182.784z m32.256 575.488v-163.84h163.84l-163.84 163.84z m182.784-209.92h-182.784v-332.8l182.784-182.784v515.584z" fill="#DDDDDD" ></path><path d="M122.368 346.624h550.912v548.352H122.368V346.624z" fill="#078BED" ></path></symbol><symbol id="icon-Back" viewBox="0 0 1024 1024"><path d="M348.16 116.224h551.424v551.936H348.16V116.224z" fill="#078BED" ></path><path d="M659.968 72.192H303.616L74.752 300.544v640H716.8l228.352-228.352v-640h-285.184zM303.616 136.704v163.84h-163.84l163.84-163.84z m-183.296 209.92h182.784v333.312l-182.784 182.784V346.624z m550.912 548.352H153.088l182.784-182.784h335.36v182.784z m0-228.864H349.184V346.624h322.048v319.488z m13.312-365.568H349.184V117.76h518.144l-182.784 182.784z m32.256 575.488v-163.84h163.84l-163.84 163.84z m182.784-209.92H716.8v-332.8l182.784-182.784v515.584z" fill="#DDDDDD" ></path></symbol><symbol id="icon-Swiso" viewBox="0 0 1024 1024"><path d="M89.243028 664.478088l428.366534-293.737052 428.366534 293.737052-48.956176 33.65737-379.410358-260.589641-379.410359 260.589641-48.956175-33.65737z" fill="#DDDDDD" ></path><path d="M493.131474 651.729084v288.12749l-354.932271-241.721116V408.478088l354.932271 243.250996z" fill="#078BED" ></path><path d="M517.609562 14.278884l-428.366534 293.737052v422.247012l428.366534 293.737052 428.366534-293.737052V308.015936l-428.366534-293.737052z m379.920318 682.326694l-379.410358 260.589641-379.410359-260.079681V341.163347l379.410359-260.079682 379.410358 260.079682v355.442231z m9.179283-391.139443l19.888447 51.505977m-830.21514-2.039841l21.418327-49.466136" fill="#DDDDDD" ></path><path d="M946.486056 374.820717l-428.366534 293.737052-428.366534-293.737052 48.956175-33.65737 379.410359 260.589641 379.410358-260.589641 48.956176 33.65737z" fill="#DDDDDD" ></path><path d="M493.131474 609.912351v375.330677h49.466136l-2.039841-362.071713-47.426295-13.258964z m0-562.996016v375.330677h49.466136l-2.039841-362.071713c-0.50996-0.50996-47.426295-13.258964-47.426295-13.258964z" fill="#DDDDDD" ></path></symbol><symbol id="icon-Seiso" viewBox="0 0 1024 1024"><path d="M91.792829 664.478088l428.366534-293.737052 428.366533 293.737052-48.956175 33.65737-379.410358-260.589641-379.410359 260.589641-48.956175-33.65737z" fill="#DDDDDD" ></path><path d="M899.569721 408.478088v289.65737l-354.932271 241.721116-2.03984-286.59761 356.972111-244.780876z" fill="#078BED" ></path><path d="M520.159363 14.278884l-428.366534 293.737052v422.247012l428.366534 293.737052 428.366533-293.737052V308.015936l-428.366533-293.737052zM899.569721 696.605578l-379.410358 260.589641-379.410359-260.079681V341.673307l379.410359-260.079682L899.569721 341.673307v354.932271z m9.179283-391.139443l19.888446 51.505977m-830.215139-1.529881l21.418326-49.466135" fill="#DDDDDD" ></path><path d="M948.525896 374.820717l-428.366533 293.737052-428.366534-293.737052 48.956175-33.65737 379.410359 260.589641L899.569721 341.673307l48.956175 33.14741z" fill="#DDDDDD" ></path><path d="M495.171315 609.912351v375.330677h49.466135l-2.03984-362.071713-47.426295-13.258964z m0-562.996016v375.330677h49.466135l-2.03984-362.071713c0-0.50996-47.426295-13.258964-47.426295-13.258964z" fill="#DDDDDD" ></path></symbol><symbol id="icon-Neiso" viewBox="0 0 1024 1024"><path d="M883.441031 345.054509v288.222002L529.760159 390.723489l-1.5223-289.236869 355.203172 243.567889z" fill="#078BED" ></path><path d="M505.910803 19.282458l-426.243806 292.281467v420.154608l426.243806 292.281467 426.243806-292.281467V312.071358l-426.243806-292.7889z m377.530228 678.94549l-377.530228 259.298316-377.530228-258.790882V345.054509l377.530228-258.790882 377.530228 258.790882v353.173439zM892.574827 309.534192l19.789891 51.250744m-826.101091-2.029733l21.312191-49.221011" fill="#DDDDDD" ></path><path d="M932.154609 378.545094l-426.243806 292.281467-426.243806-292.281467 48.713578-33.490585 377.530228 259.298316L883.441031 345.054509l48.713578 33.490585z" fill="#DDDDDD" ></path><path d="M79.159564 666.767096l426.243806-292.281467 426.243805 292.281467-48.713577 33.490585-377.022795-259.298315L127.873142 700.257681l-48.713578-33.490585z" fill="#DDDDDD" ></path><path d="M481.046581 612.471754v373.470763h49.221011l-2.029733-360.277502-47.191278-13.193261z m0-560.713578v373.470764h49.221011l-2.029733-360.277503c-0.507433 0-47.191278-13.193261-47.191278-13.193261z" fill="#DDDDDD" ></path></symbol><symbol id="icon-Nwiso" viewBox="0 0 1024 1024"><path d="M505.856 93.696V384l-356.352 244.224V337.92l356.352-244.224z" fill="#078BED" ></path><path d="M530.432 9.216l-430.08 294.912v423.936l430.08 294.912 430.08-294.912V304.128l-430.08-294.912zM911.36 694.272l-380.928 261.632-380.928-261.12V337.92l380.928-261.12L911.36 337.92v356.352z m9.728-392.704l19.968 51.712M107.52 351.744l21.504-49.664" fill="#DDDDDD" ></path><path d="M960.512 371.2l-430.08 294.912-430.08-294.912 49.152-33.792 380.928 261.632L911.36 337.92l49.152 33.28z" fill="#DDDDDD" ></path><path d="M100.352 662.016l430.08-294.912 430.08 294.912-49.152 33.792-380.928-261.632-380.928 261.632-49.152-33.792z" fill="#DDDDDD" ></path><path d="M505.856 607.232v376.832h49.664l-2.048-363.52-47.616-13.312z m0-565.248v376.832h49.664l-2.048-363.52c-0.512-0.512-47.616-13.312-47.616-13.312z" fill="#DDDDDD" ></path></symbol><symbol id="icon-huifu" viewBox="0 0 1024 1024"><path d="M602.06795699 914.45677419c227.42709677-38.64774194 381.02709677-255.66967742 342.37935484-483.09677419-18.8283871-109.99741935-79.27741935-206.61677419-170.94193548-271.02967742-91.16903226-64.9083871-202.15741935-90.17806452-312.15483871-71.34967742-109.99741935 18.8283871-207.60774194 81.75483871-267.56129032 172.92387097l-4.45935484 6.93677419L72.39569893 186.09548387l2.47741935 299.76774194 308.68645162-66.39483871-121.39354839-99.59225807 4.45935484-6.44129032C320.13763441 238.12129032 390.99182796 192.53677419 476.71053764 177.67225806c86.21419355-14.86451613 172.92387097 5.45032258 244.76903226 55.98967742 71.84516129 51.03483871 119.4116129 126.3483871 133.78064516 212.56258065 14.86451613 86.21419355-5.45032258 172.92387097-55.98967742 244.76903226-51.03483871 71.84516129-126.3483871 119.4116129-212.56258065 133.78064516-17.83741935 2.97290323-36.17032258 4.45935484-54.00774193 4.45935484-115.94322581 0.49548387-223.95870968-61.93548387-281.93032258-163.01419355l-94.14193549 15.85548387c81.25935484 167.47354839 264.09290323 263.10193548 445.44 232.38193548z" ></path></symbol><symbol id="icon-PICtiff" viewBox="0 0 1024 1024"><path d="M756.736 109.056l193.536 194.56v580.096c0 35.84-28.672 64.512-64.512 64.512H172.544c-35.84-1.024-64-30.208-62.976-66.048V174.592c0-35.84 28.672-65.536 64.512-65.536h582.656z" fill="#DBB530" ></path><path d="M948.736 303.104h-127.488c-35.84 0-64.512-28.672-64.512-64.512V108.544l192 194.56z" fill="#EACE73" ></path><path d="M233.472 709.12v-148.48h-39.936v-39.424h39.936V469.504l53.76-16.896v68.608h67.072v39.424H287.232v145.408c0 36.864 12.288 54.272 38.4 54.272 10.24 0 16.896-1.024 23.552-3.072l2.048 40.448c-10.24 3.584-25.6 5.632-43.52 5.632-23.04 0-41.984-7.168-53.76-20.48-14.336-14.336-20.48-37.376-20.48-73.728z m177.152-188.416v277.504h54.272v-277.504H410.624z m445.952-86.528l5.632-40.448c-11.776-4.608-25.6-6.656-40.448-6.656-15.36 0-44.032 3.072-67.072 25.6-30.72 30.72-30.72 76.288-30.72 105.984v2.56H686.08v39.424h37.888v237.568H778.24v-237.568h61.44v-39.424h-61.952v-17.92c0-48.128 17.408-73.728 50.688-73.728 12.8 0 21.504 2.048 28.16 4.608z m-418.304-25.6c-18.944 0-32.256 13.312-32.256 32.256 0 18.432 13.312 31.744 31.744 31.744 18.944 0 32.256-12.8 32.256-31.744s-12.8-32.256-31.744-32.256z m248.32 25.6l5.632-40.448c-11.776-4.608-25.6-6.656-40.448-6.656-15.36 0-44.032 3.072-67.072 25.6-30.72 30.72-30.72 76.288-30.72 105.984v2.56h-37.888v39.424h37.888v237.568h54.272v-237.568h61.44v-39.424h-61.952v-17.92c0-48.128 17.408-73.728 50.688-73.728 12.8 0 21.504 2.048 28.16 4.608z" fill="#FFFFFF" ></path></symbol><symbol id="icon-xiangmuxiaoxi" viewBox="0 0 1024 1024"><path d="M527.872 968.192l398.336-193.536c10.24-6.144 16.896-17.408 16.896-29.184V282.624c0-11.776-6.656-23.04-16.896-29.184l-50.688-29.184-15.872-9.216-331.776-159.744c-5.12-3.072-10.752-4.608-16.896-4.608-5.632 0-11.776 1.536-16.896 4.608L95.744 253.952c-10.24 6.144-16.896 16.896-16.896 29.184v462.336c0 11.776 6.656 23.04 16.896 29.184l14.848 8.704 383.488 184.832c10.24 6.144 23.04 6.144 33.792 0zM875.52 324.096v401.92L544.256 880.64V494.592L875.52 324.096zM510.976 123.904l315.904 150.528-315.904 161.792L194.56 274.432l316.416-150.528zM477.184 880.64l-331.264-154.624V324.096l331.264 170.496V880.64z" ></path></symbol><symbol id="icon-chengyuanxiaoxi" viewBox="0 0 1024 1024"><path d="M366.08 61.44C266.24 61.44 184.832 142.848 184.832 242.688S266.24 424.448 366.08 424.448 547.84 343.04 547.84 242.688 466.432 61.44 366.08 61.44z m114.688 181.248c0 62.976-51.2 114.176-114.176 114.176s-114.176-51.2-114.176-114.176 51.2-114.176 114.176-114.176 114.176 51.2 114.176 114.176z m478.208 467.456v219.136c0 18.432-14.848 33.28-33.28 33.28s-33.28-14.848-33.28-33.28v-219.136c0-23.552-19.456-43.008-43.008-43.008H701.44c-23.04 0-42.496 18.944-43.008 41.984v219.648c0 18.432-14.848 33.28-33.28 33.28h-2.56c-19.968 0-35.84-15.872-35.84-35.84v-265.216c0-53.248-43.52-96.768-96.768-96.768H242.688c-53.248 0-96.768 43.52-96.768 96.768V926.72c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84v-265.216c0-92.672 75.776-168.448 168.448-168.448h247.296c73.728 0 139.776 49.152 161.28 119.296 15.36-7.68 32.768-12.288 50.176-12.288h147.968c60.416 0.512 109.568 49.664 109.568 110.08z m-192.512-457.216c-74.752 0-136.192 60.928-136.192 136.192s60.928 136.192 136.192 136.192c74.752 0 136.192-60.928 136.192-136.192s-61.44-136.192-136.192-136.192zM835.072 389.12c0 37.888-30.72 69.12-69.12 69.12-37.888 0-69.12-30.72-69.12-69.12 0-37.888 30.72-69.12 69.12-69.12s69.12 31.232 69.12 69.12z" ></path></symbol><symbol id="icon-xitongxiaoxi" viewBox="0 0 1024 1024"><path d="M564.224 195.072v685.056c0 19.456-9.216 34.816-24.064 41.984-5.12 2.56-10.752 3.584-16.384 3.584-10.752 0-21.504-4.096-31.232-12.288l-215.04-161.792c-6.656-5.632-10.752-13.312-11.264-22.016-0.512-8.704 2.048-16.896 7.68-23.552 11.264-13.312 31.744-15.36 45.056-3.584l182.272 134.144v-599.04l-163.84 119.808c-16.384 13.824-43.52 24.064-65.024 24.064H116.736v313.856h72.192c17.408 0 31.744 14.336 31.744 31.744s-14.336 31.744-31.744 31.744H110.08c-31.744 0-57.344-25.6-57.344-57.344V374.784c0-31.744 25.6-57.344 57.344-57.344h162.304c6.144 0 18.944-4.608 24.064-8.704l196.608-146.944c14.336-12.288 32.256-15.872 47.616-8.704 14.848 7.168 23.552 22.528 23.552 41.984z m241.152 720.384c116.736-82.432 185.856-220.16 185.856-368.128 0-148.48-69.632-286.208-186.368-368.64l-1.024-1.024c-6.144-4.096-12.8-6.144-19.456-6.144-2.56 0-5.12 0.512-7.68 1.024-9.728 2.048-17.92 8.192-23.04 16.896-5.12 8.704-7.168 18.944-5.12 29.184s7.68 18.432 15.872 24.064c96.768 68.096 154.112 182.272 154.112 304.64s-57.344 236.032-153.6 304.64c-16.384 11.776-20.992 35.328-9.728 53.248 11.264 16.896 33.792 21.504 50.176 10.24z m15.872-370.176c0-93.696-44.544-180.224-118.272-232.448-6.144-4.096-12.8-6.144-19.968-6.144-11.776 0-23.552 6.144-30.208 16.896-11.264 17.408-6.656 41.472 9.728 53.248 53.76 37.888 86.016 100.864 86.016 168.448 0 69.632-33.28 133.632-89.6 171.008-8.192 5.632-13.824 13.824-15.872 24.064-2.048 10.24-0.512 20.48 4.608 29.184s13.312 14.848 23.04 16.896 19.456 0.512 27.648-5.12c76.8-51.712 122.88-139.776 122.88-236.032z" ></path></symbol><symbol id="icon-quanbuyidu" viewBox="0 0 1024 1024"><path d="M762.368 887.808c-15.36 3.584-31.744 1.024-44.544-7.168l-155.136-100.352c-9.216-6.144-15.872-15.36-18.432-26.624s-0.512-22.528 5.632-31.744c8.192-12.288 21.504-19.456 35.328-19.456 5.632 0 10.752 1.024 16.384 3.072l6.656 3.584 116.736 75.264c3.584 2.048 7.68 3.072 11.776 2.048 4.096-1.024 7.68-3.584 9.728-7.168l140.288-251.904c5.632-9.728 14.336-16.896 25.6-19.968 10.752-3.072 22.528-1.536 32.256 3.584 17.92 9.728 25.6 31.232 19.456 50.176l-3.072 7.168-162.816 291.84c-7.68 13.824-20.992 23.552-35.84 27.648z m155.648-732.672H116.736l-7.68 0.512c-19.968 3.584-34.816 20.992-34.816 41.472 0 23.04 18.944 41.984 41.984 41.984h801.792l7.168-0.512c19.968-3.584 34.816-20.992 34.816-41.472 0.512-23.04-18.944-41.984-41.984-41.984z m-258.56 302.592h-542.72l-7.68 0.512c-19.968 3.584-34.816 20.992-34.816 41.472 0 11.264 4.608 22.016 12.288 29.696 8.192 8.192 18.432 12.288 29.696 12.288h542.72l7.168-0.512c19.968-3.584 34.816-20.992 34.816-41.472 0-11.264-4.608-22.016-12.288-29.696s-17.92-12.288-29.184-12.288z m-204.288 302.592H116.736l-7.68 0.512c-19.968 3.584-34.816 20.992-34.816 41.472 0 11.264 4.608 22.016 12.288 29.696 8.192 8.192 18.432 12.288 29.696 12.288H455.68l7.68-0.512c19.456-3.584 33.792-20.992 34.304-40.96 0-11.264-4.096-22.016-12.288-30.208-8.192-7.68-18.944-12.288-30.208-12.288z" ></path></symbol><symbol id="icon-biaojiyidu" viewBox="0 0 1024 1024"><path d="M774.144 440.32l-192 102.4c-22.016 12.288-45.568 18.432-69.632 18.432-23.552 0-46.592-5.632-71.68-18.432L250.88 440.32c-8.704-5.12-14.848-13.824-17.408-24.576-2.048-10.24-1.024-20.992 4.096-29.696v-0.512c7.68-11.776 20.992-18.432 34.304-18.432 5.12 0 9.728 1.024 14.848 3.072l190.464 102.912c20.992 12.8 48.128 12.8 68.608 0l192.512-102.912c17.92-10.24 40.96-4.608 53.248 12.8l0.512 0.512c10.24 17.92 5.12 40.96-12.8 53.76l-1.536 1.024h-0.512l-0.512 0.512c-0.512 1.024-1.536 1.536-2.56 1.536z m195.584 344.064c-2.048 82.944-69.632 150.528-150.528 150.528H208.896c-82.944 0-150.528-67.584-150.528-150.528V426.496c0-46.592 21.504-91.136 57.856-118.272l306.688-209.408c26.624-20.992 59.392-31.232 92.16-31.232s66.048 10.752 92.672 31.744L911.36 306.176c36.352 27.136 58.368 71.68 58.368 118.272v359.936z m-77.312-357.888c0-22.528-10.24-43.52-27.136-56.32l-306.688-209.408c-13.312-11.264-28.16-16.896-43.52-16.896s-30.208 5.632-46.08 16.896L162.304 368.128c-16.896 15.36-27.136 36.352-27.136 58.368v357.888c0 39.424 33.28 73.216 73.216 73.216H819.2c39.424 0 73.216-33.28 73.216-73.216V426.496z" ></path></symbol><symbol id="icon-weiduyoujian" viewBox="0 0 1024 1024"><path d="M77.312 191.488h889.344v667.136H77.312z" fill="#C1E7F4" ></path><path d="M77.312 858.624h889.344l-230.4-288.256-66.048 68.096-296.448-5.12-59.392-71.168-237.056 296.448z" fill="#84CFF4" ></path><path d="M966.656 170.496H77.312c-11.776 0-21.504 9.728-21.504 21.504v669.696c0 1.024 0.512 1.536 0.512 2.56 0 0.512 0.512 1.024 0.512 1.536 0.512 1.024 0.512 1.536 1.024 2.56 0 0.512 0.512 1.024 0.512 1.536 0.512 0.512 1.024 1.536 1.536 2.048 0.512 0.512 0.512 1.024 1.024 1.024 0.512 0.512 1.024 1.536 1.536 1.536l1.024 1.024 0.512 0.512c0.512 0.512 1.024 0.512 1.536 1.024 0.512 0.512 1.024 0.512 1.536 1.024 0.512 0.512 1.024 0.512 1.536 0.512 0.512 0 1.536 0.512 2.56 0.512 0.512 0 1.024 0 1.536 0.512 1.536 0.512 2.56 0.512 4.096 0.512h889.344c11.776 0 21.504-9.728 21.504-21.504V191.488c0.512-11.776-9.216-20.992-20.992-20.992z m-21.504 156.16v471.04l-188.416-235.52 188.416-235.52zM314.368 596.48l42.496 53.248 0.512 1.024 14.848 7.168h299.008l14.848-7.168 43.52-54.272 192.512 241.152H121.856l192.512-241.152z m69.632 18.432L98.816 258.56v-45.056h846.336v45.056l-285.184 356.352H384z m-96.768-52.736l-188.416 235.52v-471.04l188.416 235.52z" fill="#078BED" ></path></symbol><symbol id="icon-yiduyoujian" viewBox="0 0 1024 1024"><path d="M72.704 360.448l300.032-226.304h294.4l294.4 226.304v514.56H72.704V360.448z" fill="#F2F2F2" ></path><path d="M72.704 875.008h889.344L665.6 504.32H369.152l-296.448 370.688z" fill="#DBDBDB" ></path><path d="M975.872 344.064l-295.424-226.816-0.512-0.512-11.264-4.096h-296.96l-11.264 3.584L59.904 343.04l-1.024 0.512-7.68 15.36V878.08c0 1.024 0.512 1.536 0.512 2.56 0 0.512 0.512 1.024 0.512 1.536 0.512 1.024 0.512 1.536 1.024 2.56 0 0.512 0.512 1.024 0.512 1.536 0.512 0.512 1.024 1.536 1.536 2.048 0.512 0.512 0.512 1.024 1.024 1.024 0.512 0.512 1.024 1.536 1.536 1.536l1.024 0.512 0.512 0.512c0.512 0.512 1.024 0.512 1.536 1.024 0.512 0.512 1.024 0.512 1.536 1.024 0.512 0.512 1.024 0.512 1.536 0.512 0.512 0.512 1.536 0.512 2.56 0.512 0.512 0 1.024 0 1.536 0.512 1.536 0.512 2.56 0.512 4.096 0.512H962.048c11.776-0.512 20.992-9.728 20.992-21.504V358.912l-7.168-14.848z m-35.328 64V814.08l-180.736-225.792 180.736-180.224z m-561.152 117.76H655.36l262.144 327.68H116.736l262.656-327.68z m280.576-370.688l267.264 205.312-194.048 194.048-51.712-64.512-14.848-7.168H367.616l-14.848 7.168-51.712 64.512-194.048-193.536 272.384-205.312h280.576z m-385.536 433.152L93.696 814.08V407.552l180.736 180.736z" fill="#ADADAD" ></path></symbol><symbol id="icon-yaoqingchengyuan" viewBox="0 0 1024 1024"><path d="M403.456 465.92c115.2 0 207.36-92.16 207.36-207.36S518.656 51.2 403.456 51.2 196.096 143.36 196.096 258.56 288.256 465.92 403.456 465.92z m0-322.56c64.512 0 115.2 50.688 115.2 115.2S467.968 373.76 403.456 373.76s-115.2-50.688-115.2-115.2S338.944 143.36 403.456 143.36z m529.92 576h-92.16v-92.16c0-27.648-18.432-46.08-46.08-46.08s-46.08 18.432-46.08 46.08v92.16h-92.16c-27.648 0-46.08 18.432-46.08 46.08s18.432 46.08 46.08 46.08h92.16v92.16c0 27.648 18.432 46.08 46.08 46.08s46.08-18.432 46.08-46.08v-92.16h92.16c27.648 0 46.08-18.432 46.08-46.08s-18.432-46.08-46.08-46.08zM587.776 880.64H150.016c0-82.944 0-129.024 13.824-156.672 13.824-27.648 32.256-46.08 59.904-59.904C256 650.24 302.08 650.24 398.848 650.24h188.928c27.648 0 46.08-18.432 46.08-46.08s-18.432-46.08-46.08-46.08H398.848c-110.592 0-165.888 0-216.576 23.04-41.472 23.04-78.336 59.904-101.376 101.376-23.04 50.688-23.04 105.984-23.04 216.576V972.8h529.92c27.648 0 46.08-18.432 46.08-46.08s-18.432-46.08-46.08-46.08z" ></path></symbol><symbol id="icon-baocunmian" viewBox="0 0 1024 1024"><path d="M888.832 285.184L751.616 148.48v335.872H297.472V148.48h-48.128C191.488 148.48 153.6 182.272 153.6 244.224v576c0 62.464 37.888 95.744 95.744 95.744h550.4c57.856 0 95.744-33.792 95.744-95.744V302.08c0-6.144-2.56-12.288-6.656-16.896zM438.784 148.48h142.848c0.512 0 0.512 0.512 0.512 0.512v238.592c0 0.512-0.512 0.512-0.512 0.512H438.784c-0.512 0-0.512-0.512-0.512-0.512V148.992c-0.512-0.512 0-0.512 0.512-0.512z" ></path></symbol><symbol id="icon-qiyeguanli" viewBox="0 0 1024 1024"><path d="M872.448 319.03288889c46.08 0 83.456 37.376 83.456 83.456v94.208h-90.112V409.14488889h-156.16v37.376H619.52v-281.6H174.592v689.152h300.032v90.112H83.968V158.26488889c0-46.08 37.376-83.456 83.456-83.456h458.752c46.08 0 83.456 37.376 83.456 83.456v160.256h162.816zM451.584 251.44888889h-102.4v102.4h102.4v-102.4z m0 198.656h-102.4v102.4h102.4v-102.4z m502.784 301.568l-111.616-193.536H619.52l-111.616 193.536L619.52 945.20888889h223.232l111.616-193.536z m-342.016 0l59.392-102.912h118.784l59.392 102.912-59.392 102.912h-118.784l-59.392-102.912z" ></path></symbol><symbol id="icon-qiyexinxi" viewBox="0 0 1024 1024"><path d="M427.52 623.6647619c0 25.6-17.92 43.52-43.008 43.52H324.608c-25.088 0-43.008-17.92-43.008-43.008s17.92-43.008 43.008-43.008H384c25.088 0 42.496 17.408 43.52 42.496z m-43.008-286.72H324.608c-25.088 0-43.008 17.92-43.008 43.008s17.92 43.008 43.008 43.008H384c25.088 0 43.008-17.92 43.008-43.52-0.512-24.576-17.92-42.496-42.496-42.496z m594.944 556.032c0 25.088-17.92 43.008-43.008 43.008H80.384c-25.088 0-43.008-17.92-43.008-43.008s17.92-43.008 43.008-43.008h43.008V234.0327619c0-44.544 31.232-83.968 73.728-93.696l261.632-65.024c30.72-9.728 64-4.608 89.088 13.312 19.456 13.312 31.744 37.376 31.744 62.976v139.776l243.2 62.976c40.96 10.24 70.656 47.104 70.656 88.064v404.992h42.496c25.088 0.512 43.52 19.968 43.52 45.568z m-398.848-45.056h227.84V443.9527619c-1.024-2.56-4.608-6.656-6.656-7.68l-221.184-57.856v469.504zM480.768 154.6727619L218.624 222.7687619c-5.632 1.536-9.216 7.168-9.216 11.776v613.376h285.184V154.1607619c-3.072-0.512-7.68-0.512-13.824 0.512z m235.008 426.496h-41.472c-25.088 0-43.008 17.92-43.008 43.008s17.92 43.008 43.008 43.008h41.472c25.088 0 43.008-17.92 43.008-43.52-1.024-25.088-18.432-42.496-43.008-42.496z" ></path></symbol><symbol id="icon-quanxianpeizhi" viewBox="0 0 1024 1024"><path d="M947.2 788.53688889l-104.448-180.736h-208.896l-104.448 180.736 104.448 180.736h208.896l104.448-180.736z m-319.488 0l55.808-96.256h111.104l55.808 96.256-55.808 96.256h-111.104l-55.808-96.256z m-27.136-225.28c4.096 1.536 7.68 3.584 11.776 5.12h152.576c-24.064-21.504-50.176-40.448-78.848-56.32-14.848-8.192-30.72-15.872-46.592-22.016 15.36-12.288 29.184-26.112 40.96-40.96 84.48-107.52 66.048-263.168-40.96-347.648-107.52-84.48-263.168-66.048-347.648 40.96C206.848 249.40088889 225.28 405.04888889 332.8 489.52888889c-152.064 60.928-259.584 209.408-259.584 383.488 0 23.04 18.432 41.472 41.472 41.472s41.472-18.432 41.472-41.472c0-40.448 7.68-80.896 22.016-118.784 65.024-168.448 252.928-253.44 422.4-190.976zM321.024 295.48088889c0-91.136 73.728-164.864 164.864-164.864 91.136 0 164.864 73.728 164.864 164.864 0 91.136-73.728 164.864-164.864 164.864-90.624 0-164.864-73.728-164.864-164.864z" ></path></symbol><symbol id="icon-quanbu" viewBox="0 0 1024 1024"><path d="M97.792 269.312h170.496V98.816H97.792v170.496z m327.68 655.36h170.496v-170.496H425.472v170.496z m-327.68 0h170.496v-170.496H97.792v170.496z m0-327.68h170.496V426.496H97.792v170.496z m327.68 0h170.496V426.496H425.472v170.496z m327.68-498.176v170.496h170.496V98.816h-170.496z m-327.68 170.496h170.496V98.816H425.472v170.496z m327.68 327.68h170.496V426.496h-170.496v170.496z m0 327.68h170.496v-170.496h-170.496v170.496z" ></path></symbol><symbol id="icon-zuzhijiagou" viewBox="0 0 1024 1024"><path d="M634.88 922.112h326.656c9.728 0 17.92-8.192 17.92-17.92v-199.68c0-9.728-8.192-17.92-17.92-17.92h-122.368v-235.52h-280.064V325.12h122.368c9.728 0 17.92-8.192 17.92-17.92V107.52c0-9.728-8.192-17.92-17.92-17.92H354.816c-9.728 0-17.92 8.192-17.92 17.92v199.68c0 9.728 8.192 17.92 17.92 17.92h122.368v126.976H197.12v235.52H75.264c-9.728 0-17.92 8.192-17.92 17.92v199.68c0 9.728 8.192 17.92 17.92 17.92h326.656c9.728 0 17.92-8.192 17.92-17.92v-199.68c0-9.728-8.192-17.92-17.92-17.92H279.552v-153.6h477.696v153.6H634.88c-9.728 0-17.92 8.192-17.92 17.92v199.68c0 9.216 8.192 16.896 17.92 16.896z" ></path></symbol><symbol id="icon-wendang" viewBox="0 0 1024 1024"><path d="M239.616 62.976c-50.688 0-92.16 41.472-92.16 92.16v737.28c0 50.688 41.472 92.16 92.16 92.16h598.016c50.688 0 92.16-41.472 92.16-92.16v-552.96l-286.208-276.48H239.616m0 92.16h357.888v230.4h240.128v506.88H239.616v-737.28m112.128 368.64v92.16h383.488v-92.16H351.744m0 184.32v92.16h245.248v-92.16H351.744z" ></path></symbol><symbol id="icon-tongji" viewBox="0 0 1024 1024"><path d="M939.52 900.608H104.448c-24.064 0-43.008-19.456-43.008-43.008v-691.2c0-24.064 19.456-43.008 43.008-43.008 24.064 0 43.008 19.456 43.008 43.008V814.592h792.064c24.064 0 43.008 19.456 43.008 43.008 0 24.064-19.456 43.008-43.008 43.008m-100.864-129.536h-86.528c-24.064 0-43.008-19.456-43.008-43.008V425.472c0-24.064 19.456-43.008 43.008-43.008h86.528c24.064 0 43.008 19.456 43.008 43.008v302.592c0 23.552-18.944 43.008-43.008 43.008m-244.736 0H507.392c-24.064 0-43.008-19.456-43.008-43.008V252.928c0-24.064 19.456-43.008 43.008-43.008H593.92c24.064 0 43.008 19.456 43.008 43.008v475.136c0 23.552-18.944 43.008-43.008 43.008m-244.736 0H262.656c-24.064 0-43.008-19.456-43.008-43.008v-86.528c0-24.064 19.456-43.008 43.008-43.008h86.528c24.064 0 43.008 19.456 43.008 43.008v86.528c0 23.552-19.456 43.008-43.008 43.008" ></path></symbol><symbol id="icon-anquan" viewBox="0 0 1024 1024"><path d="M884.224 162.304v454.144c0 27.136-6.656 54.272-19.456 81.408-12.8 27.136-29.696 53.248-50.688 78.336-20.992 25.088-45.056 49.152-71.68 71.68-27.136 22.528-54.272 43.008-81.92 60.416-27.648 17.92-54.272 32.256-80.384 44.032s-49.152 19.968-68.608 24.064l-9.216 1.536-8.704-1.536c-19.968-4.608-43.52-12.288-70.144-24.064-26.624-11.776-54.272-26.624-82.944-44.032-28.672-17.408-56.832-37.888-84.48-60.416s-52.224-46.592-73.728-71.68c-21.504-25.088-39.424-51.2-52.736-78.336-13.312-27.136-19.968-53.76-19.968-81.408V162.304l31.744-5.12L497.664 87.04l363.52 70.144 23.04 5.12z m-386.56-9.728l-4.096-1.024-306.176 55.296v286.208h310.272V152.576z m308.224 340.48H497.664v407.552c19.968-4.608 41.472-12.288 64.512-22.016s46.08-21.504 69.12-34.816c22.528-13.312 44.544-28.672 65.536-45.056 20.992-16.384 39.424-34.304 55.808-53.248s29.184-38.4 38.912-58.88c9.728-20.48 14.336-40.96 14.336-61.952V493.056z" ></path></symbol><symbol id="icon-jicheng" viewBox="0 0 1024 1024"><path d="M620.032 99.84L689.152 220.16c6.656 11.776 6.656 26.624 0 38.4L620.032 378.88c-6.656 11.776-19.456 19.456-33.28 19.456H448c-13.824 0-26.624-7.168-33.28-19.456L345.088 258.048c-6.656-11.776-6.656-26.624 0-38.4L414.72 99.84c6.656-11.776 19.456-19.456 33.28-19.456h138.752c13.824 0 26.112 7.168 33.28 19.456z m-346.624 508.416H134.656c-13.824 0-26.624 7.168-33.28 19.456L31.744 747.52c-6.656 11.776-6.656 26.624 0 38.4L101.376 906.24c6.656 11.776 19.456 19.456 33.28 19.456h138.752c13.824 0 26.624-7.168 33.28-19.456l69.12-120.32c6.656-11.776 6.656-26.624 0-38.4l-69.12-120.32c-6.656-11.776-19.456-18.944-33.28-18.944z m537.088-47.616c32.768 0 56.832-31.232 48.64-62.464-15.872-60.416-47.616-114.176-90.112-157.184-23.04-23.04-61.952-17.92-78.336 10.752-11.264 19.456-8.192 44.032 7.68 59.904 30.208 30.72 52.736 69.12 64.512 112.128 5.12 21.504 25.088 36.864 47.616 36.864z m-531.968-37.376c10.752-40.96 32.256-78.336 60.416-108.032 15.36-16.384 18.432-40.448 7.68-59.904-16.896-29.184-56.832-33.28-79.872-9.216-39.936 42.496-69.632 94.208-84.992 152.064-8.192 31.744 15.872 62.464 48.64 62.464 22.528 0 42.496-15.36 48.128-37.376z m356.864 330.752c-11.264-19.456-34.304-28.672-55.808-23.552-18.944 4.608-38.4 7.168-58.88 7.168-24.064 0-47.616-3.584-70.144-10.24-22.016-6.656-45.568 3.072-56.832 23.04-16.384 28.16-2.048 64 29.184 73.216 31.232 9.216 64 13.824 97.792 13.824 28.672 0 56.32-3.584 82.944-10.24 32.256-7.168 48.128-44.032 31.744-73.216z m256.512-245.76h-138.752c-13.824 0-26.624 7.168-33.28 19.456L650.752 747.52c-6.656 11.776-6.656 26.624 0 38.4l69.12 120.32c6.656 11.776 19.456 19.456 33.28 19.456h138.752c13.824 0 26.624-7.168 33.28-19.456l69.12-120.32c6.656-11.776 6.656-26.624 0-38.4l-69.12-120.32c-6.656-11.776-19.456-18.944-33.28-18.944z" ></path></symbol><symbol id="icon-xiangmuguanli" viewBox="0 0 1024 1024"><path d="M423.936 540.032H154.624c-37.376 0-67.584 30.208-67.584 67.584v269.312c0 37.376 30.208 67.584 67.584 67.584h269.312c37.376 0 67.584-30.208 67.584-67.584v-269.312c-0.512-37.888-30.72-67.584-67.584-67.584z m-8.704 289.28c0 21.504-17.408 38.912-38.912 38.912H201.728c-21.504 0-38.912-17.408-38.912-38.912v-175.104c0-21.504 17.408-38.912 38.912-38.912h175.104c21.504 0 38.912 17.408 38.912 38.912v175.104z m474.624-289.28h-269.312c-37.376 0-67.584 30.208-67.584 67.584v269.312c0 37.376 30.208 67.584 67.584 67.584h269.312c37.376 0 67.584-30.208 67.584-67.584v-269.312c0-37.888-30.208-67.584-67.584-67.584z m-8.192 289.28c0 21.504-17.408 38.912-38.912 38.912h-175.104c-21.504 0-38.912-17.408-38.912-38.912v-175.104c0-21.504 17.408-38.912 38.912-38.912h175.104c21.504 0 38.912 17.408 38.912 38.912v175.104zM423.936 73.6H154.624c-37.376 0-67.584 30.208-67.584 67.584v269.312c0 37.376 30.208 67.584 67.584 67.584h269.312c37.376 0 67.584-30.208 67.584-67.584V140.672c-0.512-36.864-30.72-67.072-67.584-67.072zM415.232 362.88c0 21.504-17.408 38.912-38.912 38.912H201.728c-21.504 0-38.912-17.408-38.912-38.912V188.288c0-21.504 17.408-38.912 38.912-38.912h175.104c21.504 0 38.912 17.408 38.912 38.912V362.88z m284.16 91.648c30.72 30.72 80.896 30.72 111.616 0l122.88-122.88c30.72-30.72 30.72-80.896 0-111.616l-122.88-122.88c-30.72-30.72-80.896-30.72-111.616 0l-122.88 122.88c-30.72 30.72-30.72 80.896 0 111.616l122.88 122.88z" ></path></symbol><symbol id="icon-dangqianxiangmu" viewBox="0 0 1024 1024"><path d="M108.032 902.144h819.2v-201.728h-819.2v201.728z m408.576-154.112h363.52v107.52h-363.52v-107.52zM108.032 139.264v201.728h819.2V139.264h-819.2z m772.096 154.624h-362.496v-107.52h362.496v107.52z m-772.096 327.68h819.2V420.352h-819.2v201.216z m408.576-154.112h363.52v107.52h-363.52v-107.52z" ></path></symbol><symbol id="icon-xietong" viewBox="0 0 1024 1024"><path d="M413.46880853 136.6706353a97.77647565 97.77647565 0 1 0 195.55295131 0 97.77647565 97.77647565 0 1 0-195.55295131 0zM66.88596069 738.1674869a97.77647565 97.77647565 0 1 0 195.55295131 0 97.77647565 97.77647565 0 1 0-195.55295131 0z" ></path><path d="M711.91166167 738.1674869a147.22783763 147.22783763 0 0 1 243.0430878-111.99050589 454.28195935 454.28195935 0 0 0 9.88250516-93.90839529c0-200.24306347-130.11274715-369.81851529-310.28528924-429.58993635a147.41295661 147.41295661 0 1 1-286.77259062 0.60972752c-179.29872877 60.27370192-308.6567601 229.37276365-308.6567601 428.98020883a454.28195935 454.28195935 0 0 0 9.88250517 93.90839529 147.2809137 147.2809137 0 1 1 148.32819517 249.50801194 451.45986592 451.45986592 0 0 0 589.32171914 0 147.53205413 147.53205413 0 0 1-94.74337248-137.5188006z m-79.27105106 38.03223987c0.76895573 4.29139437 2.17352976 8.34588823 3.16644061 12.55702123a281.5801976 281.5801976 0 0 1-246.2496591 0.66280361c1.00715077-4.19948215 2.42467019-8.2397361 3.20527677-12.53113047a230.92232596 230.92232596 0 0 0 3.97423248-41.34366879c0-101.28726345-65.5463563-187.3533459-156.3154963-218.577609-4.10627539-1.40327949-8.30575755-2.56965847-12.5052397-3.76192822a284.94470258 284.94470258 0 0 1 122.04518464-215.33090702c3.03439771 2.99426702 5.78917515 6.27851061 8.99574644 9.11354944a229.87633904 229.87633904 0 0 0 306.00684026 0c3.19233138-2.83503882 5.94840336-6.10633703 8.99445191-9.11354944a284.93046267 284.93046267 0 0 1 122.25619437 215.79435172c-4.19818762 1.21945505-8.41061515 2.4117248-12.5052397 3.84218959-90.07915109 31.64757712-154.87079158 117.30329093-154.87079159 218.01966302a230.98964195 230.98964195 0 0 0 3.80205891 40.66921433z" ></path><path d="M761.561088 738.1674869a97.77647565 97.77647565 0 1 0 195.55295131 0 97.77647565 97.77647565 0 1 0-195.55295131 0z" ></path></symbol><symbol id="icon-gensuishijiao" viewBox="0 0 1024 1024"><path d="M572.416 963.584h-0.512c-27.648-0.512-51.712-17.408-61.44-43.52l-73.728-201.216c-22.528-61.952-71.168-110.08-133.12-133.12L102.4 512c-26.112-9.728-43.008-33.28-43.52-61.44 0-27.136 16.384-51.2 42.496-61.44l744.448-291.84c22.528-8.704 48.64-3.584 66.048 13.824 17.408 17.408 22.528 43.008 13.824 66.048l-291.84 744.448c-10.24 25.088-34.304 41.984-61.44 41.984z" ></path></symbol><symbol id="icon-duorenguangbiao" viewBox="0 0 1024 1024"><path d="M235.52 930.304L120.832 219.648c-3.584-21.504 6.144-43.52 24.576-55.296s41.984-11.776 60.416 0.512l599.04 399.36c20.992 13.824 30.72 38.4 25.088 62.976-5.632 24.576-25.088 41.984-49.664 45.568l-190.976 26.112c-58.88 8.192-110.592 41.472-142.336 91.648l-103.424 162.816c-13.312 20.992-37.888 31.232-61.952 26.624h-0.512c-24.064-6.144-41.984-25.088-45.568-49.664zM939.52 403.968c22.528-33.792 13.312-79.36-20.48-101.888l-346.624-230.912c-33.792-22.528-79.36-13.312-101.888 20.48-22.528 33.792-13.312 79.36 20.48 101.888l346.624 230.912c33.792 22.528 79.36 13.312 101.888-20.48z" ></path></symbol><symbol id="icon-zaizhuomianzhongdakai" viewBox="0 0 1024 1024"><path d="M947.712 112.64H84.48c-9.728 0-17.92 8.192-17.92 17.92v575.488c0 9.728 8.192 17.92 17.92 17.92h413.696V885.76H291.328c-15.36 0-27.136 12.288-27.136 27.136s12.288 27.136 27.136 27.136h449.536c15.36 0 27.136-12.288 27.136-27.136s-12.288-27.136-27.136-27.136h-206.848v-161.792h413.696c9.728 0 17.92-8.192 17.92-17.92V130.56c0-9.728-8.192-17.92-17.92-17.92z m-93.696 495.616h-675.84c-20.48 0-37.376-16.896-37.376-37.376s16.896-37.376 37.376-37.376h675.84c20.48 0 37.376 16.896 37.376 37.376s-16.896 37.376-37.376 37.376z" ></path></symbol><symbol id="icon-qingchu" viewBox="0 0 1024 1024"><path d="M108.544 936.96h809.984c1.536 0 2.56 0 3.584-0.512 6.144-1.024 11.776-4.608 15.36-9.216 3.584-5.12 5.12-11.264 3.584-16.896L880.64 561.152h27.136c12.8 0 23.04-10.24 23.04-23.04V322.56c0-12.8-10.24-23.04-23.04-23.04h-281.6v-209.92c0-12.8-10.24-23.04-23.04-23.04h-179.2c-12.8 0-23.04 10.24-23.04 23.04v209.92h-281.6c-12.8 0-23.04 10.24-23.04 23.04v215.04c0 12.8 10.24 23.04 23.04 23.04h27.136l-60.416 349.184c0 1.024-0.512 2.56-0.512 4.096 0 12.8 10.24 23.04 23.04 23.04zM162.304 365.568h304.64V132.608h92.672v232.96h304.64v128.512H162.304V365.568z m50.176 201.728H814.08l52.736 303.616h-180.224v-180.736c0-1.536-1.536-3.072-3.072-3.072H629.76c-1.536 0-3.072 1.536-3.072 3.072v180.736H399.872v-180.736c0-1.536-1.536-3.072-3.072-3.072H343.04c-1.536 0-3.072 1.536-3.072 3.072v180.736H159.744l52.736-303.616z" ></path></symbol><symbol id="icon-yinxian" viewBox="0 0 1024 1024"><path d="M580.096 67.072V240.64H343.552l-210.944 480.256-76.288-35.328v257.536L265.216 788.48l-80.384-39.424 189.952-451.072h205.312v166.912H977.92V67.072z" fill="#DDDDDD" ></path></symbol><symbol id="icon-duohangwenzi" viewBox="0 0 1024 1024"><path d="M361.472 93.184H256.512L53.76 616.96h103.936L207.872 481.28h202.752l49.664 131.584h103.936L361.472 93.184zM301.056 220.16c2.048-6.656 4.608-13.824 6.656-21.504 1.536 3.072 3.072 7.168 4.608 11.264 0.512 4.608 3.072 8.704 5.12 11.264 1.536 4.096 4.608 12.8 12.288 33.28 11.264 29.696 30.208 77.824 54.784 145.92H233.984c19.968-50.176 61.952-157.696 67.072-180.224z" fill="#DDDDDD" ></path><path d="M614.4 293.888h360.96v63.488H614.4V293.888zM53.76 685.568h921.6v73.728h-921.6v-73.728zM614.4 484.352h360.96V547.84H614.4V484.352zM53.76 866.304h921.6v68.608h-921.6v-68.608z" fill="#73C5FF" ></path></symbol><symbol id="icon-danhangwenzi" viewBox="0 0 1024 1024"><path d="M579.072 86.016H438.784l-277.504 716.8h136.704l68.608-187.904h285.184l68.608 181.248h136.704L579.072 86.016z m-72.704 133.12c0.512 1.024 1.024 2.56 1.536 3.584 2.56 5.632 5.12 12.8 8.704 20.992 1.024 6.656 4.608 11.776 7.168 15.36 1.536 5.632 5.632 16.896 17.408 46.592 15.872 41.472 42.496 109.568 77.312 206.336H399.872c23.552-61.44 88.064-226.304 94.208-254.976 4.096-11.776 8.192-24.064 12.288-37.888z" fill="#DDDDDD" ></path><path d="M53.76 867.84h921.6v66.048h-921.6v-66.048z" fill="#73C5FF" ></path></symbol><symbol id="icon-dingweixiangmu" viewBox="0 0 1024 1024"><path d="M918.3488 338.23146667c-21.9648-52.416-54.912-98.8416-93.3504-139.776-41.4336-41.4336-87.8592-71.3856-140.2752-93.3504-54.912-21.9648-112.32-35.9424-170.2272-35.9424s-118.3104 10.9824-170.2272 35.4432c-52.416 21.9648-98.8416 54.912-140.2752 93.3504S130.6112 286.31466667 108.6464 338.23146667C86.6816 393.14346667 72.704 450.55146667 72.704 508.45866667s10.9824 117.8112 35.4432 170.2272c21.9648 51.9168 54.912 98.8416 93.3504 140.2752 41.4336 41.4336 87.8592 71.3856 139.776 93.3504 54.912 21.9648 112.8192 35.4432 170.2272 35.4432s118.3104-10.9824 170.2272-35.4432c51.9168-21.9648 98.8416-54.912 139.776-93.3504 41.4336-41.4336 71.3856-87.8592 93.3504-140.2752 21.9648-54.912 35.4432-112.8192 35.4432-170.2272s-9.984-118.3104-31.9488-170.2272z m-364.9152 524.16v-131.7888H471.0656v131.7888c-162.24-16.4736-294.0288-148.2624-312.9984-312.9984h131.7888V467.52426667H158.0672c19.4688-164.736 151.2576-296.5248 315.9936-315.9936v131.7888h82.368V151.53066667c164.736 18.9696 296.5248 148.2624 315.4944 312.9984h-131.7888v82.368h131.7888c-21.9648 167.7312-153.7536 299.0208-318.4896 315.4944zM396.6848 508.45866667c0 62.8992 51.9168 115.3152 115.3152 115.3152s115.3152-51.9168 115.3152-115.3152-51.9168-115.3152-115.3152-115.3152S396.6848 445.06026667 396.6848 508.45866667z" ></path></symbol><symbol id="icon-yichu" viewBox="0 0 1024 1024"><path d="M717.824 483.84v56.32c0 8.704-7.168 15.36-15.36 15.36h-394.24c-8.704 0-15.36-6.656-15.36-15.36v-56.32c0-8.704 6.656-15.36 15.36-15.36h394.24c8.704 0 15.36 6.656 15.36 15.36z m225.28 28.16c0 241.152-196.608 437.76-437.76 437.76S67.584 753.152 67.584 512s196.608-437.76 437.76-437.76 437.76 196.608 437.76 437.76z m-87.04 0c0-193.536-157.184-350.72-350.72-350.72S154.624 318.464 154.624 512s157.184 350.72 350.72 350.72 350.72-157.184 350.72-350.72z" ></path></symbol><symbol id="icon-quanbuxiangmu" viewBox="0 0 1024 1024"><path d="M176.64 110.08h185.344c65.024 0 97.792 32.768 97.792 97.792v185.344c0 65.024-32.768 97.792-97.792 97.792H176.64c-65.024 0-97.792-32.768-97.792-97.792V207.36c0-65.024 32.768-97.28 97.792-97.28z m0 451.584h185.344c65.024 0 97.792 32.768 97.792 97.792V844.8c0 65.024-32.768 97.792-97.792 97.792H176.64c-65.024 0-97.792-32.768-97.792-97.792v-185.344c0-65.024 32.768-97.792 97.792-97.792z m450.56 0h185.344c65.024 0 97.792 32.768 97.792 97.792V844.8c0 65.024-32.768 97.792-97.792 97.792h-185.344c-65.024 0-97.792-32.768-97.792-97.792v-185.344c0-65.024 32.768-97.792 97.792-97.792z m23.04-61.44l-131.072-131.072c-37.888-38.4-37.888-99.84 0-138.24L650.24 100.352c37.888-37.888 99.84-37.888 138.24 0l131.072 131.072c37.888 38.4 37.888 99.84 0 138.24L788.48 500.224c-37.888 37.888-99.84 37.888-138.24 0z m92.16-353.792c-12.8-12.8-33.28-12.8-46.08 0l-131.072 131.072c-12.8 12.8-12.8 33.28 0 46.08L696.32 454.144c12.8 12.8 33.28 12.8 46.08 0l131.072-131.072c12.8-12.8 12.8-33.28 0-46.08L742.4 146.432z" ></path></symbol><symbol id="icon-canyuxiangmu" viewBox="0 0 1024 1024"><path d="M525.312 295.424c0 117.76 95.744 213.504 213.504 213.504S952.32 413.184 952.32 295.424 856.576 81.92 738.816 81.92s-213.504 95.744-213.504 213.504zM401.408 99.84H153.088c-39.424 0-71.168 31.744-71.168 71.168V419.84c0 39.424 31.744 71.168 71.168 71.168h248.832c39.424 0 71.168-31.744 71.168-71.168V171.008c-0.512-39.424-32.256-71.168-71.68-71.168zM153.088 171.008h248.832V419.84H153.088V171.008z m248.32 390.656H153.088c-39.424 0-71.168 31.744-71.168 71.168v248.832c0 39.424 31.744 71.168 71.168 71.168h248.832c39.424 0 71.168-31.744 71.168-71.168v-248.832c-0.512-39.424-32.256-71.168-71.68-71.168z m-248.32 71.168h248.832v248.832H153.088v-248.832z m710.144-71.168H614.4c-39.424 0-71.168 31.744-71.168 71.168v248.832c0 39.424 31.744 71.168 71.168 71.168h248.832c39.424 0 71.168-31.744 71.168-71.168v-248.832c0-39.424-32.256-71.168-71.168-71.168zM614.4 632.832h248.832v248.832H614.4v-248.832z" ></path></symbol><symbol id="icon-wogongxiangde" viewBox="0 0 1024 1024"><path d="M919.04 203.264H487.424L400.896 115.712H112.64c-31.744 0-57.344 26.112-57.344 58.368v699.904c0 32.256 25.6 58.368 57.344 58.368h806.4c31.744 0 57.344-26.112 57.344-58.368V261.632c0.512-32.256-25.6-58.368-57.344-58.368z m-185.344 596.48c-45.056 0-81.92-36.352-81.92-81.408 0-8.192 1.024-15.872 3.584-23.04l-163.328-49.664c-16.896 34.816-53.248 58.88-94.72 58.88-58.368 0-105.472-46.592-105.472-104.448 0-57.856 47.104-104.448 105.472-104.448 31.744 0 60.416 14.336 79.872 36.352l111.616-50.176c-7.168-10.752-11.264-24.064-11.264-37.888 0-38.4 31.232-69.632 70.144-69.632s70.144 31.232 70.144 69.632-31.232 69.632-70.144 69.632c-16.384 0-31.232-5.632-43.008-14.336l-114.176 52.224c7.68 14.848 12.288 31.232 12.288 49.152 0 8.192-1.024 15.872-2.56 23.552l165.376 50.688c14.848-22.016 39.936-36.864 68.608-36.864 45.056 0 81.92 36.352 81.92 81.408-0.512 44.032-36.864 80.384-82.432 80.384z" ></path></symbol><symbol id="icon-yuwogongxiang" viewBox="0 0 1024 1024"><path d="M891.904 221.696H445.44c-23.04 0-44.032-8.192-58.88-25.088l-35.84-35.84c-14.848-14.848-35.84-23.04-58.88-23.04H137.728c-46.08 0-83.968 37.888-83.968 83.968V849.92c0 46.08 37.888 83.968 83.968 83.968h754.176c46.08 0 83.968-37.888 83.968-83.968V305.664c-0.512-46.08-37.888-83.968-83.968-83.968z m0 628.736H137.728V221.696h155.136l35.84 35.84c31.232 31.232 73.216 48.128 119.296 48.128h443.904v544.768zM427.008 502.784c0 40.96-33.28 73.728-73.728 73.728s-73.728-33.28-73.728-73.728S312.32 429.056 352.768 429.056s74.24 32.768 74.24 73.728z m-74.24 95.744c-85.504 0-145.92 15.872-145.92 61.952s54.272 61.952 145.92 61.952c99.328 0 145.92-19.968 145.92-61.952-0.512-47.104-57.344-61.952-145.92-61.952zM762.88 503.296c0 40.96-33.28 73.728-73.728 73.728s-73.728-33.28-73.728-73.728 33.28-73.728 73.728-73.728S762.88 462.848 762.88 503.296z m-74.24 96.256c-85.504 0-145.92 15.872-145.92 61.952s54.272 61.952 145.92 61.952c99.328 0 145.92-19.968 145.92-61.952 0-47.104-57.344-61.952-145.92-61.952z" ></path></symbol><symbol id="icon-tishi" viewBox="0 0 1024 1024"><path d="M508.928 66.56c254.464 0.512 460.288 206.336 460.8 460.8-0.512 254.464-206.336 460.288-460.8 460.8-254.464-0.512-460.288-206.336-460.8-460.8 0-254.464 206.336-460.288 460.8-460.8z m0 837.632c207.872-0.512 376.832-168.96 376.832-376.832 0-207.872-168.96-376.832-376.832-376.832-207.872 0-376.832 168.96-376.832 376.832 0 207.872 168.448 376.832 376.832 376.832zM445.952 318.976c0-34.816 28.16-62.976 62.976-62.976 34.816 0 62.976 28.16 62.976 62.976s-28.16 62.976-62.976 62.976-62.976-28.16-62.976-62.976z m104.448 145.408v323.584H466.944V464.384h83.456z" ></path></symbol><symbol id="icon-xiala" viewBox="0 0 1024 1024"><path d="M508.416 625.32266668L140.288 257.19466668c-27.136-27.136-70.656-27.136-98.304 0S14.848 327.85066668 42.496 354.98666668l407.04 407.04c2.56 4.096 5.632 7.68 8.704 10.752 13.824 13.824 31.744 20.992 50.176 20.48 17.92 0 36.352-6.656 50.176-20.48 3.584-3.584 6.656-7.168 8.704-10.752L974.336 354.98666668c13.312-13.312 20.48-31.232 20.48-49.152s-7.168-35.84-20.48-49.152c-27.136-27.136-70.656-27.136-98.304 0l-367.616 368.64z" ></path></symbol><symbol id="icon-fanhui" viewBox="0 0 1024 1024"><path d="M398.67733332 508.416L766.80533332 140.288c27.136-27.136 27.136-70.656 0-98.304S696.14933332 14.848 669.01333332 42.496l-407.04 407.04c-4.09600001 2.56-7.68 5.632-10.752 8.704-13.824 13.824-20.992 31.744-20.48 50.176 0 17.92 6.65600001 36.352 20.48 50.176 3.584 3.584 7.168 6.656 10.752 8.704L669.01333332 974.336c13.312 13.312 31.232 20.48 49.152 20.48s35.84-7.168 49.152-20.48c27.136-27.136 27.136-70.656 0-98.30400001l-368.64-367.61599999z" ></path></symbol><symbol id="icon-PICjpeg" viewBox="0 0 1024 1024"><path d="M738.816 104.448l193.536 194.56v580.096c0 35.84-28.672 64.512-64.512 64.512H154.624c-35.84-1.024-64-30.208-62.976-66.048V169.472c0-35.84 28.672-65.536 64.512-65.536l582.656 0.512z" fill="#8D80A9" ></path><path d="M930.816 298.496h-127.488c-35.84 0-64.512-28.672-64.512-64.512V103.936l192 194.56z" fill="#B0A6CC" ></path><path d="M179.712 386.56c0-12.8 9.216-22.528 22.528-22.528 13.312 0 22.016 9.216 22.016 22.528 0 12.8-9.216 22.016-22.528 22.016-12.8 0-22.016-9.216-22.016-22.016z m41.472 58.368h-37.888V614.4c0 57.856-4.608 82.432-49.152 87.552l3.584 28.672c18.432-0.512 43.008-6.144 58.88-21.504 16.896-16.384 24.064-40.96 24.064-81.92V444.928z m237.056 96.768c0 72.704-41.984 105.472-83.456 105.472-22.528 0-41.984-10.24-52.224-26.624l-0.512-1.024H317.44v105.984h-37.888V508.416c0-24.576-0.512-45.056-1.536-62.976h32.768l2.048 30.72h4.608l0.512-1.024c13.824-22.528 35.328-34.304 62.464-34.304 46.08 0 77.824 41.472 77.824 100.864z m-38.4 1.536c0-44.032-20.992-73.216-52.736-73.216-27.648 0-49.664 25.088-49.664 56.32v37.376c0 35.84 24.576 54.784 48.64 54.784 33.28 0 53.76-28.672 53.76-75.264z m222.72 67.584l5.632 25.088c-16.384 7.168-38.4 11.264-61.44 11.264-57.856 0-94.208-38.4-94.208-100.352 0-63.488 35.84-105.984 89.088-105.984 57.344 0 77.312 49.152 77.312 95.232 0 5.632-0.512 10.752-1.024 15.36h-129.536v2.56c1.024 40.96 25.088 65.536 64 65.536 19.456 0 34.816-2.56 50.176-8.704z m-113.152-84.992h94.72v-2.56c0-8.704-1.024-31.232-15.36-45.568-7.68-7.68-17.92-11.776-29.696-11.776-30.208 0-46.592 28.672-49.152 56.832l-0.512 3.072z m241.664 203.776c-23.04 0-46.592-5.12-60.928-13.312l8.192-28.16c9.216 5.12 28.16 13.312 53.248 13.312 38.4 0 59.392-24.064 59.392-67.072v-22.016h-4.608l-0.512 1.024c-10.752 17.92-30.72 28.672-54.272 28.672-45.056 0-78.336-40.448-78.336-96.768 0-68.608 41.984-104.96 83.456-104.96 31.232 0 46.08 16.384 53.248 30.208l0.512 1.536h4.608l2.048-27.136h32.768c-1.024 15.872-1.536 33.28-1.536 55.808v115.712c0 34.304 0 113.152-97.28 113.152z m59.392-208.384c0-29.184-19.968-51.712-46.592-51.712-31.744 0-52.736 29.696-52.736 74.24 0 43.008 20.48 70.656 52.224 70.656 22.528 0 46.592-16.896 46.592-53.248v-39.936z" fill="#FFFFFF" ></path></symbol><symbol id="icon-kongwenjianlan" viewBox="0 0 1024 1024"><path d="M164.864 91.136c-29.184 0-52.736 23.552-52.736 52.736v764.416c0 29.184 23.552 52.736 52.736 52.736h693.248c29.184 0 52.736-23.552 52.736-52.736V505.856l-406.016-414.72H164.864z" fill="#C3D3F0" ></path><path d="M858.624 91.136h-353.28l406.016 414.72V143.872c-0.512-29.184-24.064-52.736-52.736-52.736z" fill="#E9EEF9" ></path><path d="M911.872 506.368h-367.616c-22.016 0-39.936-17.92-39.936-39.936V90.624l407.552 415.744z" fill="#95B1E8" ></path></symbol><symbol id="icon-lianjie" viewBox="0 0 1024 1024"><path d="M152.576 505.00266667l3.072-3.072c8.192-8.192 19.456-12.8 30.72-12.8 11.776 0 22.528 4.608 30.72 12.8 8.192 8.192 12.8 19.456 12.8 30.72s-4.608 22.528-12.8 31.232c-29.184 31.744-44.544 72.704-43.008 115.712 1.536 43.008 19.456 82.944 51.2 112.128 61.44 57.344 158.208 57.344 220.16 0l108.544-108.544c62.976-62.976 62.976-164.864 0.512-227.328-7.68-8.704-11.264-19.968-10.24-31.744 1.024-11.776 6.144-22.016 14.848-29.696 16.384-13.824 39.936-14.336 56.32-0.512 96.768 96.768 96.768 254.464 0 351.232L506.88 853.67466667C460.288 900.26666667 397.824 925.86666667 332.288 925.86666667h-1.024c-66.56 0-128.512-26.112-175.616-73.216-46.592-47.104-72.704-109.568-72.192-175.616-0.512-65.024 24.576-125.952 69.12-172.032z m648.192 34.816c11.776 0 22.528-4.608 30.72-12.8l36.352-36.352c93.184-96.768 93.184-248.32 0-345.088-47.104-48.64-110.592-75.776-178.688-75.776-64.512 0-125.952 24.576-172.544 69.632L408.576 248.49066667C352.768 304.29866667 324.608 363.17866667 324.608 424.10666667s28.16 119.808 83.968 175.616c8.192 8.192 19.456 12.8 30.72 12.8s22.016-4.608 30.208-12.288c8.192-8.192 12.8-18.944 12.8-30.72s-4.096-22.528-12.288-30.72c-39.424-38.912-58.368-76.288-58.88-113.664 0-37.376 18.944-74.752 58.88-114.176L578.56 202.41066667c62.976-61.44 161.792-61.44 224.768-0.512 64 61.952 65.536 164.352 3.584 228.352l-36.352 35.84c-8.192 8.192-12.8 18.944-12.8 30.72s4.608 22.528 12.8 30.72c7.68 7.68 18.432 12.288 30.208 12.288z" ></path></symbol><symbol id="icon-geshizhuanhuan" viewBox="0 0 1024 1024"><path d="M98.816 339.456c0-2.56 1.024-9.728 5.12-9.728h64v-7.68c0-134.144 109.056-243.712 243.712-243.712h17.408c8.704 0 13.824 5.12 13.824 13.824v56.32c0 8.704-5.12 13.824-13.824 13.824h-17.408c-86.528 0-159.232 72.704-159.232 159.232v7.68h53.76v0.512c1.024 1.536 2.56 3.584 4.608 6.144 0.512 0.512 1.024 1.536 1.024 3.072s-0.512 2.56-1.536 3.584L215.552 451.072c-5.12 5.12-14.336 5.12-18.944 0.512L100.864 342.528l-2.048-2.048v-1.024z m442.368-215.552c0-21.504 18.432-39.936 39.936-39.936h320.512c21.504 0 39.936 18.432 39.936 39.936v307.2c0 21.504-18.432 39.936-39.936 39.936h-320.512c-21.504 0-39.936-18.432-39.936-39.936v-307.2z m74.752 279.04h250.88v-250.88h-250.88v250.88z m246.784 279.552H926.72c4.608 0 5.12-1.024 5.12-5.12v-1.024l-2.048-2.048-95.232-109.056c-5.12-5.12-13.824-5.12-18.944 0.512l-94.72 108.032c-0.512 0.512-1.024 2.048-1.024 3.072 1.024 0 1.536 0.512 2.048 0.512 0.512 0 1.536 0.512 2.048 0.512h55.296v7.68c0 86.528-72.704 159.232-159.232 159.232h-17.408c-8.704 0-13.824 5.12-13.824 13.824v60.416c0 8.704 5.12 13.824 13.824 13.824h17.408c134.144 0 243.712-109.056 243.712-243.712v-6.656z m-372.224 202.752c0 21.504-18.432 39.936-39.936 39.936H130.048c-21.504 0-39.936-18.432-39.936-39.936v-307.712c0-21.504 18.432-39.936 39.936-39.936H450.56c21.504 0 39.936 18.432 39.936 39.936v307.712z m-74.752-279.552h-250.88v250.88h250.88v-250.88z" ></path></symbol><symbol id="icon-dayin" viewBox="0 0 1024 1024"><path d="M935.08266667 203.776c0-44.032-35.84-80.384-80.384-80.384H172.20266667c-44.032 0-80.384 35.84-80.384 80.384v331.264c0 44.032 35.84 80.384 80.384 80.384H262.82666667v228.864c0 44.032 35.84 80.384 80.384 80.384h341.504c44.032 0 80.384-35.84 80.384-80.384v-228.864h90.624c44.032 0 80.384-35.84 80.384-80.384V203.776z m-245.76 645.12H337.57866667v-330.24h351.744v330.24z m170.496-309.248h-95.744V459.776c0-8.704-7.168-16.384-16.384-16.384H278.69866667c-8.704 0-16.384 7.168-16.384 16.384v80.384H166.57066667V198.656h692.736v340.992z" ></path></symbol><symbol id="icon-dayinmian" viewBox="0 0 1024 1024"><path d="M791.04 366.08V260.096c0-72.704-58.88-132.096-132.096-132.096H224.768v238.592C173.056 383.488 105.472 420.352 111.104 501.76v306.176h113.152v113.152h566.784v-113.152h113.152V501.76c-3.584-65.024-49.664-120.32-113.152-135.68z m-56.32 498.688H281.088v-169.984h453.12v169.984zM281.088 467.968V184.832h389.12v66.56h64v216.576H281.088z" ></path></symbol><symbol id="icon-gongxiangxian" viewBox="0 0 1024 1024"><path d="M764.92800001 848.04266667l174.592-641.024c9.728-34.816 19.456-83.968-11.264-109.568s-82.944-15.36-118.272 1.024L65.53600001 386.21866667c-13.312 6.144-22.528 19.968-23.04 34.816-0.512 15.36 7.168 29.696 20.48 36.864L215.04000001 545.45066667c9.216 5.632 20.48 6.656 30.72 4.096 10.24-3.072 19.456-9.728 24.576-18.944 11.264-19.456 4.608-44.544-14.848-55.296l-84.48-48.64 672.768-265.216c7.168-3.072 14.848-2.048 20.992 3.072 6.144 5.12 8.704 12.8 6.656 20.48L700.41600001 777.38666667l-150.016-80.384c-16.896-9.216-38.912-4.608-51.2 10.752l-0.512 0.512-87.04 72.704v-160.768l3.072-2.56 273.408-211.968c17.408-14.848 28.672-39.424 15.872-55.808-6.656-8.704-16.384-13.824-27.136-15.36-1.536 0-3.584-0.512-5.12-0.512-9.216 0-17.408 3.072-24.576 8.192l-302.08 226.304c-9.216 7.68-14.848 18.944-14.848 31.232v299.008c0 22.528 18.432 40.448 40.448 40.448 12.288 0 24.576-6.144 32.256-15.872l139.264-139.776 163.84 88.064c2.56 1.536 5.632 2.56 8.192 3.584 10.24 3.072 21.504 1.536 30.72-3.584 10.24-5.12 16.896-13.312 19.968-23.552z" ></path></symbol><symbol id="icon-quxiaogongxiangxian" viewBox="0 0 1024 1024"><path d="M873.984 893.952c-7.168 7.168-16.384 11.264-26.624 11.264s-19.456-4.096-26.624-11.264l-89.088-89.088-89.088 89.088c-7.168 7.168-16.384 11.264-26.624 11.264s-19.456-4.096-26.624-11.264c-14.848-14.848-14.848-38.912 0-53.248l89.088-89.088-89.6-89.6c-14.848-14.848-14.848-38.912 0-53.248 7.168-7.168 16.384-11.264 26.624-11.264s19.456 4.096 26.624 11.264l89.088 89.088 89.088-89.088c7.168-7.168 16.384-11.264 26.624-11.264s19.456 4.096 26.624 11.264c14.848 14.848 14.848 38.912 0 53.248l-89.088 89.088 89.088 89.088c15.36 14.848 15.36 38.912 0.512 53.76z m-471.552 18.432l103.936-104.448c13.824-13.824 14.848-35.328 2.56-50.688l-9.728-12.288c-6.656-8.192-15.36-12.8-25.6-14.336-10.24-1.024-20.48 2.048-28.16 8.704l-34.304 28.672v-160.768l3.072-2.56 273.408-211.968c12.8-10.752 24.576-29.184 20.992-45.568-2.56-11.776-13.312-20.48-31.232-25.6h-0.512c-11.264-1.536-21.504 1.536-29.696 8.192l-302.08 226.304c-9.216 7.68-14.848 18.944-14.848 31.232v295.936c0 15.36 7.168 29.184 18.944 36.864 16.384 12.8 39.936 9.216 53.248-7.68zM926.72 84.992c-12.288-10.24-28.672-15.872-49.152-15.872-21.504 0-46.592 6.144-69.12 16.896L64.512 374.272C51.2 380.416 41.984 394.24 41.472 409.088c-0.512 15.36 7.168 29.696 20.48 36.864l152.064 87.552c9.216 5.632 20.48 6.656 30.72 4.096 10.24-3.072 19.456-9.728 24.576-18.944 11.264-19.456 4.608-44.544-14.848-55.296L169.984 414.72l672.768-265.216c7.168-3.072 14.848-2.048 20.992 3.072 6.144 5.12 8.704 12.8 6.656 20.48L781.312 481.28c-3.072 10.24-1.536 20.48 3.584 29.696 5.12 9.216 13.824 15.36 24.064 17.92 19.968 5.12 39.936-7.168 45.568-27.136l83.456-306.688c9.728-34.816 19.456-84.48-11.264-110.08z" ></path></symbol><symbol id="icon-shezhimian" viewBox="0 0 1024 1024"><path d="M388.608 939.52c-48.64-13.824-94.72-35.84-135.68-65.536l2.048-88.064c1.024-38.4-25.6-71.68-62.976-79.36l-86.528-17.92c-19.456-46.592-30.72-96.256-33.28-146.944l70.144-53.248c30.208-23.04 39.936-64.512 22.528-98.816l-39.936-78.848c24.064-44.544 55.808-83.968 93.696-117.76L303.616 215.04c36.864 9.216 75.264-9.216 91.136-44.032l36.352-80.384c25.088-4.096 50.176-6.656 75.264-6.656 25.6 0 50.688 2.048 75.264 6.656l36.352 80.384c15.872 34.816 54.272 53.248 91.136 44.032l85.504-21.504c37.888 33.28 69.632 73.216 93.696 117.76l-39.936 78.848c-17.408 34.304-7.68 75.776 22.528 98.816l70.144 53.248c-2.56 50.688-13.824 100.352-33.28 146.944l-86.528 17.92c-37.376 7.68-64 40.96-62.976 79.36l2.048 88.064c-40.96 29.696-87.04 51.712-135.68 65.536l-67.584-56.32c-29.184-24.576-72.192-24.576-101.376 0l-67.072 55.808zM506.88 698.368c98.304 0 178.176-79.872 178.176-178.176S605.184 342.016 506.88 342.016c-98.304 0-178.176 79.872-178.176 178.176s79.872 178.176 178.176 178.176z" ></path></symbol><symbol id="icon-shezhixian" viewBox="0 0 1024 1024"><path d="M946.176 485.888l-185.344-324.096c-12.8-22.528-37.376-36.864-63.488-36.864H326.656c-26.112 0-50.688 14.336-64 36.864L77.824 485.888c-12.8 22.528-12.8 50.176 0 72.704l184.832 324.096c12.8 23.04 37.376 36.864 64 36.864h370.176c26.112 0 50.688-14.336 63.488-36.864l185.344-324.096c13.312-22.528 13.312-50.176 0.512-72.704z m-69.632 36.352l-182.784 318.976H329.728L147.456 522.24l182.272-318.976h364.032l182.784 318.976zM512 368.64c-84.992 0-153.6 68.608-153.6 153.6s68.608 153.6 153.6 153.6 153.6-68.608 153.6-153.6-68.608-153.6-153.6-153.6z m0 239.104c-47.104 0-85.504-38.4-85.504-85.504s38.4-85.504 85.504-85.504 85.504 38.4 85.504 85.504-38.4 85.504-85.504 85.504z" ></path></symbol><symbol id="icon-shoucangmian" viewBox="0 0 1024 1024"><path d="M503.296 171.008l18.944 18.944 18.944-18.944c105.472-105.472 275.968-105.472 380.928 0s105.472 275.968 0 380.928L522.24 952.32l-400.384-400.384C16.896 446.976 16.896 276.48 121.856 171.008c105.472-104.96 275.968-104.96 381.44 0z" ></path></symbol><symbol id="icon-shoucangxian" viewBox="0 0 1024 1024"><path d="M859.648 495.104c73.728-73.728 73.728-193.024 0-266.752s-193.024-73.728-266.752 0l-76.288 76.288L440.32 228.352c-73.728-73.728-193.024-73.728-266.752 0s-73.728 193.024 0 266.752l343.04 343.04 343.04-343.04zM497.664 171.008l18.944 18.944 18.944-18.944c105.472-105.472 275.968-105.472 380.928 0s105.472 275.968 0 380.928L516.608 952.32l-400.384-400.384C11.264 446.976 11.264 276.48 116.736 171.008c104.96-104.96 275.968-104.96 380.928 0z" ></path></symbol><symbol id="icon-gongxiangmian" viewBox="0 0 1024 1024"><path d="M84.992 573.44l187.904 77.312c14.848 6.144 31.744 3.072 43.52-7.168l495.104-427.52L471.04 611.84c-15.36 17.408-13.312 44.032 4.608 59.392 4.096 3.584 9.216 6.656 14.848 8.192l232.448 73.216c44.544 13.824 91.648-10.752 105.984-54.784 1.024-2.56 1.536-5.632 2.048-8.704l124.928-610.304c2.56-11.264-5.12-22.528-16.384-25.088-4.608-1.024-9.728-0.512-13.824 2.048L81.92 497.152c-20.48 10.752-28.672 36.352-17.92 56.832 4.608 8.704 12.288 15.36 20.992 19.456z m354.816 162.304l112.64 82.944c9.216 6.656 11.264 19.968 4.608 29.696-0.512 1.024-1.536 2.048-2.56 2.56l-150.528 144.896 2.048-243.2c0-11.776 9.728-20.992 21.504-20.992 4.608 0 8.704 1.536 12.288 4.096z" ></path></symbol><symbol id="icon-xiangmuxinxi" viewBox="0 0 1024 1024"><path d="M949.248 581.632v265.728c0 30.208-24.576 54.272-54.272 54.272H133.12c-30.208 0-54.272-24.576-54.272-54.272v-265.728c0-3.584 3.072-6.656 6.656-6.656h300.544v9.216c0 17.92 14.336 32.256 32.256 32.256h191.488c17.92 0 32.256-14.336 32.256-32.256v-9.216h300.544c3.584 0 6.656 3.072 6.656 6.656z m0-250.88v193.536c0 3.584-3.072 6.656-6.656 6.656h-301.056c-2.56-15.36-15.872-27.136-31.744-27.136H418.304c-15.872 0-29.184 11.776-31.744 27.136H85.504c-3.584 0-6.656-3.072-6.656-6.656V330.752c0-59.904 48.64-109.056 109.056-109.056h129.024c3.584 0 6.656-3.072 6.656-6.656v-21.504c0-45.056 36.352-81.408 81.408-81.408h217.6c45.056 0 81.408 36.352 81.408 81.408V215.04c0 3.584 3.072 6.656 6.656 6.656H839.68c60.928 0 109.568 48.64 109.568 109.056z m-299.52-137.216c0-14.848-12.288-27.136-27.136-27.136H404.992c-14.848 0-27.136 12.288-27.136 27.136v20.48c0 3.584 3.072 6.656 6.656 6.656h258.56c3.584 0 6.656-3.072 6.656-6.656v-20.48z" ></path></symbol><symbol id="icon-jiaosequanxian" viewBox="0 0 1024 1024"><path d="M876.544 328.192c33.28 0 60.416-27.136 60.416-60.416s-27.136-60.416-60.416-60.416h-120.832l0.512-63.488c0-33.28-26.624-60.416-60.416-60.928h-0.512c-33.28 0-60.416 27.136-60.416 60.416-0.512 137.728-1.024 266.752-0.512 312.32-106.496 27.648-185.344 124.928-185.344 240.128 0 136.704 111.104 248.32 248.32 248.32 136.704 0 248.32-111.104 248.32-248.32 0-116.736-80.896-215.04-189.952-241.152V328.704l120.832-0.512z m-179.712 240.64c70.144 0 126.976 57.344 126.976 126.976s-56.832 126.976-126.976 126.976c-70.144 0-126.976-56.832-126.976-126.976 0-70.144 56.832-126.976 126.976-126.976zM444.416 260.096H135.68c-33.28 0-60.928-27.136-60.928-60.928 0-33.28 27.136-60.928 60.928-60.928h308.736c33.28 0 60.928 27.136 60.928 60.928 0 33.792-27.136 60.928-60.928 60.928z m-126.464 311.808H135.68c-33.28 0-60.928-27.136-60.928-60.928C74.752 477.696 102.4 450.56 135.68 450.56h182.272C351.232 450.56 378.88 477.696 378.88 510.976c0 33.792-27.648 60.928-60.928 60.928z m-50.688 311.808H135.68c-33.28 0-60.928-27.136-60.928-60.928 0-33.28 27.136-60.928 60.928-60.928h131.584c33.28 0 60.928 27.136 60.928 60.928 0 33.792-27.648 60.928-60.928 60.928z" ></path></symbol><symbol id="icon-chengyuanquanxian" viewBox="0 0 1024 1024"><path d="M987.648 746.496c0 47.616-18.944 57.856-92.16 57.856-18.944-184.32-111.104-303.616-206.336-349.696 62.976-85.504 66.56-209.92 6.656-302.08 73.216-22.016 150.016 29.184 168.96 107.52 15.36 70.144-15.36 146.944-80.384 175.616 119.808 30.72 203.264 177.664 203.264 310.784z m-392.192-276.48c119.296 25.6 256 150.016 256 389.12 0 62.976-80.384 78.336-337.92 78.336-261.12 0-337.92-15.36-337.92-78.336 0-235.52 136.704-361.984 254.464-387.584-92.16-51.2-124.416-168.96-80.384-264.704s155.136-131.584 242.176-80.384 121.344 168.96 73.216 261.12c-15.36 37.888-40.96 63.488-69.632 82.432z m-263.168-15.36c-95.744 44.544-187.904 167.424-206.336 349.696-73.216 0-92.16-10.24-92.16-57.856-6.656-133.12 80.384-281.6 201.216-310.784-70.144-35.84-102.4-121.344-70.144-198.144 29.184-66.56 95.744-102.4 162.304-83.456-62.976 90.624-59.392 211.968 5.12 300.544z" ></path></symbol><symbol id="icon-xiangmuchengyuan" viewBox="0 0 1024 1024"><path d="M663.04 154.112c-34.304 0-65.024 9.728-91.648 29.184 29.696 41.472 44.544 88.064 44.544 138.752s-14.848 96.768-44.544 138.752c26.624 19.456 57.344 29.184 91.648 29.184 46.08 0 85.504-16.384 118.272-49.152 32.768-32.768 49.152-72.192 49.152-118.272 0-46.08-16.384-85.504-49.152-118.272-32.768-33.792-72.192-50.176-118.272-50.176z m44.544 429.568c29.696 24.064 53.248 52.736 70.656 86.016 16.896 33.28 26.624 69.12 28.16 105.984v93.696h189.952v-93.696l-2.048-17.92c-3.072-14.848-8.192-29.696-15.872-44.544-10.24-20.992-25.088-38.912-44.544-53.76-22.528-20.992-50.688-37.376-84.992-49.152-40.448-13.312-87.552-22.528-141.312-26.624z m-163.328-261.632c0-34.304-9.728-65.024-29.184-92.672S471.04 181.248 440.32 167.936s-62.464-16.896-96.256-10.24c-33.28 6.656-62.464 22.016-86.016 46.08s-38.912 52.736-46.08 86.016-3.584 65.536 10.24 96.256c13.312 30.72 33.792 55.296 61.44 74.752s58.368 29.184 92.672 29.184c46.08 0 85.504-16.384 118.272-49.152 33.28-33.28 49.664-72.704 49.664-118.784z m165.888 453.632v93.696H43.52v-93.696l2.048-19.968c3.072-16.384 8.704-32.256 17.92-47.104 13.312-22.528 30.72-41.472 51.2-58.368 26.624-19.456 59.392-34.816 98.304-47.104 46.08-13.312 100.352-19.968 163.328-19.968 98.304 0 176.64 16.384 234.496 49.152 41.472 24.064 70.656 55.296 87.04 93.696 8.192 18.432 12.288 34.816 12.288 49.664z" ></path></symbol><symbol id="icon-yonghuzu" viewBox="0 0 1024 1024"><path d="M518.144 510.464c75.264 0 138.24-61.44 138.24-138.24s-61.44-138.24-138.24-138.24-138.24 61.44-138.24 138.24 61.44 138.24 138.24 138.24z m87.04 24.064l-87.04 100.864-85.504-100.864c-90.624 40.96-155.136 141.824-155.136 261.12 0 16.896 1.536 32.256 3.584 47.616 51.2 65.024 138.24 107.52 237.056 107.52s185.856-42.496 237.056-107.52c1.536-15.36 3.584-32.256 3.584-47.616 1.536-119.296-63.488-220.16-153.6-261.12z m97.28-162.304v8.704c18.944 11.776 40.96 18.944 66.56 18.944 70.144 0 126.464-56.32 126.464-126.464s-56.32-128-126.464-128c-57.856 0-107.52 40.96-122.88 93.696 33.792 34.304 56.32 80.384 56.32 133.12z m-443.904 27.648c27.136 0 52.736-8.704 73.216-24.064v-3.584c0-49.664 18.944-93.696 51.2-126.464-11.776-57.856-62.976-100.864-124.416-100.864-70.144 0-128 56.32-128 128 0 68.608 57.856 126.976 128 126.976z m590.336 22.016l-80.384 93.696-75.264-87.04c-8.704 29.184-25.6 54.784-46.08 75.264 97.28 54.784 160.256 167.424 160.256 293.376v8.704c75.264-8.704 141.824-46.08 180.736-95.744 1.536-15.36 3.584-29.184 3.584-44.544 0.512-112.128-58.88-206.336-142.848-243.712z m-460.8 81.92c-22.016-22.016-40.96-51.2-49.664-81.92l-80.384 93.696-79.872-93.696c-81.92 37.376-141.824 133.12-141.824 242.176 0 15.36 1.536 30.72 3.584 44.544 42.496 52.736 111.104 90.624 189.44 97.28v-10.24c0-124.416 61.44-235.52 158.72-291.84z" ></path></symbol><symbol id="icon-guanbimianban" viewBox="0 0 1024 1024"><path d="M624.128 503.808l260.608-259.584c31.744-32.256 31.232-83.968-1.024-115.712-32.256-31.744-83.968-31.232-115.712 1.024L508.928 388.608 249.344 129.536C215.04 99.84 163.84 103.936 134.656 138.24c-26.112 30.72-26.112 75.264 0 105.984l259.072 259.584L134.656 762.88c-32.256 31.744-32.768 83.456-1.024 115.712 31.744 32.256 83.456 32.768 115.712 1.024l259.072-259.072 259.584 259.072c32.256 32.256 84.48 32.256 116.736 0 32.256-32.256 32.256-84.48 0-116.736l-260.608-259.072z" ></path></symbol><symbol id="icon-shousuomianban" viewBox="0 0 1024 1024"><path d="M756.224 915.968c0 19.968 16.384 35.84 35.84 35.84h88.064c19.968 0 35.84-16.384 35.84-35.84V117.76c0-19.968-16.384-35.84-35.84-35.84h-88.064c-19.968 0-35.84 16.384-35.84 35.84v798.208zM627.712 117.76c0-19.968-12.8-26.112-28.672-14.336L71.68 495.616c-15.872 11.776-15.872 31.232 0 43.008l527.36 392.704c15.872 11.776 28.672 5.12 28.672-14.336V117.76z" ></path></symbol><symbol id="icon-zhankaimianban" viewBox="0 0 1024 1024"><path d="M265.728 122.88c0-19.968-16.384-35.84-35.84-35.84H141.824c-19.968 0-35.84 16.384-35.84 35.84v798.72c0 19.968 16.384 35.84 35.84 35.84h88.064c19.968 0 35.84-16.384 35.84-35.84V122.88zM394.24 922.112c0 19.968 12.8 26.112 28.672 14.336l527.36-392.704c15.872-11.776 15.872-31.232 0-43.008l-527.36-392.704c-15.872-11.776-28.672-5.12-28.672 14.336v799.744z" ></path></symbol><symbol id="icon-shikoujiedong" viewBox="0 0 1024 1024"><path d="M970.752 44.42209524v921.6H49.152v-921.6h921.6z m-65.536 66.048H115.2v790.016h790.016V110.47009524zM468.992 198.02209524h86.016V284.03809524H468.992V198.02209524zM263.68 317.31809524l60.416-60.416 60.416 60.416-59.904 60.416-60.928-60.416z m-60.928 143.36h86.016v86.016H202.752V460.67809524z m58.368 230.4l60.416-60.416 60.416 60.416-60.416 60.416L261.12 691.07809524z m204.288 35.84h86.016v86.016H465.408v-86.016zM634.88 693.63809524l60.416-60.416 60.416 60.416-60.416 60.416L634.88 693.63809524z m96.768-229.376h86.016V550.27809524h-86.016V464.26209524zM637.44 319.87809524l60.416-60.416L758.784 319.87809524l-60.416 60.416L637.44 319.87809524z m-125.952 12.288c-95.744 0-173.056 77.312-173.056 173.056S416.256 678.27809524 511.488 678.27809524s173.056-77.312 173.056-173.056-77.312-173.056-173.056-173.056z" ></path></symbol><symbol id="icon-MobPicxiazai" viewBox="0 0 1024 1024"><path d="M829.44 238.08h-254.976V604.16l136.704-136.704 60.416 69.12-243.2 243.2-243.712-243.712 62.976-66.56L482.304 604.16V238.08H219.648c-29.696 0-53.76 24.064-53.76 53.76v609.28c0 29.696 24.064 53.76 53.76 53.76h609.28c29.696 0 53.76-24.064 53.76-53.76V291.84c0-29.696-24.064-53.76-53.248-53.76zM482.304 52.736h91.648v185.344H482.304z" ></path></symbol><symbol id="icon-waibucanzhao" viewBox="0 0 1024 1024"><path d="M875.008 312.32h-155.648V155.136c0.512-25.6-19.456-47.104-45.056-47.616H164.352c-27.136 0-54.272 20.48-54.272 47.616v512c0 27.136 27.136 54.784 54.272 54.784h148.992v150.016c0 27.136 27.136 54.784 54.272 54.784H875.52c27.136 0 54.272-20.48 54.272-54.784v-512c-7.168-27.136-27.648-47.616-54.784-47.616z m-223.232 341.504H177.664V175.616h474.112v478.208zM380.928 380.416h203.264V312.32H380.928c-33.792 0-67.584 27.136-67.584 68.096v204.8h67.584v-204.8z" ></path></symbol><symbol id="icon-PICfangda" viewBox="0 0 1024 1024"><path d="M630.784 467.456h-118.272V331.264c0-17.92-14.336-32.256-32.256-32.256s-32.256 14.336-32.256 32.256v136.192H310.784c-17.92 0-32.256 14.336-32.256 32.256s14.336 32.256 32.256 32.256h137.728v119.808c0 17.92 14.336 32.256 31.744 32.256s32.256-14.336 32.256-31.744V532.48h118.272c17.92 0 32.256-14.336 32.256-32.256s-14.336-32.768-32.256-32.768z" ></path><path d="M910.336 916.992L771.584 778.24c71.68-74.752 115.712-175.616 115.712-287.232 0-229.376-186.88-416.256-416.256-416.256S54.784 261.632 54.784 491.008s186.88 416.256 416.256 416.256c95.232 0 182.272-32.256 252.416-86.016l141.312 141.312c12.288 12.288 32.768 12.8 45.056 0 12.8-12.8 12.8-32.768 0.512-45.568zM471.04 843.264c-194.048 0-352.256-157.696-352.256-352.256S276.992 139.264 471.04 139.264 823.296 296.96 823.296 491.52s-158.208 351.744-352.256 351.744z" ></path></symbol><symbol id="icon-PICsuoxiao" viewBox="0 0 1024 1024"><path d="M926.72 903.168l-138.752-138.752c71.68-74.752 115.712-175.616 115.712-287.232C903.68 247.808 716.8 61.44 487.936 61.44S71.68 247.808 71.68 477.696s186.368 416.256 416.256 416.256c95.232 0 182.272-32.256 252.416-86.016l141.312 141.312c12.288 12.288 32.768 12.8 45.056 0 12.8-13.312 12.8-33.28 0-46.08zM135.68 477.696c0-194.048 157.696-352.256 352.256-352.256S839.68 283.136 839.68 477.696 681.984 829.44 487.936 829.44s-352.256-157.696-352.256-351.744z" ></path><path d="M633.344 445.44H343.552c-17.92 0-32.256 14.336-32.256 32.256s14.336 32.256 32.256 32.256h289.792c17.92 0 32.256-14.336 32.256-32.256s-14.336-32.256-32.256-32.256z" ></path></symbol><symbol id="icon-PICxiazai" viewBox="0 0 1024 1024"><path d="M282.112 285.696v-76.8H104.448v744.96h803.84V208.896h-177.152v76.8h100.352v591.36h-650.24V285.696z" ></path><path d="M273.92 513.024L506.88 745.984l232.448-232.448-50.176-57.856-143.872 144.384V37.888h-76.8v562.176L326.144 457.216z" ></path></symbol><symbol id="icon-PICxiangyou" viewBox="0 0 1024 1024"><path d="M980.992 516.608l-317.44-317.44-57.344 57.856 218.624 218.624H71.68v81.408h753.152l-218.624 219.136 57.344 57.344z" ></path></symbol><symbol id="icon-PICxiangzuo" viewBox="0 0 1024 1024"><path d="M983.04 557.056V475.648H229.888l218.624-218.624-57.344-57.856-317.44 317.44 317.44 316.928 57.344-57.344-218.624-219.136z" ></path></symbol><symbol id="icon-PICyuanshidaxiao" viewBox="0 0 1024 1024"><path d="M51.712 126.976v773.12h936.96v-773.12h-936.96z m865.28 701.44h-793.6v-629.76h793.6v629.76z" ></path><path d="M391.68 354.304v348.16h-71.68V434.688c-8.704 7.68-20.992 14.336-35.84 20.48-15.36 6.144-29.184 9.728-41.984 11.264V405.504c39.936-11.776 74.752-28.672 104.448-51.2h45.056zM500.224 493.568c0-10.752 4.096-19.968 12.288-26.624s18.432-10.752 29.696-10.752c11.776 0 21.504 3.584 29.696 10.752 8.192 7.168 12.288 15.872 12.288 26.624 0 11.264-4.096 20.48-12.288 27.136-8.192 7.168-18.432 10.24-30.72 10.24-11.776 0-21.504-3.584-29.696-10.752-7.168-6.656-11.264-15.36-11.264-26.624z m0 177.152c0-10.752 4.096-19.968 12.288-27.136s18.432-10.752 29.696-10.752c11.776 0 21.504 3.584 29.696 10.752 8.192 7.168 12.288 16.384 12.288 26.624 0 11.264-4.096 20.48-12.288 27.136-8.192 7.168-18.432 10.24-30.72 10.24-11.264 0-20.992-3.584-29.184-10.752s-11.776-15.36-11.776-26.112zM798.208 354.304v348.16h-71.68V434.688c-8.704 7.68-20.992 14.336-35.84 20.48-15.36 6.144-29.184 9.728-41.984 11.264V405.504c39.936-11.776 74.752-28.672 104.448-51.2h45.056z" ></path></symbol><symbol id="icon-PICzishiying" viewBox="0 0 1024 1024"><path d="M37.888 129.536v773.12h936.96v-773.12H37.888z m865.28 701.44h-793.6v-629.76h793.6v629.76z" ></path><path d="M242.688 334.336v363.52h527.36v-363.52h-527.36z m455.68 291.84h-384v-220.16h384v220.16z" ></path></symbol><symbol id="icon-xianxinglin" viewBox="0 0 1024 1024"><path d="M824.832 84.48v199.168h121.344l-121.344-199.168z" ></path><path d="M946.176 356.352v-45.056h-153.6V84.48H108.032v839.68h839.68l-1.536-567.808zM188.928 163.84h208.384v31.232H188.928V163.84z m0 99.328h468.992v31.232H188.928v-31.232z m740.864 643.584H123.904V361.984h805.888v544.768z" ></path><path d="M270.848 448.512h68.608v369.664H270.848zM415.232 569.856h68.608v248.32H415.232zM479.744 460.288c-7.68-6.656-17.408-10.24-29.184-10.24-11.776 0-21.504 3.584-29.184 10.24s-11.264 14.848-11.264 25.6c0 10.24 3.584 18.944 11.264 25.6 7.68 7.168 17.408 10.752 29.184 10.752 11.776 0 21.504-3.584 29.184-10.24 7.68-7.168 11.264-15.36 11.264-26.112-0.512-10.752-4.096-18.944-11.264-25.6zM681.472 615.424c31.232 0 46.592 21.504 46.592 64v138.752h68.608V665.6c0-68.608-26.624-101.888-81.92-101.888-34.816 0-61.44 15.36-79.36 45.056l-0.512 1.024h-5.12v-40.448h-69.12v248.32H629.76V675.84c0-17.408 5.12-32.256 14.336-43.52 10.24-10.752 22.528-16.896 37.376-16.896z" ></path></symbol><symbol id="icon-ziti" viewBox="0 0 1024 1024"><path d="M650.24 722.944l-366.592 0.512-70.656 168.96h158.72v57.344H60.928v-57.344h55.296L492.032 71.68h32.768l386.048 820.736h45.568v57.344H675.84v-57.344h60.416L650.24 722.944z m-314.368-110.08l256.512-1.024-115.712-236.544h-23.04l-117.76 237.568z" ></path></symbol><symbol id="icon-zitishx" viewBox="0 0 1024 1024"><path d="M817.152 74.24v199.168h121.344l-121.344-199.168zM295.424 163.328c-1.024-2.56-2.048-7.168-3.072-13.312H291.84c-1.024 5.632-2.048 10.24-3.072 13.312l-28.16 78.848h63.488l-28.672-78.848z" ></path><path d="M938.496 346.112v-45.056h-153.6V74.24H100.352v839.68h839.68l-1.536-567.808z m-658.944-220.16h26.112l72.192 189.44h-27.136l-19.456-51.712H252.928l-18.432 51.712h-27.136l72.192-189.44zM922.112 896H116.736V351.744h805.888V896z" ></path><path d="M334.848 697.344c0-17.92-5.12-33.28-15.36-46.592-10.24-12.8-29.696-25.6-57.344-37.376-24.576-10.752-39.936-18.944-46.08-25.6-6.656-6.656-9.728-13.824-9.728-22.016 0-10.24 5.12-18.432 14.848-24.064 9.216-5.632 22.016-8.704 36.864-8.704 24.064 0 45.568 5.632 64.512 17.408v-50.176c-17.92-6.656-40.96-10.24-67.072-10.24-32.256 0-58.88 7.168-78.336 21.504-19.456 13.824-29.184 33.792-29.184 59.392 0 34.816 22.016 61.44 65.024 79.872 28.672 11.776 46.08 21.504 53.248 28.672 7.168 7.168 10.752 15.36 10.752 23.552 0 9.728-4.608 17.92-13.824 24.064-8.704 6.144-21.504 9.216-38.912 9.216-27.648 0-53.248-8.704-75.264-25.6v53.76c19.968 9.728 46.08 14.848 77.312 14.848 34.816 0 61.952-7.168 80.896-20.992 18.432-14.336 27.648-34.816 27.648-60.928zM621.056 773.632V494.592h-55.296V609.28H439.296V494.592H384v279.04h55.296v-117.248h126.464v117.248zM782.336 662.528l0.512-2.048h5.12l0.512 2.048c2.048 8.704 3.584 14.848 5.632 17.92l50.176 92.672h65.536l-86.528-140.288 83.968-138.24h-61.44l-46.08 84.48c-3.584 8.192-6.656 16.384-9.216 24.064l-0.512 1.536h-4.608l-0.512-2.048c-2.56-8.192-5.12-15.872-8.704-23.04l-41.472-85.504h-67.584l81.92 139.264-1.024 1.536-88.576 138.24h66.048l50.176-92.16c3.584-7.68 5.632-13.824 6.656-18.432z" ></path></symbol><symbol id="icon-zitittc" viewBox="0 0 1024 1024"><path d="M820.224 81.92v195.584h119.296L820.224 81.92zM308.224 169.472c-1.024-2.56-2.048-6.656-3.072-12.8h-0.512c-1.024 5.632-2.048 9.728-3.072 12.8l-27.648 77.312h62.464l-28.16-77.312z" ></path><path d="M947.2 346.112v-45.056h-153.6V74.24H109.056v839.68h839.68L947.2 346.112z m-658.944-220.16h26.112l72.192 189.44h-27.136l-19.456-51.712H261.632l-18.432 51.712h-27.136l72.192-189.44zM930.816 896H124.928V351.744h805.888V896z" ></path><path d="M403.456 494.592H189.952v43.52h79.872v230.4h54.272v-230.4h79.36zM638.464 494.592H424.96v43.52h79.36v230.4h54.272v-230.4h79.872zM681.984 736.256c24.064 24.576 56.832 36.864 98.304 36.864 31.232 0 57.344-4.608 76.8-13.824v-48.64c-19.968 10.752-41.472 16.384-65.536 16.384-27.136 0-48.64-8.704-64.512-25.6-15.872-16.896-24.064-39.936-24.064-67.584 0-28.672 8.704-52.224 25.088-70.144 16.896-17.92 39.424-27.136 67.072-27.136 22.528 0 43.52 5.12 61.44 14.848v-51.2c-17.92-6.656-39.936-9.728-66.048-9.728-42.496 0-77.824 13.824-104.96 41.472-27.136 27.648-40.448 62.976-40.448 106.496 1.024 39.936 12.8 73.216 36.864 97.792z" ></path></symbol><symbol id="icon-zitittf" viewBox="0 0 1024 1024"><path d="M816.64 81.92v195.584h119.296L816.64 81.92zM304.64 169.472c-1.024-2.56-2.048-6.656-3.072-12.8h-0.512c-1.024 5.632-2.048 9.728-3.072 12.8l-27.648 77.312H332.8l-28.16-77.312z" ></path><path d="M943.616 346.112v-45.056h-153.6V74.24H105.472v839.68h839.68l-1.536-567.808z m-658.944-220.16h26.112l72.192 189.44h-27.136l-19.456-51.712H258.048l-18.432 51.712h-27.136l72.192-189.44zM927.232 896H121.856V351.744h805.888V896z" ></path><path d="M417.28 494.592H203.776v43.52h79.36v230.4H337.92v-230.4h79.36zM651.776 494.592H438.272v43.52h79.36v230.4h54.784v-230.4h79.36zM837.632 614.912h-91.648v-76.8h99.328v-43.52h-153.6v273.92h54.272v-110.08h91.648z" ></path></symbol><symbol id="icon-jiedong" viewBox="0 0 1024 1024"><path d="M458.15466667 68.26666667h121.344v121.344H458.15466667V68.26666667zM167.33866667 236.71466667l86.016-86.016 86.016 86.016-86.016 86.016-86.016-86.016zM80.81066667 439.97866667h121.344v121.344H80.81066667V439.97866667z m82.944 326.656l86.016-86.016 86.016 86.016-86.016 86.016-86.016-86.016z m289.28 50.688h121.344v121.344H453.03466667v-121.344z m240.128-47.104l86.016-86.016 86.016 86.016-86.016 86.016-86.016-86.016zM829.86666667 445.61066667h121.344v121.344H829.86666667V445.61066667z m-133.12-204.8l86.016-86.016 86.016 86.016L782.76266667 326.82666667 696.74666667 240.81066667z m-178.176 17.408c-135.168 0-244.736 109.568-244.736 244.736s109.568 245.248 244.736 245.248 244.736-109.568 244.736-244.736-109.568-245.248-244.736-245.248z" ></path></symbol><symbol id="icon-jiesuo" viewBox="0 0 1024 1024"><path d="M795.648 434.688H342.016v-97.28c0-82.944 66.048-153.088 148.992-154.624 35.84-0.512 68.608 11.264 94.72 31.744 16.896 12.8 39.936 13.312 57.344 2.048 29.184-18.944 30.72-61.44 3.072-82.432-40.96-32.256-93.184-51.2-150.016-52.224-140.288-1.536-254.976 116.224-254.976 256v96.768h-50.176c-27.648 0-50.176 22.528-50.176 50.176v352.768c0 27.648 22.528 50.176 50.176 50.176h604.672c27.648 0 50.176-22.528 50.176-50.176V485.376c0.512-27.648-22.016-50.688-50.176-50.688z" ></path></symbol><symbol id="icon-yincang" viewBox="0 0 1024 1024"><path d="M280.576 782.848l373.76-580.096 56.832 36.352-373.76 580.096-56.832-36.352z m-109.056-258.048c75.264-119.296 205.312-179.2 337.92-183.808L567.808 250.88c-16.384-1.536-33.28-2.048-50.688-2.048-198.144 0-354.816 92.16-460.8 276.48 53.76 93.696 120.832 163.328 199.168 209.408L307.2 654.336c-53.248-30.72-100.352-73.728-135.68-129.536z m561.664-232.448l-50.176 77.824c71.168 29.184 132.608 80.384 179.712 154.624-78.336 124.416-198.144 184.32-336.384 184.32-19.968 0-39.936-1.024-59.392-3.584l-55.808 86.528c33.792 6.144 69.12 9.728 105.984 9.728 198.144 0 354.816-92.16 460.8-276.48-64-111.616-145.92-188.928-244.736-232.96z" ></path></symbol><symbol id="icon-suoding" viewBox="0 0 1024 1024"><path d="M260 461.6V360.8c0-139.2 112.8-252 252-252s252 112.8 252 252v100.8h50.4c27.8 0 50.4 22.6 50.4 50.4v352.8c0 27.8-22.6 50.4-50.4 50.4H209.6c-27.8 0-50.4-22.6-50.4-50.4V512c0-27.8 22.6-50.4 50.4-50.4H260z m100.8 0h302.4V360.8c0-83.5-67.7-151.2-151.2-151.2s-151.2 67.7-151.2 151.2v100.8z" ></path></symbol><symbol id="icon-xianshi" viewBox="0 0 1024 1024"><path d="M957.025 512.176c0.108-18.963-7.499-32.929-7.933-33.471-60.314-115.143-172.685-189.04-177.357-192.03-80.529-52.978-168.012-79.93-259.626-80.093v-0.598c-91.83 0.163-179.207 27.06-259.842 80.149-4.565 2.988-117.151 76.887-177.249 191.975-0.435 0.598-8.15 14.509-8.042 33.471h-0.109c-0.217 19.127 7.608 33.2 8.043 33.745 60.206 115.141 172.685 189.04 177.249 192.028 80.637 53.062 168.012 79.904 259.733 80.121v0.544c91.832-0.109 179.314-27.06 259.952-80.121 4.672-2.99 117.042-76.888 177.357-191.975 0.434-0.598 8.15-14.617 7.933-33.745h-0.109zM512.001 678.939c-92.157 0-166.927-74.715-166.927-166.926 0-92.21 74.769-166.924 166.927-166.924 92.263 0 166.924 74.714 166.924 166.924 0 92.211-74.661 166.926-166.924 166.926z" ></path></symbol><symbol id="icon-dongjie" viewBox="0 0 1024 1024"><path d="M258.048 601.25866667L427.52 503.46666667l-139.264-80.896-174.08 46.592L89.6 378.02666667l130.56-34.816-34.816-130.56 91.136-24.576 37.888 140.288 160.768 92.672V265.38666667l-115.2-115.2 67.072-67.072 95.232 95.744 95.744-95.744 67.072 67.072-115.2 115.2v156.16l155.648-89.6 43.008-159.744 91.136 24.576L824.32 326.82666667l130.56 34.816-24.576 91.136L775.68 411.30666667l-158.72 91.648 159.232 91.648 154.624-41.472 24.576 91.648L824.32 680.10666667 859.136 810.66666667l-91.648 24.576L724.48 674.98666667l-155.648-89.6v156.672l115.2 115.2-67.072 67.072-94.72-96.256-95.744 95.744-67.072-67.072 115.2-115.2V584.87466667l-159.232 92.16-44.032 165.376-91.136-24.576 34.816-130.56-130.56-34.816 24.576-91.648c-0.512 0.512 148.992 40.448 148.992 40.448z" ></path></symbol><symbol id="icon-shikoudongjie" viewBox="0 0 1024 1024"><path d="M975.3112381 47.44533334v921.6H53.7112381v-921.6h921.6z m-66.048 66.048H119.2472381v790.016h790.016V113.49333334z m-87.04 361.984h-227.84l153.6-153.6-46.592-46.592-154.112 154.112V200.53333334H481.2312381v223.232L339.4072381 281.94133334 292.8152381 328.53333334l147.456 147.456H206.2872381v66.048h229.376L292.8152381 684.37333334l46.592 46.592 141.824-141.824v227.84h66.048v-233.472l154.112 154.112 46.592-46.592-148.992-148.992h223.232v-66.56z" ></path></symbol><symbol id="icon-xiangqingxinxi" viewBox="0 0 1024 1024"><path d="M598.016 384.512h275.456l-275.456-227.328v227.328m-435.2-300.032h483.328l300.032 261.12v488.448c0 53.248-43.52 96.768-96.768 96.768H172.544c-53.248 0-96.768-43.52-96.768-96.768V181.248c0-53.248 43.008-96.768 96.256-96.768h0.512m531.456 706.048v-101.376H172.544v101.376h531.456m145.408-198.144V491.008H172.544v101.376h676.864z" ></path></symbol><symbol id="icon-tupianxinxi" viewBox="0 0 1024 1024"><path d="M44.74250591 157.65242554v687.60510638c0 35.03387234 28.23625532 63.27012766 63.27012766 63.27012766h814.66825532c35.03387234 0 63.27012766-28.23625532 63.27012766-63.27012766V157.65242554c0-35.03387234-28.23625532-63.27012766-63.27012766-63.27012766H108.01263357c-35.03387234 0-63.27012766 28.23625532-63.27012766 63.27012766z m359.75080851 48.10621276c56.99540426 0 103.53293617 46.0146383 103.53293617 103.53293617s-46.0146383 103.53293617-103.53293617 103.53293617S300.96037825 366.28697873 300.96037825 309.29157447s46.53753191-103.53293617 103.53293617-103.53293617z m464.32953192 574.66008511H161.87067612c-16.20970213 0-26.14468085-17.77838298-18.30127659-31.37361702L227.75527187 548.25395745c32.41940426-55.94961702 113.46791489-55.94961702 145.88731915 0l38.69412766 67.4532766c16.73259574 29.28204255 59.60987234 27.7133617 74.77378723-2.61446809L613.65076123 349.03148937c23.00731915-48.10621277 90.98348936-48.10621277 113.99080851 0l160.00544681 401.05940425c6.79761702 14.11812766-3.1373617 30.32782979-18.82417021 30.32782979z" ></path></symbol><symbol id="icon-CADliebiao" viewBox="0 0 1024 1024"><path d="M207.872 179.2H121.344c-19.456 0-34.816 15.36-34.816 34.816v86.528c0 19.456 15.36 34.816 34.816 34.816h86.528c19.456 0 34.816-15.872 34.816-34.816V214.016c0-18.944-15.872-34.816-34.816-34.816zM207.872 449.536H121.344c-19.456 0-34.816 15.872-34.816 34.816v86.528c0 19.456 15.36 34.816 34.816 34.816h86.528c19.456 0 34.816-15.36 34.816-34.816V484.352c0-18.944-15.872-34.816-34.816-34.816zM870.4 876.032H373.248c-12.288 0-22.528-10.24-22.528-22.528v-26.624c0-12.288 10.24-22.528 22.528-22.528H870.4c12.288 0 22.528 10.24 22.528 22.528v26.624c0.512 12.288-9.728 22.528-22.528 22.528zM870.4 605.696H373.248c-12.288 0-22.528-10.24-22.528-22.528v-26.624c0-12.288 10.24-22.528 22.528-22.528H870.4c12.288 0 22.528 10.24 22.528 22.528v26.624c0.512 12.288-9.728 22.528-22.528 22.528zM870.4 335.36H373.248c-12.288 0-22.528-10.24-22.528-22.528v-26.624c0-12.288 10.24-22.528 22.528-22.528H870.4c12.288 0 22.528 10.24 22.528 22.528v26.624c0.512 12.288-9.728 22.528-22.528 22.528zM207.872 719.872H121.344c-19.456 0-34.816 15.36-34.816 34.816v86.528c0 19.456 15.36 34.816 34.816 34.816h86.528c19.456 0 34.816-15.36 34.816-34.816v-86.528c0-18.944-15.872-34.816-34.816-34.816z" ></path></symbol><symbol id="icon-CADshujiegou" viewBox="0 0 1024 1024"><path d="M167.936 792.576h198.144c12.8 0 25.6 12.8 25.6 25.6s-12.8 25.6-25.6 25.6H142.336c-12.8 0-25.6-12.8-25.6-25.6V364.032h-18.944c-12.8 0-25.6-12.8-25.6-25.6V242.176c0-12.8 12.8-25.6 25.6-25.6h95.744c12.8 0 25.6 12.8 25.6 25.6v96.256c0 12.8-12.8 25.6-25.6 25.6h-25.6v172.544h198.144c12.8 0 25.6 12.8 25.6 25.6s-12.8 25.6-25.6 25.6H167.936v204.8zM308.736 242.176c0-12.8 12.8-25.6 25.6-25.6h582.656c12.8 0 25.6 12.8 25.6 25.6v96.256c0 12.8-12.8 25.6-25.6 25.6H334.336c-12.8 0-25.6-12.8-25.6-25.6V242.176z m179.2 268.8c0-12.8 12.8-25.6 25.6-25.6h409.6c12.8 0 25.6 12.8 25.6 25.6v96.256c0 12.8-12.8 25.6-25.6 25.6h-409.6c-12.8 0-25.6-12.8-25.6-25.6V510.976z m0 256c0-12.8 12.8-25.6 25.6-25.6h409.6c12.8 0 25.6 12.8 25.6 25.6v96.256c0 12.8-12.8 25.6-25.6 25.6h-409.6c-12.8 0-25.6-12.8-25.6-25.6v-96.256z" ></path></symbol><symbol id="icon-PICbmp" viewBox="0 0 1024 1024"><path d="M750.592 92.672l193.536 194.56v580.096c0 35.84-28.672 64.512-64.512 64.512H166.4c-35.84-1.024-64-30.208-62.976-66.048V157.696c0-35.84 28.672-65.536 64.512-65.536l582.656 0.512z" fill="#4098C8" ></path><path d="M942.592 286.72h-127.488c-35.84 0-64.512-28.672-64.512-64.512V92.16l192 194.56z" fill="#69B8E5" ></path><path d="M160.256 654.336c1.024-13.824 1.536-33.28 1.536-51.2V363.52h35.84v124.416h1.024c12.8-22.528 35.84-36.352 67.584-36.352 49.152 0 83.968 40.96 83.456 100.864 0 71.168-45.056 105.984-89.088 105.984-28.672 0-51.2-11.264-66.56-36.864h-1.024l-2.048 32.768h-30.72z m37.376-79.36c0 4.608 0.512 8.704 1.536 12.8 6.656 25.088 28.16 41.984 54.272 41.984 37.888 0 60.416-30.72 60.416-76.288 0-39.936-20.48-73.728-58.88-73.728-24.576 0-47.104 16.896-54.272 44.032-1.024 4.608-2.048 9.216-2.048 14.848v36.352zM384.512 509.952c0-20.48-0.512-36.864-1.536-53.248h31.232l2.048 31.744h1.024c11.264-18.944 29.696-36.352 62.464-36.352 26.624 0 47.104 16.384 55.808 39.936h1.024c6.144-11.264 14.336-19.968 22.528-25.6 11.776-9.216 25.088-13.824 43.52-13.824 26.624 0 65.536 16.896 65.536 86.016V655.36h-35.328v-112.128c0-38.4-14.336-60.928-43.008-60.928-20.48 0-36.352 14.848-43.008 32.256-1.536 5.12-3.072 11.776-3.072 17.92v122.88h-35.328v-118.784c0-31.744-13.824-54.272-40.96-54.272-22.528 0-38.912 17.92-45.056 35.84-1.536 5.12-2.56 11.776-2.56 17.92V655.36h-35.328V509.952zM716.288 520.704c0-25.088-0.512-46.08-1.536-64.512h32.256l2.048 33.792h1.024c14.336-24.064 37.888-38.4 70.144-38.4 48.128 0 83.968 40.448 83.968 100.352 0 71.168-43.52 106.496-90.112 106.496-26.624 0-49.152-11.776-60.928-31.232h-1.024v108.032h-35.84v-214.528z m35.84 53.248c0 5.12 0.512 10.24 1.536 14.848 6.656 25.088 28.16 42.496 53.76 42.496 38.4 0 60.416-31.232 60.416-76.8 0-39.424-20.48-73.728-58.88-73.728-24.576 0-47.616 17.408-54.272 44.544-1.024 4.608-2.56 9.728-2.56 14.848v33.792z" fill="#FFFFFF" ></path></symbol><symbol id="icon-PICcal" viewBox="0 0 1024 1024"><path d="M738.304 93.696l193.536 194.56v580.096c0 35.84-28.672 64.512-64.512 64.512H154.112c-35.84-1.024-64-30.208-62.976-66.048V159.232c0-35.84 28.672-65.536 64.512-65.536h582.656z" fill="#997D79" ></path><path d="M930.304 287.744h-127.488c-35.84 0-64.512-28.672-64.512-64.512V93.184l192 194.56z" fill="#C3A39E" ></path><path d="M394.14848222 720.182138c-12.5932683 5.96523235-39.10541211 14.58167909-73.57119905 14.58167909-77.54802062 0-127.92109385-52.361484-127.92109385-131.23511183s53.6870912-136.53754059 137.86314778-136.53754057c27.17494739 0 52.361484 7.29083955 64.95475231 13.91887549l-10.60485751 35.79139414c-11.26766112-5.96523235-29.16335819-12.5932683-54.3498948-12.59326831-58.32671636 0-90.80409253 43.74503728-90.14128894 97.43212848 0 59.65232355 38.44260851 96.10652128 89.47848534 96.10652128 25.84934021 0 43.74503728-6.62803595 57.00110917-12.5932683l7.29083955 35.12859053zM604.25722185 729.46138832l-3.97682157-32.47737615h-1.32560718c-13.9188755 19.88410785-41.75662649 38.44260851-78.21082422 38.44260852-51.69868042 0-78.21082421-36.45419773-78.21082423-73.57119905 0-62.30353794 55.0126984-96.10652128 154.43323766-95.44371769v-5.30242877c0-20.54691145-5.96523235-59.65232355-58.32671637-58.98951996-23.86092942 0-49.04746604 7.29083955-66.9431631 19.22130425L460.42884172 489.52648692c21.20971504-13.9188755 52.361484-22.53532223 84.83886018-22.53532223 78.21082421 0 97.43212848 53.6870912 97.43212847 104.72296802v96.10652128c0 21.87251863 0.66280359 43.74503728 3.97682157 61.64073433h-42.41943009z m-7.29083954-131.23511182c-50.37307323-1.3256072-108.03698599 7.95364315-108.03698601 57.66391278 0 30.48896537 19.88410785 44.40784087 43.74503728 44.40784086 33.80298335 0 55.0126984-21.20971504 62.30353794-43.08223368 1.3256072-4.63962516 1.98841078-9.94205392 1.98841079-14.58167909v-44.40784087zM730.85270852 352.98894633h46.39625164v376.47244199h-46.39625164V352.98894633z" fill="#FFFFFF" ></path></symbol><symbol id="icon-PICdwg" viewBox="0 0 1024 1024"><path d="M749.056 92.672l193.536 194.56v580.096c0 35.84-28.672 64.512-64.512 64.512H164.864c-35.84-1.024-64-30.208-62.976-66.048V157.696c0-35.84 28.672-65.536 64.512-65.536l582.656 0.512z" fill="#1BA5EA" ></path><path d="M941.568 286.72H814.08c-35.84 0-64.512-28.672-64.512-64.512V92.16l192 194.56z" fill="#4CCBF2" ></path><path d="M349.05043478 357.06434783v250.03408695c0 18.16486957 0.53426087 39.00104348 1.60278261 53.42608696h-33.65843478l-2.13704348-35.79547826H314.32347826c-11.75373913 22.97321739-36.32973913 40.60382609-69.98817391 40.60382609-50.22052174 0-88.68730435-42.2066087-88.68730435-105.24939131-0.53426087-68.91965217 42.74086957-111.12626087 92.9613913-111.12626087 31.5213913 0 52.89182609 14.95930435 62.50852174 31.52139131h1.06852174V357.06434783h36.864z m-37.39826087 181.11443478c0-4.80834783-0.53426087-11.21947826-1.60278261-16.02782609-5.87686957-23.50747826-26.17878261-43.27513043-54.49460869-43.27513043-39.00104348 0-61.97426087 34.19269565-61.97426087 79.60486956 0 42.2066087 20.83617391 76.93356522 61.44 76.93356522 25.11026087 0 48.08347826-17.09634783 55.02886956-44.87791304 1.60278261-4.80834783 1.60278261-10.15095652 1.60278261-16.02782609v-36.32973913zM415.29878261 453.76556522l27.78156522 104.71513043c5.87686957 22.97321739 11.21947826 44.87791304 15.49356521 65.71408696h1.06852174c4.80834783-20.83617391 11.21947826-43.27513043 18.69913044-65.71408696L512 453.23130435h31.5213913l32.05565218 103.11234782c7.47965217 24.576 13.35652174 46.48069565 18.16486956 67.31686957h1.06852174c3.73982609-20.83617391 9.08243478-42.74086957 16.02782609-67.31686957l29.38434783-103.64660869h36.864l-66.7826087 206.75895652H576.11130435l-31.52139131-98.83826087c-7.47965217-22.97321739-13.35652174-43.8093913-18.16486956-68.3853913h-1.06852174c-5.3426087 25.11026087-11.75373913 46.48069565-18.69913044 68.3853913l-33.12417391 98.304h-34.19269565L377.36626087 453.76556522h37.93252174zM879.03721739 453.76556522c-1.06852174 14.42504348-1.60278261 31.5213913-1.60278261 56.63165217v120.20869565c0 48.08347826-9.61669565 76.39930435-29.38434782 94.56417392-20.30191304 18.69913043-49.152 24.576-75.33078261 24.576-25.11026087 0-52.35756522-5.87686957-68.91965218-17.09634783l9.61669566-28.85008696c13.89078261 8.54817391 35.26121739 16.56208696 60.90573913 16.56208696 38.46678261 0 66.7826087-20.30191304 66.78260869-72.65947826v-22.97321739h-1.06852174c-11.21947826 19.2333913-33.65843478 34.72695652-65.71408695 34.72695652-51.28904348 0-88.15304348-43.8093913-88.15304348-100.97530435 0-69.98817391 45.41217391-109.52347826 93.49565217-109.52347826 35.79547826 0 55.02886957 18.69913043 64.64556522 35.79547826h1.06852174l1.60278261-30.98713043h32.05565217z m-39.53530435 81.20765217c0-6.41113043-0.53426087-11.75373913-2.13704347-16.56208696-6.9453913-21.90469565-25.11026087-40.06956522-52.89182609-40.06956521-35.79547826 0-61.44 30.45286957-61.44 78.53634782 0 40.60382609 20.83617391 74.26226087 61.44 74.26226087 23.50747826 0 44.34365217-14.95930435 52.35756522-39.00104348 2.13704348-5.87686957 3.20556522-13.35652174 3.20556521-19.76765217v-37.39826087z" fill="#FFFFFF" ></path></symbol><symbol id="icon-PICecw" viewBox="0 0 1024 1024"><path d="M743.424 93.696l193.536 194.56v580.096c0 35.84-28.672 64.512-64.512 64.512H159.232c-35.84-1.024-64-30.208-62.976-66.048V159.232c0-35.84 28.672-65.536 64.512-65.536h582.656z" fill="#3E9291" ></path><path d="M935.424 287.744h-127.488c-35.84 0-64.512-28.672-64.512-64.512V93.184l192 194.56z" fill="#66C3C3" ></path><path d="M216.54186667 583.54346667c0.54613333 51.88266667 33.86026667 73.18186667 72.0896 73.18186666 27.30666667 0 44.2368-4.9152 58.43626666-10.92266666l6.5536 27.30666666c-13.65333333 6.00746667-37.13706667 13.65333333-70.4512 13.65333334-64.98986667 0-103.76533333-43.14453333-103.76533333-106.496 0-63.8976 37.6832-114.14186667 99.39626667-114.14186667 68.8128 0 86.8352 60.6208 86.8352 99.39626667 0 8.192-0.54613333 13.65333333-1.09226667 18.0224H216.54186667z m112.50346666-27.8528c0.54613333-24.02986667-9.8304-62.2592-52.97493333-62.2592-39.3216 0-55.7056 35.49866667-58.9824 62.2592h111.95733333zM554.05226667 674.74773333c-10.37653333 4.9152-32.22186667 12.01493333-60.6208 12.01493334-63.8976 0-105.40373333-43.14453333-105.40373334-108.1344s44.2368-112.50346667 113.59573334-112.50346667c22.39146667 0 43.14453333 6.00746667 53.52106666 11.4688l-8.73813333 29.4912c-9.28426667-4.9152-24.02986667-10.37653333-44.78293333-10.37653333-48.05973333 0-74.82026667 36.0448-74.27413334 80.2816 0 49.152 31.67573333 79.18933333 73.728 79.18933333 21.2992 0 36.0448-5.46133333 46.96746667-10.37653333l6.00746667 28.94506666zM610.85013333 471.04l28.39893334 107.04213333c6.00746667 23.48373333 11.4688 45.8752 15.83786666 67.1744h1.09226667c4.9152-21.2992 11.4688-44.2368 19.11466667-67.1744l34.4064-107.58826666h32.22186666l32.768 105.40373333c7.64586667 25.12213333 13.65333333 47.5136 18.56853334 68.8128h1.09226666c3.82293333-21.2992 9.28426667-43.69066667 16.384-68.8128l30.03733334-105.94986667h37.6832L810.1888 681.30133333h-34.95253333l-32.22186667-101.03466666c-7.64586667-23.48373333-13.65333333-44.78293333-18.56853333-69.90506667h-1.09226667c-5.46133333 25.66826667-12.01493333 47.5136-19.11466667 69.90506667l-33.86026666 100.48853333h-34.95253334l-63.8976-211.3536h39.3216z" fill="#FFFFFF" ></path></symbol><symbol id="icon-PICgif" viewBox="0 0 1024 1024"><path d="M753.152 92.672l193.536 194.56v580.096c0 35.84-28.672 64.512-64.512 64.512H168.96c-35.84-1.024-64-30.208-62.976-66.048V157.696c0-35.84 28.672-65.536 64.512-65.536l582.656 0.512z" fill="#3C6488" ></path><path d="M945.152 286.72h-127.488c-35.84 0-64.512-28.672-64.512-64.512V92.16l192 194.56z" fill="#5A89B5" ></path><path d="M494.52373333 448.50289778c-1.16508445 15.72864-1.74762667 34.36999111-1.74762666 61.74947555v131.072c0 52.4288-10.48576 83.30353778-32.03982222 103.10997334-22.13660445 20.38897778-53.59388445 26.79694222-82.13845334 26.79694222-27.37948445 0-57.08913778-6.40796445-75.14794666-18.64135111l10.48576-31.45728c15.14609778 9.32067555 38.44778667 18.05880889 66.40981333 18.05880889 41.94304 0 72.81777778-22.13660445 72.81777777-79.22574222v-25.04931556h-1.16508444c-12.23338667 20.97152-36.70016 37.86524445-71.65269333 37.86524444-55.92405333 0-96.11946667-47.76846222-96.11946667-110.10048 0-76.31303111 49.51608889-119.42115555 101.94488889-119.42115555 39.03032889 0 60.00184889 20.38897778 70.48760889 39.03032889h1.16508444l1.74762667-33.78744889h34.95253333z m-43.10812444 88.54641777c0-6.99050667-0.58254222-12.81592889-2.33016889-18.05880888-7.57304889-23.88423111-27.37948445-43.69066667-57.67168-43.69066667-39.03032889 0-66.99235555 33.20490667-66.99235555 85.63370667 0 44.27320889 22.71914667 80.97336889 66.99235555 80.97336888 25.63185778 0 48.35100445-16.31118222 57.08913778-42.52558222 2.33016889-6.40796445 3.49525333-14.56355555 3.49525333-21.55406222v-40.77795556zM603.45912889 385.00579555c0 13.98101333-9.90321778 25.63185778-26.2144 25.63185778-14.56355555 0-25.04931555-11.65084445-24.46677334-25.63185778 0-13.98101333 10.48576-25.63185778 25.63185778-25.63185777 15.14609778 0 25.04931555 11.06830222 25.04931556 25.63185777z m-46.02083556 288.94094223V448.50289778h40.77795556v225.44384h-40.77795556zM670.45148445 673.94673778V479.37763555h-31.45728v-30.87473777h31.45728v-11.06830223c0-32.03982222 7.57304889-60.58439111 26.2144-79.22574222 15.14609778-15.14609778 36.11761778-20.97152 54.75896888-20.97152 15.14609778 0 27.37948445 2.91271111 34.95253334 6.40796445l-5.24288 31.45728c-6.40796445-2.91271111-13.98101333-5.24288-26.2144-5.24288-34.36999111 0-43.69066667 30.87473778-43.69066667 65.24472889v12.23338666h54.17642667v30.87473778h-54.17642667v194.56910222h-40.77795555z" fill="#FFFFFF" ></path></symbol><symbol id="icon-PICj2k" viewBox="0 0 1024 1024"><path d="M739.84 93.696l193.536 194.56v580.096c0 35.84-28.672 64.512-64.512 64.512H156.16c-35.84-1.024-64-30.208-62.976-66.048V159.232c0-35.84 28.672-65.536 64.512-65.536h582.144z" fill="#1F91D2" ></path><path d="M932.352 287.744h-127.488c-35.84 0-64.512-28.672-64.512-64.512V93.184l192 194.56z" fill="#61B5E5" ></path><path d="M226.55431111 758.99790222c19.22389333-1.16508445 34.95253333-6.40796445 44.85575111-17.47626667 11.06830222-12.81592889 15.72864-30.29219555 15.72864-84.46862222V468.30933333h40.77795556v204.47232c0 43.69066667-6.99050667 72.23523555-26.79694223 93.20675556-18.05880889 18.05880889-47.76846222 25.63185778-69.90506666 25.63185778l-4.66033778-32.62236445z m106.02268444-354.76821333c0 13.98101333-9.32067555 25.63185778-26.2144 25.63185778-15.14609778 0-25.04931555-11.65084445-25.04931555-25.63185778 0-13.98101333 10.48576-25.63185778 25.63185778-25.63185778 15.72864 0.58254222 25.63185778 11.65084445 25.63185777 25.63185778zM382.09308445 693.75317333v-25.04931555l32.03982222-31.45728c77.47811555-73.98286222 112.43064889-113.01319111 113.01319111-159.03402667 0-30.87473778-14.56355555-59.41930667-59.41930667-59.41930666-27.96202667 0-50.09863111 13.98101333-64.66218666 25.63185777L389.66613333 416.46307555c20.97152-17.47626667 50.68117333-30.87473778 85.63370667-30.87473777 65.24472889 0 92.62421333 44.85575111 92.62421333 87.96387555 0 56.50659555-40.77795555 101.36234667-104.27505778 162.52928l-23.8842311 22.71914667v1.16508445h135.73233777v33.78744888H382.09308445zM675.11182222 571.41930667h1.16508445c5.24288-8.15559111 13.39847111-18.05880889 19.80643555-25.63185778L762.49315555 468.30933333h49.5160889l-86.79879112 92.62421334 99.03217778 132.81962666H774.144l-77.47811555-108.35285333-20.97152 23.30168889v85.05116444h-40.77795556V362.86919111h40.77795556v208.55011556z" fill="#FFFFFF" ></path></symbol><symbol id="icon-PICjp2" viewBox="0 0 1024 1024"><path d="M741.376 93.696l193.536 194.56v580.096c0 35.84-28.672 64.512-64.512 64.512H157.696c-35.84-1.024-64-30.208-62.976-66.048V159.232c0-35.84 28.672-65.536 64.512-65.536h582.144z" fill="#71798E" ></path><path d="M933.888 287.744h-127.488c-35.84 0-64.512-28.672-64.512-64.512V93.184l192 194.56z" fill="#96A2C1" ></path><path d="M209.07804445 737.66456889c19.22389333-1.16508445 34.95253333-6.40796445 44.8557511-17.47626667 11.06830222-12.81592889 15.72864-30.29219555 15.72864-84.46862222V446.976h40.77795556v204.47232c0 43.69066667-6.99050667 72.23523555-26.79694222 93.20675556-18.05880889 18.05880889-47.76846222 25.63185778-69.90506667 25.63185778l-4.66033777-32.62236445z m106.02268444-354.18567111c0 13.98101333-9.32067555 25.63185778-26.2144 25.63185778-15.14609778 0-25.04931555-11.65084445-25.04931556-25.63185778 0-13.98101333 10.48576-25.63185778 25.63185778-25.63185778 16.31118222 0 25.63185778 11.06830222 25.63185778 25.63185778zM377.43274667 520.37632c0-28.54456889-0.58254222-52.4288-1.74762667-73.40032h36.70016l2.33016889 38.44778667h1.16508444c16.31118222-27.37948445 43.10812445-43.69066667 79.80828445-43.69066667 54.75896889 0 95.53692445 46.02083555 95.53692444 114.17827556 0 80.97336889-49.51608889 121.16878222-102.52743111 121.16878222-30.29219555 0-55.92405333-13.39847111-69.32252444-35.53507556h-1.16508445V764.46151112h-40.77795555v-244.08519112z m40.77795555 60.00184889c0 5.82542222 0.58254222 11.65084445 1.74762667 16.89372445 7.57304889 28.54456889 32.03982222 48.35100445 61.16693333 48.35100444 43.69066667 0 68.73998222-35.53507555 68.73998223-87.38133333 0-44.85575111-23.30168889-83.88608-66.99235556-83.88608-27.96202667 0-54.17642667 19.80643555-61.74947556 50.68117333-1.16508445 5.24288-2.91271111 11.06830222-2.91271111 16.89372444v38.44778667zM629.67352889 672.41984v-25.04931555l32.03982222-31.45728c77.47811555-73.98286222 112.43064889-113.01319111 113.01319111-159.03402667 0-30.87473778-14.56355555-59.41930667-59.41930667-59.41930666-27.96202667 0-50.09863111 13.98101333-64.66218666 25.63185777l-12.81592889-28.54456889c20.97152-17.47626667 50.68117333-30.87473778 85.63370667-30.87473778 65.24472889 0 92.62421333 44.85575111 92.62421333 87.96387556 0 56.50659555-40.77795555 101.36234667-104.27505778 162.52928l-23.88423111 22.71914667v1.16508444h135.73233778v33.78744889h-193.98656z" fill="#FFFFFF" ></path></symbol><symbol id="icon-PICjpg" viewBox="0 0 1024 1024"><path d="M751.616 92.672l193.536 194.56v580.096c0 35.84-28.672 64.512-64.512 64.512H167.424c-35.84-1.024-64-30.208-62.976-66.048V157.696C104.448 121.856 133.12 92.16 168.96 92.16l582.656 0.512z" fill="#4FB386" ></path><path d="M944.128 286.72h-127.488c-35.84 0-64.512-28.672-64.512-64.512V92.16l192 194.56z" fill="#76DFB3" ></path><path d="M216.59471828 721.19604301c18.60376774-1.12750108 33.82503226-6.20125592 43.4087914-16.91251613 10.71126021-12.40251182 15.22126452-29.31502795 15.22126451-81.74382796V439.88452473h39.46253763v197.87643871c0 42.28129032-6.76500645 69.90506666-25.93252472 90.20008602-17.47626666 17.47626666-46.22754408 24.80502366-67.65006452 24.80502366l-4.5100043-31.57003011z m102.60259785-342.76032689c0 13.5300129-9.0200086 24.80502366-25.36877419 24.80502366-14.65751398 0-24.24127311-11.27501076-24.24127312-24.80502366 0-13.5300129 10.14750968-24.80502366 24.80502365-24.80502365 15.22126452 0 24.80502366 11.27501076 24.80502366 24.80502365zM379.51862366 510.91709247c0-27.62377634-0.56375053-50.73754839-1.69125161-71.03256774h35.51628387l2.25500214 37.20753549h1.12750108c15.78501505-26.49627527 41.71753979-42.28129032 77.23382365-42.28129033 52.99255053 0 92.45508818 44.53629247 92.45508818 110.49510538 0 78.36132473-47.9187957 117.26011182-99.22009463 117.26011182-29.31502795 0-54.12005161-12.96626237-67.08631397-34.38878279h-1.12750108v118.95136344h-39.46253763v-236.21147527z m39.46253763 58.63005591c0 5.63750537 0.56375053 11.27501076 1.69125161 16.3487656 7.32875699 27.62377634 31.00627957 46.79129463 59.19380645 46.79129462 42.28129032 0 66.52256344-34.38878279 66.52256344-84.56258064 0-43.4087914-22.5500215-81.18007742-64.83131182-81.18007742-27.06002581 0-52.4288 19.16751828-59.75755699 49.04629677-1.12750108 5.07375484-2.81875269 10.71126021-2.81875269 16.34876559v37.20753548zM825.44529892 439.88452473c-1.12750108 15.22126452-1.69125161 33.26128172-1.69125161 59.75755699v126.84387096c0 50.73754839-10.14750968 80.61632689-31.00627957 99.78384517-21.42252043 19.73126882-51.86504947 25.93252473-79.4888258 25.93252472-26.49627527 0-55.24755269-6.20125592-72.72381936-18.04001719l10.14750968-30.44252904c14.65751398 9.0200086 37.20753548 17.47626666 64.26756129 17.47626667 40.59003871 0 70.46881721-21.42252043 70.46881721-76.67007312v-24.24127312h-1.12750108c-11.83876129 20.29501935-35.51628387 36.64378495-69.34131613 36.64378495-54.12005161 0-93.01883871-46.22754408-93.01883871-106.54885162 0-73.85132043 47.9187957-115.56886021 98.65634408-115.56886021 37.77128602 0 58.06630537 19.73126882 68.21381506 37.77128602h1.12750107l1.69125161-32.69753118h33.82503226z m-41.15378924 85.69008171c0-6.76500645-0.56375053-12.40251182-2.25500215-17.47626666-7.32875699-23.11377205-26.49627527-42.28129032-55.81130323-42.28129032-37.77128602 0-64.83131182 32.13378065-64.83131183 82.87132903 0 42.84504086 21.98627097 78.36132473 64.83131183 78.36132473 24.80502366 0 46.79129463-15.78501505 55.24755269-41.15378924 2.25500215-6.20125592 3.38250323-14.09376344 3.38250322-20.85876989v-39.46253765z" fill="#FFFFFF" ></path></symbol><symbol id="icon-PICpcx" viewBox="0 0 1024 1024"><path d="M752.128 93.696l193.536 194.56v580.096c0 35.84-28.672 64.512-64.512 64.512H168.448c-35.84-1.024-64-30.208-62.976-66.048V159.232c0-35.84 28.672-65.536 64.512-65.536h582.144z" fill="#5975A5" ></path><path d="M944.64 287.744h-127.488c-35.84 0-64.512-28.672-64.512-64.512V93.184l192 194.56z" fill="#7C99D0" ></path><path d="M250.9824 518.51946667c0-26.76053333-0.54613333-49.152-1.6384-68.8128h34.4064l2.18453333 36.0448h1.09226667c15.29173333-25.66826667 40.41386667-40.96 74.82026666-40.96 51.33653333 0 89.56586667 43.14453333 89.56586667 107.04213333 0 75.91253333-46.42133333 113.59573333-96.11946667 113.59573334-28.39893333 0-52.4288-12.56106667-64.98986666-33.31413334h-1.09226667V747.34933334h-38.22933333v-228.82986667z m38.22933333 56.25173333c0 5.46133333 0.54613333 10.92266667 1.6384 15.83786667 7.09973333 26.76053333 30.03733333 45.32906667 57.344 45.32906667 40.96 0 64.44373333-33.31413333 64.44373333-81.92 0-42.05226667-21.84533333-78.6432-62.80533333-78.6432-26.2144 0-50.7904 18.56853333-57.89013333 47.5136-1.09226667 4.9152-2.73066667 10.37653333-2.73066667 15.83786666v36.0448zM650.752 653.4144c-10.37653333 4.9152-32.22186667 12.01493333-60.6208 12.01493334-63.8976 0-105.40373333-43.14453333-105.40373334-108.1344s44.2368-112.50346667 113.59573334-112.50346667c22.39146667 0 43.14453333 6.00746667 53.52106666 11.4688l-8.73813333 29.4912c-9.28426667-4.9152-24.02986667-10.37653333-44.78293333-10.37653333-48.05973333 0-74.82026667 36.0448-74.27413334 80.2816 0 49.152 31.67573333 79.18933333 73.728 79.18933333 21.2992 0 36.0448-5.46133333 46.96746667-10.37653333l6.00746667 28.94506666zM713.55733333 449.70666667l30.03733333 45.32906667c8.192 12.01493333 14.7456 22.39146667 21.2992 34.4064h1.09226667c7.09973333-12.56106667 14.19946667-23.48373333 21.2992-34.95253334l29.4912-44.78293333h42.05226667l-72.0896 102.12693333 74.27413333 109.22666667h-43.69066667l-31.1296-47.5136c-8.192-12.01493333-15.29173333-24.02986667-22.39146666-36.59093333h-1.09226667c-7.09973333 13.1072-14.19946667 24.02986667-22.39146667 36.59093333l-30.58346666 47.5136h-42.5984l75.3664-107.58826667-71.54346667-103.2192h42.5984z" fill="#FFFFFF" ></path></symbol><symbol id="icon-PICpng" viewBox="0 0 1024 1024"><path d="M738.304 93.696l193.536 194.56v580.096c0 35.84-28.672 64.512-64.512 64.512H154.112c-35.84-1.024-64-30.208-62.976-66.048V159.232c0-35.84 28.672-65.536 64.512-65.536h582.656z" fill="#78BD6D" ></path><path d="M930.304 287.744h-127.488c-35.84 0-64.512-28.672-64.512-64.512V93.184l192 194.56z" fill="#90D485" ></path><path d="M189.78133333 529.18613333c0-26.76053333-0.54613333-49.152-1.6384-68.8128H222.54933333l2.18453334 36.0448h1.09226666c15.29173333-25.66826667 40.41386667-40.96 74.82026667-40.96 51.33653333 0 89.56586667 43.14453333 89.56586667 107.04213333 0 75.91253333-46.42133333 113.59573333-96.11946667 113.59573334-28.39893333 0-52.4288-12.56106667-64.98986667-33.31413334H228.01066667V758.016h-38.22933334v-228.82986667z m38.22933334 56.25173333c0 5.46133333 0.54613333 10.92266667 1.6384 15.83786667 7.09973333 26.76053333 30.03733333 45.32906667 57.344 45.32906667 40.96 0 64.44373333-33.31413333 64.44373333-81.92 0-42.05226667-21.84533333-78.6432-62.80533333-78.6432-26.2144 0-50.7904 18.56853333-57.89013334 47.5136-1.09226667 4.9152-2.73066667 10.37653333-2.73066666 15.83786666v36.0448zM427.89546667 517.1712c0-21.84533333-0.54613333-39.3216-1.6384-56.79786667h33.86026666l2.18453334 34.95253333h0.54613333c10.37653333-19.6608 34.95253333-39.3216 69.90506667-39.3216 28.94506667 0 74.27413333 17.47626667 74.27413333 90.112v126.1568h-38.22933333V550.48533333c0-34.4064-13.1072-62.80533333-48.60586667-62.80533333-25.12213333 0-44.78293333 18.0224-51.88266667 39.3216-1.6384 4.9152-2.73066667 11.4688-2.73066666 18.0224v127.24906666h-38.22933334v-155.10186666zM841.3184 460.37333333c-1.09226667 14.7456-1.6384 32.22186667-1.6384 57.89013333v122.88c0 49.152-9.8304 78.09706667-30.03733333 96.6656-20.75306667 19.11466667-50.24426667 25.12213333-77.0048 25.12213334-25.66826667 0-53.52106667-6.00746667-70.4512-17.47626667l9.8304-29.4912c14.19946667 8.73813333 36.0448 16.93013333 62.2592 16.93013333 39.3216 0 68.26666667-20.75306667 68.26666666-74.27413333v-23.48373333h-1.09226666c-11.4688 19.6608-34.4064 35.49866667-67.1744 35.49866666-52.4288 0-90.112-44.78293333-90.112-103.2192 0-71.54346667 46.42133333-111.95733333 95.57333333-111.95733333 36.59093333 0 56.25173333 19.11466667 66.08213333 36.59093333h1.09226667l1.6384-31.67573333h32.768z m-39.86773333 83.01226667c0-6.5536-0.54613333-12.01493333-2.18453334-16.93013334-7.09973333-22.39146667-25.66826667-40.96-54.0672-40.96-36.59093333 0-62.80533333 31.1296-62.80533333 80.2816 0 41.50613333 21.2992 75.91253333 62.80533333 75.91253334 24.02986667 0 45.32906667-15.29173333 53.52106667-39.86773334 2.18453333-6.00746667 3.2768-13.65333333 3.2768-20.20693333v-38.22933333z" fill="#FFFFFF" ></path></symbol><symbol id="icon-PICtga" viewBox="0 0 1024 1024"><path d="M743.424 93.696l193.536 194.56v580.096c0 35.84-28.672 64.512-64.512 64.512H159.232c-35.84-1.024-64-30.208-62.976-66.048V159.232c0-35.84 28.672-65.536 64.512-65.536h582.656z" fill="#A57049" ></path><path d="M935.424 287.744h-127.488c-35.84 0-64.512-28.672-64.512-64.512V93.184l192 194.56z" fill="#C6916A" ></path><path d="M303.22915555 382.31381334v64.66218666h58.83676445v30.87473778H303.22915555v121.75132444c0 27.96202667 8.15559111 43.69066667 30.87473778 43.69066667 10.48576 0 18.64135111-1.16508445 23.88423111-2.91271111l1.74762667 30.87473778c-8.15559111 2.91271111-20.97152 5.82542222-36.70016 5.82542222-18.64135111 0-34.36999111-6.40796445-44.27320889-17.47626666-11.06830222-12.23338667-15.72864-32.03982222-15.72864-58.83676445V477.85073778h-34.95253334v-30.87473778h34.95253334v-54.17642666l40.19541333-10.48576zM599.74314666 446.976c-1.16508445 15.72864-1.74762667 34.36999111-1.74762666 61.74947556v131.072c0 52.4288-10.48576 83.30353778-32.03982222 103.10997333-22.13660445 20.38897778-53.59388445 26.79694222-82.13845334 26.79694223-27.37948445 0-57.08913778-6.40796445-75.14794666-18.64135112l10.48576-31.45728c15.14609778 9.32067555 38.44778667 18.05880889 66.40981333 18.05880889 41.94304 0 72.81777778-22.13660445 72.81777777-79.22574222v-25.04931555h-1.74762666c-12.23338667 20.97152-36.70016 37.86524445-71.65269334 37.86524444-55.92405333 0-96.11946667-47.76846222-96.11946666-110.10048 0-76.31303111 49.51608889-119.42115555 101.94488889-119.42115556 39.03032889 0 60.00184889 20.38897778 70.48760889 39.03032889h1.16508444l1.74762667-33.78744889h35.53507555z m-42.52558222 88.54641778c0-6.99050667-0.58254222-12.81592889-2.33016889-18.05880889-7.57304889-23.88423111-27.37948445-43.69066667-57.67168-43.69066667-39.03032889 0-66.99235555 33.20490667-66.99235555 85.63370667 0 44.27320889 22.71914667 80.97336889 66.99235555 80.97336889 25.63185778 0 48.35100445-16.31118222 57.08913778-42.52558222 2.33016889-6.40796445 3.49525333-14.56355555 3.49525333-21.55406222v-40.77795556zM790.81699555 672.41984l-3.49525333-28.54456888h-1.16508444c-12.23338667 17.47626667-36.70016 33.78744889-68.73998223 33.78744888-45.43829333 0-68.73998222-32.03982222-68.73998222-64.66218666 0-54.75896889 48.35100445-84.46862222 135.73233778-83.88608v-4.66033778c0-18.05880889-5.24288-52.4288-51.26371556-51.84625778-20.97152 0-43.10812445 6.40796445-58.83676444 16.89372444l-9.32067556-27.37948444c18.64135111-12.23338667 46.02083555-19.80643555 74.56540445-19.80643556 68.73998222 0 85.63370667 47.18592 85.63370666 92.04167112V618.82595556c0 19.22389333 0.58254222 38.44778667 3.49525334 54.17642666h-37.86524445z m-6.40796444-115.34336c-44.27320889-1.16508445-94.95438222 6.99050667-94.95438223 50.68117334 0 26.79694222 17.47626667 39.03032889 38.44778667 39.03032888 29.70965333 0 48.35100445-18.64135111 54.75896889-37.86524444 1.16508445-4.07779555 1.74762667-8.73813333 1.74762667-12.81592889v-39.03032889z" fill="#FFFFFF" ></path></symbol><symbol id="icon-PICtif" viewBox="0 0 1024 1024"><path d="M753.152 92.672l193.536 194.56v580.096c0 35.84-28.672 64.512-64.512 64.512H168.96c-35.84-1.024-64-30.208-62.976-66.048V157.696c0-35.84 28.672-65.536 64.512-65.536l582.656 0.512z" fill="#2786A2" ></path><path d="M945.152 286.72h-127.488c-35.84 0-64.512-28.672-64.512-64.512V92.16l192 194.56z" fill="#5CABC4" ></path><path d="M381.53668613 380.0745253v83.70767536h76.16644335v39.96852968H381.53668613v157.61174912c0 36.19791367 10.55772482 56.55924012 39.96852969 56.55924011 13.57421762 0 24.13194244-1.50824641 30.91905127-3.77061602l2.26236959 39.96852968c-10.55772482 3.770616-27.14843525 7.54123201-47.50976168 7.54123201-24.13194244 0-44.49326889-8.29535522-57.31336332-22.62369603-14.32834082-15.83658723-20.36132644-41.47677609-20.36132644-76.16644335V503.75073034h-45.24739209v-39.96852968h45.24739209v-70.13345775l52.03450089-13.57421761zM577.60871853 381.58277169c0 18.09895683-12.82009443 33.18142087-33.93554407 33.18142086-18.85308003 0-32.42729765-15.08246403-31.67317446-33.18142086 0-18.09895683 13.57421762-33.18142087 33.18142087-33.18142085 18.85308003 0 32.42729765 14.32834082 32.42729766 33.18142085z m-59.57573291 374.04510795V463.78220066h52.7886241v291.84567898h-52.7886241zM664.33288671 755.62787964V503.75073034h-40.72265289v-39.96852968h40.72265289v-14.32834083c0-41.47677609 9.80360162-78.42881296 33.93554406-102.5607554 19.60720323-19.60720323 46.7556385-27.14843525 70.88758094-27.14843526 19.60720323 0 35.44379047 3.770616 45.24739209 8.29535522l-6.78710882 40.72265289c-8.29535522-3.770616-18.09895683-6.78710881-33.93554406-6.78710882-44.49326889 0-56.55924012 39.96852969-56.5592401 84.46179856v15.83658724h70.13345771v39.96852968h-70.13345771v251.87714929h-52.78862411z" fill="#FFFFFF" ></path></symbol><symbol id="icon-gezha" viewBox="0 0 1024 1024"><path d="M857.6 78.336h-696.32c-39.936 0-73.728 33.792-73.728 73.728v702.464c0 39.936 33.792 73.728 73.728 73.728h695.808c39.936 0 73.728-33.792 73.728-73.728V152.576c0.512-40.448-33.28-74.24-73.216-74.24z m10.24 74.24v177.152h-187.904V141.824h177.152c6.656 0 10.752 6.144 10.752 10.752z m-467.968 459.776V392.704h217.088v219.136H399.872z m217.088 62.976v192H399.872v-192h217.088z m-280.576-62.976H151.04V392.704h185.344v219.648z m63.488-282.624V141.824h217.088v187.904H399.872z m280.576 62.976h187.904v219.136h-187.904V392.704z m-519.168-250.88h175.104v187.904H151.04V152.576c0-4.608 4.096-10.752 10.24-10.752z m-10.24 714.752v-181.248h185.344v192H161.28c-6.144 0-10.24-6.144-10.24-10.752z m706.56 10.752h-177.152v-192h187.904v181.248c-0.512 4.608-4.608 10.752-10.752 10.752z" ></path></symbol><symbol id="icon-buju" viewBox="0 0 1024 1024"><path d="M912.896 119.46666667H111.104c-17.408 0-31.744 14.336-31.744 31.744v725.504c0 17.408 14.336 31.744 31.744 31.744h802.304c17.408 0 31.744-14.336 31.744-31.744V151.21066667c-0.512-17.408-14.848-31.744-32.256-31.744zM325.12 844.97066667H142.336V387.24266667h182.784v457.728z m556.544 0H388.096V387.24266667h493.056v457.728z m0-520.704H142.336V182.44266667h738.816v141.824z" ></path></symbol><symbol id="icon-xiankuan" viewBox="0 0 1024 1024"><path d="M73.216 188.928h870.4v72.704h-870.4V188.928z m0 185.856h870.4v144.896h-870.4V374.784z m870.4 258.048h-870.4v217.6h870.4v-217.6z" ></path></symbol><symbol id="icon-wo" viewBox="0 0 1024 1024"><path d="M911.872 944.64c0 7.68-6.144 13.824-13.824 13.824H134.144c-7.68 0-13.824-6.144-13.824-13.824 0-1.024 0-2.048 0.512-3.072 7.168-165.376 115.712-304.128 265.216-356.352l122.88 122.88c4.096 4.096 11.264 4.096 15.36 0l122.88-122.88c149.504 52.224 258.048 190.976 265.216 356.352-1.024 1.024-0.512 2.048-0.512 3.072zM516.096 563.2c-131.072 0-237.568-105.984-237.568-237.568s105.984-237.056 237.568-237.056 237.568 105.984 237.568 237.056-106.496 237.568-237.568 237.568z" ></path></symbol><symbol id="icon-gengduocaozuo" viewBox="0 0 1024 1024"><path d="M512 81.59166667a93.75 93.75 0 0 0-93.75 93.75 93.75 93.75 0 0 0 93.75 93.75 93.75 93.75 0 0 0 93.75-93.75A93.75 93.75 0 0 0 512 81.59166667z m-93.75 750a93.75 93.75 0 0 0 93.75 93.75 93.75 93.75 0 0 0 93.75-93.75 93.75 93.75 0 0 0-93.75-93.75 93.75 93.75 0 0 0-93.75 93.75z m0-328.125A93.75 93.75 0 0 0 512 597.21666667 93.75 93.75 0 0 0 605.75 503.46666667 93.75 93.75 0 0 0 512 409.71666667 93.75 93.75 0 0 0 418.25 503.46666667z" ></path></symbol><symbol id="icon-MOBxinzeng" viewBox="0 0 1024 1024"><path d="M892.653 566.611h-326.25v327.686c0 30.199-24.356 54.612-54.375 54.612-29.999 0-54.355-24.414-54.355-54.612V566.61h-326.25c-30.008 0-54.365-24.471-54.365-54.603 0-30.161 24.357-54.632 54.366-54.632h326.249V129.7c0-30.142 24.356-54.603 54.355-54.603 30.028 0 54.384 24.46 54.384 54.603v327.676h326.24c30.056 0 54.355 24.47 54.355 54.632 0.002 30.132-24.297 54.603-54.354 54.603z m0 0" ></path></symbol><symbol id="icon-zhiding" viewBox="0 0 1024 1024"><path d="M786.944 536.576l-259.072-259.072c-6.144-6.144-14.848-9.216-23.04-9.216-1.024 0-2.048-0.512-3.072-0.512-4.608 0-9.216 1.024-12.8 3.072-4.096 1.536-7.68 4.096-11.264 7.168l-259.584 259.072c-12.288 12.288-12.288 32.768 0 45.056 6.144 6.144 14.336 9.216 22.528 9.216 8.192 0 16.384-3.072 22.528-9.216l206.336-206.336v563.712c0 17.92 14.336 31.744 32.256 31.744s32.256-14.336 32.256-31.744V373.76l207.872 207.872c6.144 6.144 14.336 9.216 22.528 9.216 8.192 0 16.384-3.072 22.528-9.216 12.288-12.288 12.8-32.768 0-45.056z m67.584-332.8H150.528c-17.92 0-32.256-14.336-32.256-32.256s14.336-31.744 32.256-31.744h704c17.92 0 31.744 14.336 31.744 32.256 0.512 17.408-13.824 31.744-31.744 31.744z" ></path></symbol><symbol id="icon-suoping" viewBox="0 0 1024 1024"><path d="M359.424 679.424h315.392c11.264 0 19.968-9.216 19.968-19.968V479.232c0-11.264-8.704-19.968-19.968-19.968h-25.088v-47.616c0-73.216-59.392-132.608-132.608-132.608S384.512 338.432 384.512 411.648v47.616h-25.088c-11.264 0-19.968 8.704-19.968 19.968v180.224c0 10.752 9.216 19.968 19.968 19.968z m110.08-267.776l0.512-5.632c3.072-24.064 23.04-41.984 47.104-41.984l5.12 0.512c24.064 3.072 41.984 23.04 41.984 47.104v47.616H469.504v-47.616z" ></path><path d="M886.272 755.712c51.712-74.752 78.848-162.304 78.848-253.952 0-246.784-201.216-448-448-448S69.12 254.464 69.12 501.76s201.216 448 448 448h0.512c106.496 0 209.92-38.4 290.816-107.52l-42.496-76.288c-67.584 64-156.16 98.816-248.832 98.816-96.768 0-187.904-37.888-256.512-106.496-68.608-68.096-106.496-159.744-106.496-256.512 0-200.192 162.816-363.008 363.008-363.008s363.008 162.816 363.008 363.008v2.56h-99.328c-3.584 0-6.656 1.024-9.728 2.56-4.608 2.56-8.192 6.656-9.728 11.776-1.536 5.12-1.024 10.752 1.536 15.36l123.392 221.696z" ></path></symbol><symbol id="icon-xinzeng" viewBox="0 0 1024 1024"><path d="M616.448 70.656H398.848v326.144H72.704V614.4H399.36v326.656h217.6V614.4h326.656V397.312h-326.656V70.656z" ></path></symbol><symbol id="icon-gouxuan" viewBox="0 0 1024 1024"><path d="M962.56 294.4L389.12 787.456c-10.752 9.216-24.064 13.824-37.376 13.824-16.384 0-32.256-6.656-44.032-19.968l-232.96-271.36c-20.992-24.064-17.92-60.416 6.144-81.408s60.416-17.92 81.408 6.144l195.072 227.328 529.92-455.168c24.064-20.992 60.416-17.92 81.408 6.144 20.992 24.576 17.92 60.928-6.144 81.408z" ></path></symbol><symbol id="icon-Logo" viewBox="0 0 1024 1024"><path d="M961.536 617.984l-261.12 219.136c-3.584 2.56-7.68 3.072-11.776 2.56-4.096-1.024-7.68-3.072-10.24-6.656-1.536-2.56-2.56-5.12-2.56-7.68v-69.12c77.312-64.512 154.112-129.024 230.912-193.536 18.944-16.384 40.448-10.24 53.76 3.584 13.312 14.336 17.408 36.352 1.024 51.712m-325.632 273.92c-7.68 6.656-17.408 10.24-27.648 9.728-9.728 1.024-19.456-2.048-27.136-8.192-7.68-6.144-12.288-15.36-13.312-25.088V507.904c0-4.608-1.536-9.216-4.608-12.8s-7.68-5.632-12.288-5.632c-4.608 0-9.216 1.536-12.288 4.608l29.696-24.576 9.728-8.192c7.68-6.656 17.408-10.24 27.648-9.728 20.48-1.536 38.912 13.312 40.448 34.304v359.936c0 4.608 2.048 9.216 5.632 12.288 3.584 3.072 8.192 5.12 12.8 4.608 4.096 0 7.68-1.536 10.752-4.096l-29.184 24.576-10.24 8.704z m-233.984-283.136l111.104-92.16c7.168-5.12 16.384-3.584 21.504 3.584 1.536 2.56 2.56 5.12 3.072 8.192v69.12l-79.872 67.072c-29.696 22.528-46.592 12.8-60.928-5.12-11.264-14.848-12.8-35.84 5.12-50.688m51.712-307.2c-22.528 26.624-55.808 41.984-91.136 41.984-8.192 0-15.36 5.632-17.92 12.8l-100.352 275.456c-3.072 7.68-0.512 16.384 5.632 22.016 9.728 8.192 17.92 17.408 24.576 28.16 31.744 52.736 18.432 120.32-30.208 157.696-48.64 37.376-117.76 32.256-160.256-11.776s-45.056-113.152-6.144-160.256c19.968-25.088 49.152-40.448 81.408-42.496 7.68-1.024 13.824-5.632 16.896-12.8L279.552 327.68c3.072-7.68 1.024-16.896-4.608-23.04-5.12-5.12-9.728-10.752-13.824-16.896C227.84 235.52 239.104 166.4 287.744 128s118.272-33.792 161.28 10.752c43.008 44.544 45.056 114.688 4.608 161.792v1.024z" ></path></symbol><symbol id="icon-liebiao" viewBox="0 0 1024 1024"><path d="M969.216 181.76v102.4H61.44v-102.4h907.776zM969.216 450.56v102.4H61.44V450.56h907.776zM969.216 719.36v102.4H61.44v-102.4h907.776z" ></path></symbol><symbol id="icon-shouye" viewBox="0 0 1024 1024"><path d="M821.248 71.168l1.024 866.816c0 17.92-21.504 26.624-33.792 13.824l-433.664-433.152c-7.68-7.68-7.68-20.48 0-28.16l433.152-433.664c11.776-12.288 33.28-3.584 33.28 14.336zM269.11744 939.67872h-102.4v-870.4h102.4z" ></path></symbol><symbol id="icon-xiangzuo" viewBox="0 0 1024 1024"><path d="M726.528 84.48l1.024 866.816c0 17.92-21.504 26.624-33.792 13.824l-433.664-433.152c-7.68-7.68-7.68-20.48 0-28.16l433.152-433.664c11.776-12.288 33.28-3.584 33.28 14.336z" ></path></symbol><symbol id="icon-xiangyou" viewBox="0 0 1024 1024"><path d="M362.496 70.144l433.152 433.664c7.68 7.68 7.68 20.48 0 28.16l-433.664 433.152c-12.288 12.288-33.792 3.584-33.792-13.824l1.024-866.816c-0.512-17.92 20.992-26.624 33.28-14.336z" ></path></symbol><symbol id="icon-weiye" viewBox="0 0 1024 1024"><path d="M236.032 79.872l433.152 433.664c7.68 7.68 7.68 20.48 0 28.16L235.52 974.848c-12.288 12.288-33.792 3.584-33.792-13.824l1.024-866.816c-0.512-17.92 20.992-26.624 33.28-14.336zM754.176 92.16h102.4v870.4h-102.4z" ></path></symbol><symbol id="icon-wenjianjialiebiaokongzhuangtai" viewBox="0 0 1024 1024"><path d="M975.872 503.296h-921.6v-286.72c0-67.584 55.296-122.88 122.88-122.88h139.264c16.384 0 30.72 4.096 45.056 12.288l106.496 69.632h385.024c67.584 0 122.88 55.296 122.88 122.88v204.8z" fill="#FFA000" ></path><path d="M881.664 912.896H148.48c-52.224 0-94.208-41.984-94.208-94.208v-430.08c0-52.224 41.984-94.208 94.208-94.208h733.184c52.224 0 94.208 41.984 94.208 94.208v430.08c0 52.224-41.984 94.208-94.208 94.208z" fill="#FFCA29" ></path></symbol><symbol id="icon-kongkongruye" viewBox="0 0 1024 1024"><path d="M171.52 74.752c-29.184 0-52.736 23.552-52.736 52.736v764.416c0 29.184 23.552 52.736 52.736 52.736h693.248c29.184 0 52.736-23.552 52.736-52.736V489.472l-406.016-414.72H171.52z" fill="#FED57D" ></path><path d="M864.768 74.752h-353.28l406.016 414.72V127.488c0-29.184-23.552-52.736-52.736-52.736z" fill="#FFEECB" ></path><path d="M918.528 489.984h-367.616c-22.016 0-39.936-17.92-39.936-39.936V74.24l407.552 415.744z" fill="#FFC549" ></path></symbol><symbol id="icon-ExitFullScreen" viewBox="0 0 1024 1024"><path d="M753.152 881.152c-6.656-6.656-10.24-14.848-10.24-24.064v-156.16c0-18.944 15.36-34.304 34.304-34.304h156.16c18.944 0 34.304 15.36 34.304 34.304 0 9.216-3.584 17.92-9.728 24.064-6.656 6.656-14.848 10.24-24.064 10.24h-122.368v122.368c0 9.216-3.584 17.92-10.24 24.064-6.656 6.656-14.848 10.24-24.064 10.24-8.704-0.512-17.408-4.096-24.064-10.752zM275.968 143.36a34.304 34.304 0 0 0-68.608 0v122.368H85.504a34.304 34.304 0 0 0 0 68.608h156.16c18.944 0 34.304-15.36 34.304-34.304V143.36z m501.248-34.304c-18.944 0-34.304 15.36-34.304 34.304v156.16c0 18.944 15.36 34.304 34.304 34.304h156.16a34.304 34.304 0 0 0 0-68.608h-122.368V143.36c0.512-18.944-14.848-34.304-33.792-34.304zM217.6 881.152c6.656 6.656 14.848 10.24 24.064 10.24 9.216 0 17.92-3.584 24.064-10.24s10.24-14.848 10.24-24.064v-156.16c0-18.944-15.36-34.304-34.304-34.304H85.504c-18.944 0-34.304 15.36-34.304 34.304 0 9.216 3.584 17.92 9.728 24.064 6.656 6.656 14.848 10.24 24.064 10.24h122.368v122.368c0 8.704 3.584 17.408 10.24 23.552z m92.672-473.088v184.832c0 21.504 17.92 39.424 39.424 39.424h319.488c21.504 0 39.424-17.92 39.424-39.424V408.064c0-21.504-17.92-39.424-39.424-39.424H349.696c-21.504 0-39.424 17.408-39.424 39.424z" ></path></symbol><symbol id="icon-Opacity" viewBox="0 0 1024 1024"><path d="M825.17333333 942.08H201.55733333C136.53333333 942.08 80.21333333 887.296 80.21333333 814.592V199.168C80.21333333 131.072 132.43733333 71.68 201.55733333 71.68h627.712C894.29333333 71.68 950.61333333 126.464 950.61333333 199.168v615.424c-4.608 72.704-56.32 127.488-125.44 127.488zM197.97333333 133.632c-31.232 0-57.856 28.16-57.856 56.32v633.344c0 32.768 26.624 56.32 53.248 56.32h643.072c31.232 0 53.248-28.16 53.248-56.32V189.952c0-32.768-26.624-56.32-53.248-56.32H197.97333333zM253.26933333 235.52h130.048v136.704H253.26933333V235.52z m130.048 136.704h130.048v136.704H383.31733333V372.224zM513.36533333 235.52H643.41333333v136.704h-130.048V235.52zM643.41333333 372.224h130.048v136.704H643.41333333V372.224zM253.26933333 508.928h130.048v136.704H253.26933333V508.928z m130.048 136.704h130.048v136.704H383.31733333v-136.704z m130.048-136.704H643.41333333v136.704h-130.048V508.928z m130.048 136.704h130.048v136.704H643.41333333v-136.704z" ></path></symbol><symbol id="icon-FullScreen" viewBox="0 0 1024 1024"><path d="M290.816 550.4v134.144H424.96c18.944 0 34.816 15.36 34.816 34.816 0 18.944-15.36 34.816-34.816 34.816H256c-18.944 0-34.816-15.36-34.816-34.816v-168.96c0-9.216 3.584-17.92 10.24-24.576s15.36-10.24 24.576-10.24c19.456 0 34.816 15.872 34.816 34.816z m488.96-33.28c18.944 0 34.816-15.36 34.816-34.816v-168.96c0-18.944-15.36-34.816-34.816-34.816h-168.96c-18.944 0-34.816 15.36-34.816 34.816 0 18.944 15.36 34.816 34.816 34.816h134.144v134.144c0.512 18.944 15.872 34.816 34.816 34.816z m186.88 343.04c0 28.16-23.04 51.2-51.2 51.2H109.056c-28.16 0-51.2-23.04-51.2-51.2V173.056c0-28.16 23.04-51.2 51.2-51.2h806.4c28.16 0 51.2 23.04 51.2 51.2V860.16z m-66.56-671.744H124.416v656.896h776.192V188.416z" ></path></symbol><symbol id="icon-ThumbnailDown" viewBox="0 0 1024 1024"><path d="M942.592 108.544H89.088c-18.944 0-33.792 15.36-33.792 33.792v512.512c0 18.944 15.36 33.792 33.792 33.792h854.016c18.944 0 33.792-15.36 33.792-33.792v-512c-0.512-18.944-15.36-34.304-34.304-34.304z m-18.944 527.36H108.032V161.792h815.616v474.112z" ></path><path d="M174.592 859.136m-68.608 0a68.608 68.608 0 1 0 137.216 0 68.608 68.608 0 1 0-137.216 0Z" ></path><path d="M408.576 859.136m-68.608 0a68.608 68.608 0 1 0 137.216 0 68.608 68.608 0 1 0-137.216 0Z" ></path><path d="M642.56 859.136m-68.608 0a68.608 68.608 0 1 0 137.216 0 68.608 68.608 0 1 0-137.216 0Z" ></path><path d="M876.544 859.136m-68.608 0a68.608 68.608 0 1 0 137.216 0 68.608 68.608 0 1 0-137.216 0Z" ></path></symbol><symbol id="icon-ThumbnailUp" viewBox="0 0 1024 1024"><path d="M942.592 141.312H88.576c-18.944 0-33.792 15.36-33.792 33.792v689.664c0 18.944 15.36 33.792 33.792 33.792h854.016c18.944 0 33.792-15.36 33.792-33.792V175.104c0-18.432-14.848-33.792-33.792-33.792z m-28.16 693.76c0 1.024-0.512 1.536-1.536 1.536H118.784c-1.024 0-1.536-0.512-1.536-1.536V204.8c0-1.024 0.512-1.536 1.536-1.536h794.112c1.024 0 1.536 0.512 1.536 1.536v630.272z" ></path><path d="M784.384 302.08H247.296c-18.944 0-34.816 15.36-34.816 34.816v361.472c0 18.944 15.36 34.816 34.816 34.816h537.088c18.944 0 34.816-15.36 34.816-34.816V336.896c0-18.944-15.872-34.816-34.816-34.816z m-27.648 366.592c0 1.536-1.024 2.56-2.56 2.56H276.992c-1.536 0-2.56-1.024-2.56-2.56v-302.08c0-1.536 1.024-2.56 2.56-2.56h477.184c1.536 0 2.56 1.024 2.56 2.56v302.08z" ></path></symbol><symbol id="icon-Color" viewBox="0 0 1024 1024"><path d="M747.61433333 538.548c-39.822 0-72.059-32.237-72.059-72.06s32.237-72.058 72.06-72.058c39.822 0 72.059 32.237 72.059 72.059s-32.237 72.06-72.06 72.06z m-130.844-183.94c-39.822 0-72.06-32.238-72.06-72.06s32.238-72.06 72.06-72.06 72.06 32.238 72.06 72.06c0 41.719-32.238 72.06-72.06 72.06z m-221.867 0c-39.822 0-72.059-32.238-72.059-72.06s32.237-72.06 72.06-72.06c39.822 0 72.059 32.238 72.059 72.06 0 41.719-32.237 72.06-72.06 72.06z m-130.844 183.94c-39.822 0-72.06-32.237-72.06-72.06s32.238-72.058 72.06-72.058 72.06 32.237 72.06 72.059-32.238 72.06-72.06 72.06z m639.052-51.2c-18.963-202.904-189.63-360.296-398.222-360.296-219.97 0-398.223 178.252-398.223 398.222s178.252 398.222 398.223 398.222c36.03 0 64.474-28.444 64.474-64.474 0-26.548-17.067-49.303-39.823-60.681-15.17-9.482-26.548-26.548-26.548-47.408 0-30.34 24.652-56.889 56.89-56.889h161.184c94.815-1.896 172.563-75.851 180.148-168.77V512c1.897-7.585 3.793-17.067 1.897-24.652z" ></path></symbol><symbol id="icon-Layer" viewBox="0 0 1024 1024"><path d="M94.51496296 278.69866667l397.312-168.96 6.144-2.56c7.68-3.072 16.384-3.072 24.064 0l403.456 171.52c11.776 5.12 19.456 16.896 19.456 30.208 0 13.312-7.68 25.088-19.456 30.208l-397.31199999 168.96-6.14400001 2.56c-7.68 3.072-16.384 3.072-24.064 0l-6.656-3.072-396.8-168.96c-11.776-5.12-19.968-16.896-19.96799999-30.208 0-12.8 7.68-24.576 19.96799999-29.696z m847.87200001 415.232c3.072-8.192 3.072-16.896 0-25.088-5.12-12.288-16.384-20.48-29.184-20.48-4.096 0-8.192 1.024-12.28800001 2.56l-6.65599999 3.072-384.51200001 163.84-2.04799999-1.024-389.12000001-165.888c-7.68-3.072-16.384-2.56-23.55199999 0.512-7.68 3.584-13.824 10.24-16.89600001 18.432-6.144 16.384 1.536 34.816 16.89600001 41.472l397.82399999 169.472 5.12 2.048c7.68 3.072 16.384 3.072 24.064 0l5.632-2.56 397.312-169.472c8.192-2.56 14.336-8.704 17.40800001-16.896zM94.51496296 525.48266667l398.336 169.472 5.12 2.048c7.68 3.072 16.384 3.072 24.064 0l6.14400001-2.56 397.31199999-168.96c16.384-7.168 24.064-26.112 17.408-43.008-5.12-12.288-16.384-20.48-29.184-20.48-4.096 0-8.192 1.024-12.288 2.56l-6.656 3.072-384.512 163.84-2.048-1.024-389.11999999-165.888c-7.68-3.072-16.384-2.56-24.064 1.024s-13.824 10.24-16.89600001 18.432c-6.656 15.872 1.024 34.304 16.384 41.472z" ></path></symbol><symbol id="icon-ZoomScale" viewBox="0 0 1024 1024"><path d="M962.048 875.008l-65.024-65.024c24.576-33.792 37.888-74.24 37.888-116.224 0-52.736-20.48-102.4-57.856-139.776s-87.04-57.856-139.776-57.856c-109.056 0-197.632 88.576-197.632 197.632 0 52.736 20.48 102.4 57.856 139.776 37.376 37.376 87.04 57.856 139.776 57.856 41.984 0 82.432-13.312 116.224-37.888l65.024 65.024c5.632 6.144 13.312 9.216 22.016 9.216h0.512c8.192 0 15.872-3.072 21.504-8.704l0.512-0.512c11.264-12.288 11.264-31.744-1.024-43.52z m-89.088-180.736c0 75.264-60.928 136.192-136.192 136.192-74.24 0-134.656-59.392-136.192-133.632v-2.56c0-75.264 60.928-136.192 136.192-136.192 36.352 0 70.656 14.336 96.256 39.936 26.112 25.6 39.936 59.392 39.936 96.256z" fill="#DDDDDD" ></path><path d="M914.432 87.552c-3.072-22.016-22.528-38.912-45.056-38.912h-232.448l-6.656 0.512c-22.016 3.072-38.912 22.528-38.912 45.056l0.512 6.656c3.072 22.016 22.528 38.912 45.056 38.912h122.88l-287.232 286.72-0.512 0.512-337.408 337.408v-122.88c0-22.528-16.384-41.472-38.4-45.056l-6.656-0.512c-22.528 0-41.472 16.384-45.056 38.4l-0.512 6.656v232.448c0 22.528 16.384 41.472 38.912 45.056l6.656 0.512h232.448c25.088 0 45.568-19.968 45.568-45.056 0-22.528-16.384-41.472-38.912-45.056l-6.656-0.512h-122.88l287.744-287.744 49.664-49.664L824.32 203.264V332.8c3.072 22.528 22.528 38.912 45.056 38.912 25.088 0 45.056-20.48 45.056-45.568V87.552z" fill="#DDDDDD" ></path></symbol><symbol id="icon-ZoomWindow" viewBox="0 0 1024 1024"><path d="M406.016 686.08c0-7.168 0.512-13.824 1.024-20.48H153.6V246.272h702.976v293.888c30.72 42.496 47.616 93.184 47.616 146.432 0 17.92-2.048 35.84-5.632 53.248h32.256V98.816H79.872v640.512h331.776c-3.584-17.408-5.632-34.816-5.632-53.248z" fill="#DDDDDD" ></path><path d="M880.128 867.328l-65.024-65.024c24.576-33.792 37.888-74.24 37.888-116.224 0-52.736-20.48-102.4-57.856-139.776s-87.04-57.856-139.776-57.856c-109.056 0-197.632 88.576-197.632 197.632 0 52.736 20.48 102.4 57.856 139.776 37.376 37.376 87.04 57.856 139.776 57.856 41.984 0 82.432-13.312 116.224-37.888l65.024 65.024c5.632 6.144 13.312 9.216 22.016 9.216h0.512c8.192 0 15.872-3.072 21.504-8.704l0.512-0.512c11.264-12.288 11.264-31.744-1.024-43.52z m-88.576-180.736c0 75.264-60.928 136.192-136.192 136.192-74.24 0-134.656-59.392-136.192-133.632v-2.56c0-75.264 60.928-136.192 136.192-136.192 36.352 0 70.656 14.336 96.256 39.936s39.936 59.392 39.936 96.256z" fill="#DDDDDD" ></path></symbol><symbol id="icon-ZoomDynamic" viewBox="0 0 1024 1024"><path d="M153.088 92.16h179.2v101.888H230.912c-16.384 0-24.576 8.192-24.576 24.576v101.888H104.448v-179.2c0-24.576 24.576-49.152 48.64-49.152zM919.552 141.312v179.2h-101.888V218.624c0-16.384-8.192-24.576-24.576-24.576H691.2V92.16h179.2c24.576 0 49.152 24.576 49.152 49.152zM206.336 752.64c0 28.672 24.576 49.152 49.152 49.152H332.8v105.984H259.072c-85.504 0-154.624-69.12-154.624-154.624V675.84h101.888v76.8zM877.568 864.768l-65.024-65.024c24.576-33.792 37.888-74.24 37.888-116.224 0-52.736-20.48-102.4-57.856-139.776s-87.04-57.856-139.776-57.856c-109.056 0-197.632 88.576-197.632 197.632 0 52.736 20.48 102.4 57.856 139.776 37.376 37.376 87.04 57.856 139.776 57.856 41.984 0 82.432-13.312 116.224-37.888l65.024 65.024c5.632 6.144 13.312 9.216 22.016 9.216h0.512c8.192 0 15.872-3.072 21.504-8.704l0.512-0.512c11.264-12.288 11.264-31.744-1.024-43.52zM788.48 684.032c0 75.264-60.928 136.192-136.192 136.192-74.24 0-134.656-59.392-136.192-133.632v-2.56c0-75.264 60.928-136.192 136.192-136.192 36.352 0 70.656 14.336 96.256 39.936 26.112 25.6 39.936 59.392 39.936 96.256z" fill="#DDDDDD" ></path></symbol><symbol id="icon-ZoomObject" viewBox="0 0 1024 1024"><path d="M509.44 846.848c-10.752-10.752-20.992-23.04-29.184-35.328H151.552V347.136h517.12v75.264c5.632-0.512 11.264-0.512 16.896-0.512 16.896 0 33.28 1.536 49.152 4.608v-112.64c0-18.432-14.848-33.28-33.28-33.28H118.272c-18.432 0-33.28 14.848-33.28 33.28V844.8c0 18.432 14.848 33.28 33.28 33.28h428.544c-13.312-9.216-25.6-19.456-37.376-31.232z" fill="#DDDDDD" ></path><path d="M738.816 427.52V341.504l137.728-150.528v320.512c24.576 29.184 41.984 63.488 50.688 99.84V125.44c0-10.752-6.144-19.968-16.384-23.552-9.728-3.584-20.992-1.024-27.648 6.656l-188.416 206.336c-4.096 4.608-6.656 10.752-6.656 16.896v90.112c17.408 0.512 34.304 2.048 50.688 5.632z" fill="#DDDDDD" ></path><path d="M925.696 116.224c-4.096-9.728-12.8-15.872-23.552-15.872h-547.84c-5.632 0-11.264 2.048-15.872 5.632L102.4 294.4c-8.704 6.656-11.776 17.92-8.192 28.16 3.584 10.24 12.8 16.896 24.064 16.896h594.432c6.656 0 13.312-2.56 17.92-7.168l189.44-188.416c7.168-7.68 9.728-18.432 5.632-27.648z m-84.992 34.816l-138.752 137.728H190.464l172.032-137.728h478.208zM910.848 851.968l-65.024-65.024c24.576-33.792 37.888-74.24 37.888-116.224 0-52.736-20.48-102.4-57.856-139.776s-87.04-57.856-139.776-57.856c-109.056 0-197.632 88.576-197.632 197.632 0 52.736 20.48 102.4 57.856 139.776 37.376 37.376 87.04 57.856 139.776 57.856 41.984 0 82.432-13.312 116.224-37.888l65.024 65.024c5.632 6.144 13.312 9.216 22.016 9.216h0.512c8.192 0 15.872-3.072 21.504-8.704l0.512-0.512c11.264-12.288 10.752-31.744-1.024-43.52z m-89.088-180.736c0 75.264-60.928 136.192-136.192 136.192-74.24 0-134.656-59.392-136.192-133.632v-2.56c0-75.264 60.928-136.192 136.192-136.192 36.352 0 70.656 14.336 96.256 39.936 26.112 25.6 39.936 59.392 39.936 96.256z" fill="#DDDDDD" ></path></symbol><symbol id="icon-Return" viewBox="0 0 1024 1024"><path d="M629.84533333 270.848H453.71733333V124.928L68.18133333 321.536l385.024 196.608V371.712h190.464c150.528 0 225.28 64.512 225.28 194.048 0 134.144-77.312 199.168-235.008 199.168H193.10933333v103.424h448.512c211.456 0 319.488-98.304 319.488-292.864-0.512-203.776-110.592-304.64-331.264-304.64z" ></path></symbol><symbol id="icon-ZoomIn" viewBox="0 0 1024 1024"><path d="M969.728 896.05688889l-159.744-159.744c59.904-74.24 92.16-166.912 92.16-262.144 0-231.936-187.904-420.352-420.352-420.352S61.44 241.72088889 61.44 473.65688889 249.344 894.00888889 481.28 894.00888889c95.744 0 188.416-32.768 262.656-92.672l159.744 159.744c17.92 18.432 47.616 18.944 66.048 1.024 18.432-18.944 18.432-48.128 0-66.048zM153.6 473.65688889c0-181.248 146.944-327.68 327.68-328.192 181.248 0 327.68 146.944 328.192 327.68 0 181.248-146.944 327.68-327.68 327.68S153.6 654.90488889 153.6 473.65688889z" ></path><path d="M633.344 433.20888889H522.24V322.10488889c0-23.04-17.92-41.472-40.448-41.472s-40.448 18.944-40.448 41.472v111.616H329.728c-22.528-0.512-41.472 17.408-41.472 40.448 0 22.528 18.944 40.448 41.472 40.448h111.616v111.616c0 23.04 17.92 41.472 40.448 41.472s40.448-18.944 40.448-41.472v-111.616h111.616c22.528 0.512 41.472-17.92 41.472-40.448-0.512-23.04-18.944-40.96-41.984-40.96z" ></path></symbol><symbol id="icon-ZoomOut" viewBox="0 0 1024 1024"><path d="M959.82933333 891.19288889l-159.744-159.744c59.904-74.24 92.16-166.912 92.16-262.144 0-231.936-187.904-419.84-419.84-419.84s-419.84 187.904-419.84 419.84 187.904 419.84 419.84 419.84c95.744 0 188.416-32.768 262.656-92.672l159.744 159.744c17.92 18.432 47.616 18.944 66.048 1.024 17.408-18.432 17.408-48.128-1.024-66.048zM144.21333333 469.30488889c0-180.736 146.432-327.68 327.68-327.68 180.736 0 327.68 146.432 327.68 327.68 0 180.736-146.944 327.68-327.68 327.68s-327.68-146.432-327.68-327.68z" ></path><path d="M623.95733333 428.85688889H320.34133333c-22.528-0.512-41.472 17.92-41.472 40.448s18.432 40.448 41.472 40.448h303.616c22.528 0 40.96-17.92 41.472-40.448-0.512-22.528-18.944-40.448-41.472-40.448z" ></path></symbol><symbol id="icon-Move" viewBox="0 0 1024 1024"><path d="M987.136 497.664l-155.648-125.952c-7.68-6.656-19.968-1.024-19.968 9.728v87.04h-252.416V216.064h87.04c10.24 0 15.872-11.776 9.728-19.968L530.432 40.448c-5.12-6.144-13.824-6.144-18.944 0L385.024 196.096c-6.656 7.68-1.024 19.968 9.728 19.968h87.04v251.904H229.376v-87.04c0-10.24-11.776-15.872-19.968-9.728L54.272 497.664c-6.144 5.12-6.144 13.824 0 18.944L209.92 642.56c7.68 6.656 19.968 1.024 19.968-9.728v-87.04h251.904v251.904h-87.04c-10.24 0-15.872 11.776-9.728 19.968l125.952 155.648c5.12 6.144 13.824 6.144 18.944 0l125.952-155.648c6.656-7.68 0.512-19.968-9.728-19.968h-87.04v-252.416h251.904v87.04c0 10.24 11.776 15.872 19.968 9.728l155.648-125.952c6.656-4.608 6.656-13.824 0.512-18.432z" ></path></symbol><symbol id="icon-Open" viewBox="0 0 1024 1024"><path d="M178.176 110.08h171.52c20.992 0 37.888 16.896 37.888 37.888 0 20.992-16.896 37.888-37.888 37.888H202.24c-14.336 0-26.112 11.776-26.112 26.112v614.912c0 14.336 11.776 26.112 26.112 26.112h614.912c14.336 0 26.112-11.776 26.112-26.112v-164.352c0-20.992 16.896-37.888 37.888-37.888 20.992 0 37.888 16.896 37.888 37.888v188.416c0 43.52-35.328 78.336-78.336 78.336H180.736c-44.544 0-80.896-36.352-80.896-80.896V188.416c0-43.52 35.328-78.336 78.336-78.336zM919.04 414.72V110.08H614.4c-20.992 0-37.888 16.896-37.888 37.888 0 20.992 16.896 37.888 37.888 37.888h176.64l-406.016 406.016c-14.336 14.336-14.848 37.888-1.024 52.736 14.848 15.872 39.424 16.384 54.784 1.024l403.968-403.968V414.72c0 20.992 16.896 37.888 37.888 37.888 21.504 0 38.4-16.896 38.4-37.888z" ></path></symbol><symbol id="icon-RecentView" viewBox="0 0 1024 1024"><path d="M481.82857143 252.63746032c-28.66285714 0-51.79428571 23.13142857-51.79428572 51.79428571v234.33142858c0 28.66285714 23.13142857 51.79428571 51.79428572 51.79428571h234.33142857c28.66285714 0 51.79428571-23.13142857 51.79428571-51.79428571 0-28.66285714-23.13142857-51.79428571-51.79428571-51.79428572h-182.53714286V304.43174603c0.50285714-28.66285714-23.13142857-51.79428571-51.79428571-51.79428571z m30.17142857 697.96571429c-244.38857143 0-442.51428571-198.12571429-442.51428571-442.51428572s198.12571429-442.51428571 442.51428571-442.51428571 442.51428571 198.12571429 442.51428571 442.51428571-198.12571429 442.51428571-442.51428571 442.51428572z" ></path></symbol><symbol id="icon-Avatar" viewBox="0 0 1024 1024"><path d="M21.57226667 513.09226667c0 271.42826667 220.09173333 491.52 491.52 491.52s491.52-220.09173333 491.52-491.52-220.09173333-491.52-491.52-491.52-491.52 219.5456-491.52 491.52z" fill="#E6F0FF" ></path><path d="M589.0048 198.51946667H477.04746667c-31.1296 0-60.07466667 15.83786667-77.0048 42.5984-50.7904 0.54613333-91.20426667 41.50613333-91.7504 91.7504v61.16693333c0.54613333 50.7904 41.50613333 91.20426667 92.29653333 91.7504H626.688c50.24426667 0 90.65813333-40.96 91.20426667-90.65813333V326.8608c-0.54613333-70.99733333-57.89013333-127.7952-128.88746667-128.34133333z" fill="#9DB9FC" ></path><path d="M511.45386667 1004.61226667c119.6032 0 234.83733333-43.14453333 324.4032-121.78773334l-6.5536-42.05226666c0-72.63573333-59.52853333-131.61813333-132.16426667-131.61813334H329.59146667c-73.18186667 0-132.16426667 58.9824-132.16426667 131.61813334l-7.09973333 44.78293333c89.01973333 76.45866667 203.1616 119.05706667 321.1264 119.05706667z" fill="#768CFF" ></path><path d="M520.73813333 797.62773333h-11.4688c-43.69066667 0-91.20426667-36.0448-91.20426666-79.73546666l11.4688-148.54826667c0-44.2368 36.0448-79.73546667 79.73546666-79.73546667h11.4688c44.2368 0 79.73546667 36.0448 79.73546667 79.73546667l11.4688 148.54826667c0 43.69066667-46.96746667 79.73546667-91.20426667 79.73546666z" fill="#F8FCFF" ></path><path d="M608.11946667 645.80266667l-6.00746667-75.91253334c0-44.2368-36.0448-79.73546667-80.2816-80.2816h-11.4688c-44.2368 0-80.2816 36.0448-80.2816 80.2816l-11.4688 149.0944c0 10.92266667 2.73066667 21.84533333 8.192 31.67573334 6.00746667 0.54613333 11.4688 1.09226667 17.47626667 1.09226666h16.93013333c66.62826667-0.54613333 125.61066667-43.14453333 146.90986667-105.94986666z" fill="#DCE0EA" ></path><path d="M392.3968 342.15253333h240.8448c22.9376 0 42.05226667 19.11466667 42.05226667 42.5984v148.00213334c0 40.96-16.384 80.82773333-44.78293334 109.7728-28.94506667 28.94506667-67.72053333 45.32906667-108.68053333 45.32906666h-17.47626667c-40.96 0-79.73546667-16.384-108.68053333-45.32906666-28.94506667-28.94506667-44.78293333-68.8128-44.78293333-109.7728V384.2048c-0.54613333-23.48373333 18.56853333-42.05226667 41.50613333-42.05226667z" fill="#F8FCFF" ></path></symbol><symbol id="icon-FolderEmpty02" viewBox="0 0 1024 1024"><path d="M281.088 246.016h230.4L588.8 323.328h230.4v-19.456c0-42.496-34.816-77.312-77.312-77.312H435.2L357.888 149.248h-230.4c-42.496 0-76.288 34.816-76.288 77.312v460.8c0 42.496 34.816 77.312 77.312 77.312h77.312V323.328c-1.024-43.52 32.768-77.312 75.264-77.312z" fill="#FFEAA9" ></path><path d="M896 322.304h-307.712l-76.8-77.312h-230.4c-42.496 0-76.288 34.816-76.288 77.312v460.8c0 42.496 34.816 77.312 77.312 77.312H896c42.496 0 77.312-34.816 77.312-77.312v-384c0-41.984-34.816-76.8-77.312-76.8z" fill="#FFCA29" ></path></symbol><symbol id="icon-ListFolder" viewBox="0 0 1024 1024"><path d="M976.896 472.576h-921.6v-286.72c0-67.584 55.296-122.88 122.88-122.88H317.44c16.384 0 30.72 4.096 45.056 12.288l106.496 69.632h385.024c67.584 0 122.88 55.296 122.88 122.88v204.8z" fill="#FFA000" ></path><path d="M869.376 400.896h-706.56V265.728c0-26.624 22.528-49.152 49.152-49.152h608.256c26.624 0 49.152 22.528 49.152 49.152v135.168z" fill="#FFEBBD" ></path><path d="M909.312 432.64h-788.48V326.144c0-30.72 24.576-57.344 57.344-57.344h675.84c30.72 0 57.344 24.576 57.344 57.344v106.496h-2.048z" fill="#FFFEFC" ></path><path d="M882.176 933.376h-732.16c-52.224 0-94.72-42.496-94.72-94.72V451.072c0-52.224 42.496-94.72 94.72-94.72h732.16c52.224 0 94.72 42.496 94.72 94.72v388.096c0 51.712-42.496 94.208-94.72 94.208z" fill="#FFCA29" ></path></symbol><symbol id="icon-FolderEmpty" viewBox="0 0 1024 1024"><path d="M117.76 258.048h406.528L453.632 158.72c-11.264-19.456-31.744-31.744-54.272-31.744H117.76c-34.816 0-62.464 28.16-62.464 62.464v131.072c0-34.304 27.648-62.464 62.464-62.464z" fill="#FFF4D4" ></path><path d="M922.624 902.144c7.68 0 14.336-2.56 19.456-6.656-8.704 4.608-18.432 6.656-28.672 6.656h9.216z" fill="#EDBA51" ></path><path d="M913.92 258.048h-389.632l425.984 597.504c8.192 14.336 3.584 30.72-7.68 39.936 20.48-10.24 34.304-31.744 34.304-55.808V320.512c0-34.304-28.16-62.464-62.976-62.464z" fill="#FFDB6E" ></path><path d="M950.272 855.552L524.288 258.048H117.76c-34.816 0-62.464 28.16-62.464 62.464V839.68c0 34.816 28.16 62.464 62.464 62.464h796.16c10.24 0 19.968-2.56 28.672-6.656 11.264-9.216 15.36-25.6 7.68-39.936z" fill="#EDBA51" ></path><path d="M950.272 855.552L524.288 258.048H117.76c-34.816 0-62.464 28.16-62.464 62.464V839.68c0 34.816 28.16 62.464 62.464 62.464h796.16c10.24 0 19.968-2.56 28.672-6.656 11.264-9.216 15.36-25.6 7.68-39.936z" fill="#FFCA29" ></path></symbol><symbol id="icon-Notice" viewBox="0 0 1024 1024"><path d="M864 771.328l-59.904-83.456c-3.584-3.584-5.12-8.704-5.12-13.824v-250.88c1.536-145.408-106.496-264.704-247.296-281.088V76.544a34.304 34.304 0 0 0-68.608 0V142.08c-140.8 16.896-249.344 135.68-249.344 281.088v250.88c0 5.12-1.536 10.24-5.12 13.824l-59.904 83.456c-15.36 20.48-10.24 51.2 10.24 66.56 8.704 5.12 16.896 8.704 27.136 8.704h617.984c25.6 0 47.616-20.48 47.616-47.616 0.512-10.752-2.56-18.944-7.68-27.648z m-609.28 5.12l34.304-47.616c11.776-15.36 16.896-35.84 16.896-54.784v-250.88c0-117.76 93.696-211.456 211.456-211.456s211.456 95.744 211.456 211.456v250.88c0 20.48 6.656 39.424 16.896 54.784l34.304 47.616H254.72zM599.296 892.672H457.472c-20.48 1.536-35.84 16.896-35.84 35.84 0 20.48 16.896 35.84 35.84 35.84h141.824c20.48 0 35.84-15.36 35.84-35.84s-16.896-35.84-35.84-35.84z" ></path></symbol><symbol id="icon-UploadProgress" viewBox="0 0 1024 1024"><path d="M356.69333333 101.71733334c-25.6 0-46.592 20.992-46.592 46.592V740.69333334l-136.192-136.192c-17.92-17.92-47.104-17.92-65.024 0.512-17.92 17.92-17.92 47.104 0.512 65.024L318.29333333 878.42133334c8.192 12.288 22.528 20.48 38.4 19.968 25.6-0.512 45.568-20.992 46.592-46.592V148.30933334c0-25.6-20.48-46.592-46.592-46.592zM916.82133333 330.58133334l-210.944-210.944c-8.704-10.752-21.504-17.92-36.352-17.92-25.6 0-46.592 20.48-46.592 46.592v705.536c0.512 25.088 20.992 45.056 46.592 44.544 25.6-0.512 45.568-20.992 46.592-46.592V259.41333334l136.192 136.192c8.704 9.216 20.48 14.336 32.768 13.824 12.288-0.512 23.552-5.12 32.256-13.824l1.536-1.536c16.384-17.92 15.872-46.08-2.048-63.488z" ></path></symbol><symbol id="icon-Help" viewBox="0 0 1024 1024"><path d="M599.24114287 499.54133334c28.672-22.528 60.928-48.64 60.928-97.792 3.584-36.352-7.168-71.68-30.208-99.84s-55.808-45.056-91.648-48.64c-8.704-1.024-17.408-1.024-26.112 0h-0.512c-38.4-1.536-74.752 12.288-102.912 38.4-28.16 26.112-44.032 61.44-45.568 99.84v5.12h93.184c2.56-12.288 13.312-51.2 55.808-51.2 31.232 0 56.32 25.088 56.32 56.32 0 23.04-19.968 39.936-43.008 59.904-27.648 24.064-59.392 51.2-59.392 93.696v46.08h92.16v-46.08c-0.512-22.528 18.432-37.888 40.96-55.808zM486.08914287 662.86933334c-11.264 0-20.48 9.216-20.48 20.48v51.2c0 11.264 9.216 20.48 20.48 20.48h51.2c11.264 0 20.48-9.216 20.48-20.48v-51.2c0-5.632-2.048-10.752-6.144-14.336-3.584-3.584-8.192-5.632-13.312-6.144H486.08914287z" ></path><path d="M511.68914287 51.02933334c-249.856 0-453.12 203.264-453.12 453.12s203.264 453.12 453.12 453.12 453.12-203.264 453.12-453.12-203.264-453.12-453.12-453.12z m0 819.2c-201.728 0-366.08-164.352-366.08-366.08s164.352-366.08 366.08-366.08 366.08 164.352 366.08 366.08-164.352 366.08-366.08 366.08z" ></path></symbol><symbol id="icon-Mall" viewBox="0 0 1024 1024"><path d="M875.40622222 571.61955556c-7.168-7.168-16.384-10.752-26.624-10.752h-0.512c-21.504 0-38.912 17.92-38.912 39.936v76.8l-0.512 2.56 0.512 0.512v126.976c0 11.776-9.728 21.504-21.504 21.504H237.96622222c-11.776 0-21.504-9.728-21.504-21.504v-45.568-0.512-152.576c0-13.824-6.144-28.672-15.36-37.888-6.656-6.656-14.336-9.728-22.016-9.728-21.504 0-38.912 17.92-38.912 39.936v152.064c0 1.536 0.512 2.56 0.512 3.584V847.07555556c0 32.768 26.624 58.88 58.88 58.88H828.30222222c32.768 0 58.88-26.624 58.88-58.88v-92.16-153.6c0.512-11.264-4.096-22.016-11.776-29.696zM288.14222222 382.17955556c0 64.512 50.176 117.248 112.128 117.248 61.952 0 112.128-52.736 112.128-117.248 0 64.512 50.176 117.248 112.128 117.248 61.952 0 112.128-52.736 112.128-117.248 0 64.512 38.4 117.248 100.352 117.248 61.952 0 112.128-52.736 112.128-117.248L859.02222222 153.82755556c-13.312-33.792-46.08-56.32-82.432-56.32H251.27822222c-36.352 0-69.12 22.528-82.432 56.32L78.73422222 382.17955556c0 64.512 35.84 117.248 97.792 117.248s111.616-52.736 111.616-117.248z" ></path></symbol><symbol id="icon-Me" viewBox="0 0 1024 1024"><path d="M515.64088889 63.14666667c-117.248 0-212.48 95.232-212.48 212.48s95.232 212.48 212.48 212.48 212.48-95.232 212.48-212.48-95.744-212.48-212.48-212.48z m0 340.48C442.42488889 403.62666667 387.12888889 348.33066667 387.12888889 275.11466667s55.296-128.512 128.512-128.512 128.512 55.296 128.512 128.512c-2.56 73.216-57.856 128.512-128.512 128.512zM78.90488889 925.86666667h870.4v-157.184c0-139.264-284.16-212.48-436.224-212.48-151.552 0-434.176 72.704-434.176 212.48V925.86666667z m86.528-157.184c0-22.016 45.056-53.76 115.2-81.408 76.8-29.696 162.304-47.104 234.496-47.104 70.144 0 157.184 16.896 232.448 45.056 56.832 21.504 117.76 54.784 117.76 82.944v71.168H165.43288889v-70.656z" ></path></symbol><symbol id="icon-Subscription" viewBox="0 0 1024 1024"><path d="M913.408 188.75733334c80.384 87.04 83.456 224.768 8.704 315.392l-8.704 10.24-65.536-61.952c51.2-55.296 51.2-145.92 0-201.216-47.104-51.2-120.832-53.76-170.496-7.68l-7.68 7.68L515.072 418.13333334 360.448 250.70933334c-49.664-53.76-128.512-53.76-178.176 0-48.64 52.224-51.2 136.704-7.68 192.512l7.68 9.216 335.36 362.496c16.896 17.92 15.872 46.592-2.048 63.488-18.432 17.408-47.104 16.384-64-2.048l-334.336-361.984c-83.456-90.112-83.456-235.52 0-325.632 81.92-88.576 214.016-91.648 299.52-9.728l9.216 9.728L515.072 285.01333334 604.16 188.75733334c84.992-92.16 224.256-92.16 309.248 0z m-116.224 359.424v116.736h115.2v90.624h-115.2v116.736h-89.6v-116.736h-115.2v-90.624h115.2v-116.736h89.6z" ></path></symbol><symbol id="icon-Exit" viewBox="0 0 1024 1024"><path d="M614.4 860.37942857c-4.096-20.992-23.04-36.352-45.056-36.352H187.904c-4.096 0-7.168-3.072-7.168-7.168V195.29142857c0-4.096 3.072-7.168 7.168-7.168h382.976c24.064 0 43.52-18.432 44.032-41.984 0.512-13.312-3.584-25.088-11.776-33.28-8.192-8.192-19.456-12.8-32.256-12.8H175.616c-46.08 0-83.456 37.376-83.456 83.456v641.536c0 46.08 37.376 83.456 83.456 83.456h395.264c14.336 0 27.136-5.632 35.328-15.36 7.168-9.216 10.24-20.992 8.192-32.768z" ></path><path d="M949.76 473.30742857l-179.712-179.712c-8.192-8.192-19.456-12.8-30.72-12.8-11.776 0-22.528 4.608-30.72 12.8-16.896 16.896-17.408 45.056-0.512 62.464l99.84 104.448H437.76c-24.064 0-43.52 18.432-44.032 41.984-0.512 13.312 3.584 25.088 11.776 33.28 8.192 8.192 19.456 12.8 32.256 12.8h375.296l-103.424 103.424c-14.336 14.336-17.92 36.352-8.704 53.76 7.168 13.312 20.992 21.504 36.352 22.528h3.072c12.288 0 23.04-5.12 29.696-13.312l179.712-179.712c17.408-17.408 17.408-45.056 0-61.952z" ></path></symbol><symbol id="icon-Sort" viewBox="0 0 1024 1024"><path d="M932.52266667 742.57066667H472.23466667c-23.04 0-41.472 20.48-41.472 45.056 0 25.088 18.432 45.056 41.472 45.056h460.288c23.04 0 41.472-20.48 41.472-45.056 0-24.576-18.432-45.056-41.472-45.056zM932.52266667 449.70666667h-344.064c-23.04 0-41.472 20.48-41.472 45.056 0 25.088 18.432 45.056 41.472 45.056h344.064c23.04 0 41.472-20.48 41.472-45.056 0-24.576-18.432-45.056-41.472-45.056zM460.97066667 256.17066667h471.552c23.04 0 41.472-20.48 41.472-45.056 0-25.088-18.432-45.056-41.472-45.056H460.97066667c-23.04 0-41.472 20.48-41.472 45.056 0 24.576 18.432 45.056 41.472 45.056zM460.45866667 461.48266667c11.264 0 21.504-4.608 29.184-13.312 15.872-17.408 15.872-46.08 0.512-64L307.37066667 180.39466667c-7.68-8.704-18.432-13.824-29.696-13.824-10.24 0-20.48 4.096-28.16 11.776h-2.56v3.072L64.17066667 382.63466667c-15.872 17.92-15.872 46.592 0 64 7.68 8.704 18.432 13.312 29.696 13.824 11.264 0 22.016-4.608 30.208-13.312l111.616-122.88v473.088c0 25.088 18.432 45.568 41.472 45.568 11.264 0 21.504-4.608 29.696-13.312 7.68-8.704 11.776-19.968 11.776-31.744v-476.16l112.64 125.952c7.68 9.216 18.432 13.824 29.184 13.824z" ></path></symbol><symbol id="icon-List" viewBox="0 0 1024 1024"><path d="M903.14425806 744.73462365H379.17625806c-19.83793548 0-35.9236129 16.08774194-35.9236129 35.96696774 0 19.84 16.08670968 35.92567742 35.9236129 35.92567742h523.968c19.88335484 0 35.968-16.08670968 35.968-35.92567742 0-19.88129032-16.08464516-35.96696774-35.968-35.96696774z m0-278.98838709H379.17625806c-19.83793548 0-35.9236129 16.08774194-35.9236129 35.96696774 0 19.87922581 16.08670968 35.92567742 35.9236129 35.92567742h523.968c19.88335484 0 35.968-16.04645161 35.968-35.92567742 0-19.88025806-16.08464516-35.96696774-35.968-35.96696774zM379.17625806 258.69178494h523.968c19.88335484 0 35.968-16.08567742 35.968-35.96696774 0-19.87922581-16.08567742-35.96696774-35.968-35.96696774H379.17625806c-19.83793548 0-35.9236129 16.08774194-35.9236129 35.96696774-0.00103226 19.88129032 16.08567742 35.96696774 35.9236129 35.96696774zM210.63329032 142.20352688H121.52774194c-19.88129032 0-35.96490323 16.08774194-35.96490323 35.92670968v89.14580645c0 19.84 16.08464516 36.01032258 35.96490323 36.01032258h89.10658064c19.88129032 0 35.968-16.17135484 35.968-36.00929032v-89.14683871c0-19.83896774-16.08670968-35.92670968-35.968-35.92670968z m0 278.94812903H121.52774194c-19.88129032 0-35.96490323 16.12903226-35.96490323 36.00825807v89.10658064c0 19.88025806 16.08464516 35.96696774 35.96490323 35.96696774h89.10658064c19.88129032 0 35.968-16.08774194 35.968-35.96696774v-89.10658064c0-19.87922581-16.08670968-36.00825806-35.968-36.00825807z m0 278.98632258H121.52774194c-19.88129032 0-35.96490323 16.08774194-35.96490323 35.96593549V825.25591398c0 19.83793548 16.08464516 35.9236129 35.96490323 35.9236129h89.10658064c19.88129032 0 35.968-16.08670968 35.968-35.9236129v-89.15096775c0-19.87819355-16.08670968-35.96593548-35.968-35.96593548z" ></path></symbol><symbol id="icon-Card" viewBox="0 0 1024 1024"><path d="M435.24571428 152.36761905H181.80571428c-13.92 0-25.44 11.52-25.44 25.44v253.44c0 13.92 11.52 25.44 25.44 25.44h253.44c13.92 0 25.44-11.52 25.44-25.44V177.80761905c0-13.92-11.04-25.44-25.44-25.44zM846.12571428 152.36761905H592.68571428c-13.92 0-25.44 11.52-25.44 25.44v253.44c0 13.92 11.52 25.44 25.44 25.44h253.44c13.92 0 25.44-11.52 25.44-25.44V177.80761905c0-13.92-11.52-25.44-25.44-25.44zM435.24571428 562.76761905H181.80571428c-13.92 0-25.44 11.52-25.44 25.44V841.64761905c0 13.92 11.52 25.44 25.44 25.44h253.44c13.92 0 25.44-11.52 25.44-25.44v-253.44c0-13.92-11.04-25.44-25.44-25.44zM846.12571428 562.76761905H592.68571428c-13.92 0-25.44 11.52-25.44 25.44V841.64761905c0 13.92 11.52 25.44 25.44 25.44h253.44c13.92 0 25.44-11.52 25.44-25.44v-253.44c0-13.92-11.52-25.44-25.44-25.44z" ></path></symbol><symbol id="icon-Confirm" viewBox="0 0 1024 1024"><path d="M168.96 461.36888889c-11.776-11.776-27.648-17.92-43.52-17.92-15.872 0-31.744 6.144-43.52 17.92-24.064 24.064-24.064 62.976 0 87.04l260.608 260.608c11.776 11.776 27.136 18.432 44.032 18.432 16.384 0 31.744-6.656 43.52-17.92l521.728-522.24c24.064-24.064 24.064-62.976 0-87.04-24.064-24.064-62.976-24.064-87.04 0l-478.208 478.208L168.96 461.36888889z" ></path></symbol><symbol id="icon-Cancel" viewBox="0 0 1024 1024"><path d="M866.304 170.66666667c-20.992-20.992-54.784-20.992-75.776 0l-266.24 266.24-266.24-266.24c-20.48-21.504-54.272-23.04-75.776-2.56s-23.04 53.76-3.072 75.776c1.024 1.024 1.536 2.048 2.56 2.56l266.24 266.24-266.24 266.24c-21.504 20.48-22.016 54.784-1.536 75.776 20.48 21.504 54.784 22.016 75.776 1.536l1.536-1.536 266.24-266.24 266.24 266.24c10.752 10.752 24.064 15.872 37.888 15.872 29.696 0 53.76-24.064 53.76-53.76 0-14.336-5.632-27.648-15.872-37.888l-265.728-266.24 266.24-266.24c20.992-20.992 20.992-54.784 0-75.776" ></path></symbol><symbol id="icon-Upload" viewBox="0 0 1024 1024"><path d="M959.65866667 653.48266667v207.872c0 18.944-15.36 34.816-34.816 34.816H93.35466667c-18.944 0-34.816-15.36-34.816-34.816v-207.872c0-18.944 15.36-34.816 34.816-34.816s34.816 15.36 34.816 34.816v173.056H890.02666667v-173.056c0-18.944 15.36-34.816 34.816-34.816 19.456 0.512 34.816 15.872 34.816 34.816zM554.66666667 110.25066667c-25.088-25.088-66.048-25.088-91.136 0L276.65066667 297.13066667c-12.8 13.312-12.8 34.816 0 48.128 13.312 13.824 35.328 14.336 49.152 1.024l148.992-148.992v469.504c0 18.944 14.848 35.328 33.792 35.84 19.456 0.512 35.84-15.36 35.84-34.816v-471.04l148.992 148.992c13.312 12.8 34.816 12.8 48.128 0 13.824-13.312 14.336-35.328 1.024-49.152l-187.904-186.368z" ></path></symbol><symbol id="icon-Download" viewBox="0 0 1024 1024"><path d="M284.672 484.01066667c-13.312-13.824-12.8-35.84 1.024-49.152 13.312-12.8 34.816-12.8 48.128 0l148.992 148.992v-471.04c0-18.944 15.36-34.816 34.816-34.816s34.816 15.36 34.816 34.816v471.04L701.44 434.85866667c13.824-13.312 35.84-12.8 49.152 1.024 12.8 13.312 12.8 34.816 0 48.128l-192 192c-22.528 22.528-58.88 22.528-80.896 0L284.672 484.01066667z m648.192 148.992c-18.944 0-34.816 15.36-34.816 34.816v173.056H135.68V667.30666667c0-18.944-15.36-34.816-34.816-34.816s-34.816 15.36-34.816 34.816v207.872c0 18.944 15.36 34.816 34.816 34.816h832c18.944 0 34.816-15.36 34.816-34.816V667.30666667c0-18.944-15.36-34.304-34.816-34.304z" ></path></symbol><symbol id="icon-FileDelete" viewBox="0 0 1024 1024"><path d="M893.61066667 200.192h-172.032V139.264c0.512-41.984-32.256-76.288-74.24-76.8H382.63466667c-41.472 1.024-74.24 35.328-73.728 76.8V199.68H136.87466667a34.304 34.304 0 0 0 0 68.608h34.304v619.008c0 41.984 33.792 75.776 75.776 75.776h536.576c41.984 0 75.776-33.792 75.776-75.776V268.8h34.304a34.304 34.304 0 0 0 0-68.608zM378.02666667 139.264c-0.512-3.584 1.536-7.168 5.12-8.192H652.97066667c3.584 0 6.656 3.072 6.656 6.656V199.68H378.02666667V139.264z m412.672 748.544c0.512 3.584-2.048 6.656-5.632 6.656H246.95466667c-3.584 0.512-6.656-2.048-6.656-5.632V268.8h550.4v619.008zM378.02666667 415.232h68.608v334.848H378.02666667V415.232z m206.336 0h68.608v334.848h-68.608V415.232z" ></path></symbol><symbol id="icon-FileRename" viewBox="0 0 1024 1024"><path d="M689.152 346.624l-130.048 1.024 0.512 363.52c-0.512 12.8-4.096 22.528-11.264 28.672-6.144 6.144-14.336 9.728-23.04 9.728-7.68 0-14.848-3.072-21.504-8.704-6.656-5.632-10.752-14.848-12.288-27.136L490.496 348.16H358.912c-11.776-2.048-20.48-6.656-26.112-13.824-5.632-6.144-8.192-13.824-8.192-22.016 0.512-8.704 4.608-16.384 10.752-22.528 6.656-6.656 15.872-10.24 28.672-10.24h267.776l62.976-0.512c8.704 2.56 16.896 7.68 22.528 14.848 4.608 6.144 7.168 13.312 6.656 20.992-0.512 7.68-3.584 14.848-9.216 20.48-6.144 4.608-14.336 8.704-25.6 11.264z m-310.784 492.544c19.456 0 32.768 12.288 32.768 31.232 0 18.432-12.8 31.232-32.768 31.232H182.784c-52.224 0-97.792-43.52-97.792-93.184V186.88c0-49.664 45.568-93.184 97.792-93.184h195.584c19.456 0 32.768 12.288 32.768 31.232s-12.8 31.232-32.768 31.232H182.784c-19.456 0-32.768 12.288-32.768 31.232V808.96c0 18.432 12.8 31.232 32.768 31.232l195.584-1.024zM955.392 187.392v621.056c0 49.664-45.568 93.184-97.792 93.184h-195.584c-19.456 0-32.768-12.288-32.768-31.232 0-18.432 12.8-31.232 32.768-31.232h195.584c19.456 0 32.768-12.288 32.768-31.232V186.88c0-18.432-12.8-31.232-32.768-31.232h-195.584c-19.456 0-32.768-12.288-32.768-31.232s12.8-31.232 32.768-31.232h195.584c52.224 0.512 97.792 44.032 97.792 94.208z" ></path></symbol><symbol id="icon-FilePaste" viewBox="0 0 1024 1024"><path d="M945.72088889 678.4v-527.36c0-31.232-25.088-56.32-56.32-56.32H318.52088889c-31.232 0-56.32 25.088-56.32 56.32v527.36c0 31.232 25.088 56.32 56.32 56.32H888.88888889c31.744 0 56.832-25.088 56.832-56.32z m-73.728-17.408H336.44088889V168.448h535.552v492.544z m-115.712 261.12H176.69688889c-55.808 0-101.376-45.568-101.376-101.376V305.152c0-20.48 16.384-36.864 36.864-36.864s36.864 16.384 36.864 36.864v515.584c0 15.36 12.288 27.648 27.648 27.648h579.584c20.48 0 36.864 16.384 36.864 36.864 0.512 19.968-16.384 36.864-36.864 36.864z" ></path></symbol><symbol id="icon-FileMove" viewBox="0 0 1024 1024"><path d="M756.05333334 429.73866667H259.36457143c-20.91885714 0-38.08304762-17.16419048-38.08304762-38.08304763 0-20.91885714 17.16419048-38.08304762 38.08304762-38.08304762h372.24838095l-47.73790476-47.73790475c-15.01866666-15.01866666-15.01866666-38.61942857 0-53.63809525s38.61942857-15.01866666 53.63809524 0L773.21752381 387.90095238c6.97295238 6.97295238 9.11847619 17.16419048 5.36380953 26.28266666-3.75466666 10.19123809-12.33676191 15.55504762-22.528 15.55504763z m12.33676189 142.14095237H272.77409523c-10.19123809 0-19.84609523 5.90019048-23.60076189 15.01866667-3.75466666 9.11847619-1.60914286 19.30971429 5.36380952 26.28266667l135.70438095 135.70438095c15.01866666 15.01866666 38.61942857 15.01866666 53.63809524 0s15.01866666-38.61942857 0-53.63809524l-47.73790476-47.73790476h372.24838094c20.91885714 0 38.08304762-17.16419048 38.08304763-38.08304762-0.53638095-20.91885714-17.16419048-37.54666666-38.08304763-37.54666667z m201.14285715-452.7055238v763.27009523c0 18.23695238-15.01866666 33.25561905-33.25561904 33.25561905H91.47733334c-18.23695238 0-33.25561905-15.01866666-33.25561905-33.25561905V119.17409524c0-18.23695238 15.01866666-33.25561905 33.25561905-33.25561905h844.8c18.77333334-0.53638095 33.25561905 14.48228571 33.25561904 33.25561905z m-61.14742857 29.50095237c0-1.07276191-0.53638095-1.60914286-1.60914286-1.60914285H120.97828571c-1.07276191 0-1.60914286 0.53638095-1.60914285 1.60914285v704.80457143c0 1.07276191 0.53638095 1.60914286 1.60914285 1.60914286h785.79809524c1.07276191 0 1.60914286-0.53638095 1.60914286-1.60914286V148.67504761z" ></path></symbol><symbol id="icon-More" viewBox="0 0 1024 1024"><path d="M617.472 545.96266666c0-53.24799999-43.008-96.768-96.768-96.768s-96.768 43.008-96.768 96.768c0 53.24799999 43.52 96.768 96.768 96.768 53.76 0 96.768-43.008 96.768-96.768z m-350.72 0c0-53.24799999-43.008-96.768-96.76799999-96.768-53.24799999 0-96.768 43.008-96.76800001 96.768 0 53.24799999 43.52 96.768 96.768 96.768s96.768-43.52 96.768-96.768z m701.952 0c0-53.24799999-43.52-96.768-96.768-96.768s-96.768 43.52-96.768 96.768 43.52 96.768 96.768 96.768 96.768-43.008 96.768-96.768z" ></path></symbol><symbol id="icon-NewFolder" viewBox="0 0 1024 1024"><path d="M660.30933333 797.696c17.92 0 32.256 14.336 32.256 32.256s-14.336 32.256-32.256 32.256H213.84533333c-65.536 0-118.784-53.248-118.784-118.784V218.112c0-57.344 53.248-103.936 118.784-103.936h185.344c62.464 0 122.368 41.984 137.216 95.744 6.656 25.6 41.984 47.616 74.24 47.616h197.12c65.536 0 118.784 53.248 118.784 118.784V486.4c0 17.92-14.336 32.256-32.256 32.256s-32.256-14.336-32.256-32.256V375.808c0-29.696-24.064-53.76-53.76-53.76h-197.12c-62.464 0-122.368-41.984-137.216-95.744-6.656-25.6-41.984-47.616-74.24-47.616H213.84533333c-29.184 0-53.76 17.92-53.76 39.424v526.336c0 29.696 24.064 53.76 53.76 53.76l446.464-0.512z m274.432-128.512H837.97333333v-96.768c0-17.408-13.824-31.232-31.232-31.232h-0.512c-17.408 0-31.232 13.824-31.232 31.232v96.768h-96.768c-17.408 0-31.232 13.824-31.232 31.232v0.512c0 17.408 13.824 31.232 31.232 31.232h96.768v97.28c0 17.408 13.824 31.232 31.232 31.232h0.512c17.408 0 31.232-13.824 31.232-31.232v-96.768h96.768c17.408 0 31.232-13.824 31.232-31.232v-0.512c0-17.408-13.824-31.232-31.232-31.744z" ></path></symbol><symbol id="icon-Detail" viewBox="0 0 1024 1024"><path d="M511.488 939.17866667c-240.128 0-435.2-195.072-435.2-435.2s195.072-435.2 435.2-435.2 435.2 195.072 435.2 435.2-195.072 435.2-435.2 435.2z m0-783.36c-192.512 0-348.16 155.648-348.16 348.16s155.648 348.16 348.16 348.16 348.16-155.648 348.16-348.16-156.16-348.16-348.16-348.16z m0 609.28c-24.064 0-43.52-19.456-43.52-43.52V416.93866667c0-24.064 19.456-43.52 43.52-43.52s43.52 19.456 43.52 43.52v304.64c0 24.064-19.456 43.52-43.52 43.52z m0-435.2c-24.064 1.024-44.032-17.92-45.056-41.984-1.024-24.064 17.92-44.032 41.984-45.056h3.072c24.064 1.024 43.008 20.992 41.984 45.056-1.024 22.528-19.456 40.96-41.984 41.984z" ></path></symbol><symbol id="icon-ShareMessage" viewBox="0 0 1024 1024"><path d="M915.28533334 527.872c0 50.176-40.96 91.136-91.136 91.136-38.912 0-73.216-24.576-86.016-60.928h-435.2c-16.896 25.088-45.056 40.448-75.776 40.448-50.176 0-91.136-40.96-91.136-91.136s40.96-91.136 91.136-91.136c16.896 0 33.28 4.608 47.616 13.312l225.28-225.28c-8.192-13.824-12.288-29.184-12.288-45.568 0-50.176 40.96-91.136 91.136-91.136s91.136 40.96 91.136 91.136-40.96 91.136-91.136 91.136c-13.312 0-25.6-2.56-37.888-8.192l-230.4 230.4c4.096 9.728 6.656 19.968 7.168 30.208h418.304c11.264-38.912 46.592-65.536 87.552-65.536 50.688 0 91.648 40.96 91.648 91.136z m-52.224 211.456c0-22.016-17.92-39.936-39.936-39.936H179.02933334c-22.016 0-39.936 17.92-39.936 39.936s17.92 39.936 39.936 39.936h644.096c22.016-0.512 39.936-17.92 39.936-39.936z m-268.8 158.72c0-22.016-17.92-39.936-39.936-39.936H179.02933334c-22.016 0-39.936 17.92-39.936 39.936s17.92 39.936 39.936 39.936h375.808c22.016 0 39.424-17.92 39.424-39.936z" ></path></symbol><symbol id="icon-Branch" viewBox="0 0 1024 1024"><path d="M755.54133334 366.76266667c-6.144 6.144-8.704 15.36-7.68 23.552 1.536 9.728 2.048 19.456 2.56 29.184 1.024 46.592-10.24 86.528-33.28 119.296-40.448 56.832-105.472 75.264-153.088 88.576-32.256 9.216-55.296 11.264-74.24 13.312-20.48 2.048-30.72 3.072-45.568 11.776-3.072 1.536-5.632 3.584-8.704 5.632-26.624 18.944-41.984 50.176-41.984 82.944v25.6c0 9.728 5.12 18.432 12.8 24.064 27.136 18.432 45.056 49.664 44.544 84.992-0.512 54.272-45.056 98.816-99.328 99.328-56.32 1.024-102.4-44.544-102.4-100.864 0-34.816 17.92-66.048 45.056-83.968 7.68-5.12 12.8-14.336 12.8-24.064V261.80266667c0-9.728-5.12-18.432-12.8-24.064C267.09333334 219.30666667 249.17333334 188.07466667 249.68533334 152.74666667c0.512-54.272 45.056-98.304 99.328-99.328 56.32-1.024 102.4 44.544 102.4 100.864 0 34.816-17.92 66.048-45.056 83.968-7.68 5.12-12.8 14.336-12.8 24.064v311.296c0 3.584 4.096 6.144 7.168 4.096 30.72-17.92 55.808-19.968 79.872-22.528 16.896-1.536 34.304-3.584 59.392-10.24 38.912-10.752 82.944-23.552 105.984-55.296 15.36-21.504 18.432-48.128 17.408-71.68-0.512-11.264-7.68-20.992-18.432-25.088-37.888-14.848-64.512-51.712-64.512-94.72 0.512-55.296 46.08-100.352 101.888-99.84 55.296 0.512 99.84 45.568 99.84 100.864 0.512 25.6-9.728 49.664-26.624 67.584z" ></path></symbol><symbol id="icon-SortSelect" viewBox="0 0 1024 1024"><path d="M871.424 409.25866667L553.472 91.30666667l-0.512-1.024c-4.096-5.632-8.704-10.752-14.848-14.848-12.288-8.192-27.136-11.776-41.984-8.704-14.848 2.56-27.648 11.264-35.84 23.552l-1.024 1.536-306.688 313.856c-19.968 19.968-19.968 52.736 0.512 72.192 19.456 18.432 48.128 23.04 72.192 11.264l236.544-242.688v632.32c-0.512 4.096-0.512 8.704 0 12.8 3.584 28.16 29.184 48.128 57.344 44.544 28.16-3.584 48.128-29.184 44.544-57.344V247.46666667l238.08 235.008 3.584 3.584c19.456 17.408 49.152 15.872 66.56-3.584l0.512-0.512c18.944-20.48 18.944-52.736-1.024-72.704z" ></path></symbol><symbol id="icon-Search" viewBox="0 0 1024 1024"><path d="M951.8567619 881.7127619l-152.576-151.04c21.504-27.648 39.936-58.368 53.76-90.624 19.456-46.08 29.184-97.28 29.184-155.648 0-55.808-10.24-108.032-30.208-155.648-20.48-49.152-49.152-91.648-84.48-126.976-36.864-36.864-79.36-65.536-126.976-85.504-49.152-20.992-101.376-31.232-155.648-31.232S378.4167619 95.7927619 329.2647619 116.7847619c-47.616 19.968-90.112 48.64-126.976 85.504-36.864 36.352-65.536 79.36-85.504 126.976-20.992 49.152-31.232 101.376-31.232 155.648s10.752 105.984 31.232 155.648c19.968 47.616 48.64 90.112 85.504 126.976 36.864 36.864 79.36 65.536 126.976 85.504 46.592 19.456 97.28 29.184 155.648 29.184s109.056-9.728 155.648-29.184c35.84-15.36 68.608-35.328 98.304-59.392l152.576 150.528c8.192 8.192 18.944 12.288 30.208 12.288 11.776 0 22.528-4.608 30.72-12.8 8.192-8.192 12.8-18.944 12.288-30.72 0-12.288-4.608-23.04-12.8-31.232z m-157.184-397.312c0 84.992-31.744 163.328-89.088 221.184-57.344 57.344-136.192 89.088-221.184 89.088s-163.328-31.744-221.184-89.088c-58.88-58.88-91.648-137.728-91.648-221.184 0-83.456 32.768-161.792 91.648-221.184 58.88-58.88 137.728-91.648 221.184-91.648 83.456 0 161.792 32.768 221.184 91.648 57.344 57.856 89.088 136.192 89.088 221.184z" ></path></symbol><symbol id="icon-MyFiles" viewBox="0 0 1024 1024"><path d="M926.72 241.152H473.088c-8.704 0-16.896-4.608-22.016-11.776L391.168 139.776c-5.12-7.168-13.312-11.776-22.016-11.776H111.616c-29.184 0-53.248 23.552-53.248 53.248v190.464h921.6V294.4c0-29.184-24.064-53.248-53.248-53.248zM58.368 833.536c0 29.184 23.552 53.248 53.248 53.248H926.72c29.184 0 53.248-23.552 53.248-53.248V425.472h-921.6v408.064z" ></path></symbol><symbol id="icon-Recycle" viewBox="0 0 1024 1024"><path d="M196.096 316.928h651.776c14.336 0 25.6 12.8 24.064 27.136l-75.776 585.216c-1.536 11.776-11.776 20.992-24.064 20.992H271.872c-12.288 0-22.528-9.216-24.064-20.992L172.544 344.064c-2.048-14.336 9.216-27.136 23.552-27.136z m734.72-133.12h-174.08V105.472c0-14.336-11.776-26.112-26.112-26.112H311.296c-14.336 0-26.112 11.776-26.112 26.112v78.336H113.664c-17.408 0-31.232 13.824-31.232 31.232v10.24c0 17.408 13.824 31.232 31.232 31.232h817.152c17.408 0 31.232-13.824 31.232-31.232v-10.24c0-16.896-13.824-31.232-31.232-31.232z m-568.32-25.6c0-11.264 9.216-20.48 20.48-20.48h270.848c11.264 0 20.48 9.216 20.48 20.48v25.6H362.496v-25.6z" ></path></symbol><symbol id="icon-UploadSuccess" viewBox="0 0 1024 1024"><path d="M516.16101588 78.05155556c-240.128 0-435.2 195.072-435.2 435.2s195.072 435.2 435.2 435.2 435.2-195.072 435.2-435.2-195.072-435.2-435.2-435.2z m228.864 332.288l-266.24 266.24c-8.192 8.192-18.944 12.288-30.208 12.288-10.752 0-21.504-4.096-30.208-12.288L287.29701588 544.99555556c-16.384-16.384-16.384-43.52 0-59.904 16.384-16.384 43.52-16.384 59.904 0l101.376 101.376L685.12101588 350.43555556c16.384-16.384 43.52-16.384 59.904 0 16.896 16.384 16.896 43.52 0 59.904z" ></path></symbol><symbol id="icon-UploadFail" viewBox="0 0 1024 1024"><path d="M514.19022223 77.71631746c-239.104 0-435.2 196.096-435.2 435.2s196.096 435.2 435.2 435.2 435.2-195.584 435.2-435.2-196.096-435.2-435.2-435.2z m0 668.672c-25.088 0-46.592-22.016-46.592-46.592s22.016-46.592 46.592-46.592 46.592 22.016 46.592 46.592-22.016 46.592-46.592 46.592z m40.448-180.224c0 31.232-12.288 55.808-40.448 55.808s-40.448-25.088-40.448-55.808l-15.36-229.888c0-31.232 25.088-55.808 52.736-55.808s55.808 25.088 55.808 55.808l-12.288 229.888z" ></path></symbol><symbol id="icon-Resume" viewBox="0 0 1024 1024"><path d="M238.592 210.09066667l0.512-8.704c5.12-40.96 41.984-70.144 82.944-65.536 10.24 1.024 19.968 4.608 28.672 9.216l2.56 1.536 452.096 301.568c33.792 25.088 40.96 72.704 15.872 106.496-5.12 6.656-10.752 12.288-17.408 16.896l-449.536 298.496c-11.776 8.192-26.112 12.8-40.96 12.288-40.96-1.536-74.752-33.792-74.752-74.752V210.09066667z" ></path></symbol><symbol id="icon-Pause" viewBox="0 0 1024 1024"><path d="M691.88266667 142.67733334h130.048c31.232 0 56.832 25.6 56.832 56.832V802.13333334c0 31.232-25.6 56.832-56.832 56.832h-130.048c-31.232 0-56.832-25.6-56.832-56.832V199.50933334c0-31.744 25.6-56.832 56.832-56.832z m-471.552 0h130.048c31.232 0 56.832 25.6 56.832 56.832V802.13333334c0 31.232-25.6 56.832-56.832 56.832H220.33066667c-31.232 0-56.832-25.6-56.832-56.832V199.50933334c0-31.744 25.6-56.832 56.832-56.832z" ></path></symbol><symbol id="icon-Close" viewBox="0 0 1024 1024"><path d="M647.33866667 513.70666667l212.992 212.992c23.552 23.552 23.552 61.44 0 84.992l-42.496 42.496c-23.552 23.552-61.44 23.552-84.992 0l-212.992-212.992L306.34666667 854.18666667c-23.552 23.552-61.44 23.552-84.992 0l-42.496-42.496c-23.552-23.552-23.552-61.44 0-84.992l212.992-212.992L178.34666667 300.71466667c-23.552-23.552-23.552-61.44 0-84.992l42.496-42.496c23.552-23.552 61.44-23.552 84.992 0l212.992 212.992L731.81866667 173.22666667c23.552-23.552 61.44-23.552 84.992 0l42.496 42.496c23.552 23.552 23.552 61.44 0 84.992l-211.968 212.992z" ></path></symbol><symbol id="icon-Fresh" viewBox="0 0 1024 1024"><path d="M873.63640678 642.01210976l-124.90334183-24.25659103c-11.22319883 54.66783947-38.37609923 104.26713753-78.20035315 144.09139145-110.42179495 110.42179495-289.2688989 111.14587229-398.24253916 2.17223203-109.33567893-109.33567893-108.97364026-288.54482156 1.44815469-398.96661651 108.24956292-108.24956292 282.02812546-111.14587229 391.36380439-8.32688945l-82.54481721 82.5448172L882.3253349 474.02616596 847.20758372 174.62018425l-91.59578401 91.595784c-159.65905434-152.4182809-414.5342794-148.79789418-572.0211017 8.68892813-160.38313168 160.38313168-161.4692477 420.68893683-2.53427071 579.62391382s419.24078214 157.84886098 579.62391382-2.5342707c57.56414884-56.8400715 96.30228674-130.33392191 112.95606566-209.98242974" ></path></symbol><symbol id="icon-PositionFolder" viewBox="0 0 1024 1024"><path d="M840.87466667 221.01333334h-290.304c-9.728 0-18.432-3.584-25.088-10.24L451.24266667 136.53333334c-24.064-24.064-55.808-36.864-89.6-36.864h-168.96c-69.632 0-126.464 56.832-126.464 126.464v567.296c0 69.632 56.832 126.464 126.464 126.464h648.192c69.632 0 126.464-56.832 126.464-126.464v-445.44c0-70.144-56.832-126.976-126.464-126.976z m35.328 126.464v445.44c0 19.456-15.872 35.328-35.328 35.328H192.68266667c-19.456 0-35.328-15.872-35.328-35.328V226.13333334c0-19.456 15.872-35.328 35.328-35.328h168.96c9.728 0 18.432 3.584 25.088 10.24l74.24 74.24c24.064 24.064 55.808 36.864 89.6 36.864h290.304c19.456 0 35.328 15.872 35.328 35.328z" ></path></symbol></svg>',function(t){var e,n=(e=(e=document.getElementsByTagName("script"))[e.length-1]).getAttribute("data-injectcss");if(!(e=e.getAttribute("data-disable-injectsvg"))){var i,r,a,o,s;if(n&&!t.__iconfont__svg__cssinject__){t.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(t){g&&g.log(t)}}i=function(){var e,n,i,r=document.createElement("div");r.innerHTML=t._iconfont_svg_string_3171550,(r=r.getElementsByTagName("svg")[0])&&(r.setAttribute("aria-hidden","true"),r.style.position="absolute",r.style.width=0,r.style.height=0,r.style.overflow="hidden",(e=document.body).firstChild?(n=r,(i=e.firstChild).parentNode.insertBefore(n,i)):e.appendChild(r))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(i,0):(r=function(){document.removeEventListener("DOMContentLoaded",r,!1),i()},document.addEventListener("DOMContentLoaded",r,!1)):document.attachEvent&&(a=i,o=t.document,s=!1,function t(){try{o.documentElement.doScroll("left")}catch(e){return void setTimeout(t,50)}l()}(),o.onreadystatechange=function(){"complete"==o.readyState&&(o.onreadystatechange=null,l())})}function l(){s||(s=!0,a())}}(window),function(e,n){var i,r=(i=!0,function(t,e){var n=i?function(){if(e){var n=e.apply(t,arguments);return e=null,n}}:function(){};return i=!1,n}),a=r(this,(function(){return a.toString().search("(((.+)+)+)+$").toString().constructor(a).search("(((.+)+)+)+$")}));a(),"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,(function(t,e){"use strict";var n=[],a=Object.getPrototypeOf,s=n.slice,l=n.flat?function(t){return n.flat.call(t)}:function(t){return n.concat.apply([],t)},c=n.push,h=n.indexOf,d={},u=d.toString,m=d.hasOwnProperty,p=m.toString,g=p.call(Object),f={},b=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},y=function(t){return null!=t&&t===t.window},v=t.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function x(t,e,n){var i,r,a=(n=n||v).createElement("script");if(a.text=t,e)for(i in w)(r=e[i]||e.getAttribute&&e.getAttribute(i))&&a.setAttribute(i,r);n.head.appendChild(a).parentNode.removeChild(a)}function C(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?d[u.call(t)]||"object":typeof t}var k="3.6.0",S=function(t,e){return new S.fn.init(t,e)};function P(t){var e=!!t&&"length"in t&&t.length,n=C(t);return!b(t)&&!y(t)&&("array"===n||0===e||"number"==typeof e&&0<e&&e-1 in t)}S.fn=S.prototype={jquery:k,constructor:S,length:0,toArray:function(){return s.call(this)},get:function(t){return null==t?s.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=S.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return S.each(this,t)},map:function(t){return this.pushStack(S.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(S.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(0<=n&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:n.sort,splice:n.splice},S.extend=S.fn.extend=function(){var t,e,n,i,r,a,o=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof o&&(c=o,o=arguments[s]||{},s++),"object"==typeof o||b(o)||(o={}),s===l&&(o=this,s--);s<l;s++)if(null!=(t=arguments[s]))for(e in t)i=t[e],"__proto__"!==e&&o!==i&&(c&&i&&(S.isPlainObject(i)||(r=Array.isArray(i)))?(n=o[e],a=r&&!Array.isArray(n)?[]:r||S.isPlainObject(n)?n:{},r=!1,o[e]=S.extend(c,a,i)):void 0!==i&&(o[e]=i));return o},S.extend({expando:"jQuery"+(k+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==u.call(t)||(e=a(t))&&("function"!=typeof(n=m.call(e,"constructor")&&e.constructor)||p.call(n)!==g))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){x(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,i=0;if(P(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},makeArray:function(t,e){var n=e||[];return null!=t&&(P(Object(t))?S.merge(n,"string"==typeof t?[t]:t):c.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:h.call(e,t,n)},merge:function(t,e){for(var n=+e.length,i=0,r=t.length;i<n;i++)t[r++]=e[i];return t.length=r,t},grep:function(t,e,n){for(var i=[],r=0,a=t.length,o=!n;r<a;r++)!e(t[r],r)!==o&&i.push(t[r]);return i},map:function(t,e,n){var i,r,a=0,o=[];if(P(t))for(i=t.length;a<i;a++)null!=(r=e(t[a],a,n))&&o.push(r);else for(a in t)null!=(r=e(t[a],a,n))&&o.push(r);return l(o)},guid:1,support:f}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=n[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){d["[object "+e+"]"]=e.toLowerCase()}));var _=function(t){var e,n,i,r,a,o,s,l,c,h,d,u,m,p,g,f,b,y,v,w="sizzle"+1*new Date,x=t.document,C=0,k=0,S=lt(),P=lt(),_=lt(),M=lt(),D=function(t,e){return t===e&&(d=!0),0},E={}.hasOwnProperty,O=[],A=O.pop,T=O.push,I=O.push,L=O.slice,z=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",F="[\\x20\\t\\r\\n\\f]",B="(?:\\\\[\\da-fA-F]{1,6}"+F+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",V="\\["+F+"*("+B+")(?:"+F+"*([*^$|!~]?=)"+F+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+B+"))|)"+F+"*\\]",N=":("+B+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+V+")*)|.*)\\)|)",H=new RegExp(F+"+","g"),G=new RegExp("^"+F+"+|((?:^|[^\\\\])(?:\\\\.)*)"+F+"+$","g"),Z=new RegExp("^"+F+"*,"+F+"*"),U=new RegExp("^"+F+"*([>+~]|"+F+")"+F+"*"),W=new RegExp(F+"|>"),Y=new RegExp(N),j=new RegExp("^"+B+"$"),X={ID:new RegExp("^#("+B+")"),CLASS:new RegExp("^\\.("+B+")"),TAG:new RegExp("^("+B+"|[*])"),ATTR:new RegExp("^"+V),PSEUDO:new RegExp("^"+N),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+F+"*(even|odd|(([+-]|)(\\d*)n|)"+F+"*(?:([+-]|)"+F+"*(\\d+)|))"+F+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+F+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+F+"*((?:-\\d)?\\d*)"+F+"*\\)|)(?=[^-]|$)","i")},q=/HTML$/i,$=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\[\\da-fA-F]{1,6}"+F+"?|\\\\([^\\r\\n\\f])","g"),nt=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},it=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,rt=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},at=function(){u()},ot=wt((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{I.apply(O=L.call(x.childNodes),x.childNodes),O[x.childNodes.length].nodeType}catch(t){I={apply:O.length?function(t,e){T.apply(t,L.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}function st(t,e,i,r){var a,s,c,h,d,p,b,y=e&&e.ownerDocument,x=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==x&&9!==x&&11!==x)return i;if(!r&&(u(e),e=e||m,g)){if(11!==x&&(d=Q.exec(t)))if(a=d[1]){if(9===x){if(!(c=e.getElementById(a)))return i;if(c.id===a)return i.push(c),i}else if(y&&(c=y.getElementById(a))&&v(e,c)&&c.id===a)return i.push(c),i}else{if(d[2])return I.apply(i,e.getElementsByTagName(t)),i;if((a=d[3])&&n.getElementsByClassName&&e.getElementsByClassName)return I.apply(i,e.getElementsByClassName(a)),i}if(n.qsa&&!M[t+" "]&&(!f||!f.test(t))&&(1!==x||"object"!==e.nodeName.toLowerCase())){if(b=t,y=e,1===x&&(W.test(t)||U.test(t))){for((y=tt.test(t)&&bt(e.parentNode)||e)===e&&n.scope||((h=e.getAttribute("id"))?h=h.replace(it,rt):e.setAttribute("id",h=w)),s=(p=o(t)).length;s--;)p[s]=(h?"#"+h:":scope")+" "+vt(p[s]);b=p.join(",")}try{return I.apply(i,y.querySelectorAll(b)),i}catch(e){M(t,!0)}finally{h===w&&e.removeAttribute("id")}}}return l(t.replace(G,"$1"),e,i,r)}function lt(){var t=[];return function e(n,r){return t.push(n+" ")>i.cacheLength&&delete e[t.shift()],e[n+" "]=r}}function ct(t){return t[w]=!0,t}function ht(t){var e=m.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function dt(t,e){for(var n=t.split("|"),r=n.length;r--;)i.attrHandle[n[r]]=e}function ut(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function mt(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function pt(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function gt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ot(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ft(t){return ct((function(e){return e=+e,ct((function(n,i){for(var r,a=t([],n.length,e),o=a.length;o--;)n[r=a[o]]&&(n[r]=!(i[r]=n[r]))}))}))}function bt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in n=st.support={},a=st.isXML=function(t){var e=t&&t.namespaceURI,n=t&&(t.ownerDocument||t).documentElement;return!q.test(e||n&&n.nodeName||"HTML")},u=st.setDocument=function(t){var e,r,o=t?t.ownerDocument||t:x;return o!=m&&9===o.nodeType&&o.documentElement&&(p=(m=o).documentElement,g=!a(m),x!=m&&(r=m.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",at,!1):r.attachEvent&&r.attachEvent("onunload",at)),n.scope=ht((function(t){return p.appendChild(t).appendChild(m.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length})),n.attributes=ht((function(t){return t.className="i",!t.getAttribute("className")})),n.getElementsByTagName=ht((function(t){return t.appendChild(m.createComment("")),!t.getElementsByTagName("*").length})),n.getElementsByClassName=J.test(m.getElementsByClassName),n.getById=ht((function(t){return p.appendChild(t).id=w,!m.getElementsByName||!m.getElementsByName(w).length})),n.getById?(i.filter.ID=function(t){var e=t.replace(et,nt);return function(t){return t.getAttribute("id")===e}},i.find.ID=function(t,e){if(void 0!==e.getElementById&&g){var n=e.getElementById(t);return n?[n]:[]}}):(i.filter.ID=function(t){var e=t.replace(et,nt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},i.find.ID=function(t,e){if(void 0!==e.getElementById&&g){var n,i,r,a=e.getElementById(t);if(a){if((n=a.getAttributeNode("id"))&&n.value===t)return[a];for(r=e.getElementsByName(t),i=0;a=r[i++];)if((n=a.getAttributeNode("id"))&&n.value===t)return[a]}return[]}}),i.find.TAG=n.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):n.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],r=0,a=e.getElementsByTagName(t);if("*"===t){for(;n=a[r++];)1===n.nodeType&&i.push(n);return i}return a},i.find.CLASS=n.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&g)return e.getElementsByClassName(t)},b=[],f=[],(n.qsa=J.test(m.querySelectorAll))&&(ht((function(t){var e;p.appendChild(t).innerHTML="<a id='"+w+"'></a><select id='"+w+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&f.push("[*^$]="+F+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||f.push("\\["+F+"*(?:value|"+R+")"),t.querySelectorAll("[id~="+w+"-]").length||f.push("~="),(e=m.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||f.push("\\["+F+"*name"+F+"*="+F+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||f.push(":checked"),t.querySelectorAll("a#"+w+"+*").length||f.push(".#.+[+~]"),t.querySelectorAll("\\\f"),f.push("[\\r\\n\\f]")})),ht((function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=m.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&f.push("name"+F+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&f.push(":enabled",":disabled"),p.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&f.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),f.push(",.*:")}))),(n.matchesSelector=J.test(y=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ht((function(t){n.disconnectedMatch=y.call(t,"*"),y.call(t,"[s!='']:x"),b.push("!=",N)})),f=f.length&&new RegExp(f.join("|")),b=b.length&&new RegExp(b.join("|")),e=J.test(p.compareDocumentPosition),v=e||J.test(p.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},D=e?function(t,e){if(t===e)return d=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(1&(i=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!n.sortDetached&&e.compareDocumentPosition(t)===i?t==m||t.ownerDocument==x&&v(x,t)?-1:e==m||e.ownerDocument==x&&v(x,e)?1:h?z(h,t)-z(h,e):0:4&i?-1:1)}:function(t,e){if(t===e)return d=!0,0;var n,i=0,r=t.parentNode,a=e.parentNode,o=[t],s=[e];if(!r||!a)return t==m?-1:e==m?1:r?-1:a?1:h?z(h,t)-z(h,e):0;if(r===a)return ut(t,e);for(n=t;n=n.parentNode;)o.unshift(n);for(n=e;n=n.parentNode;)s.unshift(n);for(;o[i]===s[i];)i++;return i?ut(o[i],s[i]):o[i]==x?-1:s[i]==x?1:0}),m},st.matches=function(t,e){return st(t,null,null,e)},st.matchesSelector=function(t,e){if(u(t),n.matchesSelector&&g&&!M[e+" "]&&(!b||!b.test(e))&&(!f||!f.test(e)))try{var i=y.call(t,e);if(i||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){M(e,!0)}return 0<st(e,m,null,[t]).length},st.contains=function(t,e){return(t.ownerDocument||t)!=m&&u(t),v(t,e)},st.attr=function(t,e){(t.ownerDocument||t)!=m&&u(t);var r=i.attrHandle[e.toLowerCase()],a=r&&E.call(i.attrHandle,e.toLowerCase())?r(t,e,!g):void 0;return void 0!==a?a:n.attributes||!g?t.getAttribute(e):(a=t.getAttributeNode(e))&&a.specified?a.value:null},st.escape=function(t){return(t+"").replace(it,rt)},st.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},st.uniqueSort=function(t){var e,i=[],r=0,a=0;if(d=!n.detectDuplicates,h=!n.sortStable&&t.slice(0),t.sort(D),d){for(;e=t[a++];)e===t[a]&&(r=i.push(a));for(;r--;)t.splice(i[r],1)}return h=null,t},r=st.getText=function(t){var e,n="",i=0,a=t.nodeType;if(a){if(1===a||9===a||11===a){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=r(t)}else if(3===a||4===a)return t.nodeValue}else for(;e=t[i++];)n+=r(e);return n},(i=st.selectors={cacheLength:50,createPseudo:ct,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,nt),t[3]=(t[3]||t[4]||t[5]||"").replace(et,nt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||st.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&st.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return X.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&Y.test(n)&&(e=o(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,nt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=S[t+" "];return e||(e=new RegExp("(^|"+F+")"+t+"("+F+"|$)"))&&S(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(i){var r=st.attr(i,t);return null==r?"!="===e:!e||(r+="","="===e?r===n:"!="===e?r!==n:"^="===e?n&&0===r.indexOf(n):"*="===e?n&&-1<r.indexOf(n):"$="===e?n&&r.slice(-n.length)===n:"~="===e?-1<(" "+r.replace(H," ")+" ").indexOf(n):"|="===e&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,i,r){var a="nth"!==t.slice(0,3),o="last"!==t.slice(-4),s="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,l){var c,h,d,u,m,p,g=a!==o?"nextSibling":"previousSibling",f=e.parentNode,b=s&&e.nodeName.toLowerCase(),y=!l&&!s,v=!1;if(f){if(a){for(;g;){for(u=e;u=u[g];)if(s?u.nodeName.toLowerCase()===b:1===u.nodeType)return!1;p=g="only"===t&&!p&&"nextSibling"}return!0}if(p=[o?f.firstChild:f.lastChild],o&&y){for(v=(m=(c=(h=(d=(u=f)[w]||(u[w]={}))[u.uniqueID]||(d[u.uniqueID]={}))[t]||[])[0]===C&&c[1])&&c[2],u=m&&f.childNodes[m];u=++m&&u&&u[g]||(v=m=0)||p.pop();)if(1===u.nodeType&&++v&&u===e){h[t]=[C,m,v];break}}else if(y&&(v=m=(c=(h=(d=(u=e)[w]||(u[w]={}))[u.uniqueID]||(d[u.uniqueID]={}))[t]||[])[0]===C&&c[1]),!1===v)for(;(u=++m&&u&&u[g]||(v=m=0)||p.pop())&&((s?u.nodeName.toLowerCase()!==b:1!==u.nodeType)||!++v||(y&&((h=(d=u[w]||(u[w]={}))[u.uniqueID]||(d[u.uniqueID]={}))[t]=[C,v]),u!==e)););return(v-=r)===i||v%i==0&&0<=v/i}}},PSEUDO:function(t,e){var n,r=i.pseudos[t]||i.setFilters[t.toLowerCase()]||st.error("unsupported pseudo: "+t);return r[w]?r(e):1<r.length?(n=[t,t,"",e],i.setFilters.hasOwnProperty(t.toLowerCase())?ct((function(t,n){for(var i,a=r(t,e),o=a.length;o--;)t[i=z(t,a[o])]=!(n[i]=a[o])})):function(t){return r(t,0,n)}):r}},pseudos:{not:ct((function(t){var e=[],n=[],i=s(t.replace(G,"$1"));return i[w]?ct((function(t,e,n,r){for(var a,o=i(t,null,r,[]),s=t.length;s--;)(a=o[s])&&(t[s]=!(e[s]=a))})):function(t,r,a){return e[0]=t,i(e,null,a,n),e[0]=null,!n.pop()}})),has:ct((function(t){return function(e){return 0<st(t,e).length}})),contains:ct((function(t){return t=t.replace(et,nt),function(e){return-1<(e.textContent||r(e)).indexOf(t)}})),lang:ct((function(t){return j.test(t||"")||st.error("unsupported lang: "+t),t=t.replace(et,nt).toLowerCase(),function(e){var n;do{if(n=g?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===p},focus:function(t){return t===m.activeElement&&(!m.hasFocus||m.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:gt(!1),disabled:gt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!i.pseudos.empty(t)},header:function(t){return K.test(t.nodeName)},input:function(t){return $.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:ft((function(){return[0]})),last:ft((function(t,e){return[e-1]})),eq:ft((function(t,e,n){return[n<0?n+e:n]})),even:ft((function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t})),odd:ft((function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t})),lt:ft((function(t,e,n){for(var i=n<0?n+e:e<n?e:n;0<=--i;)t.push(i);return t})),gt:ft((function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t}))}}).pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[e]=mt(e);for(e in{submit:!0,reset:!0})i.pseudos[e]=pt(e);function yt(){}function vt(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function wt(t,e,n){var i=e.dir,r=e.next,a=r||i,o=n&&"parentNode"===a,s=k++;return e.first?function(e,n,r){for(;e=e[i];)if(1===e.nodeType||o)return t(e,n,r);return!1}:function(e,n,l){var c,h,d,u=[C,s];if(l){for(;e=e[i];)if((1===e.nodeType||o)&&t(e,n,l))return!0}else for(;e=e[i];)if(1===e.nodeType||o)if(h=(d=e[w]||(e[w]={}))[e.uniqueID]||(d[e.uniqueID]={}),r&&r===e.nodeName.toLowerCase())e=e[i]||e;else{if((c=h[a])&&c[0]===C&&c[1]===s)return u[2]=c[2];if((h[a]=u)[2]=t(e,n,l))return!0}return!1}}function xt(t){return 1<t.length?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function Ct(t,e,n,i,r){for(var a,o=[],s=0,l=t.length,c=null!=e;s<l;s++)(a=t[s])&&(n&&!n(a,i,r)||(o.push(a),c&&e.push(s)));return o}function kt(t,e,n,i,r,a){return i&&!i[w]&&(i=kt(i)),r&&!r[w]&&(r=kt(r,a)),ct((function(a,o,s,l){var c,h,d,u=[],m=[],p=o.length,g=a||function(t,e,n){for(var i=0,r=e.length;i<r;i++)st(t,e[i],n);return n}(e||"*",s.nodeType?[s]:s,[]),f=!t||!a&&e?g:Ct(g,u,t,s,l),b=n?r||(a?t:p||i)?[]:o:f;if(n&&n(f,b,s,l),i)for(c=Ct(b,m),i(c,[],s,l),h=c.length;h--;)(d=c[h])&&(b[m[h]]=!(f[m[h]]=d));if(a){if(r||t){if(r){for(c=[],h=b.length;h--;)(d=b[h])&&c.push(f[h]=d);r(null,b=[],c,l)}for(h=b.length;h--;)(d=b[h])&&-1<(c=r?z(a,d):u[h])&&(a[c]=!(o[c]=d))}}else b=Ct(b===o?b.splice(p,b.length):b),r?r(null,o,b,l):I.apply(o,b)}))}function St(t){for(var e,n,r,a=t.length,o=i.relative[t[0].type],s=o||i.relative[" "],l=o?1:0,h=wt((function(t){return t===e}),s,!0),d=wt((function(t){return-1<z(e,t)}),s,!0),u=[function(t,n,i){var r=!o&&(i||n!==c)||((e=n).nodeType?h(t,n,i):d(t,n,i));return e=null,r}];l<a;l++)if(n=i.relative[t[l].type])u=[wt(xt(u),n)];else{if((n=i.filter[t[l].type].apply(null,t[l].matches))[w]){for(r=++l;r<a&&!i.relative[t[r].type];r++);return kt(1<l&&xt(u),1<l&&vt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(G,"$1"),n,l<r&&St(t.slice(l,r)),r<a&&St(t=t.slice(r)),r<a&&vt(t))}u.push(n)}return xt(u)}return yt.prototype=i.filters=i.pseudos,i.setFilters=new yt,o=st.tokenize=function(t,e){var n,r,a,o,s,l,c,h=P[t+" "];if(h)return e?0:h.slice(0);for(s=t,l=[],c=i.preFilter;s;){for(o in n&&!(r=Z.exec(s))||(r&&(s=s.slice(r[0].length)||s),l.push(a=[])),n=!1,(r=U.exec(s))&&(n=r.shift(),a.push({value:n,type:r[0].replace(G," ")}),s=s.slice(n.length)),i.filter)!(r=X[o].exec(s))||c[o]&&!(r=c[o](r))||(n=r.shift(),a.push({value:n,type:o,matches:r}),s=s.slice(n.length));if(!n)break}return e?s.length:s?st.error(t):P(t,l).slice(0)},s=st.compile=function(t,e){var n,r,a,s,l,h,d=[],p=[],f=_[t+" "];if(!f){for(e||(e=o(t)),n=e.length;n--;)(f=St(e[n]))[w]?d.push(f):p.push(f);(f=_(t,(r=p,s=0<(a=d).length,l=0<r.length,h=function(t,e,n,o,h){var d,p,f,b=0,y="0",v=t&&[],w=[],x=c,k=t||l&&i.find.TAG("*",h),S=C+=null==x?1:Math.random()||.1,P=k.length;for(h&&(c=e==m||e||h);y!==P&&null!=(d=k[y]);y++){if(l&&d){for(p=0,e||d.ownerDocument==m||(u(d),n=!g);f=r[p++];)if(f(d,e||m,n)){o.push(d);break}h&&(C=S)}s&&((d=!f&&d)&&b--,t&&v.push(d))}if(b+=y,s&&y!==b){for(p=0;f=a[p++];)f(v,w,e,n);if(t){if(0<b)for(;y--;)v[y]||w[y]||(w[y]=A.call(o));w=Ct(w)}I.apply(o,w),h&&!t&&0<w.length&&1<b+a.length&&st.uniqueSort(o)}return h&&(C=S,c=x),v},s?ct(h):h))).selector=t}return f},l=st.select=function(t,e,n,r){var a,l,c,h,d,u="function"==typeof t&&t,m=!r&&o(t=u.selector||t);if(n=n||[],1===m.length){if(2<(l=m[0]=m[0].slice(0)).length&&"ID"===(c=l[0]).type&&9===e.nodeType&&g&&i.relative[l[1].type]){if(!(e=(i.find.ID(c.matches[0].replace(et,nt),e)||[])[0]))return n;u&&(e=e.parentNode),t=t.slice(l.shift().value.length)}for(a=X.needsContext.test(t)?0:l.length;a--&&(c=l[a],!i.relative[h=c.type]);)if((d=i.find[h])&&(r=d(c.matches[0].replace(et,nt),tt.test(l[0].type)&&bt(e.parentNode)||e))){if(l.splice(a,1),!(t=r.length&&vt(l)))return I.apply(n,r),n;break}}return(u||s(t,m))(r,e,!g,n,!e||tt.test(t)&&bt(e.parentNode)||e),n},n.sortStable=w.split("").sort(D).join("")===w,n.detectDuplicates=!!d,u(),n.sortDetached=ht((function(t){return 1&t.compareDocumentPosition(m.createElement("fieldset"))})),ht((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||dt("type|href|height|width",(function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),n.attributes&&ht((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||dt("value",(function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),ht((function(t){return null==t.getAttribute("disabled")}))||dt(R,(function(t,e,n){var i;if(!n)return!0===t[e]?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null})),st}(t);S.find=_,S.expr=_.selectors,S.expr[":"]=S.expr.pseudos,S.uniqueSort=S.unique=_.uniqueSort,S.text=_.getText,S.isXMLDoc=_.isXML,S.contains=_.contains,S.escapeSelector=_.escape;var M=function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&S(t).is(n))break;i.push(t)}return i},D=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},E=S.expr.match.needsContext;function O(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var A=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function T(t,e,n){return b(e)?S.grep(t,(function(t,i){return!!e.call(t,i,t)!==n})):e.nodeType?S.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?S.grep(t,(function(t){return-1<h.call(e,t)!==n})):S.filter(e,t,n)}S.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?S.find.matchesSelector(i,t)?[i]:[]:S.find.matches(t,S.grep(e,(function(t){return 1===t.nodeType})))},S.fn.extend({find:function(t){var e,n,i=this.length,r=this;if("string"!=typeof t)return this.pushStack(S(t).filter((function(){for(e=0;e<i;e++)if(S.contains(r[e],this))return!0})));for(n=this.pushStack([]),e=0;e<i;e++)S.find(t,r[e],n);return 1<i?S.uniqueSort(n):n},filter:function(t){return this.pushStack(T(this,t||[],!1))},not:function(t){return this.pushStack(T(this,t||[],!0))},is:function(t){return!!T(this,"string"==typeof t&&E.test(t)?S(t):t||[],!1).length}});var I,L=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(S.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||I,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:L.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof S?e[0]:e,S.merge(this,S.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:v,!0)),A.test(i[1])&&S.isPlainObject(e))for(i in e)b(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(r=v.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):b(t)?void 0!==n.ready?n.ready(t):t(S):S.makeArray(t,this)}).prototype=S.fn,I=S(v);var z=/^(?:parents|prev(?:Until|All))/,R={children:!0,contents:!0,next:!0,prev:!0};function F(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}S.fn.extend({has:function(t){var e=S(t,this),n=e.length;return this.filter((function(){for(var t=0;t<n;t++)if(S.contains(this,e[t]))return!0}))},closest:function(t,e){var n,i=0,r=this.length,a=[],o="string"!=typeof t&&S(t);if(!E.test(t))for(;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(o?-1<o.index(n):1===n.nodeType&&S.find.matchesSelector(n,t))){a.push(n);break}return this.pushStack(1<a.length?S.uniqueSort(a):a)},index:function(t){return t?"string"==typeof t?h.call(S(t),this[0]):h.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),S.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return M(t,"parentNode")},parentsUntil:function(t,e,n){return M(t,"parentNode",n)},next:function(t){return F(t,"nextSibling")},prev:function(t){return F(t,"previousSibling")},nextAll:function(t){return M(t,"nextSibling")},prevAll:function(t){return M(t,"previousSibling")},nextUntil:function(t,e,n){return M(t,"nextSibling",n)},prevUntil:function(t,e,n){return M(t,"previousSibling",n)},siblings:function(t){return D((t.parentNode||{}).firstChild,t)},children:function(t){return D(t.firstChild)},contents:function(t){return null!=t.contentDocument&&a(t.contentDocument)?t.contentDocument:(O(t,"template")&&(t=t.content||t),S.merge([],t.childNodes))}},(function(t,e){S.fn[t]=function(n,i){var r=S.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=S.filter(i,r)),1<this.length&&(R[t]||S.uniqueSort(r),z.test(t)&&r.reverse()),this.pushStack(r)}}));var B=/[^\x20\t\r\n\f]+/g;function V(t){return t}function N(t){throw t}function H(t,e,n,i){var r;try{t&&b(r=t.promise)?r.call(t).done(e).fail(n):t&&b(r=t.then)?r.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}S.Callbacks=function(t){var e,n;t="string"==typeof t?(e=t,n={},S.each(e.match(B)||[],(function(t,e){n[e]=!0})),n):S.extend({},t);var i,r,a,o,s=[],l=[],c=-1,h=function(){for(o=o||t.once,a=i=!0;l.length;c=-1)for(r=l.shift();++c<s.length;)!1===s[c].apply(r[0],r[1])&&t.stopOnFalse&&(c=s.length,r=!1);t.memory||(r=!1),i=!1,o&&(s=r?[]:"")},d={add:function(){return s&&(r&&!i&&(c=s.length-1,l.push(r)),function e(n){S.each(n,(function(n,i){b(i)?t.unique&&d.has(i)||s.push(i):i&&i.length&&"string"!==C(i)&&e(i)}))}(arguments),r&&!i&&h()),this},remove:function(){return S.each(arguments,(function(t,e){for(var n;-1<(n=S.inArray(e,s,n));)s.splice(n,1),n<=c&&c--})),this},has:function(t){return t?-1<S.inArray(t,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return o=l=[],s=r="",this},disabled:function(){return!s},lock:function(){return o=l=[],r||i||(s=r=""),this},locked:function(){return!!o},fireWith:function(t,e){return o||(e=[t,(e=e||[]).slice?e.slice():e],l.push(e),i||h()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!a}};return d},S.extend({Deferred:function(e){var n=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],i="pending",r={state:function(){return i},always:function(){return a.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return S.Deferred((function(e){S.each(n,(function(n,i){var r=b(t[i[4]])&&t[i[4]];a[i[1]]((function(){var t=r&&r.apply(this,arguments);t&&b(t.promise)?t.promise().progress(e.notify).done(e.resolve).fail(e.reject):e[i[0]+"With"](this,r?[t]:arguments)}))})),t=null})).promise()},then:function(e,i,r){var a=0;function o(e,n,i,r){return function(){var s=this,l=arguments,c=function(){var t,c;if(!(e<a)){if((t=i.apply(s,l))===n.promise())throw new TypeError("Thenable self-resolution");c=t&&("object"==typeof t||"function"==typeof t)&&t.then,b(c)?r?c.call(t,o(a,n,V,r),o(a,n,N,r)):(a++,c.call(t,o(a,n,V,r),o(a,n,N,r),o(a,n,V,n.notifyWith))):(i!==V&&(s=void 0,l=[t]),(r||n.resolveWith)(s,l))}},h=r?c:function(){try{c()}catch(t){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(t,h.stackTrace),a<=e+1&&(i!==N&&(s=void 0,l=[t]),n.rejectWith(s,l))}};e?h():(S.Deferred.getStackHook&&(h.stackTrace=S.Deferred.getStackHook()),t.setTimeout(h))}}return S.Deferred((function(t){n[0][3].add(o(0,t,b(r)?r:V,t.notifyWith)),n[1][3].add(o(0,t,b(e)?e:V)),n[2][3].add(o(0,t,b(i)?i:N))})).promise()},promise:function(t){return null!=t?S.extend(t,r):r}},a={};return S.each(n,(function(t,e){var o=e[2],s=e[5];r[e[1]]=o.add,s&&o.add((function(){i=s}),n[3-t][2].disable,n[3-t][3].disable,n[0][2].lock,n[0][3].lock),o.add(e[3].fire),a[e[0]]=function(){return a[e[0]+"With"](this===a?void 0:this,arguments),this},a[e[0]+"With"]=o.fireWith})),r.promise(a),e&&e.call(a,a),a},when:function(t){var e=arguments.length,n=e,i=Array(n),r=s.call(arguments),a=S.Deferred(),o=function(t){return function(n){i[t]=this,r[t]=1<arguments.length?s.call(arguments):n,--e||a.resolveWith(i,r)}};if(e<=1&&(H(t,a.done(o(n)).resolve,a.reject,!e),"pending"===a.state()||b(r[n]&&r[n].then)))return a.then();for(;n--;)H(r[n],o(n),a.reject);return a.promise()}});var G=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(e,n){t.console&&t.console.warn&&e&&G.test(e.name)&&t.console.warn("jQuery.Deferred exception: "+e.message,e.stack,n)},S.readyException=function(e){t.setTimeout((function(){throw e}))};var Z=S.Deferred();function U(){v.removeEventListener("DOMContentLoaded",U),t.removeEventListener("load",U),S.ready()}S.fn.ready=function(t){return Z.then(t).catch((function(t){S.readyException(t)})),this},S.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--S.readyWait:S.isReady)||(S.isReady=!0)!==t&&0<--S.readyWait||Z.resolveWith(v,[S])}}),S.ready.then=Z.then,"complete"===v.readyState||"loading"!==v.readyState&&!v.documentElement.doScroll?t.setTimeout(S.ready):(v.addEventListener("DOMContentLoaded",U),t.addEventListener("load",U));var W=function(t,e,n,i,r,a,o){var s=0,l=t.length,c=null==n;if("object"===C(n))for(s in r=!0,n)W(t,e,s,n[s],!0,a,o);else if(void 0!==i&&(r=!0,b(i)||(o=!0),c&&(o?(e.call(t,i),e=null):(c=e,e=function(t,e,n){return c.call(S(t),n)})),e))for(;s<l;s++)e(t[s],n,o?i:i.call(t[s],s,e(t[s],n)));return r?t:c?e.call(t):l?e(t[0],n):a},Y=/^-ms-/,j=/-([a-z])/g;function X(t,e){return e.toUpperCase()}function q(t){return t.replace(Y,"ms-").replace(j,X)}var $=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function K(){this.expando=S.expando+K.uid++}K.uid=1,K.prototype={cache:function(t){var e=t[this.expando];return e||(e={},$(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,r=this.cache(t);if("string"==typeof e)r[q(e)]=n;else for(i in e)r[q(i)]=e[i];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][q(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){n=(e=Array.isArray(e)?e.map(q):(e=q(e))in i?[e]:e.match(B)||[]).length;for(;n--;)delete i[e[n]]}(void 0===e||S.isEmptyObject(i))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!S.isEmptyObject(e)}};var J=new K,Q=new K,tt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,et=/[A-Z]/g;function nt(t,e,n){var i,r;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(et,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n="true"===(r=n)||"false"!==r&&("null"===r?null:r===+r+""?+r:tt.test(r)?JSON.parse(r):r)}catch(t){}Q.set(t,e,n)}else n=void 0;return n}S.extend({hasData:function(t){return Q.hasData(t)||J.hasData(t)},data:function(t,e,n){return Q.access(t,e,n)},removeData:function(t,e){Q.remove(t,e)},_data:function(t,e,n){return J.access(t,e,n)},_removeData:function(t,e){J.remove(t,e)}}),S.fn.extend({data:function(t,e){var n,i,r,a=this[0],o=a&&a.attributes;if(void 0===t){if(this.length&&(r=Q.get(a),1===a.nodeType&&!J.get(a,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&0===(i=o[n].name).indexOf("data-")&&(i=q(i.slice(5)),nt(a,i,r[i]));J.set(a,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each((function(){Q.set(this,t)})):W(this,(function(e){var n;if(a&&void 0===e)return void 0!==(n=Q.get(a,t))||void 0!==(n=nt(a,t))?n:void 0;this.each((function(){Q.set(this,t,e)}))}),null,e,1<arguments.length,null,!0)},removeData:function(t){return this.each((function(){Q.remove(this,t)}))}}),S.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=J.get(t,e),n&&(!i||Array.isArray(n)?i=J.access(t,e,S.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=S.queue(t,e),i=n.length,r=n.shift(),a=S._queueHooks(t,e);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete a.stop,r.call(t,(function(){S.dequeue(t,e)}),a)),!i&&a&&a.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return J.get(t,n)||J.access(t,n,{empty:S.Callbacks("once memory").add((function(){J.remove(t,[e+"queue",n])}))})}}),S.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?S.queue(this[0],t):void 0===e?this:this.each((function(){var n=S.queue(this,t,e);S._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&S.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){S.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,r=S.Deferred(),a=this,o=this.length,s=function(){--i||r.resolveWith(a,[a])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";o--;)(n=J.get(a[o],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),r.promise(e)}});var it=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,rt=new RegExp("^(?:([+-])=|)("+it+")([a-z%]*)$","i"),at=["Top","Right","Bottom","Left"],ot=v.documentElement,st=function(t){return S.contains(t.ownerDocument,t)},lt={composed:!0};ot.getRootNode&&(st=function(t){return S.contains(t.ownerDocument,t)||t.getRootNode(lt)===t.ownerDocument});var ct=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&st(t)&&"none"===S.css(t,"display")};function ht(t,e,n,i){var r,a,o=20,s=i?function(){return i.cur()}:function(){return S.css(t,e,"")},l=s(),c=n&&n[3]||(S.cssNumber[e]?"":"px"),h=t.nodeType&&(S.cssNumber[e]||"px"!==c&&+l)&&rt.exec(S.css(t,e));if(h&&h[3]!==c){for(l/=2,c=c||h[3],h=+l||1;o--;)S.style(t,e,h+c),(1-a)*(1-(a=s()/l||.5))<=0&&(o=0),h/=a;h*=2,S.style(t,e,h+c),n=n||[]}return n&&(h=+h||+l||0,r=n[1]?h+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=h,i.end=r)),r}var dt={};function ut(t,e){for(var n,i,r,a,o,s,l,c=[],h=0,d=t.length;h<d;h++)(i=t[h]).style&&(n=i.style.display,e?("none"===n&&(c[h]=J.get(i,"display")||null,c[h]||(i.style.display="")),""===i.style.display&&ct(i)&&(c[h]=(l=o=a=void 0,o=(r=i).ownerDocument,s=r.nodeName,(l=dt[s])||(a=o.body.appendChild(o.createElement(s)),l=S.css(a,"display"),a.parentNode.removeChild(a),"none"===l&&(l="block"),dt[s]=l)))):"none"!==n&&(c[h]="none",J.set(i,"display",n)));for(h=0;h<d;h++)null!=c[h]&&(t[h].style.display=c[h]);return t}S.fn.extend({show:function(){return ut(this,!0)},hide:function(){return ut(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){ct(this)?S(this).show():S(this).hide()}))}});var mt,pt,gt=/^(?:checkbox|radio)$/i,ft=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,bt=/^$|^module$|\/(?:java|ecma)script/i;mt=v.createDocumentFragment().appendChild(v.createElement("div")),(pt=v.createElement("input")).setAttribute("type","radio"),pt.setAttribute("checked","checked"),pt.setAttribute("name","t"),mt.appendChild(pt),f.checkClone=mt.cloneNode(!0).cloneNode(!0).lastChild.checked,mt.innerHTML="<textarea>x</textarea>",f.noCloneChecked=!!mt.cloneNode(!0).lastChild.defaultValue,mt.innerHTML="<option></option>",f.option=!!mt.lastChild;var yt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function vt(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&O(t,e)?S.merge([t],n):n}function wt(t,e){for(var n=0,i=t.length;n<i;n++)J.set(t[n],"globalEval",!e||J.get(e[n],"globalEval"))}yt.tbody=yt.tfoot=yt.colgroup=yt.caption=yt.thead,yt.th=yt.td,f.option||(yt.optgroup=yt.option=[1,"<select multiple='multiple'>","</select>"]);var xt=/<|&#?\w+;/;function Ct(t,e,n,i,r){for(var a,o,s,l,c,h,d=e.createDocumentFragment(),u=[],m=0,p=t.length;m<p;m++)if((a=t[m])||0===a)if("object"===C(a))S.merge(u,a.nodeType?[a]:a);else if(xt.test(a)){for(o=o||d.appendChild(e.createElement("div")),s=(ft.exec(a)||["",""])[1].toLowerCase(),l=yt[s]||yt._default,o.innerHTML=l[1]+S.htmlPrefilter(a)+l[2],h=l[0];h--;)o=o.lastChild;S.merge(u,o.childNodes),(o=d.firstChild).textContent=""}else u.push(e.createTextNode(a));for(d.textContent="",m=0;a=u[m++];)if(i&&-1<S.inArray(a,i))r&&r.push(a);else if(c=st(a),o=vt(d.appendChild(a),"script"),c&&wt(o),n)for(h=0;a=o[h++];)bt.test(a.type||"")&&n.push(a);return d}var kt=/^([^.]*)(?:\.(.+)|)/;function St(){return!0}function Pt(){return!1}function _t(t,e){return t===function(){try{return v.activeElement}catch(t){}}()==("focus"===e)}function Mt(t,e,n,i,r,a){var o,s;if("object"==typeof e){for(s in"string"!=typeof n&&(i=i||n,n=void 0),e)Mt(t,s,n,i,e[s],a);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Pt;else if(!r)return t;return 1===a&&(o=r,(r=function(t){return S().off(t),o.apply(this,arguments)}).guid=o.guid||(o.guid=S.guid++)),t.each((function(){S.event.add(this,e,r,i,n)}))}function Dt(t,e,n){n?(J.set(t,e,!1),S.event.add(t,e,{namespace:!1,handler:function(t){var i,r,a=J.get(this,e);if(1&t.isTrigger&&this[e]){if(a.length)(S.event.special[e]||{}).delegateType&&t.stopPropagation();else if(a=s.call(arguments),J.set(this,e,a),i=n(this,e),this[e](),a!==(r=J.get(this,e))||i?J.set(this,e,!1):r={},a!==r)return t.stopImmediatePropagation(),t.preventDefault(),r&&r.value}else a.length&&(J.set(this,e,{value:S.event.trigger(S.extend(a[0],S.Event.prototype),a.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===J.get(t,e)&&S.event.add(t,e,St)}S.event={global:{},add:function(t,e,n,i,r){var a,o,s,l,c,h,d,u,m,p,g,f=J.get(t);if($(t))for(n.handler&&(n=(a=n).handler,r=a.selector),r&&S.find.matchesSelector(ot,r),n.guid||(n.guid=S.guid++),(l=f.events)||(l=f.events=Object.create(null)),(o=f.handle)||(o=f.handle=function(e){return void 0!==S&&S.event.triggered!==e.type?S.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(B)||[""]).length;c--;)m=g=(s=kt.exec(e[c])||[])[1],p=(s[2]||"").split(".").sort(),m&&(d=S.event.special[m]||{},m=(r?d.delegateType:d.bindType)||m,d=S.event.special[m]||{},h=S.extend({type:m,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&S.expr.match.needsContext.test(r),namespace:p.join(".")},a),(u=l[m])||((u=l[m]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,i,p,o)||t.addEventListener&&t.addEventListener(m,o)),d.add&&(d.add.call(t,h),h.handler.guid||(h.handler.guid=n.guid)),r?u.splice(u.delegateCount++,0,h):u.push(h),S.event.global[m]=!0)},remove:function(t,e,n,i,r){var a,o,s,l,c,h,d,u,m,p,g,f=J.hasData(t)&&J.get(t);if(f&&(l=f.events)){for(c=(e=(e||"").match(B)||[""]).length;c--;)if(m=g=(s=kt.exec(e[c])||[])[1],p=(s[2]||"").split(".").sort(),m){for(d=S.event.special[m]||{},u=l[m=(i?d.delegateType:d.bindType)||m]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=a=u.length;a--;)h=u[a],!r&&g!==h.origType||n&&n.guid!==h.guid||s&&!s.test(h.namespace)||i&&i!==h.selector&&("**"!==i||!h.selector)||(u.splice(a,1),h.selector&&u.delegateCount--,d.remove&&d.remove.call(t,h));o&&!u.length&&(d.teardown&&!1!==d.teardown.call(t,p,f.handle)||S.removeEvent(t,m,f.handle),delete l[m])}else for(m in l)S.event.remove(t,m+e[c],n,i,!0);S.isEmptyObject(l)&&J.remove(t,"handle events")}},dispatch:function(t){var e,n,i,r,a,o,s=new Array(arguments.length),l=S.event.fix(t),c=(J.get(this,"events")||Object.create(null))[l.type]||[],h=S.event.special[l.type]||{};for(s[0]=l,e=1;e<arguments.length;e++)s[e]=arguments[e];if(l.delegateTarget=this,!h.preDispatch||!1!==h.preDispatch.call(this,l)){for(o=S.event.handlers.call(this,l,c),e=0;(r=o[e++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,n=0;(a=r.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==a.namespace&&!l.rnamespace.test(a.namespace)||(l.handleObj=a,l.data=a.data,void 0!==(i=((S.event.special[a.origType]||{}).handle||a.handler).apply(r.elem,s))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return h.postDispatch&&h.postDispatch.call(this,l),l.result}},handlers:function(t,e){var n,i,r,a,o,s=[],l=e.delegateCount,c=t.target;if(l&&c.nodeType&&!("click"===t.type&&1<=t.button))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(a=[],o={},n=0;n<l;n++)void 0===o[r=(i=e[n]).selector+" "]&&(o[r]=i.needsContext?-1<S(r,this).index(c):S.find(r,this,null,[c]).length),o[r]&&a.push(i);a.length&&s.push({elem:c,handlers:a})}return c=this,l<e.length&&s.push({elem:c,handlers:e.slice(l)}),s},addProp:function(t,e){Object.defineProperty(S.Event.prototype,t,{enumerable:!0,configurable:!0,get:b(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[S.expando]?t:new S.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return gt.test(e.type)&&e.click&&O(e,"input")&&Dt(e,"click",St),!1},trigger:function(t){var e=this||t;return gt.test(e.type)&&e.click&&O(e,"input")&&Dt(e,"click"),!0},_default:function(t){var e=t.target;return gt.test(e.type)&&e.click&&O(e,"input")&&J.get(e,"click")||O(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},S.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},S.Event=function(t,e){if(!(this instanceof S.Event))return new S.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?St:Pt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&S.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:Pt,isPropagationStopped:Pt,isImmediatePropagationStopped:Pt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=St,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=St,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=St,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},S.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},(function(t,e){S.event.special[t]={setup:function(){return Dt(this,t,_t),!1},trigger:function(){return Dt(this,t),!0},_default:function(){return!0},delegateType:e}})),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){S.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=t.relatedTarget,r=t.handleObj;return i&&(i===this||S.contains(this,i))||(t.type=r.origType,n=r.handler.apply(this,arguments),t.type=e),n}}})),S.fn.extend({on:function(t,e,n,i){return Mt(this,t,e,n,i)},one:function(t,e,n,i){return Mt(this,t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,S(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=Pt),this.each((function(){S.event.remove(this,t,n,e)}))}});var Et=/<script|<style|<link/i,Ot=/checked\s*(?:[^=]|=\s*.checked.)/i,At=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Tt(t,e){return O(t,"table")&&O(11!==e.nodeType?e:e.firstChild,"tr")&&S(t).children("tbody")[0]||t}function It(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Lt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function zt(t,e){var n,i,r,a,o,s;if(1===e.nodeType){if(J.hasData(t)&&(s=J.get(t).events))for(r in J.remove(e,"handle events"),s)for(n=0,i=s[r].length;n<i;n++)S.event.add(e,r,s[r][n]);Q.hasData(t)&&(a=Q.access(t),o=S.extend({},a),Q.set(e,o))}}function Rt(t,e,n,i){e=l(e);var r,a,o,s,c,h,d=0,u=t.length,m=u-1,p=e[0],g=b(p);if(g||1<u&&"string"==typeof p&&!f.checkClone&&Ot.test(p))return t.each((function(r){var a=t.eq(r);g&&(e[0]=p.call(this,r,a.html())),Rt(a,e,n,i)}));if(u&&(a=(r=Ct(e,t[0].ownerDocument,!1,t,i)).firstChild,1===r.childNodes.length&&(r=a),a||i)){for(s=(o=S.map(vt(r,"script"),It)).length;d<u;d++)c=r,d!==m&&(c=S.clone(c,!0,!0),s&&S.merge(o,vt(c,"script"))),n.call(t[d],c,d);if(s)for(h=o[o.length-1].ownerDocument,S.map(o,Lt),d=0;d<s;d++)c=o[d],bt.test(c.type||"")&&!J.access(c,"globalEval")&&S.contains(h,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?S._evalUrl&&!c.noModule&&S._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},h):x(c.textContent.replace(At,""),c,h))}return t}function Ft(t,e,n){for(var i,r=e?S.filter(e,t):t,a=0;null!=(i=r[a]);a++)n||1!==i.nodeType||S.cleanData(vt(i)),i.parentNode&&(n&&st(i)&&wt(vt(i,"script")),i.parentNode.removeChild(i));return t}S.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var i,r,a,o,s,l,c,h=t.cloneNode(!0),d=st(t);if(!(f.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||S.isXMLDoc(t)))for(o=vt(h),i=0,r=(a=vt(t)).length;i<r;i++)s=a[i],"input"===(c=(l=o[i]).nodeName.toLowerCase())&>.test(s.type)?l.checked=s.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=s.defaultValue);if(e)if(n)for(a=a||vt(t),o=o||vt(h),i=0,r=a.length;i<r;i++)zt(a[i],o[i]);else zt(t,h);return 0<(o=vt(h,"script")).length&&wt(o,!d&&vt(t,"script")),h},cleanData:function(t){for(var e,n,i,r=S.event.special,a=0;void 0!==(n=t[a]);a++)if($(n)){if(e=n[J.expando]){if(e.events)for(i in e.events)r[i]?S.event.remove(n,i):S.removeEvent(n,i,e.handle);n[J.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),S.fn.extend({detach:function(t){return Ft(this,t,!0)},remove:function(t){return Ft(this,t)},text:function(t){return W(this,(function(t){return void 0===t?S.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Rt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Tt(this,t).appendChild(t)}))},prepend:function(){return Rt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Tt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Rt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Rt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(S.cleanData(vt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return S.clone(this,t,e)}))},html:function(t){return W(this,(function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Et.test(t)&&!yt[(ft.exec(t)||["",""])[1].toLowerCase()]){t=S.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(S.cleanData(vt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return Rt(this,arguments,(function(e){var n=this.parentNode;S.inArray(this,t)<0&&(S.cleanData(vt(this)),n&&n.replaceChild(e,this))}),t)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){S.fn[t]=function(t){for(var n,i=[],r=S(t),a=r.length-1,o=0;o<=a;o++)n=o===a?this:this.clone(!0),S(r[o])[e](n),c.apply(i,n.get());return this.pushStack(i)}}));var Bt=new RegExp("^("+it+")(?!px)[a-z%]+$","i"),Vt=function(e){var n=e.ownerDocument.defaultView;return n&&n.opener||(n=t),n.getComputedStyle(e)},Nt=function(t,e,n){var i,r,a={};for(r in e)a[r]=t.style[r],t.style[r]=e[r];for(r in i=n.call(t),e)t.style[r]=a[r];return i},Ht=new RegExp(at.join("|"),"i");function Gt(t,e,n){var i,r,a,o,s=t.style;return(n=n||Vt(t))&&(""!==(o=n.getPropertyValue(e)||n[e])||st(t)||(o=S.style(t,e)),!f.pixelBoxStyles()&&Bt.test(o)&&Ht.test(e)&&(i=s.width,r=s.minWidth,a=s.maxWidth,s.minWidth=s.maxWidth=s.width=o,o=n.width,s.width=i,s.minWidth=r,s.maxWidth=a)),void 0!==o?o+"":o}function Zt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function e(){if(h){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",h.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ot.appendChild(c).appendChild(h);var e=t.getComputedStyle(h);i="1%"!==e.top,l=12===n(e.marginLeft),h.style.right="60%",o=36===n(e.right),r=36===n(e.width),h.style.position="absolute",a=12===n(h.offsetWidth/3),ot.removeChild(c),h=null}}function n(t){return Math.round(parseFloat(t))}var i,r,a,o,s,l,c=v.createElement("div"),h=v.createElement("div");h.style&&(h.style.backgroundClip="content-box",h.cloneNode(!0).style.backgroundClip="",f.clearCloneStyle="content-box"===h.style.backgroundClip,S.extend(f,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),i},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),a},reliableTrDimensions:function(){var e,n,i,r;return null==s&&(e=v.createElement("table"),n=v.createElement("tr"),i=v.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",n.style.cssText="border:1px solid",n.style.height="1px",i.style.height="9px",i.style.display="block",ot.appendChild(e).appendChild(n).appendChild(i),r=t.getComputedStyle(n),s=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===n.offsetHeight,ot.removeChild(e)),s}}))}();var Ut=["Webkit","Moz","ms"],Wt=v.createElement("div").style,Yt={};function jt(t){return S.cssProps[t]||Yt[t]||(t in Wt?t:Yt[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=Ut.length;n--;)if((t=Ut[n]+e)in Wt)return t}(t)||t)}var Xt=/^(none|table(?!-c[ea]).+)/,qt=/^--/,$t={position:"absolute",visibility:"hidden",display:"block"},Kt={letterSpacing:"0",fontWeight:"400"};function Jt(t,e,n){var i=rt.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function Qt(t,e,n,i,r,a){var o="width"===e?1:0,s=0,l=0;if(n===(i?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(l+=S.css(t,n+at[o],!0,r)),i?("content"===n&&(l-=S.css(t,"padding"+at[o],!0,r)),"margin"!==n&&(l-=S.css(t,"border"+at[o]+"Width",!0,r))):(l+=S.css(t,"padding"+at[o],!0,r),"padding"!==n?l+=S.css(t,"border"+at[o]+"Width",!0,r):s+=S.css(t,"border"+at[o]+"Width",!0,r));return!i&&0<=a&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-a-l-s-.5))||0),l}function te(t,e,n){var i=Vt(t),r=(!f.boxSizingReliable()||n)&&"border-box"===S.css(t,"boxSizing",!1,i),a=r,o=Gt(t,e,i),s="offset"+e[0].toUpperCase()+e.slice(1);if(Bt.test(o)){if(!n)return o;o="auto"}return(!f.boxSizingReliable()&&r||!f.reliableTrDimensions()&&O(t,"tr")||"auto"===o||!parseFloat(o)&&"inline"===S.css(t,"display",!1,i))&&t.getClientRects().length&&(r="border-box"===S.css(t,"boxSizing",!1,i),(a=s in t)&&(o=t[s])),(o=parseFloat(o)||0)+Qt(t,e,n||(r?"border":"content"),a,i,o)+"px"}function ee(t,e,n,i,r){return new ee.prototype.init(t,e,n,i,r)}S.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Gt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,a,o,s=q(e),l=qt.test(e),c=t.style;if(l||(e=jt(s)),o=S.cssHooks[e]||S.cssHooks[s],void 0===n)return o&&"get"in o&&void 0!==(r=o.get(t,!1,i))?r:c[e];"string"==(a=typeof n)&&(r=rt.exec(n))&&r[1]&&(n=ht(t,e,r),a="number"),null!=n&&n==n&&("number"!==a||l||(n+=r&&r[3]||(S.cssNumber[s]?"":"px")),f.clearCloneStyle||""!==n||0!==e.indexOf("background")||(c[e]="inherit"),o&&"set"in o&&void 0===(n=o.set(t,n,i))||(l?c.setProperty(e,n):c[e]=n))}},css:function(t,e,n,i){var r,a,o,s=q(e);return qt.test(e)||(e=jt(s)),(o=S.cssHooks[e]||S.cssHooks[s])&&"get"in o&&(r=o.get(t,!0,n)),void 0===r&&(r=Gt(t,e,i)),"normal"===r&&e in Kt&&(r=Kt[e]),""===n||n?(a=parseFloat(r),!0===n||isFinite(a)?a||0:r):r}}),S.each(["height","width"],(function(t,e){S.cssHooks[e]={get:function(t,n,i){if(n)return!Xt.test(S.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?te(t,e,i):Nt(t,$t,(function(){return te(t,e,i)}))},set:function(t,n,i){var r,a=Vt(t),o=!f.scrollboxSize()&&"absolute"===a.position,s=(o||i)&&"border-box"===S.css(t,"boxSizing",!1,a),l=i?Qt(t,e,i,s,a):0;return s&&o&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(a[e])-Qt(t,e,"border",!1,a)-.5)),l&&(r=rt.exec(n))&&"px"!==(r[3]||"px")&&(t.style[e]=n,n=S.css(t,e)),Jt(0,n,l)}}})),S.cssHooks.marginLeft=Zt(f.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Gt(t,"marginLeft"))||t.getBoundingClientRect().left-Nt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),S.each({margin:"",padding:"",border:"Width"},(function(t,e){S.cssHooks[t+e]={expand:function(n){for(var i=0,r={},a="string"==typeof n?n.split(" "):[n];i<4;i++)r[t+at[i]+e]=a[i]||a[i-2]||a[0];return r}},"margin"!==t&&(S.cssHooks[t+e].set=Jt)})),S.fn.extend({css:function(t,e){return W(this,(function(t,e,n){var i,r,a={},o=0;if(Array.isArray(e)){for(i=Vt(t),r=e.length;o<r;o++)a[e[o]]=S.css(t,e[o],!1,i);return a}return void 0!==n?S.style(t,e,n):S.css(t,e)}),t,e,1<arguments.length)}}),((S.Tween=ee).prototype={constructor:ee,init:function(t,e,n,i,r,a){this.elem=t,this.prop=n,this.easing=r||S.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=a||(S.cssNumber[n]?"":"px")},cur:function(){var t=ee.propHooks[this.prop];return t&&t.get?t.get(this):ee.propHooks._default.get(this)},run:function(t){var e,n=ee.propHooks[this.prop];return this.options.duration?this.pos=e=S.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ee.propHooks._default.set(this),this}}).init.prototype=ee.prototype,(ee.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=S.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){S.fx.step[t.prop]?S.fx.step[t.prop](t):1!==t.elem.nodeType||!S.cssHooks[t.prop]&&null==t.elem.style[jt(t.prop)]?t.elem[t.prop]=t.now:S.style(t.elem,t.prop,t.now+t.unit)}}}).scrollTop=ee.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},S.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},S.fx=ee.prototype.init,S.fx.step={};var ne,ie,re,ae,oe=/^(?:toggle|show|hide)$/,se=/queueHooks$/;function le(){ie&&(!1===v.hidden&&t.requestAnimationFrame?t.requestAnimationFrame(le):t.setTimeout(le,S.fx.interval),S.fx.tick())}function ce(){return t.setTimeout((function(){ne=void 0})),ne=Date.now()}function he(t,e){var n,i=0,r={height:t};for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=at[i])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function de(t,e,n){for(var i,r=(ue.tweeners[e]||[]).concat(ue.tweeners["*"]),a=0,o=r.length;a<o;a++)if(i=r[a].call(n,e,t))return i}function ue(t,e,n){var i,r,a=0,o=ue.prefilters.length,s=S.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var e=ne||ce(),n=Math.max(0,c.startTime+c.duration-e),i=1-(n/c.duration||0),a=0,o=c.tweens.length;a<o;a++)c.tweens[a].run(i);return s.notifyWith(t,[c,i,n]),i<1&&o?n:(o||s.notifyWith(t,[c,1,0]),s.resolveWith(t,[c]),!1)},c=s.promise({elem:t,props:S.extend({},e),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},n),originalProperties:e,originalOptions:n,startTime:ne||ce(),duration:n.duration,tweens:[],createTween:function(e,n){var i=S.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(i),i},stop:function(e){var n=0,i=e?c.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)c.tweens[n].run(1);return e?(s.notifyWith(t,[c,1,0]),s.resolveWith(t,[c,e])):s.rejectWith(t,[c,e]),this}}),h=c.props;for(function(t,e){var n,i,r,a,o;for(n in t)if(r=e[i=q(n)],a=t[n],Array.isArray(a)&&(r=a[1],a=t[n]=a[0]),n!==i&&(t[i]=a,delete t[n]),(o=S.cssHooks[i])&&"expand"in o)for(n in a=o.expand(a),delete t[i],a)n in t||(t[n]=a[n],e[n]=r);else e[i]=r}(h,c.opts.specialEasing);a<o;a++)if(i=ue.prefilters[a].call(c,t,h,c.opts))return b(i.stop)&&(S._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return S.map(h,de,c),b(c.opts.start)&&c.opts.start.call(t,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),S.fx.timer(S.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c}S.Animation=S.extend(ue,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return ht(n.elem,t,rt.exec(e),n),n}]},tweener:function(t,e){b(t)?(e=t,t=["*"]):t=t.match(B);for(var n,i=0,r=t.length;i<r;i++)n=t[i],ue.tweeners[n]=ue.tweeners[n]||[],ue.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var i,r,a,o,s,l,c,h,d="width"in e||"height"in e,u=this,m={},p=t.style,g=t.nodeType&&ct(t),f=J.get(t,"fxshow");for(i in n.queue||(null==(o=S._queueHooks(t,"fx")).unqueued&&(o.unqueued=0,s=o.empty.fire,o.empty.fire=function(){o.unqueued||s()}),o.unqueued++,u.always((function(){u.always((function(){o.unqueued--,S.queue(t,"fx").length||o.empty.fire()}))}))),e)if(r=e[i],oe.test(r)){if(delete e[i],a=a||"toggle"===r,r===(g?"hide":"show")){if("show"!==r||!f||void 0===f[i])continue;g=!0}m[i]=f&&f[i]||S.style(t,i)}if((l=!S.isEmptyObject(e))||!S.isEmptyObject(m))for(i in d&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=f&&f.display)&&(c=J.get(t,"display")),"none"===(h=S.css(t,"display"))&&(c?h=c:(ut([t],!0),c=t.style.display||c,h=S.css(t,"display"),ut([t]))),("inline"===h||"inline-block"===h&&null!=c)&&"none"===S.css(t,"float")&&(l||(u.done((function(){p.display=c})),null==c&&(h=p.display,c="none"===h?"":h)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",u.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),l=!1,m)l||(f?"hidden"in f&&(g=f.hidden):f=J.access(t,"fxshow",{display:c}),a&&(f.hidden=!g),g&&ut([t],!0),u.done((function(){for(i in g||ut([t]),J.remove(t,"fxshow"),m)S.style(t,i,m[i])}))),l=de(g?f[i]:0,i,u),i in f||(f[i]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?ue.prefilters.unshift(t):ue.prefilters.push(t)}}),S.speed=function(t,e,n){var i=t&&"object"==typeof t?S.extend({},t):{complete:n||!n&&e||b(t)&&t,duration:t,easing:n&&e||e&&!b(e)&&e};return S.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in S.fx.speeds?i.duration=S.fx.speeds[i.duration]:i.duration=S.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){b(i.old)&&i.old.call(this),i.queue&&S.dequeue(this,i.queue)},i},S.fn.extend({fadeTo:function(t,e,n,i){return this.filter(ct).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var r=S.isEmptyObject(t),a=S.speed(e,n,i),o=function(){var e=ue(this,S.extend({},t),a);(r||J.get(this,"finish"))&&e.stop(!0)};return o.finish=o,r||!1===a.queue?this.each(o):this.queue(a.queue,o)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each((function(){var e=!0,r=null!=t&&t+"queueHooks",a=S.timers,o=J.get(this);if(r)o[r]&&o[r].stop&&i(o[r]);else for(r in o)o[r]&&o[r].stop&&se.test(r)&&i(o[r]);for(r=a.length;r--;)a[r].elem!==this||null!=t&&a[r].queue!==t||(a[r].anim.stop(n),e=!1,a.splice(r,1));!e&&n||S.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,n=J.get(this),i=n[t+"queue"],r=n[t+"queueHooks"],a=S.timers,o=i?i.length:0;for(n.finish=!0,S.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=a.length;e--;)a[e].elem===this&&a[e].queue===t&&(a[e].anim.stop(!0),a.splice(e,1));for(e=0;e<o;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish}))}}),S.each(["toggle","show","hide"],(function(t,e){var n=S.fn[e];S.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(he(e,!0),t,i,r)}})),S.each({slideDown:he("show"),slideUp:he("hide"),slideToggle:he("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){S.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}})),S.timers=[],S.fx.tick=function(){var t,e=0,n=S.timers;for(ne=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||S.fx.stop(),ne=void 0},S.fx.timer=function(t){S.timers.push(t),S.fx.start()},S.fx.interval=13,S.fx.start=function(){ie||(ie=!0,le())},S.fx.stop=function(){ie=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(e,n){return e=S.fx&&S.fx.speeds[e]||e,n=n||"fx",this.queue(n,(function(n,i){var r=t.setTimeout(n,e);i.stop=function(){t.clearTimeout(r)}}))},re=v.createElement("input"),ae=v.createElement("select").appendChild(v.createElement("option")),re.type="checkbox",f.checkOn=""!==re.value,f.optSelected=ae.selected,(re=v.createElement("input")).value="t",re.type="radio",f.radioValue="t"===re.value;var me,pe=S.expr.attrHandle;S.fn.extend({attr:function(t,e){return W(this,S.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each((function(){S.removeAttr(this,t)}))}}),S.extend({attr:function(t,e,n){var i,r,a=t.nodeType;if(3!==a&&8!==a&&2!==a)return void 0===t.getAttribute?S.prop(t,e,n):(1===a&&S.isXMLDoc(t)||(r=S.attrHooks[e.toLowerCase()]||(S.expr.match.bool.test(e)?me:void 0)),void 0!==n?null===n?void S.removeAttr(t,e):r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):r&&"get"in r&&null!==(i=r.get(t,e))?i:null==(i=S.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!f.radioValue&&"radio"===e&&O(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,r=e&&e.match(B);if(r&&1===t.nodeType)for(;n=r[i++];)t.removeAttribute(n)}}),me={set:function(t,e,n){return!1===e?S.removeAttr(t,n):t.setAttribute(n,n),n}},S.each(S.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=pe[e]||S.find.attr;pe[e]=function(t,e,i){var r,a,o=e.toLowerCase();return i||(a=pe[o],pe[o]=r,r=null!=n(t,e,i)?o:null,pe[o]=a),r}}));var ge=/^(?:input|select|textarea|button)$/i,fe=/^(?:a|area)$/i;function be(t){return(t.match(B)||[]).join(" ")}function ye(t){return t.getAttribute&&t.getAttribute("class")||""}function ve(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(B)||[]}S.fn.extend({prop:function(t,e){return W(this,S.prop,t,e,1<arguments.length)},removeProp:function(t){return this.each((function(){delete this[S.propFix[t]||t]}))}}),S.extend({prop:function(t,e,n){var i,r,a=t.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&S.isXMLDoc(t)||(e=S.propFix[e]||e,r=S.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=S.find.attr(t,"tabindex");return e?parseInt(e,10):ge.test(t.nodeName)||fe.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),f.optSelected||(S.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){S.propFix[this.toLowerCase()]=this})),S.fn.extend({addClass:function(t){var e,n,i,r,a,o,s,l=0;if(b(t))return this.each((function(e){S(this).addClass(t.call(this,e,ye(this)))}));if((e=ve(t)).length)for(;n=this[l++];)if(r=ye(n),i=1===n.nodeType&&" "+be(r)+" "){for(o=0;a=e[o++];)i.indexOf(" "+a+" ")<0&&(i+=a+" ");r!==(s=be(i))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,i,r,a,o,s,l=0;if(b(t))return this.each((function(e){S(this).removeClass(t.call(this,e,ye(this)))}));if(!arguments.length)return this.attr("class","");if((e=ve(t)).length)for(;n=this[l++];)if(r=ye(n),i=1===n.nodeType&&" "+be(r)+" "){for(o=0;a=e[o++];)for(;-1<i.indexOf(" "+a+" ");)i=i.replace(" "+a+" "," ");r!==(s=be(i))&&n.setAttribute("class",s)}return this},toggleClass:function(t,e){var n=typeof t,i="string"===n||Array.isArray(t);return"boolean"==typeof e&&i?e?this.addClass(t):this.removeClass(t):b(t)?this.each((function(n){S(this).toggleClass(t.call(this,n,ye(this),e),e)})):this.each((function(){var e,r,a,o;if(i)for(r=0,a=S(this),o=ve(t);e=o[r++];)a.hasClass(e)?a.removeClass(e):a.addClass(e);else void 0!==t&&"boolean"!==n||((e=ye(this))&&J.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":J.get(this,"__className__")||""))}))},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&-1<(" "+be(ye(n))+" ").indexOf(e))return!0;return!1}});var we=/\r/g;S.fn.extend({val:function(t){var e,n,i,r=this[0];return arguments.length?(i=b(t),this.each((function(n){var r;1===this.nodeType&&(null==(r=i?t.call(this,n,S(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=S.map(r,(function(t){return null==t?"":t+""}))),(e=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))}))):r?(e=S.valHooks[r.type]||S.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(we,""):null==n?"":n:void 0}}),S.extend({valHooks:{option:{get:function(t){var e=S.find.attr(t,"value");return null!=e?e:be(S.text(t))}},select:{get:function(t){var e,n,i,r=t.options,a=t.selectedIndex,o="select-one"===t.type,s=o?null:[],l=o?a+1:r.length;for(i=a<0?l:o?a:0;i<l;i++)if(((n=r[i]).selected||i===a)&&!n.disabled&&(!n.parentNode.disabled||!O(n.parentNode,"optgroup"))){if(e=S(n).val(),o)return e;s.push(e)}return s},set:function(t,e){for(var n,i,r=t.options,a=S.makeArray(e),o=r.length;o--;)((i=r[o]).selected=-1<S.inArray(S.valHooks.option.get(i),a))&&(n=!0);return n||(t.selectedIndex=-1),a}}}}),S.each(["radio","checkbox"],(function(){S.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=-1<S.inArray(S(t).val(),e)}},f.checkOn||(S.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),f.focusin="onfocusin"in t;var xe=/^(?:focusinfocus|focusoutblur)$/,Ce=function(t){t.stopPropagation()};S.extend(S.event,{trigger:function(e,n,i,r){var a,o,s,l,c,h,d,u,p=[i||v],g=m.call(e,"type")?e.type:e,f=m.call(e,"namespace")?e.namespace.split("."):[];if(o=u=s=i=i||v,3!==i.nodeType&&8!==i.nodeType&&!xe.test(g+S.event.triggered)&&(-1<g.indexOf(".")&&(g=(f=g.split(".")).shift(),f.sort()),c=g.indexOf(":")<0&&"on"+g,(e=e[S.expando]?e:new S.Event(g,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=f.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),n=null==n?[e]:S.makeArray(n,[e]),d=S.event.special[g]||{},r||!d.trigger||!1!==d.trigger.apply(i,n))){if(!r&&!d.noBubble&&!y(i)){for(l=d.delegateType||g,xe.test(l+g)||(o=o.parentNode);o;o=o.parentNode)p.push(o),s=o;s===(i.ownerDocument||v)&&p.push(s.defaultView||s.parentWindow||t)}for(a=0;(o=p[a++])&&!e.isPropagationStopped();)u=o,e.type=1<a?l:d.bindType||g,(h=(J.get(o,"events")||Object.create(null))[e.type]&&J.get(o,"handle"))&&h.apply(o,n),(h=c&&o[c])&&h.apply&&$(o)&&(e.result=h.apply(o,n),!1===e.result&&e.preventDefault());return e.type=g,r||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(p.pop(),n)||!$(i)||c&&b(i[g])&&!y(i)&&((s=i[c])&&(i[c]=null),S.event.triggered=g,e.isPropagationStopped()&&u.addEventListener(g,Ce),i[g](),e.isPropagationStopped()&&u.removeEventListener(g,Ce),S.event.triggered=void 0,s&&(i[c]=s)),e.result}},simulate:function(t,e,n){var i=S.extend(new S.Event,n,{type:t,isSimulated:!0});S.event.trigger(i,null,e)}}),S.fn.extend({trigger:function(t,e){return this.each((function(){S.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return S.event.trigger(t,e,n,!0)}}),f.focusin||S.each({focus:"focusin",blur:"focusout"},(function(t,e){var n=function(t){S.event.simulate(e,t.target,S.event.fix(t))};S.event.special[e]={setup:function(){var i=this.ownerDocument||this.document||this,r=J.access(i,e);r||i.addEventListener(t,n,!0),J.access(i,e,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=J.access(i,e)-1;r?J.access(i,e,r):(i.removeEventListener(t,n,!0),J.remove(i,e))}}}));var ke=t.location,Se={guid:Date.now()},Pe=/\?/;S.parseXML=function(e){var n,i;if(!e||"string"!=typeof e)return null;try{n=(new t.DOMParser).parseFromString(e,"text/xml")}catch(t){}return i=n&&n.getElementsByTagName("parsererror")[0],n&&!i||S.error("Invalid XML: "+(i?S.map(i.childNodes,(function(t){return t.textContent})).join("\n"):e)),n};var _e=/\[\]$/,Me=/\r?\n/g,De=/^(?:submit|button|image|reset|file)$/i,Ee=/^(?:input|select|textarea|keygen)/i;function Oe(t,e,n,i){var r;if(Array.isArray(e))S.each(e,(function(e,r){n||_e.test(t)?i(t,r):Oe(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,n,i)}));else if(n||"object"!==C(e))i(t,e);else for(r in e)Oe(t+"["+r+"]",e[r],n,i)}S.param=function(t,e){var n,i=[],r=function(t,e){var n=b(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!S.isPlainObject(t))S.each(t,(function(){r(this.name,this.value)}));else for(n in t)Oe(n,t[n],e,r);return i.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=S.prop(this,"elements");return t?S.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!S(this).is(":disabled")&&Ee.test(this.nodeName)&&!De.test(t)&&(this.checked||!gt.test(t))})).map((function(t,e){var n=S(this).val();return null==n?null:Array.isArray(n)?S.map(n,(function(t){return{name:e.name,value:t.replace(Me,"\r\n")}})):{name:e.name,value:n.replace(Me,"\r\n")}})).get()}});var Ae=/%20/g,Te=/#.*$/,Ie=/([?&])_=[^&]*/,Le=/^(.*?):[ \t]*([^\r\n]*)$/gm,ze=/^(?:GET|HEAD)$/,Re=/^\/\//,Fe={},Be={},Ve="*/".concat("*"),Ne=v.createElement("a");function He(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,r=0,a=e.toLowerCase().match(B)||[];if(b(n))for(;i=a[r++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function Ge(t,e,n,i){var r={},a=t===Be;function o(s){var l;return r[s]=!0,S.each(t[s]||[],(function(t,s){var c=s(e,n,i);return"string"!=typeof c||a||r[c]?a?!(l=c):void 0:(e.dataTypes.unshift(c),o(c),!1)})),l}return o(e.dataTypes[0])||!r["*"]&&o("*")}function Ze(t,e){var n,i,r=S.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i||(i={}))[n]=e[n]);return i&&S.extend(!0,t,i),t}Ne.href=ke.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ke.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ke.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ve,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ze(Ze(t,S.ajaxSettings),e):Ze(S.ajaxSettings,t)},ajaxPrefilter:He(Fe),ajaxTransport:He(Be),ajax:function(e,n){"object"==typeof e&&(n=e,e=void 0),n=n||{};var i,r,a,o,s,l,c,h,d,u,m=S.ajaxSetup({},n),p=m.context||m,g=m.context&&(p.nodeType||p.jquery)?S(p):S.event,f=S.Deferred(),b=S.Callbacks("once memory"),y=m.statusCode||{},w={},x={},C="canceled",k={readyState:0,getResponseHeader:function(t){var e;if(c){if(!o)for(o={};e=Le.exec(a);)o[e[1].toLowerCase()+" "]=(o[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=o[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(t,e){return null==c&&(t=x[t.toLowerCase()]=x[t.toLowerCase()]||t,w[t]=e),this},overrideMimeType:function(t){return null==c&&(m.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)k.always(t[k.status]);else for(e in t)y[e]=[y[e],t[e]];return this},abort:function(t){var e=t||C;return i&&i.abort(e),P(0,e),this}};if(f.promise(k),m.url=((e||m.url||ke.href)+"").replace(Re,ke.protocol+"//"),m.type=n.method||n.type||m.method||m.type,m.dataTypes=(m.dataType||"*").toLowerCase().match(B)||[""],null==m.crossDomain){l=v.createElement("a");try{l.href=m.url,l.href=l.href,m.crossDomain=Ne.protocol+"//"+Ne.host!=l.protocol+"//"+l.host}catch(t){m.crossDomain=!0}}if(m.data&&m.processData&&"string"!=typeof m.data&&(m.data=S.param(m.data,m.traditional)),Ge(Fe,m,n,k),c)return k;for(d in(h=S.event&&m.global)&&0==S.active++&&S.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!ze.test(m.type),r=m.url.replace(Te,""),m.hasContent?m.data&&m.processData&&0===(m.contentType||"").indexOf("application/x-www-form-urlencoded")&&(m.data=m.data.replace(Ae,"+")):(u=m.url.slice(r.length),m.data&&(m.processData||"string"==typeof m.data)&&(r+=(Pe.test(r)?"&":"?")+m.data,delete m.data),!1===m.cache&&(r=r.replace(Ie,"$1"),u=(Pe.test(r)?"&":"?")+"_="+Se.guid+++u),m.url=r+u),m.ifModified&&(S.lastModified[r]&&k.setRequestHeader("If-Modified-Since",S.lastModified[r]),S.etag[r]&&k.setRequestHeader("If-None-Match",S.etag[r])),(m.data&&m.hasContent&&!1!==m.contentType||n.contentType)&&k.setRequestHeader("Content-Type",m.contentType),k.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+Ve+"; q=0.01":""):m.accepts["*"]),m.headers)k.setRequestHeader(d,m.headers[d]);if(m.beforeSend&&(!1===m.beforeSend.call(p,k,m)||c))return k.abort();if(C="abort",b.add(m.complete),k.done(m.success),k.fail(m.error),i=Ge(Be,m,n,k)){if(k.readyState=1,h&&g.trigger("ajaxSend",[k,m]),c)return k;m.async&&0<m.timeout&&(s=t.setTimeout((function(){k.abort("timeout")}),m.timeout));try{c=!1,i.send(w,P)}catch(t){if(c)throw t;P(-1,t)}}else P(-1,"No Transport");function P(e,n,o,l){var d,u,v,w,x,C=n;c||(c=!0,s&&t.clearTimeout(s),i=void 0,a=l||"",k.readyState=0<e?4:0,d=200<=e&&e<300||304===e,o&&(w=function(t,e,n){for(var i,r,a,o,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(r in s)if(s[r]&&s[r].test(i)){l.unshift(r);break}if(l[0]in n)a=l[0];else{for(r in n){if(!l[0]||t.converters[r+" "+l[0]]){a=r;break}o||(o=r)}a=a||o}if(a)return a!==l[0]&&l.unshift(a),n[a]}(m,k,o)),!d&&-1<S.inArray("script",m.dataTypes)&&S.inArray("json",m.dataTypes)<0&&(m.converters["text script"]=function(){}),w=function(t,e,n,i){var r,a,o,s,l,c={},h=t.dataTypes.slice();if(h[1])for(o in t.converters)c[o.toLowerCase()]=t.converters[o];for(a=h.shift();a;)if(t.responseFields[a]&&(n[t.responseFields[a]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=a,a=h.shift())if("*"===a)a=l;else if("*"!==l&&l!==a){if(!(o=c[l+" "+a]||c["* "+a]))for(r in c)if((s=r.split(" "))[1]===a&&(o=c[l+" "+s[0]]||c["* "+s[0]])){!0===o?o=c[r]:!0!==c[r]&&(a=s[0],h.unshift(s[1]));break}if(!0!==o)if(o&&t.throws)e=o(e);else try{e=o(e)}catch(t){return{state:"parsererror",error:o?t:"No conversion from "+l+" to "+a}}}return{state:"success",data:e}}(m,w,k,d),d?(m.ifModified&&((x=k.getResponseHeader("Last-Modified"))&&(S.lastModified[r]=x),(x=k.getResponseHeader("etag"))&&(S.etag[r]=x)),204===e||"HEAD"===m.type?C="nocontent":304===e?C="notmodified":(C=w.state,u=w.data,d=!(v=w.error))):(v=C,!e&&C||(C="error",e<0&&(e=0))),k.status=e,k.statusText=(n||C)+"",d?f.resolveWith(p,[u,C,k]):f.rejectWith(p,[k,C,v]),k.statusCode(y),y=void 0,h&&g.trigger(d?"ajaxSuccess":"ajaxError",[k,m,d?u:v]),b.fireWith(p,[k,C]),h&&(g.trigger("ajaxComplete",[k,m]),--S.active||S.event.trigger("ajaxStop")))}return k},getJSON:function(t,e,n){return S.get(t,e,n,"json")},getScript:function(t,e){return S.get(t,void 0,e,"script")}}),S.each(["get","post"],(function(t,e){S[e]=function(t,n,i,r){return b(n)&&(r=r||i,i=n,n=void 0),S.ajax(S.extend({url:t,type:e,dataType:r,data:n,success:i},S.isPlainObject(t)&&t))}})),S.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),S._evalUrl=function(t,e,n){return S.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){S.globalEval(t,e,n)}})},S.fn.extend({wrapAll:function(t){var e;return this[0]&&(b(t)&&(t=t.call(this[0])),e=S(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return b(t)?this.each((function(e){S(this).wrapInner(t.call(this,e))})):this.each((function(){var e=S(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=b(t);return this.each((function(n){S(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){S(this).replaceWith(this.childNodes)})),this}}),S.expr.pseudos.hidden=function(t){return!S.expr.pseudos.visible(t)},S.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(t){}};var Ue={0:200,1223:204},We=S.ajaxSettings.xhr();f.cors=!!We&&"withCredentials"in We,f.ajax=We=!!We,S.ajaxTransport((function(e){var n,i;if(f.cors||We&&!e.crossDomain)return{send:function(r,a){var o,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)s[o]=e.xhrFields[o];for(o in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(o,r[o]);n=function(t){return function(){n&&(n=i=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?a(0,"error"):a(s.status,s.statusText):a(Ue[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),i=s.onerror=s.ontimeout=n("error"),void 0!==s.onabort?s.onabort=i:s.onreadystatechange=function(){4===s.readyState&&t.setTimeout((function(){n&&i()}))},n=n("abort");try{s.send(e.hasContent&&e.data||null)}catch(t){if(n)throw t}},abort:function(){n&&n()}}})),S.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),S.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return S.globalEval(t),t}}}),S.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),S.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(i,r){e=S("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&r("error"===t.type?404:200,t.type)}),v.head.appendChild(e[0])},abort:function(){n&&n()}}}));var Ye,je=[],Xe=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=je.pop()||S.expando+"_"+Se.guid++;return this[t]=!0,t}}),S.ajaxPrefilter("json jsonp",(function(e,n,i){var r,a,o,s=!1!==e.jsonp&&(Xe.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Xe.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=b(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Xe,"$1"+r):!1!==e.jsonp&&(e.url+=(Pe.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||S.error(r+" was not called"),o[0]},e.dataTypes[0]="json",a=t[r],t[r]=function(){o=arguments},i.always((function(){void 0===a?S(t).removeProp(r):t[r]=a,e[r]&&(e.jsonpCallback=n.jsonpCallback,je.push(r)),o&&b(a)&&a(o[0]),o=a=void 0})),"script"})),f.createHTMLDocument=((Ye=v.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ye.childNodes.length),S.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(f.createHTMLDocument?((i=(e=v.implementation.createHTMLDocument("")).createElement("base")).href=v.location.href,e.head.appendChild(i)):e=v),a=!n&&[],(r=A.exec(t))?[e.createElement(r[1])]:(r=Ct([t],e,a),a&&a.length&&S(a).remove(),S.merge([],r.childNodes)));var i,r,a},S.fn.load=function(t,e,n){var i,r,a,o=this,s=t.indexOf(" ");return-1<s&&(i=be(t.slice(s)),t=t.slice(0,s)),b(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),0<o.length&&S.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done((function(t){a=arguments,o.html(i?S("<div>").append(S.parseHTML(t)).find(i):t)})).always(n&&function(t,e){o.each((function(){n.apply(this,a||[t.responseText,e,t])}))}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,(function(e){return t===e.elem})).length},S.offset={setOffset:function(t,e,n){var i,r,a,o,s,l,c=S.css(t,"position"),h=S(t),d={};"static"===c&&(t.style.position="relative"),s=h.offset(),a=S.css(t,"top"),l=S.css(t,"left"),("absolute"===c||"fixed"===c)&&-1<(a+l).indexOf("auto")?(o=(i=h.position()).top,r=i.left):(o=parseFloat(a)||0,r=parseFloat(l)||0),b(e)&&(e=e.call(t,n,S.extend({},s))),null!=e.top&&(d.top=e.top-s.top+o),null!=e.left&&(d.left=e.left-s.left+r),"using"in e?e.using.call(t,d):h.css(d)}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){S.offset.setOffset(this,t,e)}));var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,i=this[0],r={top:0,left:0};if("fixed"===S.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===S.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((r=S(t).offset()).top+=S.css(t,"borderTopWidth",!0),r.left+=S.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-S.css(i,"marginTop",!0),left:e.left-r.left-S.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===S.css(t,"position");)t=t.offsetParent;return t||ot}))}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n="pageYOffset"===e;S.fn[t]=function(i){return W(this,(function(t,i,r){var a;if(y(t)?a=t:9===t.nodeType&&(a=t.defaultView),void 0===r)return a?a[e]:t[i];a?a.scrollTo(n?a.pageXOffset:r,n?r:a.pageYOffset):t[i]=r}),t,i,arguments.length)}})),S.each(["top","left"],(function(t,e){S.cssHooks[e]=Zt(f.pixelPosition,(function(t,n){if(n)return n=Gt(t,e),Bt.test(n)?S(t).position()[e]+"px":n}))})),S.each({Height:"height",Width:"width"},(function(t,e){S.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,i){S.fn[i]=function(r,a){var o=arguments.length&&(n||"boolean"!=typeof r),s=n||(!0===r||!0===a?"margin":"border");return W(this,(function(e,n,r){var a;return y(e)?0===i.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(a=e.documentElement,Math.max(e.body["scroll"+t],a["scroll"+t],e.body["offset"+t],a["offset"+t],a["client"+t])):void 0===r?S.css(e,n,s):S.style(e,n,r,s)}),e,o?r:void 0,o)}}))})),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){S.fn[e]=function(t){return this.on(e,t)}})),S.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(t,e){S.fn[e]=function(t,n){return 0<arguments.length?this.on(e,null,t,n):this.trigger(e)}}));var qe=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;S.proxy=function(t,e){var n,i,r;if("string"==typeof e&&(n=t[e],e=t,t=n),b(t))return i=s.call(arguments,2),(r=function(){return t.apply(e||this,i.concat(s.call(arguments)))}).guid=t.guid=t.guid||S.guid++,r},S.holdReady=function(t){t?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=O,S.isFunction=b,S.isWindow=y,S.camelCase=q,S.type=C,S.now=Date.now,S.isNumeric=function(t){var e=S.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},S.trim=function(t){return null==t?"":(t+"").replace(qe,"")},void 0!==(i=function(){return S}.apply(r={},o=[]))||(i=r);var $e=t.jQuery,Ke=t.$;return S.noConflict=function(e){return t.$===S&&(t.$=Ke),e&&t.jQuery===S&&(t.jQuery=$e),S},void 0===e&&(t.jQuery=t.$=S),S})),l=window,c={},h=function(t,e){var n,i,r;if("string"==typeof t)return m(t);for(n=[],i=t.length,r=0;i>r;r++)n.push(m(t[r]));return e.apply(null,n)},d=function(t,e,n){2===arguments.length&&(n=e,e=null),h(e||[],(function(){u(t,n,arguments)}))},u=function(t,e,n){var i,r={exports:e};"function"==typeof e&&(n.length||(n=[h,r.exports,r]),void 0!==(i=e.apply(null,n))&&(r.exports=i)),c[t]=r.exports},m=function(t){var e=c[t]||l[t];if(!e)throw new Error("`"+t+"` is undefined");return e},p=function(t){return l.__dollar=t,function(t){var e,n,i,r,a,o;for(e in o=function(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)},c)if(n=t,c.hasOwnProperty(e)){for(a=o((i=e.split("/")).pop());r=o(i.shift());)n[r]=n[r]||{},n=n[r];n[a]=c[e]}return t}((e=l,i=h,(n=d)("dollar-third",[],(function(){var t=e.require,n=e.__dollar||e.jQuery||e.Zepto||t("jquery")||t("zepto");if(!n)throw new Error("jQuery or Zepto not found!");return n})),n("dollar",["dollar-third"],(function(t){return t})),n("promise-third",["dollar"],(function(t){return{Deferred:t.Deferred,when:t.when,isPromise:function(t){return t&&"function"==typeof t.then}}})),n("promise",["promise-third"],(function(t){return t})),n("base",["dollar","promise"],(function(t,n){function i(t,e){return function(){return t.apply(e,arguments)}}var r,a,o,s,l,c,h,d,u,m,p,f,b,y,v=function(){},w=Function.call;return{version:"0.1.6",$:t,Deferred:n.Deferred,isPromise:n.isPromise,when:n.when,browser:(h=navigator.userAgent,d={},u=h.match(/WebKit\/([\d.]+)/),m=h.match(/Chrome\/([\d.]+)/)||h.match(/CriOS\/([\d.]+)/),p=h.match(/MSIE\s([\d\.]+)/)||h.match(/(?:trident)(?:.*rv:([\w.]+))?/i),f=h.match(/Firefox\/([\d.]+)/),b=h.match(/Safari\/([\d.]+)/),y=h.match(/OPR\/([\d.]+)/),u&&(d.webkit=parseFloat(u[1])),m&&(d.chrome=parseFloat(m[1])),p&&(d.ie=parseFloat(p[1])),f&&(d.firefox=parseFloat(f[1])),b&&(d.safari=parseFloat(b[1])),y&&(d.opera=parseFloat(y[1])),d),os:(o=navigator.userAgent,s={},l=o.match(/(?:Android);?[\s\/]+([\d.]+)?/),c=o.match(/(?:iPad|iPod|iPhone).*OS\s([\d_]+)/),l&&(s.android=parseFloat(l[1])),c&&(s.ios=parseFloat(c[1].replace(/_/g,"."))),s),inherits:function(e,n,i){var r,a,o;return"function"==typeof n?(r=n,n=null):r=n&&n.hasOwnProperty("constructor")?n.constructor:function(){return e.apply(this,arguments)},t.extend(!0,r,e,i||{}),r.__super__=e.prototype,r.prototype=(a=e.prototype,Object.create?Object.create(a):((o=function(){}).prototype=a,new o)),n&&t.extend(!0,r.prototype,n),r},noop:v,bindFn:i,log:e.console?i(g.log,g):v,nextTick:function(t){setTimeout(t,1)},slice:(a=[].slice,function(){return w.apply(a,arguments)}),guid:(r=0,function(t){for(var e=(+new Date).toString(32),n=0;5>n;n++)e+=Math.floor(65535*Math.random()).toString(32);return(t||"wu_")+e+(r++).toString(32)}),formatSize:function(t,e,n){var i;for(n=n||["B","K","M","G","TB"];(i=n.shift())&&t>1024;)t/=1024;return("B"===i?t:t.toFixed(e||2))+i}}})),n("mediator",["base"],(function(t){function e(t,e,n,i){return a.grep(t,(function(t){return!(!t||e&&t.e!==e||n&&t.cb!==n&&t.cb._cb!==n||i&&t.ctx!==i)}))}function n(t,e,n){a.each((t||"").split(s),(function(t,i){n(i,e)}))}function i(t,e){for(var n,i=!1,r=-1,a=t.length;++r<a;)if(!1===(n=t[r]).cb.apply(n.ctx2,e)){i=!0;break}return!i}var r,a=t.$,o=[].slice,s=/\s+/;return r={on:function(t,e,i){var r,a=this;return e?(r=this._events||(this._events=[]),n(t,e,(function(t,e){var n={e:t};n.cb=e,n.ctx=i,n.ctx2=i||a,n.id=r.length,r.push(n)})),this):this},once:function(t,e,i){var r=this;return e?(n(t,e,(function(t,e){var n=function(){return r.off(t,n),e.apply(i||r,arguments)};n._cb=e,r.on(t,n,i)})),r):r},off:function(t,i,r){var o=this._events;return o?t||i||r?(n(t,i,(function(t,n){a.each(e(o,t,n,r),(function(){delete o[this.id]}))})),this):(this._events=[],this):this},trigger:function(t){var n,r,a;return this._events&&t?(n=o.call(arguments,1),r=e(this._events,t),a=e(this._events,"all"),i(r,n)&&i(a,arguments)):this}},a.extend({installTo:function(t){return a.extend(t,r)}},r)})),n("uploader",["base","mediator"],(function(t,e){function n(t){this.options=i.extend(!0,{},n.options,t),this._init(this.options)}var i=t.$;return n.options={},e.installTo(n.prototype),i.each({upload:"start-upload",stop:"stop-upload",getFile:"get-file",getFiles:"get-files",addFile:"add-file",addFiles:"add-file",sort:"sort-files",removeFile:"remove-file",cancelFile:"cancel-file",skipFile:"skip-file",retry:"retry",isInProgress:"is-in-progress",makeThumb:"make-thumb",md5File:"md5-file",getDimension:"get-dimension",addButton:"add-btn",predictRuntimeType:"predict-runtime-type",refresh:"refresh",disable:"disable",enable:"enable",reset:"reset"},(function(t,e){n.prototype[t]=function(){return this.request(e,arguments)}})),i.extend(n.prototype,{state:"pending",_init:function(t){var e=this;e.request("init",t,(function(){e.state="ready",e.trigger("ready")}))},option:function(t,e){var n=this.options;return arguments.length>1?void(i.isPlainObject(e)&&i.isPlainObject(n[t])?i.extend(n[t],e):n[t]=e):t?n[t]:n},getStats:function(){var t=this.request("get-stats");return t?{successNum:t.numOfSuccess,progressNum:t.numOfProgress,cancelNum:t.numOfCancel,invalidNum:t.numOfInvalid,uploadFailNum:t.numOfUploadFailed,queueNum:t.numOfQueue,interruptNum:t.numofInterrupt}:{}},trigger:function(t){var n=[].slice.call(arguments,1),r=this.options,a="on"+t.substring(0,1).toUpperCase()+t.substring(1);return!(!1===e.trigger.apply(this,arguments)||i.isFunction(r[a])&&!1===r[a].apply(this,n)||i.isFunction(this[a])&&!1===this[a].apply(this,n)||!1===e.trigger.apply(e,[this,t].concat(n)))},destroy:function(){this.request("destroy",arguments),this.off()},request:t.noop}),t.create=n.create=function(t){return new n(t)},t.Uploader=n,n})),n("runtime/runtime",["base","mediator"],(function(t,e){function n(e){this.options=i.extend({container:document.body},e),this.uid=t.guid("rt_")}var i=t.$,r={},a=function(t){for(var e in t)if(t.hasOwnProperty(e))return e;return null};return i.extend(n.prototype,{getContainer:function(){var t,e,n=this.options;return this._container?this._container:(t=i(n.container||document.body),(e=i(document.createElement("div"))).attr("id","rt_"+this.uid),e.css({position:"absolute",top:"0px",left:"0px",width:"1px",height:"1px",overflow:"hidden"}),t.append(e),t.addClass("webuploader-container"),this._container=e,this._parent=t,e)},init:t.noop,exec:t.noop,destroy:function(){this._container&&this._container.remove(),this._parent&&this._parent.removeClass("webuploader-container"),this.off()}}),n.orders="html5,flash",n.addRuntime=function(t,e){r[t]=e},n.hasRuntime=function(t){return!!(t?r[t]:a(r))},n.create=function(t,e){var o;if(e=e||n.orders,i.each(e.split(/\s*,\s*/g),(function(){return r[this]?(o=this,!1):void 0})),!(o=o||a(r)))throw new Error("Runtime Error");return new r[o](t)},e.installTo(n.prototype),n})),n("runtime/client",["base","mediator","runtime/runtime"],(function(t,e,n){function i(e,i){var a,o,s=t.Deferred();this.uid=t.guid("client_"),this.runtimeReady=function(t){return s.done(t)},this.connectRuntime=function(e,o){if(a)throw new Error("already connected!");return s.done(o),"string"==typeof e&&r.get(e)&&(a=r.get(e)),(a=a||r.get(null,i))?(t.$.extend(a.options,e),a.__promise.then(s.resolve),a.__client++):((a=n.create(e,e.runtimeOrder)).__promise=s.promise(),a.once("ready",s.resolve),a.init(),r.add(a),a.__client=1),i&&(a.__standalone=i),a},this.getRuntime=function(){return a},this.disconnectRuntime=function(){a&&(a.__client--,a.__client<=0&&(r.remove(a),delete a.__promise,a.destroy()),a=null)},this.exec=function(){if(a){var n=t.slice(arguments);return e&&n.unshift(e),a.exec.apply(this,n)}},this.getRuid=function(){return a&&a.uid},this.destroy=(o=this.destroy,function(){o&&o.apply(this,arguments),this.trigger("destroy"),this.off(),this.exec("destroy"),this.disconnectRuntime()})}var r,a;return a={},r={add:function(t){a[t.uid]=t},get:function(t,e){var n;if(t)return a[t];for(n in a)if(!e||!a[n].__standalone)return a[n];return null},remove:function(t){delete a[t.uid]}},e.installTo(i.prototype),i})),n("lib/dnd",["base","mediator","runtime/client"],(function(t,e,n){function i(t){(t=this.options=r.extend({},i.options,t)).container=r(t.container),t.container.length&&n.call(this,"DragAndDrop")}var r=t.$;return i.options={accept:null,disableGlobalDnd:!1},t.inherits(n,{constructor:i,init:function(){var t=this;t.connectRuntime(t.options,(function(){t.exec("init"),t.trigger("ready")}))}}),e.installTo(i.prototype),i})),n("widgets/widget",["base","uploader"],(function(t,e){function n(t){this.owner=t,this.options=t.options}var i=t.$,r=e.prototype._init,a=e.prototype.destroy,o={},s=[];return i.extend(n.prototype,{init:t.noop,invoke:function(t,e){var n=this.responseMap;return n&&t in n&&n[t]in this&&i.isFunction(this[n[t]])?this[n[t]].apply(this,e):o},request:function(){return this.owner.request.apply(this.owner,arguments)}}),i.extend(e.prototype,{_init:function(){var t=this,e=t._widgets=[],n=t.options.disableWidgets||"";return i.each(s,(function(i,r){(!n||!~n.indexOf(r._name))&&e.push(new r(t))})),r.apply(t,arguments)},request:function(e,n,r){var a,s,l,c=0,h=this._widgets,d=h&&h.length,u=[],m=[];for(n=function(t){if(!t)return!1;var e=t.length,n=i.type(t);return!(1!==t.nodeType||!e)||"array"===n||"function"!==n&&"string"!==n&&(0===e||"number"==typeof e&&e>0&&e-1 in t)}(n)?n:[n];d>c;c++)(a=h[c].invoke(e,n))!==o&&(t.isPromise(a)?m.push(a):u.push(a));return r||m.length?(s=t.when.apply(t,m))[l=s.pipe?"pipe":"then"]((function(){var e=t.Deferred(),n=arguments;return 1===n.length&&(n=n[0]),setTimeout((function(){e.resolve(n)}),1),e.promise()}))[r?l:"done"](r||t.noop):u[0]},destroy:function(){a.apply(this,arguments),this._widgets=null}}),e.register=n.register=function(e,r){var a,o={init:"init",destroy:"destroy",name:"anonymous"};return 1===arguments.length?(r=e,i.each(r,(function(t){return"_"===t[0]||"name"===t?void("name"===t&&(o.name=r.name)):void(o[t.replace(/[A-Z]/g,"-$&").toLowerCase()]=t)}))):o=i.extend(o,e),r.responseMap=o,(a=t.inherits(n,r))._name=o.name,s.push(a),a},e.unRegister=n.unRegister=function(t){if(t&&"anonymous"!==t)for(var e=s.length;e--;)s[e]._name===t&&s.splice(e,1)},n})),n("widgets/filednd",["base","uploader","lib/dnd","widgets/widget"],(function(t,e,n){var i=t.$;return e.options.dnd="",e.register({name:"dnd",init:function(e){if(e.dnd&&"html5"===this.request("predict-runtime-type")){var r,a=this,o=t.Deferred(),s=i.extend({},{disableGlobalDnd:e.disableGlobalDnd,container:e.dnd,accept:e.accept});return this.dnd=r=new n(s),r.once("ready",o.resolve),r.on("drop",(function(t){a.request("add-file",[t])})),r.on("accept",(function(t){return a.owner.trigger("dndAccept",t)})),r.init(),o.promise()}},destroy:function(){this.dnd&&this.dnd.destroy()}})})),n("lib/filepaste",["base","mediator","runtime/client"],(function(t,e,n){function i(t){(t=this.options=r.extend({},t)).container=r(t.container||document.body),n.call(this,"FilePaste")}var r=t.$;return t.inherits(n,{constructor:i,init:function(){var t=this;t.connectRuntime(t.options,(function(){t.exec("init"),t.trigger("ready")}))}}),e.installTo(i.prototype),i})),n("widgets/filepaste",["base","uploader","lib/filepaste","widgets/widget"],(function(t,e,n){var i=t.$;return e.register({name:"paste",init:function(e){if(e.paste&&"html5"===this.request("predict-runtime-type")){var r,a=this,o=t.Deferred(),s=i.extend({},{container:e.paste,accept:e.accept});return this.paste=r=new n(s),r.once("ready",o.resolve),r.on("paste",(function(t){a.owner.request("add-file",[t])})),r.init(),o.promise()}},destroy:function(){this.paste&&this.paste.destroy()}})})),n("lib/blob",["base","runtime/client"],(function(t,e){function n(t,n){var i=this;i.source=n,i.ruid=t,this.size=n.size||0,this.type=!n.type&&this.ext&&~"jpg,jpeg,png,gif,bmp".indexOf(this.ext)?"image/"+("jpg"===this.ext?"jpeg":this.ext):n.type||"application/octet-stream",e.call(i,"Blob"),this.uid=n.uid||this.uid,t&&i.connectRuntime(t)}return t.inherits(e,{constructor:n,slice:function(t,e){return this.exec("slice",t,e)},getSource:function(){return this.source}}),n})),n("lib/file",["base","lib/blob"],(function(t,e){var n=1,i=/\.([^.]+)$/;return t.inherits(e,(function(t,r){var a;this.name=r.name||"untitled"+n++,!(a=i.exec(r.name)?RegExp.$1.toLowerCase():"")&&r.type&&(a=/\/(jpg|jpeg|png|gif|bmp)$/i.exec(r.type)?RegExp.$1.toLowerCase():"",this.name+="."+a),this.ext=a,this.lastModifiedDate=r.lastModifiedDate||(new Date).toLocaleString(),e.apply(this,arguments)}))})),n("lib/filepicker",["base","runtime/client","lib/file"],(function(t,n,i){function r(t){if((t=this.options=a.extend({},r.options,t)).container=a(t.id),!t.container.length)throw new Error("按钮指定错误");t.innerHTML=t.innerHTML||t.label||t.container.html()||"",t.button=a(t.button||document.createElement("div")),t.button.html(t.innerHTML),t.container.html(t.button),n.call(this,"FilePicker",!0)}var a=t.$;return r.options={button:null,container:null,label:null,innerHTML:null,multiple:!0,accept:null,name:"file",style:"webuploader-pick"},t.inherits(n,{constructor:r,init:function(){var n=this,r=n.options,o=r.button,s=r.style;s&&o.addClass("webuploader-pick"),n.on("all",(function(t){var e;switch(t){case"mouseenter":s&&o.addClass("webuploader-pick-hover");break;case"mouseleave":s&&o.removeClass("webuploader-pick-hover");break;case"change":e=n.exec("getFiles"),n.trigger("select",a.map(e,(function(t){return(t=new i(n.getRuid(),t))._refer=r.container,t})),r.container)}})),n.connectRuntime(r,(function(){n.refresh(),n.exec("init",r),n.trigger("ready")})),this._resizeHandler=t.bindFn(this.refresh,this),a(e).on("resize",this._resizeHandler)},refresh:function(){var t=this.getRuntime().getContainer(),e=this.options.button,n=e.outerWidth?e.outerWidth():e.width(),i=e.outerHeight?e.outerHeight():e.height(),r=e.offset();n&&i&&t.css({bottom:"auto",right:"auto",width:n+"px",height:i+"px"}).offset(r)},enable:function(){this.options.button.removeClass("webuploader-pick-disable"),this.refresh()},disable:function(){var t=this.options.button;this.getRuntime().getContainer().css({top:"-99999px"}),t.addClass("webuploader-pick-disable")},destroy:function(){var t=this.options.button;a(e).off("resize",this._resizeHandler),t.removeClass("webuploader-pick-disable webuploader-pick-hover webuploader-pick")}}),r})),n("widgets/filepicker",["base","uploader","lib/filepicker","widgets/widget"],(function(t,e,n){var i=t.$;return i.extend(e.options,{pick:null,accept:null}),e.register({name:"picker",init:function(t){return this.pickers=[],t.pick&&this.addBtn(t.pick)},refresh:function(){i.each(this.pickers,(function(){this.refresh()}))},addBtn:function(e){var r=this,a=r.options,o=a.accept,s=[];if(e)return i.isPlainObject(e)||(e={id:e}),i(e.id).each((function(){var l,c,h;h=t.Deferred(),l=i.extend({},e,{accept:i.isPlainObject(o)?[o]:o,swf:a.swf,runtimeOrder:a.runtimeOrder,id:this}),(c=new n(l)).once("ready",h.resolve),c.on("select",(function(t){r.owner.request("add-file",[t])})),c.on("dialogopen",(function(){r.owner.trigger("dialogOpen",c.button)})),c.init(),r.pickers.push(c),s.push(h.promise())})),t.when.apply(t,s)},disable:function(){i.each(this.pickers,(function(){this.disable()}))},enable:function(){i.each(this.pickers,(function(){this.enable()}))},destroy:function(){i.each(this.pickers,(function(){this.destroy()})),this.pickers=null}})})),n("lib/image",["base","runtime/client","lib/blob"],(function(t,e,n){function i(t){this.options=r.extend({},i.options,t),e.call(this,"Image"),this.on("load",(function(){this._info=this.exec("info"),this._meta=this.exec("meta")}))}var r=t.$;return i.options={quality:90,crop:!1,preserveHeaders:!1,allowMagnify:!1},t.inherits(e,{constructor:i,info:function(t){return t?(this._info=t,this):this._info},meta:function(t){return t?(this._meta=t,this):this._meta},loadFromBlob:function(t){var e=this,n=t.getRuid();this.connectRuntime(n,(function(){e.exec("init",e.options),e.exec("loadFromBlob",t)}))},resize:function(){var e=t.slice(arguments);return this.exec.apply(this,["resize"].concat(e))},crop:function(){var e=t.slice(arguments);return this.exec.apply(this,["crop"].concat(e))},getAsDataUrl:function(t){return this.exec("getAsDataUrl",t)},getAsBlob:function(t){var e=this.exec("getAsBlob",t);return new n(this.getRuid(),e)}}),i})),n("widgets/image",["base","uploader","lib/image","widgets/widget"],(function(t,e,n){var i,r,a,o,s=t.$;return r=0,a=[],o=function(){for(var t;a.length&&5242880>r;)t=a.shift(),r+=t[0],t[1]()},i=function(t,e,n){a.push([e,n]),t.once("destroy",(function(){r-=e,setTimeout(o,1)})),setTimeout(o,1)},s.extend(e.options,{thumb:{width:110,height:110,quality:70,allowMagnify:!0,crop:!0,preserveHeaders:!1,type:"image/jpeg"},compress:{width:1600,height:1600,quality:90,allowMagnify:!1,crop:!1,preserveHeaders:!0}}),e.register({name:"image",makeThumb:function(t,e,r,a){var o,l;return(t=this.request("get-file",t)).type.match(/^image/)?(o=s.extend({},this.options.thumb),s.isPlainObject(r)&&(o=s.extend(o,r),r=null),r=r||o.width,a=a||o.height,(l=new n(o)).once("load",(function(){t._info=t._info||l.info(),t._meta=t._meta||l.meta(),1>=r&&r>0&&(r=t._info.width*r),1>=a&&a>0&&(a=t._info.height*a),l.resize(r,a)})),l.once("complete",(function(){e(!1,l.getAsDataUrl(o.type)),l.destroy()})),l.once("error",(function(t){e(t||!0),l.destroy()})),void i(l,t.source.size,(function(){t._info&&l.info(t._info),t._meta&&l.meta(t._meta),l.loadFromBlob(t.source)}))):void e(!0)},beforeSendFile:function(e){var i,r,a=this.options.compress||this.options.resize,o=a&&a.compressSize||0,l=a&&a.noCompressIfLarger||!1;return e=this.request("get-file",e),!a||!~"image/jpeg,image/jpg".indexOf(e.type)||e.size<o||e._compressed?void 0:(a=s.extend({},a),r=t.Deferred(),i=new n(a),r.always((function(){i.destroy(),i=null})),i.once("error",r.reject),i.once("load",(function(){var t=a.width,n=a.height;e._info=e._info||i.info(),e._meta=e._meta||i.meta(),1>=t&&t>0&&(t=e._info.width*t),1>=n&&n>0&&(n=e._info.height*n),i.resize(t,n)})),i.once("complete",(function(){var t,n;try{t=i.getAsBlob(a.type),n=e.size,(!l||t.size<n)&&(e.source=t,e.size=t.size,e.trigger("resize",t.size,n)),e._compressed=!0,r.resolve()}catch(t){r.resolve()}})),e._info&&i.info(e._info),e._meta&&i.meta(e._meta),i.loadFromBlob(e.source),r.promise())}})})),n("file",["base","mediator"],(function(t,e){function n(t){this.name=t.name||"Untitled",this.size=t.size||0,this.type=t.type||"application/octet-stream",this.lastModifiedDate=t.lastModifiedDate||1*new Date,this.id=r+a++,this.ext=o.exec(this.name)?RegExp.$1:"",this.statusText="",s[this.id]=n.Status.INITED,this.source=t,this.loaded=0,this.on("error",(function(t){this.setStatus(n.Status.ERROR,t)}))}var i=t.$,r="WU_FILE_",a=0,o=/\.([^.]+)$/,s={};return i.extend(n.prototype,{setStatus:function(t,e){var n=s[this.id];void 0!==e&&(this.statusText=e),t!==n&&(s[this.id]=t,this.trigger("statuschange",t,n))},getStatus:function(){return s[this.id]},getSource:function(){return this.source},destroy:function(){this.off(),delete s[this.id]}}),e.installTo(n.prototype),n.Status={INITED:"inited",QUEUED:"queued",PROGRESS:"progress",ERROR:"error",COMPLETE:"complete",CANCELLED:"cancelled",INTERRUPT:"interrupt",INVALID:"invalid"},n})),n("queue",["base","mediator","file"],(function(t,e,n){function i(){this.stats={numOfQueue:0,numOfSuccess:0,numOfCancel:0,numOfProgress:0,numOfUploadFailed:0,numOfInvalid:0,numofDeleted:0,numofInterrupt:0},this._queue=[],this._map={}}var r=t.$,a=n.Status;return r.extend(i.prototype,{append:function(t){return this._queue.push(t),this._fileAdded(t),this},prepend:function(t){return this._queue.unshift(t),this._fileAdded(t),this},getFile:function(t){return"string"!=typeof t?t:this._map[t]},fetch:function(t){var e,n,i=this._queue.length;for(t=t||a.QUEUED,e=0;i>e;e++)if(t===(n=this._queue[e]).getStatus())return n;return null},sort:function(t){"function"==typeof t&&this._queue.sort(t)},getFiles:function(){for(var t,e=[].slice.call(arguments,0),n=[],i=0,a=this._queue.length;a>i;i++)t=this._queue[i],(!e.length||~r.inArray(t.getStatus(),e))&&n.push(t);return n},removeFile:function(t){this._map[t.id]&&(delete this._map[t.id],t.destroy(),this.stats.numofDeleted++)},_fileAdded:function(t){var e=this;this._map[t.id]||(this._map[t.id]=t,t.on("statuschange",(function(t,n){e._onFileStatusChange(t,n)})))},_onFileStatusChange:function(t,e){var n=this.stats;switch(e){case a.PROGRESS:n.numOfProgress--;break;case a.QUEUED:n.numOfQueue--;break;case a.ERROR:n.numOfUploadFailed--;break;case a.INVALID:n.numOfInvalid--;break;case a.INTERRUPT:n.numofInterrupt--}switch(t){case a.QUEUED:n.numOfQueue++;break;case a.PROGRESS:n.numOfProgress++;break;case a.ERROR:n.numOfUploadFailed++;break;case a.COMPLETE:n.numOfSuccess++;break;case a.CANCELLED:n.numOfCancel++;break;case a.INVALID:n.numOfInvalid++;break;case a.INTERRUPT:n.numofInterrupt++}}}),e.installTo(i.prototype),i})),n("widgets/queue",["base","uploader","queue","file","lib/file","runtime/client","widgets/widget"],(function(t,e,n,i,r,a){var o=t.$,s=/\.\w+$/,l=i.Status;return e.register({name:"queue",init:function(e){var i,r,s,l,c,h,d,u=this;if(o.isPlainObject(e.accept)&&(e.accept=[e.accept]),e.accept){for(c=[],s=0,r=e.accept.length;r>s;s++)(l=e.accept[s].extensions)&&c.push(l);c.length&&(h="\\."+c.join(",").replace(/,/g,"$|\\.").replace(/\*/g,".*")+"$"),u.accept=new RegExp(h,"i")}return u.queue=new n,u.stats=u.queue.stats,"html5"===this.request("predict-runtime-type")?(i=t.Deferred(),this.placeholder=d=new a("Placeholder"),d.connectRuntime({runtimeOrder:"html5"},(function(){u._ruid=d.getRuid(),i.resolve()})),i.promise()):void 0},_wrapFile:function(t){if(!(t instanceof i)){if(!(t instanceof r)){if(!this._ruid)throw new Error("Can't add external files.");t=new r(this._ruid,t)}t=new i(t)}return t},acceptFile:function(t){return!(!t||!t.size||this.accept&&s.exec(t.name)&&!this.accept.test(t.name))},_addFile:function(t){var e=this;return t=e._wrapFile(t),e.owner.trigger("beforeFileQueued",t)?e.acceptFile(t)?(e.queue.append(t),e.owner.trigger("fileQueued",t),t):void e.owner.trigger("error","Q_TYPE_DENIED",t):void 0},getFile:function(t){return this.queue.getFile(t)},addFile:function(t){var e=this;t.length||(t=[t]),(t=o.map(t,(function(t){return e._addFile(t)}))).length&&(e.owner.trigger("filesQueued",t),e.options.auto&&setTimeout((function(){e.request("start-upload")}),20))},getStats:function(){return this.stats},removeFile:function(t,e){t=t.id?t:this.queue.getFile(t),this.request("cancel-file",t),e&&this.queue.removeFile(t)},getFiles:function(){return this.queue.getFiles.apply(this.queue,arguments)},fetchFile:function(){return this.queue.fetch.apply(this.queue,arguments)},retry:function(t,e){var n,i,r,a=this;if(t)return(t=t.id?t:a.queue.getFile(t)).setStatus(l.QUEUED),void(e||a.request("start-upload"));for(i=0,r=(n=a.queue.getFiles(l.ERROR)).length;r>i;i++)(t=n[i]).setStatus(l.QUEUED);a.request("start-upload")},sortFiles:function(){return this.queue.sort.apply(this.queue,arguments)},reset:function(){this.owner.trigger("reset"),this.queue=new n,this.stats=this.queue.stats},destroy:function(){this.reset(),this.placeholder&&this.placeholder.destroy()}})})),n("widgets/runtime",["uploader","runtime/runtime","widgets/widget"],(function(t,e){return t.support=function(){return e.hasRuntime.apply(e,arguments)},t.register({name:"runtime",init:function(){if(!this.predictRuntimeType())throw Error("Runtime Error")},predictRuntimeType:function(){var t,n,i=this.options.runtimeOrder||e.orders,r=this.type;if(!r)for(t=0,n=(i=i.split(/\s*,\s*/g)).length;n>t;t++)if(e.hasRuntime(i[t])){this.type=r=i[t];break}return r}})})),n("lib/transport",["base","runtime/client","mediator"],(function(t,e,n){function i(t){var n=this;t=n.options=r.extend(!0,{},i.options,t||{}),e.call(this,"Transport"),this._blob=null,this._formData=t.formData||{},this._headers=t.headers||{},this.on("progress",this._timeout),this.on("load error",(function(){n.trigger("progress",1),clearTimeout(n._timer)}))}var r=t.$;return i.options={server:"",method:"POST",withCredentials:!1,fileVal:"file",timeout:12e4,formData:{},headers:{},sendAsBinary:!1},r.extend(i.prototype,{appendBlob:function(t,e,n){var i=this,r=i.options;i.getRuid()&&i.disconnectRuntime(),i.connectRuntime(e.ruid,(function(){i.exec("init")})),i._blob=e,r.fileVal=t||r.fileVal,r.filename=n||r.filename},append:function(t,e){"object"==typeof t?r.extend(this._formData,t):this._formData[t]=e},setRequestHeader:function(t,e){"object"==typeof t?r.extend(this._headers,t):this._headers[t]=e},send:function(t){this.exec("send",t),this._timeout()},abort:function(){return clearTimeout(this._timer),this.exec("abort")},destroy:function(){this.trigger("destroy"),this.off(),this.exec("destroy"),this.disconnectRuntime()},getResponse:function(){return this.exec("getResponse")},getResponseAsJson:function(){return this.exec("getResponseAsJson")},getStatus:function(){return this.exec("getStatus")},_timeout:function(){var t=this,e=t.options.timeout;e&&(clearTimeout(t._timer),t._timer=setTimeout((function(){t.abort(),t.trigger("error","timeout")}),e))}}),n.installTo(i.prototype),i})),n("widgets/upload",["base","uploader","file","lib/transport","widgets/widget"],(function(t,e,n,i){var r=t.$,a=t.isPromise,o=n.Status;r.extend(e.options,{prepareNextFile:!1,chunked:!1,chunkSize:5242880,chunkRetry:2,threads:3,formData:{}}),e.register({name:"upload",init:function(){var e=this.owner,n=this;this.runing=!1,this.progress=!1,e.on("startUpload",(function(){n.progress=!0})).on("uploadFinished",(function(){n.progress=!1})),this.pool=[],this.stack=[],this.pending=[],this.remaning=0,this.__tick=t.bindFn(this._tick,this),e.on("uploadComplete",(function(t){t.blocks&&r.each(t.blocks,(function(t,e){e.transport&&(e.transport.abort(),e.transport.destroy()),delete e.transport})),delete t.blocks,delete t.remaning}))},reset:function(){this.request("stop-upload",!0),this.runing=!1,this.pool=[],this.stack=[],this.pending=[],this.remaning=0,this._trigged=!1,this._promise=null},startUpload:function(e){var n=this;if(r.each(n.request("get-files",o.INVALID),(function(){n.request("remove-file",this)})),e?(e=e.id?e:n.request("get-file",e)).getStatus()===o.INTERRUPT?(e.setStatus(o.QUEUED),r.each(n.pool,(function(t,n){n.file===e&&(n.transport&&n.transport.send(),e.setStatus(o.PROGRESS))}))):e.getStatus()!==o.PROGRESS&&e.setStatus(o.QUEUED):r.each(n.request("get-files",[o.INITED]),(function(){this.setStatus(o.QUEUED)})),n.runing)return t.nextTick(n.__tick);n.runing=!0;var i=[];e||r.each(n.pool,(function(t,e){var r=e.file;r.getStatus()===o.INTERRUPT&&(n._trigged=!1,i.push(r),e.transport&&e.transport.send())})),r.each(i,(function(){this.setStatus(o.PROGRESS)})),e||r.each(n.request("get-files",o.INTERRUPT),(function(){this.setStatus(o.PROGRESS)})),n._trigged=!1,t.nextTick(n.__tick),n.owner.trigger("startUpload")},stopUpload:function(e,n){var i,a=this;if(!0===e&&(n=e,e=null),!1!==a.runing){if(e){if((e=e.id?e:a.request("get-file",e)).getStatus()!==o.PROGRESS&&e.getStatus()!==o.QUEUED)return;return e.setStatus(o.INTERRUPT),r.each(a.pool,(function(t,n){return n.file===e?(i=n,!1):void 0})),i.transport&&i.transport.abort(),n&&(a._putback(i),a._popBlock(i)),t.nextTick(a.__tick)}a.runing=!1,this._promise&&this._promise.file&&this._promise.file.setStatus(o.INTERRUPT),n&&r.each(a.pool,(function(t,e){e.transport&&e.transport.abort(),e.file.setStatus(o.INTERRUPT)})),a.owner.trigger("stopUpload")}},cancelFile:function(t){(t=t.id?t:this.request("get-file",t)).blocks&&r.each(t.blocks,(function(t,e){var n=e.transport;n&&(n.abort(),n.destroy(),delete e.transport)})),t.setStatus(o.CANCELLED),this.owner.trigger("fileDequeued",t)},isInProgress:function(){return!!this.progress},_getStats:function(){return this.request("get-stats")},skipFile:function(t,e){(t=t.id?t:this.request("get-file",t)).setStatus(e||o.COMPLETE),t.skipped=!0,t.blocks&&r.each(t.blocks,(function(t,e){var n=e.transport;n&&(n.abort(),n.destroy(),delete e.transport)})),this.owner.trigger("uploadSkip",t)},_tick:function(){var e,n,i=this,r=i.options;return i._promise?i._promise.always(i.__tick):void(i.pool.length<r.threads&&(n=i._nextBlock())?(i._trigged=!1,e=function(e){i._promise=null,e&&e.file&&i._startSend(e),t.nextTick(i.__tick)},i._promise=a(n)?n.always(e):e(n)):i.remaning||i._getStats().numOfQueue||i._getStats().numofInterrupt||(i.runing=!1,i._trigged||t.nextTick((function(){i.owner.trigger("uploadFinished")})),i._trigged=!0))},_putback:function(t){t.cuted.unshift(t),~this.stack.indexOf(t.cuted)||this.stack.unshift(t.cuted)},_getStack:function(){for(var t,e=0;t=this.stack[e++];){if(t.has()&&t.file.getStatus()===o.PROGRESS)return t;(!t.has()||t.file.getStatus()!==o.PROGRESS&&t.file.getStatus()!==o.INTERRUPT)&&this.stack.splice(--e,1)}return null},_nextBlock:function(){var t,e,n,i,r=this,o=r.options;return(t=this._getStack())?(o.prepareNextFile&&!r.pending.length&&r._prepareNextFile(),t.shift()):r.runing?(!r.pending.length&&r._getStats().numOfQueue&&r._prepareNextFile(),e=r.pending.shift(),n=function(e){return e?(t=function(t,e){var n,i,r=[],a=t.source.size,o=e?Math.ceil(a/e):1,s=0,l=0;for(i={file:t,has:function(){return!!r.length},shift:function(){return r.shift()},unshift:function(t){r.unshift(t)}};o>l;)n=Math.min(e,a-s),r.push({file:t,start:s,end:e?s+n:a,total:a,chunks:o,chunk:l++,cuted:i}),s+=n;return t.blocks=r.concat(),t.remaning=r.length,i}(e,o.chunked?o.chunkSize:0),r.stack.push(t),t.shift()):null},a(e)?(i=e.file,(e=e[e.pipe?"pipe":"then"](n)).file=i,e):n(e)):void 0},_prepareNextFile:function(){var t,e=this,n=e.request("fetch-file"),i=e.pending;n&&(t=e.request("before-send-file",n,(function(){return n.getStatus()===o.PROGRESS||n.getStatus()===o.INTERRUPT?n:e._finishFile(n)})),e.owner.trigger("uploadStart",n),n.setStatus(o.PROGRESS),t.file=n,t.done((function(){var e=r.inArray(t,i);~e&&i.splice(e,1,n)})),t.fail((function(t){n.setStatus(o.ERROR,t),e.owner.trigger("uploadError",n,t),e.owner.trigger("uploadComplete",n)})),i.push(t))},_popBlock:function(t){var e=r.inArray(t,this.pool);this.pool.splice(e,1),t.file.remaning--,this.remaning--},_startSend:function(e){var n=this,i=e.file;return i.getStatus()!==o.PROGRESS?void(i.getStatus()===o.INTERRUPT&&n._putback(e)):(n.pool.push(e),n.remaning++,e.blob=1===e.chunks?i.source:i.source.slice(e.start,e.end),void n.request("before-send",e,(function(){i.getStatus()===o.PROGRESS?n._doSend(e):(n._popBlock(e),t.nextTick(n.__tick))})).fail((function(){1===i.remaning?n._finishFile(i).always((function(){e.percentage=1,n._popBlock(e),n.owner.trigger("uploadComplete",i),t.nextTick(n.__tick)})):(e.percentage=1,n.updateFileProgress(i),n._popBlock(e),t.nextTick(n.__tick))})))},_doSend:function(e){var n,a,s=this,l=s.owner,c=s.options,h=e.file,d=new i(c),u=r.extend({},c.formData),m=r.extend({},c.headers);e.transport=d,d.on("destroy",(function(){delete e.transport,s._popBlock(e),t.nextTick(s.__tick)})),d.on("progress",(function(t){e.percentage=t,s.updateFileProgress(h)})),n=function(t){var n;return(a=d.getResponseAsJson()||{})._raw=d.getResponse(),n=function(e){t=e},l.trigger("uploadAccept",e,a,n)||(t=t||"server"),t},d.on("error",(function(t,i){e.retried=e.retried||0,e.chunks>1&&~"http,abort".indexOf(t)&&e.retried<c.chunkRetry?(e.retried++,d.send()):(i||"server"!==t||(t=n(t)),h.setStatus(o.ERROR,t),l.trigger("uploadError",h,t),l.trigger("uploadComplete",h))})),d.on("load",(function(){var t;return(t=n())?void d.trigger("error",t,!0):void(1===h.remaning?s._finishFile(h,a):d.destroy())})),u=r.extend(u,{id:h.id,name:h.name,type:h.type,lastModifiedDate:h.lastModifiedDate,size:h.size}),e.chunks>1&&r.extend(u,{chunks:e.chunks,chunk:e.chunk}),l.trigger("uploadBeforeSend",e,u,m),d.appendBlob(c.fileVal,e.blob,h.name),d.append(u),d.setRequestHeader(m),d.send()},_finishFile:function(t,e,n){var i=this.owner;return i.request("after-send-file",arguments,(function(){t.setStatus(o.COMPLETE),i.trigger("uploadSuccess",t,e,n)})).fail((function(e){t.getStatus()===o.PROGRESS&&t.setStatus(o.ERROR,e),i.trigger("uploadError",t,e)})).always((function(){i.trigger("uploadComplete",t)}))},updateFileProgress:function(t){var e=0,n=0;t.blocks&&(r.each(t.blocks,(function(t,e){n+=(e.percentage||0)*(e.end-e.start)})),e=n/t.size,this.owner.trigger("uploadProgress",t,e||0))}})})),n("widgets/validator",["base","uploader","file","widgets/widget"],(function(t,e,n){var i,r=t.$,a={};return i={addValidator:function(t,e){a[t]=e},removeValidator:function(t){delete a[t]}},e.register({name:"validator",init:function(){var e=this;t.nextTick((function(){r.each(a,(function(){this.call(e.owner)}))}))}}),i.addValidator("fileNumLimit",(function(){var t=this,e=t.options,n=0,i=parseInt(e.fileNumLimit,10),r=!0;i&&(t.on("beforeFileQueued",(function(t){return n>=i&&r&&(r=!1,this.trigger("error","Q_EXCEED_NUM_LIMIT",i,t),setTimeout((function(){r=!0}),1)),!(n>=i)})),t.on("fileQueued",(function(){n++})),t.on("fileDequeued",(function(){n--})),t.on("reset",(function(){n=0})))})),i.addValidator("fileSizeLimit",(function(){var t=this,e=t.options,n=0,i=parseInt(e.fileSizeLimit,10),r=!0;i&&(t.on("beforeFileQueued",(function(t){var e=n+t.size>i;return e&&r&&(r=!1,this.trigger("error","Q_EXCEED_SIZE_LIMIT",i,t),setTimeout((function(){r=!0}),1)),!e})),t.on("fileQueued",(function(t){n+=t.size})),t.on("fileDequeued",(function(t){n-=t.size})),t.on("reset",(function(){n=0})))})),i.addValidator("fileSingleSizeLimit",(function(){var t=this.options.fileSingleSizeLimit;t&&this.on("beforeFileQueued",(function(e){return e.size>t?(e.setStatus(n.Status.INVALID,"exceed_size"),this.trigger("error","F_EXCEED_SIZE",t,e),!1):void 0}))})),i.addValidator("duplicate",(function(){var t=this,e=t.options,n={};e.duplicate||(t.on("beforeFileQueued",(function(t){var e=t.__hash||(t.__hash=function(t){for(var e=0,n=0,i=t.length;i>n;n++)e=t.charCodeAt(n)+(e<<6)+(e<<16)-e;return e}(t.name+t.size+t.lastModifiedDate));return n[e]?(this.trigger("error","F_DUPLICATE",t),!1):void 0})),t.on("fileQueued",(function(t){var e=t.__hash;e&&(n[e]=!0)})),t.on("fileDequeued",(function(t){var e=t.__hash;e&&delete n[e]})),t.on("reset",(function(){n={}})))})),i})),n("lib/md5",["runtime/client","mediator"],(function(t,e){function n(){t.call(this,"Md5")}return e.installTo(n.prototype),n.prototype.loadFromBlob=function(t){var e=this;e.getRuid()&&e.disconnectRuntime(),e.connectRuntime(t.ruid,(function(){e.exec("init"),e.exec("loadFromBlob",t)}))},n.prototype.getResult=function(){return this.exec("getResult")},n})),n("widgets/md5",["base","uploader","lib/md5","lib/blob","widgets/widget"],(function(t,e,n,i){return e.register({name:"md5",md5File:function(e,r,a){var o=new n,s=t.Deferred(),l=e instanceof i?e:this.request("get-file",e).source;return o.on("progress load",(function(t){t=t||{},s.notify(t.total?t.loaded/t.total:1)})),o.on("complete",(function(){s.resolve(o.getResult())})),o.on("error",(function(t){s.reject(t)})),arguments.length>1&&(a=a||0,0>(r=r||0)&&(r=l.size+r),0>a&&(a=l.size+a),a=Math.min(a,l.size),l=l.slice(r,a)),o.loadFromBlob(l),s.promise()}})})),n("runtime/compbase",[],(function(){return function(t,e){this.owner=t,this.options=t.options,this.getRuntime=function(){return e},this.getRuid=function(){return e.uid},this.trigger=function(){return t.trigger.apply(t,arguments)}}})),n("runtime/html5/runtime",["base","runtime/runtime","runtime/compbase"],(function(t,n,i){function r(){var e={},i=this,r=this.destroy;n.apply(i,arguments),i.type=a,i.exec=function(n,r){var a,s=this,l=s.uid,c=t.slice(arguments,2);return o[n]&&(a=e[l]=e[l]||new o[n](s,i))[r]?a[r].apply(a,c):void 0},i.destroy=function(){return r&&r.apply(this,arguments)}}var a="html5",o={};return t.inherits(n,{constructor:r,init:function(){var t=this;setTimeout((function(){t.trigger("ready")}),1)}}),r.register=function(e,n){return o[e]=t.inherits(i,n)},e.Blob&&e.FileReader&&e.DataView&&n.addRuntime(a,r),r})),n("runtime/html5/blob",["runtime/html5/runtime","lib/blob"],(function(t,e){return t.register("Blob",{slice:function(t,n){var i=this.owner.source;return i=(i.slice||i.webkitSlice||i.mozSlice).call(i,t,n),new e(this.getRuid(),i)}})})),n("runtime/html5/dnd",["base","runtime/html5/runtime","lib/file"],(function(t,e,n){var i=t.$,r="webuploader-dnd-";return e.register("DragAndDrop",{init:function(){var e=this.elem=this.options.container;this.dragEnterHandler=t.bindFn(this._dragEnterHandler,this),this.dragOverHandler=t.bindFn(this._dragOverHandler,this),this.dragLeaveHandler=t.bindFn(this._dragLeaveHandler,this),this.dropHandler=t.bindFn(this._dropHandler,this),this.dndOver=!1,e.on("dragenter",this.dragEnterHandler),e.on("dragover",this.dragOverHandler),e.on("dragleave",this.dragLeaveHandler),e.on("drop",this.dropHandler),this.options.disableGlobalDnd&&(i(document).on("dragover",this.dragOverHandler),i(document).on("drop",this.dropHandler))},_dragEnterHandler:function(t){var e,n=this,i=n._denied||!1;return t=t.originalEvent||t,n.dndOver||(n.dndOver=!0,(e=t.dataTransfer.items)&&e.length&&(n._denied=i=!n.trigger("accept",e)),n.elem.addClass(r+"over"),n.elem[i?"addClass":"removeClass"](r+"denied")),t.dataTransfer.dropEffect=i?"none":"copy",!1},_dragOverHandler:function(t){var e=this.elem.parent().get(0);return e&&!i.contains(e,t.currentTarget)||(clearTimeout(this._leaveTimer),this._dragEnterHandler.call(this,t)),!1},_dragLeaveHandler:function(){var t,e=this;return t=function(){e.dndOver=!1,e.elem.removeClass(r+"over "+r+"denied")},clearTimeout(e._leaveTimer),e._leaveTimer=setTimeout(t,100),!1},_dropHandler:function(t){var e,a,o=this,s=o.getRuid(),l=o.elem.parent().get(0);if(l&&!i.contains(l,t.currentTarget))return!1;e=(t=t.originalEvent||t).dataTransfer;try{a=e.getData("text/html")}catch(t){}return o.dndOver=!1,o.elem.removeClass(r+"over"),a?void 0:(o._getTansferFiles(e,(function(t){o.trigger("drop",i.map(t,(function(t){return new n(s,t)})))})),!1)},_getTansferFiles:function(e,n){var i,r,a,o,s,l,c,h=[],d=[];for(i=e.items,r=e.files,c=!(!i||!i[0].webkitGetAsEntry),s=0,l=r.length;l>s;s++)a=r[s],o=i&&i[s],c&&o.webkitGetAsEntry().isDirectory?d.push(this._traverseDirectoryTree(o.webkitGetAsEntry(),h)):h.push(a);t.when.apply(t,d).done((function(){h.length&&n(h)}))},_traverseDirectoryTree:function(e,n){var i=t.Deferred(),r=this;return e.isFile?e.file((function(t){n.push(t),i.resolve()})):e.isDirectory&&e.createReader().readEntries((function(e){var a,o=e.length,s=[],l=[];for(a=0;o>a;a++)s.push(r._traverseDirectoryTree(e[a],l));t.when.apply(t,s).then((function(){n.push.apply(n,l),i.resolve()}),i.reject)})),i.promise()},destroy:function(){var t=this.elem;t&&(t.off("dragenter",this.dragEnterHandler),t.off("dragover",this.dragOverHandler),t.off("dragleave",this.dragLeaveHandler),t.off("drop",this.dropHandler),this.options.disableGlobalDnd&&(i(document).off("dragover",this.dragOverHandler),i(document).off("drop",this.dropHandler)))}})})),n("runtime/html5/filepaste",["base","runtime/html5/runtime","lib/file"],(function(t,e,n){return e.register("FilePaste",{init:function(){var e,n,i,r,a=this.options,o=this.elem=a.container,s=".*";if(a.accept){for(e=[],n=0,i=a.accept.length;i>n;n++)(r=a.accept[n].mimeTypes)&&e.push(r);e.length&&(s=(s=e.join(",")).replace(/,/g,"|").replace(/\*/g,".*"))}this.accept=s=new RegExp(s,"i"),this.hander=t.bindFn(this._pasteHander,this),o.on("paste",this.hander)},_pasteHander:function(t){var e,i,r,a,o,s=[],l=this.getRuid();for(a=0,o=(e=(t=t.originalEvent||t).clipboardData.items).length;o>a;a++)"file"===(i=e[a]).kind&&(r=i.getAsFile())&&s.push(new n(l,r));s.length&&(t.preventDefault(),t.stopPropagation(),this.trigger("paste",s))},destroy:function(){this.elem.off("paste",this.hander)}})})),n("runtime/html5/filepicker",["base","runtime/html5/runtime"],(function(t,e){var n=t.$;return e.register("FilePicker",{init:function(){var t,e,i,r,a=this.getRuntime().getContainer(),o=this,s=o.owner,l=o.options,c=this.label=n(document.createElement("label")),h=this.input=n(document.createElement("input"));if(h.attr("type","file"),h.attr("name",l.name),h.addClass("webuploader-element-invisible"),c.on("click",(function(t){h.trigger("click"),t.stopPropagation(),s.trigger("dialogopen")})),c.css({opacity:0,width:"100%",height:"100%",display:"block",cursor:"pointer",background:"#ffffff"}),l.multiple&&h.attr("multiple","multiple"),l.accept&&l.accept.length>0){for(t=[],e=0,i=l.accept.length;i>e;e++)t.push(l.accept[e].mimeTypes);h.attr("accept",t.join(","))}a.append(h),a.append(c),r=function(t){s.trigger(t.type)},h.on("change",(function(t){var e,i=arguments.callee;o.files=t.target.files,(e=this.cloneNode(!0)).value=null,this.parentNode.replaceChild(e,this),h.off(),h=n(e).on("change",i).on("mouseenter mouseleave",r),s.trigger("change")})),c.on("mouseenter mouseleave",r)},getFiles:function(){return this.files},destroy:function(){this.input.off(),this.label.off()}})})),n("runtime/html5/util",["base"],(function(t){var n=e.createObjectURL&&e||e.URL&&URL.revokeObjectURL&&URL||e.webkitURL,i=t.noop,r=i;return n&&(i=function(){return n.createObjectURL.apply(n,arguments)},r=function(){return n.revokeObjectURL.apply(n,arguments)}),{createObjectURL:i,revokeObjectURL:r,dataURL2Blob:function(t){var e,n,i,r,a,o;for(e=~(o=t.split(","))[0].indexOf("base64")?atob(o[1]):decodeURIComponent(o[1]),i=new ArrayBuffer(e.length),n=new Uint8Array(i),r=0;r<e.length;r++)n[r]=e.charCodeAt(r);return a=o[0].split(":")[1].split(";")[0],this.arrayBufferToBlob(i,a)},dataURL2ArrayBuffer:function(t){var e,n,i,r;for(e=~(r=t.split(","))[0].indexOf("base64")?atob(r[1]):decodeURIComponent(r[1]),n=new Uint8Array(e.length),i=0;i<e.length;i++)n[i]=e.charCodeAt(i);return n.buffer},arrayBufferToBlob:function(t,n){var i,r=e.BlobBuilder||e.WebKitBlobBuilder;return r?((i=new r).append(t),i.getBlob(n)):new Blob([t],n?{type:n}:{})},canvasToDataUrl:function(t,e,n){return t.toDataURL(e,n/100)},parseMeta:function(t,e){e(!1,{})},updateImageHead:function(t){return t}}})),n("runtime/html5/imagemeta",["runtime/html5/util"],(function(t){var e;return e={parsers:{65505:[]},maxMetaDataSize:262144,parse:function(t,e){var n=this,i=new FileReader;i.onload=function(){e(!1,n._parse(this.result)),i=i.onload=i.onerror=null},i.onerror=function(t){e(t.message),i=i.onload=i.onerror=null},t=t.slice(0,n.maxMetaDataSize),i.readAsArrayBuffer(t.getSource())},_parse:function(t,n){if(!(t.byteLength<6)){var i,r,a,o,s=new DataView(t),l=2,c=s.byteLength-4,h=l,d={};if(65496===s.getUint16(0)){for(;c>l&&((i=s.getUint16(l))>=65504&&65519>=i||65534===i)&&!(l+(r=s.getUint16(l+2)+2)>s.byteLength);){if(a=e.parsers[i],!n&&a)for(o=0;o<a.length;o+=1)a[o].call(e,s,l,r,d);h=l+=r}h>6&&(d.imageHead=t.slice?t.slice(2,h):new Uint8Array(t).subarray(2,h))}return d}},updateImageHead:function(t,e){var n,i,r,a=this._parse(t,!0);return r=2,a.imageHead&&(r=2+a.imageHead.byteLength),i=t.slice?t.slice(r):new Uint8Array(t).subarray(r),(n=new Uint8Array(e.byteLength+2+i.byteLength))[0]=255,n[1]=216,n.set(new Uint8Array(e),2),n.set(new Uint8Array(i),e.byteLength+2),n.buffer}},t.parseMeta=function(){return e.parse.apply(e,arguments)},t.updateImageHead=function(){return e.updateImageHead.apply(e,arguments)},e})),n("runtime/html5/imagemeta/exif",["base","runtime/html5/imagemeta"],(function(t,e){var n={ExifMap:function(){return this}};return n.ExifMap.prototype.map={Orientation:274},n.ExifMap.prototype.get=function(t){return this[t]||this[this.map[t]]},n.exifTagTypes={1:{getValue:function(t,e){return t.getUint8(e)},size:1},2:{getValue:function(t,e){return String.fromCharCode(t.getUint8(e))},size:1,ascii:!0},3:{getValue:function(t,e,n){return t.getUint16(e,n)},size:2},4:{getValue:function(t,e,n){return t.getUint32(e,n)},size:4},5:{getValue:function(t,e,n){return t.getUint32(e,n)/t.getUint32(e+4,n)},size:8},9:{getValue:function(t,e,n){return t.getInt32(e,n)},size:4},10:{getValue:function(t,e,n){return t.getInt32(e,n)/t.getInt32(e+4,n)},size:8}},n.exifTagTypes[7]=n.exifTagTypes[1],n.getExifValue=function(e,i,r,a,o,s){var l,c,h,d,u,m,p=n.exifTagTypes[a];if(p){if(!((c=(l=p.size*o)>4?i+e.getUint32(r+8,s):r+8)+l>e.byteLength)){if(1===o)return p.getValue(e,c,s);for(h=[],d=0;o>d;d+=1)h[d]=p.getValue(e,c+d*p.size,s);if(p.ascii){for(u="",d=0;d<h.length&&"\0"!==(m=h[d]);d+=1)u+=m;return u}return h}t.log("Invalid Exif data: Invalid data offset.")}else t.log("Invalid Exif data: Invalid tag type.")},n.parseExifTag=function(t,e,i,r,a){var o=t.getUint16(i,r);a.exif[o]=n.getExifValue(t,e,i,t.getUint16(i+2,r),t.getUint32(i+4,r),r)},n.parseExifTags=function(e,n,i,r,a){var o,s,l;if(i+6>e.byteLength)t.log("Invalid Exif data: Invalid directory offset.");else{if(!((s=i+2+12*(o=e.getUint16(i,r)))+4>e.byteLength)){for(l=0;o>l;l+=1)this.parseExifTag(e,n,i+2+12*l,r,a);return e.getUint32(s,r)}t.log("Invalid Exif data: Invalid directory size.")}},n.parseExifData=function(e,i,r,a){var o,s,l=i+10;if(1165519206===e.getUint32(i+4)){if(l+8>e.byteLength)return void t.log("Invalid Exif data: Invalid segment size.");if(0!==e.getUint16(i+8))return void t.log("Invalid Exif data: Missing byte alignment offset.");switch(e.getUint16(l)){case 18761:o=!0;break;case 19789:o=!1;break;default:return void t.log("Invalid Exif data: Invalid byte alignment marker.")}if(42!==e.getUint16(l+2,o))return void t.log("Invalid Exif data: Missing TIFF marker.");s=e.getUint32(l+4,o),a.exif=new n.ExifMap,s=n.parseExifTags(e,l,l+s,o,a)}},e.parsers[65505].push(n.parseExifData),n})),n("runtime/html5/jpegencoder",[],(function(){function t(t){function e(t,e){for(var n=0,i=0,r=[](),a=1;16>=a;a++){for(var o=1;o<=t[a];o++)r[e[i]]=[],r[e[i]][0]=n,r[e[i]][1]=a,i++,n++;n*=2}return r}function n(t){for(var e=t[0],n=t[1]-1;n>=0;)e&1<<n&&(C|=1<<k),n--,0>--k&&(255==C?(i(255),i(0)):i(C),k=7,C=0)}function i(t){x.push(M[t])}function r(t){i(255&t>>8),i(255&t)}function a(t,e,i,r,a){for(var o,s=a[0],l=a[240],c=function(t,e){var n,i,r,a,o,s,l,c,h,d,u=0;for(h=0;8>h;++h){n=t[u],i=t[u+1],r=t[u+2],a=t[u+3],o=t[u+4],s=t[u+5],l=t[u+6];var m=n+(c=t[u+7]),p=n-c,g=i+l,f=i-l,b=r+s,y=r-s,w=a+o,x=a-o,C=m+w,k=m-w,S=g+b,P=g-b;t[u]=C+S,t[u+4]=C-S;var _=.707106781*(P+k);t[u+2]=k+_,t[u+6]=k-_;var M=.382683433*((C=x+y)-(P=f+p)),D=.5411961*C+M,E=1.306562965*P+M,O=.707106781*(S=y+f),A=p+O,T=p-O;t[u+5]=T+D,t[u+3]=T-D,t[u+1]=A+E,t[u+7]=A-E,u+=8}for(u=0,h=0;8>h;++h){n=t[u],i=t[u+8],r=t[u+16],a=t[u+24],o=t[u+32],s=t[u+40],l=t[u+48];var I=n+(c=t[u+56]),L=n-c,z=i+l,R=i-l,F=r+s,B=r-s,V=a+o,N=a-o,H=I+V,G=I-V,Z=z+F,U=z-F;t[u]=H+Z,t[u+32]=H-Z;var W=.707106781*(U+G);t[u+16]=G+W,t[u+48]=G-W;var Y=.382683433*((H=N+B)-(U=R+L)),j=.5411961*H+Y,X=1.306562965*U+Y,q=.707106781*(Z=B+R),$=L+q,K=L-q;t[u+40]=K+j,t[u+24]=K-j,t[u+8]=$+X,t[u+56]=$-X,u++}for(h=0;64>h;++h)d=t[h]*e[h],v[h]=d>0?0|d+.5:0|d-.5;return v}(t,e),h=0;64>h;++h)w[E[h]]=c[h];var d=w[0]-i;i=w[0],0==d?n(r[0]):(n(r[y[o=32767+d]]),n(b[o]));for(var u=63;u>0&&0==w[u];u--);if(0==u)return n(s),i;for(var m,p=1;u>=p;){for(var g=p;0==w[p]&&u>=p;++p);var f=p-g;if(f>=16){m=f>>4;for(var x=1;m>=x;++x)n(l);f&=15}o=32767+w[p],n(a[(f<<4)+y[o]]),n(b[o]),p++}return 63!=u&&n(s),i}function o(t){0>=t&&(t=1),t>100&&(t=100),d!=t&&(function(t){for(var e=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;64>n;n++){var i=u((e[n]*t+50)/100);1>i?i=1:i>255&&(i=255),m[E[n]]=i}for(var r=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],a=0;64>a;a++){var o=u((r[a]*t+50)/100);1>o?o=1:o>255&&(o=255),p[E[a]]=o}for(var s=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],l=0,c=0;8>c;c++)for(var h=0;8>h;h++)g[l]=1/(8*m[E[l]]*s[c]*s[h]),f[l]=1/(8*p[E[l]]*s[c]*s[h]),l++}(50>t?Math.floor(5e3/t):Math.floor(200-2*t)),d=t)}Math.round;var s,l,c,h,d,u=Math.floor,m=new Array(64),p=new Array(64),g=new Array(64),f=new Array(64),b=new Array(65535),y=new Array(65535),v=new Array(64),w=new Array(64),x=[],C=0,k=7,S=new Array(64),P=new Array(64),_=new Array(64),M=new Array(256),D=new Array(2048),E=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],O=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],A=[0,1,2,3,4,5,6,7,8,9,10,11],T=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],I=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],L=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],z=[0,1,2,3,4,5,6,7,8,9,10,11],R=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],F=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];this.encode=function(t,e){var d,u;e&&o(e),x=[](),C=0,k=7,r(65496),r(65504),r(16),i(74),i(70),i(73),i(70),i(0),i(1),i(1),i(0),r(1),r(1),i(0),i(0),function(){r(65499),r(132),i(0);for(var t=0;64>t;t++)i(m[t]);i(1);for(var e=0;64>e;e++)i(p[e])}(),d=t.width,u=t.height,r(65472),r(17),i(8),r(u),r(d),i(3),i(1),i(17),i(0),i(2),i(17),i(1),i(3),i(17),i(1),function(){r(65476),r(418),i(0);for(var t=0;16>t;t++)i(O[t+1]);for(var e=0;11>=e;e++)i(A[e]);i(16);for(var n=0;16>n;n++)i(T[n+1]);for(var a=0;161>=a;a++)i(I[a]);i(1);for(var o=0;16>o;o++)i(L[o+1]);for(var s=0;11>=s;s++)i(z[s]);i(17);for(var l=0;16>l;l++)i(R[l+1]);for(var c=0;161>=c;c++)i(F[c])}(),r(65498),r(12),i(3),i(1),i(0),i(2),i(17),i(3),i(17),i(0),i(63),i(0);var b=0,y=0,v=0;C=0,k=7,this.encode.displayName="_encode_";for(var w,M,E,B,V,N,H,G,Z,U=t.data,W=t.width,Y=t.height,j=4*W,X=0;Y>X;){for(w=0;j>w;){for(N=V=j*X+w,H=-1,G=0,Z=0;64>Z;Z++)N=V+(G=Z>>3)*j+(H=4*(7&Z)),X+G>=Y&&(N-=j*(X+1+G-Y)),w+H>=j&&(N-=w+H-j+4),M=U[N++],E=U[N++],B=U[N++],S[Z]=(D[M]+D[E+256>>0]+D[B+512>>0]>>16)-128,P[Z]=(D[M+768>>0]+D[E+1024>>0]+D[B+1280>>0]>>16)-128,_[Z]=(D[M+1280>>0]+D[E+1536>>0]+D[B+1792>>0]>>16)-128;b=a(S,g,b,s,c),y=a(P,f,y,l,h),v=a(_,f,v,l,h),w+=32}X+=8}if(k>=0){var q=[];q[1]=k+1,q[0]=(1<<k+1)-1,n(q)}r(65497);var $="data:image/jpeg;base64,"+btoa(x.join(""));return x=[],$},t||(t=50),function(){for(var t=String.fromCharCode,e=0;256>e;e++)M[e]=t(e)}(),s=e(O,A),l=e(L,z),c=e(T,I),h=e(R,F),function(){for(var t=1,e=2,n=1;15>=n;n++){for(var i=t;e>i;i++)y[32767+i]=n,b[32767+i]=[],b[32767+i][1]=n,b[32767+i][0]=i;for(var r=-(e-1);-t>=r;r++)y[32767+r]=n,b[32767+r]=[],b[32767+r][1]=n,b[32767+r][0]=e-1+r;t<<=1,e<<=1}}(),function(){for(var t=0;256>t;t++)D[t]=19595*t,D[t+256>>0]=38470*t,D[t+512>>0]=7471*t+32768,D[t+768>>0]=-11059*t,D[t+1024>>0]=-21709*t,D[t+1280>>0]=32768*t+8421375,D[t+1536>>0]=-27439*t,D[t+1792>>0]=-5329*t}(),o(t)}return t.encode=function(e,n){return new t(n).encode(e)},t})),n("runtime/html5/androidpatch",["runtime/html5/util","runtime/html5/jpegencoder","base"],(function(t,e,n){var i,r=t.canvasToDataUrl;t.canvasToDataUrl=function(t,a,o){var s,l,c,h,d;return n.os.android?("image/jpeg"===a&&void 0===i&&(d=(h=r.apply(null,arguments)).split(","),h=(h=~d[0].indexOf("base64")?atob(d[1]):decodeURIComponent(d[1])).substring(0,2),i=255===h.charCodeAt(0)&&216===h.charCodeAt(1)),"image/jpeg"!==a||i?r.apply(null,arguments):(l=t.width,c=t.height,s=t.getContext("2d"),e.encode(s.getImageData(0,0,l,c),o))):r.apply(null,arguments)}})),n("runtime/html5/image",["base","runtime/html5/runtime","runtime/html5/util"],(function(t,e,n){return e.register("Image",{modified:!1,init:function(){var t=this,e=new Image;e.onload=function(){t._info={type:t.type,width:this.width,height:this.height},t._metas||"image/jpeg"!==t.type?t.owner.trigger("load"):n.parseMeta(t._blob,(function(e,n){t._metas=n,t.owner.trigger("load")}))},e.onerror=function(){t.owner.trigger("error")},t._img=e},loadFromBlob:function(t){var e=this,i=e._img;e._blob=t,e.type=t.type,i.src=n.createObjectURL(t.getSource()),e.owner.once("load",(function(){n.revokeObjectURL(i.src)}))},resize:function(t,e){var n=this._canvas||(this._canvas=document.createElement("canvas"));this._resize(this._img,n,t,e),this._blob=null,this.modified=!0,this.owner.trigger("complete","resize")},crop:function(t,e,n,i,r){var a=this._canvas||(this._canvas=document.createElement("canvas")),o=this.options,s=this._img,l=s.naturalWidth,c=s.naturalHeight,h=this.getOrientation();r=r||1,a.width=n,a.height=i,o.preserveHeaders||this._rotate2Orientaion(a,h),this._renderImageToCanvas(a,s,-t,-e,l*r,c*r),this._blob=null,this.modified=!0,this.owner.trigger("complete","crop")},getAsBlob:function(t){var e,i=this._blob,r=this.options;if(t=t||this.type,this.modified||this.type!==t){if(e=this._canvas,"image/jpeg"===t){if(i=n.canvasToDataUrl(e,t,r.quality),r.preserveHeaders&&this._metas&&this._metas.imageHead)return i=n.dataURL2ArrayBuffer(i),i=n.updateImageHead(i,this._metas.imageHead),n.arrayBufferToBlob(i,t)}else i=n.canvasToDataUrl(e,t);i=n.dataURL2Blob(i)}return i},getAsDataUrl:function(t){var e=this.options;return"image/jpeg"===(t=t||this.type)?n.canvasToDataUrl(this._canvas,t,e.quality):this._canvas.toDataURL(t)},getOrientation:function(){return this._metas&&this._metas.exif&&this._metas.exif.get("Orientation")||1},info:function(t){return t?(this._info=t,this):this._info},meta:function(t){return t?(this._metas=t,this):this._metas},destroy:function(){var t=this._canvas;this._img.onload=null,t&&(t.getContext("2d").clearRect(0,0,t.width,t.height),t.width=t.height=0,this._canvas=null),this._img.src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs%3D",this._img=this._blob=null},_resize:function(t,e,n,i){var r,a,o,s,l,c=this.options,h=t.width,d=t.height,u=this.getOrientation();~[5,6,7,8].indexOf(u)&&(n^=i,n^=i^=n),r=Math[c.crop?"max":"min"](n/h,i/d),c.allowMagnify||(r=Math.min(1,r)),a=h*r,o=d*r,c.crop?(e.width=n,e.height=i):(e.width=a,e.height=o),s=(e.width-a)/2,l=(e.height-o)/2,c.preserveHeaders||this._rotate2Orientaion(e,u),this._renderImageToCanvas(e,t,s,l,a,o)},_rotate2Orientaion:function(t,e){var n=t.width,i=t.height,r=t.getContext("2d");switch(e){case 5:case 6:case 7:case 8:t.width=i,t.height=n}switch(e){case 2:r.translate(n,0),r.scale(-1,1);break;case 3:r.translate(n,i),r.rotate(Math.PI);break;case 4:r.translate(0,i),r.scale(1,-1);break;case 5:r.rotate(.5*Math.PI),r.scale(1,-1);break;case 6:r.rotate(.5*Math.PI),r.translate(0,-i);break;case 7:r.rotate(.5*Math.PI),r.translate(n,-i),r.scale(-1,1);break;case 8:r.rotate(-.5*Math.PI),r.translate(-n,0)}},_renderImageToCanvas:function(){function e(t,e,n){var i,r,a=document.createElement("canvas"),o=a.getContext("2d"),s=0,l=n,c=n;for(a.width=1,a.height=n,o.drawImage(t,0,0),i=o.getImageData(0,0,1,n).data;c>s;)0===i[4*(c-1)+3]?l=c:s=c,c=l+s>>1;return 0==(r=c/n)?1:r}return t.os.ios?t.os.ios>=7?function(t,n,i,r,a,o){var s=n.naturalWidth,l=n.naturalHeight,c=e(n,0,l);return t.getContext("2d").drawImage(n,0,0,s*c,l*c,i,r,a,o)}:function(t,n,i,r,a,o){var s,l,c,h,d,u,m,p,g,f,b,y=n.naturalWidth,v=n.naturalHeight,w=t.getContext("2d"),x=(b=(p=n).naturalWidth)*p.naturalHeight>1048576&&((g=document.createElement("canvas")).width=g.height=1,(f=g.getContext("2d")).drawImage(p,1-b,0),0===f.getImageData(0,0,1,1).data[3]),C="image/jpeg"===this.type,k=1024,S=0,P=0;for(x&&(y/=2,v/=2),w.save(),(s=document.createElement("canvas")).width=s.height=k,l=s.getContext("2d"),c=C?e(n,0,v):1,h=Math.ceil(k*a/y),d=Math.ceil(k*o/v/c);v>S;){for(u=0,m=0;y>u;)l.clearRect(0,0,k,k),l.drawImage(n,-u,-S),w.drawImage(s,0,0,k,k,i+m,r+P,h,d),u+=k,m+=h;S+=k,P+=d}w.restore(),s=l=null}:function(e){var n=t.slice(arguments,1),i=e.getContext("2d");i.drawImage.apply(i,n)}}()})})),n("runtime/html5/transport",["base","runtime/html5/runtime"],(function(t,e){var n=t.noop,i=t.$;return e.register("Transport",{init:function(){this._status=0,this._response=null},send:function(){var e,n,r,a=this.owner,o=this.options,s=this._initAjax(),l=a._blob,c=o.server;o.sendAsBinary?(c+=(/\?/.test(c)?"&":"?")+i.param(a._formData),n=l.getSource()):(e=new FormData,i.each(a._formData,(function(t,n){e.append(t,n)})),e.append(o.fileVal,l.getSource(),o.filename||a._formData.name||"")),o.withCredentials&&"withCredentials"in s?(s.open(o.method,c,!0),s.withCredentials=!0):s.open(o.method,c),this._setRequestHeader(s,o.headers),n?(s.overrideMimeType&&s.overrideMimeType("application/octet-stream"),t.os.android?((r=new FileReader).onload=function(){s.send(this.result),r=r.onload=null},r.readAsArrayBuffer(n)):s.send(n)):s.send(e)},getResponse:function(){return this._response},getResponseAsJson:function(){return this._parseJson(this._response)},getStatus:function(){return this._status},abort:function(){var t=this._xhr;t&&(t.upload.onprogress=n,t.onreadystatechange=n,t.abort(),this._xhr=t=null)},destroy:function(){this.abort()},_initAjax:function(){var t=this,e=new XMLHttpRequest;return!this.options.withCredentials||"withCredentials"in e||"undefined"==typeof XDomainRequest||(e=new XDomainRequest),e.upload.onprogress=function(e){var n=0;return e.lengthComputable&&(n=e.loaded/e.total),t.trigger("progress",n)},e.onreadystatechange=function(){return 4===e.readyState?(e.upload.onprogress=n,e.onreadystatechange=n,t._xhr=null,t._status=e.status,e.status>=200&&e.status<300?(t._response=e.responseText,t.trigger("load")):e.status>=500&&e.status<600?(t._response=e.responseText,t.trigger("error","server")):t.trigger("error",t._status?"http":"abort")):void 0},t._xhr=e,e},_setRequestHeader:function(t,e){i.each(e,(function(e,n){t.setRequestHeader(e,n)}))},_parseJson:function(t){var e;try{e=JSON.parse(t)}catch(t){e={}}return e}})})),n("runtime/html5/md5",["runtime/html5/runtime"],(function(t){var e=function(t,e){return 4294967295&t+e},n=function(t,n,i,r,a,o){return n=e(e(n,t),e(r,o)),e(n<<a|n>>>32-a,i)},i=function(t,e,i,r,a,o,s){return n(e&i|~e&r,t,e,a,o,s)},r=function(t,e,i,r,a,o,s){return n(e&r|i&~r,t,e,a,o,s)},a=function(t,e,i,r,a,o,s){return n(e^i^r,t,e,a,o,s)},o=function(t,e,i,r,a,o,s){return n(i^(e|~r),t,e,a,o,s)},s=function(t,n){var s=t[0],l=t[1],c=t[2],h=t[3];s=i(s,l,c,h,n[0],7,-680876936),h=i(h,s,l,c,n[1],12,-389564586),c=i(c,h,s,l,n[2],17,606105819),l=i(l,c,h,s,n[3],22,-1044525330),s=i(s,l,c,h,n[4],7,-176418897),h=i(h,s,l,c,n[5],12,1200080426),c=i(c,h,s,l,n[6],17,-1473231341),l=i(l,c,h,s,n[7],22,-45705983),s=i(s,l,c,h,n[8],7,1770035416),h=i(h,s,l,c,n[9],12,-1958414417),c=i(c,h,s,l,n[10],17,-42063),l=i(l,c,h,s,n[11],22,-1990404162),s=i(s,l,c,h,n[12],7,1804603682),h=i(h,s,l,c,n[13],12,-40341101),c=i(c,h,s,l,n[14],17,-1502002290),l=i(l,c,h,s,n[15],22,1236535329),s=r(s,l,c,h,n[1],5,-165796510),h=r(h,s,l,c,n[6],9,-1069501632),c=r(c,h,s,l,n[11],14,643717713),l=r(l,c,h,s,n[0],20,-373897302),s=r(s,l,c,h,n[5],5,-701558691),h=r(h,s,l,c,n[10],9,38016083),c=r(c,h,s,l,n[15],14,-660478335),l=r(l,c,h,s,n[4],20,-405537848),s=r(s,l,c,h,n[9],5,568446438),h=r(h,s,l,c,n[14],9,-1019803690),c=r(c,h,s,l,n[3],14,-187363961),l=r(l,c,h,s,n[8],20,1163531501),s=r(s,l,c,h,n[13],5,-1444681467),h=r(h,s,l,c,n[2],9,-51403784),c=r(c,h,s,l,n[7],14,1735328473),l=r(l,c,h,s,n[12],20,-1926607734),s=a(s,l,c,h,n[5],4,-378558),h=a(h,s,l,c,n[8],11,-2022574463),c=a(c,h,s,l,n[11],16,1839030562),l=a(l,c,h,s,n[14],23,-35309556),s=a(s,l,c,h,n[1],4,-1530992060),h=a(h,s,l,c,n[4],11,1272893353),c=a(c,h,s,l,n[7],16,-155497632),l=a(l,c,h,s,n[10],23,-1094730640),s=a(s,l,c,h,n[13],4,681279174),h=a(h,s,l,c,n[0],11,-358537222),c=a(c,h,s,l,n[3],16,-722521979),l=a(l,c,h,s,n[6],23,76029189),s=a(s,l,c,h,n[9],4,-640364487),h=a(h,s,l,c,n[12],11,-421815835),c=a(c,h,s,l,n[15],16,530742520),l=a(l,c,h,s,n[2],23,-995338651),s=o(s,l,c,h,n[0],6,-198630844),h=o(h,s,l,c,n[7],10,1126891415),c=o(c,h,s,l,n[14],15,-1416354905),l=o(l,c,h,s,n[5],21,-57434055),s=o(s,l,c,h,n[12],6,1700485571),h=o(h,s,l,c,n[3],10,-1894986606),c=o(c,h,s,l,n[10],15,-1051523),l=o(l,c,h,s,n[1],21,-2054922799),s=o(s,l,c,h,n[8],6,1873313359),h=o(h,s,l,c,n[15],10,-30611744),c=o(c,h,s,l,n[6],15,-1560198380),l=o(l,c,h,s,n[13],21,1309151649),s=o(s,l,c,h,n[4],6,-145523070),h=o(h,s,l,c,n[11],10,-1120210379),c=o(c,h,s,l,n[2],15,718787259),l=o(l,c,h,s,n[9],21,-343485551),t[0]=e(s,t[0]),t[1]=e(l,t[1]),t[2]=e(c,t[2]),t[3]=e(h,t[3])},l=function(t){var e,n=[];for(e=0;64>e;e+=4)n[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return n},c=function(t){var e,n=[];for(e=0;64>e;e+=4)n[e>>2]=t[e]+(t[e+1]<<8)+(t[e+2]<<16)+(t[e+3]<<24);return n},h=function(t){var e,n,i,r,a,o,c=t.length,h=[1732584193,-271733879,-1732584194,271733878];for(e=64;c>=e;e+=64)s(h,l(t.substring(e-64,e)));for(n=(t=t.substring(e-64)).length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=0;n>e;e+=1)i[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(i[e>>2]|=128<<(e%4<<3),e>55)for(s(h,i),e=0;16>e;e+=1)i[e]=0;return r=(r=8*c).toString(16).match(/(.*?)(.{0,8})$/),a=parseInt(r[2],16),o=parseInt(r[1],16)||0,i[14]=a,i[15]=o,s(h,i),h},d=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],u=function(t){var e,n="";for(e=0;4>e;e+=1)n+=d[15&t>>8*e+4]+d[15&t>>8*e];return n},m=function(t){var e;for(e=0;e<t.length;e+=1)t[e]=u(t[e]);return t.join("")},p=function(){this.reset()};return"5d41402abc4b2a76b9719d911017c592"!==m(h("hello"))&&(e=function(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}),p.prototype.append=function(t){return/[\u0080-\uFFFF]/.test(t)&&(t=unescape(encodeURIComponent(t))),this.appendBinary(t),this},p.prototype.appendBinary=function(t){this._buff+=t,this._length+=t.length;var e,n=this._buff.length;for(e=64;n>=e;e+=64)s(this._state,l(this._buff.substring(e-64,e)));return this._buff=this._buff.substr(e-64),this},p.prototype.end=function(t){var e,n,i=this._buff,r=i.length,a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;r>e;e+=1)a[e>>2]|=i.charCodeAt(e)<<(e%4<<3);return this._finish(a,r),n=t?this._state:m(this._state),this.reset(),n},p.prototype._finish=function(t,e){var n,i,r,a=e;if(t[a>>2]|=128<<(a%4<<3),a>55)for(s(this._state,t),a=0;16>a;a+=1)t[a]=0;n=(n=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),i=parseInt(n[2],16),r=parseInt(n[1],16)||0,t[14]=i,t[15]=r,s(this._state,t)},p.prototype.reset=function(){return this._buff="",this._length=0,this._state=[1732584193,-271733879,-1732584194,271733878],this},p.prototype.destroy=function(){delete this._state,delete this._buff,delete this._length},p.hash=function(t,e){/[\u0080-\uFFFF]/.test(t)&&(t=unescape(encodeURIComponent(t)));var n=h(t);return e?n:m(n)},p.hashBinary=function(t,e){var n=h(t);return e?n:m(n)},(p.ArrayBuffer=function(){this.reset()}).prototype.append=function(t){var e,n=this._concatArrayBuffer(this._buff,t),i=n.length;for(this._length+=t.byteLength,e=64;i>=e;e+=64)s(this._state,c(n.subarray(e-64,e)));return this._buff=i>e-64?n.subarray(e-64):new Uint8Array(0),this},p.ArrayBuffer.prototype.end=function(t){var e,n,i=this._buff,r=i.length,a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;r>e;e+=1)a[e>>2]|=i[e]<<(e%4<<3);return this._finish(a,r),n=t?this._state:m(this._state),this.reset(),n},p.ArrayBuffer.prototype._finish=p.prototype._finish,p.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._state=[1732584193,-271733879,-1732584194,271733878],this},p.ArrayBuffer.prototype.destroy=p.prototype.destroy,p.ArrayBuffer.prototype._concatArrayBuffer=function(t,e){var n=t.length,i=new Uint8Array(n+e.byteLength);return i.set(t),i.set(new Uint8Array(e),n),i},p.ArrayBuffer.hash=function(t,e){var n=function(t){var e,n,i,r,a,o,l=t.length,h=[1732584193,-271733879,-1732584194,271733878];for(e=64;l>=e;e+=64)s(h,c(t.subarray(e-64,e)));for(n=(t=l>e-64?t.subarray(e-64):new Uint8Array(0)).length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=0;n>e;e+=1)i[e>>2]|=t[e]<<(e%4<<3);if(i[e>>2]|=128<<(e%4<<3),e>55)for(s(h,i),e=0;16>e;e+=1)i[e]=0;return r=(r=8*l).toString(16).match(/(.*?)(.{0,8})$/),a=parseInt(r[2],16),o=parseInt(r[1],16)||0,i[14]=a,i[15]=o,s(h,i),h}(new Uint8Array(t));return e?n:m(n)},t.register("Md5",{init:function(){},loadFromBlob:function(t){var e,n,i=t.getSource(),r=2097152,a=Math.ceil(i.size/r),o=0,s=this.owner,l=new p.ArrayBuffer,c=this,h=i.mozSlice||i.webkitSlice||i.slice;n=new FileReader,(e=function(){var d,u;d=o*r,u=Math.min(d+r,i.size),n.onload=function(e){l.append(e.target.result),s.trigger("progress",{total:t.size,loaded:u})},n.onloadend=function(){n.onloadend=n.onload=null,++o<a?setTimeout(e,1):setTimeout((function(){s.trigger("load"),c.result=l.end(),e=t=i=l=null,s.trigger("complete")}),50)},n.readAsArrayBuffer(h.call(i,d,u))})()},getResult:function(){return this.result}})})),n("runtime/flash/runtime",["base","runtime/runtime","runtime/compbase"],(function(t,n,i){function r(){function i(t,e){var n,i,r=t.type||t;i=(n=r.split("::"))[0],"Ready"===(r=n[1])&&i===c.uid?c.trigger("ready"):a[i]&&a[i].trigger(r.toLowerCase(),t,e)}var r={},a={},l=this.destroy,c=this,h=t.guid("webuploader_");n.apply(c,arguments),c.type=o,c.exec=function(e,n){var i,o=this,l=o.uid,h=t.slice(arguments,2);return a[l]=o,s[e]&&(r[l]||(r[l]=new s[e](o,c)),(i=r[l])[n])?i[n].apply(i,h):c.flashExec.apply(o,arguments)},e[h]=function(){var t=arguments;setTimeout((function(){i.apply(null,t)}),1)},this.jsreciver=h,this.destroy=function(){return l&&l.apply(this,arguments)},this.flashExec=function(e,n){var i=c.getFlash(),r=t.slice(arguments,2);return i.exec(this.uid,e,n,r)}}var a=t.$,o="flash",s={};return t.inherits(n,{constructor:r,init:function(){var e,n=this.getContainer(),i=this.options;n.css({position:"absolute",top:"-8px",left:"-8px",width:"9px",height:"9px",overflow:"hidden"}),e='<object id="'+this.uid+'" type="application/x-shockwave-flash" data="'+i.swf+'" ',t.browser.ie&&(e+='classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" '),e+='width="100%" height="100%" style="outline:0"><param name="movie" value="'+i.swf+'" /><param name="flashvars" value="uid='+this.uid+"&jsreciver="+this.jsreciver+'" /><param name="wmode" value="transparent" /><param name="allowscriptaccess" value="always" /></object>',n.html(e)},getFlash:function(){return this._flash||(this._flash=a("#"+this.uid).get(0)),this._flash}}),r.register=function(e,n){return s[e]=t.inherits(i,a.extend({flashExec:function(){var t=this.owner;return this.getRuntime().flashExec.apply(t,arguments)}},n))},function(){var t;try{t=(t=navigator.plugins["Shockwave Flash"]).description}catch(e){try{t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version")}catch(e){t="0.0"}}return t=t.match(/\d+/g),parseFloat(t[0]+"."+t[1],10)}()>=11.4&&n.addRuntime(o,r),r})),n("runtime/flash/filepicker",["base","runtime/flash/runtime"],(function(t,e){var n=t.$;return e.register("FilePicker",{init:function(t){var e,i,r=n.extend({},t);for(e=r.accept&&r.accept.length,i=0;e>i;i++)r.accept[i].title||(r.accept[i].title="Files");delete r.button,delete r.id,delete r.container,this.flashExec("FilePicker","init",r)},destroy:function(){this.flashExec("FilePicker","destroy")}})})),n("runtime/flash/image",["runtime/flash/runtime"],(function(t){return t.register("Image",{loadFromBlob:function(t){var e=this.owner;e.info()&&this.flashExec("Image","info",e.info()),e.meta()&&this.flashExec("Image","meta",e.meta()),this.flashExec("Image","loadFromBlob",t.uid)}})})),n("runtime/flash/transport",["base","runtime/flash/runtime","runtime/client"],(function(t,n,i){var r=t.$;return n.register("Transport",{init:function(){this._status=0,this._response=null,this._responseJson=null},send:function(){var t,e=this.owner,n=this.options,i=this._initAjax(),a=e._blob,o=n.server;i.connectRuntime(a.ruid),n.sendAsBinary?(o+=(/\?/.test(o)?"&":"?")+r.param(e._formData),t=a.uid):(r.each(e._formData,(function(t,e){i.exec("append",t,e)})),i.exec("appendBlob",n.fileVal,a.uid,n.filename||e._formData.name||"")),this._setRequestHeader(i,n.headers),i.exec("send",{method:n.method,url:o,forceURLStream:n.forceURLStream,mimeType:"application/octet-stream"},t)},getStatus:function(){return this._status},getResponse:function(){return this._response||""},getResponseAsJson:function(){return this._responseJson},abort:function(){var t=this._xhr;t&&(t.exec("abort"),t.destroy(),this._xhr=t=null)},destroy:function(){this.abort()},_initAjax:function(){var t=this,n=new i("XMLHttpRequest");return n.on("uploadprogress progress",(function(e){var n=e.loaded/e.total;return n=Math.min(1,Math.max(0,n)),t.trigger("progress",n)})),n.on("load",(function(){var i,r=n.exec("getStatus"),a=!1,o="";return n.off(),t._xhr=null,r>=200&&300>r?a=!0:r>=500&&600>r?(a=!0,o="server"):o="http",a&&(t._response=n.exec("getResponse"),t._response=decodeURIComponent(t._response),i=function(t){try{return e.JSON&&e.JSON.parse?JSON.parse(t):new Function("return "+t).call()}catch(t){return{}}},t._responseJson=t._response?i(t._response):{}),n.destroy(),n=null,o?t.trigger("error",o):t.trigger("load")})),n.on("error",(function(){n.off(),t._xhr=null,t.trigger("error","http")})),t._xhr=n,n},_setRequestHeader:function(t,e){r.each(e,(function(e,n){t.exec("setRequestHeader",e,n)}))}})})),n("runtime/flash/blob",["runtime/flash/runtime","lib/blob"],(function(t,e){return t.register("Blob",{slice:function(t,n){var i=this.flashExec("Blob","slice",t,n);return new e(this.getRuid(),i)}})})),n("runtime/flash/md5",["runtime/flash/runtime"],(function(t){return t.register("Md5",{init:function(){},loadFromBlob:function(t){return this.flashExec("Md5","loadFromBlob",t.uid)}})})),n("preset/all",["base","widgets/filednd","widgets/filepaste","widgets/filepicker","widgets/image","widgets/queue","widgets/runtime","widgets/upload","widgets/validator","widgets/md5","runtime/html5/blob","runtime/html5/dnd","runtime/html5/filepaste","runtime/html5/filepicker","runtime/html5/imagemeta/exif","runtime/html5/androidpatch","runtime/html5/image","runtime/html5/transport","runtime/html5/md5","runtime/flash/filepicker","runtime/flash/image","runtime/flash/transport","runtime/flash/blob","runtime/flash/md5"],(function(t){return t})),n("webuploader",["preset/all"],(function(t){return t})),i("webuploader")));var e,n,i},"object"==typeof t.exports?t.exports=p():(o=[i],void 0===(s="function"==typeof(a=p)?a.apply(e,o):a)||(t.exports=s)),"undefined"!=typeof self&&self,t.exports=function(){return n={},t.m=e=[function(t,e,n){function i(t){var e=Object.assign({},r,t),n=a(e.text,e.ecLevel,e.minVersion,e.quiet);return"svg"===e.render?s(n,e):o(n,e,"image"===e.render)}var r=n(1),a=n(2),o=n(4),s=n(8);t.exports=i;try{jQuery.fn.kjua=function(t){return this.each((function(e,n){return n.appendChild(i(t))}))}}catch(t){}},function(t,e){t.exports={render:"image",crisp:!0,minVersion:1,ecLevel:"L",size:200,ratio:null,fill:"#333",back:"#fff",text:"no text",rounded:0,quiet:0,mode:"plain",mSize:30,mPosX:50,mPosY:50,label:"no label",fontname:"sans",fontcolor:"#333",image:null}},function(t,e,n){function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r=/code length overflow/i,a=n(3);a.stringToBytes=a.stringToBytesFuncs["UTF-8"],t.exports=function(t,e,n,o){var s,l=3<arguments.length&&void 0!==o?o:0,c=function(t,e,n){for(var o=2<arguments.length&&void 0!==n?n:1,s=o=Math.max(1,o);s<=40;s+=1)try{var l=function(){var n=a(s,e);n.addData(t),n.make();var i=n.getModuleCount();return{v:{text:t,level:e,version:s,module_count:i,is_dark:function(t,e){return 0<=t&&t<i&&0<=e&&e<i&&n.isDark(t,e)}}}}();if("object"===i(l))return l.v}catch(t){if(!(s<40&&r.test(t)))throw new Error(t)}return null}(0<arguments.length&&void 0!==t?t:"",1<arguments.length&&void 0!==e?e:"L",2<arguments.length&&void 0!==n?n:1);return c&&(s=c.is_dark,c.module_count+=2*l,c.is_dark=function(t,e){return s(t-l,e-l)}),c}},function(t,e,n){var i,r,a=function(){function t(t,e){function n(t,e){l=function(t){for(var e=new Array(t),n=0;n<t;n+=1){e[n]=new Array(t);for(var i=0;i<t;i+=1)e[n][i]=null}return e}(c=4*a+17),w(0,0),w(c-7,0),w(0,c-7),C(),x(),S(t,e),7<=a&&k(t),null==h&&(h=_(a,o,b)),P(h,e)}var a=t,o=i[e],l=null,c=0,h=null,b=[],v={},w=function(t,e){for(var n=-1;n<=7;n+=1)if(!(t+n<=-1||c<=t+n))for(var i=-1;i<=7;i+=1)e+i<=-1||c<=e+i||(l[t+n][e+i]=0<=n&&n<=6&&(0==i||6==i)||0<=i&&i<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=i&&i<=4)},x=function(){for(var t=8;t<c-8;t+=1)null==l[t][6]&&(l[t][6]=t%2==0);for(var e=8;e<c-8;e+=1)null==l[6][e]&&(l[6][e]=e%2==0)},C=function(){for(var t=r.getPatternPosition(a),e=0;e<t.length;e+=1)for(var n=0;n<t.length;n+=1){var i=t[e],o=t[n];if(null==l[i][o])for(var s=-2;s<=2;s+=1)for(var c=-2;c<=2;c+=1)l[i+s][o+c]=-2==s||2==s||-2==c||2==c||0==s&&0==c}},k=function(t){for(var e=r.getBCHTypeNumber(a),n=0;n<18;n+=1){var i=!t&&1==(e>>n&1);l[Math.floor(n/3)][n%3+c-8-3]=i}for(n=0;n<18;n+=1)i=!t&&1==(e>>n&1),l[n%3+c-8-3][Math.floor(n/3)]=i},S=function(t,e){for(var n=o<<3|e,i=r.getBCHTypeInfo(n),a=0;a<15;a+=1){var s=!t&&1==(i>>a&1);a<6?l[a][8]=s:a<8?l[a+1][8]=s:l[c-15+a][8]=s}for(a=0;a<15;a+=1)s=!t&&1==(i>>a&1),a<8?l[8][c-a-1]=s:a<9?l[8][15-a-1+1]=s:l[8][15-a-1]=s;l[c-8][8]=!t},P=function(t,e){for(var n=-1,i=c-1,a=7,o=0,s=r.getMaskFunction(e),h=c-1;0<h;h-=2)for(6==h&&--h;;){for(var d,u=0;u<2;u+=1)null==l[i][h-u]&&(d=!1,o<t.length&&(d=1==(t[o]>>>a&1)),s(i,h-u)&&(d=!d),l[i][h-u]=d,-1==--a&&(o+=1,a=7));if((i+=n)<0||c<=i){i-=n,n=-n;break}}},_=function(t,e,n){for(var i=d.getRSBlocks(t,e),a=u(),o=0;o<n.length;o+=1){var l=n[o];a.put(l.getMode(),4),a.put(l.getLength(),r.getLengthInBits(l.getMode(),t)),l.write(a)}var c=0;for(o=0;o<i.length;o+=1)c+=i[o].dataCount;if(a.getLengthInBits()>8*c)throw"code length overflow. ("+a.getLengthInBits()+">"+8*c+")";for(a.getLengthInBits()+4<=8*c&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(!1);for(;!(a.getLengthInBits()>=8*c||(a.put(236,8),a.getLengthInBits()>=8*c));)a.put(17,8);return function(t,e){for(var n=0,i=0,a=0,o=new Array(e.length),l=new Array(e.length),c=0;c<e.length;c+=1){var h=e[c].dataCount,d=e[c].totalCount-h;i=Math.max(i,h),a=Math.max(a,d),o[c]=new Array(h);for(var u=0;u<o[c].length;u+=1)o[c][u]=255&t.getBuffer()[u+n];n+=h;var m=r.getErrorCorrectPolynomial(d),p=s(o[c],m.getLength()-1).mod(m);for(l[c]=new Array(m.getLength()-1),u=0;u<l[c].length;u+=1){var g=u+p.getLength()-l[c].length;l[c][u]=0<=g?p.getAt(g):0}}var f=0;for(u=0;u<e.length;u+=1)f+=e[u].totalCount;var b=new Array(f),y=0;for(u=0;u<i;u+=1)for(c=0;c<e.length;c+=1)u<o[c].length&&(b[y]=o[c][u],y+=1);for(u=0;u<a;u+=1)for(c=0;c<e.length;c+=1)u<l[c].length&&(b[y]=l[c][u],y+=1);return b}(a,i)};v.addData=function(t,e){var n=null;switch(e=e||"Byte"){case"Numeric":n=m(t);break;case"Alphanumeric":n=p(t);break;case"Byte":n=g(t);break;case"Kanji":n=f(t);break;default:throw"mode:"+e}b.push(n),h=null},v.isDark=function(t,e){if(t<0||c<=t||e<0||c<=e)throw t+","+e;return l[t][e]},v.getModuleCount=function(){return c},v.make=function(){if(a<1){for(var t=1;t<40;t++){for(var e=d.getRSBlocks(t,o),i=u(),s=0;s<b.length;s++){var l=b[s];i.put(l.getMode(),4),i.put(l.getLength(),r.getLengthInBits(l.getMode(),t)),l.write(i)}var c=0;for(s=0;s<e.length;s++)c+=e[s].dataCount;if(i.getLengthInBits()<=8*c)break}a=t}n(!1,function(){for(var t=0,e=0,i=0;i<8;i+=1){n(!0,i);var a=r.getLostPoint(v);(0==i||a<t)&&(t=a,e=i)}return e}())},v.createTableTag=function(t,e){t=t||2;var n="";n+='<table style="',n+=" border-width: 0px; border-style: none;",n+=" border-collapse: collapse;",n+=" padding: 0px; margin: "+(e=void 0===e?4*t:e)+"px;",n+='">',n+="<tbody>";for(var i=0;i<v.getModuleCount();i+=1){n+="<tr>";for(var r=0;r<v.getModuleCount();r+=1)n+='<td style="',n+=" border-width: 0px; border-style: none;",n+=" border-collapse: collapse;",n+=" padding: 0px; margin: 0px;",n+=" width: "+t+"px;",n+=" height: "+t+"px;",n+=" background-color: ",n+=v.isDark(i,r)?"#000000":"#ffffff",n+=";",n+='"/>';n+="</tr>"}return(n+="</tbody>")+"</table>"},v.createSvgTag=function(t,e,n,i){var r={};"object"==typeof arguments[0]&&(t=(r=arguments[0]).cellSize,e=r.margin,n=r.alt,i=r.title),t=t||2,e=void 0===e?4*t:e,(n="string"==typeof n?{text:n}:n||{}).text=n.text||null,n.id=n.text?n.id||"qrcode-description":null,(i="string"==typeof i?{text:i}:i||{}).text=i.text||null,i.id=i.text?i.id||"qrcode-title":null;var a,o,s,l=v.getModuleCount()*t+2*e,c="",h="l"+t+",0 0,"+t+" -"+t+",0 0,-"+t+"z ";for(c+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',c+=r.scalable?"":' width="'+l+'px" height="'+l+'px"',c+=' viewBox="0 0 '+l+" "+l+'" ',c+=' preserveAspectRatio="xMinYMin meet"',c+=i.text||n.text?' role="img" aria-labelledby="'+M([i.id,n.id].join(" ").trim())+'"':"",c+=">",c+=i.text?'<title id="'+M(i.id)+'">'+M(i.text)+"</title>":"",c+=n.text?'<description id="'+M(n.id)+'">'+M(n.text)+"</description>":"",c+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',c+='<path d="',o=0;o<v.getModuleCount();o+=1)for(s=o*t+e,a=0;a<v.getModuleCount();a+=1)v.isDark(o,a)&&(c+="M"+(a*t+e)+","+s+h);return(c+='" stroke="transparent" fill="black"/>')+"</svg>"},v.createDataURL=function(t,e){t=t||2,e=void 0===e?4*t:e;var n=v.getModuleCount()*t+2*e,i=e,r=n-e;return y(n,n,(function(e,n){if(i<=e&&e<r&&i<=n&&n<r){var a=Math.floor((e-i)/t),o=Math.floor((n-i)/t);return v.isDark(o,a)?0:1}return 1}))},v.createImgTag=function(t,e,n){t=t||2,e=void 0===e?4*t:e;var i=v.getModuleCount()*t+2*e,r="";return r+="<img",r+=' src="',r+=v.createDataURL(t,e),r+='"',r+=' width="',r+=i,r+='"',r+=' height="',r+=i,r+='"',n&&(r+=' alt="',r+=M(n),r+='"'),r+"/>"};var M=function(t){for(var e="",n=0;n<t.length;n+=1){var i=t.charAt(n);switch(i){case"<":e+="<";break;case">":e+=">";break;case"&":e+="&";break;case'"':e+=""";break;default:e+=i}}return e};return v.createASCII=function(t,e){if((t=t||1)<2)return function(t){t=void 0===t?2:t;for(var e,n,i,r,a=+v.getModuleCount()+2*t,o=t,s=a-t,l={"██":"█","█ ":"▀"," █":"▄"," ":" "},c={"██":"▀","█ ":"▀"," █":" "," ":" "},h="",d=0;d<a;d+=2){for(n=Math.floor(d-o),i=Math.floor(d+1-o),e=0;e<a;e+=1)r="█",o<=e&&e<s&&o<=d&&d<s&&v.isDark(n,Math.floor(e-o))&&(r=" "),o<=e&&e<s&&o<=d+1&&d+1<s&&v.isDark(i,Math.floor(e-o))?r+=" ":r+="█",h+=t<1&&s<=d+1?c[r]:l[r];h+="\n"}return a%2&&0<t?h.substring(0,h.length-a-1)+Array(1+a).join("▀"):h.substring(0,h.length-1)}(e);--t,e=void 0===e?2*t:e;for(var n,i,r,a=v.getModuleCount()*t+2*e,o=e,s=a-e,l=Array(t+1).join("██"),c=Array(t+1).join(" "),h="",d="",u=0;u<a;u+=1){for(i=Math.floor((u-o)/t),d="",n=0;n<a;n+=1)r=1,o<=n&&n<s&&o<=u&&u<s&&v.isDark(i,Math.floor((n-o)/t))&&(r=0),d+=r?l:c;for(i=0;i<t;i+=1)h+=d+"\n"}return h.substring(0,h.length-1)},v.renderTo2dContext=function(t,e){e=e||2;for(var n=v.getModuleCount(),i=0;i<n;i++)for(var r=0;r<n;r++)t.fillStyle=v.isDark(i,r)?"black":"white",t.fillRect(i*e,r*e,e,e)},v}t.stringToBytes=(t.stringToBytesFuncs={default:function(t){for(var e=[],n=0;n<t.length;n+=1){var i=t.charCodeAt(n);e.push(255&i)}return e}}).default,t.createStringToBytes=function(t,e){var n=function(){function n(){var t=i.read();if(-1==t)throw"eof";return t}for(var i=b(t),r=0,a={};;){var o=i.read();if(-1==o)break;var s=n(),l=n()<<8|n();a[String.fromCharCode(o<<8|s)]=l,r+=1}if(r!=e)throw r+" != "+e;return a}(),i="?".charCodeAt(0);return function(t){for(var e=[],r=0;r<t.length;r+=1){var a,o=t.charCodeAt(r);o<128?e.push(o):"number"==typeof(a=n[t.charAt(r)])?(255&a)==a?e.push(a):(e.push(a>>>8),e.push(255&a)):e.push(i)}return e}};var e,n,i={L:1,M:0,Q:3,H:2},r=(e=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],(n={}).getBCHTypeInfo=function(t){for(var e=t<<10;0<=a(e)-a(1335);)e^=1335<<a(e)-a(1335);return 21522^(t<<10|e)},n.getBCHTypeNumber=function(t){for(var e=t<<12;0<=a(e)-a(7973);)e^=7973<<a(e)-a(7973);return t<<12|e},n.getPatternPosition=function(t){return e[t-1]},n.getMaskFunction=function(t){switch(t){case 0:return function(t,e){return(t+e)%2==0};case 1:return function(t,e){return t%2==0};case 2:return function(t,e){return e%3==0};case 3:return function(t,e){return(t+e)%3==0};case 4:return function(t,e){return(Math.floor(t/2)+Math.floor(e/3))%2==0};case 5:return function(t,e){return t*e%2+t*e%3==0};case 6:return function(t,e){return(t*e%2+t*e%3)%2==0};case 7:return function(t,e){return(t*e%3+(t+e)%2)%2==0};default:throw"bad maskPattern:"+t}},n.getErrorCorrectPolynomial=function(t){for(var e=s([1],0),n=0;n<t;n+=1)e=e.multiply(s([1,o.gexp(n)],0));return e},n.getLengthInBits=function(t,e){if(1<=e&&e<10)switch(t){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+t}else if(e<27)switch(t){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+t}else{if(!(e<41))throw"type:"+e;switch(t){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+t}}},n.getLostPoint=function(t){for(var e=t.getModuleCount(),n=0,i=0;i<e;i+=1)for(var r=0;r<e;r+=1){for(var a=0,o=t.isDark(i,r),s=-1;s<=1;s+=1)if(!(i+s<0||e<=i+s))for(var l=-1;l<=1;l+=1)r+l<0||e<=r+l||0==s&&0==l||o==t.isDark(i+s,r+l)&&(a+=1);5<a&&(n+=3+a-5)}for(i=0;i<e-1;i+=1)for(r=0;r<e-1;r+=1){var c=0;t.isDark(i,r)&&(c+=1),t.isDark(i+1,r)&&(c+=1),t.isDark(i,r+1)&&(c+=1),t.isDark(i+1,r+1)&&(c+=1),0!=c&&4!=c||(n+=3)}for(i=0;i<e;i+=1)for(r=0;r<e-6;r+=1)t.isDark(i,r)&&!t.isDark(i,r+1)&&t.isDark(i,r+2)&&t.isDark(i,r+3)&&t.isDark(i,r+4)&&!t.isDark(i,r+5)&&t.isDark(i,r+6)&&(n+=40);for(r=0;r<e;r+=1)for(i=0;i<e-6;i+=1)t.isDark(i,r)&&!t.isDark(i+1,r)&&t.isDark(i+2,r)&&t.isDark(i+3,r)&&t.isDark(i+4,r)&&!t.isDark(i+5,r)&&t.isDark(i+6,r)&&(n+=40);var h=0;for(r=0;r<e;r+=1)for(i=0;i<e;i+=1)t.isDark(i,r)&&(h+=1);return n+Math.abs(100*h/e/e-50)/5*10},n);function a(t){for(var e=0;0!=t;)e+=1,t>>>=1;return e}var o=function(){for(var t=new Array(256),e=new Array(256),n=0;n<8;n+=1)t[n]=1<<n;for(n=8;n<256;n+=1)t[n]=t[n-4]^t[n-5]^t[n-6]^t[n-8];for(n=0;n<255;n+=1)e[t[n]]=n;return{glog:function(t){if(t<1)throw"glog("+t+")";return e[t]},gexp:function(e){for(;e<0;)e+=255;for(;256<=e;)e-=255;return t[e]}}}();function s(t,e){if(void 0===t.length)throw t.length+"/"+e;var n=function(){for(var n=0;n<t.length&&0==t[n];)n+=1;for(var i=new Array(t.length-n+e),r=0;r<t.length-n;r+=1)i[r]=t[r+n];return i}(),i={getAt:function(t){return n[t]},getLength:function(){return n.length},multiply:function(t){for(var e=new Array(i.getLength()+t.getLength()-1),n=0;n<i.getLength();n+=1)for(var r=0;r<t.getLength();r+=1)e[n+r]^=o.gexp(o.glog(i.getAt(n))+o.glog(t.getAt(r)));return s(e,0)},mod:function(t){if(i.getLength()-t.getLength()<0)return i;for(var e=o.glog(i.getAt(0))-o.glog(t.getAt(0)),n=new Array(i.getLength()),r=0;r<i.getLength();r+=1)n[r]=i.getAt(r);for(r=0;r<t.getLength();r+=1)n[r]^=o.gexp(o.glog(t.getAt(r))+e);return s(n,0).mod(t)}};return i}function l(){var t=[],e={writeByte:function(e){t.push(255&e)},writeShort:function(t){e.writeByte(t),e.writeByte(t>>>8)},writeBytes:function(t,n,i){n=n||0,i=i||t.length;for(var r=0;r<i;r+=1)e.writeByte(t[r+n])},writeString:function(t){for(var n=0;n<t.length;n+=1)e.writeByte(t.charCodeAt(n))},toByteArray:function(){return t},toString:function(){var e="";e+="[";for(var n=0;n<t.length;n+=1)0<n&&(e+=","),e+=t[n];return e+"]"}};return e}var c,h,d=(c=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],(h={}).getRSBlocks=function(t,e){var n=function(t,e){switch(e){case i.L:return c[4*(t-1)+0];case i.M:return c[4*(t-1)+1];case i.Q:return c[4*(t-1)+2];case i.H:return c[4*(t-1)+3];default:return}}(t,e);if(void 0===n)throw"bad rs block @ typeNumber:"+t+"/errorCorrectionLevel:"+e;for(var r,a,o=n.length/3,s=[],l=0;l<o;l+=1)for(var h=n[3*l+0],d=n[3*l+1],u=n[3*l+2],m=0;m<h;m+=1)s.push((r=u,a=void 0,(a={}).totalCount=d,a.dataCount=r,a));return s},h),u=function(){var t=[],e=0,n={getBuffer:function(){return t},getAt:function(e){var n=Math.floor(e/8);return 1==(t[n]>>>7-e%8&1)},put:function(t,e){for(var i=0;i<e;i+=1)n.putBit(1==(t>>>e-i-1&1))},getLengthInBits:function(){return e},putBit:function(n){var i=Math.floor(e/8);t.length<=i&&t.push(0),n&&(t[i]|=128>>>e%8),e+=1}};return n},m=function(t){var e=t,n={getMode:function(){return 1},getLength:function(t){return e.length},write:function(t){for(var n=e,r=0;r+2<n.length;)t.put(i(n.substring(r,r+3)),10),r+=3;r<n.length&&(n.length-r==1?t.put(i(n.substring(r,r+1)),4):n.length-r==2&&t.put(i(n.substring(r,r+2)),7))}},i=function(t){for(var e=0,n=0;n<t.length;n+=1)e=10*e+r(t.charAt(n));return e},r=function(t){if("0"<=t&&t<="9")return t.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+t};return n},p=function(t){var e=t,n={getMode:function(){return 2},getLength:function(t){return e.length},write:function(t){for(var n=e,r=0;r+1<n.length;)t.put(45*i(n.charAt(r))+i(n.charAt(r+1)),11),r+=2;r<n.length&&t.put(i(n.charAt(r)),6)}},i=function(t){if("0"<=t&&t<="9")return t.charCodeAt(0)-"0".charCodeAt(0);if("A"<=t&&t<="Z")return t.charCodeAt(0)-"A".charCodeAt(0)+10;switch(t){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+t}};return n},g=function(e){var n=t.stringToBytes(e);return{getMode:function(){return 4},getLength:function(t){return n.length},write:function(t){for(var e=0;e<n.length;e+=1)t.put(n[e],8)}}},f=function(e){var n=t.stringToBytesFuncs.SJIS;if(!n)throw"sjis not supported.";!function(){var t=n("友");if(2!=t.length||38726!=(t[0]<<8|t[1]))throw"sjis not supported."}();var i=n(e);return{getMode:function(){return 8},getLength:function(t){return~~(i.length/2)},write:function(t){for(var e=i,n=0;n+1<e.length;){var r=(255&e[n])<<8|255&e[n+1];if(33088<=r&&r<=40956)r-=33088;else{if(!(57408<=r&&r<=60351))throw"illegal char at "+(n+1)+"/"+r;r-=49472}r=192*(r>>>8&255)+(255&r),t.put(r,13),n+=2}if(n<e.length)throw"illegal char at "+(n+1)}}},b=function(t){var e=t,n=0,i=0,r=0,a={read:function(){for(;r<8;){if(n>=e.length){if(0==r)return-1;throw"unexpected end of file./"+r}var t=e.charAt(n);if(n+=1,"="==t)return r=0,-1;t.match(/^\s$/)||(i=i<<6|o(t.charCodeAt(0)),r+=6)}var a=i>>>r-8&255;return r-=8,a}},o=function(t){if(65<=t&&t<=90)return t-65;if(97<=t&&t<=122)return t-97+26;if(48<=t&&t<=57)return t-48+52;if(43==t)return 62;if(47==t)return 63;throw"c:"+t};return a},y=function(t,e,n){for(var i=function(t,e){var n=t,i=e,r=new Array(t*e),a={setPixel:function(t,e,i){r[e*n+t]=i},write:function(t){t.writeString("GIF87a"),t.writeShort(n),t.writeShort(i),t.writeByte(128),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(255),t.writeByte(255),t.writeByte(255),t.writeString(","),t.writeShort(0),t.writeShort(0),t.writeShort(n),t.writeShort(i),t.writeByte(0);var e=o(2);t.writeByte(2);for(var r=0;255<e.length-r;)t.writeByte(255),t.writeBytes(e,r,255),r+=255;t.writeByte(e.length-r),t.writeBytes(e,r,e.length-r),t.writeByte(0),t.writeString(";")}},o=function(t){for(var e=1<<t,n=1+(1<<t),i=t+1,a=s(),o=0;o<e;o+=1)a.add(String.fromCharCode(o));a.add(String.fromCharCode(e)),a.add(String.fromCharCode(n));var c,h,d,u=l(),m=(c=u,d=h=0,{write:function(t,e){if(t>>>e!=0)throw"length over";for(;8<=h+e;)c.writeByte(255&(t<<h|d)),e-=8-h,t>>>=8-h,h=d=0;d|=t<<h,h+=e},flush:function(){0<h&&c.writeByte(d)}});m.write(e,i);var p=0,g=String.fromCharCode(r[p]);for(p+=1;p<r.length;){var f=String.fromCharCode(r[p]);p+=1,a.contains(g+f)?g+=f:(m.write(a.indexOf(g),i),a.size()<4095&&(a.size()==1<<i&&(i+=1),a.add(g+f)),g=f)}return m.write(a.indexOf(g),i),m.write(n,i),m.flush(),u.toByteArray()},s=function(){var t={},e=0,n={add:function(i){if(n.contains(i))throw"dup key:"+i;t[i]=e,e+=1},size:function(){return e},indexOf:function(e){return t[e]},contains:function(e){return void 0!==t[e]}};return n};return a}(t,e),r=0;r<e;r+=1)for(var a=0;a<t;a+=1)i.setPixel(a,r,n(a,r));var o=l();i.write(o);for(var s=function(){function t(t){r+=String.fromCharCode(o(63&t))}var e=0,n=0,i=0,r="",a={},o=function(t){if(!(t<0)){if(t<26)return 65+t;if(t<52)return t-26+97;if(t<62)return t-52+48;if(62==t)return 43;if(63==t)return 47}throw"n:"+t};return a.writeByte=function(r){for(e=e<<8|255&r,n+=8,i+=1;6<=n;)t(e>>>n-6),n-=6},a.flush=function(){if(0<n&&(t(e<<6-n),n=e=0),i%3!=0)for(var a=3-i%3,o=0;o<a;o+=1)r+="="},a.toString=function(){return r},a}(),c=o.toByteArray(),h=0;h<c.length;h+=1)s.writeByte(c[h]);return s.flush(),"data:image/gif;base64,"+s};return t}();a.stringToBytesFuncs["UTF-8"]=function(t){return function(t){for(var e=[],n=0;n<t.length;n++){var i=t.charCodeAt(n);i<128?e.push(i):i<2048?e.push(192|i>>6,128|63&i):i<55296||57344<=i?e.push(224|i>>12,128|i>>6&63,128|63&i):(n++,i=65536+((1023&i)<<10|1023&t.charCodeAt(n)),e.push(240|i>>18,128|i>>12&63,128|i>>6&63,128|63&i))}return e}(t)},void 0===(r="function"==typeof(i=function(){return a})?i.apply(e,[]):i)||(t.exports=r)},function(t,e,n){function i(t,e,n,i,r,a){t.is_dark(r,a)&&e.rect(a*i,r*i,i,i)}function r(t,e,n){var r,a;r=e,(a=n).back&&(r.fillStyle=a.back,r.fillRect(0,0,a.size,a.size)),function(t,e,n){if(t){var r=0<n.rounded&&n.rounded<=100?o:i,a=t.module_count,s=n.size/a,l=0;n.crisp&&(s=Math.floor(s),l=Math.floor((n.size-s*a)/2)),e.translate(l,l),e.beginPath();for(var c=0;c<a;c+=1)for(var h=0;h<a;h+=1)r(t,e,n,s,c,h);e.fillStyle=n.fill,e.fill(),e.translate(-l,-l)}}(t,e,n),s(e,n)}var a=n(5),o=n(6),s=n(7);t.exports=function(t,e,n){var i=e.ratio||a.dpr,o=a.create_canvas(e.size,i),s=o.getContext("2d");return s.scale(i,i),r(t,s,e),n?a.canvas_to_img(o):o}},function(t,e){function n(t,e){return t.getAttribute(e)}function i(t,e){return Object.keys(e||{}).forEach((function(n){t.setAttribute(n,e[n])})),t}function r(t,e){return i(o.createElement(t),e)}var a=window,o=a.document,s=a.devicePixelRatio||1,l="http://www.w3.org/2000/svg";t.exports={dpr:s,SVG_NS:l,get_attr:n,create_el:r,create_svg_el:function(t,e){return i(o.createElementNS(l,t),e)},create_canvas:function(t,e){var n=r("canvas",{width:t*e,height:t*e});return n.style.width="".concat(t,"px"),n.style.height="".concat(t,"px"),n},canvas_to_img:function(t){var e=r("img",{crossOrigin:"anonymous",src:t.toDataURL("image/png"),width:n(t,"width"),height:n(t,"height")});return e.style.width=t.style.width,e.style.height=t.style.height,e}}},function(t,e){t.exports=function(t,e,n,i,r,a){var o,s,l,c,h,d,u,m,p,g,f,b,y,v,w,x,C,k,S,P,_=a*i,M=r*i,D=_+i,E=M+i,O=.005*n.rounded*i,A=t.is_dark,T=r-1,I=r+1,L=a-1,z=a+1,R=A(r,a),F=A(T,L),B=A(T,a),V=A(T,z),N=A(r,z),H=A(I,z),G=A(I,a),Z=A(I,L),U=A(r,L),W=(o=e,{m:function(t,e){return o.moveTo(t,e),this},l:function(t,e){return o.lineTo(t,e),this},a:function(){return o.arcTo.apply(o,arguments),this}});R?(f=W,b=_,y=M,v=D,w=E,x=O,k=!B&&!N,S=!G&&!N,P=!G&&!U,(C=!B&&!U)?f.m(b+x,y):f.m(b,y),k?f.l(v-x,y).a(v,y,v,w,x):f.l(v,y),S?f.l(v,w-x).a(v,w,b,w,x):f.l(v,w),P?f.l(b+x,w).a(b,w,b,y,x):f.l(b,w),C?f.l(b,y+x).a(b,y,v,y,x):f.l(b,y)):(s=W,l=_,c=M,h=D,d=E,u=O,m=B&&N&&V,p=G&&N&&H,g=G&&U&&Z,B&&U&&F&&s.m(l+u,c).l(l,c).l(l,c+u).a(l,c,l+u,c,u),m&&s.m(h-u,c).l(h,c).l(h,c+u).a(h,c,h-u,c,u),p&&s.m(h-u,d).l(h,d).l(h,d-u).a(h,d,h-u,d,u),g&&s.m(l+u,d).l(l,d).l(l,d-u).a(l,d,l+u,d,u))}},function(t,e){t.exports=function(t,e){var n,i,r,a,o,s,l,c,h,d,u,m=e.mode;"label"===m?function(t,e){var n=e.size,i="bold "+.01*e.mSize*n+"px "+e.fontname;t.strokeStyle=e.back,t.lineWidth=.01*e.mSize*n*.1,t.fillStyle=e.fontcolor,t.font=i;var r=t.measureText(e.label).width,a=.01*e.mSize,o=(1-r/n)*e.mPosX*.01*n,s=(1-a)*e.mPosY*.01*n+.75*e.mSize*.01*n;t.strokeText(e.label,o,s),t.fillText(e.label,o,s)}(t,e):"image"===m&&(n=t,r=(i=e).size,a=i.image.naturalWidth||1,o=i.image.naturalHeight||1,c=(1-(l=(s=.01*i.mSize)*a/o))*i.mPosX*.01*r,h=(1-s)*i.mPosY*.01*r,d=l*r,u=s*r,n.drawImage(i.image,c,h,d,u))}},function(t,e,n){var i=n(5),r=i.SVG_NS,a=i.get_attr,o=i.create_svg_el;t.exports=function(t,e){var i,s,l,c,h,d,u,m,p,g,f,b,y=e.size,v=e.mode,w=o("svg",{xmlns:r,width:y,height:y,viewBox:"0 0 ".concat(y," ").concat(y)});return w.style.width="".concat(y,"px"),w.style.height="".concat(y,"px"),e.back&&w.appendChild(o("rect",{x:0,y:0,width:y,height:y,fill:e.back})),w.appendChild(o("path",{d:function(t,e){if(!t)return"";var n={p:"",o:0},i=t.module_count,r=e.size/i;e.crisp&&(r=Math.floor(r),n.o=Math.floor((e.size-r*i)/2));for(var a,o,s,l,c,h,d,u,m,p,g,f,b,y,v,w,x,C,k,S,P,_,M,D,E,O,A,T,I,L,z,R,F,B,V,N,H,G,Z,U,W,Y,j,X=function(t){function e(t){return Math.round(10*t)/10}function n(e){return Math.round(10*e)/10+t.o}return{m:function(e,i){return t.p+="M ".concat(n(e)," ").concat(n(i)," "),this},l:function(e,i){return t.p+="L ".concat(n(e)," ").concat(n(i)," "),this},a:function(i,r,a){return t.p+="A ".concat(e(a)," ").concat(e(a)," 0 0 1 ").concat(n(i)," ").concat(n(r)," "),this}}}(n),q=0;q<i;q+=1)for(var $=0;$<i;$+=1)a=t,o=X,L=D=M=_=P=S=k=C=x=w=v=y=b=f=g=p=m=u=d=h=void 0,A=(E=(c=$)*(s=r))+s,T=(O=(l=q)*s)+s,I=.005*e.rounded*s,z=l-1,R=l+1,F=c-1,B=c+1,V=(L=a.is_dark)(l,c),N=L(z,F),H=L(z,c),G=L(z,B),Z=L(l,B),U=L(R,B),W=L(R,c),Y=L(R,F),j=L(l,F),V?(v=o,w=E,x=O,C=A,k=T,S=I,_=!H&&!Z,M=!W&&!Z,D=!W&&!j,(P=!H&&!j)?v.m(w+S,x):v.m(w,x),_?v.l(C-S,x).a(C,x+S,S):v.l(C,x),M?v.l(C,k-S).a(C-S,k,S):v.l(C,k),D?v.l(w+S,k).a(w,k-S,S):v.l(w,k),P?v.l(w,x+S).a(w+S,x,S):v.l(w,x)):(h=o,d=E,u=O,m=A,p=T,g=I,f=H&&Z&&G,b=W&&Z&&U,y=W&&j&&Y,H&&j&&N&&h.m(d+g,u).l(d,u).l(d,u+g).a(d+g,u,g),f&&h.m(m,u+g).l(m,u).l(m-g,u).a(m,u+g,g),b&&h.m(m-g,p).l(m,p).l(m,p-g).a(m-g,p,g),y&&h.m(d,p-g).l(d,p).l(d+g,p).a(d,p-g,g));return n.p}(t,e),fill:e.fill})),"label"===v?function(t,e){var i=e.size,r="bold "+.01*e.mSize*i+"px "+e.fontname,a=n(5),s=e.ratio||a.dpr,l=a.create_canvas(i,s).getContext("2d");l.strokeStyle=e.back,l.lineWidth=.01*e.mSize*i*.1,l.fillStyle=e.fontcolor,l.font=r;var c=l.measureText(e.label).width,h=.01*e.mSize,d=(1-c/i)*e.mPosX*.01*i,u=(1-h)*e.mPosY*.01*i+.75*e.mSize*.01*i,m=o("text",{x:d,y:u});Object.assign(m.style,{font:r,fill:e.fontcolor,"paint-order":"stroke",stroke:e.back,"stroke-width":l.lineWidth}),m.textContent=e.label,t.appendChild(m)}(w,e):"image"===v&&(i=w,l=(s=e).size,c=s.image.naturalWidth||1,h=s.image.naturalHeight||1,m=(1-(u=(d=.01*s.mSize)*c/h))*s.mPosX*.01*l,p=(1-d)*s.mPosY*.01*l,g=u*l,f=d*l,b=o("image",{href:a(s.image,"src"),x:m,y:p,width:g,height:f}),i.appendChild(b)),w}}],t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:i})},t.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(t.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)t.d(i,r,function(t){return e[t]}.bind(null,r));return i},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},t.p="",t(t.s=0);function t(i){if(n[i])return n[i].exports;var r=n[i]={i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var e,n}(),window.tns=function(){var t=window,e=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||function(t){return setTimeout(t,16)},n=window,i=n.cancelAnimationFrame||n.mozCancelAnimationFrame||function(t){clearTimeout(t)};function r(){for(var t,e,n,i=arguments[0]||{},r=1,a=arguments.length;r<a;r++)if(null!==(t=arguments[r]))for(e in t)i!==(n=t[e])&&void 0!==n&&(i[e]=n);return i}function a(t){return 0<=["true","false"].indexOf(t)?JSON.parse(t):t}function o(t,e,n,i){if(i)try{t.setItem(e,n)}catch(t){}return n}function s(){var t=document,e=t.body;return e||((e=t.createElement("body")).fake=!0),e}var l=document.documentElement;function c(t){var e="";return t.fake&&(e=l.style.overflow,t.style.background="",t.style.overflow=l.style.overflow="hidden",l.appendChild(t)),e}function h(t,e){t.fake&&(t.remove(),l.style.overflow=e,l.offsetHeight)}function d(t,e,n,i){"insertRule"in t?t.insertRule(e+"{"+n+"}",i):t.addRule(e,n,i)}function u(t){return("insertRule"in t?t.cssRules:t.rules).length}function m(t,e,n){for(var i=0,r=t.length;i<r;i++)e.call(n,t[i],i)}var p="classList"in document.createElement("_"),f=p?function(t,e){return t.classList.contains(e)}:function(t,e){return 0<=t.className.indexOf(e)},b=p?function(t,e){f(t,e)||t.classList.add(e)}:function(t,e){f(t,e)||(t.className+=" "+e)},y=p?function(t,e){f(t,e)&&t.classList.remove(e)}:function(t,e){f(t,e)&&(t.className=t.className.replace(e,""))};function v(t,e){return t.hasAttribute(e)}function w(t,e){return t.getAttribute(e)}function x(t){return void 0!==t.item}function C(t,e){if(t=x(t)||t instanceof Array?t:[t],"[object Object]"===Object.prototype.toString.call(e))for(var n=t.length;n--;)for(var i in e)t[n].setAttribute(i,e[i])}function k(t,e){t=x(t)||t instanceof Array?t:[t];for(var n=(e=e instanceof Array?e:[e]).length,i=t.length;i--;)for(var r=n;r--;)t[i].removeAttribute(e[r])}function S(t){for(var e=[],n=0,i=t.length;n<i;n++)e.push(t[n]);return e}function P(t,e){"none"!==t.style.display&&(t.style.display="none")}function _(t,e){"none"===t.style.display&&(t.style.display="")}function M(t){return"none"!==window.getComputedStyle(t).display}function D(t){if("string"==typeof t){var e=[t],n=t.charAt(0).toUpperCase()+t.substr(1);["Webkit","Moz","ms","O"].forEach((function(i){"ms"===i&&"transform"!==t||e.push(i+n)})),t=e}for(var i=document.createElement("fakeelement"),r=(t.length,0);r<t.length;r++){var a=t[r];if(void 0!==i.style[a])return a}return!1}function E(t,e){var n=!1;return/^Webkit/.test(t)?n="webkit"+e+"End":/^O/.test(t)?n="o"+e+"End":t&&(n=e.toLowerCase()+"end"),n}var O=!1;try{var A=Object.defineProperty({},"passive",{get:function(){O=!0}});window.addEventListener("test",null,A)}catch(t){}var T=!!O&&{passive:!0};function I(t,e,n){for(var i in e){var r=0<=["touchstart","touchmove"].indexOf(i)&&!n&&T;t.addEventListener(i,e[i],r)}}function L(t,e){for(var n in e){var i=0<=["touchstart","touchmove"].indexOf(n)&&T;t.removeEventListener(n,e[n],i)}}function z(){return{topics:{},on:function(t,e){this.topics[t]=this.topics[t]||[],this.topics[t].push(e)},off:function(t,e){if(this.topics[t])for(var n=0;n<this.topics[t].length;n++)if(this.topics[t][n]===e){this.topics[t].splice(n,1);break}},emit:function(t,e){e.type=t,this.topics[t]&&this.topics[t].forEach((function(n){n(e,t)}))}}}Object.keys||(Object.keys=function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(n);return e}),"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)});var R=function(t){t=r({container:".slider",mode:"carousel",axis:"horizontal",items:1,gutter:0,edgePadding:0,fixedWidth:!1,autoWidth:!1,viewportMax:!1,slideBy:1,center:!1,controls:!0,controlsPosition:"top",controlsText:["prev","next"],controlsContainer:!1,prevButton:!1,nextButton:!1,nav:!0,navPosition:"top",navContainer:!1,navAsThumbnails:!1,arrowKeys:!1,speed:300,autoplay:!1,autoplayPosition:"top",autoplayTimeout:5e3,autoplayDirection:"forward",autoplayText:["start","stop"],autoplayHoverPause:!1,autoplayButton:!1,autoplayButtonOutput:!0,autoplayResetOnVisibility:!0,animateIn:"tns-fadeIn",animateOut:"tns-fadeOut",animateNormal:"tns-normal",animateDelay:!1,loop:!0,rewind:!1,autoHeight:!1,responsive:!1,lazyload:!1,lazyloadSelector:".tns-lazy-img",touch:!0,mouseDrag:!1,swipeAngle:15,nested:!1,preventActionWhenRunning:!1,preventScrollOnTouch:!1,freezable:!0,onInit:!1,useLocalStorage:!0,nonce:!1},t||{});var n=document,l=window,p={ENTER:13,SPACE:32,LEFT:37,RIGHT:39},x={},O=t.useLocalStorage;if(O){var A=navigator.userAgent,T=new Date;try{(x=l.localStorage)?(x.setItem(T,T),O=x.getItem(T)==T,x.removeItem(T)):O=!1,O||(x={})}catch(t){O=!1}O&&(x.tnsApp&&x.tnsApp!==A&&["tC","tPL","tMQ","tTf","t3D","tTDu","tTDe","tADu","tADe","tTE","tAE"].forEach((function(t){x.removeItem(t)})),localStorage.tnsApp=A)}var F=x.tC?a(x.tC):o(x,"tC",function(){var t=document,e=s(),n=c(e),i=t.createElement("div"),r=!1;e.appendChild(i);try{for(var a,o="(10px * 10)",l=["calc"+o,"-moz-calc"+o,"-webkit-calc"+o],d=0;d<3;d++)if(a=l[d],i.style.width=a,100===i.offsetWidth){r=a.replace(o,"");break}}catch(t){}return e.fake?h(e,n):i.remove(),r}(),O),B=x.tPL?a(x.tPL):o(x,"tPL",function(){var t,e=document,n=s(),i=c(n),r=e.createElement("div"),a=e.createElement("div"),o="";r.className="tns-t-subp2",a.className="tns-t-ct";for(var l=0;l<70;l++)o+="<div></div>";return a.innerHTML=o,r.appendChild(a),n.appendChild(r),t=Math.abs(r.getBoundingClientRect().left-a.children[67].getBoundingClientRect().left)<2,n.fake?h(n,i):r.remove(),t}(),O),V=x.tMQ?a(x.tMQ):o(x,"tMQ",function(){if(window.matchMedia||window.msMatchMedia)return!0;var t,e=document,n=s(),i=c(n),r=e.createElement("div"),a=e.createElement("style"),o="@media all and (min-width:1px){.tns-mq-test{position:absolute}}";return a.type="text/css",r.className="tns-mq-test",n.appendChild(a),n.appendChild(r),a.styleSheet?a.styleSheet.cssText=o:a.appendChild(e.createTextNode(o)),t=window.getComputedStyle?window.getComputedStyle(r).position:r.currentStyle.position,n.fake?h(n,i):r.remove(),"absolute"===t}(),O),N=x.tTf?a(x.tTf):o(x,"tTf",D("transform"),O),H=x.t3D?a(x.t3D):o(x,"t3D",function(t){if(!t)return!1;if(!window.getComputedStyle)return!1;var e,n=document,i=s(),r=c(i),a=n.createElement("p"),o=9<t.length?"-"+t.slice(0,-9).toLowerCase()+"-":"";return o+="transform",i.insertBefore(a,null),a.style[t]="translate3d(1px,1px,1px)",e=window.getComputedStyle(a).getPropertyValue(o),i.fake?h(i,r):a.remove(),void 0!==e&&0<e.length&&"none"!==e}(N),O),G=x.tTDu?a(x.tTDu):o(x,"tTDu",D("transitionDuration"),O),Z=x.tTDe?a(x.tTDe):o(x,"tTDe",D("transitionDelay"),O),U=x.tADu?a(x.tADu):o(x,"tADu",D("animationDuration"),O),W=x.tADe?a(x.tADe):o(x,"tADe",D("animationDelay"),O),Y=x.tTE?a(x.tTE):o(x,"tTE",E(G,"Transition"),O),j=x.tAE?a(x.tAE):o(x,"tAE",E(U,"Animation"),O),X=l.console&&"function"==typeof l.console.warn,q=["container","controlsContainer","prevButton","nextButton","navContainer","autoplayButton"],$={};if(q.forEach((function(e){if("string"==typeof t[e]){var i=t[e],r=n.querySelector(i);if($[e]=i,!r||!r.nodeName)return void(X&&g.warn("Can't find",t[e]));t[e]=r}})),!(t.container.children.length<1)){var K=t.responsive,J=t.nested,Q="carousel"===t.mode;if(K){0 in K&&(t=r(t,K[0]),delete K[0]);var tt={};for(var et in K){var nt=K[et];nt="number"==typeof nt?{items:nt}:nt,tt[et]=nt}K=tt,tt=null}if(Q||function t(e){for(var n in e)Q||("slideBy"===n&&(e[n]="page"),"edgePadding"===n&&(e[n]=!1),"autoHeight"===n&&(e[n]=!1)),"responsive"===n&&t(e[n])}(t),!Q){t.axis="horizontal",t.slideBy="page",t.edgePadding=!1;var it=t.animateIn,rt=t.animateOut,at=t.animateDelay,ot=t.animateNormal}var st,lt,ct="horizontal"===t.axis,ht=n.createElement("div"),dt=n.createElement("div"),ut=t.container,mt=ut.parentNode,pt=ut.outerHTML,gt=ut.children,ft=gt.length,bt=In(),yt=!1;K&&Qn(),Q&&(ut.className+=" tns-vpfix");var vt,wt,xt,Ct,kt,St,Pt,_t,Mt=t.autoWidth,Dt=Fn("fixedWidth"),Et=Fn("edgePadding"),Ot=Fn("gutter"),At=zn(),Tt=Fn("center"),It=Mt?1:Math.floor(Fn("items")),Lt=Fn("slideBy"),zt=t.viewportMax||t.fixedWidthViewportWidth,Rt=Fn("arrowKeys"),Ft=Fn("speed"),Bt=t.rewind,Vt=!Bt&&t.loop,Nt=Fn("autoHeight"),Ht=Fn("controls"),Gt=Fn("controlsText"),Zt=Fn("nav"),Ut=Fn("touch"),Wt=Fn("mouseDrag"),Yt=Fn("autoplay"),jt=Fn("autoplayTimeout"),Xt=Fn("autoplayText"),qt=Fn("autoplayHoverPause"),$t=Fn("autoplayResetOnVisibility"),Kt=(Pt=Fn("nonce"),_t=document.createElement("style"),Pt&&_t.setAttribute("nonce",Pt),document.querySelector("head").appendChild(_t),_t.sheet?_t.sheet:_t.styleSheet),Jt=t.lazyload,Qt=t.lazyloadSelector,te=[],ee=Vt?(kt=function(){if(Mt||Dt&&!zt)return ft-1;var e=Dt?"fixedWidth":"items",n=[];if((Dt||t[e]<ft)&&n.push(t[e]),K)for(var i in K){var r=K[i][e];r&&(Dt||r<ft)&&n.push(r)}return n.length||n.push(0),Math.ceil(Dt?zt/Math.min.apply(null,n):Math.max.apply(null,n))}(),St=Q?Math.ceil((5*kt-ft)/2):4*kt-ft,St=Math.max(kt,St),Rn("edgePadding")?St+1:St):0,ne=Q?ft+2*ee:ft+ee,ie=!(!Dt&&!Mt||Vt),re=Dt?Pi():null,ae=!Q||!Vt,oe=ct?"left":"top",se="",le="",ce=Dt?function(){return Tt&&!Vt?ft-1:Math.ceil(-re/(Dt+Ot))}:Mt?function(){for(var t=0;t<ne;t++)if(vt[t]>=-re)return t}:function(){return Tt&&Q&&!Vt?ft-1:Vt||Q?Math.max(0,ne-Math.ceil(It)):ne-1},he=On(Fn("startIndex")),de=he,ue=(En(),0),me=Mt?null:ce(),pe=t.preventActionWhenRunning,ge=t.swipeAngle,fe=!ge||"?",be=!1,ye=t.onInit,ve=new z,we=" tns-slider tns-"+t.mode,xe=ut.id||(Ct=window.tnsId,window.tnsId=Ct?Ct+1:1,"tns"+window.tnsId),Ce=Fn("disable"),ke=!1,Se=t.freezable,Pe=!(!Se||Mt)&&Jn(),_e=!1,Me={click:Li,keydown:function(t){t=Gi(t);var e=[p.LEFT,p.RIGHT].indexOf(t.keyCode);0<=e&&(0===e?qe.disabled||Li(t,-1):$e.disabled||Li(t,1))}},De={click:function(t){if(be){if(pe)return;Ti()}for(var e=Zi(t=Gi(t));e!==tn&&!v(e,"data-nav");)e=e.parentNode;if(v(e,"data-nav")){var n=an=Number(w(e,"data-nav")),i=Dt||Mt?n*ft/nn:n*It;Ii(Re?n:Math.min(Math.ceil(i),ft-1),t),on===n&&(un&&Vi(),an=-1)}},keydown:function(t){t=Gi(t);var e=n.activeElement;if(v(e,"data-nav")){var i=[p.LEFT,p.RIGHT,p.ENTER,p.SPACE].indexOf(t.keyCode),r=Number(w(e,"data-nav"));0<=i&&(0===i?0<r&&Hi(Qe[r-1]):1===i?r<nn-1&&Hi(Qe[r+1]):Ii(an=r,t))}}},Ee={mouseover:function(){un&&(Ri(),mn=!0)},mouseout:function(){mn&&(zi(),mn=!1)}},Oe={visibilitychange:function(){n.hidden?un&&(Ri(),gn=!0):gn&&(zi(),gn=!1)}},Ae={keydown:function(t){t=Gi(t);var e=[p.LEFT,p.RIGHT].indexOf(t.keyCode);0<=e&&Li(t,0===e?-1:1)}},Te={touchstart:ji,touchmove:Xi,touchend:qi,touchcancel:qi},Ie={mousedown:ji,mousemove:Xi,mouseup:qi,mouseleave:qi},Le=Rn("controls"),ze=Rn("nav"),Re=!!Mt||t.navAsThumbnails,Fe=Rn("autoplay"),Be=Rn("touch"),Ve=Rn("mouseDrag"),Ne="tns-slide-active",He="tns-slide-cloned",Ge="tns-complete",Ze={load:function(t){li(Zi(t))},error:function(t){var e;e=Zi(t),b(e,"failed"),ci(e)}},Ue="force"===t.preventScrollOnTouch;if(Le)var We,Ye,je=t.controlsContainer,Xe=t.controlsContainer?t.controlsContainer.outerHTML:"",qe=t.prevButton,$e=t.nextButton,Ke=t.prevButton?t.prevButton.outerHTML:"",Je=t.nextButton?t.nextButton.outerHTML:"";if(ze)var Qe,tn=t.navContainer,en=t.navContainer?t.navContainer.outerHTML:"",nn=Mt?ft:Ki(),rn=0,an=-1,on=Tn(),sn=on,ln="tns-nav-active",cn="Carousel Page ",hn=" (Current Slide)";if(Fe)var dn,un,mn,pn,gn,fn="forward"===t.autoplayDirection?1:-1,bn=t.autoplayButton,yn=t.autoplayButton?t.autoplayButton.outerHTML:"",vn=["<span class='tns-visually-hidden'>"," animation</span>"];if(Be||Ve)var wn,xn,Cn={},kn={},Sn=!1,Pn=ct?function(t,e){return t.x-e.x}:function(t,e){return t.y-e.y};Mt||Dn(Ce||Pe),N&&(oe=N,se="translate",H?(se+=ct?"3d(":"3d(0px, ",le=ct?", 0px, 0px)":", 0px)"):(se+=ct?"X(":"Y(",le=")")),Q&&(ut.className=ut.className.replace("tns-vpfix","")),function(){if(Rn("gutter"),ht.className="tns-outer",dt.className="tns-inner",ht.id=xe+"-ow",dt.id=xe+"-iw",""===ut.id&&(ut.id=xe),we+=B||Mt?" tns-subpixel":" tns-no-subpixel",we+=F?" tns-calc":" tns-no-calc",Mt&&(we+=" tns-autowidth"),we+=" tns-"+t.axis,ut.className+=we,Q?((st=n.createElement("div")).id=xe+"-mw",st.className="tns-ovh",ht.appendChild(st),st.appendChild(dt)):ht.appendChild(dt),Nt&&((st||dt).className+=" tns-ah"),mt.insertBefore(ht,ut),dt.appendChild(ut),m(gt,(function(t,e){b(t,"tns-item"),t.id||(t.id=xe+"-item"+e),!Q&&ot&&b(t,ot),C(t,{"aria-hidden":"true",tabindex:"-1"})})),ee){for(var e=n.createDocumentFragment(),i=n.createDocumentFragment(),r=ee;r--;){var a=r%ft,o=gt[a].cloneNode(!0);if(b(o,He),k(o,"id"),i.insertBefore(o,i.firstChild),Q){var s=gt[ft-1-a].cloneNode(!0);b(s,He),k(s,"id"),e.appendChild(s)}}ut.insertBefore(e,ut.firstChild),ut.appendChild(i),gt=ut.children}}(),function(){if(!Q)for(var e=he,n=he+Math.min(ft,It);e<n;e++){var i=gt[e];i.style.left=100*(e-he)/It+"%",b(i,it),y(i,ot)}if(ct&&(B||Mt?(d(Kt,"#"+xe+" > .tns-item","font-size:"+l.getComputedStyle(gt[0]).fontSize+";",u(Kt)),d(Kt,"#"+xe,"font-size:0;",u(Kt))):Q&&m(gt,(function(t,e){var n;t.style.marginLeft=(n=e,F?F+"("+100*n+"% / "+ne+")":100*n/ne+"%")}))),V){if(G){var r=st&&t.autoHeight?Zn(t.speed):"";d(Kt,"#"+xe+"-mw",r,u(Kt))}r=Bn(t.edgePadding,t.gutter,t.fixedWidth,t.speed,t.autoHeight),d(Kt,"#"+xe+"-iw",r,u(Kt)),Q&&(r=ct&&!Mt?"width:"+Vn(t.fixedWidth,t.gutter,t.items)+";":"",G&&(r+=Zn(Ft)),d(Kt,"#"+xe,r,u(Kt))),r=ct&&!Mt?Nn(t.fixedWidth,t.gutter,t.items):"",t.gutter&&(r+=Hn(t.gutter)),Q||(G&&(r+=Zn(Ft)),U&&(r+=Un(Ft))),r&&d(Kt,"#"+xe+" > .tns-item",r,u(Kt))}else Q&&Nt&&(st.style[G]=Ft/1e3+"s"),dt.style.cssText=Bn(Et,Ot,Dt,Nt),Q&&ct&&!Mt&&(ut.style.width=Vn(Dt,Ot,It)),r=ct&&!Mt?Nn(Dt,Ot,It):"",Ot&&(r+=Hn(Ot)),r&&d(Kt,"#"+xe+" > .tns-item",r,u(Kt));if(K&&V)for(var a in K){a=parseInt(a);var o=K[a],s=(r="",""),c="",h="",p="",g=Mt?null:Fn("items",a),f=Fn("fixedWidth",a),v=Fn("speed",a),w=Fn("edgePadding",a),x=Fn("autoHeight",a),C=Fn("gutter",a);G&&st&&Fn("autoHeight",a)&&"speed"in o&&(s="#"+xe+"-mw{"+Zn(v)+"}"),("edgePadding"in o||"gutter"in o)&&(c="#"+xe+"-iw{"+Bn(w,C,f,v,x)+"}"),Q&&ct&&!Mt&&("fixedWidth"in o||"items"in o||Dt&&"gutter"in o)&&(h="width:"+Vn(f,C,g)+";"),G&&"speed"in o&&(h+=Zn(v)),h&&(h="#"+xe+"{"+h+"}"),("fixedWidth"in o||Dt&&"gutter"in o||!Q&&"items"in o)&&(p+=Nn(f,C,g)),"gutter"in o&&(p+=Hn(C)),!Q&&"speed"in o&&(G&&(p+=Zn(v)),U&&(p+=Un(v))),p&&(p="#"+xe+" > .tns-item{"+p+"}"),(r=s+c+h+p)&&Kt.insertRule("@media (min-width: "+a/16+"em) {"+r+"}",Kt.cssRules.length)}}(),Wn();var _n=Vt?Q?function(){var t=ue,e=me;t+=Lt,e-=Lt,Et?(t+=1,e-=1):Dt&&(At+Ot)%(Dt+Ot)&&(e-=1),ee&&(e<he?he-=ft:he<t&&(he+=ft))}:function(){if(me<he)for(;ue+ft<=he;)he-=ft;else if(he<ue)for(;he<=me-ft;)he+=ft}:function(){he=Math.max(ue,Math.min(me,he))},Mn=Q?function(){var t,e,n,i,r,a,o,s,l,c,h;ki(ut,""),G||!Ft?(Di(),Ft&&M(ut)||Ti()):(t=ut,e=oe,n=se,i=le,r=_i(),a=Ft,o=Ti,s=Math.min(a,10),l=0<=r.indexOf("%")?"%":"px",r=r.replace(l,""),c=Number(t.style[e].replace(n,"").replace(i,"").replace(l,"")),h=(r-c)/a*s,setTimeout((function r(){a-=s,c+=h,t.style[e]=n+c+l+i,0<a?setTimeout(r,s):o()}),s)),ct||$i()}:function(){te=[];var t={};t[Y]=t[j]=Ti,L(gt[de],t),I(gt[he],t),Ei(de,it,rt,!0),Ei(he,ot,it),Y&&j&&Ft&&M(ut)||Ti()};return{version:"2.9.4",getInfo:Qi,events:ve,goTo:Ii,play:function(){Yt&&!un&&(Bi(),pn=!1)},pause:function(){un&&(Vi(),pn=!0)},isOn:yt,updateSliderHeight:gi,refresh:Wn,destroy:function(){if(Kt.disabled=!0,Kt.ownerNode&&Kt.ownerNode.remove(),L(l,{resize:$n}),Rt&&L(n,Ae),je&&L(je,Me),tn&&L(tn,De),L(ut,Ee),L(ut,Oe),bn&&L(bn,{click:Ni}),Yt&&clearInterval(dn),Q&&Y){var e={};e[Y]=Ti,L(ut,e)}Ut&&L(ut,Te),Wt&&L(ut,Ie);var i=[pt,Xe,Ke,Je,en,yn];for(var r in q.forEach((function(e,n){var r="container"===e?ht:t[e];if("object"==typeof r&&r){var a=!!r.previousElementSibling&&r.previousElementSibling,o=r.parentNode;r.outerHTML=i[n],t[e]=a?a.nextElementSibling:o.firstElementChild}})),q=it=rt=at=ot=ct=ht=dt=ut=mt=pt=gt=ft=lt=bt=Mt=Dt=Et=Ot=At=It=Lt=zt=Rt=Ft=Bt=Vt=Nt=Kt=Jt=vt=te=ee=ne=ie=re=ae=oe=se=le=ce=he=de=ue=me=ge=fe=be=ye=ve=we=xe=Ce=ke=Se=Pe=_e=Me=De=Ee=Oe=Ae=Te=Ie=Le=ze=Re=Fe=Be=Ve=Ne=Ge=Ze=wt=Ht=Gt=je=Xe=qe=$e=We=Ye=Zt=tn=en=Qe=nn=rn=an=on=sn=ln=cn=hn=Yt=jt=fn=Xt=qt=bn=yn=$t=vn=dn=un=mn=pn=gn=Cn=kn=wn=Sn=xn=Pn=Ut=Wt=null,this)"rebuild"!==r&&(this[r]=null);yt=!1},rebuild:function(){return R(r(t,$))}}}function Dn(t){t&&(Ht=Zt=Ut=Wt=Rt=Yt=qt=$t=!1)}function En(){for(var t=Q?he-ee:he;t<0;)t+=ft;return t%ft+1}function On(t){return t=t?Math.max(0,Math.min(Vt?ft-1:ft-It,t)):0,Q?t+ee:t}function An(t){for(null==t&&(t=he),Q&&(t-=ee);t<0;)t+=ft;return Math.floor(t%ft)}function Tn(){var t,e=An();return t=Re?e:Dt||Mt?Math.ceil((e+1)*nn/ft-1):Math.floor(e/It),!Vt&&Q&&he===me&&(t=nn-1),t}function In(){return l.innerWidth||n.documentElement.clientWidth||n.body.clientWidth}function Ln(t){return"top"===t?"afterbegin":"beforeend"}function zn(){var t=Et?2*Et-Ot:0;return function t(e){if(null!=e){var i,r,a=n.createElement("div");return e.appendChild(a),r=(i=a.getBoundingClientRect()).right-i.left,a.remove(),r||t(e.parentNode)}}(mt)-t}function Rn(e){if(t[e])return!0;if(K)for(var n in K)if(K[n][e])return!0;return!1}function Fn(e,n){if(null==n&&(n=bt),"items"===e&&Dt)return Math.floor((At+Ot)/(Dt+Ot))||1;var i=t[e];if(K)for(var r in K)n>=parseInt(r)&&e in K[r]&&(i=K[r][e]);return"slideBy"===e&&"page"===i&&(i=Fn("items")),Q||"slideBy"!==e&&"items"!==e||(i=Math.floor(i)),i}function Bn(t,e,n,i,r){var a="";if(void 0!==t){var o=t;e&&(o-=e),a=ct?"margin: 0 "+o+"px 0 "+t+"px;":"margin: "+t+"px 0 "+o+"px 0;"}else if(e&&!n){var s="-"+e+"px";a="margin: 0 "+(ct?s+" 0 0":"0 "+s+" 0")+";"}return!Q&&r&&G&&i&&(a+=Zn(i)),a}function Vn(t,e,n){return t?(t+e)*ne+"px":F?F+"("+100*ne+"% / "+n+")":100*ne/n+"%"}function Nn(t,e,n){var i;if(t)i=t+e+"px";else{Q||(n=Math.floor(n));var r=Q?ne:n;i=F?F+"(100% / "+r+")":100/r+"%"}return i="width:"+i,"inner"!==J?i+";":i+" !important;"}function Hn(t){var e="";return!1!==t&&(e=(ct?"padding-":"margin-")+(ct?"right":"bottom")+": "+t+"px;"),e}function Gn(t,e){var n=t.substring(0,t.length-e).toLowerCase();return n&&(n="-"+n+"-"),n}function Zn(t){return Gn(G,18)+"transition-duration:"+t/1e3+"s;"}function Un(t){return Gn(U,17)+"animation-duration:"+t/1e3+"s;"}function Wn(){if(Rn("autoHeight")||Mt||!ct){var t=ut.querySelectorAll("img");m(t,(function(t){var e=t.src;Jt||(e&&e.indexOf("data:image")<0?(t.src="",I(t,Ze),b(t,"loading"),t.src=e):li(t))})),e((function(){ui(S(t),(function(){wt=!0}))})),Rn("autoHeight")&&(t=hi(he,Math.min(he+It-1,ne-1))),Jt?Yn():e((function(){ui(S(t),Yn)}))}else Q&&Mi(),Xn(),qn()}function Yn(){if(Mt&&1<ft){var t=Vt?he:ft-1;!function e(){var n=gt[t].getBoundingClientRect().left,i=gt[t-1].getBoundingClientRect().right;Math.abs(n-i)<=1?jn():setTimeout((function(){e()}),16)}()}else jn()}function jn(){ct&&!Mt||(fi(),Mt?(re=Pi(),Se&&(Pe=Jn()),me=ce(),Dn(Ce||Pe)):$i()),Q&&Mi(),Xn(),qn()}function Xn(){if(bi(),ht.insertAdjacentHTML("afterbegin",'<div class="tns-liveregion tns-visually-hidden" aria-live="polite" aria-atomic="true">slide <span class="current">'+ai()+"</span> of "+ft+"</div>"),xt=ht.querySelector(".tns-liveregion .current"),Fe){var e=Yt?"stop":"start";bn?C(bn,{"data-action":e}):t.autoplayButtonOutput&&(ht.insertAdjacentHTML(Ln(t.autoplayPosition),'<button type="button" data-action="'+e+'">'+vn[0]+e+vn[1]+Xt[0]+"</button>"),bn=ht.querySelector("[data-action]")),bn&&I(bn,{click:Ni}),Yt&&(Bi(),qt&&I(ut,Ee),$t&&I(ut,Oe))}if(ze){if(tn)C(tn,{"aria-label":"Carousel Pagination"}),m(Qe=tn.children,(function(t,e){C(t,{"data-nav":e,tabindex:"-1","aria-label":cn+(e+1),"aria-controls":xe})}));else{for(var n="",i=Re?"":'style="display:none"',r=0;r<ft;r++)n+='<button type="button" data-nav="'+r+'" tabindex="-1" aria-controls="'+xe+'" '+i+' aria-label="'+cn+(r+1)+'"></button>';n='<div class="tns-nav" aria-label="Carousel Pagination">'+n+"</div>",ht.insertAdjacentHTML(Ln(t.navPosition),n),tn=ht.querySelector(".tns-nav"),Qe=tn.children}if(Ji(),G){var a=G.substring(0,G.length-18).toLowerCase(),o="transition: all "+Ft/1e3+"s";a&&(o="-"+a+"-"+o),d(Kt,"[aria-controls^="+xe+"-item]",o,u(Kt))}C(Qe[on],{"aria-label":cn+(on+1)+hn}),k(Qe[on],"tabindex"),b(Qe[on],ln),I(tn,De)}Le&&(je||qe&&$e||(ht.insertAdjacentHTML(Ln(t.controlsPosition),'<div class="tns-controls" aria-label="Carousel Navigation" tabindex="0"><button type="button" data-controls="prev" tabindex="-1" aria-controls="'+xe+'">'+Gt[0]+'</button><button type="button" data-controls="next" tabindex="-1" aria-controls="'+xe+'">'+Gt[1]+"</button></div>"),je=ht.querySelector(".tns-controls")),qe&&$e||(qe=je.children[0],$e=je.children[1]),t.controlsContainer&&C(je,{"aria-label":"Carousel Navigation",tabindex:"0"}),(t.controlsContainer||t.prevButton&&t.nextButton)&&C([qe,$e],{"aria-controls":xe,tabindex:"-1"}),(t.controlsContainer||t.prevButton&&t.nextButton)&&(C(qe,{"data-controls":"prev"}),C($e,{"data-controls":"next"})),We=vi(qe),Ye=vi($e),Ci(),je?I(je,Me):(I(qe,Me),I($e,Me))),ti()}function qn(){if(Q&&Y){var e={};e[Y]=Ti,I(ut,e)}Ut&&I(ut,Te,t.preventScrollOnTouch),Wt&&I(ut,Ie),Rt&&I(n,Ae),"inner"===J?ve.on("outerResized",(function(){Kn(),ve.emit("innerLoaded",Qi())})):(K||Dt||Mt||Nt||!ct)&&I(l,{resize:$n}),Nt&&("outer"===J?ve.on("innerLoaded",di):Ce||di()),si(),Ce?ii():Pe&&ni(),ve.on("indexChanged",mi),"inner"===J&&ve.emit("innerLoaded",Qi()),"function"==typeof ye&&ye(Qi()),yt=!0}function $n(t){e((function(){Kn(Gi(t))}))}function Kn(e){if(yt){"outer"===J&&ve.emit("outerResized",Qi(e)),bt=In();var i,r=lt,a=!1;K&&(Qn(),(i=r!==lt)&&ve.emit("newBreakpointStart",Qi(e)));var o,s,l,c,h=It,p=Ce,g=Pe,f=Rt,v=Ht,w=Zt,x=Ut,C=Wt,k=Yt,S=qt,M=$t,D=he;if(i){var E=Dt,O=Nt,A=Gt,T=Tt,z=Xt;if(!V)var R=Ot,F=Et}if(Rt=Fn("arrowKeys"),Ht=Fn("controls"),Zt=Fn("nav"),Ut=Fn("touch"),Tt=Fn("center"),Wt=Fn("mouseDrag"),Yt=Fn("autoplay"),qt=Fn("autoplayHoverPause"),$t=Fn("autoplayResetOnVisibility"),i&&(Ce=Fn("disable"),Dt=Fn("fixedWidth"),Ft=Fn("speed"),Nt=Fn("autoHeight"),Gt=Fn("controlsText"),Xt=Fn("autoplayText"),jt=Fn("autoplayTimeout"),V||(Et=Fn("edgePadding"),Ot=Fn("gutter"))),Dn(Ce),At=zn(),ct&&!Mt||Ce||(fi(),ct||($i(),a=!0)),(Dt||Mt)&&(re=Pi(),me=ce()),(i||Dt)&&(It=Fn("items"),Lt=Fn("slideBy"),(s=It!==h)&&(Dt||Mt||(me=ce()),_n())),i&&Ce!==p&&(Ce?ii():function(){if(ke){if(Kt.disabled=!1,ut.className+=we,Mi(),Vt)for(var t=ee;t--;)Q&&_(gt[t]),_(gt[ne-t-1]);if(!Q)for(var e=he,n=he+ft;e<n;e++){var i=gt[e],r=e<he+It?it:ot;i.style.left=100*(e-he)/It+"%",b(i,r)}ei(),ke=!1}}()),Se&&(i||Dt||Mt)&&(Pe=Jn())!==g&&(Pe?(Di(_i(On(0))),ni()):(function(){if(_e){if(Et&&V&&(dt.style.margin=""),ee)for(var t="tns-transparent",e=ee;e--;)Q&&y(gt[e],t),y(gt[ne-e-1],t);ei(),_e=!1}}(),a=!0)),Dn(Ce||Pe),Yt||(qt=$t=!1),Rt!==f&&(Rt?I(n,Ae):L(n,Ae)),Ht!==v&&(Ht?je?_(je):(qe&&_(qe),$e&&_($e)):je?P(je):(qe&&P(qe),$e&&P($e))),Zt!==w&&(Zt?(_(tn),Ji()):P(tn)),Ut!==x&&(Ut?I(ut,Te,t.preventScrollOnTouch):L(ut,Te)),Wt!==C&&(Wt?I(ut,Ie):L(ut,Ie)),Yt!==k&&(Yt?(bn&&_(bn),un||pn||Bi()):(bn&&P(bn),un&&Vi())),qt!==S&&(qt?I(ut,Ee):L(ut,Ee)),$t!==M&&($t?I(n,Oe):L(n,Oe)),i){if(Dt===E&&Tt===T||(a=!0),Nt!==O&&(Nt||(dt.style.height="")),Ht&&Gt!==A&&(qe.innerHTML=Gt[0],$e.innerHTML=Gt[1]),bn&&Xt!==z){var B=Yt?1:0,N=bn.innerHTML,H=N.length-z[B].length;N.substring(H)===z[B]&&(bn.innerHTML=N.substring(0,H)+Xt[B])}}else Tt&&(Dt||Mt)&&(a=!0);if((s||Dt&&!Mt)&&(nn=Ki(),Ji()),(o=he!==D)?(ve.emit("indexChanged",Qi()),a=!0):s?o||mi():(Dt||Mt)&&(si(),bi(),ri()),s&&!Q&&function(){for(var t=he+Math.min(ft,It),e=ne;e--;){var n=gt[e];he<=e&&e<t?(b(n,"tns-moving"),n.style.left=100*(e-he)/It+"%",b(n,it),y(n,ot)):n.style.left&&(n.style.left="",b(n,ot),y(n,it)),y(n,rt)}setTimeout((function(){m(gt,(function(t){y(t,"tns-moving")}))}),300)}(),!Ce&&!Pe){if(i&&!V&&(Et===F&&Ot===R||(dt.style.cssText=Bn(Et,Ot,Dt,Ft,Nt)),ct)){Q&&(ut.style.width=Vn(Dt,Ot,It));var G=Nn(Dt,Ot,It)+Hn(Ot);c=u(l=Kt)-1,"deleteRule"in l?l.deleteRule(c):l.removeRule(c),d(Kt,"#"+xe+" > .tns-item",G,u(Kt))}Nt&&di(),a&&(Mi(),de=he)}i&&ve.emit("newBreakpointEnd",Qi(e))}}function Jn(){if(!Dt&&!Mt)return ft<=(Tt?It-(It-1)/2:It);var t=Dt?(Dt+Ot)*ft:vt[ft],e=Et?At+2*Et:At+Ot;return Tt&&(e-=Dt?(At-Dt)/2:(At-(vt[he+1]-vt[he]-Ot))/2),t<=e}function Qn(){for(var t in lt=0,K)(t=parseInt(t))<=bt&&(lt=t)}function ti(){!Yt&&bn&&P(bn),!Zt&&tn&&P(tn),Ht||(je?P(je):(qe&&P(qe),$e&&P($e)))}function ei(){Yt&&bn&&_(bn),Zt&&tn&&_(tn),Ht&&(je?_(je):(qe&&_(qe),$e&&_($e)))}function ni(){if(!_e){if(Et&&(dt.style.margin="0px"),ee)for(var t="tns-transparent",e=ee;e--;)Q&&b(gt[e],t),b(gt[ne-e-1],t);ti(),_e=!0}}function ii(){if(!ke){if(Kt.disabled=!0,ut.className=ut.className.replace(we.substring(1),""),k(ut,["style"]),Vt)for(var t=ee;t--;)Q&&P(gt[t]),P(gt[ne-t-1]);if(ct&&Q||k(dt,["style"]),!Q)for(var e=he,n=he+ft;e<n;e++){var i=gt[e];k(i,["style"]),y(i,it),y(i,ot)}ti(),ke=!0}}function ri(){var t=ai();xt.innerHTML!==t&&(xt.innerHTML=t)}function ai(){var t=oi(),e=t[0]+1,n=t[1]+1;return e===n?e+"":e+" to "+n}function oi(t){null==t&&(t=_i());var e,n,i,r=he;if(Tt||Et?(Mt||Dt)&&(n=-(parseFloat(t)+Et),i=n+At+2*Et):Mt&&(n=vt[he],i=n+At),Mt)vt.forEach((function(t,a){a<ne&&((Tt||Et)&&t<=n+.5&&(r=a),.5<=i-t&&(e=a))}));else{if(Dt){var a=Dt+Ot;Tt||Et?(r=Math.floor(n/a),e=Math.ceil(i/a-1)):e=r+Math.ceil(At/a)-1}else if(Tt||Et){var o=It-1;if(Tt?(r-=o/2,e=he+o/2):e=he+o,Et){var s=Et*It/At;r-=s,e+=s}r=Math.floor(r),e=Math.ceil(e)}else e=r+It-1;r=Math.max(r,0),e=Math.min(e,ne-1)}return[r,e]}function si(){if(Jt&&!Ce){var t=oi();t.push(Qt),hi.apply(null,t).forEach((function(t){if(!f(t,Ge)){var e={};e[Y]=function(t){t.stopPropagation()},I(t,e),I(t,Ze),t.src=w(t,"data-src");var n=w(t,"data-srcset");n&&(t.srcset=n),b(t,"loading")}}))}}function li(t){b(t,"loaded"),ci(t)}function ci(t){b(t,Ge),y(t,"loading"),L(t,Ze)}function hi(t,e,n){var i=[];for(n||(n="img");t<=e;)m(gt[t].querySelectorAll(n),(function(t){i.push(t)})),t++;return i}function di(){var t=hi.apply(null,oi());e((function(){ui(t,gi)}))}function ui(t,n){return wt?n():(t.forEach((function(e,n){!Jt&&e.complete&&ci(e),f(e,Ge)&&t.splice(n,1)})),t.length?void e((function(){ui(t,n)})):n())}function mi(){si(),bi(),ri(),Ci(),function(){if(Zt&&(on=0<=an?an:Tn(),an=-1,on!==sn)){var t=Qe[sn],e=Qe[on];C(t,{tabindex:"-1","aria-label":cn+(sn+1)}),y(t,ln),C(e,{"aria-label":cn+(on+1)+hn}),k(e,"tabindex"),b(e,ln),sn=on}}()}function pi(t,e){for(var n=[],i=t,r=Math.min(t+e,ne);i<r;i++)n.push(gt[i].offsetHeight);return Math.max.apply(null,n)}function gi(){var t=Nt?pi(he,It):pi(ee,ft),e=st||dt;e.style.height!==t&&(e.style.height=t+"px")}function fi(){vt=[0];var t=ct?"left":"top",e=ct?"right":"bottom",n=gt[0].getBoundingClientRect()[t];m(gt,(function(i,r){r&&vt.push(i.getBoundingClientRect()[t]-n),r===ne-1&&vt.push(i.getBoundingClientRect()[e]-n)}))}function bi(){var t=oi(),e=t[0],n=t[1];m(gt,(function(t,i){e<=i&&i<=n?v(t,"aria-hidden")&&(k(t,["aria-hidden","tabindex"]),b(t,Ne)):v(t,"aria-hidden")||(C(t,{"aria-hidden":"true",tabindex:"-1"}),y(t,Ne))}))}function yi(t){return t.nodeName.toLowerCase()}function vi(t){return"button"===yi(t)}function wi(t){return"true"===t.getAttribute("aria-disabled")}function xi(t,e,n){t?e.disabled=n:e.setAttribute("aria-disabled",n.toString())}function Ci(){if(Ht&&!Bt&&!Vt){var t=We?qe.disabled:wi(qe),e=Ye?$e.disabled:wi($e),n=he<=ue,i=!Bt&&me<=he;n&&!t&&xi(We,qe,!0),!n&&t&&xi(We,qe,!1),i&&!e&&xi(Ye,$e,!0),!i&&e&&xi(Ye,$e,!1)}}function ki(t,e){G&&(t.style[G]=e)}function Si(t){return null==t&&(t=he),Mt?(At-(Et?Ot:0)-(vt[t+1]-vt[t]-Ot))/2:Dt?(At-Dt)/2:(It-1)/2}function Pi(){var t=At+(Et?Ot:0)-(Dt?(Dt+Ot)*ne:vt[ne]);return Tt&&!Vt&&(t=Dt?-(Dt+Ot)*(ne-1)-Si():Si(ne-1)-vt[ne-1]),0<t&&(t=0),t}function _i(t){var e;if(null==t&&(t=he),ct&&!Mt)if(Dt)e=-(Dt+Ot)*t,Tt&&(e+=Si());else{var n=N?ne:It;Tt&&(t-=Si()),e=100*-t/n}else e=-vt[t],Tt&&Mt&&(e+=Si());return ie&&(e=Math.max(e,re)),e+(!ct||Mt||Dt?"px":"%")}function Mi(t){ki(ut,"0s"),Di(t)}function Di(t){null==t&&(t=_i()),ut.style[oe]=se+t+le}function Ei(t,e,n,i){var r=t+It;Vt||(r=Math.min(r,ne));for(var a=t;a<r;a++){var o=gt[a];i||(o.style.left=100*(a-he)/It+"%"),at&&Z&&(o.style[Z]=o.style[W]=at*(a-t)/1e3+"s"),y(o,e),b(o,n),i&&te.push(o)}}function Oi(t,e){ae&&_n(),(he!==de||e)&&(ve.emit("indexChanged",Qi()),ve.emit("transitionStart",Qi()),Nt&&di(),un&&t&&0<=["click","keydown"].indexOf(t.type)&&Vi(),be=!0,Mn())}function Ai(t){return t.toLowerCase().replace(/-/g,"")}function Ti(t){if(Q||be){if(ve.emit("transitionEnd",Qi(t)),!Q&&0<te.length)for(var e=0;e<te.length;e++){var n=te[e];n.style.left="",W&&Z&&(n.style[W]="",n.style[Z]=""),y(n,rt),b(n,ot)}if(!t||!Q&&t.target.parentNode===ut||t.target===ut&&Ai(t.propertyName)===Ai(oe)){if(!ae){var i=he;_n(),he!==i&&(ve.emit("indexChanged",Qi()),Mi())}"inner"===J&&ve.emit("innerLoaded",Qi()),be=!1,de=he}}}function Ii(t,e){if(!Pe)if("prev"===t)Li(e,-1);else if("next"===t)Li(e,1);else{if(be){if(pe)return;Ti()}var n=An(),i=0;if("first"===t?i=-n:"last"===t?i=Q?ft-It-n:ft-1-n:("number"!=typeof t&&(t=parseInt(t)),isNaN(t)||(e||(t=Math.max(0,Math.min(ft-1,t))),i=t-n)),!Q&&i&&Math.abs(i)<It){var r=0<i?1:-1;i+=ue<=he+i-ft?ft*r:2*ft*r*-1}he+=i,Q&&Vt&&(he<ue&&(he+=ft),me<he&&(he-=ft)),An(he)!==An(de)&&Oi(e)}}function Li(t,e){if(be){if(pe)return;Ti()}var n;if(!e){for(var i=Zi(t=Gi(t));i!==je&&[qe,$e].indexOf(i)<0;)i=i.parentNode;var r=[qe,$e].indexOf(i);0<=r&&(n=!0,e=0===r?-1:1)}if(Bt){if(he===ue&&-1===e)return void Ii("last",t);if(he===me&&1===e)return void Ii("first",t)}e&&(he+=Lt*e,Mt&&(he=Math.floor(he)),Oi(n||t&&"keydown"===t.type?t:null))}function zi(){dn=setInterval((function(){Li(null,fn)}),jt),un=!0}function Ri(){clearInterval(dn),un=!1}function Fi(t,e){C(bn,{"data-action":t}),bn.innerHTML=vn[0]+t+vn[1]+e}function Bi(){zi(),bn&&Fi("stop",Xt[1])}function Vi(){Ri(),bn&&Fi("start",Xt[0])}function Ni(){un?(Vi(),pn=!0):(Bi(),pn=!1)}function Hi(t){t.focus()}function Gi(t){return Ui(t=t||l.event)?t.changedTouches[0]:t}function Zi(t){return t.target||l.event.srcElement}function Ui(t){return 0<=t.type.indexOf("touch")}function Wi(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function Yi(){return a=kn.y-Cn.y,o=kn.x-Cn.x,e=Math.atan2(a,o)*(180/Math.PI),i=!1,90-(n=ge)<=(r=Math.abs(90-Math.abs(e)))?i="horizontal":r<=n&&(i="vertical"),i===t.axis;var e,n,i,r,a,o}function ji(t){if(be){if(pe)return;Ti()}Yt&&un&&Ri(),Sn=!0,xn&&(i(xn),xn=null);var e=Gi(t);ve.emit(Ui(t)?"touchStart":"dragStart",Qi(t)),!Ui(t)&&0<=["img","a"].indexOf(yi(Zi(t)))&&Wi(t),kn.x=Cn.x=e.clientX,kn.y=Cn.y=e.clientY,Q&&(wn=parseFloat(ut.style[oe].replace(se,"")),ki(ut,"0s"))}function Xi(t){if(Sn){var n=Gi(t);kn.x=n.clientX,kn.y=n.clientY,Q?xn||(xn=e((function(){!function t(n){if(fe){if(i(xn),Sn&&(xn=e((function(){t(n)}))),"?"===fe&&(fe=Yi()),fe){!Ue&&Ui(n)&&(Ue=!0);try{n.type&&ve.emit(Ui(n)?"touchMove":"dragMove",Qi(n))}catch(t){}var r=wn,a=Pn(kn,Cn);!ct||Dt||Mt?(r+=a,r+="px"):(r+=N?a*It*100/((At+Ot)*ne):100*a/(At+Ot),r+="%"),ut.style[oe]=se+r+le}}else Sn=!1}(t)}))):("?"===fe&&(fe=Yi()),fe&&(Ue=!0)),("boolean"!=typeof t.cancelable||t.cancelable)&&Ue&&t.preventDefault()}}function qi(n){if(Sn){xn&&(i(xn),xn=null),Q&&ki(ut,""),Sn=!1;var r=Gi(n);kn.x=r.clientX,kn.y=r.clientY;var a=Pn(kn,Cn);if(Math.abs(a)){if(!Ui(n)){var o=Zi(n);I(o,{click:function t(e){Wi(e),L(o,{click:t})}})}Q?xn=e((function(){if(ct&&!Mt){var t=-a*It/(At+Ot);t=0<a?Math.floor(t):Math.ceil(t),he+=t}else{var e=-(wn+a);if(e<=0)he=ue;else if(e>=vt[ne-1])he=me;else for(var i=0;i<ne&&e>=vt[i];)e>vt[he=i]&&a<0&&(he+=1),i++}Oi(n,a),ve.emit(Ui(n)?"touchEnd":"dragEnd",Qi(n))})):fe&&Li(n,0<a?-1:1)}}"auto"===t.preventScrollOnTouch&&(Ue=!1),ge&&(fe="?"),Yt&&!un&&zi()}function $i(){(st||dt).style.height=vt[he+It]-vt[he]+"px"}function Ki(){var t=Dt?(Dt+Ot)*ft/At:ft/It;return Math.min(Math.ceil(t),ft)}function Ji(){if(Zt&&!Re&&nn!==rn){var t=rn,e=nn,n=_;for(nn<rn&&(t=nn,e=rn,n=P);t<e;)n(Qe[t]),t++;rn=nn}}function Qi(t){return{container:ut,slideItems:gt,navContainer:tn,navItems:Qe,controlsContainer:je,hasControls:Le,prevButton:qe,nextButton:$e,items:It,slideBy:Lt,cloneCount:ee,slideCount:ft,slideCountNew:ne,index:he,indexCached:de,displayIndex:En(),navCurrentIndex:on,navCurrentIndexCached:sn,pages:nn,pagesCached:rn,sheet:Kt,isOn:yt,event:t||{}}}X&&g.warn("No slides found in",t.container)};return R}()},9742:(t,e)=>{"use strict";e.byteLength=function(t){var e=l(t),n=e[0],i=e[1];return 3*(n+i)/4-i},e.toByteArray=function(t){var e,n,a=l(t),o=a[0],s=a[1],c=new r(function(t,e,n){return 3*(e+n)/4-n}(0,o,s)),h=0,d=s>0?o-4:o;for(n=0;n<d;n+=4)e=i[t.charCodeAt(n)]<<18|i[t.charCodeAt(n+1)]<<12|i[t.charCodeAt(n+2)]<<6|i[t.charCodeAt(n+3)],c[h++]=e>>16&255,c[h++]=e>>8&255,c[h++]=255&e;2===s&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,c[h++]=255&e);1===s&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,c[h++]=e>>8&255,c[h++]=255&e);return c},e.fromByteArray=function(t){for(var e,i=t.length,r=i%3,a=[],o=16383,s=0,l=i-r;s<l;s+=o)a.push(c(t,s,s+o>l?l:s+o));1===r?(e=t[i-1],a.push(n[e>>2]+n[e<<4&63]+"==")):2===r&&(e=(t[i-2]<<8)+t[i-1],a.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return a.join("")};for(var n=[],i=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=a.length;o<s;++o)n[o]=a[o],i[a.charCodeAt(o)]=o;function l(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function c(t,e,i){for(var r,a,o=[],s=e;s<i;s+=3)r=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),o.push(n[(a=r)>>18&63]+n[a>>12&63]+n[a>>6&63]+n[63&a]);return o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},8764:(t,e,n)=>{"use strict";var i=n(5108);const r=n(9742),a=n(645),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.SlowBuffer=function(t){+t!=t&&(t=0);return c.alloc(+t)},e.INSPECT_MAX_BYTES=50;const s=2147483647;function l(t){if(t>s)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(t,e,n){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return u(t)}return h(t,e,n)}function h(t,e,n){if("string"==typeof t)return function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const n=0|f(t,e);let i=l(n);const r=i.write(t,e);r!==n&&(i=i.slice(0,r));return i}(t,e);if(ArrayBuffer.isView(t))return function(t){if($(t,Uint8Array)){const e=new Uint8Array(t);return p(e.buffer,e.byteOffset,e.byteLength)}return m(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if($(t,ArrayBuffer)||t&&$(t.buffer,ArrayBuffer))return p(t,e,n);if("undefined"!=typeof SharedArrayBuffer&&($(t,SharedArrayBuffer)||t&&$(t.buffer,SharedArrayBuffer)))return p(t,e,n);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const i=t.valueOf&&t.valueOf();if(null!=i&&i!==t)return c.from(i,e,n);const r=function(t){if(c.isBuffer(t)){const e=0|g(t.length),n=l(e);return 0===n.length||t.copy(n,0,0,e),n}if(void 0!==t.length)return"number"!=typeof t.length||K(t.length)?l(0):m(t);if("Buffer"===t.type&&Array.isArray(t.data))return m(t.data)}(t);if(r)return r;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return c.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function d(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function u(t){return d(t),l(t<0?0:0|g(t))}function m(t){const e=t.length<0?0:0|g(t.length),n=l(e);for(let i=0;i<e;i+=1)n[i]=255&t[i];return n}function p(t,e,n){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(n||0))throw new RangeError('"length" is outside of buffer bounds');let i;return i=void 0===e&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,e):new Uint8Array(t,e,n),Object.setPrototypeOf(i,c.prototype),i}function g(t){if(t>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|t}function f(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||$(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const n=t.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===n)return 0;let r=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return j(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return X(t).length;default:if(r)return i?-1:j(t).length;e=(""+e).toLowerCase(),r=!0}}function b(t,e,n){let i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return A(this,e,n);case"utf8":case"utf-8":return M(this,e,n);case"ascii":return E(this,e,n);case"latin1":case"binary":return O(this,e,n);case"base64":return _(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function y(t,e,n){const i=t[e];t[e]=t[n],t[n]=i}function v(t,e,n,i,r){if(0===t.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),K(n=+n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof e&&(e=c.from(e,i)),c.isBuffer(e))return 0===e.length?-1:w(t,e,n,i,r);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):w(t,[e],n,i,r);throw new TypeError("val must be string, number or Buffer")}function w(t,e,n,i,r){let a,o=1,s=t.length,l=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;o=2,s/=2,l/=2,n/=2}function c(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(r){let i=-1;for(a=n;a<s;a++)if(c(t,a)===c(e,-1===i?0:a-i)){if(-1===i&&(i=a),a-i+1===l)return i*o}else-1!==i&&(a-=a-i),i=-1}else for(n+l>s&&(n=s-l),a=n;a>=0;a--){let n=!0;for(let i=0;i<l;i++)if(c(t,a+i)!==c(e,i)){n=!1;break}if(n)return a}return-1}function x(t,e,n,i){n=Number(n)||0;const r=t.length-n;i?(i=Number(i))>r&&(i=r):i=r;const a=e.length;let o;for(i>a/2&&(i=a/2),o=0;o<i;++o){const i=parseInt(e.substr(2*o,2),16);if(K(i))return o;t[n+o]=i}return o}function C(t,e,n,i){return q(j(e,t.length-n),t,n,i)}function k(t,e,n,i){return q(function(t){const e=[];for(let n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,i)}function S(t,e,n,i){return q(X(e),t,n,i)}function P(t,e,n,i){return q(function(t,e){let n,i,r;const a=[];for(let o=0;o<t.length&&!((e-=2)<0);++o)n=t.charCodeAt(o),i=n>>8,r=n%256,a.push(r),a.push(i);return a}(e,t.length-n),t,n,i)}function _(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function M(t,e,n){n=Math.min(t.length,n);const i=[];let r=e;for(;r<n;){const e=t[r];let a=null,o=e>239?4:e>223?3:e>191?2:1;if(r+o<=n){let n,i,s,l;switch(o){case 1:e<128&&(a=e);break;case 2:n=t[r+1],128==(192&n)&&(l=(31&e)<<6|63&n,l>127&&(a=l));break;case 3:n=t[r+1],i=t[r+2],128==(192&n)&&128==(192&i)&&(l=(15&e)<<12|(63&n)<<6|63&i,l>2047&&(l<55296||l>57343)&&(a=l));break;case 4:n=t[r+1],i=t[r+2],s=t[r+3],128==(192&n)&&128==(192&i)&&128==(192&s)&&(l=(15&e)<<18|(63&n)<<12|(63&i)<<6|63&s,l>65535&&l<1114112&&(a=l))}}null===a?(a=65533,o=1):a>65535&&(a-=65536,i.push(a>>>10&1023|55296),a=56320|1023&a),i.push(a),r+=o}return function(t){const e=t.length;if(e<=D)return String.fromCharCode.apply(String,t);let n="",i=0;for(;i<e;)n+=String.fromCharCode.apply(String,t.slice(i,i+=D));return n}(i)}e.kMaxLength=s,c.TYPED_ARRAY_SUPPORT=function(){try{const t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),c.TYPED_ARRAY_SUPPORT||void 0===i||"function"!=typeof i.error||i.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(t,e,n){return h(t,e,n)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(t,e,n){return function(t,e,n){return d(t),t<=0?l(t):void 0!==e?"string"==typeof n?l(t).fill(e,n):l(t).fill(e):l(t)}(t,e,n)},c.allocUnsafe=function(t){return u(t)},c.allocUnsafeSlow=function(t){return u(t)},c.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==c.prototype},c.compare=function(t,e){if($(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),$(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let n=t.length,i=e.length;for(let r=0,a=Math.min(n,i);r<a;++r)if(t[r]!==e[r]){n=t[r],i=e[r];break}return n<i?-1:i<n?1:0},c.isEncoding=function(t){switch(String(t).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(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);let n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;const i=c.allocUnsafe(e);let r=0;for(n=0;n<t.length;++n){let e=t[n];if($(e,Uint8Array))r+e.length>i.length?(c.isBuffer(e)||(e=c.from(e)),e.copy(i,r)):Uint8Array.prototype.set.call(i,e,r);else{if(!c.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(i,r)}r+=e.length}return i},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)y(this,e,e+1);return this},c.prototype.swap32=function(){const t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)y(this,e,e+3),y(this,e+1,e+2);return this},c.prototype.swap64=function(){const t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},c.prototype.toString=function(){const t=this.length;return 0===t?"":0===arguments.length?M(this,0,t):b.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){let t="";const n=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(t+=" ... "),"<Buffer "+t+">"},o&&(c.prototype[o]=c.prototype.inspect),c.prototype.compare=function(t,e,n,i,r){if($(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),e<0||n>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&e>=n)return 0;if(i>=r)return-1;if(e>=n)return 1;if(this===t)return 0;let a=(r>>>=0)-(i>>>=0),o=(n>>>=0)-(e>>>=0);const s=Math.min(a,o),l=this.slice(i,r),h=t.slice(e,n);for(let t=0;t<s;++t)if(l[t]!==h[t]){a=l[t],o=h[t];break}return a<o?-1:o<a?1:0},c.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},c.prototype.indexOf=function(t,e,n){return v(this,t,e,n,!0)},c.prototype.lastIndexOf=function(t,e,n){return v(this,t,e,n,!1)},c.prototype.write=function(t,e,n,i){if(void 0===e)i="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)i=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(n)?(n>>>=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}const r=this.length-e;if((void 0===n||n>r)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let a=!1;for(;;)switch(i){case"hex":return x(this,t,e,n);case"utf8":case"utf-8":return C(this,t,e,n);case"ascii":case"latin1":case"binary":return k(this,t,e,n);case"base64":return S(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,e,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const D=4096;function E(t,e,n){let i="";n=Math.min(t.length,n);for(let r=e;r<n;++r)i+=String.fromCharCode(127&t[r]);return i}function O(t,e,n){let i="";n=Math.min(t.length,n);for(let r=e;r<n;++r)i+=String.fromCharCode(t[r]);return i}function A(t,e,n){const i=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>i)&&(n=i);let r="";for(let i=e;i<n;++i)r+=J[t[i]];return r}function T(t,e,n){const i=t.slice(e,n);let r="";for(let t=0;t<i.length-1;t+=2)r+=String.fromCharCode(i[t]+256*i[t+1]);return r}function I(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function L(t,e,n,i,r,a){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<a)throw new RangeError('"value" argument is out of bounds');if(n+i>t.length)throw new RangeError("Index out of range")}function z(t,e,n,i,r){Z(e,i,r,t,n,7);let a=Number(e&BigInt(4294967295));t[n++]=a,a>>=8,t[n++]=a,a>>=8,t[n++]=a,a>>=8,t[n++]=a;let o=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o,n}function R(t,e,n,i,r){Z(e,i,r,t,n,7);let a=Number(e&BigInt(4294967295));t[n+7]=a,a>>=8,t[n+6]=a,a>>=8,t[n+5]=a,a>>=8,t[n+4]=a;let o=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=o,o>>=8,t[n+2]=o,o>>=8,t[n+1]=o,o>>=8,t[n]=o,n+8}function F(t,e,n,i,r,a){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function B(t,e,n,i,r){return e=+e,n>>>=0,r||F(t,0,n,4),a.write(t,e,n,i,23,4),n+4}function V(t,e,n,i,r){return e=+e,n>>>=0,r||F(t,0,n,8),a.write(t,e,n,i,52,8),n+8}c.prototype.slice=function(t,e){const n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);const i=this.subarray(t,e);return Object.setPrototypeOf(i,c.prototype),i},c.prototype.readUintLE=c.prototype.readUIntLE=function(t,e,n){t>>>=0,e>>>=0,n||I(t,e,this.length);let i=this[t],r=1,a=0;for(;++a<e&&(r*=256);)i+=this[t+a]*r;return i},c.prototype.readUintBE=c.prototype.readUIntBE=function(t,e,n){t>>>=0,e>>>=0,n||I(t,e,this.length);let i=this[t+--e],r=1;for(;e>0&&(r*=256);)i+=this[t+--e]*r;return i},c.prototype.readUint8=c.prototype.readUInt8=function(t,e){return t>>>=0,e||I(t,1,this.length),this[t]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(t,e){return t>>>=0,e||I(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(t,e){return t>>>=0,e||I(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(t,e){return t>>>=0,e||I(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(t,e){return t>>>=0,e||I(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readBigUInt64LE=Q((function(t){U(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||W(t,this.length-8);const i=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,r=this[++t]+256*this[++t]+65536*this[++t]+n*2**24;return BigInt(i)+(BigInt(r)<<BigInt(32))})),c.prototype.readBigUInt64BE=Q((function(t){U(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||W(t,this.length-8);const i=e*2**24+65536*this[++t]+256*this[++t]+this[++t],r=this[++t]*2**24+65536*this[++t]+256*this[++t]+n;return(BigInt(i)<<BigInt(32))+BigInt(r)})),c.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||I(t,e,this.length);let i=this[t],r=1,a=0;for(;++a<e&&(r*=256);)i+=this[t+a]*r;return r*=128,i>=r&&(i-=Math.pow(2,8*e)),i},c.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||I(t,e,this.length);let i=e,r=1,a=this[t+--i];for(;i>0&&(r*=256);)a+=this[t+--i]*r;return r*=128,a>=r&&(a-=Math.pow(2,8*e)),a},c.prototype.readInt8=function(t,e){return t>>>=0,e||I(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){t>>>=0,e||I(t,2,this.length);const n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){t>>>=0,e||I(t,2,this.length);const n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return t>>>=0,e||I(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return t>>>=0,e||I(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readBigInt64LE=Q((function(t){U(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||W(t,this.length-8);const i=this[t+4]+256*this[t+5]+65536*this[t+6]+(n<<24);return(BigInt(i)<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+this[++t]*2**24)})),c.prototype.readBigInt64BE=Q((function(t){U(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||W(t,this.length-8);const i=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(i)<<BigInt(32))+BigInt(this[++t]*2**24+65536*this[++t]+256*this[++t]+n)})),c.prototype.readFloatLE=function(t,e){return t>>>=0,e||I(t,4,this.length),a.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return t>>>=0,e||I(t,4,this.length),a.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return t>>>=0,e||I(t,8,this.length),a.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return t>>>=0,e||I(t,8,this.length),a.read(this,t,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(t,e,n,i){if(t=+t,e>>>=0,n>>>=0,!i){L(this,t,e,n,Math.pow(2,8*n)-1,0)}let r=1,a=0;for(this[e]=255&t;++a<n&&(r*=256);)this[e+a]=t/r&255;return e+n},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(t,e,n,i){if(t=+t,e>>>=0,n>>>=0,!i){L(this,t,e,n,Math.pow(2,8*n)-1,0)}let r=n-1,a=1;for(this[e+r]=255&t;--r>=0&&(a*=256);)this[e+r]=t/a&255;return e+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||L(this,t,e,1,255,0),this[e]=255&t,e+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||L(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||L(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||L(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||L(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigUInt64LE=Q((function(t,e=0){return z(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=Q((function(t,e=0){return R(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e>>>=0,!i){const i=Math.pow(2,8*n-1);L(this,t,e,n,i-1,-i)}let r=0,a=1,o=0;for(this[e]=255&t;++r<n&&(a*=256);)t<0&&0===o&&0!==this[e+r-1]&&(o=1),this[e+r]=(t/a>>0)-o&255;return e+n},c.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e>>>=0,!i){const i=Math.pow(2,8*n-1);L(this,t,e,n,i-1,-i)}let r=n-1,a=1,o=0;for(this[e+r]=255&t;--r>=0&&(a*=256);)t<0&&0===o&&0!==this[e+r+1]&&(o=1),this[e+r]=(t/a>>0)-o&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||L(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||L(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||L(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||L(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||L(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigInt64LE=Q((function(t,e=0){return z(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=Q((function(t,e=0){return R(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(t,e,n){return B(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return B(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return V(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return V(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,i){if(!c.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-n&&(i=t.length-e+n);const r=i-n;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,n,i):Uint8Array.prototype.set.call(t,this.subarray(n,i),e),r},c.prototype.fill=function(t,e,n,i){if("string"==typeof t){if("string"==typeof e?(i=e,e=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!c.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(1===t.length){const e=t.charCodeAt(0);("utf8"===i&&e<128||"latin1"===i)&&(t=e)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;let r;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(r=e;r<n;++r)this[r]=t;else{const a=c.isBuffer(t)?t:c.from(t,i),o=a.length;if(0===o)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(r=0;r<n-e;++r)this[r+e]=a[r%o]}return this};const N={};function H(t,e,n){N[t]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function G(t){let e="",n=t.length;const i="-"===t[0]?1:0;for(;n>=i+4;n-=3)e=`_${t.slice(n-3,n)}${e}`;return`${t.slice(0,n)}${e}`}function Z(t,e,n,i,r,a){if(t>n||t<e){const i="bigint"==typeof e?"n":"";let r;throw r=a>3?0===e||e===BigInt(0)?`>= 0${i} and < 2${i} ** ${8*(a+1)}${i}`:`>= -(2${i} ** ${8*(a+1)-1}${i}) and < 2 ** ${8*(a+1)-1}${i}`:`>= ${e}${i} and <= ${n}${i}`,new N.ERR_OUT_OF_RANGE("value",r,t)}!function(t,e,n){U(e,"offset"),void 0!==t[e]&&void 0!==t[e+n]||W(e,t.length-(n+1))}(i,r,a)}function U(t,e){if("number"!=typeof t)throw new N.ERR_INVALID_ARG_TYPE(e,"number",t)}function W(t,e,n){if(Math.floor(t)!==t)throw U(t,n),new N.ERR_OUT_OF_RANGE(n||"offset","an integer",t);if(e<0)throw new N.ERR_BUFFER_OUT_OF_BOUNDS;throw new N.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${e}`,t)}H("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),H("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),H("ERR_OUT_OF_RANGE",(function(t,e,n){let i=`The value of "${t}" is out of range.`,r=n;return Number.isInteger(n)&&Math.abs(n)>2**32?r=G(String(n)):"bigint"==typeof n&&(r=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(r=G(r)),r+="n"),i+=` It must be ${e}. Received ${r}`,i}),RangeError);const Y=/[^+/0-9A-Za-z-_]/g;function j(t,e){let n;e=e||1/0;const i=t.length;let r=null;const a=[];for(let o=0;o<i;++o){if(n=t.charCodeAt(o),n>55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(o+1===i){(e-=3)>-1&&a.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&a.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&a.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;a.push(n)}else if(n<2048){if((e-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function X(t){return r.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(Y,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function q(t,e,n,i){let r;for(r=0;r<i&&!(r+n>=e.length||r>=t.length);++r)e[r+n]=t[r];return r}function $(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function K(t){return t!=t}const J=function(){const t="0123456789abcdef",e=new Array(256);for(let n=0;n<16;++n){const i=16*n;for(let r=0;r<16;++r)e[i+r]=t[n]+t[r]}return e}();function Q(t){return"undefined"==typeof BigInt?tt:t}function tt(){throw new Error("BigInt not supported")}},1924:(t,e,n)=>{"use strict";var i=n(210),r=n(5559),a=r(i("String.prototype.indexOf"));t.exports=function(t,e){var n=i(t,!!e);return"function"==typeof n&&a(t,".prototype.")>-1?r(n):n}},5559:(t,e,n)=>{"use strict";var i=n(8612),r=n(210),a=r("%Function.prototype.apply%"),o=r("%Function.prototype.call%"),s=r("%Reflect.apply%",!0)||i.call(o,a),l=r("%Object.getOwnPropertyDescriptor%",!0),c=r("%Object.defineProperty%",!0),h=r("%Math.max%");if(c)try{c({},"a",{value:1})}catch(t){c=null}t.exports=function(t){var e=s(i,o,arguments);if(l&&c){var n=l(e,"length");n.configurable&&c(e,"length",{value:1+h(0,t.length-(arguments.length-1))})}return e};var d=function(){return s(i,a,arguments)};c?c(t.exports,"apply",{value:d}):t.exports.apply=d},5108:(t,e,n)=>{var i=n(9539),r=n(9282);function a(){return(new Date).getTime()}var o,s=Array.prototype.slice,l={};o=void 0!==n.g&&n.g.console?n.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var c=[[function(){},"log"],[function(){o.log.apply(o,arguments)},"info"],[function(){o.log.apply(o,arguments)},"warn"],[function(){o.warn.apply(o,arguments)},"error"],[function(t){l[t]=a()},"time"],[function(t){var e=l[t];if(!e)throw new Error("No such label: "+t);delete l[t];var n=a()-e;o.log(t+": "+n+"ms")},"timeEnd"],[function(){var t=new Error;t.name="Trace",t.message=i.format.apply(null,arguments),o.error(t.stack)},"trace"],[function(t){o.log(i.inspect(t)+"\n")},"dir"],[function(t){if(!t){var e=s.call(arguments,1);r.ok(!1,i.format.apply(null,e))}},"assert"]],h=0;h<c.length;h++){var d=c[h],u=d[0],m=d[1];o[m]||(o[m]=u)}t.exports=o},9638:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var i=n(8081),r=n.n(i),a=n(3645),o=n.n(a),s=n(1667),l=n.n(s),c=new URL(n(2445),n.b),h=o()(r()),d=l()(c);h.push([t.id,'[class*=ant-] input::-ms-clear,[class*=ant-] input::-ms-reveal,[class*=ant-]::-ms-clear,[class^=ant-] input::-ms-clear,[class^=ant-] input::-ms-reveal,[class^=ant-]::-ms-clear{display:none}@layer{.ZwCloud2d,.cdk-overlay-container{color:#000000d9;font-size:14px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variant:tabular-nums;line-height:1.5715;font-feature-settings:"tnum"}.ZwCloud2d html,.cdk-overlay-container html{width:100%;height:100%}.ZwCloud2d input::-ms-clear,.ZwCloud2d input::-ms-reveal,.cdk-overlay-container input::-ms-clear,.cdk-overlay-container input::-ms-reveal{display:none}.ZwCloud2d *,.ZwCloud2d :after,.ZwCloud2d :before,.cdk-overlay-container *,.cdk-overlay-container :after,.cdk-overlay-container :before{box-sizing:border-box}.ZwCloud2d html,.cdk-overlay-container html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0)}.ZwCloud2d [tabindex="-1"]:focus,.cdk-overlay-container [tabindex="-1"]:focus{outline:none!important}.ZwCloud2d hr,.cdk-overlay-container hr{box-sizing:initial;height:0;overflow:visible}.ZwCloud2d h1,.ZwCloud2d h2,.ZwCloud2d h3,.ZwCloud2d h4,.ZwCloud2d h5,.ZwCloud2d h6,.cdk-overlay-container h1,.cdk-overlay-container h2,.cdk-overlay-container h3,.cdk-overlay-container h4,.cdk-overlay-container h5,.cdk-overlay-container h6{margin-top:0;margin-bottom:.5em;color:#000000d9;font-weight:500}.ZwCloud2d p,.cdk-overlay-container p{margin-top:0;margin-bottom:1em}.ZwCloud2d abbr[data-original-title],.ZwCloud2d abbr[title],.cdk-overlay-container abbr[data-original-title],.cdk-overlay-container abbr[title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;border-bottom:0;cursor:help}.ZwCloud2d address,.cdk-overlay-container address{margin-bottom:1em;font-style:normal;line-height:inherit}.ZwCloud2d input[type=number],.ZwCloud2d input[type=password],.ZwCloud2d input[type=text],.ZwCloud2d textarea,.cdk-overlay-container input[type=number],.cdk-overlay-container input[type=password],.cdk-overlay-container input[type=text],.cdk-overlay-container textarea{-webkit-appearance:none}.ZwCloud2d dl,.ZwCloud2d ol,.ZwCloud2d ul,.cdk-overlay-container dl,.cdk-overlay-container ol,.cdk-overlay-container ul{margin-top:0;margin-bottom:1em}.ZwCloud2d ol ol,.ZwCloud2d ol ul,.ZwCloud2d ul ol,.ZwCloud2d ul ul,.cdk-overlay-container ol ol,.cdk-overlay-container ol ul,.cdk-overlay-container ul ol,.cdk-overlay-container ul ul{margin-bottom:0}.ZwCloud2d dt,.cdk-overlay-container dt{font-weight:500}.ZwCloud2d dd,.cdk-overlay-container dd{margin-bottom:.5em;margin-left:0}.ZwCloud2d blockquote,.cdk-overlay-container blockquote{margin:0 0 1em}.ZwCloud2d dfn,.cdk-overlay-container dfn{font-style:italic}.ZwCloud2d b,.ZwCloud2d strong,.cdk-overlay-container b,.cdk-overlay-container strong{font-weight:bolder}.ZwCloud2d small,.cdk-overlay-container small{font-size:80%}.ZwCloud2d sub,.ZwCloud2d sup,.cdk-overlay-container sub,.cdk-overlay-container sup{position:relative;font-size:75%;line-height:0;vertical-align:initial}.ZwCloud2d sub,.cdk-overlay-container sub{bottom:-.25em}.ZwCloud2d sup,.cdk-overlay-container sup{top:-.5em}.ZwCloud2d a,.cdk-overlay-container a{color:#1890ff;text-decoration:none;background-color:initial;outline:none;cursor:pointer;transition:color .3s;-webkit-text-decoration-skip:objects}.ZwCloud2d a:hover,.cdk-overlay-container a:hover{color:#40a9ff}.ZwCloud2d a:active,.cdk-overlay-container a:active{color:#096dd9}.ZwCloud2d a:active,.ZwCloud2d a:focus,.ZwCloud2d a:hover,.cdk-overlay-container a:active,.cdk-overlay-container a:focus,.cdk-overlay-container a:hover{text-decoration:none;outline:0}.ZwCloud2d a[disabled],.cdk-overlay-container a[disabled]{color:#00000040;cursor:not-allowed}.ZwCloud2d code,.ZwCloud2d kbd,.ZwCloud2d pre,.ZwCloud2d samp,.cdk-overlay-container code,.cdk-overlay-container kbd,.cdk-overlay-container pre,.cdk-overlay-container samp{font-size:1em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}.ZwCloud2d pre,.cdk-overlay-container pre{margin-top:0;margin-bottom:1em;overflow:auto}.ZwCloud2d figure,.cdk-overlay-container figure{margin:0 0 1em}.ZwCloud2d img,.cdk-overlay-container img{vertical-align:middle;border-style:none}.ZwCloud2d svg:not(:root),.cdk-overlay-container svg:not(:root){overflow:hidden}.ZwCloud2d [role=button],.ZwCloud2d a,.ZwCloud2d area,.ZwCloud2d button,.ZwCloud2d input:not([type=range]),.ZwCloud2d label,.ZwCloud2d select,.ZwCloud2d summary,.ZwCloud2d textarea,.cdk-overlay-container [role=button],.cdk-overlay-container a,.cdk-overlay-container area,.cdk-overlay-container button,.cdk-overlay-container input:not([type=range]),.cdk-overlay-container label,.cdk-overlay-container select,.cdk-overlay-container summary,.cdk-overlay-container textarea{touch-action:manipulation}.ZwCloud2d table,.cdk-overlay-container table{border-collapse:collapse}.ZwCloud2d caption,.cdk-overlay-container caption{padding-top:.75em;padding-bottom:.3em;color:#00000073;text-align:left;caption-side:bottom}.ZwCloud2d button,.ZwCloud2d input,.ZwCloud2d optgroup,.ZwCloud2d select,.ZwCloud2d textarea,.cdk-overlay-container button,.cdk-overlay-container input,.cdk-overlay-container optgroup,.cdk-overlay-container select,.cdk-overlay-container textarea{margin:0;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.ZwCloud2d button,.ZwCloud2d input,.cdk-overlay-container button,.cdk-overlay-container input{overflow:visible}.ZwCloud2d button,.ZwCloud2d select,.cdk-overlay-container button,.cdk-overlay-container select{text-transform:none}.ZwCloud2d [type=reset],.ZwCloud2d [type=submit],.ZwCloud2d button,.ZwCloud2d html [type=button],.cdk-overlay-container [type=reset],.cdk-overlay-container [type=submit],.cdk-overlay-container button,.cdk-overlay-container html [type=button]{-webkit-appearance:button}.ZwCloud2d [type=button]::-moz-focus-inner,.ZwCloud2d [type=reset]::-moz-focus-inner,.ZwCloud2d [type=submit]::-moz-focus-inner,.ZwCloud2d button::-moz-focus-inner,.cdk-overlay-container [type=button]::-moz-focus-inner,.cdk-overlay-container [type=reset]::-moz-focus-inner,.cdk-overlay-container [type=submit]::-moz-focus-inner,.cdk-overlay-container button::-moz-focus-inner{padding:0;border-style:none}.ZwCloud2d input[type=checkbox],.ZwCloud2d input[type=radio],.cdk-overlay-container input[type=checkbox],.cdk-overlay-container input[type=radio]{box-sizing:border-box;padding:0}.ZwCloud2d input[type=date],.ZwCloud2d input[type=datetime-local],.ZwCloud2d input[type=month],.ZwCloud2d input[type=time],.cdk-overlay-container input[type=date],.cdk-overlay-container input[type=datetime-local],.cdk-overlay-container input[type=month],.cdk-overlay-container input[type=time]{-webkit-appearance:listbox}.ZwCloud2d textarea,.cdk-overlay-container textarea{overflow:auto;resize:vertical}.ZwCloud2d fieldset,.cdk-overlay-container fieldset{min-width:0;margin:0;padding:0;border:0}.ZwCloud2d legend,.cdk-overlay-container legend{display:block;width:100%;max-width:100%;margin-bottom:.5em;padding:0;color:inherit;font-size:1.5em;line-height:inherit;white-space:normal}.ZwCloud2d progress,.cdk-overlay-container progress{vertical-align:initial}.ZwCloud2d [type=number]::-webkit-inner-spin-button,.ZwCloud2d [type=number]::-webkit-outer-spin-button,.cdk-overlay-container [type=number]::-webkit-inner-spin-button,.cdk-overlay-container [type=number]::-webkit-outer-spin-button{height:auto}.ZwCloud2d [type=search],.cdk-overlay-container [type=search]{outline-offset:-2px;-webkit-appearance:none}.ZwCloud2d [type=search]::-webkit-search-cancel-button,.ZwCloud2d [type=search]::-webkit-search-decoration,.cdk-overlay-container [type=search]::-webkit-search-cancel-button,.cdk-overlay-container [type=search]::-webkit-search-decoration{-webkit-appearance:none}.ZwCloud2d ::-webkit-file-upload-button,.cdk-overlay-container ::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}.ZwCloud2d output,.cdk-overlay-container output{display:inline-block}.ZwCloud2d summary,.cdk-overlay-container summary{display:list-item}.ZwCloud2d template,.cdk-overlay-container template{display:none}.ZwCloud2d [hidden],.cdk-overlay-container [hidden]{display:none!important}.ZwCloud2d mark,.cdk-overlay-container mark{padding:.2em;background-color:#feffe6}.ZwCloud2d ::selection,.cdk-overlay-container ::selection{color:#fff;background:#1890ff}.ZwCloud2d .clearfix:before,.cdk-overlay-container .clearfix:before{display:table;content:""}.ZwCloud2d .clearfix:after,.cdk-overlay-container .clearfix:after{display:table;clear:both;content:""}}.anticon{display:inline-block;color:inherit;font-style:normal;line-height:0;text-align:center;text-transform:none;vertical-align:-.125em;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.anticon>*{line-height:1}.anticon svg{display:inline-block}.anticon:before{display:none}.anticon .anticon-icon{display:block}.anticon[tabindex]{cursor:pointer}.anticon-spin,.anticon-spin:before{display:inline-block;animation:loadingCircle 1s linear infinite}.ant-fade-appear,.ant-fade-enter,.ant-fade-leave{animation-duration:.2s;animation-fill-mode:both;animation-play-state:paused}.ant-fade-appear.ant-fade-appear-active,.ant-fade-enter.ant-fade-enter-active{animation-name:antFadeIn;animation-play-state:running}.ant-fade-leave.ant-fade-leave-active{animation-name:antFadeOut;animation-play-state:running;pointer-events:none}.ant-fade-appear,.ant-fade-enter{opacity:0;animation-timing-function:linear}.ant-fade-leave{animation-timing-function:linear}@keyframes antFadeIn{0%{opacity:0}to{opacity:1}}@keyframes antFadeOut{0%{opacity:1}to{opacity:0}}.ant-move-up-appear,.ant-move-up-enter,.ant-move-up-leave{animation-duration:.2s;animation-fill-mode:both;animation-play-state:paused}.ant-move-up-appear.ant-move-up-appear-active,.ant-move-up-enter.ant-move-up-enter-active{animation-name:antMoveUpIn;animation-play-state:running}.ant-move-up-leave.ant-move-up-leave-active{animation-name:antMoveUpOut;animation-play-state:running;pointer-events:none}.ant-move-up-appear,.ant-move-up-enter{opacity:0;animation-timing-function:cubic-bezier(.08,.82,.17,1)}.ant-move-up-leave{animation-timing-function:cubic-bezier(.6,.04,.98,.34)}.ant-move-down-appear,.ant-move-down-enter,.ant-move-down-leave{animation-duration:.2s;animation-fill-mode:both;animation-play-state:paused}.ant-move-down-appear.ant-move-down-appear-active,.ant-move-down-enter.ant-move-down-enter-active{animation-name:antMoveDownIn;animation-play-state:running}.ant-move-down-leave.ant-move-down-leave-active{animation-name:antMoveDownOut;animation-play-state:running;pointer-events:none}.ant-move-down-appear,.ant-move-down-enter{opacity:0;animation-timing-function:cubic-bezier(.08,.82,.17,1)}.ant-move-down-leave{animation-timing-function:cubic-bezier(.6,.04,.98,.34)}.ant-move-left-appear,.ant-move-left-enter,.ant-move-left-leave{animation-duration:.2s;animation-fill-mode:both;animation-play-state:paused}.ant-move-left-appear.ant-move-left-appear-active,.ant-move-left-enter.ant-move-left-enter-active{animation-name:antMoveLeftIn;animation-play-state:running}.ant-move-left-leave.ant-move-left-leave-active{animation-name:antMoveLeftOut;animation-play-state:running;pointer-events:none}.ant-move-left-appear,.ant-move-left-enter{opacity:0;animation-timing-function:cubic-bezier(.08,.82,.17,1)}.ant-move-left-leave{animation-timing-function:cubic-bezier(.6,.04,.98,.34)}.ant-move-right-appear,.ant-move-right-enter,.ant-move-right-leave{animation-duration:.2s;animation-fill-mode:both;animation-play-state:paused}.ant-move-right-appear.ant-move-right-appear-active,.ant-move-right-enter.ant-move-right-enter-active{animation-name:antMoveRightIn;animation-play-state:running}.ant-move-right-leave.ant-move-right-leave-active{animation-name:antMoveRightOut;animation-play-state:running;pointer-events:none}.ant-move-right-appear,.ant-move-right-enter{opacity:0;animation-timing-function:cubic-bezier(.08,.82,.17,1)}.ant-move-right-leave{animation-timing-function:cubic-bezier(.6,.04,.98,.34)}@keyframes antMoveDownIn{0%{transform:translateY(100%);transform-origin:0 0;opacity:0}to{transform:translateY(0);transform-origin:0 0;opacity:1}}@keyframes antMoveDownOut{0%{transform:translateY(0);transform-origin:0 0;opacity:1}to{transform:translateY(100%);transform-origin:0 0;opacity:0}}@keyframes antMoveLeftIn{0%{transform:translateX(-100%);transform-origin:0 0;opacity:0}to{transform:translateX(0);transform-origin:0 0;opacity:1}}@keyframes antMoveLeftOut{0%{transform:translateX(0);transform-origin:0 0;opacity:1}to{transform:translateX(-100%);transform-origin:0 0;opacity:0}}@keyframes antMoveRightIn{0%{transform:translateX(100%);transform-origin:0 0;opacity:0}to{transform:translateX(0);transform-origin:0 0;opacity:1}}@keyframes antMoveRightOut{0%{transform:translateX(0);transform-origin:0 0;opacity:1}to{transform:translateX(100%);transform-origin:0 0;opacity:0}}@keyframes antMoveUpIn{0%{transform:translateY(-100%);transform-origin:0 0;opacity:0}to{transform:translateY(0);transform-origin:0 0;opacity:1}}@keyframes antMoveUpOut{0%{transform:translateY(0);transform-origin:0 0;opacity:1}to{transform:translateY(-100%);transform-origin:0 0;opacity:0}}@keyframes loadingCircle{to{transform:rotate(1turn)}}[ant-click-animating-without-extra-node=true],[ant-click-animating=true]{position:relative}html{--antd-wave-shadow-color:#1890ff;--scroll-bar:0}.ant-click-animating-node,[ant-click-animating-without-extra-node=true]:after{position:absolute;top:0;right:0;bottom:0;left:0;display:block;border-radius:inherit;box-shadow:0 0 0 0 #1890ff;box-shadow:0 0 0 0 var(--antd-wave-shadow-color);opacity:.2;animation:fadeEffect 2s cubic-bezier(.08,.82,.17,1),waveEffect .4s cubic-bezier(.08,.82,.17,1);animation-fill-mode:forwards;content:"";pointer-events:none}@keyframes waveEffect{to{box-shadow:0 0 0 #1890ff;box-shadow:0 0 0 6px var(--antd-wave-shadow-color)}}@keyframes fadeEffect{to{opacity:0}}.ant-slide-up-appear,.ant-slide-up-enter,.ant-slide-up-leave{animation-duration:.2s;animation-fill-mode:both;animation-play-state:paused}.ant-slide-up-appear.ant-slide-up-appear-active,.ant-slide-up-enter.ant-slide-up-enter-active{animation-name:antSlideUpIn;animation-play-state:running}.ant-slide-up-leave.ant-slide-up-leave-active{animation-name:antSlideUpOut;animation-play-state:running;pointer-events:none}.ant-slide-up-appear,.ant-slide-up-enter{opacity:0;animation-timing-function:cubic-bezier(.23,1,.32,1)}.ant-slide-up-leave{animation-timing-function:cubic-bezier(.755,.05,.855,.06)}.ant-slide-down-appear,.ant-slide-down-enter,.ant-slide-down-leave{animation-duration:.2s;animation-fill-mode:both;animation-play-state:paused}.ant-slide-down-appear.ant-slide-down-appear-active,.ant-slide-down-enter.ant-slide-down-enter-active{animation-name:antSlideDownIn;animation-play-state:running}.ant-slide-down-leave.ant-slide-down-leave-active{animation-name:antSlideDownOut;animation-play-state:running;pointer-events:none}.ant-slide-down-appear,.ant-slide-down-enter{opacity:0;animation-timing-function:cubic-bezier(.23,1,.32,1)}.ant-slide-down-leave{animation-timing-function:cubic-bezier(.755,.05,.855,.06)}.ant-slide-left-appear,.ant-slide-left-enter,.ant-slide-left-leave{animation-duration:.2s;animation-fill-mode:both;animation-play-state:paused}.ant-slide-left-appear.ant-slide-left-appear-active,.ant-slide-left-enter.ant-slide-left-enter-active{animation-name:antSlideLeftIn;animation-play-state:running}.ant-slide-left-leave.ant-slide-left-leave-active{animation-name:antSlideLeftOut;animation-play-state:running;pointer-events:none}.ant-slide-left-appear,.ant-slide-left-enter{opacity:0;animation-timing-function:cubic-bezier(.23,1,.32,1)}.ant-slide-left-leave{animation-timing-function:cubic-bezier(.755,.05,.855,.06)}.ant-slide-right-appear,.ant-slide-right-enter,.ant-slide-right-leave{animation-duration:.2s;animation-fill-mode:both;animation-play-state:paused}.ant-slide-right-appear.ant-slide-right-appear-active,.ant-slide-right-enter.ant-slide-right-enter-active{animation-name:antSlideRightIn;animation-play-state:running}.ant-slide-right-leave.ant-slide-right-leave-active{animation-name:antSlideRightOut;animation-play-state:running;pointer-events:none}.ant-slide-right-appear,.ant-slide-right-enter{opacity:0;animation-timing-function:cubic-bezier(.23,1,.32,1)}.ant-slide-right-leave{animation-timing-function:cubic-bezier(.755,.05,.855,.06)}@keyframes antSlideUpIn{0%{transform:scaleY(.8);transform-origin:0 0;opacity:0}to{transform:scaleY(1);transform-origin:0 0;opacity:1}}@keyframes antSlideUpOut{0%{transform:scaleY(1);transform-origin:0 0;opacity:1}to{transform:scaleY(.8);transform-origin:0 0;opacity:0}}@keyframes antSlideDownIn{0%{transform:scaleY(.8);transform-origin:100% 100%;opacity:0}to{transform:scaleY(1);transform-origin:100% 100%;opacity:1}}@keyframes antSlideDownOut{0%{transform:scaleY(1);transform-origin:100% 100%;opacity:1}to{transform:scaleY(.8);transform-origin:100% 100%;opacity:0}}@keyframes antSlideLeftIn{0%{transform:scaleX(.8);transform-origin:0 0;opacity:0}to{transform:scaleX(1);transform-origin:0 0;opacity:1}}@keyframes antSlideLeftOut{0%{transform:scaleX(1);transform-origin:0 0;opacity:1}to{transform:scaleX(.8);transform-origin:0 0;opacity:0}}@keyframes antSlideRightIn{0%{transform:scaleX(.8);transform-origin:100% 0;opacity:0}to{transform:scaleX(1);transform-origin:100% 0;opacity:1}}@keyframes antSlideRightOut{0%{transform:scaleX(1);transform-origin:100% 0;opacity:1}to{transform:scaleX(.8);transform-origin:100% 0;opacity:0}}.ant-zoom-appear,.ant-zoom-enter,.ant-zoom-leave{animation-duration:.2s;animation-fill-mode:both;animation-play-state:paused}.ant-zoom-appear.ant-zoom-appear-active,.ant-zoom-enter.ant-zoom-enter-active{animation-name:antZoomIn;animation-play-state:running}.ant-zoom-leave.ant-zoom-leave-active{animation-name:antZoomOut;animation-play-state:running;pointer-events:none}.ant-zoom-appear,.ant-zoom-enter{transform:scale(0);opacity:0;animation-timing-function:cubic-bezier(.08,.82,.17,1)}.ant-zoom-appear-prepare,.ant-zoom-enter-prepare{transform:none}.ant-zoom-leave{animation-timing-function:cubic-bezier(.78,.14,.15,.86)}.ant-zoom-big-appear,.ant-zoom-big-enter,.ant-zoom-big-leave{animation-duration:.2s;animation-fill-mode:both;animation-play-state:paused}.ant-zoom-big-appear.ant-zoom-big-appear-active,.ant-zoom-big-enter.ant-zoom-big-enter-active{animation-name:antZoomBigIn;animation-play-state:running}.ant-zoom-big-leave.ant-zoom-big-leave-active{animation-name:antZoomBigOut;animation-play-state:running;pointer-events:none}.ant-zoom-big-appear,.ant-zoom-big-enter{transform:scale(0);opacity:0;animation-timing-function:cubic-bezier(.08,.82,.17,1)}.ant-zoom-big-appear-prepare,.ant-zoom-big-enter-prepare{transform:none}.ant-zoom-big-leave{animation-timing-function:cubic-bezier(.78,.14,.15,.86)}.ant-zoom-big-fast-appear,.ant-zoom-big-fast-enter,.ant-zoom-big-fast-leave{animation-duration:.1s;animation-fill-mode:both;animation-play-state:paused}.ant-zoom-big-fast-appear.ant-zoom-big-fast-appear-active,.ant-zoom-big-fast-enter.ant-zoom-big-fast-enter-active{animation-name:antZoomBigIn;animation-play-state:running}.ant-zoom-big-fast-leave.ant-zoom-big-fast-leave-active{animation-name:antZoomBigOut;animation-play-state:running;pointer-events:none}.ant-zoom-big-fast-appear,.ant-zoom-big-fast-enter{transform:scale(0);opacity:0;animation-timing-function:cubic-bezier(.08,.82,.17,1)}.ant-zoom-big-fast-appear-prepare,.ant-zoom-big-fast-enter-prepare{transform:none}.ant-zoom-big-fast-leave{animation-timing-function:cubic-bezier(.78,.14,.15,.86)}.ant-zoom-up-appear,.ant-zoom-up-enter,.ant-zoom-up-leave{animation-duration:.2s;animation-fill-mode:both;animation-play-state:paused}.ant-zoom-up-appear.ant-zoom-up-appear-active,.ant-zoom-up-enter.ant-zoom-up-enter-active{animation-name:antZoomUpIn;animation-play-state:running}.ant-zoom-up-leave.ant-zoom-up-leave-active{animation-name:antZoomUpOut;animation-play-state:running;pointer-events:none}.ant-zoom-up-appear,.ant-zoom-up-enter{transform:scale(0);opacity:0;animation-timing-function:cubic-bezier(.08,.82,.17,1)}.ant-zoom-up-appear-prepare,.ant-zoom-up-enter-prepare{transform:none}.ant-zoom-up-leave{animation-timing-function:cubic-bezier(.78,.14,.15,.86)}.ant-zoom-down-appear,.ant-zoom-down-enter,.ant-zoom-down-leave{animation-duration:.2s;animation-fill-mode:both;animation-play-state:paused}.ant-zoom-down-appear.ant-zoom-down-appear-active,.ant-zoom-down-enter.ant-zoom-down-enter-active{animation-name:antZoomDownIn;animation-play-state:running}.ant-zoom-down-leave.ant-zoom-down-leave-active{animation-name:antZoomDownOut;animation-play-state:running;pointer-events:none}.ant-zoom-down-appear,.ant-zoom-down-enter{transform:scale(0);opacity:0;animation-timing-function:cubic-bezier(.08,.82,.17,1)}.ant-zoom-down-appear-prepare,.ant-zoom-down-enter-prepare{transform:none}.ant-zoom-down-leave{animation-timing-function:cubic-bezier(.78,.14,.15,.86)}.ant-zoom-left-appear,.ant-zoom-left-enter,.ant-zoom-left-leave{animation-duration:.2s;animation-fill-mode:both;animation-play-state:paused}.ant-zoom-left-appear.ant-zoom-left-appear-active,.ant-zoom-left-enter.ant-zoom-left-enter-active{animation-name:antZoomLeftIn;animation-play-state:running}.ant-zoom-left-leave.ant-zoom-left-leave-active{animation-name:antZoomLeftOut;animation-play-state:running;pointer-events:none}.ant-zoom-left-appear,.ant-zoom-left-enter{transform:scale(0);opacity:0;animation-timing-function:cubic-bezier(.08,.82,.17,1)}.ant-zoom-left-appear-prepare,.ant-zoom-left-enter-prepare{transform:none}.ant-zoom-left-leave{animation-timing-function:cubic-bezier(.78,.14,.15,.86)}.ant-zoom-right-appear,.ant-zoom-right-enter,.ant-zoom-right-leave{animation-duration:.2s;animation-fill-mode:both;animation-play-state:paused}.ant-zoom-right-appear.ant-zoom-right-appear-active,.ant-zoom-right-enter.ant-zoom-right-enter-active{animation-name:antZoomRightIn;animation-play-state:running}.ant-zoom-right-leave.ant-zoom-right-leave-active{animation-name:antZoomRightOut;animation-play-state:running;pointer-events:none}.ant-zoom-right-appear,.ant-zoom-right-enter{transform:scale(0);opacity:0;animation-timing-function:cubic-bezier(.08,.82,.17,1)}.ant-zoom-right-appear-prepare,.ant-zoom-right-enter-prepare{transform:none}.ant-zoom-right-leave{animation-timing-function:cubic-bezier(.78,.14,.15,.86)}@keyframes antZoomIn{0%{transform:scale(.2);opacity:0}to{transform:scale(1);opacity:1}}@keyframes antZoomOut{0%{transform:scale(1)}to{transform:scale(.2);opacity:0}}@keyframes antZoomBigIn{0%{transform:scale(.8);opacity:0}to{transform:scale(1);opacity:1}}@keyframes antZoomBigOut{0%{transform:scale(1)}to{transform:scale(.8);opacity:0}}@keyframes antZoomUpIn{0%{transform:scale(.8);transform-origin:50% 0;opacity:0}to{transform:scale(1);transform-origin:50% 0}}@keyframes antZoomUpOut{0%{transform:scale(1);transform-origin:50% 0}to{transform:scale(.8);transform-origin:50% 0;opacity:0}}@keyframes antZoomLeftIn{0%{transform:scale(.8);transform-origin:0 50%;opacity:0}to{transform:scale(1);transform-origin:0 50%}}@keyframes antZoomLeftOut{0%{transform:scale(1);transform-origin:0 50%}to{transform:scale(.8);transform-origin:0 50%;opacity:0}}@keyframes antZoomRightIn{0%{transform:scale(.8);transform-origin:100% 50%;opacity:0}to{transform:scale(1);transform-origin:100% 50%}}@keyframes antZoomRightOut{0%{transform:scale(1);transform-origin:100% 50%}to{transform:scale(.8);transform-origin:100% 50%;opacity:0}}@keyframes antZoomDownIn{0%{transform:scale(.8);transform-origin:50% 100%;opacity:0}to{transform:scale(1);transform-origin:50% 100%}}@keyframes antZoomDownOut{0%{transform:scale(1);transform-origin:50% 100%}to{transform:scale(.8);transform-origin:50% 100%;opacity:0}}.ant-motion-collapse-legacy{overflow:hidden}.ant-motion-collapse,.ant-motion-collapse-legacy-active{transition:height .2s cubic-bezier(.645,.045,.355,1),opacity .2s cubic-bezier(.645,.045,.355,1)!important}.ant-motion-collapse{overflow:hidden}.cdk-overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:1000}.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;outline:0;-webkit-appearance:none;-moz-appearance:none}.cdk-overlay-backdrop{top:0;bottom:0;left:0;right:0;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0;position:absolute;pointer-events:auto;z-index:1000}.cdk-overlay-backdrop.ant-modal-mask{opacity:1}.cdk-overlay-pane{position:absolute;pointer-events:auto;z-index:1000}.cdk-overlay-connected-position-bounding-box{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}.cdk-global-scrollblock body{overflow-x:visible}.nz-overlay-transparent-backdrop,.nz-overlay-transparent-backdrop.cdk-overlay-backdrop-showing{opacity:0}.nz-animate-disabled.ant-drawer.ant-drawer-open .ant-drawer-mask,.nz-animate-disabled.ant-scroll-number-only{animation:none;transition:none}.nz-animate-disabled.ant-drawer>*{transition:none}.nz-animate-disabled .ant-modal,.nz-animate-disabled .ant-modal-mask,.nz-animate-disabled .ant-modal-mask.zoom-enter,.nz-animate-disabled .ant-modal-mask.zoom-enter-active,.nz-animate-disabled .ant-modal-mask.zoom-leave,.nz-animate-disabled .ant-modal-mask.zoom-leave-active,.nz-animate-disabled .ant-modal.zoom-enter,.nz-animate-disabled .ant-modal.zoom-enter-active,.nz-animate-disabled .ant-modal.zoom-leave,.nz-animate-disabled .ant-modal.zoom-leave-active{animation:none;transition:none}.nz-animate-disabled.ant-collapse>.ant-collapse-item>.ant-collapse-header .ant-collapse-arrow svg,.nz-animate-disabled.ant-menu,.nz-animate-disabled.ant-menu .ant-menu-item,.nz-animate-disabled.ant-menu .ant-menu-item .anticon,.nz-animate-disabled.ant-menu .ant-menu-item .anticon+span,.nz-animate-disabled.ant-menu .ant-menu-submenu-title,.nz-animate-disabled.ant-menu .ant-menu-submenu-title .anticon,.nz-animate-disabled.ant-menu .ant-menu-submenu-title .anticon+span,.nz-animate-disabled.ant-tabs .ant-tabs-bottom-content.ant-tabs-content-animated,.nz-animate-disabled.ant-tabs .ant-tabs-bottom-content>.ant-tabs-tabpane,.nz-animate-disabled.ant-tabs .ant-tabs-top-content.ant-tabs-content-animated,.nz-animate-disabled.ant-tabs .ant-tabs-top-content>.ant-tabs-tabpane,.nz-animate-disabled.ant-tabs.ant-tabs-bottom .ant-tabs-ink-bar-animated,.nz-animate-disabled.ant-tabs.ant-tabs-left .ant-tabs-ink-bar-animated,.nz-animate-disabled.ant-tabs.ant-tabs-right .ant-tabs-ink-bar-animated,.nz-animate-disabled.ant-tabs.ant-tabs-top .ant-tabs-ink-bar-animated{transition:none}.ant-affix{position:fixed;z-index:10}nz-affix{display:block}.ant-alert{box-sizing:border-box;margin:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:relative;display:flex;align-items:center;padding:8px 15px;word-wrap:break-word;border-radius:2px}.ant-alert-content{flex:1;min-width:0}.ant-alert-icon{margin-right:8px}.ant-alert-description{display:none;font-size:14px;line-height:22px}.ant-alert-success{background-color:#f6ffed;border:1px solid #b7eb8f}.ant-alert-success .ant-alert-icon{color:#52c41a}.ant-alert-info{background-color:#e6f7ff;border:1px solid #91d5ff}.ant-alert-info .ant-alert-icon{color:#1890ff}.ant-alert-warning{background-color:#fffbe6;border:1px solid #ffe58f}.ant-alert-warning .ant-alert-icon{color:#faad14}.ant-alert-error{background-color:#fff2f0;border:1px solid #ffccc7}.ant-alert-error .ant-alert-icon{color:#ff4d4f}.ant-alert-error .ant-alert-description>pre{margin:0;padding:0}.ant-alert-action{margin-left:8px}.ant-alert-close-icon{margin-left:8px;padding:0;overflow:hidden;font-size:12px;line-height:12px;background-color:initial;border:none;outline:none;cursor:pointer}.ant-alert-close-icon .anticon-close{color:#00000073;transition:color .3s}.ant-alert-close-icon .anticon-close:hover{color:#000000bf}.ant-alert-close-text{color:#00000073;transition:color .3s}.ant-alert-close-text:hover{color:#000000bf}.ant-alert-with-description{align-items:flex-start;padding:15px 15px 15px 24px}.ant-alert-with-description.ant-alert-no-icon{padding:15px}.ant-alert-with-description .ant-alert-icon{margin-right:15px;font-size:24px}.ant-alert-with-description .ant-alert-message{display:block;margin-bottom:4px;color:#000000d9;font-size:16px}.ant-alert-message{color:#000000d9}.ant-alert-with-description .ant-alert-description{display:block}.ant-alert.ant-alert-motion-leave{overflow:hidden;opacity:1;transition:max-height .3s cubic-bezier(.78,.14,.15,.86),opacity .3s cubic-bezier(.78,.14,.15,.86),padding-top .3s cubic-bezier(.78,.14,.15,.86),padding-bottom .3s cubic-bezier(.78,.14,.15,.86),margin-bottom .3s cubic-bezier(.78,.14,.15,.86)}.ant-alert.ant-alert-motion-leave-active{max-height:0;margin-bottom:0!important;padding-top:0;padding-bottom:0;opacity:0}.ant-alert-banner{margin-bottom:0;border:0;border-radius:0}.ant-alert.ant-alert-rtl{direction:rtl}.ant-alert-rtl.ant-alert.ant-alert-no-icon{padding:8px 15px}.ant-alert-rtl .ant-alert-icon{margin-right:auto;margin-left:8px}.ant-alert-rtl .ant-alert-action,.ant-alert-rtl .ant-alert-close-icon{margin-right:8px;margin-left:auto}.ant-alert-rtl.ant-alert-with-description .ant-alert-icon{margin-right:auto;margin-left:15px}nz-alert{display:block}.ant-anchor{box-sizing:border-box;margin:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:relative;padding:0 0 0 2px}.ant-anchor-wrapper{margin-left:-4px;padding-left:4px;overflow:auto;background-color:initial}.ant-anchor-ink{position:absolute;top:0;left:0;height:100%}.ant-anchor-ink:before{position:relative;display:block;width:2px;height:100%;margin:0 auto;background-color:#f0f0f0;content:" "}.ant-anchor-ink-ball{position:absolute;left:50%;display:none;width:8px;height:8px;background-color:#fff;border:2px solid #1890ff;border-radius:8px;transform:translateX(-50%);transition:top .3s ease-in-out}.ant-anchor-ink-ball.visible{display:inline-block}.ant-anchor.fixed .ant-anchor-ink .ant-anchor-ink-ball{display:none}.ant-anchor-link{padding:7px 0 7px 16px;line-height:1.143}.ant-anchor-link-title{position:relative;display:block;margin-bottom:6px;overflow:hidden;color:#000000d9;white-space:nowrap;text-overflow:ellipsis;transition:all .3s}.ant-anchor-link-title:only-child{margin-bottom:0}.ant-anchor-link-active>.ant-anchor-link-title{color:#1890ff}.ant-anchor-link .ant-anchor-link{padding-top:5px;padding-bottom:5px}.ant-anchor-rtl{direction:rtl}.ant-anchor-rtl.ant-anchor-wrapper{margin-right:-4px;margin-left:0;padding-right:4px;padding-left:0}.ant-anchor-rtl .ant-anchor-ink{right:0;left:auto}.ant-anchor-rtl .ant-anchor-ink-ball{right:50%;left:0;transform:translateX(50%)}.ant-anchor-rtl .ant-anchor-link{padding:7px 16px 7px 0}nz-link{display:block}.ant-avatar{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:relative;display:inline-block;overflow:hidden;color:#fff;white-space:nowrap;text-align:center;vertical-align:middle;background:#ccc;width:32px;height:32px;line-height:32px;border-radius:50%}.ant-avatar-image{background:#0000}.ant-avatar .ant-image-img{display:block}.ant-avatar-string{position:absolute;left:50%;transform-origin:0 center}.ant-avatar.ant-avatar-icon{font-size:18px}.ant-avatar.ant-avatar-icon>.anticon{margin:0}.ant-avatar-lg{width:40px;height:40px;line-height:40px;border-radius:50%}.ant-avatar-lg-string{position:absolute;left:50%;transform-origin:0 center}.ant-avatar-lg.ant-avatar-icon{font-size:24px}.ant-avatar-lg.ant-avatar-icon>.anticon{margin:0}.ant-avatar-sm{width:24px;height:24px;line-height:24px;border-radius:50%}.ant-avatar-sm-string{position:absolute;left:50%;transform-origin:0 center}.ant-avatar-sm.ant-avatar-icon{font-size:14px}.ant-avatar-sm.ant-avatar-icon>.anticon{margin:0}.ant-avatar-square{border-radius:2px}.ant-avatar>img{display:block;width:100%;height:100%;object-fit:cover}.ant-avatar-group{display:inline-flex}.ant-avatar-group .ant-avatar{border:1px solid #fff}.ant-avatar-group .ant-avatar:not(:first-child){margin-left:-8px}.ant-avatar-group-popover .ant-avatar+.ant-avatar{margin-left:3px}.ant-avatar-group-rtl .ant-avatar:not(:first-child){margin-right:-8px;margin-left:0}.ant-avatar-group-popover.ant-popover-rtl .ant-avatar+.ant-avatar{margin-right:3px;margin-left:0}.ant-back-top{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:fixed;right:100px;bottom:50px;z-index:10;width:40px;height:40px;cursor:pointer}.ant-back-top:empty{display:none}.ant-back-top-rtl{right:auto;left:100px;direction:rtl}.ant-back-top-content{width:40px;height:40px;overflow:hidden;color:#fff;text-align:center;background-color:#00000073;border-radius:20px;transition:all .3s}.ant-back-top-content:hover{background-color:#000000d9;transition:all .3s}.ant-back-top-icon{font-size:24px;line-height:40px}@media screen and (max-width: 768px){.ant-back-top{right:60px}}@media screen and (max-width: 480px){.ant-back-top{right:20px}}.ant-badge{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:relative;display:inline-block;line-height:1}.ant-badge-count{z-index:auto;min-width:20px;height:20px;padding:0 6px;color:#fff;font-weight:400;font-size:12px;line-height:20px;white-space:nowrap;text-align:center;background:#ff4d4f;border-radius:10px;box-shadow:0 0 0 1px #fff}.ant-badge-count a,.ant-badge-count a:hover{color:#fff}.ant-badge-count-sm{min-width:14px;height:14px;padding:0;font-size:12px;line-height:14px;border-radius:7px}.ant-badge-multiple-words{padding:0 8px}.ant-badge-dot{z-index:auto;width:6px;min-width:6px;height:6px;background:#ff4d4f;border-radius:100%;box-shadow:0 0 0 1px #fff}.ant-badge-dot.ant-scroll-number{transition:background 1.5s}.ant-badge .ant-scroll-number-custom-component,.ant-badge-count,.ant-badge-dot{position:absolute;top:0;right:0;transform:translate(50%,-50%);transform-origin:100% 0}.ant-badge .ant-scroll-number-custom-component.anticon-spin,.ant-badge-count.anticon-spin,.ant-badge-dot.anticon-spin{animation:antBadgeLoadingCircle 1s linear infinite}.ant-badge-status{line-height:inherit;vertical-align:initial}.ant-badge-status-dot{position:relative;top:-1px;display:inline-block;width:6px;height:6px;vertical-align:middle;border-radius:50%}.ant-badge-status-success{background-color:#52c41a}.ant-badge-status-processing{position:relative;background-color:#1890ff}.ant-badge-status-processing:after{position:absolute;top:0;left:0;width:100%;height:100%;border:1px solid #1890ff;border-radius:50%;animation:antStatusProcessing 1.2s ease-in-out infinite;content:""}.ant-badge-status-default{background-color:#d9d9d9}.ant-badge-status-error{background-color:#ff4d4f}.ant-badge-status-warning{background-color:#faad14}.ant-badge-status-magenta,.ant-badge-status-pink{background:#eb2f96}.ant-badge-status-red{background:#f5222d}.ant-badge-status-volcano{background:#fa541c}.ant-badge-status-orange{background:#fa8c16}.ant-badge-status-yellow{background:#fadb14}.ant-badge-status-gold{background:#faad14}.ant-badge-status-cyan{background:#13c2c2}.ant-badge-status-lime{background:#a0d911}.ant-badge-status-green{background:#52c41a}.ant-badge-status-blue{background:#1890ff}.ant-badge-status-geekblue{background:#2f54eb}.ant-badge-status-purple{background:#722ed1}.ant-badge-status-text{margin-left:8px;color:#000000d9;font-size:14px}.ant-badge-zoom-appear,.ant-badge-zoom-enter{animation:antZoomBadgeIn .3s cubic-bezier(.12,.4,.29,1.46);animation-fill-mode:both}.ant-badge-zoom-leave{animation:antZoomBadgeOut .3s cubic-bezier(.71,-.46,.88,.6);animation-fill-mode:both}.ant-badge-not-a-wrapper .ant-badge-zoom-appear,.ant-badge-not-a-wrapper .ant-badge-zoom-enter{animation:antNoWrapperZoomBadgeIn .3s cubic-bezier(.12,.4,.29,1.46)}.ant-badge-not-a-wrapper .ant-badge-zoom-leave{animation:antNoWrapperZoomBadgeOut .3s cubic-bezier(.71,-.46,.88,.6)}.ant-badge-not-a-wrapper:not(.ant-badge-status){vertical-align:middle}.ant-badge-not-a-wrapper .ant-scroll-number-custom-component{transform:none}.ant-badge-not-a-wrapper .ant-scroll-number,.ant-badge-not-a-wrapper .ant-scroll-number-custom-component{position:relative;top:auto;display:block;transform-origin:50% 50%}@keyframes antStatusProcessing{0%{transform:scale(.8);opacity:.5}to{transform:scale(2.4);opacity:0}}.ant-scroll-number{overflow:hidden}.ant-scroll-number-only{position:relative;display:inline-block;transition:all .3s cubic-bezier(.645,.045,.355,1)}.ant-scroll-number-only,.ant-scroll-number-only>p.ant-scroll-number-only-unit{height:20px;-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.ant-scroll-number-only>p.ant-scroll-number-only-unit{margin:0}.ant-scroll-number-symbol{vertical-align:top}@keyframes antZoomBadgeIn{0%{transform:scale(0) translate(50%,-50%);opacity:0}to{transform:scale(1) translate(50%,-50%)}}@keyframes antZoomBadgeOut{0%{transform:scale(1) translate(50%,-50%)}to{transform:scale(0) translate(50%,-50%);opacity:0}}@keyframes antNoWrapperZoomBadgeIn{0%{transform:scale(0);opacity:0}to{transform:scale(1)}}@keyframes antNoWrapperZoomBadgeOut{0%{transform:scale(1)}to{transform:scale(0);opacity:0}}@keyframes antBadgeLoadingCircle{0%{transform-origin:50%}to{transform:translate(50%,-50%) rotate(1turn);transform-origin:50%}}.ant-ribbon-wrapper{position:relative}.ant-ribbon{box-sizing:border-box;margin:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:absolute;top:8px;height:22px;padding:0 8px;color:#fff;line-height:22px;white-space:nowrap;background-color:#1890ff;border-radius:2px}.ant-ribbon-text{color:#fff}.ant-ribbon-corner{position:absolute;top:100%;width:8px;height:8px;color:currentColor;border:4px solid;transform:scaleY(.75);transform-origin:top}.ant-ribbon-corner:after{position:absolute;top:-4px;left:-4px;width:inherit;height:inherit;color:#00000040;border:inherit;content:""}.ant-ribbon-color-magenta,.ant-ribbon-color-pink{color:#eb2f96;background:#eb2f96}.ant-ribbon-color-red{color:#f5222d;background:#f5222d}.ant-ribbon-color-volcano{color:#fa541c;background:#fa541c}.ant-ribbon-color-orange{color:#fa8c16;background:#fa8c16}.ant-ribbon-color-yellow{color:#fadb14;background:#fadb14}.ant-ribbon-color-gold{color:#faad14;background:#faad14}.ant-ribbon-color-cyan{color:#13c2c2;background:#13c2c2}.ant-ribbon-color-lime{color:#a0d911;background:#a0d911}.ant-ribbon-color-green{color:#52c41a;background:#52c41a}.ant-ribbon-color-blue{color:#1890ff;background:#1890ff}.ant-ribbon-color-geekblue{color:#2f54eb;background:#2f54eb}.ant-ribbon-color-purple{color:#722ed1;background:#722ed1}.ant-ribbon.ant-ribbon-placement-end{right:-8px;border-bottom-right-radius:0}.ant-ribbon.ant-ribbon-placement-end .ant-ribbon-corner{right:0;border-color:currentColor #0000 #0000 currentColor}.ant-ribbon.ant-ribbon-placement-start{left:-8px;border-bottom-left-radius:0}.ant-ribbon.ant-ribbon-placement-start .ant-ribbon-corner{left:0;border-color:currentColor currentColor #0000 #0000}.ant-badge-rtl{direction:rtl}.ant-badge-rtl .ant-badge .ant-scroll-number-custom-component,.ant-badge-rtl .ant-badge-count,.ant-badge-rtl .ant-badge-dot{right:auto;left:0;direction:ltr;transform:translate(-50%,-50%);transform-origin:0 0}.ant-badge-rtl.ant-badge .ant-scroll-number-custom-component{right:auto;left:0;transform:translate(-50%,-50%);transform-origin:0 0}.ant-badge-rtl .ant-badge-status-text{margin-right:8px;margin-left:0}.ant-badge-rtl .ant-badge-zoom-appear,.ant-badge-rtl .ant-badge-zoom-enter{animation-name:antZoomBadgeInRtl}.ant-badge-rtl .ant-badge-zoom-leave{animation-name:antZoomBadgeOutRtl}.ant-badge-not-a-wrapper .ant-badge-count{transform:none}.ant-ribbon-rtl{direction:rtl}.ant-ribbon-rtl.ant-ribbon-placement-end{right:unset;left:-8px;border-bottom-right-radius:2px;border-bottom-left-radius:0}.ant-ribbon-rtl.ant-ribbon-placement-end .ant-ribbon-corner{right:unset;left:0;border-color:currentColor currentColor #0000 #0000}.ant-ribbon-rtl.ant-ribbon-placement-end .ant-ribbon-corner:after{border-color:currentColor currentColor #0000 #0000}.ant-ribbon-rtl.ant-ribbon-placement-start{right:-8px;left:unset;border-bottom-right-radius:0;border-bottom-left-radius:2px}.ant-ribbon-rtl.ant-ribbon-placement-start .ant-ribbon-corner{right:0;left:unset;border-color:currentColor #0000 #0000 currentColor}.ant-ribbon-rtl.ant-ribbon-placement-start .ant-ribbon-corner:after{border-color:currentColor #0000 #0000 currentColor}@keyframes antZoomBadgeInRtl{0%{transform:scale(0) translate(-50%,-50%);opacity:0}to{transform:scale(1) translate(-50%,-50%)}}@keyframes antZoomBadgeOutRtl{0%{transform:scale(1) translate(-50%,-50%)}to{transform:scale(0) translate(-50%,-50%);opacity:0}}.ant-badge .ant-scroll-number:only-child{position:relative;top:auto;display:block}.ant-badge .ant-badge-count:only-child{transform:none}nz-ribbon{display:block}.ant-breadcrumb{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";color:#00000073;font-size:14px}.ant-breadcrumb .anticon{font-size:14px}.ant-breadcrumb a{color:#00000073;transition:color .3s}.ant-breadcrumb a:hover{color:#40a9ff}.ant-breadcrumb>span:last-child,.ant-breadcrumb>span:last-child a{color:#000000d9}.ant-breadcrumb>span:last-child .ant-breadcrumb-separator{display:none}.ant-breadcrumb-separator{margin:0 8px;color:#00000073}.ant-breadcrumb-link>.anticon+a,.ant-breadcrumb-link>.anticon+span,.ant-breadcrumb-overlay-link>.anticon{margin-left:4px}.ant-breadcrumb-rtl{direction:rtl}.ant-breadcrumb-rtl:before{display:table;content:""}.ant-breadcrumb-rtl:after{display:table;clear:both;content:""}.ant-breadcrumb-rtl>span{float:right}.ant-breadcrumb-rtl .ant-breadcrumb-link>.anticon+a,.ant-breadcrumb-rtl .ant-breadcrumb-link>.anticon+span,.ant-breadcrumb-rtl .ant-breadcrumb-overlay-link>.anticon{margin-right:4px;margin-left:0}.ant-breadcrumb-link .anticon+span{margin-left:4px}.ant-breadcrumb>nz-breadcrumb-item:last-child,.ant-breadcrumb>nz-breadcrumb-item:last-child a{color:#000000d9}.ant-breadcrumb-rtl>nz-breadcrumb-item{float:right}nz-breadcrumb{display:block}nz-breadcrumb-item:last-child .ant-breadcrumb-separator{display:none}.ant-btn{line-height:1.5715;position:relative;display:inline-block;font-weight:400;white-space:nowrap;text-align:center;background-image:none;box-shadow:0 2px 0 rgba(0,0,0,.015);cursor:pointer;transition:all .3s cubic-bezier(.645,.045,.355,1);-webkit-user-select:none;user-select:none;touch-action:manipulation;height:32px;padding:4px 15px;font-size:14px;border-radius:2px;color:#000000d9;border:1px solid #d9d9d9;background:#fff}.ant-btn>.anticon{line-height:1}.ant-btn,.ant-btn:active,.ant-btn:focus{outline:0}.ant-btn:not([disabled]):hover{text-decoration:none}.ant-btn:not([disabled]):active{outline:0;box-shadow:none}.ant-btn[disabled]{cursor:not-allowed}.ant-btn[disabled]>*{pointer-events:none}.ant-btn-lg{height:40px;padding:6.4px 15px;font-size:16px;border-radius:2px}.ant-btn-sm{height:24px;padding:0 7px;font-size:14px;border-radius:2px}.ant-btn>a:only-child{color:currentColor}.ant-btn>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn:focus,.ant-btn:hover{color:#40a9ff;border-color:#40a9ff;background:#fff}.ant-btn:focus>a:only-child,.ant-btn:hover>a:only-child{color:currentColor}.ant-btn:focus>a:only-child:after,.ant-btn:hover>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn:active{color:#096dd9;border-color:#096dd9;background:#fff}.ant-btn:active>a:only-child{color:currentColor}.ant-btn:active>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn[disabled],.ant-btn[disabled]:active,.ant-btn[disabled]:focus,.ant-btn[disabled]:hover{color:#00000040;border-color:#d9d9d9;background:#f5f5f5;text-shadow:none;box-shadow:none}.ant-btn[disabled]:active>a:only-child,.ant-btn[disabled]:focus>a:only-child,.ant-btn[disabled]:hover>a:only-child,.ant-btn[disabled]>a:only-child{color:currentColor}.ant-btn[disabled]:active>a:only-child:after,.ant-btn[disabled]:focus>a:only-child:after,.ant-btn[disabled]:hover>a:only-child:after,.ant-btn[disabled]>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn:active,.ant-btn:focus,.ant-btn:hover{text-decoration:none;background:#fff}.ant-btn>span{display:inline-block}.ant-btn-primary{color:#fff;border-color:#1890ff;background:#1890ff;text-shadow:0 -1px 0 #0000001f;box-shadow:0 2px 0 rgba(0,0,0,.045)}.ant-btn-primary>a:only-child{color:currentColor}.ant-btn-primary>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-primary:focus,.ant-btn-primary:hover{color:#fff;border-color:#40a9ff;background:#40a9ff}.ant-btn-primary:focus>a:only-child,.ant-btn-primary:hover>a:only-child{color:currentColor}.ant-btn-primary:focus>a:only-child:after,.ant-btn-primary:hover>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-primary:active{color:#fff;border-color:#096dd9;background:#096dd9}.ant-btn-primary:active>a:only-child{color:currentColor}.ant-btn-primary:active>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-primary[disabled],.ant-btn-primary[disabled]:active,.ant-btn-primary[disabled]:focus,.ant-btn-primary[disabled]:hover{color:#00000040;border-color:#d9d9d9;background:#f5f5f5;text-shadow:none;box-shadow:none}.ant-btn-primary[disabled]:active>a:only-child,.ant-btn-primary[disabled]:focus>a:only-child,.ant-btn-primary[disabled]:hover>a:only-child,.ant-btn-primary[disabled]>a:only-child{color:currentColor}.ant-btn-primary[disabled]:active>a:only-child:after,.ant-btn-primary[disabled]:focus>a:only-child:after,.ant-btn-primary[disabled]:hover>a:only-child:after,.ant-btn-primary[disabled]>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-group .ant-btn-primary:not(:first-child):not(:last-child){border-right-color:#40a9ff;border-left-color:#40a9ff}.ant-btn-group .ant-btn-primary:not(:first-child):not(:last-child):disabled{border-color:#d9d9d9}.ant-btn-group .ant-btn-primary:first-child:not(:last-child){border-right-color:#40a9ff}.ant-btn-group .ant-btn-primary:first-child:not(:last-child)[disabled]{border-right-color:#d9d9d9}.ant-btn-group .ant-btn-primary+.ant-btn-primary,.ant-btn-group .ant-btn-primary:last-child:not(:first-child){border-left-color:#40a9ff}.ant-btn-group .ant-btn-primary+.ant-btn-primary[disabled],.ant-btn-group .ant-btn-primary:last-child:not(:first-child)[disabled]{border-left-color:#d9d9d9}.ant-btn-ghost{color:#000000d9;border-color:#d9d9d9;background:#0000}.ant-btn-ghost>a:only-child{color:currentColor}.ant-btn-ghost>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-ghost:focus,.ant-btn-ghost:hover{color:#40a9ff;border-color:#40a9ff;background:#0000}.ant-btn-ghost:focus>a:only-child,.ant-btn-ghost:hover>a:only-child{color:currentColor}.ant-btn-ghost:focus>a:only-child:after,.ant-btn-ghost:hover>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-ghost:active{color:#096dd9;border-color:#096dd9;background:#0000}.ant-btn-ghost:active>a:only-child{color:currentColor}.ant-btn-ghost:active>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-ghost[disabled],.ant-btn-ghost[disabled]:active,.ant-btn-ghost[disabled]:focus,.ant-btn-ghost[disabled]:hover{color:#00000040;border-color:#d9d9d9;background:#f5f5f5;text-shadow:none;box-shadow:none}.ant-btn-ghost[disabled]:active>a:only-child,.ant-btn-ghost[disabled]:focus>a:only-child,.ant-btn-ghost[disabled]:hover>a:only-child,.ant-btn-ghost[disabled]>a:only-child{color:currentColor}.ant-btn-ghost[disabled]:active>a:only-child:after,.ant-btn-ghost[disabled]:focus>a:only-child:after,.ant-btn-ghost[disabled]:hover>a:only-child:after,.ant-btn-ghost[disabled]>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-dashed{color:#000000d9;border-color:#d9d9d9;background:#fff;border-style:dashed}.ant-btn-dashed>a:only-child{color:currentColor}.ant-btn-dashed>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-dashed:focus,.ant-btn-dashed:hover{color:#40a9ff;border-color:#40a9ff;background:#fff}.ant-btn-dashed:focus>a:only-child,.ant-btn-dashed:hover>a:only-child{color:currentColor}.ant-btn-dashed:focus>a:only-child:after,.ant-btn-dashed:hover>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-dashed:active{color:#096dd9;border-color:#096dd9;background:#fff}.ant-btn-dashed:active>a:only-child{color:currentColor}.ant-btn-dashed:active>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-dashed[disabled],.ant-btn-dashed[disabled]:active,.ant-btn-dashed[disabled]:focus,.ant-btn-dashed[disabled]:hover{color:#00000040;border-color:#d9d9d9;background:#f5f5f5;text-shadow:none;box-shadow:none}.ant-btn-dashed[disabled]:active>a:only-child,.ant-btn-dashed[disabled]:focus>a:only-child,.ant-btn-dashed[disabled]:hover>a:only-child,.ant-btn-dashed[disabled]>a:only-child{color:currentColor}.ant-btn-dashed[disabled]:active>a:only-child:after,.ant-btn-dashed[disabled]:focus>a:only-child:after,.ant-btn-dashed[disabled]:hover>a:only-child:after,.ant-btn-dashed[disabled]>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-danger{color:#fff;border-color:#ff4d4f;background:#ff4d4f;text-shadow:0 -1px 0 #0000001f;box-shadow:0 2px 0 rgba(0,0,0,.045)}.ant-btn-danger>a:only-child{color:currentColor}.ant-btn-danger>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-danger:focus,.ant-btn-danger:hover{color:#fff;border-color:#ff7875;background:#ff7875}.ant-btn-danger:focus>a:only-child,.ant-btn-danger:hover>a:only-child{color:currentColor}.ant-btn-danger:focus>a:only-child:after,.ant-btn-danger:hover>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-danger:active{color:#fff;border-color:#d9363e;background:#d9363e}.ant-btn-danger:active>a:only-child{color:currentColor}.ant-btn-danger:active>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-danger[disabled],.ant-btn-danger[disabled]:active,.ant-btn-danger[disabled]:focus,.ant-btn-danger[disabled]:hover{color:#00000040;border-color:#d9d9d9;background:#f5f5f5;text-shadow:none;box-shadow:none}.ant-btn-danger[disabled]:active>a:only-child,.ant-btn-danger[disabled]:focus>a:only-child,.ant-btn-danger[disabled]:hover>a:only-child,.ant-btn-danger[disabled]>a:only-child{color:currentColor}.ant-btn-danger[disabled]:active>a:only-child:after,.ant-btn-danger[disabled]:focus>a:only-child:after,.ant-btn-danger[disabled]:hover>a:only-child:after,.ant-btn-danger[disabled]>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-link{color:#1890ff;border-color:#0000;background:#0000;box-shadow:none}.ant-btn-link>a:only-child{color:currentColor}.ant-btn-link>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-link:focus,.ant-btn-link:hover{color:#40a9ff;border-color:#40a9ff;background:#0000}.ant-btn-link:focus>a:only-child,.ant-btn-link:hover>a:only-child{color:currentColor}.ant-btn-link:focus>a:only-child:after,.ant-btn-link:hover>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-link:active{color:#096dd9;border-color:#096dd9;background:#0000}.ant-btn-link:active>a:only-child{color:currentColor}.ant-btn-link:active>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-link[disabled],.ant-btn-link[disabled]:active,.ant-btn-link[disabled]:focus,.ant-btn-link[disabled]:hover{border-color:#d9d9d9;background:#f5f5f5}.ant-btn-link:hover{background:#0000}.ant-btn-link:active,.ant-btn-link:focus,.ant-btn-link:hover{border-color:#0000}.ant-btn-link[disabled],.ant-btn-link[disabled]:active,.ant-btn-link[disabled]:focus,.ant-btn-link[disabled]:hover{color:#00000040;border-color:#0000;background:#0000;text-shadow:none;box-shadow:none}.ant-btn-link[disabled]:active>a:only-child,.ant-btn-link[disabled]:focus>a:only-child,.ant-btn-link[disabled]:hover>a:only-child,.ant-btn-link[disabled]>a:only-child{color:currentColor}.ant-btn-link[disabled]:active>a:only-child:after,.ant-btn-link[disabled]:focus>a:only-child:after,.ant-btn-link[disabled]:hover>a:only-child:after,.ant-btn-link[disabled]>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-text{color:#000000d9;border-color:#0000;background:#0000;box-shadow:none}.ant-btn-text>a:only-child{color:currentColor}.ant-btn-text>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-text:focus,.ant-btn-text:hover{color:#40a9ff;border-color:#40a9ff;background:#0000}.ant-btn-text:focus>a:only-child,.ant-btn-text:hover>a:only-child{color:currentColor}.ant-btn-text:focus>a:only-child:after,.ant-btn-text:hover>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-text:active{color:#096dd9;border-color:#096dd9;background:#0000}.ant-btn-text:active>a:only-child{color:currentColor}.ant-btn-text:active>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-text[disabled],.ant-btn-text[disabled]:active,.ant-btn-text[disabled]:focus,.ant-btn-text[disabled]:hover{border-color:#d9d9d9;background:#f5f5f5}.ant-btn-text:focus,.ant-btn-text:hover{color:#000000d9;background:rgba(0,0,0,.018);border-color:#0000}.ant-btn-text:active{color:#000000d9;background:rgba(0,0,0,.028);border-color:#0000}.ant-btn-text[disabled],.ant-btn-text[disabled]:active,.ant-btn-text[disabled]:focus,.ant-btn-text[disabled]:hover{color:#00000040;border-color:#0000;background:#0000;text-shadow:none;box-shadow:none}.ant-btn-text[disabled]:active>a:only-child,.ant-btn-text[disabled]:focus>a:only-child,.ant-btn-text[disabled]:hover>a:only-child,.ant-btn-text[disabled]>a:only-child{color:currentColor}.ant-btn-text[disabled]:active>a:only-child:after,.ant-btn-text[disabled]:focus>a:only-child:after,.ant-btn-text[disabled]:hover>a:only-child:after,.ant-btn-text[disabled]>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-dangerous{color:#ff4d4f;border-color:#ff4d4f;background:#fff}.ant-btn-dangerous>a:only-child{color:currentColor}.ant-btn-dangerous>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-dangerous:focus,.ant-btn-dangerous:hover{color:#ff7875;border-color:#ff7875;background:#fff}.ant-btn-dangerous:focus>a:only-child,.ant-btn-dangerous:hover>a:only-child{color:currentColor}.ant-btn-dangerous:focus>a:only-child:after,.ant-btn-dangerous:hover>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-dangerous:active{color:#d9363e;border-color:#d9363e;background:#fff}.ant-btn-dangerous:active>a:only-child{color:currentColor}.ant-btn-dangerous:active>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-dangerous[disabled],.ant-btn-dangerous[disabled]:active,.ant-btn-dangerous[disabled]:focus,.ant-btn-dangerous[disabled]:hover{color:#00000040;border-color:#d9d9d9;background:#f5f5f5;text-shadow:none;box-shadow:none}.ant-btn-dangerous[disabled]:active>a:only-child,.ant-btn-dangerous[disabled]:focus>a:only-child,.ant-btn-dangerous[disabled]:hover>a:only-child,.ant-btn-dangerous[disabled]>a:only-child{color:currentColor}.ant-btn-dangerous[disabled]:active>a:only-child:after,.ant-btn-dangerous[disabled]:focus>a:only-child:after,.ant-btn-dangerous[disabled]:hover>a:only-child:after,.ant-btn-dangerous[disabled]>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-dangerous.ant-btn-primary{color:#fff;border-color:#ff4d4f;background:#ff4d4f;text-shadow:0 -1px 0 #0000001f;box-shadow:0 2px 0 rgba(0,0,0,.045)}.ant-btn-dangerous.ant-btn-primary>a:only-child{color:currentColor}.ant-btn-dangerous.ant-btn-primary>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-dangerous.ant-btn-primary:focus,.ant-btn-dangerous.ant-btn-primary:hover{color:#fff;border-color:#ff7875;background:#ff7875}.ant-btn-dangerous.ant-btn-primary:focus>a:only-child,.ant-btn-dangerous.ant-btn-primary:hover>a:only-child{color:currentColor}.ant-btn-dangerous.ant-btn-primary:focus>a:only-child:after,.ant-btn-dangerous.ant-btn-primary:hover>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-dangerous.ant-btn-primary:active{color:#fff;border-color:#d9363e;background:#d9363e}.ant-btn-dangerous.ant-btn-primary:active>a:only-child{color:currentColor}.ant-btn-dangerous.ant-btn-primary:active>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-dangerous.ant-btn-primary[disabled],.ant-btn-dangerous.ant-btn-primary[disabled]:active,.ant-btn-dangerous.ant-btn-primary[disabled]:focus,.ant-btn-dangerous.ant-btn-primary[disabled]:hover{color:#00000040;border-color:#d9d9d9;background:#f5f5f5;text-shadow:none;box-shadow:none}.ant-btn-dangerous.ant-btn-primary[disabled]:active>a:only-child,.ant-btn-dangerous.ant-btn-primary[disabled]:focus>a:only-child,.ant-btn-dangerous.ant-btn-primary[disabled]:hover>a:only-child,.ant-btn-dangerous.ant-btn-primary[disabled]>a:only-child{color:currentColor}.ant-btn-dangerous.ant-btn-primary[disabled]:active>a:only-child:after,.ant-btn-dangerous.ant-btn-primary[disabled]:focus>a:only-child:after,.ant-btn-dangerous.ant-btn-primary[disabled]:hover>a:only-child:after,.ant-btn-dangerous.ant-btn-primary[disabled]>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-dangerous.ant-btn-link{color:#ff4d4f;border-color:#0000;background:#0000;box-shadow:none}.ant-btn-dangerous.ant-btn-link>a:only-child{color:currentColor}.ant-btn-dangerous.ant-btn-link>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-dangerous.ant-btn-link:focus,.ant-btn-dangerous.ant-btn-link:hover{color:#40a9ff;border-color:#40a9ff}.ant-btn-dangerous.ant-btn-link:active{color:#096dd9;border-color:#096dd9}.ant-btn-dangerous.ant-btn-link[disabled],.ant-btn-dangerous.ant-btn-link[disabled]:active,.ant-btn-dangerous.ant-btn-link[disabled]:focus,.ant-btn-dangerous.ant-btn-link[disabled]:hover{border-color:#d9d9d9;background:#f5f5f5}.ant-btn-dangerous.ant-btn-link:focus,.ant-btn-dangerous.ant-btn-link:hover{color:#ff7875;border-color:#0000;background:#0000}.ant-btn-dangerous.ant-btn-link:focus>a:only-child,.ant-btn-dangerous.ant-btn-link:hover>a:only-child{color:currentColor}.ant-btn-dangerous.ant-btn-link:focus>a:only-child:after,.ant-btn-dangerous.ant-btn-link:hover>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-dangerous.ant-btn-link:active{color:#d9363e;border-color:#0000;background:#0000}.ant-btn-dangerous.ant-btn-link:active>a:only-child{color:currentColor}.ant-btn-dangerous.ant-btn-link:active>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-dangerous.ant-btn-link[disabled],.ant-btn-dangerous.ant-btn-link[disabled]:active,.ant-btn-dangerous.ant-btn-link[disabled]:focus,.ant-btn-dangerous.ant-btn-link[disabled]:hover{color:#00000040;border-color:#0000;background:#0000;text-shadow:none;box-shadow:none}.ant-btn-dangerous.ant-btn-link[disabled]:active>a:only-child,.ant-btn-dangerous.ant-btn-link[disabled]:focus>a:only-child,.ant-btn-dangerous.ant-btn-link[disabled]:hover>a:only-child,.ant-btn-dangerous.ant-btn-link[disabled]>a:only-child{color:currentColor}.ant-btn-dangerous.ant-btn-link[disabled]:active>a:only-child:after,.ant-btn-dangerous.ant-btn-link[disabled]:focus>a:only-child:after,.ant-btn-dangerous.ant-btn-link[disabled]:hover>a:only-child:after,.ant-btn-dangerous.ant-btn-link[disabled]>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-dangerous.ant-btn-text{color:#ff4d4f;border-color:#0000;background:#0000;box-shadow:none}.ant-btn-dangerous.ant-btn-text>a:only-child{color:currentColor}.ant-btn-dangerous.ant-btn-text>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-dangerous.ant-btn-text:focus,.ant-btn-dangerous.ant-btn-text:hover{color:#40a9ff;border-color:#40a9ff;background:#0000}.ant-btn-dangerous.ant-btn-text:active{color:#096dd9;border-color:#096dd9;background:#0000}.ant-btn-dangerous.ant-btn-text[disabled],.ant-btn-dangerous.ant-btn-text[disabled]:active,.ant-btn-dangerous.ant-btn-text[disabled]:focus,.ant-btn-dangerous.ant-btn-text[disabled]:hover{border-color:#d9d9d9;background:#f5f5f5}.ant-btn-dangerous.ant-btn-text:focus,.ant-btn-dangerous.ant-btn-text:hover{color:#ff7875;border-color:#0000;background:rgba(0,0,0,.018)}.ant-btn-dangerous.ant-btn-text:focus>a:only-child,.ant-btn-dangerous.ant-btn-text:hover>a:only-child{color:currentColor}.ant-btn-dangerous.ant-btn-text:focus>a:only-child:after,.ant-btn-dangerous.ant-btn-text:hover>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-dangerous.ant-btn-text:active{color:#d9363e;border-color:#0000;background:rgba(0,0,0,.028)}.ant-btn-dangerous.ant-btn-text:active>a:only-child{color:currentColor}.ant-btn-dangerous.ant-btn-text:active>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-dangerous.ant-btn-text[disabled],.ant-btn-dangerous.ant-btn-text[disabled]:active,.ant-btn-dangerous.ant-btn-text[disabled]:focus,.ant-btn-dangerous.ant-btn-text[disabled]:hover{color:#00000040;border-color:#0000;background:#0000;text-shadow:none;box-shadow:none}.ant-btn-dangerous.ant-btn-text[disabled]:active>a:only-child,.ant-btn-dangerous.ant-btn-text[disabled]:focus>a:only-child,.ant-btn-dangerous.ant-btn-text[disabled]:hover>a:only-child,.ant-btn-dangerous.ant-btn-text[disabled]>a:only-child{color:currentColor}.ant-btn-dangerous.ant-btn-text[disabled]:active>a:only-child:after,.ant-btn-dangerous.ant-btn-text[disabled]:focus>a:only-child:after,.ant-btn-dangerous.ant-btn-text[disabled]:hover>a:only-child:after,.ant-btn-dangerous.ant-btn-text[disabled]>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-icon-only{width:32px;height:32px;padding:2.4px 0;font-size:16px;border-radius:2px;vertical-align:-3px}.ant-btn-icon-only>*{font-size:16px}.ant-btn-icon-only.ant-btn-lg{width:40px;height:40px;padding:4.9px 0;font-size:18px;border-radius:2px}.ant-btn-icon-only.ant-btn-lg>*{font-size:18px}.ant-btn-icon-only.ant-btn-sm{width:24px;height:24px;padding:0;font-size:14px;border-radius:2px}.ant-btn-icon-only.ant-btn-sm>*{font-size:14px}.ant-btn-icon-only>.anticon{display:flex;justify-content:center}.ant-btn-round{height:32px;padding:4px 16px;font-size:14px;border-radius:32px}.ant-btn-round.ant-btn-lg{height:40px;padding:6.4px 20px;font-size:16px;border-radius:40px}.ant-btn-round.ant-btn-sm{height:24px;padding:0 12px;font-size:14px;border-radius:24px}.ant-btn-round.ant-btn-icon-only{width:auto}.ant-btn-circle{min-width:32px;padding-right:0;padding-left:0;text-align:center;border-radius:50%}.ant-btn-circle.ant-btn-lg{min-width:40px;border-radius:50%}.ant-btn-circle.ant-btn-sm{min-width:24px;border-radius:50%}.ant-btn:before{position:absolute;top:-1px;right:-1px;bottom:-1px;left:-1px;z-index:1;display:none;background:#fff;border-radius:inherit;opacity:.35;transition:opacity .2s;content:"";pointer-events:none}.ant-btn .anticon{transition:margin-left .3s cubic-bezier(.645,.045,.355,1)}.ant-btn .anticon.anticon-minus>svg,.ant-btn .anticon.anticon-plus>svg{shape-rendering:optimizeSpeed}.ant-btn.ant-btn-loading{position:relative}.ant-btn.ant-btn-loading:not([disabled]){pointer-events:none}.ant-btn.ant-btn-loading:before{display:block}.ant-btn>.ant-btn-loading-icon{transition:all .3s cubic-bezier(.645,.045,.355,1)}.ant-btn>.ant-btn-loading-icon .anticon{padding-right:8px;animation:none}.ant-btn>.ant-btn-loading-icon .anticon svg{animation:loadingCircle 1s linear infinite}.ant-btn-group{display:inline-flex}.ant-btn-group,.ant-btn-group>.ant-btn,.ant-btn-group>span>.ant-btn{position:relative}.ant-btn-group>.ant-btn:active,.ant-btn-group>.ant-btn:focus,.ant-btn-group>.ant-btn:hover,.ant-btn-group>span>.ant-btn:active,.ant-btn-group>span>.ant-btn:focus,.ant-btn-group>span>.ant-btn:hover{z-index:2}.ant-btn-group>.ant-btn[disabled],.ant-btn-group>span>.ant-btn[disabled]{z-index:0}.ant-btn-group .ant-btn-icon-only{font-size:14px}.ant-btn-group-lg>.ant-btn,.ant-btn-group-lg>span>.ant-btn{height:40px;padding:6.4px 15px;font-size:16px;border-radius:0}.ant-btn-group-lg .ant-btn.ant-btn-icon-only{width:40px;height:40px;padding-right:0;padding-left:0}.ant-btn-group-sm>.ant-btn,.ant-btn-group-sm>span>.ant-btn{height:24px;padding:0 7px;font-size:14px;border-radius:0}.ant-btn-group-sm>.ant-btn>.anticon,.ant-btn-group-sm>span>.ant-btn>.anticon{font-size:14px}.ant-btn-group-sm .ant-btn.ant-btn-icon-only{width:24px;height:24px;padding-right:0;padding-left:0}.ant-btn+.ant-btn-group,.ant-btn-group .ant-btn+.ant-btn,.ant-btn-group .ant-btn+span,.ant-btn-group span+.ant-btn,.ant-btn-group+.ant-btn,.ant-btn-group+.ant-btn-group,.ant-btn-group>span+span{margin-left:-1px}.ant-btn-group .ant-btn-primary+.ant-btn:not(.ant-btn-primary):not([disabled]){border-left-color:#0000}.ant-btn-group .ant-btn{border-radius:0}.ant-btn-group>.ant-btn:first-child,.ant-btn-group>span:first-child>.ant-btn{margin-left:0}.ant-btn-group>.ant-btn:only-child,.ant-btn-group>span:only-child>.ant-btn{border-radius:2px}.ant-btn-group>.ant-btn:first-child:not(:last-child),.ant-btn-group>span:first-child:not(:last-child)>.ant-btn{border-top-left-radius:2px;border-bottom-left-radius:2px}.ant-btn-group>.ant-btn:last-child:not(:first-child),.ant-btn-group>span:last-child:not(:first-child)>.ant-btn{border-top-right-radius:2px;border-bottom-right-radius:2px}.ant-btn-group-sm>.ant-btn:only-child,.ant-btn-group-sm>span:only-child>.ant-btn{border-radius:2px}.ant-btn-group-sm>.ant-btn:first-child:not(:last-child),.ant-btn-group-sm>span:first-child:not(:last-child)>.ant-btn{border-top-left-radius:2px;border-bottom-left-radius:2px}.ant-btn-group-sm>.ant-btn:last-child:not(:first-child),.ant-btn-group-sm>span:last-child:not(:first-child)>.ant-btn{border-top-right-radius:2px;border-bottom-right-radius:2px}.ant-btn-group>.ant-btn-group{float:left}.ant-btn-group>.ant-btn-group:not(:first-child):not(:last-child)>.ant-btn{border-radius:0}.ant-btn-group>.ant-btn-group:first-child:not(:last-child)>.ant-btn:last-child{padding-right:8px;border-top-right-radius:0;border-bottom-right-radius:0}.ant-btn-group>.ant-btn-group:last-child:not(:first-child)>.ant-btn:first-child{padding-left:8px;border-top-left-radius:0;border-bottom-left-radius:0}.ant-btn-group-rtl.ant-btn+.ant-btn-group,.ant-btn-group-rtl.ant-btn-group .ant-btn+.ant-btn,.ant-btn-group-rtl.ant-btn-group .ant-btn+span,.ant-btn-group-rtl.ant-btn-group span+.ant-btn,.ant-btn-group-rtl.ant-btn-group+.ant-btn,.ant-btn-group-rtl.ant-btn-group+.ant-btn-group,.ant-btn-group-rtl.ant-btn-group>span+span,.ant-btn-rtl.ant-btn+.ant-btn-group,.ant-btn-rtl.ant-btn-group .ant-btn+.ant-btn,.ant-btn-rtl.ant-btn-group .ant-btn+span,.ant-btn-rtl.ant-btn-group span+.ant-btn,.ant-btn-rtl.ant-btn-group+.ant-btn,.ant-btn-rtl.ant-btn-group+.ant-btn-group,.ant-btn-rtl.ant-btn-group>span+span{margin-right:-1px;margin-left:auto}.ant-btn-group.ant-btn-group-rtl{direction:rtl}.ant-btn-group-rtl.ant-btn-group>.ant-btn:first-child:not(:last-child),.ant-btn-group-rtl.ant-btn-group>span:first-child:not(:last-child)>.ant-btn{border-top-left-radius:0;border-top-right-radius:2px;border-bottom-right-radius:2px;border-bottom-left-radius:0}.ant-btn-group-rtl.ant-btn-group>.ant-btn:last-child:not(:first-child),.ant-btn-group-rtl.ant-btn-group>span:last-child:not(:first-child)>.ant-btn{border-top-left-radius:2px;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:2px}.ant-btn-group-rtl.ant-btn-group-sm>.ant-btn:first-child:not(:last-child),.ant-btn-group-rtl.ant-btn-group-sm>span:first-child:not(:last-child)>.ant-btn{border-top-left-radius:0;border-top-right-radius:2px;border-bottom-right-radius:2px;border-bottom-left-radius:0}.ant-btn-group-rtl.ant-btn-group-sm>.ant-btn:last-child:not(:first-child),.ant-btn-group-rtl.ant-btn-group-sm>span:last-child:not(:first-child)>.ant-btn{border-top-left-radius:2px;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:2px}.ant-btn:active>span,.ant-btn:focus>span{position:relative}.ant-btn>.anticon+span,.ant-btn>span+.anticon{margin-left:8px}.ant-btn.ant-btn-background-ghost{color:#fff;border-color:#fff}.ant-btn.ant-btn-background-ghost,.ant-btn.ant-btn-background-ghost:active,.ant-btn.ant-btn-background-ghost:focus,.ant-btn.ant-btn-background-ghost:hover{background:#0000}.ant-btn-background-ghost.ant-btn-primary{color:#1890ff;border-color:#1890ff;text-shadow:none}.ant-btn-background-ghost.ant-btn-primary>a:only-child{color:currentColor}.ant-btn-background-ghost.ant-btn-primary>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-background-ghost.ant-btn-primary:focus,.ant-btn-background-ghost.ant-btn-primary:hover{color:#40a9ff;border-color:#40a9ff}.ant-btn-background-ghost.ant-btn-primary:focus>a:only-child,.ant-btn-background-ghost.ant-btn-primary:hover>a:only-child{color:currentColor}.ant-btn-background-ghost.ant-btn-primary:focus>a:only-child:after,.ant-btn-background-ghost.ant-btn-primary:hover>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-background-ghost.ant-btn-primary:active{color:#096dd9;border-color:#096dd9}.ant-btn-background-ghost.ant-btn-primary:active>a:only-child{color:currentColor}.ant-btn-background-ghost.ant-btn-primary:active>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-background-ghost.ant-btn-primary[disabled],.ant-btn-background-ghost.ant-btn-primary[disabled]:active,.ant-btn-background-ghost.ant-btn-primary[disabled]:focus,.ant-btn-background-ghost.ant-btn-primary[disabled]:hover{color:#00000040;border-color:#d9d9d9;background:#f5f5f5;text-shadow:none;box-shadow:none}.ant-btn-background-ghost.ant-btn-primary[disabled]:active>a:only-child,.ant-btn-background-ghost.ant-btn-primary[disabled]:focus>a:only-child,.ant-btn-background-ghost.ant-btn-primary[disabled]:hover>a:only-child,.ant-btn-background-ghost.ant-btn-primary[disabled]>a:only-child{color:currentColor}.ant-btn-background-ghost.ant-btn-primary[disabled]:active>a:only-child:after,.ant-btn-background-ghost.ant-btn-primary[disabled]:focus>a:only-child:after,.ant-btn-background-ghost.ant-btn-primary[disabled]:hover>a:only-child:after,.ant-btn-background-ghost.ant-btn-primary[disabled]>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-background-ghost.ant-btn-danger{color:#ff4d4f;border-color:#ff4d4f;text-shadow:none}.ant-btn-background-ghost.ant-btn-danger>a:only-child{color:currentColor}.ant-btn-background-ghost.ant-btn-danger>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-background-ghost.ant-btn-danger:focus,.ant-btn-background-ghost.ant-btn-danger:hover{color:#ff7875;border-color:#ff7875}.ant-btn-background-ghost.ant-btn-danger:focus>a:only-child,.ant-btn-background-ghost.ant-btn-danger:hover>a:only-child{color:currentColor}.ant-btn-background-ghost.ant-btn-danger:focus>a:only-child:after,.ant-btn-background-ghost.ant-btn-danger:hover>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-background-ghost.ant-btn-danger:active{color:#d9363e;border-color:#d9363e}.ant-btn-background-ghost.ant-btn-danger:active>a:only-child{color:currentColor}.ant-btn-background-ghost.ant-btn-danger:active>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-background-ghost.ant-btn-danger[disabled],.ant-btn-background-ghost.ant-btn-danger[disabled]:active,.ant-btn-background-ghost.ant-btn-danger[disabled]:focus,.ant-btn-background-ghost.ant-btn-danger[disabled]:hover{color:#00000040;border-color:#d9d9d9;background:#f5f5f5;text-shadow:none;box-shadow:none}.ant-btn-background-ghost.ant-btn-danger[disabled]:active>a:only-child,.ant-btn-background-ghost.ant-btn-danger[disabled]:focus>a:only-child,.ant-btn-background-ghost.ant-btn-danger[disabled]:hover>a:only-child,.ant-btn-background-ghost.ant-btn-danger[disabled]>a:only-child{color:currentColor}.ant-btn-background-ghost.ant-btn-danger[disabled]:active>a:only-child:after,.ant-btn-background-ghost.ant-btn-danger[disabled]:focus>a:only-child:after,.ant-btn-background-ghost.ant-btn-danger[disabled]:hover>a:only-child:after,.ant-btn-background-ghost.ant-btn-danger[disabled]>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-background-ghost.ant-btn-dangerous{color:#ff4d4f;border-color:#ff4d4f;text-shadow:none}.ant-btn-background-ghost.ant-btn-dangerous>a:only-child{color:currentColor}.ant-btn-background-ghost.ant-btn-dangerous>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-background-ghost.ant-btn-dangerous:focus,.ant-btn-background-ghost.ant-btn-dangerous:hover{color:#ff7875;border-color:#ff7875}.ant-btn-background-ghost.ant-btn-dangerous:focus>a:only-child,.ant-btn-background-ghost.ant-btn-dangerous:hover>a:only-child{color:currentColor}.ant-btn-background-ghost.ant-btn-dangerous:focus>a:only-child:after,.ant-btn-background-ghost.ant-btn-dangerous:hover>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-background-ghost.ant-btn-dangerous:active{color:#d9363e;border-color:#d9363e}.ant-btn-background-ghost.ant-btn-dangerous:active>a:only-child{color:currentColor}.ant-btn-background-ghost.ant-btn-dangerous:active>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-background-ghost.ant-btn-dangerous[disabled],.ant-btn-background-ghost.ant-btn-dangerous[disabled]:active,.ant-btn-background-ghost.ant-btn-dangerous[disabled]:focus,.ant-btn-background-ghost.ant-btn-dangerous[disabled]:hover{color:#00000040;border-color:#d9d9d9;background:#f5f5f5;text-shadow:none;box-shadow:none}.ant-btn-background-ghost.ant-btn-dangerous[disabled]:active>a:only-child,.ant-btn-background-ghost.ant-btn-dangerous[disabled]:focus>a:only-child,.ant-btn-background-ghost.ant-btn-dangerous[disabled]:hover>a:only-child,.ant-btn-background-ghost.ant-btn-dangerous[disabled]>a:only-child{color:currentColor}.ant-btn-background-ghost.ant-btn-dangerous[disabled]:active>a:only-child:after,.ant-btn-background-ghost.ant-btn-dangerous[disabled]:focus>a:only-child:after,.ant-btn-background-ghost.ant-btn-dangerous[disabled]:hover>a:only-child:after,.ant-btn-background-ghost.ant-btn-dangerous[disabled]>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link{color:#ff4d4f;border-color:#0000;text-shadow:none}.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link>a:only-child{color:currentColor}.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link:focus,.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link:hover{color:#ff7875;border-color:#0000}.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link:focus>a:only-child,.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link:hover>a:only-child{color:currentColor}.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link:focus>a:only-child:after,.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link:hover>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link:active{color:#d9363e;border-color:#0000}.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link:active>a:only-child{color:currentColor}.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link:active>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled],.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:active,.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:focus,.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:hover{color:#00000040;border-color:#d9d9d9;background:#f5f5f5;text-shadow:none;box-shadow:none}.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:active>a:only-child,.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:focus>a:only-child,.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:hover>a:only-child,.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]>a:only-child{color:currentColor}.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:active>a:only-child:after,.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:focus>a:only-child:after,.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:hover>a:only-child:after,.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]>a:only-child:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;content:""}.ant-btn-two-chinese-chars:first-letter{letter-spacing:.34em}.ant-btn-two-chinese-chars>:not(.anticon){margin-right:-.34em;letter-spacing:.34em}.ant-btn-block{width:100%}.ant-btn:empty{display:inline-block;width:0;visibility:hidden;content:"\\a0"}a.ant-btn{padding-top:.01px!important;line-height:30px}a.ant-btn-lg{line-height:38px}a.ant-btn-sm{line-height:22px}.ant-btn-rtl{direction:rtl}.ant-btn-group-rtl.ant-btn-group .ant-btn-primary+.ant-btn-primary,.ant-btn-group-rtl.ant-btn-group .ant-btn-primary:last-child:not(:first-child){border-right-color:#40a9ff;border-left-color:#d9d9d9}.ant-btn-group-rtl.ant-btn-group .ant-btn-primary+.ant-btn-primary[disabled],.ant-btn-group-rtl.ant-btn-group .ant-btn-primary:last-child:not(:first-child)[disabled]{border-right-color:#d9d9d9;border-left-color:#40a9ff}.ant-btn-rtl.ant-btn>.ant-btn-loading-icon .anticon{padding-right:0;padding-left:8px}.ant-btn>.ant-btn-loading-icon:only-child .anticon{padding-right:0;padding-left:0}.ant-btn-rtl.ant-btn>.anticon+span,.ant-btn-rtl.ant-btn>span+.anticon{margin-right:8px;margin-left:0}.ant-card{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:relative;background:#fff;border-radius:2px}.ant-card-rtl{direction:rtl}.ant-card-hoverable{cursor:pointer;transition:box-shadow .3s,border-color .3s}.ant-card-hoverable:hover{border-color:#0000;box-shadow:0 1px 2px -2px #00000029,0 3px 6px 0 #0000001f,0 5px 12px 4px #00000017}.ant-card-bordered{border:1px solid #f0f0f0}.ant-card-head{min-height:48px;margin-bottom:-1px;padding:0 24px;color:#000000d9;font-weight:500;font-size:16px;background:#0000;border-bottom:1px solid #f0f0f0;border-radius:2px 2px 0 0}.ant-card-head:after,.ant-card-head:before{display:table;content:""}.ant-card-head:after{clear:both}.ant-card-head-wrapper{display:flex;align-items:center}.ant-card-head-title{display:inline-block;flex:1;padding:16px 0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ant-card-head-title>.ant-typography,.ant-card-head-title>.ant-typography-edit-content{left:0;margin-top:0;margin-bottom:0}.ant-card-head .ant-tabs{clear:both;margin-bottom:-17px;color:#000000d9;font-weight:400;font-size:14px}.ant-card-head .ant-tabs-bar{border-bottom:1px solid #f0f0f0}.ant-card-extra{float:right;margin-left:auto;padding:16px 0;color:#000000d9;font-weight:400;font-size:14px}.ant-card-rtl .ant-card-extra{margin-right:auto;margin-left:0}.ant-card-body{padding:24px}.ant-card-body:after,.ant-card-body:before{display:table;content:""}.ant-card-body:after{clear:both}.ant-card-contain-grid:not(.ant-card-loading) .ant-card-body{margin:-1px 0 0 -1px;padding:0}.ant-card-grid{float:left;width:33.33%;padding:24px;border:0;border-radius:0;box-shadow:1px 0 0 0 #f0f0f0,0 1px 0 0 #f0f0f0,1px 1px 0 0 #f0f0f0,inset 1px 0 0 0 #f0f0f0,inset 0 1px 0 0 #f0f0f0;transition:all .3s}.ant-card-rtl .ant-card-grid{float:right}.ant-card-grid-hoverable:hover{position:relative;z-index:1;box-shadow:0 1px 2px -2px #00000029,0 3px 6px 0 #0000001f,0 5px 12px 4px #00000017}.ant-card-contain-tabs>.ant-card-head .ant-card-head-title{min-height:32px;padding-bottom:0}.ant-card-contain-tabs>.ant-card-head .ant-card-extra{padding-bottom:0}.ant-card-bordered .ant-card-cover{margin-top:-1px;margin-right:-1px;margin-left:-1px}.ant-card-cover>*{display:block;width:100%}.ant-card-cover img{border-radius:2px 2px 0 0}.ant-card-actions{margin:0;padding:0;list-style:none;background:#fff;border-top:1px solid #f0f0f0}.ant-card-actions:after,.ant-card-actions:before{display:table;content:""}.ant-card-actions:after{clear:both}.ant-card-actions>li{float:left;margin:12px 0;color:#00000073;text-align:center}.ant-card-rtl .ant-card-actions>li{float:right}.ant-card-actions>li>span{position:relative;display:block;min-width:32px;font-size:14px;line-height:1.5715;cursor:pointer}.ant-card-actions>li>span:hover{color:#1890ff;transition:color .3s}.ant-card-actions>li>span a:not(.ant-btn),.ant-card-actions>li>span>.anticon{display:inline-block;width:100%;color:#00000073;line-height:22px;transition:color .3s}.ant-card-actions>li>span a:not(.ant-btn):hover,.ant-card-actions>li>span>.anticon:hover{color:#1890ff}.ant-card-actions>li>span>.anticon{font-size:16px;line-height:22px}.ant-card-actions>li:not(:last-child){border-right:1px solid #f0f0f0}.ant-card-rtl .ant-card-actions>li:not(:last-child){border-right:none;border-left:1px solid #f0f0f0}.ant-card-type-inner .ant-card-head{padding:0 24px;background:#fafafa}.ant-card-type-inner .ant-card-head-title{padding:12px 0;font-size:14px}.ant-card-type-inner .ant-card-body{padding:16px 24px}.ant-card-type-inner .ant-card-extra{padding:13.5px 0}.ant-card-meta{margin:-4px 0}.ant-card-meta:after,.ant-card-meta:before{display:table;content:""}.ant-card-meta:after{clear:both}.ant-card-meta-avatar{float:left;padding-right:16px}.ant-card-rtl .ant-card-meta-avatar{float:right;padding-right:0;padding-left:16px}.ant-card-meta-detail{overflow:hidden}.ant-card-meta-detail>div:not(:last-child){margin-bottom:8px}.ant-card-meta-title{overflow:hidden;color:#000000d9;font-weight:500;font-size:16px;white-space:nowrap;text-overflow:ellipsis}.ant-card-meta-description{color:#00000073}.ant-card-loading{overflow:hidden}.ant-card-loading .ant-card-body{-webkit-user-select:none;user-select:none}.ant-card-loading-content p{margin:0}.ant-card-loading-block{height:14px;margin:4px 0;background:linear-gradient(90deg,#cfd8dc33,#cfd8dc66,#cfd8dc33);background-size:600% 600%;border-radius:2px;animation:card-loading 1.4s ease infinite}@keyframes card-loading{0%,to{background-position:0 50%}50%{background-position:100% 50%}}.ant-card-small>.ant-card-head{min-height:36px;padding:0 12px;font-size:14px}.ant-card-small>.ant-card-head>.ant-card-head-wrapper>.ant-card-head-title{padding:8px 0}.ant-card-small>.ant-card-head>.ant-card-head-wrapper>.ant-card-extra{padding:8px 0;font-size:14px}.ant-card-small>.ant-card-body{padding:12px}.ant-card-rtl .ant-skeleton-header{padding:0 0 0 16px}nz-card,nz-card-loading,nz-card-meta{display:block}.ant-carousel{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum"}.ant-carousel .slick-slider{position:relative;display:block;box-sizing:border-box;touch-action:pan-y;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}.ant-carousel .slick-list{position:relative;display:block;margin:0;padding:0;overflow:hidden}.ant-carousel .slick-list:focus{outline:none}.ant-carousel .slick-list.dragging{cursor:pointer}.ant-carousel .slick-list .slick-slide{pointer-events:none}.ant-carousel .slick-list .slick-slide input.ant-checkbox-input,.ant-carousel .slick-list .slick-slide input.ant-radio-input{visibility:hidden}.ant-carousel .slick-list .slick-slide.slick-active{pointer-events:auto}.ant-carousel .slick-list .slick-slide.slick-active input.ant-checkbox-input,.ant-carousel .slick-list .slick-slide.slick-active input.ant-radio-input{visibility:visible}.ant-carousel .slick-list .slick-slide>div>div{vertical-align:bottom}.ant-carousel .slick-slider .slick-list,.ant-carousel .slick-slider .slick-track{transform:translateZ(0);touch-action:pan-y}.ant-carousel .slick-track{position:relative;top:0;left:0;display:block}.ant-carousel .slick-track:after,.ant-carousel .slick-track:before{display:table;content:""}.ant-carousel .slick-track:after{clear:both}.slick-loading .ant-carousel .slick-track{visibility:hidden}.ant-carousel .slick-slide{display:none;float:left;height:100%;min-height:1px}.ant-carousel .slick-slide img{display:block}.ant-carousel .slick-slide.slick-loading img{display:none}.ant-carousel .slick-slide.dragging img{pointer-events:none}.ant-carousel .slick-initialized .slick-slide{display:block}.ant-carousel .slick-loading .slick-slide{visibility:hidden}.ant-carousel .slick-vertical .slick-slide{display:block;height:auto}.ant-carousel .slick-arrow.slick-hidden{display:none}.ant-carousel .slick-next,.ant-carousel .slick-prev{position:absolute;top:50%;display:block;width:20px;height:20px;margin-top:-10px;padding:0;color:#0000;font-size:0;line-height:0;background:#0000;border:0;outline:none;cursor:pointer}.ant-carousel .slick-next:focus,.ant-carousel .slick-next:hover,.ant-carousel .slick-prev:focus,.ant-carousel .slick-prev:hover{color:#0000;background:#0000;outline:none}.ant-carousel .slick-next:focus:before,.ant-carousel .slick-next:hover:before,.ant-carousel .slick-prev:focus:before,.ant-carousel .slick-prev:hover:before{opacity:1}.ant-carousel .slick-next.slick-disabled:before,.ant-carousel .slick-prev.slick-disabled:before{opacity:.25}.ant-carousel .slick-prev{left:-25px}.ant-carousel .slick-prev:before{content:"←"}.ant-carousel .slick-next{right:-25px}.ant-carousel .slick-next:before{content:"→"}.ant-carousel .slick-dots{position:absolute;right:0;bottom:0;left:0;z-index:15;display:flex!important;justify-content:center;margin-right:15%;margin-left:15%;padding-left:0;list-style:none}.ant-carousel .slick-dots-bottom{bottom:12px}.ant-carousel .slick-dots-top{top:12px;bottom:auto}.ant-carousel .slick-dots li{position:relative;display:inline-block;flex:0 1 auto;box-sizing:initial;width:16px;height:3px;margin:0 3px;padding:0;text-align:center;text-indent:-999px;vertical-align:top;transition:all .5s}.ant-carousel .slick-dots li button{display:block;width:100%;height:3px;padding:0;color:#0000;font-size:0;background:#fff;border:0;border-radius:1px;outline:none;cursor:pointer;opacity:.3;transition:all .5s}.ant-carousel .slick-dots li button:focus,.ant-carousel .slick-dots li button:hover{opacity:.75}.ant-carousel .slick-dots li.slick-active{width:24px}.ant-carousel .slick-dots li.slick-active button{background:#fff;opacity:1}.ant-carousel .slick-dots li.slick-active:focus,.ant-carousel .slick-dots li.slick-active:hover{opacity:1}.ant-carousel-vertical .slick-dots{top:50%;bottom:auto;flex-direction:column;width:3px;height:auto;margin:0;transform:translateY(-50%)}.ant-carousel-vertical .slick-dots-left{right:auto;left:12px}.ant-carousel-vertical .slick-dots-right{right:12px;left:auto}.ant-carousel-vertical .slick-dots li{width:3px;height:16px;margin:4px 2px;vertical-align:initial}.ant-carousel-vertical .slick-dots li button{width:3px;height:16px}.ant-carousel-vertical .slick-dots li.slick-active,.ant-carousel-vertical .slick-dots li.slick-active button{width:3px;height:24px}.ant-carousel-rtl{direction:rtl}.ant-carousel-rtl .ant-carousel .slick-track{right:0;left:auto}.ant-carousel-rtl .ant-carousel .slick-prev{right:-25px;left:auto}.ant-carousel-rtl .ant-carousel .slick-prev:before{content:"→"}.ant-carousel-rtl .ant-carousel .slick-next{right:auto;left:-25px}.ant-carousel-rtl .ant-carousel .slick-next:before{content:"←"}.ant-carousel-rtl.ant-carousel .slick-dots{flex-direction:row-reverse}.ant-carousel-rtl.ant-carousel-vertical .slick-dots{flex-direction:column}nz-carousel{position:relative;overflow:hidden;width:100%;height:100%}.slick-dots,nz-carousel{display:block}.slick-track{opacity:1}.slick-list{direction:ltr}@keyframes antCheckboxEffect{0%{transform:scale(1);opacity:.5}to{transform:scale(1.6);opacity:0}}.ant-checkbox{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:relative;top:.2em;line-height:1;white-space:nowrap;outline:none;cursor:pointer}.ant-checkbox-input:focus+.ant-checkbox-inner,.ant-checkbox-wrapper:hover .ant-checkbox-inner,.ant-checkbox:hover .ant-checkbox-inner{border-color:#1890ff}.ant-checkbox-checked:after{position:absolute;top:0;left:0;width:100%;height:100%;border:1px solid #1890ff;border-radius:2px;visibility:hidden;animation:antCheckboxEffect .36s ease-in-out;animation-fill-mode:backwards;content:""}.ant-checkbox-wrapper:hover .ant-checkbox:after,.ant-checkbox:hover:after{visibility:visible}.ant-checkbox-inner{position:relative;top:0;left:0;display:block;width:16px;height:16px;direction:ltr;background-color:#fff;border:1px solid #d9d9d9;border-radius:2px;border-collapse:initial;transition:all .3s}.ant-checkbox-inner:after{position:absolute;top:50%;left:21.5%;display:table;width:5.71428571px;height:9.14285714px;border:2px solid #fff;border-top:0;border-left:0;transform:rotate(45deg) scale(0) translate(-50%,-50%);opacity:0;transition:all .1s cubic-bezier(.71,-.46,.88,.6),opacity .1s;content:" "}.ant-checkbox-input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%;cursor:pointer;opacity:0}.ant-checkbox-checked .ant-checkbox-inner:after{position:absolute;display:table;border:2px solid #fff;border-top:0;border-left:0;transform:rotate(45deg) scale(1) translate(-50%,-50%);opacity:1;transition:all .2s cubic-bezier(.12,.4,.29,1.46) .1s;content:" "}.ant-checkbox-checked .ant-checkbox-inner{background-color:#1890ff;border-color:#1890ff}.ant-checkbox-disabled{cursor:not-allowed}.ant-checkbox-disabled.ant-checkbox-checked .ant-checkbox-inner:after{border-color:#00000040;animation-name:none}.ant-checkbox-disabled .ant-checkbox-input{cursor:not-allowed}.ant-checkbox-disabled .ant-checkbox-inner{background-color:#f5f5f5;border-color:#d9d9d9!important}.ant-checkbox-disabled .ant-checkbox-inner:after{border-color:#f5f5f5;border-collapse:initial;animation-name:none}.ant-checkbox-disabled+span{color:#00000040;cursor:not-allowed}.ant-checkbox-disabled:hover:after,.ant-checkbox-wrapper:hover .ant-checkbox-disabled:after{visibility:hidden}.ant-checkbox-wrapper{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";display:inline-flex;align-items:baseline;line-height:unset;cursor:pointer}.ant-checkbox-wrapper:after{display:inline-block;width:0;overflow:hidden;content:"\\a0"}.ant-checkbox-wrapper.ant-checkbox-wrapper-disabled{cursor:not-allowed}.ant-checkbox-wrapper+.ant-checkbox-wrapper{margin-left:8px}.ant-checkbox+span{padding-right:8px;padding-left:8px}.ant-checkbox-group{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";display:inline-block}.ant-checkbox-group-item{margin-right:8px}.ant-checkbox-group-item:last-child{margin-right:0}.ant-checkbox-group-item+.ant-checkbox-group-item{margin-left:0}.ant-checkbox-indeterminate .ant-checkbox-inner{background-color:#fff;border-color:#d9d9d9}.ant-checkbox-indeterminate .ant-checkbox-inner:after{top:50%;left:50%;width:8px;height:8px;background-color:#1890ff;border:0;transform:translate(-50%,-50%) scale(1);opacity:1;content:" "}.ant-checkbox-indeterminate.ant-checkbox-disabled .ant-checkbox-inner:after{background-color:#00000040;border-color:#00000040}.ant-checkbox-rtl{direction:rtl}.ant-checkbox-group-rtl .ant-checkbox-group-item{margin-right:0;margin-left:8px}.ant-checkbox-group-rtl .ant-checkbox-group-item:last-child{margin-left:0!important}.ant-checkbox-group-rtl .ant-checkbox-group-item+.ant-checkbox-group-item{margin-left:8px}.ant-checkbox+span:empty{display:none}.ant-collapse{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";background-color:#fafafa;border:1px solid #d9d9d9;border-bottom:0;border-radius:2px}.ant-collapse>.ant-collapse-item{border-bottom:1px solid #d9d9d9}.ant-collapse>.ant-collapse-item:last-child,.ant-collapse>.ant-collapse-item:last-child>.ant-collapse-header{border-radius:0 0 2px 2px}.ant-collapse>.ant-collapse-item>.ant-collapse-header{position:relative;padding:12px 16px;color:#000000d9;line-height:1.5715;cursor:pointer;transition:all .3s,visibility 0s}.ant-collapse>.ant-collapse-item>.ant-collapse-header:before{display:table;content:""}.ant-collapse>.ant-collapse-item>.ant-collapse-header:after{display:table;clear:both;content:""}.ant-collapse>.ant-collapse-item>.ant-collapse-header .ant-collapse-arrow{display:inline-block;margin-right:12px;font-size:12px;vertical-align:-1px}.ant-collapse>.ant-collapse-item>.ant-collapse-header .ant-collapse-arrow svg{transition:transform .24s}.ant-collapse>.ant-collapse-item>.ant-collapse-header .ant-collapse-extra{float:right}.ant-collapse>.ant-collapse-item>.ant-collapse-header:focus{outline:none}.ant-collapse>.ant-collapse-item .ant-collapse-header-collapsible-only{cursor:default}.ant-collapse>.ant-collapse-item .ant-collapse-header-collapsible-only .ant-collapse-header-text{cursor:pointer}.ant-collapse>.ant-collapse-item.ant-collapse-no-arrow>.ant-collapse-header{padding-left:12px}.ant-collapse-icon-position-right>.ant-collapse-item>.ant-collapse-header{padding:12px 40px 12px 16px}.ant-collapse-icon-position-right>.ant-collapse-item>.ant-collapse-header .ant-collapse-arrow{position:absolute;top:50%;right:16px;left:auto;margin:0;transform:translateY(-50%)}.ant-collapse-content{color:#000000d9;background-color:#fff;border-top:1px solid #d9d9d9}.ant-collapse-content>.ant-collapse-content-box{padding:16px}.ant-collapse-content-hidden{display:none}.ant-collapse-item:last-child>.ant-collapse-content{border-radius:0 0 2px 2px}.ant-collapse-borderless{background-color:#fafafa;border:0}.ant-collapse-borderless>.ant-collapse-item{border-bottom:1px solid #d9d9d9}.ant-collapse-borderless>.ant-collapse-item:last-child,.ant-collapse-borderless>.ant-collapse-item:last-child .ant-collapse-header{border-radius:0}.ant-collapse-borderless>.ant-collapse-item>.ant-collapse-content{background-color:initial;border-top:0}.ant-collapse-borderless>.ant-collapse-item>.ant-collapse-content>.ant-collapse-content-box{padding-top:4px}.ant-collapse-ghost{background-color:initial;border:0}.ant-collapse-ghost>.ant-collapse-item{border-bottom:0}.ant-collapse-ghost>.ant-collapse-item>.ant-collapse-content{background-color:initial;border-top:0}.ant-collapse-ghost>.ant-collapse-item>.ant-collapse-content>.ant-collapse-content-box{padding-top:12px;padding-bottom:12px}.ant-collapse .ant-collapse-item-disabled>.ant-collapse-header,.ant-collapse .ant-collapse-item-disabled>.ant-collapse-header>.arrow{color:#00000040;cursor:not-allowed}.ant-collapse-rtl{direction:rtl}.ant-collapse-rtl .ant-collapse>.ant-collapse-item>.ant-collapse-header{padding:12px 40px 12px 16px}.ant-collapse-rtl.ant-collapse>.ant-collapse-item>.ant-collapse-header .ant-collapse-arrow svg{transform:rotate(180deg)}.ant-collapse-rtl.ant-collapse>.ant-collapse-item>.ant-collapse-header .ant-collapse-extra{float:left}.ant-collapse-rtl.ant-collapse>.ant-collapse-item.ant-collapse-no-arrow>.ant-collapse-header{padding-right:12px;padding-left:0}nz-collapse,nz-collapse-panel{display:block}.ant-comment{position:relative;background-color:inherit}.ant-comment-inner{display:flex;padding:16px 0}.ant-comment-avatar{position:relative;flex-shrink:0;margin-right:12px;cursor:pointer}.ant-comment-avatar img{width:32px;height:32px;border-radius:50%}.ant-comment-content{position:relative;flex:1 1 auto;min-width:1px;font-size:14px;word-wrap:break-word}.ant-comment-content-author{display:flex;flex-wrap:wrap;justify-content:flex-start;margin-bottom:4px;font-size:14px}.ant-comment-content-author>a,.ant-comment-content-author>span{padding-right:8px;font-size:12px;line-height:18px}.ant-comment-content-author-name{color:#00000073;font-size:14px;transition:color .3s}.ant-comment-content-author-name>*,.ant-comment-content-author-name>:hover{color:#00000073}.ant-comment-content-author-time{color:#ccc;white-space:nowrap;cursor:auto}.ant-comment-content-detail p{margin-bottom:inherit;white-space:pre-wrap}.ant-comment-actions{margin-top:12px;margin-bottom:inherit;padding-left:0}.ant-comment-actions>li{display:inline-block;color:#00000073}.ant-comment-actions>li>span{margin-right:10px;color:#00000073;font-size:12px;cursor:pointer;transition:color .3s;-webkit-user-select:none;user-select:none}.ant-comment-actions>li>span:hover{color:#595959}.ant-comment-nested{margin-left:44px}.ant-comment-rtl{direction:rtl}.ant-comment-rtl .ant-comment-avatar{margin-right:0;margin-left:12px}.ant-comment-rtl .ant-comment-content-author>a,.ant-comment-rtl .ant-comment-content-author>span{padding-right:0;padding-left:8px}.ant-comment-rtl .ant-comment-actions{padding-right:0}.ant-comment-rtl .ant-comment-actions>li>span{margin-right:0;margin-left:10px}.ant-comment-rtl .ant-comment-nested{margin-right:44px;margin-left:0}nz-comment,nz-comment-content{display:block}.ant-picker{box-sizing:border-box;margin:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";padding:4px 11px;position:relative;display:inline-flex;align-items:center;background:#fff;border:1px solid #d9d9d9;border-radius:2px;transition:border .3s,box-shadow .3s}.ant-picker-focused,.ant-picker:hover{border-color:#40a9ff;border-right-width:1px!important}.ant-input-rtl .ant-picker-focused,.ant-input-rtl .ant-picker:hover{border-right-width:0;border-left-width:1px!important}.ant-picker-focused{border-color:#40a9ff;border-right-width:1px!important;outline:0;box-shadow:0 0 0 2px #1890ff33}.ant-input-rtl .ant-picker-focused{border-right-width:0;border-left-width:1px!important}.ant-picker.ant-picker-disabled{background:#f5f5f5;border-color:#d9d9d9;cursor:not-allowed}.ant-picker.ant-picker-disabled .ant-picker-suffix{color:#00000040}.ant-picker.ant-picker-borderless{background-color:initial!important;border-color:#0000!important;box-shadow:none!important}.ant-picker-input{position:relative;display:inline-flex;align-items:center;width:100%}.ant-picker-input>input{position:relative;display:inline-block;width:100%;min-width:0;color:#000000d9;font-size:14px;line-height:1.5715;background-color:#fff;background-image:none;border-radius:2px;transition:all .3s;flex:auto;min-width:1px;height:auto;padding:0;background:#0000;border:0}.ant-picker-input>input::placeholder{color:#bfbfbf}.ant-picker-input>input:placeholder-shown{text-overflow:ellipsis}.ant-picker-input>input:hover{border-color:#40a9ff;border-right-width:1px!important}.ant-input-rtl .ant-picker-input>input:hover{border-right-width:0;border-left-width:1px!important}.ant-picker-input>input-focused,.ant-picker-input>input:focus{border-color:#40a9ff;border-right-width:1px!important;outline:0;box-shadow:0 0 0 2px #1890ff33}.ant-input-rtl .ant-picker-input>input-focused,.ant-input-rtl .ant-picker-input>input:focus{border-right-width:0;border-left-width:1px!important}.ant-picker-input>input-disabled{color:#00000040;background-color:#f5f5f5;border-color:#d9d9d9;box-shadow:none;cursor:not-allowed;opacity:1}.ant-picker-input>input-disabled:hover{border-color:#d9d9d9;border-right-width:1px!important}.ant-picker-input>input[disabled]{color:#00000040;background-color:#f5f5f5;border-color:#d9d9d9;box-shadow:none;cursor:not-allowed;opacity:1}.ant-picker-input>input[disabled]:hover{border-color:#d9d9d9;border-right-width:1px!important}.ant-picker-input>input-borderless,.ant-picker-input>input-borderless-disabled,.ant-picker-input>input-borderless-focused,.ant-picker-input>input-borderless:focus,.ant-picker-input>input-borderless:hover,.ant-picker-input>input-borderless[disabled]{background-color:initial;border:none;box-shadow:none}textarea.ant-picker-input>input{max-width:100%;height:auto;min-height:32px;line-height:1.5715;vertical-align:bottom;transition:all .3s,height 0s}.ant-picker-input>input-lg{padding:6.5px 11px;font-size:16px}.ant-picker-input>input-sm{padding:0 7px}.ant-picker-input>input-rtl{direction:rtl}.ant-picker-input>input:focus{box-shadow:none}.ant-picker-input>input[disabled]{background:#0000}.ant-picker-input:hover .ant-picker-clear{opacity:1}.ant-picker-input-placeholder>input{color:#bfbfbf}.ant-picker-large{padding:6.5px 11px}.ant-picker-large .ant-picker-input>input{font-size:16px}.ant-picker-small{padding:0 7px}.ant-picker-suffix{align-self:center;margin-left:4px;color:#00000040;line-height:1;pointer-events:none}.ant-picker-suffix>*{vertical-align:top}.ant-picker-clear{position:absolute;top:50%;right:0;color:#00000040;line-height:1;background:#fff;transform:translateY(-50%);cursor:pointer;opacity:0;transition:opacity .3s,color .3s}.ant-picker-clear>*{vertical-align:top}.ant-picker-clear:hover{color:#00000073}.ant-picker-separator{position:relative;display:inline-block;width:1em;height:16px;color:#00000040;font-size:16px;vertical-align:top;cursor:default}.ant-picker-focused .ant-picker-separator{color:#00000073}.ant-picker-disabled .ant-picker-range-separator .ant-picker-separator{cursor:not-allowed}.ant-picker-range{position:relative;display:inline-flex}.ant-picker-range .ant-picker-clear{right:11px}.ant-picker-range:hover .ant-picker-clear{opacity:1}.ant-picker-range .ant-picker-active-bar{bottom:-1px;height:2px;margin-left:11px;background:#1890ff;opacity:0;transition:all .3s ease-out;pointer-events:none}.ant-picker-range.ant-picker-focused .ant-picker-active-bar{opacity:1}.ant-picker-range-separator{align-items:center;padding:0 8px;line-height:1}.ant-picker-range.ant-picker-small .ant-picker-clear{right:7px}.ant-picker-range.ant-picker-small .ant-picker-active-bar{margin-left:7px}.ant-picker-dropdown{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:absolute;z-index:1050}.ant-picker-dropdown-hidden{display:none}.ant-picker-dropdown-placement-bottomLeft .ant-picker-range-arrow{top:1.66666667px;display:block;transform:rotate(-45deg)}.ant-picker-dropdown-placement-topLeft .ant-picker-range-arrow{bottom:1.66666667px;display:block;transform:rotate(135deg)}.ant-picker-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-picker-dropdown-placement-topLeft,.ant-picker-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-picker-dropdown-placement-topRight,.ant-picker-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-picker-dropdown-placement-topLeft,.ant-picker-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-picker-dropdown-placement-topRight{animation-name:antSlideDownIn}.ant-picker-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-picker-dropdown-placement-bottomLeft,.ant-picker-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-picker-dropdown-placement-bottomRight,.ant-picker-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-picker-dropdown-placement-bottomLeft,.ant-picker-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-picker-dropdown-placement-bottomRight{animation-name:antSlideUpIn}.ant-picker-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-picker-dropdown-placement-topLeft,.ant-picker-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-picker-dropdown-placement-topRight{animation-name:antSlideDownOut}.ant-picker-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-picker-dropdown-placement-bottomLeft,.ant-picker-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-picker-dropdown-placement-bottomRight{animation-name:antSlideUpOut}.ant-picker-dropdown-range{padding:6.66666667px 0}.ant-picker-dropdown-range-hidden{display:none}.ant-picker-dropdown .ant-picker-panel>.ant-picker-time-panel{padding-top:4px}.ant-picker-ranges{margin-bottom:0;padding:4px 12px;overflow:hidden;line-height:34px;text-align:left;list-style:none}.ant-picker-ranges>li{display:inline-block}.ant-picker-ranges .ant-picker-preset>.ant-tag-blue{color:#1890ff;background:#e6f7ff;border-color:#91d5ff;cursor:pointer}.ant-picker-ranges .ant-picker-ok{float:right;margin-left:8px}.ant-picker-range-wrapper{display:flex}.ant-picker-range-arrow{position:absolute;z-index:1;display:none;width:10px;height:10px;margin-left:16.5px;box-shadow:2px -2px 6px #0000000f;transition:left .3s ease-out}.ant-picker-range-arrow:after{position:absolute;top:1px;right:1px;width:10px;height:10px;border-color:#fff #fff #0000 #0000;border-style:solid;border-width:5px;content:""}.ant-picker-panel-container{overflow:hidden;vertical-align:top;background:#fff;border-radius:2px;box-shadow:0 3px 6px -4px #0000001f,0 6px 16px 0 #00000014,0 9px 28px 8px #0000000d;transition:margin .3s}.ant-picker-panel-container .ant-picker-panels{display:inline-flex;flex-wrap:nowrap;direction:ltr}.ant-picker-panel-container .ant-picker-panel{vertical-align:top;background:#0000;border-width:0 0 1px;border-radius:0}.ant-picker-panel-container .ant-picker-panel .ant-picker-content,.ant-picker-panel-container .ant-picker-panel table{text-align:center}.ant-picker-panel-container .ant-picker-panel-focused{border-color:#f0f0f0}.ant-picker-panel{display:inline-flex;flex-direction:column;text-align:center;background:#fff;border:1px solid #f0f0f0;border-radius:2px;outline:none}.ant-picker-panel-focused{border-color:#1890ff}.ant-picker-date-panel,.ant-picker-decade-panel,.ant-picker-month-panel,.ant-picker-quarter-panel,.ant-picker-time-panel,.ant-picker-week-panel,.ant-picker-year-panel{display:flex;flex-direction:column;width:280px}.ant-picker-header{display:flex;padding:0 8px;color:#000000d9;border-bottom:1px solid #f0f0f0}.ant-picker-header>*{flex:none}.ant-picker-header button{padding:0;color:#00000040;line-height:40px;background:#0000;border:0;cursor:pointer;transition:color .3s}.ant-picker-header>button{min-width:1.6em;font-size:14px}.ant-picker-header>button:hover{color:#000000d9}.ant-picker-header-view{flex:auto;font-weight:500;line-height:40px}.ant-picker-header-view button{color:inherit;font-weight:inherit}.ant-picker-header-view button:not(:first-child){margin-left:8px}.ant-picker-header-view button:hover{color:#1890ff}.ant-picker-next-icon,.ant-picker-prev-icon,.ant-picker-super-next-icon,.ant-picker-super-prev-icon{position:relative;display:inline-block;width:7px;height:7px}.ant-picker-next-icon:before,.ant-picker-prev-icon:before,.ant-picker-super-next-icon:before,.ant-picker-super-prev-icon:before{position:absolute;top:0;left:0;display:inline-block;width:7px;height:7px;border:0 solid;border-width:1.5px 0 0 1.5px;content:""}.ant-picker-super-next-icon:after,.ant-picker-super-prev-icon:after{position:absolute;top:4px;left:4px;display:inline-block;width:7px;height:7px;border:0 solid;border-width:1.5px 0 0 1.5px;content:""}.ant-picker-prev-icon,.ant-picker-super-prev-icon{transform:rotate(-45deg)}.ant-picker-next-icon,.ant-picker-super-next-icon{transform:rotate(135deg)}.ant-picker-content{width:100%;table-layout:fixed;border-collapse:collapse}.ant-picker-content td,.ant-picker-content th{position:relative;min-width:24px;font-weight:400}.ant-picker-content th{height:30px;color:#000000d9;line-height:30px}.ant-picker-cell{padding:3px 0;color:#00000040;cursor:pointer}.ant-picker-cell-in-view{color:#000000d9}.ant-picker-cell:before{position:absolute;top:50%;right:0;left:0;z-index:1;height:24px;transform:translateY(-50%);transition:all .3s;content:""}.ant-picker-cell:hover:not(.ant-picker-cell-in-view) .ant-picker-cell-inner,.ant-picker-cell:hover:not(.ant-picker-cell-selected):not(.ant-picker-cell-range-start):not(.ant-picker-cell-range-end):not(.ant-picker-cell-range-hover-start):not(.ant-picker-cell-range-hover-end) .ant-picker-cell-inner{background:#f5f5f5}.ant-picker-cell-in-view.ant-picker-cell-today .ant-picker-cell-inner:before{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;border:1px solid #1890ff;border-radius:2px;content:""}.ant-picker-cell-in-view.ant-picker-cell-in-range{position:relative}.ant-picker-cell-in-view.ant-picker-cell-in-range:before{background:#e6f7ff}.ant-picker-cell-in-view.ant-picker-cell-range-end .ant-picker-cell-inner,.ant-picker-cell-in-view.ant-picker-cell-range-start .ant-picker-cell-inner,.ant-picker-cell-in-view.ant-picker-cell-selected .ant-picker-cell-inner{color:#fff;background:#1890ff}.ant-picker-cell-in-view.ant-picker-cell-range-end:not(.ant-picker-cell-range-end-single):before,.ant-picker-cell-in-view.ant-picker-cell-range-start:not(.ant-picker-cell-range-start-single):before{background:#e6f7ff}.ant-picker-cell-in-view.ant-picker-cell-range-start:before{left:50%}.ant-picker-cell-in-view.ant-picker-cell-range-end:before{right:50%}.ant-picker-cell-in-view.ant-picker-cell-range-hover-end.ant-picker-cell-range-end-single:after,.ant-picker-cell-in-view.ant-picker-cell-range-hover-end.ant-picker-cell-range-start.ant-picker-cell-range-end.ant-picker-cell-range-start-near-hover:after,.ant-picker-cell-in-view.ant-picker-cell-range-hover-end:not(.ant-picker-cell-in-range):not(.ant-picker-cell-range-start):not(.ant-picker-cell-range-end):after,.ant-picker-cell-in-view.ant-picker-cell-range-hover-start.ant-picker-cell-range-start-single:after,.ant-picker-cell-in-view.ant-picker-cell-range-hover-start.ant-picker-cell-range-start.ant-picker-cell-range-end.ant-picker-cell-range-end-near-hover:after,.ant-picker-cell-in-view.ant-picker-cell-range-hover-start:not(.ant-picker-cell-in-range):not(.ant-picker-cell-range-start):not(.ant-picker-cell-range-end):after,.ant-picker-cell-in-view.ant-picker-cell-range-hover:not(.ant-picker-cell-in-range):after{position:absolute;top:50%;z-index:0;height:24px;border-top:1px dashed #7ec1ff;border-bottom:1px dashed #7ec1ff;transform:translateY(-50%);transition:all .3s;content:""}.ant-picker-cell-range-hover-end:after,.ant-picker-cell-range-hover-start:after,.ant-picker-cell-range-hover:after{right:0;left:2px}.ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover:before,.ant-picker-cell-in-view.ant-picker-cell-range-end.ant-picker-cell-range-hover:before,.ant-picker-cell-in-view.ant-picker-cell-range-end:not(.ant-picker-cell-range-end-single).ant-picker-cell-range-hover-end:before,.ant-picker-cell-in-view.ant-picker-cell-range-start.ant-picker-cell-range-hover:before,.ant-picker-cell-in-view.ant-picker-cell-range-start:not(.ant-picker-cell-range-start-single).ant-picker-cell-range-hover-start:before,.ant-picker-panel>:not(.ant-picker-date-panel) .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-end:before,.ant-picker-panel>:not(.ant-picker-date-panel) .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-start:before{background:#cbe6ff}.ant-picker-cell-in-view.ant-picker-cell-range-start:not(.ant-picker-cell-range-start-single):not(.ant-picker-cell-range-end) .ant-picker-cell-inner{border-radius:2px 0 0 2px}.ant-picker-cell-in-view.ant-picker-cell-range-end:not(.ant-picker-cell-range-end-single):not(.ant-picker-cell-range-start) .ant-picker-cell-inner{border-radius:0 2px 2px 0}.ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-end .ant-picker-cell-inner:after,.ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-start .ant-picker-cell-inner:after{position:absolute;top:0;bottom:0;z-index:-1;background:#cbe6ff;transition:all .3s;content:""}.ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-start .ant-picker-cell-inner:after{right:-6px;left:0}.ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-end .ant-picker-cell-inner:after{right:0;left:-6px}.ant-picker-cell-range-hover.ant-picker-cell-range-start:after{right:50%}.ant-picker-cell-range-hover.ant-picker-cell-range-end:after{left:50%}.ant-picker-cell-in-view.ant-picker-cell-range-hover-edge-start:not(.ant-picker-cell-range-hover-edge-start-near-range):after,.ant-picker-cell-in-view.ant-picker-cell-range-hover-start:after,.ant-picker-cell-in-view.ant-picker-cell-start.ant-picker-cell-range-hover-edge-start.ant-picker-cell-range-hover-edge-start-near-range:after,tr>.ant-picker-cell-in-view.ant-picker-cell-range-hover-end:first-child:after,tr>.ant-picker-cell-in-view.ant-picker-cell-range-hover:first-child:after{left:6px;border-left:1px dashed #7ec1ff;border-top-left-radius:2px;border-bottom-left-radius:2px}.ant-picker-cell-in-view.ant-picker-cell-end.ant-picker-cell-range-hover-edge-end.ant-picker-cell-range-hover-edge-end-near-range:after,.ant-picker-cell-in-view.ant-picker-cell-range-hover-edge-end:not(.ant-picker-cell-range-hover-edge-end-near-range):after,.ant-picker-cell-in-view.ant-picker-cell-range-hover-end:after,tr>.ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child:after,tr>.ant-picker-cell-in-view.ant-picker-cell-range-hover:last-child:after{right:6px;border-right:1px dashed #7ec1ff;border-top-right-radius:2px;border-bottom-right-radius:2px}.ant-picker-cell-disabled{color:#00000040;pointer-events:none}.ant-picker-cell-disabled .ant-picker-cell-inner{background:#0000}.ant-picker-cell-disabled:before{background:#0000000a}.ant-picker-cell-disabled.ant-picker-cell-today .ant-picker-cell-inner:before{border-color:#00000040}.ant-picker-decade-panel .ant-picker-content,.ant-picker-month-panel .ant-picker-content,.ant-picker-quarter-panel .ant-picker-content,.ant-picker-year-panel .ant-picker-content{height:264px}.ant-picker-decade-panel .ant-picker-cell-inner,.ant-picker-month-panel .ant-picker-cell-inner,.ant-picker-quarter-panel .ant-picker-cell-inner,.ant-picker-year-panel .ant-picker-cell-inner{padding:0 8px}.ant-picker-quarter-panel .ant-picker-content{height:56px}.ant-picker-footer{width:min-content;min-width:100%;line-height:38px;text-align:center;border-bottom:1px solid #0000}.ant-picker-panel .ant-picker-footer{border-top:1px solid #f0f0f0}.ant-picker-footer-extra{padding:0 12px;line-height:38px;text-align:left}.ant-picker-footer-extra:not(:last-child){border-bottom:1px solid #f0f0f0}.ant-picker-now{text-align:left}.ant-picker-today-btn{color:#1890ff}.ant-picker-today-btn:hover{color:#40a9ff}.ant-picker-today-btn:active{color:#096dd9}.ant-picker-today-btn.ant-picker-today-btn-disabled{color:#00000040;cursor:not-allowed}.ant-picker-decade-panel .ant-picker-cell-inner{padding:0 4px}.ant-picker-decade-panel .ant-picker-cell:before{display:none}.ant-picker-month-panel .ant-picker-body,.ant-picker-quarter-panel .ant-picker-body,.ant-picker-year-panel .ant-picker-body{padding:0 8px}.ant-picker-month-panel .ant-picker-cell-inner,.ant-picker-quarter-panel .ant-picker-cell-inner,.ant-picker-year-panel .ant-picker-cell-inner{width:60px}.ant-picker-month-panel .ant-picker-cell-range-hover-start:after,.ant-picker-quarter-panel .ant-picker-cell-range-hover-start:after,.ant-picker-year-panel .ant-picker-cell-range-hover-start:after{left:14px;border-left:1px dashed #7ec1ff;border-radius:2px 0 0 2px}.ant-picker-month-panel .ant-picker-cell-range-hover-end:after,.ant-picker-panel-rtl .ant-picker-month-panel .ant-picker-cell-range-hover-start:after,.ant-picker-panel-rtl .ant-picker-quarter-panel .ant-picker-cell-range-hover-start:after,.ant-picker-panel-rtl .ant-picker-year-panel .ant-picker-cell-range-hover-start:after,.ant-picker-quarter-panel .ant-picker-cell-range-hover-end:after,.ant-picker-year-panel .ant-picker-cell-range-hover-end:after{right:14px;border-right:1px dashed #7ec1ff;border-radius:0 2px 2px 0}.ant-picker-panel-rtl .ant-picker-month-panel .ant-picker-cell-range-hover-end:after,.ant-picker-panel-rtl .ant-picker-quarter-panel .ant-picker-cell-range-hover-end:after,.ant-picker-panel-rtl .ant-picker-year-panel .ant-picker-cell-range-hover-end:after{left:14px;border-left:1px dashed #7ec1ff;border-radius:2px 0 0 2px}.ant-picker-week-panel .ant-picker-body{padding:8px 12px}.ant-picker-week-panel .ant-picker-cell .ant-picker-cell-inner,.ant-picker-week-panel .ant-picker-cell-selected .ant-picker-cell-inner,.ant-picker-week-panel .ant-picker-cell:hover .ant-picker-cell-inner{background:#0000!important}.ant-picker-week-panel-row td{transition:background .3s}.ant-picker-week-panel-row:hover td{background:#f5f5f5}.ant-picker-week-panel-row-selected td,.ant-picker-week-panel-row-selected:hover td{background:#1890ff}.ant-picker-week-panel-row-selected td.ant-picker-cell-week,.ant-picker-week-panel-row-selected:hover td.ant-picker-cell-week{color:#ffffff80}.ant-picker-week-panel-row-selected td.ant-picker-cell-today .ant-picker-cell-inner:before,.ant-picker-week-panel-row-selected:hover td.ant-picker-cell-today .ant-picker-cell-inner:before{border-color:#fff}.ant-picker-week-panel-row-selected td .ant-picker-cell-inner,.ant-picker-week-panel-row-selected:hover td .ant-picker-cell-inner{color:#fff}.ant-picker-date-panel .ant-picker-body{padding:8px 12px}.ant-picker-date-panel .ant-picker-content{width:252px}.ant-picker-date-panel .ant-picker-content th{width:36px}.ant-picker-datetime-panel{display:flex}.ant-picker-datetime-panel .ant-picker-time-panel{border-left:1px solid #f0f0f0}.ant-picker-datetime-panel .ant-picker-date-panel,.ant-picker-datetime-panel .ant-picker-time-panel{transition:opacity .3s}.ant-picker-datetime-panel-active .ant-picker-date-panel,.ant-picker-datetime-panel-active .ant-picker-time-panel{opacity:.3}.ant-picker-datetime-panel-active .ant-picker-date-panel-active,.ant-picker-datetime-panel-active .ant-picker-time-panel-active{opacity:1}.ant-picker-time-panel{width:auto;min-width:auto}.ant-picker-time-panel .ant-picker-content{display:flex;flex:auto;height:224px}.ant-picker-time-panel-column{flex:1 0 auto;width:56px;margin:0;padding:0;overflow-y:hidden;text-align:left;list-style:none;transition:background .3s}.ant-picker-time-panel-column:after{display:block;height:196px;content:""}.ant-picker-datetime-panel .ant-picker-time-panel-column:after{height:198px}.ant-picker-time-panel-column:not(:first-child){border-left:1px solid #f0f0f0}.ant-picker-time-panel-column-active{background:#e6f7ff33}.ant-picker-time-panel-column:hover{overflow-y:auto}.ant-picker-time-panel-column>li{margin:0;padding:0}.ant-picker-time-panel-column>li.ant-picker-time-panel-cell .ant-picker-time-panel-cell-inner{display:block;width:100%;height:28px;margin:0;padding:0 0 0 14px;color:#000000d9;line-height:28px;border-radius:0;cursor:pointer;transition:background .3s}.ant-picker-time-panel-column>li.ant-picker-time-panel-cell .ant-picker-time-panel-cell-inner:hover{background:#f5f5f5}.ant-picker-time-panel-column>li.ant-picker-time-panel-cell-selected .ant-picker-time-panel-cell-inner{background:#e6f7ff}.ant-picker-time-panel-column>li.ant-picker-time-panel-cell-disabled .ant-picker-time-panel-cell-inner{color:#00000040;background:#0000;cursor:not-allowed}:root .ant-picker-range-wrapper .ant-picker-month-panel .ant-picker-cell,:root .ant-picker-range-wrapper .ant-picker-year-panel .ant-picker-cell,_:-ms-fullscreen .ant-picker-range-wrapper .ant-picker-month-panel .ant-picker-cell,_:-ms-fullscreen .ant-picker-range-wrapper .ant-picker-year-panel .ant-picker-cell{padding:21px 0}.ant-picker-rtl{direction:rtl}.ant-picker-rtl .ant-picker-suffix{margin-right:4px;margin-left:0}.ant-picker-rtl .ant-picker-clear{right:auto;left:0}.ant-picker-rtl .ant-picker-separator{transform:rotate(180deg)}.ant-picker-panel-rtl .ant-picker-header-view button:not(:first-child){margin-right:8px;margin-left:0}.ant-picker-rtl.ant-picker-range .ant-picker-clear{right:auto;left:11px}.ant-picker-rtl.ant-picker-range .ant-picker-active-bar{margin-right:11px;margin-left:0}.ant-picker-rtl.ant-picker-range.ant-picker-small .ant-picker-active-bar{margin-right:7px}.ant-picker-dropdown-rtl .ant-picker-ranges{text-align:right}.ant-picker-dropdown-rtl .ant-picker-ranges .ant-picker-ok{float:left;margin-right:8px;margin-left:0}.ant-picker-panel-rtl{direction:rtl}.ant-picker-panel-rtl .ant-picker-prev-icon,.ant-picker-panel-rtl .ant-picker-super-prev-icon{transform:rotate(135deg)}.ant-picker-panel-rtl .ant-picker-next-icon,.ant-picker-panel-rtl .ant-picker-super-next-icon{transform:rotate(-45deg)}.ant-picker-cell .ant-picker-cell-inner{position:relative;z-index:2;display:inline-block;min-width:24px;height:24px;line-height:24px;border-radius:2px;transition:background .3s,border .3s}.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-start:before{right:50%;left:0}.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-end:before{right:0;left:50%}.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-start.ant-picker-cell-range-end:before{right:50%;left:50%}.ant-picker-panel-rtl .ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-start .ant-picker-cell-inner:after{right:0;left:-6px}.ant-picker-panel-rtl .ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-end .ant-picker-cell-inner:after{right:-6px;left:0}.ant-picker-panel-rtl .ant-picker-cell-range-hover.ant-picker-cell-range-start:after{right:0;left:50%}.ant-picker-panel-rtl .ant-picker-cell-range-hover.ant-picker-cell-range-end:after{right:50%;left:0}.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-start:not(.ant-picker-cell-range-start-single):not(.ant-picker-cell-range-end) .ant-picker-cell-inner{border-radius:0 2px 2px 0}.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-end:not(.ant-picker-cell-range-end-single):not(.ant-picker-cell-range-start) .ant-picker-cell-inner{border-radius:2px 0 0 2px}.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-hover-edge-start:not(.ant-picker-cell-range-hover-edge-start-near-range):after,.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:after,.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-start.ant-picker-cell-range-hover-edge-start.ant-picker-cell-range-hover-edge-start-near-range:after,.ant-picker-panel-rtl tr>.ant-picker-cell-in-view.ant-picker-cell-range-hover:not(.ant-picker-cell-selected):first-child:after{right:6px;left:0;border-right:1px dashed #7ec1ff;border-left:none;border-top-left-radius:0;border-top-right-radius:2px;border-bottom-right-radius:2px;border-bottom-left-radius:0}.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-end.ant-picker-cell-range-hover-edge-end.ant-picker-cell-range-hover-edge-end-near-range:after,.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-hover-edge-end:not(.ant-picker-cell-range-hover-edge-end-near-range):after,.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-hover-end:after,.ant-picker-panel-rtl tr>.ant-picker-cell-in-view.ant-picker-cell-range-hover:not(.ant-picker-cell-selected):last-child:after{right:0;left:6px;border-right:none;border-left:1px dashed #7ec1ff;border-top-left-radius:2px;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:2px}.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-end.ant-picker-cell-range-hover-start.ant-picker-cell-range-hover-edge-end:not(.ant-picker-cell-range-hover):after,.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-start.ant-picker-cell-range-hover-edge-start:not(.ant-picker-cell-range-hover):after,.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-start.ant-picker-cell-range-hover-end.ant-picker-cell-range-hover-edge-start:not(.ant-picker-cell-range-hover):after,.ant-picker-panel-rtl tr>.ant-picker-cell-in-view.ant-picker-cell-end.ant-picker-cell-range-hover.ant-picker-cell-range-hover-edge-end:first-child:after,.ant-picker-panel-rtl tr>.ant-picker-cell-in-view.ant-picker-cell-range-hover-end:first-child:after,.ant-picker-panel-rtl tr>.ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child:after,.ant-picker-panel-rtl tr>.ant-picker-cell-in-view.ant-picker-cell-start.ant-picker-cell-range-hover.ant-picker-cell-range-hover-edge-start:last-child:after{right:6px;left:6px;border-right:1px dashed #7ec1ff;border-left:1px dashed #7ec1ff;border-radius:2px}.ant-picker-dropdown-rtl .ant-picker-footer-extra{direction:rtl;text-align:right}.ant-picker-panel-rtl .ant-picker-time-panel{direction:ltr}.ant-picker-inline{border:none;padding:0}.ant-picker-inline .ant-picker-range-arrow{display:none!important}.ant-descriptions-header{display:flex;align-items:center;margin-bottom:20px}.ant-descriptions-title{flex:auto;overflow:hidden;color:#000000d9;font-weight:700;font-size:16px;line-height:1.5715;white-space:nowrap;text-overflow:ellipsis}.ant-descriptions-extra{margin-left:auto;color:#000000d9;font-size:14px}.ant-descriptions-view{width:100%;overflow:hidden;border-radius:2px}.ant-descriptions-view table{width:100%;table-layout:fixed}.ant-descriptions-row>td,.ant-descriptions-row>th{padding-bottom:16px}.ant-descriptions-row:last-child{border-bottom:none}.ant-descriptions-item-label{color:#000000d9;font-weight:400;font-size:14px;line-height:1.5715;text-align:start}.ant-descriptions-item-label:after{content:":";position:relative;top:-.5px;margin:0 8px 0 2px}.ant-descriptions-item-label.ant-descriptions-item-no-colon:after{content:" "}.ant-descriptions-item-no-label:after{margin:0;content:""}.ant-descriptions-item-content{display:table-cell;flex:1;color:#000000d9;font-size:14px;line-height:1.5715;word-break:break-word;overflow-wrap:break-word}.ant-descriptions-item{padding-bottom:0;vertical-align:top}.ant-descriptions-item-container{display:flex}.ant-descriptions-item-container .ant-descriptions-item-content,.ant-descriptions-item-container .ant-descriptions-item-label{display:inline-flex;align-items:baseline}.ant-descriptions-middle .ant-descriptions-row>td,.ant-descriptions-middle .ant-descriptions-row>th{padding-bottom:12px}.ant-descriptions-small .ant-descriptions-row>td,.ant-descriptions-small .ant-descriptions-row>th{padding-bottom:8px}.ant-descriptions-bordered .ant-descriptions-view{border:1px solid #f0f0f0}.ant-descriptions-bordered .ant-descriptions-view>table{table-layout:auto;border-collapse:collapse}.ant-descriptions-bordered .ant-descriptions-item-content,.ant-descriptions-bordered .ant-descriptions-item-label{padding:16px 24px;border-right:1px solid #f0f0f0}.ant-descriptions-bordered .ant-descriptions-item-content:last-child,.ant-descriptions-bordered .ant-descriptions-item-label:last-child{border-right:none}.ant-descriptions-bordered .ant-descriptions-item-label{background-color:#fafafa}.ant-descriptions-bordered .ant-descriptions-item-label:after{display:none}.ant-descriptions-bordered .ant-descriptions-row{border-bottom:1px solid #f0f0f0}.ant-descriptions-bordered .ant-descriptions-row:last-child{border-bottom:none}.ant-descriptions-bordered.ant-descriptions-middle .ant-descriptions-item-content,.ant-descriptions-bordered.ant-descriptions-middle .ant-descriptions-item-label{padding:12px 24px}.ant-descriptions-bordered.ant-descriptions-small .ant-descriptions-item-content,.ant-descriptions-bordered.ant-descriptions-small .ant-descriptions-item-label{padding:8px 16px}.ant-descriptions-rtl{direction:rtl}.ant-descriptions-rtl .ant-descriptions-item-label:after{margin:0 2px 0 8px}.ant-descriptions-rtl.ant-descriptions-bordered .ant-descriptions-item-content,.ant-descriptions-rtl.ant-descriptions-bordered .ant-descriptions-item-label{border-right:none;border-left:1px solid #f0f0f0}.ant-descriptions-rtl.ant-descriptions-bordered .ant-descriptions-item-content:last-child,.ant-descriptions-rtl.ant-descriptions-bordered .ant-descriptions-item-label:last-child{border-left:none}nz-descriptions{display:block}.ant-divider{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";border-top:1px solid #0000000f}.ant-divider-vertical{position:relative;top:-.06em;display:inline-block;height:.9em;margin:0 8px;vertical-align:middle;border-top:0;border-left:1px solid #0000000f}.ant-divider-horizontal{display:flex;clear:both;width:100%;min-width:100%;margin:24px 0}.ant-divider-horizontal.ant-divider-with-text{display:flex;margin:16px 0;color:#000000d9;font-weight:500;font-size:16px;white-space:nowrap;text-align:center;border-top:0;border-top-color:#0000000f}.ant-divider-horizontal.ant-divider-with-text:after,.ant-divider-horizontal.ant-divider-with-text:before{position:relative;top:50%;width:50%;border-top:1px solid #0000;border-top-color:inherit;border-bottom:0;transform:translateY(50%);content:""}.ant-divider-horizontal.ant-divider-with-text-left:before{top:50%;width:5%}.ant-divider-horizontal.ant-divider-with-text-left:after,.ant-divider-horizontal.ant-divider-with-text-right:before{top:50%;width:95%}.ant-divider-horizontal.ant-divider-with-text-right:after{top:50%;width:5%}.ant-divider-inner-text{display:inline-block;padding:0 1em}.ant-divider-dashed{background:none;border:dashed #0000000f;border-width:1px 0 0}.ant-divider-horizontal.ant-divider-with-text.ant-divider-dashed{border-top:0}.ant-divider-horizontal.ant-divider-with-text.ant-divider-dashed:after,.ant-divider-horizontal.ant-divider-with-text.ant-divider-dashed:before{border-style:dashed none none}.ant-divider-vertical.ant-divider-dashed{border-width:0 0 0 1px}.ant-divider-plain.ant-divider-with-text{color:#000000d9;font-weight:400;font-size:14px}.ant-divider-rtl{direction:rtl}.ant-divider-rtl.ant-divider-horizontal.ant-divider-with-text-left:before{width:95%}.ant-divider-rtl.ant-divider-horizontal.ant-divider-with-text-left:after,.ant-divider-rtl.ant-divider-horizontal.ant-divider-with-text-right:before{width:5%}.ant-divider-rtl.ant-divider-horizontal.ant-divider-with-text-right:after{width:95%}.ant-drawer{position:fixed;z-index:1000;width:0;height:100%;transition:transform .3s cubic-bezier(.7,.3,.1,1),height 0s ease .3s,width 0s ease .3s}.ant-drawer>*{transition:transform .3s cubic-bezier(.7,.3,.1,1),box-shadow .3s cubic-bezier(.7,.3,.1,1)}.ant-drawer-content-wrapper{position:absolute;width:100%;height:100%}.ant-drawer .ant-drawer-content{width:100%;height:100%}.ant-drawer-left,.ant-drawer-right{top:0;width:0;height:100%}.ant-drawer-left .ant-drawer-content-wrapper,.ant-drawer-right .ant-drawer-content-wrapper{height:100%}.ant-drawer-left.ant-drawer-open,.ant-drawer-right.ant-drawer-open{width:100%;transition:transform .3s cubic-bezier(.7,.3,.1,1)}.ant-drawer-left,.ant-drawer-left .ant-drawer-content-wrapper{left:0}.ant-drawer-left.ant-drawer-open .ant-drawer-content-wrapper{box-shadow:6px 0 16px -8px #00000014,9px 0 28px 0 #0000000d,12px 0 48px 16px #00000008}.ant-drawer-right,.ant-drawer-right .ant-drawer-content-wrapper{right:0}.ant-drawer-right.ant-drawer-open .ant-drawer-content-wrapper{box-shadow:-6px 0 16px -8px #00000014,-9px 0 28px 0 #0000000d,-12px 0 48px 16px #00000008}.ant-drawer-right.ant-drawer-open.no-mask{right:1px;transform:translateX(1px)}.ant-drawer-bottom,.ant-drawer-top{left:0;width:100%;height:0}.ant-drawer-bottom .ant-drawer-content-wrapper,.ant-drawer-top .ant-drawer-content-wrapper{width:100%}.ant-drawer-bottom.ant-drawer-open,.ant-drawer-top.ant-drawer-open{height:100%;transition:transform .3s cubic-bezier(.7,.3,.1,1)}.ant-drawer-top{top:0}.ant-drawer-top.ant-drawer-open .ant-drawer-content-wrapper{box-shadow:0 6px 16px -8px #00000014,0 9px 28px 0 #0000000d,0 12px 48px 16px #00000008}.ant-drawer-bottom,.ant-drawer-bottom .ant-drawer-content-wrapper{bottom:0}.ant-drawer-bottom.ant-drawer-open .ant-drawer-content-wrapper{box-shadow:0 -6px 16px -8px #00000014,0 -9px 28px 0 #0000000d,0 -12px 48px 16px #00000008}.ant-drawer-bottom.ant-drawer-open.no-mask{bottom:1px;transform:translateY(1px)}.ant-drawer.ant-drawer-open .ant-drawer-mask{height:100%;opacity:1;transition:none;animation:antdDrawerFadeIn .3s cubic-bezier(.7,.3,.1,1);pointer-events:auto}.ant-drawer-title{margin:0;color:#000000d9;font-weight:500;font-size:16px;line-height:22px}.ant-drawer-content{position:relative;z-index:1;overflow:auto;background-color:#fff;background-clip:padding-box;border:0}.ant-drawer-close{position:absolute;top:0;right:0;z-index:10;display:block;padding:20px;color:#00000073;font-weight:700;font-size:16px;font-style:normal;line-height:1;text-align:center;text-transform:none;text-decoration:none;background:#0000;border:0;outline:0;cursor:pointer;transition:color .3s;text-rendering:auto}.ant-drawer-close:focus,.ant-drawer-close:hover{color:#000000bf;text-decoration:none}.ant-drawer-header-no-title .ant-drawer-close{margin-right:var(--scroll-bar);padding-right:calc(20px - var(--scroll-bar))}.ant-drawer-header{position:relative;padding:16px 24px;border-bottom:1px solid #f0f0f0;border-radius:2px 2px 0 0}.ant-drawer-header,.ant-drawer-header-no-title{color:#000000d9;background:#fff}.ant-drawer-wrapper-body{display:flex;flex-direction:column;flex-wrap:nowrap;width:100%;height:100%}.ant-drawer-body{flex-grow:1;padding:24px;overflow:auto;font-size:14px;line-height:1.5715;word-wrap:break-word}.ant-drawer-footer{flex-shrink:0;padding:10px 16px;border-top:1px solid #f0f0f0}.ant-drawer-mask{position:absolute;top:0;left:0;width:100%;height:0;background-color:#00000073;opacity:0;filter:alpha(opacity=45);transition:opacity .3s linear,height 0s ease .3s;pointer-events:none}.ant-drawer-open-content{box-shadow:0 3px 6px -4px #0000001f,0 6px 16px 0 #00000014,0 9px 28px 8px #0000000d}.ant-drawer .ant-picker-clear{background:#fff}@keyframes antdDrawerFadeIn{0%{opacity:0}to{opacity:1}}.ant-drawer-rtl{direction:rtl}.ant-drawer-rtl .ant-drawer-close{right:auto;left:0}.ant-dropdown-menu-item.ant-dropdown-menu-item-danger{color:#ff4d4f}.ant-dropdown-menu-item.ant-dropdown-menu-item-danger:hover{color:#fff;background-color:#ff4d4f}.ant-dropdown{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:absolute;top:-9999px;left:-9999px;z-index:1050;display:block}.ant-dropdown:before{position:absolute;top:-4px;right:0;bottom:-4px;left:-7px;z-index:-9999;opacity:.0001;content:" "}.ant-dropdown-wrap{position:relative}.ant-dropdown-wrap .ant-btn>.anticon-down{font-size:10px}.ant-dropdown-wrap .anticon-down:before{transition:transform .2s}.ant-dropdown-wrap-open .anticon-down:before{transform:rotate(180deg)}.ant-dropdown-hidden,.ant-dropdown-menu-hidden,.ant-dropdown-menu-submenu-hidden{display:none}.ant-dropdown-show-arrow.ant-dropdown-placement-topCenter,.ant-dropdown-show-arrow.ant-dropdown-placement-topLeft,.ant-dropdown-show-arrow.ant-dropdown-placement-topRight{padding-bottom:10px}.ant-dropdown-show-arrow.ant-dropdown-placement-bottomCenter,.ant-dropdown-show-arrow.ant-dropdown-placement-bottomLeft,.ant-dropdown-show-arrow.ant-dropdown-placement-bottomRight{padding-top:10px}.ant-dropdown-arrow{position:absolute;z-index:1;display:block;width:8.48528137px;height:8.48528137px;background:#0000;border-style:solid;border-width:4.24264069px;transform:rotate(45deg)}.ant-dropdown-placement-topCenter>.ant-dropdown-arrow,.ant-dropdown-placement-topLeft>.ant-dropdown-arrow,.ant-dropdown-placement-topRight>.ant-dropdown-arrow{bottom:6.2px;border-color:#0000 #fff #fff #0000;box-shadow:3px 3px 7px #00000012}.ant-dropdown-placement-topCenter>.ant-dropdown-arrow{left:50%;transform:translateX(-50%) rotate(45deg)}.ant-dropdown-placement-topLeft>.ant-dropdown-arrow{left:16px}.ant-dropdown-placement-topRight>.ant-dropdown-arrow{right:16px}.ant-dropdown-placement-bottomCenter>.ant-dropdown-arrow,.ant-dropdown-placement-bottomLeft>.ant-dropdown-arrow,.ant-dropdown-placement-bottomRight>.ant-dropdown-arrow{top:6px;border-color:#fff #0000 #0000 #fff;box-shadow:-2px -2px 5px #0000000f}.ant-dropdown-placement-bottomCenter>.ant-dropdown-arrow{left:50%;transform:translateX(-50%) rotate(45deg)}.ant-dropdown-placement-bottomLeft>.ant-dropdown-arrow{left:16px}.ant-dropdown-placement-bottomRight>.ant-dropdown-arrow{right:16px}.ant-dropdown-menu{position:relative;margin:0;padding:4px 0;text-align:left;list-style-type:none;background-color:#fff;background-clip:padding-box;border-radius:2px;outline:none;box-shadow:0 3px 6px -4px #0000001f,0 6px 16px 0 #00000014,0 9px 28px 8px #0000000d}.ant-dropdown-menu-item-group-title{padding:5px 12px;color:#00000073;transition:all .3s}.ant-dropdown-menu-submenu-popup{position:absolute;z-index:1050;background:#0000;box-shadow:none;transform-origin:0 0}.ant-dropdown-menu-submenu-popup li,.ant-dropdown-menu-submenu-popup ul{list-style:none}.ant-dropdown-menu-submenu-popup ul{margin-right:.3em;margin-left:.3em}.ant-dropdown-menu-item{position:relative;display:flex;align-items:center}.ant-dropdown-menu-item-icon{min-width:12px;margin-right:8px;font-size:12px}.ant-dropdown-menu-title-content{flex:auto}.ant-dropdown-menu-title-content>a{color:inherit;transition:all .3s}.ant-dropdown-menu-title-content>a:hover{color:inherit}.ant-dropdown-menu-title-content>a:after{position:absolute;top:0;right:0;bottom:0;left:0;content:""}.ant-dropdown-menu-item,.ant-dropdown-menu-submenu-title{clear:both;margin:0;padding:5px 12px;color:#000000d9;font-weight:400;font-size:14px;line-height:22px;white-space:nowrap;cursor:pointer;transition:all .3s}.ant-dropdown-menu-item-selected,.ant-dropdown-menu-submenu-title-selected{color:#1890ff;background-color:#e6f7ff}.ant-dropdown-menu-item:hover,.ant-dropdown-menu-submenu-title:hover{background-color:#f5f5f5}.ant-dropdown-menu-item-disabled,.ant-dropdown-menu-submenu-title-disabled{color:#00000040;cursor:not-allowed}.ant-dropdown-menu-item-disabled:hover,.ant-dropdown-menu-submenu-title-disabled:hover{color:#00000040;background-color:#fff;cursor:not-allowed}.ant-dropdown-menu-item-disabled a,.ant-dropdown-menu-submenu-title-disabled a{pointer-events:none}.ant-dropdown-menu-item-divider,.ant-dropdown-menu-submenu-title-divider{height:1px;margin:4px 0;overflow:hidden;line-height:0;background-color:#f0f0f0}.ant-dropdown-menu-item .ant-dropdown-menu-submenu-expand-icon,.ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-expand-icon{position:absolute;right:8px}.ant-dropdown-menu-item .ant-dropdown-menu-submenu-expand-icon .ant-dropdown-menu-submenu-arrow-icon,.ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-expand-icon .ant-dropdown-menu-submenu-arrow-icon{margin-right:0!important;color:#00000073;font-size:10px;font-style:normal}.ant-dropdown-menu-item-group-list{margin:0 8px;padding:0;list-style:none}.ant-dropdown-menu-submenu-title{padding-right:24px}.ant-dropdown-menu-submenu-vertical{position:relative}.ant-dropdown-menu-submenu-vertical>.ant-dropdown-menu{position:absolute;top:0;left:100%;min-width:100%;margin-left:4px;transform-origin:0 0}.ant-dropdown-menu-submenu.ant-dropdown-menu-submenu-disabled .ant-dropdown-menu-submenu-title,.ant-dropdown-menu-submenu.ant-dropdown-menu-submenu-disabled .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow-icon{color:#00000040;background-color:#fff;cursor:not-allowed}.ant-dropdown-menu-submenu-selected .ant-dropdown-menu-submenu-title{color:#1890ff}.ant-dropdown.ant-slide-down-appear.ant-slide-down-appear-active.ant-dropdown-placement-bottomCenter,.ant-dropdown.ant-slide-down-appear.ant-slide-down-appear-active.ant-dropdown-placement-bottomLeft,.ant-dropdown.ant-slide-down-appear.ant-slide-down-appear-active.ant-dropdown-placement-bottomRight,.ant-dropdown.ant-slide-down-enter.ant-slide-down-enter-active.ant-dropdown-placement-bottomCenter,.ant-dropdown.ant-slide-down-enter.ant-slide-down-enter-active.ant-dropdown-placement-bottomLeft,.ant-dropdown.ant-slide-down-enter.ant-slide-down-enter-active.ant-dropdown-placement-bottomRight{animation-name:antSlideUpIn}.ant-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-dropdown-placement-topCenter,.ant-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-dropdown-placement-topLeft,.ant-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-dropdown-placement-topRight,.ant-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-dropdown-placement-topCenter,.ant-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-dropdown-placement-topLeft,.ant-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-dropdown-placement-topRight{animation-name:antSlideDownIn}.ant-dropdown.ant-slide-down-leave.ant-slide-down-leave-active.ant-dropdown-placement-bottomCenter,.ant-dropdown.ant-slide-down-leave.ant-slide-down-leave-active.ant-dropdown-placement-bottomLeft,.ant-dropdown.ant-slide-down-leave.ant-slide-down-leave-active.ant-dropdown-placement-bottomRight{animation-name:antSlideUpOut}.ant-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-dropdown-placement-topCenter,.ant-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-dropdown-placement-topLeft,.ant-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-dropdown-placement-topRight{animation-name:antSlideDownOut}.ant-dropdown-button>.anticon.anticon-down,.ant-dropdown-link>.anticon.anticon-down,.ant-dropdown-trigger>.anticon.anticon-down{font-size:10px;vertical-align:initial}.ant-dropdown-button{white-space:nowrap}.ant-dropdown-button.ant-btn-group>.ant-btn:last-child:not(:first-child):not(.ant-btn-icon-only){padding-right:8px;padding-left:8px}.ant-dropdown-menu-dark,.ant-dropdown-menu-dark .ant-dropdown-menu{background:#001529}.ant-dropdown-menu-dark .ant-dropdown-menu-item,.ant-dropdown-menu-dark .ant-dropdown-menu-item .ant-dropdown-menu-submenu-arrow:after,.ant-dropdown-menu-dark .ant-dropdown-menu-item>.anticon+span>a,.ant-dropdown-menu-dark .ant-dropdown-menu-item>.anticon+span>a .ant-dropdown-menu-submenu-arrow:after,.ant-dropdown-menu-dark .ant-dropdown-menu-item>a,.ant-dropdown-menu-dark .ant-dropdown-menu-item>a .ant-dropdown-menu-submenu-arrow:after,.ant-dropdown-menu-dark .ant-dropdown-menu-submenu-title,.ant-dropdown-menu-dark .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow:after{color:#ffffffa6}.ant-dropdown-menu-dark .ant-dropdown-menu-item:hover,.ant-dropdown-menu-dark .ant-dropdown-menu-item>.anticon+span>a:hover,.ant-dropdown-menu-dark .ant-dropdown-menu-item>a:hover,.ant-dropdown-menu-dark .ant-dropdown-menu-submenu-title:hover{color:#fff;background:#0000}.ant-dropdown-menu-dark .ant-dropdown-menu-item-selected,.ant-dropdown-menu-dark .ant-dropdown-menu-item-selected:hover,.ant-dropdown-menu-dark .ant-dropdown-menu-item-selected>a{color:#fff;background:#1890ff}.ant-dropdown-rtl{direction:rtl}.ant-dropdown-rtl.ant-dropdown:before{right:-7px;left:0}.ant-dropdown-menu.ant-dropdown-menu-rtl,.ant-dropdown-rtl .ant-dropdown-menu-item-group-title{direction:rtl;text-align:right}.ant-dropdown-menu-submenu-popup.ant-dropdown-menu-submenu-rtl{transform-origin:100% 0}.ant-dropdown-rtl .ant-dropdown-menu-item,.ant-dropdown-rtl .ant-dropdown-menu-submenu-popup li,.ant-dropdown-rtl .ant-dropdown-menu-submenu-popup ul,.ant-dropdown-rtl .ant-dropdown-menu-submenu-title{text-align:right}.ant-dropdown-rtl .ant-dropdown-menu-item>.anticon:first-child,.ant-dropdown-rtl .ant-dropdown-menu-item>span>.anticon:first-child,.ant-dropdown-rtl .ant-dropdown-menu-submenu-title>.anticon:first-child,.ant-dropdown-rtl .ant-dropdown-menu-submenu-title>span>.anticon:first-child{margin-right:0;margin-left:8px}.ant-dropdown-rtl .ant-dropdown-menu-item .ant-dropdown-menu-submenu-arrow,.ant-dropdown-rtl .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow{right:auto;left:8px}.ant-dropdown-rtl .ant-dropdown-menu-item .ant-dropdown-menu-submenu-arrow-icon,.ant-dropdown-rtl .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow-icon{margin-left:0!important;transform:scaleX(-1)}.ant-dropdown-rtl .ant-dropdown-menu-submenu-title{padding-right:12px;padding-left:24px}.ant-dropdown-rtl .ant-dropdown-menu-submenu-vertical>.ant-dropdown-menu{right:100%;left:0;margin-right:4px;margin-left:0}.ant-dropdown-menu>ul{list-style:inherit;margin:0;padding:0}.ant-dropdown{top:0;left:0;position:relative;width:100%;margin-top:6px;margin-bottom:6px}.ant-dropdown-rtl .ant-dropdown-menu-item .ant-dropdown-menu-submenu-arrow,.ant-dropdown-rtl .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow{transform:rotate(180deg)}.ant-empty{margin:0 8px;font-size:14px;line-height:1.5715;text-align:center}.ant-empty-image{height:100px;margin-bottom:8px}.ant-empty-image img{height:100%}.ant-empty-image svg{height:100%;margin:auto}.ant-empty-footer{margin-top:16px}.ant-empty-normal{margin:32px 0;color:#00000040}.ant-empty-normal .ant-empty-image{height:40px}.ant-empty-small{margin:8px 0;color:#00000040}.ant-empty-small .ant-empty-image{height:35px}.ant-empty-img-default-ellipse{fill:#f5f5f5;fill-opacity:.8}.ant-empty-img-default-path-1{fill:#aeb8c2}.ant-empty-img-default-path-2{fill:url(#linearGradient-1)}.ant-empty-img-default-path-3{fill:#f5f5f7}.ant-empty-img-default-path-4,.ant-empty-img-default-path-5{fill:#dce0e6}.ant-empty-img-default-g{fill:#fff}.ant-empty-img-simple-ellipse{fill:#f5f5f5}.ant-empty-img-simple-g{stroke:#d9d9d9}.ant-empty-img-simple-path{fill:#fafafa}.ant-empty-rtl{direction:rtl}nz-empty{display:block}.ant-row{flex-flow:row wrap}.ant-row,.ant-row:after,.ant-row:before{display:flex}.ant-row-no-wrap{flex-wrap:nowrap}.ant-row-start{justify-content:flex-start}.ant-row-center{justify-content:center}.ant-row-end{justify-content:flex-end}.ant-row-space-between{justify-content:space-between}.ant-row-space-around{justify-content:space-around}.ant-row-top{align-items:flex-start}.ant-row-middle{align-items:center}.ant-row-bottom{align-items:flex-end}.ant-col{position:relative;max-width:100%;min-height:1px}.ant-col-24{display:block;flex:0 0 100%;max-width:100%}.ant-col-push-24{left:100%}.ant-col-pull-24{right:100%}.ant-col-offset-24{margin-left:100%}.ant-col-order-24{order:24}.ant-col-23{display:block;flex:0 0 95.83333333%;max-width:95.83333333%}.ant-col-push-23{left:95.83333333%}.ant-col-pull-23{right:95.83333333%}.ant-col-offset-23{margin-left:95.83333333%}.ant-col-order-23{order:23}.ant-col-22{display:block;flex:0 0 91.66666667%;max-width:91.66666667%}.ant-col-push-22{left:91.66666667%}.ant-col-pull-22{right:91.66666667%}.ant-col-offset-22{margin-left:91.66666667%}.ant-col-order-22{order:22}.ant-col-21{display:block;flex:0 0 87.5%;max-width:87.5%}.ant-col-push-21{left:87.5%}.ant-col-pull-21{right:87.5%}.ant-col-offset-21{margin-left:87.5%}.ant-col-order-21{order:21}.ant-col-20{display:block;flex:0 0 83.33333333%;max-width:83.33333333%}.ant-col-push-20{left:83.33333333%}.ant-col-pull-20{right:83.33333333%}.ant-col-offset-20{margin-left:83.33333333%}.ant-col-order-20{order:20}.ant-col-19{display:block;flex:0 0 79.16666667%;max-width:79.16666667%}.ant-col-push-19{left:79.16666667%}.ant-col-pull-19{right:79.16666667%}.ant-col-offset-19{margin-left:79.16666667%}.ant-col-order-19{order:19}.ant-col-18{display:block;flex:0 0 75%;max-width:75%}.ant-col-push-18{left:75%}.ant-col-pull-18{right:75%}.ant-col-offset-18{margin-left:75%}.ant-col-order-18{order:18}.ant-col-17{display:block;flex:0 0 70.83333333%;max-width:70.83333333%}.ant-col-push-17{left:70.83333333%}.ant-col-pull-17{right:70.83333333%}.ant-col-offset-17{margin-left:70.83333333%}.ant-col-order-17{order:17}.ant-col-16{display:block;flex:0 0 66.66666667%;max-width:66.66666667%}.ant-col-push-16{left:66.66666667%}.ant-col-pull-16{right:66.66666667%}.ant-col-offset-16{margin-left:66.66666667%}.ant-col-order-16{order:16}.ant-col-15{display:block;flex:0 0 62.5%;max-width:62.5%}.ant-col-push-15{left:62.5%}.ant-col-pull-15{right:62.5%}.ant-col-offset-15{margin-left:62.5%}.ant-col-order-15{order:15}.ant-col-14{display:block;flex:0 0 58.33333333%;max-width:58.33333333%}.ant-col-push-14{left:58.33333333%}.ant-col-pull-14{right:58.33333333%}.ant-col-offset-14{margin-left:58.33333333%}.ant-col-order-14{order:14}.ant-col-13{display:block;flex:0 0 54.16666667%;max-width:54.16666667%}.ant-col-push-13{left:54.16666667%}.ant-col-pull-13{right:54.16666667%}.ant-col-offset-13{margin-left:54.16666667%}.ant-col-order-13{order:13}.ant-col-12{display:block;flex:0 0 50%;max-width:50%}.ant-col-push-12{left:50%}.ant-col-pull-12{right:50%}.ant-col-offset-12{margin-left:50%}.ant-col-order-12{order:12}.ant-col-11{display:block;flex:0 0 45.83333333%;max-width:45.83333333%}.ant-col-push-11{left:45.83333333%}.ant-col-pull-11{right:45.83333333%}.ant-col-offset-11{margin-left:45.83333333%}.ant-col-order-11{order:11}.ant-col-10{display:block;flex:0 0 41.66666667%;max-width:41.66666667%}.ant-col-push-10{left:41.66666667%}.ant-col-pull-10{right:41.66666667%}.ant-col-offset-10{margin-left:41.66666667%}.ant-col-order-10{order:10}.ant-col-9{display:block;flex:0 0 37.5%;max-width:37.5%}.ant-col-push-9{left:37.5%}.ant-col-pull-9{right:37.5%}.ant-col-offset-9{margin-left:37.5%}.ant-col-order-9{order:9}.ant-col-8{display:block;flex:0 0 33.33333333%;max-width:33.33333333%}.ant-col-push-8{left:33.33333333%}.ant-col-pull-8{right:33.33333333%}.ant-col-offset-8{margin-left:33.33333333%}.ant-col-order-8{order:8}.ant-col-7{display:block;flex:0 0 29.16666667%;max-width:29.16666667%}.ant-col-push-7{left:29.16666667%}.ant-col-pull-7{right:29.16666667%}.ant-col-offset-7{margin-left:29.16666667%}.ant-col-order-7{order:7}.ant-col-6{display:block;flex:0 0 25%;max-width:25%}.ant-col-push-6{left:25%}.ant-col-pull-6{right:25%}.ant-col-offset-6{margin-left:25%}.ant-col-order-6{order:6}.ant-col-5{display:block;flex:0 0 20.83333333%;max-width:20.83333333%}.ant-col-push-5{left:20.83333333%}.ant-col-pull-5{right:20.83333333%}.ant-col-offset-5{margin-left:20.83333333%}.ant-col-order-5{order:5}.ant-col-4{display:block;flex:0 0 16.66666667%;max-width:16.66666667%}.ant-col-push-4{left:16.66666667%}.ant-col-pull-4{right:16.66666667%}.ant-col-offset-4{margin-left:16.66666667%}.ant-col-order-4{order:4}.ant-col-3{display:block;flex:0 0 12.5%;max-width:12.5%}.ant-col-push-3{left:12.5%}.ant-col-pull-3{right:12.5%}.ant-col-offset-3{margin-left:12.5%}.ant-col-order-3{order:3}.ant-col-2{display:block;flex:0 0 8.33333333%;max-width:8.33333333%}.ant-col-push-2{left:8.33333333%}.ant-col-pull-2{right:8.33333333%}.ant-col-offset-2{margin-left:8.33333333%}.ant-col-order-2{order:2}.ant-col-1{display:block;flex:0 0 4.16666667%;max-width:4.16666667%}.ant-col-push-1{left:4.16666667%}.ant-col-pull-1{right:4.16666667%}.ant-col-offset-1{margin-left:4.16666667%}.ant-col-order-1{order:1}.ant-col-0{display:none}.ant-col-offset-0{margin-left:0}.ant-col-order-0{order:0}.ant-col-offset-0.ant-col-rtl{margin-right:0}.ant-col-push-1.ant-col-rtl{right:4.16666667%;left:auto}.ant-col-pull-1.ant-col-rtl{right:auto;left:4.16666667%}.ant-col-offset-1.ant-col-rtl{margin-right:4.16666667%;margin-left:0}.ant-col-push-2.ant-col-rtl{right:8.33333333%;left:auto}.ant-col-pull-2.ant-col-rtl{right:auto;left:8.33333333%}.ant-col-offset-2.ant-col-rtl{margin-right:8.33333333%;margin-left:0}.ant-col-push-3.ant-col-rtl{right:12.5%;left:auto}.ant-col-pull-3.ant-col-rtl{right:auto;left:12.5%}.ant-col-offset-3.ant-col-rtl{margin-right:12.5%;margin-left:0}.ant-col-push-4.ant-col-rtl{right:16.66666667%;left:auto}.ant-col-pull-4.ant-col-rtl{right:auto;left:16.66666667%}.ant-col-offset-4.ant-col-rtl{margin-right:16.66666667%;margin-left:0}.ant-col-push-5.ant-col-rtl{right:20.83333333%;left:auto}.ant-col-pull-5.ant-col-rtl{right:auto;left:20.83333333%}.ant-col-offset-5.ant-col-rtl{margin-right:20.83333333%;margin-left:0}.ant-col-push-6.ant-col-rtl{right:25%;left:auto}.ant-col-pull-6.ant-col-rtl{right:auto;left:25%}.ant-col-offset-6.ant-col-rtl{margin-right:25%;margin-left:0}.ant-col-push-7.ant-col-rtl{right:29.16666667%;left:auto}.ant-col-pull-7.ant-col-rtl{right:auto;left:29.16666667%}.ant-col-offset-7.ant-col-rtl{margin-right:29.16666667%;margin-left:0}.ant-col-push-8.ant-col-rtl{right:33.33333333%;left:auto}.ant-col-pull-8.ant-col-rtl{right:auto;left:33.33333333%}.ant-col-offset-8.ant-col-rtl{margin-right:33.33333333%;margin-left:0}.ant-col-push-9.ant-col-rtl{right:37.5%;left:auto}.ant-col-pull-9.ant-col-rtl{right:auto;left:37.5%}.ant-col-offset-9.ant-col-rtl{margin-right:37.5%;margin-left:0}.ant-col-push-10.ant-col-rtl{right:41.66666667%;left:auto}.ant-col-pull-10.ant-col-rtl{right:auto;left:41.66666667%}.ant-col-offset-10.ant-col-rtl{margin-right:41.66666667%;margin-left:0}.ant-col-push-11.ant-col-rtl{right:45.83333333%;left:auto}.ant-col-pull-11.ant-col-rtl{right:auto;left:45.83333333%}.ant-col-offset-11.ant-col-rtl{margin-right:45.83333333%;margin-left:0}.ant-col-push-12.ant-col-rtl{right:50%;left:auto}.ant-col-pull-12.ant-col-rtl{right:auto;left:50%}.ant-col-offset-12.ant-col-rtl{margin-right:50%;margin-left:0}.ant-col-push-13.ant-col-rtl{right:54.16666667%;left:auto}.ant-col-pull-13.ant-col-rtl{right:auto;left:54.16666667%}.ant-col-offset-13.ant-col-rtl{margin-right:54.16666667%;margin-left:0}.ant-col-push-14.ant-col-rtl{right:58.33333333%;left:auto}.ant-col-pull-14.ant-col-rtl{right:auto;left:58.33333333%}.ant-col-offset-14.ant-col-rtl{margin-right:58.33333333%;margin-left:0}.ant-col-push-15.ant-col-rtl{right:62.5%;left:auto}.ant-col-pull-15.ant-col-rtl{right:auto;left:62.5%}.ant-col-offset-15.ant-col-rtl{margin-right:62.5%;margin-left:0}.ant-col-push-16.ant-col-rtl{right:66.66666667%;left:auto}.ant-col-pull-16.ant-col-rtl{right:auto;left:66.66666667%}.ant-col-offset-16.ant-col-rtl{margin-right:66.66666667%;margin-left:0}.ant-col-push-17.ant-col-rtl{right:70.83333333%;left:auto}.ant-col-pull-17.ant-col-rtl{right:auto;left:70.83333333%}.ant-col-offset-17.ant-col-rtl{margin-right:70.83333333%;margin-left:0}.ant-col-push-18.ant-col-rtl{right:75%;left:auto}.ant-col-pull-18.ant-col-rtl{right:auto;left:75%}.ant-col-offset-18.ant-col-rtl{margin-right:75%;margin-left:0}.ant-col-push-19.ant-col-rtl{right:79.16666667%;left:auto}.ant-col-pull-19.ant-col-rtl{right:auto;left:79.16666667%}.ant-col-offset-19.ant-col-rtl{margin-right:79.16666667%;margin-left:0}.ant-col-push-20.ant-col-rtl{right:83.33333333%;left:auto}.ant-col-pull-20.ant-col-rtl{right:auto;left:83.33333333%}.ant-col-offset-20.ant-col-rtl{margin-right:83.33333333%;margin-left:0}.ant-col-push-21.ant-col-rtl{right:87.5%;left:auto}.ant-col-pull-21.ant-col-rtl{right:auto;left:87.5%}.ant-col-offset-21.ant-col-rtl{margin-right:87.5%;margin-left:0}.ant-col-push-22.ant-col-rtl{right:91.66666667%;left:auto}.ant-col-pull-22.ant-col-rtl{right:auto;left:91.66666667%}.ant-col-offset-22.ant-col-rtl{margin-right:91.66666667%;margin-left:0}.ant-col-push-23.ant-col-rtl{right:95.83333333%;left:auto}.ant-col-pull-23.ant-col-rtl{right:auto;left:95.83333333%}.ant-col-offset-23.ant-col-rtl{margin-right:95.83333333%;margin-left:0}.ant-col-push-24.ant-col-rtl{right:100%;left:auto}.ant-col-pull-24.ant-col-rtl{right:auto;left:100%}.ant-col-offset-24.ant-col-rtl{margin-right:100%;margin-left:0}.ant-col-xs-24{display:block;flex:0 0 100%;max-width:100%}.ant-col-xs-push-24{left:100%}.ant-col-xs-pull-24{right:100%}.ant-col-xs-offset-24{margin-left:100%}.ant-col-xs-order-24{order:24}.ant-col-xs-23{display:block;flex:0 0 95.83333333%;max-width:95.83333333%}.ant-col-xs-push-23{left:95.83333333%}.ant-col-xs-pull-23{right:95.83333333%}.ant-col-xs-offset-23{margin-left:95.83333333%}.ant-col-xs-order-23{order:23}.ant-col-xs-22{display:block;flex:0 0 91.66666667%;max-width:91.66666667%}.ant-col-xs-push-22{left:91.66666667%}.ant-col-xs-pull-22{right:91.66666667%}.ant-col-xs-offset-22{margin-left:91.66666667%}.ant-col-xs-order-22{order:22}.ant-col-xs-21{display:block;flex:0 0 87.5%;max-width:87.5%}.ant-col-xs-push-21{left:87.5%}.ant-col-xs-pull-21{right:87.5%}.ant-col-xs-offset-21{margin-left:87.5%}.ant-col-xs-order-21{order:21}.ant-col-xs-20{display:block;flex:0 0 83.33333333%;max-width:83.33333333%}.ant-col-xs-push-20{left:83.33333333%}.ant-col-xs-pull-20{right:83.33333333%}.ant-col-xs-offset-20{margin-left:83.33333333%}.ant-col-xs-order-20{order:20}.ant-col-xs-19{display:block;flex:0 0 79.16666667%;max-width:79.16666667%}.ant-col-xs-push-19{left:79.16666667%}.ant-col-xs-pull-19{right:79.16666667%}.ant-col-xs-offset-19{margin-left:79.16666667%}.ant-col-xs-order-19{order:19}.ant-col-xs-18{display:block;flex:0 0 75%;max-width:75%}.ant-col-xs-push-18{left:75%}.ant-col-xs-pull-18{right:75%}.ant-col-xs-offset-18{margin-left:75%}.ant-col-xs-order-18{order:18}.ant-col-xs-17{display:block;flex:0 0 70.83333333%;max-width:70.83333333%}.ant-col-xs-push-17{left:70.83333333%}.ant-col-xs-pull-17{right:70.83333333%}.ant-col-xs-offset-17{margin-left:70.83333333%}.ant-col-xs-order-17{order:17}.ant-col-xs-16{display:block;flex:0 0 66.66666667%;max-width:66.66666667%}.ant-col-xs-push-16{left:66.66666667%}.ant-col-xs-pull-16{right:66.66666667%}.ant-col-xs-offset-16{margin-left:66.66666667%}.ant-col-xs-order-16{order:16}.ant-col-xs-15{display:block;flex:0 0 62.5%;max-width:62.5%}.ant-col-xs-push-15{left:62.5%}.ant-col-xs-pull-15{right:62.5%}.ant-col-xs-offset-15{margin-left:62.5%}.ant-col-xs-order-15{order:15}.ant-col-xs-14{display:block;flex:0 0 58.33333333%;max-width:58.33333333%}.ant-col-xs-push-14{left:58.33333333%}.ant-col-xs-pull-14{right:58.33333333%}.ant-col-xs-offset-14{margin-left:58.33333333%}.ant-col-xs-order-14{order:14}.ant-col-xs-13{display:block;flex:0 0 54.16666667%;max-width:54.16666667%}.ant-col-xs-push-13{left:54.16666667%}.ant-col-xs-pull-13{right:54.16666667%}.ant-col-xs-offset-13{margin-left:54.16666667%}.ant-col-xs-order-13{order:13}.ant-col-xs-12{display:block;flex:0 0 50%;max-width:50%}.ant-col-xs-push-12{left:50%}.ant-col-xs-pull-12{right:50%}.ant-col-xs-offset-12{margin-left:50%}.ant-col-xs-order-12{order:12}.ant-col-xs-11{display:block;flex:0 0 45.83333333%;max-width:45.83333333%}.ant-col-xs-push-11{left:45.83333333%}.ant-col-xs-pull-11{right:45.83333333%}.ant-col-xs-offset-11{margin-left:45.83333333%}.ant-col-xs-order-11{order:11}.ant-col-xs-10{display:block;flex:0 0 41.66666667%;max-width:41.66666667%}.ant-col-xs-push-10{left:41.66666667%}.ant-col-xs-pull-10{right:41.66666667%}.ant-col-xs-offset-10{margin-left:41.66666667%}.ant-col-xs-order-10{order:10}.ant-col-xs-9{display:block;flex:0 0 37.5%;max-width:37.5%}.ant-col-xs-push-9{left:37.5%}.ant-col-xs-pull-9{right:37.5%}.ant-col-xs-offset-9{margin-left:37.5%}.ant-col-xs-order-9{order:9}.ant-col-xs-8{display:block;flex:0 0 33.33333333%;max-width:33.33333333%}.ant-col-xs-push-8{left:33.33333333%}.ant-col-xs-pull-8{right:33.33333333%}.ant-col-xs-offset-8{margin-left:33.33333333%}.ant-col-xs-order-8{order:8}.ant-col-xs-7{display:block;flex:0 0 29.16666667%;max-width:29.16666667%}.ant-col-xs-push-7{left:29.16666667%}.ant-col-xs-pull-7{right:29.16666667%}.ant-col-xs-offset-7{margin-left:29.16666667%}.ant-col-xs-order-7{order:7}.ant-col-xs-6{display:block;flex:0 0 25%;max-width:25%}.ant-col-xs-push-6{left:25%}.ant-col-xs-pull-6{right:25%}.ant-col-xs-offset-6{margin-left:25%}.ant-col-xs-order-6{order:6}.ant-col-xs-5{display:block;flex:0 0 20.83333333%;max-width:20.83333333%}.ant-col-xs-push-5{left:20.83333333%}.ant-col-xs-pull-5{right:20.83333333%}.ant-col-xs-offset-5{margin-left:20.83333333%}.ant-col-xs-order-5{order:5}.ant-col-xs-4{display:block;flex:0 0 16.66666667%;max-width:16.66666667%}.ant-col-xs-push-4{left:16.66666667%}.ant-col-xs-pull-4{right:16.66666667%}.ant-col-xs-offset-4{margin-left:16.66666667%}.ant-col-xs-order-4{order:4}.ant-col-xs-3{display:block;flex:0 0 12.5%;max-width:12.5%}.ant-col-xs-push-3{left:12.5%}.ant-col-xs-pull-3{right:12.5%}.ant-col-xs-offset-3{margin-left:12.5%}.ant-col-xs-order-3{order:3}.ant-col-xs-2{display:block;flex:0 0 8.33333333%;max-width:8.33333333%}.ant-col-xs-push-2{left:8.33333333%}.ant-col-xs-pull-2{right:8.33333333%}.ant-col-xs-offset-2{margin-left:8.33333333%}.ant-col-xs-order-2{order:2}.ant-col-xs-1{display:block;flex:0 0 4.16666667%;max-width:4.16666667%}.ant-col-xs-push-1{left:4.16666667%}.ant-col-xs-pull-1{right:4.16666667%}.ant-col-xs-offset-1{margin-left:4.16666667%}.ant-col-xs-order-1{order:1}.ant-col-xs-0{display:none}.ant-col-push-0{left:auto}.ant-col-pull-0{right:auto}.ant-col-xs-push-0{left:auto}.ant-col-xs-pull-0{right:auto}.ant-col-xs-offset-0{margin-left:0}.ant-col-xs-order-0{order:0}.ant-col-push-0.ant-col-rtl{right:auto}.ant-col-pull-0.ant-col-rtl{left:auto}.ant-col-xs-push-0.ant-col-rtl{right:auto}.ant-col-xs-pull-0.ant-col-rtl{left:auto}.ant-col-xs-offset-0.ant-col-rtl{margin-right:0}.ant-col-xs-push-1.ant-col-rtl{right:4.16666667%;left:auto}.ant-col-xs-pull-1.ant-col-rtl{right:auto;left:4.16666667%}.ant-col-xs-offset-1.ant-col-rtl{margin-right:4.16666667%;margin-left:0}.ant-col-xs-push-2.ant-col-rtl{right:8.33333333%;left:auto}.ant-col-xs-pull-2.ant-col-rtl{right:auto;left:8.33333333%}.ant-col-xs-offset-2.ant-col-rtl{margin-right:8.33333333%;margin-left:0}.ant-col-xs-push-3.ant-col-rtl{right:12.5%;left:auto}.ant-col-xs-pull-3.ant-col-rtl{right:auto;left:12.5%}.ant-col-xs-offset-3.ant-col-rtl{margin-right:12.5%;margin-left:0}.ant-col-xs-push-4.ant-col-rtl{right:16.66666667%;left:auto}.ant-col-xs-pull-4.ant-col-rtl{right:auto;left:16.66666667%}.ant-col-xs-offset-4.ant-col-rtl{margin-right:16.66666667%;margin-left:0}.ant-col-xs-push-5.ant-col-rtl{right:20.83333333%;left:auto}.ant-col-xs-pull-5.ant-col-rtl{right:auto;left:20.83333333%}.ant-col-xs-offset-5.ant-col-rtl{margin-right:20.83333333%;margin-left:0}.ant-col-xs-push-6.ant-col-rtl{right:25%;left:auto}.ant-col-xs-pull-6.ant-col-rtl{right:auto;left:25%}.ant-col-xs-offset-6.ant-col-rtl{margin-right:25%;margin-left:0}.ant-col-xs-push-7.ant-col-rtl{right:29.16666667%;left:auto}.ant-col-xs-pull-7.ant-col-rtl{right:auto;left:29.16666667%}.ant-col-xs-offset-7.ant-col-rtl{margin-right:29.16666667%;margin-left:0}.ant-col-xs-push-8.ant-col-rtl{right:33.33333333%;left:auto}.ant-col-xs-pull-8.ant-col-rtl{right:auto;left:33.33333333%}.ant-col-xs-offset-8.ant-col-rtl{margin-right:33.33333333%;margin-left:0}.ant-col-xs-push-9.ant-col-rtl{right:37.5%;left:auto}.ant-col-xs-pull-9.ant-col-rtl{right:auto;left:37.5%}.ant-col-xs-offset-9.ant-col-rtl{margin-right:37.5%;margin-left:0}.ant-col-xs-push-10.ant-col-rtl{right:41.66666667%;left:auto}.ant-col-xs-pull-10.ant-col-rtl{right:auto;left:41.66666667%}.ant-col-xs-offset-10.ant-col-rtl{margin-right:41.66666667%;margin-left:0}.ant-col-xs-push-11.ant-col-rtl{right:45.83333333%;left:auto}.ant-col-xs-pull-11.ant-col-rtl{right:auto;left:45.83333333%}.ant-col-xs-offset-11.ant-col-rtl{margin-right:45.83333333%;margin-left:0}.ant-col-xs-push-12.ant-col-rtl{right:50%;left:auto}.ant-col-xs-pull-12.ant-col-rtl{right:auto;left:50%}.ant-col-xs-offset-12.ant-col-rtl{margin-right:50%;margin-left:0}.ant-col-xs-push-13.ant-col-rtl{right:54.16666667%;left:auto}.ant-col-xs-pull-13.ant-col-rtl{right:auto;left:54.16666667%}.ant-col-xs-offset-13.ant-col-rtl{margin-right:54.16666667%;margin-left:0}.ant-col-xs-push-14.ant-col-rtl{right:58.33333333%;left:auto}.ant-col-xs-pull-14.ant-col-rtl{right:auto;left:58.33333333%}.ant-col-xs-offset-14.ant-col-rtl{margin-right:58.33333333%;margin-left:0}.ant-col-xs-push-15.ant-col-rtl{right:62.5%;left:auto}.ant-col-xs-pull-15.ant-col-rtl{right:auto;left:62.5%}.ant-col-xs-offset-15.ant-col-rtl{margin-right:62.5%;margin-left:0}.ant-col-xs-push-16.ant-col-rtl{right:66.66666667%;left:auto}.ant-col-xs-pull-16.ant-col-rtl{right:auto;left:66.66666667%}.ant-col-xs-offset-16.ant-col-rtl{margin-right:66.66666667%;margin-left:0}.ant-col-xs-push-17.ant-col-rtl{right:70.83333333%;left:auto}.ant-col-xs-pull-17.ant-col-rtl{right:auto;left:70.83333333%}.ant-col-xs-offset-17.ant-col-rtl{margin-right:70.83333333%;margin-left:0}.ant-col-xs-push-18.ant-col-rtl{right:75%;left:auto}.ant-col-xs-pull-18.ant-col-rtl{right:auto;left:75%}.ant-col-xs-offset-18.ant-col-rtl{margin-right:75%;margin-left:0}.ant-col-xs-push-19.ant-col-rtl{right:79.16666667%;left:auto}.ant-col-xs-pull-19.ant-col-rtl{right:auto;left:79.16666667%}.ant-col-xs-offset-19.ant-col-rtl{margin-right:79.16666667%;margin-left:0}.ant-col-xs-push-20.ant-col-rtl{right:83.33333333%;left:auto}.ant-col-xs-pull-20.ant-col-rtl{right:auto;left:83.33333333%}.ant-col-xs-offset-20.ant-col-rtl{margin-right:83.33333333%;margin-left:0}.ant-col-xs-push-21.ant-col-rtl{right:87.5%;left:auto}.ant-col-xs-pull-21.ant-col-rtl{right:auto;left:87.5%}.ant-col-xs-offset-21.ant-col-rtl{margin-right:87.5%;margin-left:0}.ant-col-xs-push-22.ant-col-rtl{right:91.66666667%;left:auto}.ant-col-xs-pull-22.ant-col-rtl{right:auto;left:91.66666667%}.ant-col-xs-offset-22.ant-col-rtl{margin-right:91.66666667%;margin-left:0}.ant-col-xs-push-23.ant-col-rtl{right:95.83333333%;left:auto}.ant-col-xs-pull-23.ant-col-rtl{right:auto;left:95.83333333%}.ant-col-xs-offset-23.ant-col-rtl{margin-right:95.83333333%;margin-left:0}.ant-col-xs-push-24.ant-col-rtl{right:100%;left:auto}.ant-col-xs-pull-24.ant-col-rtl{right:auto;left:100%}.ant-col-xs-offset-24.ant-col-rtl{margin-right:100%;margin-left:0}@media (min-width: 576px){.ant-col-sm-24{display:block;flex:0 0 100%;max-width:100%}.ant-col-sm-push-24{left:100%}.ant-col-sm-pull-24{right:100%}.ant-col-sm-offset-24{margin-left:100%}.ant-col-sm-order-24{order:24}.ant-col-sm-23{display:block;flex:0 0 95.83333333%;max-width:95.83333333%}.ant-col-sm-push-23{left:95.83333333%}.ant-col-sm-pull-23{right:95.83333333%}.ant-col-sm-offset-23{margin-left:95.83333333%}.ant-col-sm-order-23{order:23}.ant-col-sm-22{display:block;flex:0 0 91.66666667%;max-width:91.66666667%}.ant-col-sm-push-22{left:91.66666667%}.ant-col-sm-pull-22{right:91.66666667%}.ant-col-sm-offset-22{margin-left:91.66666667%}.ant-col-sm-order-22{order:22}.ant-col-sm-21{display:block;flex:0 0 87.5%;max-width:87.5%}.ant-col-sm-push-21{left:87.5%}.ant-col-sm-pull-21{right:87.5%}.ant-col-sm-offset-21{margin-left:87.5%}.ant-col-sm-order-21{order:21}.ant-col-sm-20{display:block;flex:0 0 83.33333333%;max-width:83.33333333%}.ant-col-sm-push-20{left:83.33333333%}.ant-col-sm-pull-20{right:83.33333333%}.ant-col-sm-offset-20{margin-left:83.33333333%}.ant-col-sm-order-20{order:20}.ant-col-sm-19{display:block;flex:0 0 79.16666667%;max-width:79.16666667%}.ant-col-sm-push-19{left:79.16666667%}.ant-col-sm-pull-19{right:79.16666667%}.ant-col-sm-offset-19{margin-left:79.16666667%}.ant-col-sm-order-19{order:19}.ant-col-sm-18{display:block;flex:0 0 75%;max-width:75%}.ant-col-sm-push-18{left:75%}.ant-col-sm-pull-18{right:75%}.ant-col-sm-offset-18{margin-left:75%}.ant-col-sm-order-18{order:18}.ant-col-sm-17{display:block;flex:0 0 70.83333333%;max-width:70.83333333%}.ant-col-sm-push-17{left:70.83333333%}.ant-col-sm-pull-17{right:70.83333333%}.ant-col-sm-offset-17{margin-left:70.83333333%}.ant-col-sm-order-17{order:17}.ant-col-sm-16{display:block;flex:0 0 66.66666667%;max-width:66.66666667%}.ant-col-sm-push-16{left:66.66666667%}.ant-col-sm-pull-16{right:66.66666667%}.ant-col-sm-offset-16{margin-left:66.66666667%}.ant-col-sm-order-16{order:16}.ant-col-sm-15{display:block;flex:0 0 62.5%;max-width:62.5%}.ant-col-sm-push-15{left:62.5%}.ant-col-sm-pull-15{right:62.5%}.ant-col-sm-offset-15{margin-left:62.5%}.ant-col-sm-order-15{order:15}.ant-col-sm-14{display:block;flex:0 0 58.33333333%;max-width:58.33333333%}.ant-col-sm-push-14{left:58.33333333%}.ant-col-sm-pull-14{right:58.33333333%}.ant-col-sm-offset-14{margin-left:58.33333333%}.ant-col-sm-order-14{order:14}.ant-col-sm-13{display:block;flex:0 0 54.16666667%;max-width:54.16666667%}.ant-col-sm-push-13{left:54.16666667%}.ant-col-sm-pull-13{right:54.16666667%}.ant-col-sm-offset-13{margin-left:54.16666667%}.ant-col-sm-order-13{order:13}.ant-col-sm-12{display:block;flex:0 0 50%;max-width:50%}.ant-col-sm-push-12{left:50%}.ant-col-sm-pull-12{right:50%}.ant-col-sm-offset-12{margin-left:50%}.ant-col-sm-order-12{order:12}.ant-col-sm-11{display:block;flex:0 0 45.83333333%;max-width:45.83333333%}.ant-col-sm-push-11{left:45.83333333%}.ant-col-sm-pull-11{right:45.83333333%}.ant-col-sm-offset-11{margin-left:45.83333333%}.ant-col-sm-order-11{order:11}.ant-col-sm-10{display:block;flex:0 0 41.66666667%;max-width:41.66666667%}.ant-col-sm-push-10{left:41.66666667%}.ant-col-sm-pull-10{right:41.66666667%}.ant-col-sm-offset-10{margin-left:41.66666667%}.ant-col-sm-order-10{order:10}.ant-col-sm-9{display:block;flex:0 0 37.5%;max-width:37.5%}.ant-col-sm-push-9{left:37.5%}.ant-col-sm-pull-9{right:37.5%}.ant-col-sm-offset-9{margin-left:37.5%}.ant-col-sm-order-9{order:9}.ant-col-sm-8{display:block;flex:0 0 33.33333333%;max-width:33.33333333%}.ant-col-sm-push-8{left:33.33333333%}.ant-col-sm-pull-8{right:33.33333333%}.ant-col-sm-offset-8{margin-left:33.33333333%}.ant-col-sm-order-8{order:8}.ant-col-sm-7{display:block;flex:0 0 29.16666667%;max-width:29.16666667%}.ant-col-sm-push-7{left:29.16666667%}.ant-col-sm-pull-7{right:29.16666667%}.ant-col-sm-offset-7{margin-left:29.16666667%}.ant-col-sm-order-7{order:7}.ant-col-sm-6{display:block;flex:0 0 25%;max-width:25%}.ant-col-sm-push-6{left:25%}.ant-col-sm-pull-6{right:25%}.ant-col-sm-offset-6{margin-left:25%}.ant-col-sm-order-6{order:6}.ant-col-sm-5{display:block;flex:0 0 20.83333333%;max-width:20.83333333%}.ant-col-sm-push-5{left:20.83333333%}.ant-col-sm-pull-5{right:20.83333333%}.ant-col-sm-offset-5{margin-left:20.83333333%}.ant-col-sm-order-5{order:5}.ant-col-sm-4{display:block;flex:0 0 16.66666667%;max-width:16.66666667%}.ant-col-sm-push-4{left:16.66666667%}.ant-col-sm-pull-4{right:16.66666667%}.ant-col-sm-offset-4{margin-left:16.66666667%}.ant-col-sm-order-4{order:4}.ant-col-sm-3{display:block;flex:0 0 12.5%;max-width:12.5%}.ant-col-sm-push-3{left:12.5%}.ant-col-sm-pull-3{right:12.5%}.ant-col-sm-offset-3{margin-left:12.5%}.ant-col-sm-order-3{order:3}.ant-col-sm-2{display:block;flex:0 0 8.33333333%;max-width:8.33333333%}.ant-col-sm-push-2{left:8.33333333%}.ant-col-sm-pull-2{right:8.33333333%}.ant-col-sm-offset-2{margin-left:8.33333333%}.ant-col-sm-order-2{order:2}.ant-col-sm-1{display:block;flex:0 0 4.16666667%;max-width:4.16666667%}.ant-col-sm-push-1{left:4.16666667%}.ant-col-sm-pull-1{right:4.16666667%}.ant-col-sm-offset-1{margin-left:4.16666667%}.ant-col-sm-order-1{order:1}.ant-col-sm-0{display:none}.ant-col-push-0{left:auto}.ant-col-pull-0{right:auto}.ant-col-sm-push-0{left:auto}.ant-col-sm-pull-0{right:auto}.ant-col-sm-offset-0{margin-left:0}.ant-col-sm-order-0{order:0}.ant-col-push-0.ant-col-rtl{right:auto}.ant-col-pull-0.ant-col-rtl{left:auto}.ant-col-sm-push-0.ant-col-rtl{right:auto}.ant-col-sm-pull-0.ant-col-rtl{left:auto}.ant-col-sm-offset-0.ant-col-rtl{margin-right:0}.ant-col-sm-push-1.ant-col-rtl{right:4.16666667%;left:auto}.ant-col-sm-pull-1.ant-col-rtl{right:auto;left:4.16666667%}.ant-col-sm-offset-1.ant-col-rtl{margin-right:4.16666667%;margin-left:0}.ant-col-sm-push-2.ant-col-rtl{right:8.33333333%;left:auto}.ant-col-sm-pull-2.ant-col-rtl{right:auto;left:8.33333333%}.ant-col-sm-offset-2.ant-col-rtl{margin-right:8.33333333%;margin-left:0}.ant-col-sm-push-3.ant-col-rtl{right:12.5%;left:auto}.ant-col-sm-pull-3.ant-col-rtl{right:auto;left:12.5%}.ant-col-sm-offset-3.ant-col-rtl{margin-right:12.5%;margin-left:0}.ant-col-sm-push-4.ant-col-rtl{right:16.66666667%;left:auto}.ant-col-sm-pull-4.ant-col-rtl{right:auto;left:16.66666667%}.ant-col-sm-offset-4.ant-col-rtl{margin-right:16.66666667%;margin-left:0}.ant-col-sm-push-5.ant-col-rtl{right:20.83333333%;left:auto}.ant-col-sm-pull-5.ant-col-rtl{right:auto;left:20.83333333%}.ant-col-sm-offset-5.ant-col-rtl{margin-right:20.83333333%;margin-left:0}.ant-col-sm-push-6.ant-col-rtl{right:25%;left:auto}.ant-col-sm-pull-6.ant-col-rtl{right:auto;left:25%}.ant-col-sm-offset-6.ant-col-rtl{margin-right:25%;margin-left:0}.ant-col-sm-push-7.ant-col-rtl{right:29.16666667%;left:auto}.ant-col-sm-pull-7.ant-col-rtl{right:auto;left:29.16666667%}.ant-col-sm-offset-7.ant-col-rtl{margin-right:29.16666667%;margin-left:0}.ant-col-sm-push-8.ant-col-rtl{right:33.33333333%;left:auto}.ant-col-sm-pull-8.ant-col-rtl{right:auto;left:33.33333333%}.ant-col-sm-offset-8.ant-col-rtl{margin-right:33.33333333%;margin-left:0}.ant-col-sm-push-9.ant-col-rtl{right:37.5%;left:auto}.ant-col-sm-pull-9.ant-col-rtl{right:auto;left:37.5%}.ant-col-sm-offset-9.ant-col-rtl{margin-right:37.5%;margin-left:0}.ant-col-sm-push-10.ant-col-rtl{right:41.66666667%;left:auto}.ant-col-sm-pull-10.ant-col-rtl{right:auto;left:41.66666667%}.ant-col-sm-offset-10.ant-col-rtl{margin-right:41.66666667%;margin-left:0}.ant-col-sm-push-11.ant-col-rtl{right:45.83333333%;left:auto}.ant-col-sm-pull-11.ant-col-rtl{right:auto;left:45.83333333%}.ant-col-sm-offset-11.ant-col-rtl{margin-right:45.83333333%;margin-left:0}.ant-col-sm-push-12.ant-col-rtl{right:50%;left:auto}.ant-col-sm-pull-12.ant-col-rtl{right:auto;left:50%}.ant-col-sm-offset-12.ant-col-rtl{margin-right:50%;margin-left:0}.ant-col-sm-push-13.ant-col-rtl{right:54.16666667%;left:auto}.ant-col-sm-pull-13.ant-col-rtl{right:auto;left:54.16666667%}.ant-col-sm-offset-13.ant-col-rtl{margin-right:54.16666667%;margin-left:0}.ant-col-sm-push-14.ant-col-rtl{right:58.33333333%;left:auto}.ant-col-sm-pull-14.ant-col-rtl{right:auto;left:58.33333333%}.ant-col-sm-offset-14.ant-col-rtl{margin-right:58.33333333%;margin-left:0}.ant-col-sm-push-15.ant-col-rtl{right:62.5%;left:auto}.ant-col-sm-pull-15.ant-col-rtl{right:auto;left:62.5%}.ant-col-sm-offset-15.ant-col-rtl{margin-right:62.5%;margin-left:0}.ant-col-sm-push-16.ant-col-rtl{right:66.66666667%;left:auto}.ant-col-sm-pull-16.ant-col-rtl{right:auto;left:66.66666667%}.ant-col-sm-offset-16.ant-col-rtl{margin-right:66.66666667%;margin-left:0}.ant-col-sm-push-17.ant-col-rtl{right:70.83333333%;left:auto}.ant-col-sm-pull-17.ant-col-rtl{right:auto;left:70.83333333%}.ant-col-sm-offset-17.ant-col-rtl{margin-right:70.83333333%;margin-left:0}.ant-col-sm-push-18.ant-col-rtl{right:75%;left:auto}.ant-col-sm-pull-18.ant-col-rtl{right:auto;left:75%}.ant-col-sm-offset-18.ant-col-rtl{margin-right:75%;margin-left:0}.ant-col-sm-push-19.ant-col-rtl{right:79.16666667%;left:auto}.ant-col-sm-pull-19.ant-col-rtl{right:auto;left:79.16666667%}.ant-col-sm-offset-19.ant-col-rtl{margin-right:79.16666667%;margin-left:0}.ant-col-sm-push-20.ant-col-rtl{right:83.33333333%;left:auto}.ant-col-sm-pull-20.ant-col-rtl{right:auto;left:83.33333333%}.ant-col-sm-offset-20.ant-col-rtl{margin-right:83.33333333%;margin-left:0}.ant-col-sm-push-21.ant-col-rtl{right:87.5%;left:auto}.ant-col-sm-pull-21.ant-col-rtl{right:auto;left:87.5%}.ant-col-sm-offset-21.ant-col-rtl{margin-right:87.5%;margin-left:0}.ant-col-sm-push-22.ant-col-rtl{right:91.66666667%;left:auto}.ant-col-sm-pull-22.ant-col-rtl{right:auto;left:91.66666667%}.ant-col-sm-offset-22.ant-col-rtl{margin-right:91.66666667%;margin-left:0}.ant-col-sm-push-23.ant-col-rtl{right:95.83333333%;left:auto}.ant-col-sm-pull-23.ant-col-rtl{right:auto;left:95.83333333%}.ant-col-sm-offset-23.ant-col-rtl{margin-right:95.83333333%;margin-left:0}.ant-col-sm-push-24.ant-col-rtl{right:100%;left:auto}.ant-col-sm-pull-24.ant-col-rtl{right:auto;left:100%}.ant-col-sm-offset-24.ant-col-rtl{margin-right:100%;margin-left:0}}@media (min-width: 768px){.ant-col-md-24{display:block;flex:0 0 100%;max-width:100%}.ant-col-md-push-24{left:100%}.ant-col-md-pull-24{right:100%}.ant-col-md-offset-24{margin-left:100%}.ant-col-md-order-24{order:24}.ant-col-md-23{display:block;flex:0 0 95.83333333%;max-width:95.83333333%}.ant-col-md-push-23{left:95.83333333%}.ant-col-md-pull-23{right:95.83333333%}.ant-col-md-offset-23{margin-left:95.83333333%}.ant-col-md-order-23{order:23}.ant-col-md-22{display:block;flex:0 0 91.66666667%;max-width:91.66666667%}.ant-col-md-push-22{left:91.66666667%}.ant-col-md-pull-22{right:91.66666667%}.ant-col-md-offset-22{margin-left:91.66666667%}.ant-col-md-order-22{order:22}.ant-col-md-21{display:block;flex:0 0 87.5%;max-width:87.5%}.ant-col-md-push-21{left:87.5%}.ant-col-md-pull-21{right:87.5%}.ant-col-md-offset-21{margin-left:87.5%}.ant-col-md-order-21{order:21}.ant-col-md-20{display:block;flex:0 0 83.33333333%;max-width:83.33333333%}.ant-col-md-push-20{left:83.33333333%}.ant-col-md-pull-20{right:83.33333333%}.ant-col-md-offset-20{margin-left:83.33333333%}.ant-col-md-order-20{order:20}.ant-col-md-19{display:block;flex:0 0 79.16666667%;max-width:79.16666667%}.ant-col-md-push-19{left:79.16666667%}.ant-col-md-pull-19{right:79.16666667%}.ant-col-md-offset-19{margin-left:79.16666667%}.ant-col-md-order-19{order:19}.ant-col-md-18{display:block;flex:0 0 75%;max-width:75%}.ant-col-md-push-18{left:75%}.ant-col-md-pull-18{right:75%}.ant-col-md-offset-18{margin-left:75%}.ant-col-md-order-18{order:18}.ant-col-md-17{display:block;flex:0 0 70.83333333%;max-width:70.83333333%}.ant-col-md-push-17{left:70.83333333%}.ant-col-md-pull-17{right:70.83333333%}.ant-col-md-offset-17{margin-left:70.83333333%}.ant-col-md-order-17{order:17}.ant-col-md-16{display:block;flex:0 0 66.66666667%;max-width:66.66666667%}.ant-col-md-push-16{left:66.66666667%}.ant-col-md-pull-16{right:66.66666667%}.ant-col-md-offset-16{margin-left:66.66666667%}.ant-col-md-order-16{order:16}.ant-col-md-15{display:block;flex:0 0 62.5%;max-width:62.5%}.ant-col-md-push-15{left:62.5%}.ant-col-md-pull-15{right:62.5%}.ant-col-md-offset-15{margin-left:62.5%}.ant-col-md-order-15{order:15}.ant-col-md-14{display:block;flex:0 0 58.33333333%;max-width:58.33333333%}.ant-col-md-push-14{left:58.33333333%}.ant-col-md-pull-14{right:58.33333333%}.ant-col-md-offset-14{margin-left:58.33333333%}.ant-col-md-order-14{order:14}.ant-col-md-13{display:block;flex:0 0 54.16666667%;max-width:54.16666667%}.ant-col-md-push-13{left:54.16666667%}.ant-col-md-pull-13{right:54.16666667%}.ant-col-md-offset-13{margin-left:54.16666667%}.ant-col-md-order-13{order:13}.ant-col-md-12{display:block;flex:0 0 50%;max-width:50%}.ant-col-md-push-12{left:50%}.ant-col-md-pull-12{right:50%}.ant-col-md-offset-12{margin-left:50%}.ant-col-md-order-12{order:12}.ant-col-md-11{display:block;flex:0 0 45.83333333%;max-width:45.83333333%}.ant-col-md-push-11{left:45.83333333%}.ant-col-md-pull-11{right:45.83333333%}.ant-col-md-offset-11{margin-left:45.83333333%}.ant-col-md-order-11{order:11}.ant-col-md-10{display:block;flex:0 0 41.66666667%;max-width:41.66666667%}.ant-col-md-push-10{left:41.66666667%}.ant-col-md-pull-10{right:41.66666667%}.ant-col-md-offset-10{margin-left:41.66666667%}.ant-col-md-order-10{order:10}.ant-col-md-9{display:block;flex:0 0 37.5%;max-width:37.5%}.ant-col-md-push-9{left:37.5%}.ant-col-md-pull-9{right:37.5%}.ant-col-md-offset-9{margin-left:37.5%}.ant-col-md-order-9{order:9}.ant-col-md-8{display:block;flex:0 0 33.33333333%;max-width:33.33333333%}.ant-col-md-push-8{left:33.33333333%}.ant-col-md-pull-8{right:33.33333333%}.ant-col-md-offset-8{margin-left:33.33333333%}.ant-col-md-order-8{order:8}.ant-col-md-7{display:block;flex:0 0 29.16666667%;max-width:29.16666667%}.ant-col-md-push-7{left:29.16666667%}.ant-col-md-pull-7{right:29.16666667%}.ant-col-md-offset-7{margin-left:29.16666667%}.ant-col-md-order-7{order:7}.ant-col-md-6{display:block;flex:0 0 25%;max-width:25%}.ant-col-md-push-6{left:25%}.ant-col-md-pull-6{right:25%}.ant-col-md-offset-6{margin-left:25%}.ant-col-md-order-6{order:6}.ant-col-md-5{display:block;flex:0 0 20.83333333%;max-width:20.83333333%}.ant-col-md-push-5{left:20.83333333%}.ant-col-md-pull-5{right:20.83333333%}.ant-col-md-offset-5{margin-left:20.83333333%}.ant-col-md-order-5{order:5}.ant-col-md-4{display:block;flex:0 0 16.66666667%;max-width:16.66666667%}.ant-col-md-push-4{left:16.66666667%}.ant-col-md-pull-4{right:16.66666667%}.ant-col-md-offset-4{margin-left:16.66666667%}.ant-col-md-order-4{order:4}.ant-col-md-3{display:block;flex:0 0 12.5%;max-width:12.5%}.ant-col-md-push-3{left:12.5%}.ant-col-md-pull-3{right:12.5%}.ant-col-md-offset-3{margin-left:12.5%}.ant-col-md-order-3{order:3}.ant-col-md-2{display:block;flex:0 0 8.33333333%;max-width:8.33333333%}.ant-col-md-push-2{left:8.33333333%}.ant-col-md-pull-2{right:8.33333333%}.ant-col-md-offset-2{margin-left:8.33333333%}.ant-col-md-order-2{order:2}.ant-col-md-1{display:block;flex:0 0 4.16666667%;max-width:4.16666667%}.ant-col-md-push-1{left:4.16666667%}.ant-col-md-pull-1{right:4.16666667%}.ant-col-md-offset-1{margin-left:4.16666667%}.ant-col-md-order-1{order:1}.ant-col-md-0{display:none}.ant-col-push-0{left:auto}.ant-col-pull-0{right:auto}.ant-col-md-push-0{left:auto}.ant-col-md-pull-0{right:auto}.ant-col-md-offset-0{margin-left:0}.ant-col-md-order-0{order:0}.ant-col-push-0.ant-col-rtl{right:auto}.ant-col-pull-0.ant-col-rtl{left:auto}.ant-col-md-push-0.ant-col-rtl{right:auto}.ant-col-md-pull-0.ant-col-rtl{left:auto}.ant-col-md-offset-0.ant-col-rtl{margin-right:0}.ant-col-md-push-1.ant-col-rtl{right:4.16666667%;left:auto}.ant-col-md-pull-1.ant-col-rtl{right:auto;left:4.16666667%}.ant-col-md-offset-1.ant-col-rtl{margin-right:4.16666667%;margin-left:0}.ant-col-md-push-2.ant-col-rtl{right:8.33333333%;left:auto}.ant-col-md-pull-2.ant-col-rtl{right:auto;left:8.33333333%}.ant-col-md-offset-2.ant-col-rtl{margin-right:8.33333333%;margin-left:0}.ant-col-md-push-3.ant-col-rtl{right:12.5%;left:auto}.ant-col-md-pull-3.ant-col-rtl{right:auto;left:12.5%}.ant-col-md-offset-3.ant-col-rtl{margin-right:12.5%;margin-left:0}.ant-col-md-push-4.ant-col-rtl{right:16.66666667%;left:auto}.ant-col-md-pull-4.ant-col-rtl{right:auto;left:16.66666667%}.ant-col-md-offset-4.ant-col-rtl{margin-right:16.66666667%;margin-left:0}.ant-col-md-push-5.ant-col-rtl{right:20.83333333%;left:auto}.ant-col-md-pull-5.ant-col-rtl{right:auto;left:20.83333333%}.ant-col-md-offset-5.ant-col-rtl{margin-right:20.83333333%;margin-left:0}.ant-col-md-push-6.ant-col-rtl{right:25%;left:auto}.ant-col-md-pull-6.ant-col-rtl{right:auto;left:25%}.ant-col-md-offset-6.ant-col-rtl{margin-right:25%;margin-left:0}.ant-col-md-push-7.ant-col-rtl{right:29.16666667%;left:auto}.ant-col-md-pull-7.ant-col-rtl{right:auto;left:29.16666667%}.ant-col-md-offset-7.ant-col-rtl{margin-right:29.16666667%;margin-left:0}.ant-col-md-push-8.ant-col-rtl{right:33.33333333%;left:auto}.ant-col-md-pull-8.ant-col-rtl{right:auto;left:33.33333333%}.ant-col-md-offset-8.ant-col-rtl{margin-right:33.33333333%;margin-left:0}.ant-col-md-push-9.ant-col-rtl{right:37.5%;left:auto}.ant-col-md-pull-9.ant-col-rtl{right:auto;left:37.5%}.ant-col-md-offset-9.ant-col-rtl{margin-right:37.5%;margin-left:0}.ant-col-md-push-10.ant-col-rtl{right:41.66666667%;left:auto}.ant-col-md-pull-10.ant-col-rtl{right:auto;left:41.66666667%}.ant-col-md-offset-10.ant-col-rtl{margin-right:41.66666667%;margin-left:0}.ant-col-md-push-11.ant-col-rtl{right:45.83333333%;left:auto}.ant-col-md-pull-11.ant-col-rtl{right:auto;left:45.83333333%}.ant-col-md-offset-11.ant-col-rtl{margin-right:45.83333333%;margin-left:0}.ant-col-md-push-12.ant-col-rtl{right:50%;left:auto}.ant-col-md-pull-12.ant-col-rtl{right:auto;left:50%}.ant-col-md-offset-12.ant-col-rtl{margin-right:50%;margin-left:0}.ant-col-md-push-13.ant-col-rtl{right:54.16666667%;left:auto}.ant-col-md-pull-13.ant-col-rtl{right:auto;left:54.16666667%}.ant-col-md-offset-13.ant-col-rtl{margin-right:54.16666667%;margin-left:0}.ant-col-md-push-14.ant-col-rtl{right:58.33333333%;left:auto}.ant-col-md-pull-14.ant-col-rtl{right:auto;left:58.33333333%}.ant-col-md-offset-14.ant-col-rtl{margin-right:58.33333333%;margin-left:0}.ant-col-md-push-15.ant-col-rtl{right:62.5%;left:auto}.ant-col-md-pull-15.ant-col-rtl{right:auto;left:62.5%}.ant-col-md-offset-15.ant-col-rtl{margin-right:62.5%;margin-left:0}.ant-col-md-push-16.ant-col-rtl{right:66.66666667%;left:auto}.ant-col-md-pull-16.ant-col-rtl{right:auto;left:66.66666667%}.ant-col-md-offset-16.ant-col-rtl{margin-right:66.66666667%;margin-left:0}.ant-col-md-push-17.ant-col-rtl{right:70.83333333%;left:auto}.ant-col-md-pull-17.ant-col-rtl{right:auto;left:70.83333333%}.ant-col-md-offset-17.ant-col-rtl{margin-right:70.83333333%;margin-left:0}.ant-col-md-push-18.ant-col-rtl{right:75%;left:auto}.ant-col-md-pull-18.ant-col-rtl{right:auto;left:75%}.ant-col-md-offset-18.ant-col-rtl{margin-right:75%;margin-left:0}.ant-col-md-push-19.ant-col-rtl{right:79.16666667%;left:auto}.ant-col-md-pull-19.ant-col-rtl{right:auto;left:79.16666667%}.ant-col-md-offset-19.ant-col-rtl{margin-right:79.16666667%;margin-left:0}.ant-col-md-push-20.ant-col-rtl{right:83.33333333%;left:auto}.ant-col-md-pull-20.ant-col-rtl{right:auto;left:83.33333333%}.ant-col-md-offset-20.ant-col-rtl{margin-right:83.33333333%;margin-left:0}.ant-col-md-push-21.ant-col-rtl{right:87.5%;left:auto}.ant-col-md-pull-21.ant-col-rtl{right:auto;left:87.5%}.ant-col-md-offset-21.ant-col-rtl{margin-right:87.5%;margin-left:0}.ant-col-md-push-22.ant-col-rtl{right:91.66666667%;left:auto}.ant-col-md-pull-22.ant-col-rtl{right:auto;left:91.66666667%}.ant-col-md-offset-22.ant-col-rtl{margin-right:91.66666667%;margin-left:0}.ant-col-md-push-23.ant-col-rtl{right:95.83333333%;left:auto}.ant-col-md-pull-23.ant-col-rtl{right:auto;left:95.83333333%}.ant-col-md-offset-23.ant-col-rtl{margin-right:95.83333333%;margin-left:0}.ant-col-md-push-24.ant-col-rtl{right:100%;left:auto}.ant-col-md-pull-24.ant-col-rtl{right:auto;left:100%}.ant-col-md-offset-24.ant-col-rtl{margin-right:100%;margin-left:0}}@media (min-width: 992px){.ant-col-lg-24{display:block;flex:0 0 100%;max-width:100%}.ant-col-lg-push-24{left:100%}.ant-col-lg-pull-24{right:100%}.ant-col-lg-offset-24{margin-left:100%}.ant-col-lg-order-24{order:24}.ant-col-lg-23{display:block;flex:0 0 95.83333333%;max-width:95.83333333%}.ant-col-lg-push-23{left:95.83333333%}.ant-col-lg-pull-23{right:95.83333333%}.ant-col-lg-offset-23{margin-left:95.83333333%}.ant-col-lg-order-23{order:23}.ant-col-lg-22{display:block;flex:0 0 91.66666667%;max-width:91.66666667%}.ant-col-lg-push-22{left:91.66666667%}.ant-col-lg-pull-22{right:91.66666667%}.ant-col-lg-offset-22{margin-left:91.66666667%}.ant-col-lg-order-22{order:22}.ant-col-lg-21{display:block;flex:0 0 87.5%;max-width:87.5%}.ant-col-lg-push-21{left:87.5%}.ant-col-lg-pull-21{right:87.5%}.ant-col-lg-offset-21{margin-left:87.5%}.ant-col-lg-order-21{order:21}.ant-col-lg-20{display:block;flex:0 0 83.33333333%;max-width:83.33333333%}.ant-col-lg-push-20{left:83.33333333%}.ant-col-lg-pull-20{right:83.33333333%}.ant-col-lg-offset-20{margin-left:83.33333333%}.ant-col-lg-order-20{order:20}.ant-col-lg-19{display:block;flex:0 0 79.16666667%;max-width:79.16666667%}.ant-col-lg-push-19{left:79.16666667%}.ant-col-lg-pull-19{right:79.16666667%}.ant-col-lg-offset-19{margin-left:79.16666667%}.ant-col-lg-order-19{order:19}.ant-col-lg-18{display:block;flex:0 0 75%;max-width:75%}.ant-col-lg-push-18{left:75%}.ant-col-lg-pull-18{right:75%}.ant-col-lg-offset-18{margin-left:75%}.ant-col-lg-order-18{order:18}.ant-col-lg-17{display:block;flex:0 0 70.83333333%;max-width:70.83333333%}.ant-col-lg-push-17{left:70.83333333%}.ant-col-lg-pull-17{right:70.83333333%}.ant-col-lg-offset-17{margin-left:70.83333333%}.ant-col-lg-order-17{order:17}.ant-col-lg-16{display:block;flex:0 0 66.66666667%;max-width:66.66666667%}.ant-col-lg-push-16{left:66.66666667%}.ant-col-lg-pull-16{right:66.66666667%}.ant-col-lg-offset-16{margin-left:66.66666667%}.ant-col-lg-order-16{order:16}.ant-col-lg-15{display:block;flex:0 0 62.5%;max-width:62.5%}.ant-col-lg-push-15{left:62.5%}.ant-col-lg-pull-15{right:62.5%}.ant-col-lg-offset-15{margin-left:62.5%}.ant-col-lg-order-15{order:15}.ant-col-lg-14{display:block;flex:0 0 58.33333333%;max-width:58.33333333%}.ant-col-lg-push-14{left:58.33333333%}.ant-col-lg-pull-14{right:58.33333333%}.ant-col-lg-offset-14{margin-left:58.33333333%}.ant-col-lg-order-14{order:14}.ant-col-lg-13{display:block;flex:0 0 54.16666667%;max-width:54.16666667%}.ant-col-lg-push-13{left:54.16666667%}.ant-col-lg-pull-13{right:54.16666667%}.ant-col-lg-offset-13{margin-left:54.16666667%}.ant-col-lg-order-13{order:13}.ant-col-lg-12{display:block;flex:0 0 50%;max-width:50%}.ant-col-lg-push-12{left:50%}.ant-col-lg-pull-12{right:50%}.ant-col-lg-offset-12{margin-left:50%}.ant-col-lg-order-12{order:12}.ant-col-lg-11{display:block;flex:0 0 45.83333333%;max-width:45.83333333%}.ant-col-lg-push-11{left:45.83333333%}.ant-col-lg-pull-11{right:45.83333333%}.ant-col-lg-offset-11{margin-left:45.83333333%}.ant-col-lg-order-11{order:11}.ant-col-lg-10{display:block;flex:0 0 41.66666667%;max-width:41.66666667%}.ant-col-lg-push-10{left:41.66666667%}.ant-col-lg-pull-10{right:41.66666667%}.ant-col-lg-offset-10{margin-left:41.66666667%}.ant-col-lg-order-10{order:10}.ant-col-lg-9{display:block;flex:0 0 37.5%;max-width:37.5%}.ant-col-lg-push-9{left:37.5%}.ant-col-lg-pull-9{right:37.5%}.ant-col-lg-offset-9{margin-left:37.5%}.ant-col-lg-order-9{order:9}.ant-col-lg-8{display:block;flex:0 0 33.33333333%;max-width:33.33333333%}.ant-col-lg-push-8{left:33.33333333%}.ant-col-lg-pull-8{right:33.33333333%}.ant-col-lg-offset-8{margin-left:33.33333333%}.ant-col-lg-order-8{order:8}.ant-col-lg-7{display:block;flex:0 0 29.16666667%;max-width:29.16666667%}.ant-col-lg-push-7{left:29.16666667%}.ant-col-lg-pull-7{right:29.16666667%}.ant-col-lg-offset-7{margin-left:29.16666667%}.ant-col-lg-order-7{order:7}.ant-col-lg-6{display:block;flex:0 0 25%;max-width:25%}.ant-col-lg-push-6{left:25%}.ant-col-lg-pull-6{right:25%}.ant-col-lg-offset-6{margin-left:25%}.ant-col-lg-order-6{order:6}.ant-col-lg-5{display:block;flex:0 0 20.83333333%;max-width:20.83333333%}.ant-col-lg-push-5{left:20.83333333%}.ant-col-lg-pull-5{right:20.83333333%}.ant-col-lg-offset-5{margin-left:20.83333333%}.ant-col-lg-order-5{order:5}.ant-col-lg-4{display:block;flex:0 0 16.66666667%;max-width:16.66666667%}.ant-col-lg-push-4{left:16.66666667%}.ant-col-lg-pull-4{right:16.66666667%}.ant-col-lg-offset-4{margin-left:16.66666667%}.ant-col-lg-order-4{order:4}.ant-col-lg-3{display:block;flex:0 0 12.5%;max-width:12.5%}.ant-col-lg-push-3{left:12.5%}.ant-col-lg-pull-3{right:12.5%}.ant-col-lg-offset-3{margin-left:12.5%}.ant-col-lg-order-3{order:3}.ant-col-lg-2{display:block;flex:0 0 8.33333333%;max-width:8.33333333%}.ant-col-lg-push-2{left:8.33333333%}.ant-col-lg-pull-2{right:8.33333333%}.ant-col-lg-offset-2{margin-left:8.33333333%}.ant-col-lg-order-2{order:2}.ant-col-lg-1{display:block;flex:0 0 4.16666667%;max-width:4.16666667%}.ant-col-lg-push-1{left:4.16666667%}.ant-col-lg-pull-1{right:4.16666667%}.ant-col-lg-offset-1{margin-left:4.16666667%}.ant-col-lg-order-1{order:1}.ant-col-lg-0{display:none}.ant-col-push-0{left:auto}.ant-col-pull-0{right:auto}.ant-col-lg-push-0{left:auto}.ant-col-lg-pull-0{right:auto}.ant-col-lg-offset-0{margin-left:0}.ant-col-lg-order-0{order:0}.ant-col-push-0.ant-col-rtl{right:auto}.ant-col-pull-0.ant-col-rtl{left:auto}.ant-col-lg-push-0.ant-col-rtl{right:auto}.ant-col-lg-pull-0.ant-col-rtl{left:auto}.ant-col-lg-offset-0.ant-col-rtl{margin-right:0}.ant-col-lg-push-1.ant-col-rtl{right:4.16666667%;left:auto}.ant-col-lg-pull-1.ant-col-rtl{right:auto;left:4.16666667%}.ant-col-lg-offset-1.ant-col-rtl{margin-right:4.16666667%;margin-left:0}.ant-col-lg-push-2.ant-col-rtl{right:8.33333333%;left:auto}.ant-col-lg-pull-2.ant-col-rtl{right:auto;left:8.33333333%}.ant-col-lg-offset-2.ant-col-rtl{margin-right:8.33333333%;margin-left:0}.ant-col-lg-push-3.ant-col-rtl{right:12.5%;left:auto}.ant-col-lg-pull-3.ant-col-rtl{right:auto;left:12.5%}.ant-col-lg-offset-3.ant-col-rtl{margin-right:12.5%;margin-left:0}.ant-col-lg-push-4.ant-col-rtl{right:16.66666667%;left:auto}.ant-col-lg-pull-4.ant-col-rtl{right:auto;left:16.66666667%}.ant-col-lg-offset-4.ant-col-rtl{margin-right:16.66666667%;margin-left:0}.ant-col-lg-push-5.ant-col-rtl{right:20.83333333%;left:auto}.ant-col-lg-pull-5.ant-col-rtl{right:auto;left:20.83333333%}.ant-col-lg-offset-5.ant-col-rtl{margin-right:20.83333333%;margin-left:0}.ant-col-lg-push-6.ant-col-rtl{right:25%;left:auto}.ant-col-lg-pull-6.ant-col-rtl{right:auto;left:25%}.ant-col-lg-offset-6.ant-col-rtl{margin-right:25%;margin-left:0}.ant-col-lg-push-7.ant-col-rtl{right:29.16666667%;left:auto}.ant-col-lg-pull-7.ant-col-rtl{right:auto;left:29.16666667%}.ant-col-lg-offset-7.ant-col-rtl{margin-right:29.16666667%;margin-left:0}.ant-col-lg-push-8.ant-col-rtl{right:33.33333333%;left:auto}.ant-col-lg-pull-8.ant-col-rtl{right:auto;left:33.33333333%}.ant-col-lg-offset-8.ant-col-rtl{margin-right:33.33333333%;margin-left:0}.ant-col-lg-push-9.ant-col-rtl{right:37.5%;left:auto}.ant-col-lg-pull-9.ant-col-rtl{right:auto;left:37.5%}.ant-col-lg-offset-9.ant-col-rtl{margin-right:37.5%;margin-left:0}.ant-col-lg-push-10.ant-col-rtl{right:41.66666667%;left:auto}.ant-col-lg-pull-10.ant-col-rtl{right:auto;left:41.66666667%}.ant-col-lg-offset-10.ant-col-rtl{margin-right:41.66666667%;margin-left:0}.ant-col-lg-push-11.ant-col-rtl{right:45.83333333%;left:auto}.ant-col-lg-pull-11.ant-col-rtl{right:auto;left:45.83333333%}.ant-col-lg-offset-11.ant-col-rtl{margin-right:45.83333333%;margin-left:0}.ant-col-lg-push-12.ant-col-rtl{right:50%;left:auto}.ant-col-lg-pull-12.ant-col-rtl{right:auto;left:50%}.ant-col-lg-offset-12.ant-col-rtl{margin-right:50%;margin-left:0}.ant-col-lg-push-13.ant-col-rtl{right:54.16666667%;left:auto}.ant-col-lg-pull-13.ant-col-rtl{right:auto;left:54.16666667%}.ant-col-lg-offset-13.ant-col-rtl{margin-right:54.16666667%;margin-left:0}.ant-col-lg-push-14.ant-col-rtl{right:58.33333333%;left:auto}.ant-col-lg-pull-14.ant-col-rtl{right:auto;left:58.33333333%}.ant-col-lg-offset-14.ant-col-rtl{margin-right:58.33333333%;margin-left:0}.ant-col-lg-push-15.ant-col-rtl{right:62.5%;left:auto}.ant-col-lg-pull-15.ant-col-rtl{right:auto;left:62.5%}.ant-col-lg-offset-15.ant-col-rtl{margin-right:62.5%;margin-left:0}.ant-col-lg-push-16.ant-col-rtl{right:66.66666667%;left:auto}.ant-col-lg-pull-16.ant-col-rtl{right:auto;left:66.66666667%}.ant-col-lg-offset-16.ant-col-rtl{margin-right:66.66666667%;margin-left:0}.ant-col-lg-push-17.ant-col-rtl{right:70.83333333%;left:auto}.ant-col-lg-pull-17.ant-col-rtl{right:auto;left:70.83333333%}.ant-col-lg-offset-17.ant-col-rtl{margin-right:70.83333333%;margin-left:0}.ant-col-lg-push-18.ant-col-rtl{right:75%;left:auto}.ant-col-lg-pull-18.ant-col-rtl{right:auto;left:75%}.ant-col-lg-offset-18.ant-col-rtl{margin-right:75%;margin-left:0}.ant-col-lg-push-19.ant-col-rtl{right:79.16666667%;left:auto}.ant-col-lg-pull-19.ant-col-rtl{right:auto;left:79.16666667%}.ant-col-lg-offset-19.ant-col-rtl{margin-right:79.16666667%;margin-left:0}.ant-col-lg-push-20.ant-col-rtl{right:83.33333333%;left:auto}.ant-col-lg-pull-20.ant-col-rtl{right:auto;left:83.33333333%}.ant-col-lg-offset-20.ant-col-rtl{margin-right:83.33333333%;margin-left:0}.ant-col-lg-push-21.ant-col-rtl{right:87.5%;left:auto}.ant-col-lg-pull-21.ant-col-rtl{right:auto;left:87.5%}.ant-col-lg-offset-21.ant-col-rtl{margin-right:87.5%;margin-left:0}.ant-col-lg-push-22.ant-col-rtl{right:91.66666667%;left:auto}.ant-col-lg-pull-22.ant-col-rtl{right:auto;left:91.66666667%}.ant-col-lg-offset-22.ant-col-rtl{margin-right:91.66666667%;margin-left:0}.ant-col-lg-push-23.ant-col-rtl{right:95.83333333%;left:auto}.ant-col-lg-pull-23.ant-col-rtl{right:auto;left:95.83333333%}.ant-col-lg-offset-23.ant-col-rtl{margin-right:95.83333333%;margin-left:0}.ant-col-lg-push-24.ant-col-rtl{right:100%;left:auto}.ant-col-lg-pull-24.ant-col-rtl{right:auto;left:100%}.ant-col-lg-offset-24.ant-col-rtl{margin-right:100%;margin-left:0}}@media (min-width: 1200px){.ant-col-xl-24{display:block;flex:0 0 100%;max-width:100%}.ant-col-xl-push-24{left:100%}.ant-col-xl-pull-24{right:100%}.ant-col-xl-offset-24{margin-left:100%}.ant-col-xl-order-24{order:24}.ant-col-xl-23{display:block;flex:0 0 95.83333333%;max-width:95.83333333%}.ant-col-xl-push-23{left:95.83333333%}.ant-col-xl-pull-23{right:95.83333333%}.ant-col-xl-offset-23{margin-left:95.83333333%}.ant-col-xl-order-23{order:23}.ant-col-xl-22{display:block;flex:0 0 91.66666667%;max-width:91.66666667%}.ant-col-xl-push-22{left:91.66666667%}.ant-col-xl-pull-22{right:91.66666667%}.ant-col-xl-offset-22{margin-left:91.66666667%}.ant-col-xl-order-22{order:22}.ant-col-xl-21{display:block;flex:0 0 87.5%;max-width:87.5%}.ant-col-xl-push-21{left:87.5%}.ant-col-xl-pull-21{right:87.5%}.ant-col-xl-offset-21{margin-left:87.5%}.ant-col-xl-order-21{order:21}.ant-col-xl-20{display:block;flex:0 0 83.33333333%;max-width:83.33333333%}.ant-col-xl-push-20{left:83.33333333%}.ant-col-xl-pull-20{right:83.33333333%}.ant-col-xl-offset-20{margin-left:83.33333333%}.ant-col-xl-order-20{order:20}.ant-col-xl-19{display:block;flex:0 0 79.16666667%;max-width:79.16666667%}.ant-col-xl-push-19{left:79.16666667%}.ant-col-xl-pull-19{right:79.16666667%}.ant-col-xl-offset-19{margin-left:79.16666667%}.ant-col-xl-order-19{order:19}.ant-col-xl-18{display:block;flex:0 0 75%;max-width:75%}.ant-col-xl-push-18{left:75%}.ant-col-xl-pull-18{right:75%}.ant-col-xl-offset-18{margin-left:75%}.ant-col-xl-order-18{order:18}.ant-col-xl-17{display:block;flex:0 0 70.83333333%;max-width:70.83333333%}.ant-col-xl-push-17{left:70.83333333%}.ant-col-xl-pull-17{right:70.83333333%}.ant-col-xl-offset-17{margin-left:70.83333333%}.ant-col-xl-order-17{order:17}.ant-col-xl-16{display:block;flex:0 0 66.66666667%;max-width:66.66666667%}.ant-col-xl-push-16{left:66.66666667%}.ant-col-xl-pull-16{right:66.66666667%}.ant-col-xl-offset-16{margin-left:66.66666667%}.ant-col-xl-order-16{order:16}.ant-col-xl-15{display:block;flex:0 0 62.5%;max-width:62.5%}.ant-col-xl-push-15{left:62.5%}.ant-col-xl-pull-15{right:62.5%}.ant-col-xl-offset-15{margin-left:62.5%}.ant-col-xl-order-15{order:15}.ant-col-xl-14{display:block;flex:0 0 58.33333333%;max-width:58.33333333%}.ant-col-xl-push-14{left:58.33333333%}.ant-col-xl-pull-14{right:58.33333333%}.ant-col-xl-offset-14{margin-left:58.33333333%}.ant-col-xl-order-14{order:14}.ant-col-xl-13{display:block;flex:0 0 54.16666667%;max-width:54.16666667%}.ant-col-xl-push-13{left:54.16666667%}.ant-col-xl-pull-13{right:54.16666667%}.ant-col-xl-offset-13{margin-left:54.16666667%}.ant-col-xl-order-13{order:13}.ant-col-xl-12{display:block;flex:0 0 50%;max-width:50%}.ant-col-xl-push-12{left:50%}.ant-col-xl-pull-12{right:50%}.ant-col-xl-offset-12{margin-left:50%}.ant-col-xl-order-12{order:12}.ant-col-xl-11{display:block;flex:0 0 45.83333333%;max-width:45.83333333%}.ant-col-xl-push-11{left:45.83333333%}.ant-col-xl-pull-11{right:45.83333333%}.ant-col-xl-offset-11{margin-left:45.83333333%}.ant-col-xl-order-11{order:11}.ant-col-xl-10{display:block;flex:0 0 41.66666667%;max-width:41.66666667%}.ant-col-xl-push-10{left:41.66666667%}.ant-col-xl-pull-10{right:41.66666667%}.ant-col-xl-offset-10{margin-left:41.66666667%}.ant-col-xl-order-10{order:10}.ant-col-xl-9{display:block;flex:0 0 37.5%;max-width:37.5%}.ant-col-xl-push-9{left:37.5%}.ant-col-xl-pull-9{right:37.5%}.ant-col-xl-offset-9{margin-left:37.5%}.ant-col-xl-order-9{order:9}.ant-col-xl-8{display:block;flex:0 0 33.33333333%;max-width:33.33333333%}.ant-col-xl-push-8{left:33.33333333%}.ant-col-xl-pull-8{right:33.33333333%}.ant-col-xl-offset-8{margin-left:33.33333333%}.ant-col-xl-order-8{order:8}.ant-col-xl-7{display:block;flex:0 0 29.16666667%;max-width:29.16666667%}.ant-col-xl-push-7{left:29.16666667%}.ant-col-xl-pull-7{right:29.16666667%}.ant-col-xl-offset-7{margin-left:29.16666667%}.ant-col-xl-order-7{order:7}.ant-col-xl-6{display:block;flex:0 0 25%;max-width:25%}.ant-col-xl-push-6{left:25%}.ant-col-xl-pull-6{right:25%}.ant-col-xl-offset-6{margin-left:25%}.ant-col-xl-order-6{order:6}.ant-col-xl-5{display:block;flex:0 0 20.83333333%;max-width:20.83333333%}.ant-col-xl-push-5{left:20.83333333%}.ant-col-xl-pull-5{right:20.83333333%}.ant-col-xl-offset-5{margin-left:20.83333333%}.ant-col-xl-order-5{order:5}.ant-col-xl-4{display:block;flex:0 0 16.66666667%;max-width:16.66666667%}.ant-col-xl-push-4{left:16.66666667%}.ant-col-xl-pull-4{right:16.66666667%}.ant-col-xl-offset-4{margin-left:16.66666667%}.ant-col-xl-order-4{order:4}.ant-col-xl-3{display:block;flex:0 0 12.5%;max-width:12.5%}.ant-col-xl-push-3{left:12.5%}.ant-col-xl-pull-3{right:12.5%}.ant-col-xl-offset-3{margin-left:12.5%}.ant-col-xl-order-3{order:3}.ant-col-xl-2{display:block;flex:0 0 8.33333333%;max-width:8.33333333%}.ant-col-xl-push-2{left:8.33333333%}.ant-col-xl-pull-2{right:8.33333333%}.ant-col-xl-offset-2{margin-left:8.33333333%}.ant-col-xl-order-2{order:2}.ant-col-xl-1{display:block;flex:0 0 4.16666667%;max-width:4.16666667%}.ant-col-xl-push-1{left:4.16666667%}.ant-col-xl-pull-1{right:4.16666667%}.ant-col-xl-offset-1{margin-left:4.16666667%}.ant-col-xl-order-1{order:1}.ant-col-xl-0{display:none}.ant-col-push-0{left:auto}.ant-col-pull-0{right:auto}.ant-col-xl-push-0{left:auto}.ant-col-xl-pull-0{right:auto}.ant-col-xl-offset-0{margin-left:0}.ant-col-xl-order-0{order:0}.ant-col-push-0.ant-col-rtl{right:auto}.ant-col-pull-0.ant-col-rtl{left:auto}.ant-col-xl-push-0.ant-col-rtl{right:auto}.ant-col-xl-pull-0.ant-col-rtl{left:auto}.ant-col-xl-offset-0.ant-col-rtl{margin-right:0}.ant-col-xl-push-1.ant-col-rtl{right:4.16666667%;left:auto}.ant-col-xl-pull-1.ant-col-rtl{right:auto;left:4.16666667%}.ant-col-xl-offset-1.ant-col-rtl{margin-right:4.16666667%;margin-left:0}.ant-col-xl-push-2.ant-col-rtl{right:8.33333333%;left:auto}.ant-col-xl-pull-2.ant-col-rtl{right:auto;left:8.33333333%}.ant-col-xl-offset-2.ant-col-rtl{margin-right:8.33333333%;margin-left:0}.ant-col-xl-push-3.ant-col-rtl{right:12.5%;left:auto}.ant-col-xl-pull-3.ant-col-rtl{right:auto;left:12.5%}.ant-col-xl-offset-3.ant-col-rtl{margin-right:12.5%;margin-left:0}.ant-col-xl-push-4.ant-col-rtl{right:16.66666667%;left:auto}.ant-col-xl-pull-4.ant-col-rtl{right:auto;left:16.66666667%}.ant-col-xl-offset-4.ant-col-rtl{margin-right:16.66666667%;margin-left:0}.ant-col-xl-push-5.ant-col-rtl{right:20.83333333%;left:auto}.ant-col-xl-pull-5.ant-col-rtl{right:auto;left:20.83333333%}.ant-col-xl-offset-5.ant-col-rtl{margin-right:20.83333333%;margin-left:0}.ant-col-xl-push-6.ant-col-rtl{right:25%;left:auto}.ant-col-xl-pull-6.ant-col-rtl{right:auto;left:25%}.ant-col-xl-offset-6.ant-col-rtl{margin-right:25%;margin-left:0}.ant-col-xl-push-7.ant-col-rtl{right:29.16666667%;left:auto}.ant-col-xl-pull-7.ant-col-rtl{right:auto;left:29.16666667%}.ant-col-xl-offset-7.ant-col-rtl{margin-right:29.16666667%;margin-left:0}.ant-col-xl-push-8.ant-col-rtl{right:33.33333333%;left:auto}.ant-col-xl-pull-8.ant-col-rtl{right:auto;left:33.33333333%}.ant-col-xl-offset-8.ant-col-rtl{margin-right:33.33333333%;margin-left:0}.ant-col-xl-push-9.ant-col-rtl{right:37.5%;left:auto}.ant-col-xl-pull-9.ant-col-rtl{right:auto;left:37.5%}.ant-col-xl-offset-9.ant-col-rtl{margin-right:37.5%;margin-left:0}.ant-col-xl-push-10.ant-col-rtl{right:41.66666667%;left:auto}.ant-col-xl-pull-10.ant-col-rtl{right:auto;left:41.66666667%}.ant-col-xl-offset-10.ant-col-rtl{margin-right:41.66666667%;margin-left:0}.ant-col-xl-push-11.ant-col-rtl{right:45.83333333%;left:auto}.ant-col-xl-pull-11.ant-col-rtl{right:auto;left:45.83333333%}.ant-col-xl-offset-11.ant-col-rtl{margin-right:45.83333333%;margin-left:0}.ant-col-xl-push-12.ant-col-rtl{right:50%;left:auto}.ant-col-xl-pull-12.ant-col-rtl{right:auto;left:50%}.ant-col-xl-offset-12.ant-col-rtl{margin-right:50%;margin-left:0}.ant-col-xl-push-13.ant-col-rtl{right:54.16666667%;left:auto}.ant-col-xl-pull-13.ant-col-rtl{right:auto;left:54.16666667%}.ant-col-xl-offset-13.ant-col-rtl{margin-right:54.16666667%;margin-left:0}.ant-col-xl-push-14.ant-col-rtl{right:58.33333333%;left:auto}.ant-col-xl-pull-14.ant-col-rtl{right:auto;left:58.33333333%}.ant-col-xl-offset-14.ant-col-rtl{margin-right:58.33333333%;margin-left:0}.ant-col-xl-push-15.ant-col-rtl{right:62.5%;left:auto}.ant-col-xl-pull-15.ant-col-rtl{right:auto;left:62.5%}.ant-col-xl-offset-15.ant-col-rtl{margin-right:62.5%;margin-left:0}.ant-col-xl-push-16.ant-col-rtl{right:66.66666667%;left:auto}.ant-col-xl-pull-16.ant-col-rtl{right:auto;left:66.66666667%}.ant-col-xl-offset-16.ant-col-rtl{margin-right:66.66666667%;margin-left:0}.ant-col-xl-push-17.ant-col-rtl{right:70.83333333%;left:auto}.ant-col-xl-pull-17.ant-col-rtl{right:auto;left:70.83333333%}.ant-col-xl-offset-17.ant-col-rtl{margin-right:70.83333333%;margin-left:0}.ant-col-xl-push-18.ant-col-rtl{right:75%;left:auto}.ant-col-xl-pull-18.ant-col-rtl{right:auto;left:75%}.ant-col-xl-offset-18.ant-col-rtl{margin-right:75%;margin-left:0}.ant-col-xl-push-19.ant-col-rtl{right:79.16666667%;left:auto}.ant-col-xl-pull-19.ant-col-rtl{right:auto;left:79.16666667%}.ant-col-xl-offset-19.ant-col-rtl{margin-right:79.16666667%;margin-left:0}.ant-col-xl-push-20.ant-col-rtl{right:83.33333333%;left:auto}.ant-col-xl-pull-20.ant-col-rtl{right:auto;left:83.33333333%}.ant-col-xl-offset-20.ant-col-rtl{margin-right:83.33333333%;margin-left:0}.ant-col-xl-push-21.ant-col-rtl{right:87.5%;left:auto}.ant-col-xl-pull-21.ant-col-rtl{right:auto;left:87.5%}.ant-col-xl-offset-21.ant-col-rtl{margin-right:87.5%;margin-left:0}.ant-col-xl-push-22.ant-col-rtl{right:91.66666667%;left:auto}.ant-col-xl-pull-22.ant-col-rtl{right:auto;left:91.66666667%}.ant-col-xl-offset-22.ant-col-rtl{margin-right:91.66666667%;margin-left:0}.ant-col-xl-push-23.ant-col-rtl{right:95.83333333%;left:auto}.ant-col-xl-pull-23.ant-col-rtl{right:auto;left:95.83333333%}.ant-col-xl-offset-23.ant-col-rtl{margin-right:95.83333333%;margin-left:0}.ant-col-xl-push-24.ant-col-rtl{right:100%;left:auto}.ant-col-xl-pull-24.ant-col-rtl{right:auto;left:100%}.ant-col-xl-offset-24.ant-col-rtl{margin-right:100%;margin-left:0}}@media (min-width: 1600px){.ant-col-xxl-24{display:block;flex:0 0 100%;max-width:100%}.ant-col-xxl-push-24{left:100%}.ant-col-xxl-pull-24{right:100%}.ant-col-xxl-offset-24{margin-left:100%}.ant-col-xxl-order-24{order:24}.ant-col-xxl-23{display:block;flex:0 0 95.83333333%;max-width:95.83333333%}.ant-col-xxl-push-23{left:95.83333333%}.ant-col-xxl-pull-23{right:95.83333333%}.ant-col-xxl-offset-23{margin-left:95.83333333%}.ant-col-xxl-order-23{order:23}.ant-col-xxl-22{display:block;flex:0 0 91.66666667%;max-width:91.66666667%}.ant-col-xxl-push-22{left:91.66666667%}.ant-col-xxl-pull-22{right:91.66666667%}.ant-col-xxl-offset-22{margin-left:91.66666667%}.ant-col-xxl-order-22{order:22}.ant-col-xxl-21{display:block;flex:0 0 87.5%;max-width:87.5%}.ant-col-xxl-push-21{left:87.5%}.ant-col-xxl-pull-21{right:87.5%}.ant-col-xxl-offset-21{margin-left:87.5%}.ant-col-xxl-order-21{order:21}.ant-col-xxl-20{display:block;flex:0 0 83.33333333%;max-width:83.33333333%}.ant-col-xxl-push-20{left:83.33333333%}.ant-col-xxl-pull-20{right:83.33333333%}.ant-col-xxl-offset-20{margin-left:83.33333333%}.ant-col-xxl-order-20{order:20}.ant-col-xxl-19{display:block;flex:0 0 79.16666667%;max-width:79.16666667%}.ant-col-xxl-push-19{left:79.16666667%}.ant-col-xxl-pull-19{right:79.16666667%}.ant-col-xxl-offset-19{margin-left:79.16666667%}.ant-col-xxl-order-19{order:19}.ant-col-xxl-18{display:block;flex:0 0 75%;max-width:75%}.ant-col-xxl-push-18{left:75%}.ant-col-xxl-pull-18{right:75%}.ant-col-xxl-offset-18{margin-left:75%}.ant-col-xxl-order-18{order:18}.ant-col-xxl-17{display:block;flex:0 0 70.83333333%;max-width:70.83333333%}.ant-col-xxl-push-17{left:70.83333333%}.ant-col-xxl-pull-17{right:70.83333333%}.ant-col-xxl-offset-17{margin-left:70.83333333%}.ant-col-xxl-order-17{order:17}.ant-col-xxl-16{display:block;flex:0 0 66.66666667%;max-width:66.66666667%}.ant-col-xxl-push-16{left:66.66666667%}.ant-col-xxl-pull-16{right:66.66666667%}.ant-col-xxl-offset-16{margin-left:66.66666667%}.ant-col-xxl-order-16{order:16}.ant-col-xxl-15{display:block;flex:0 0 62.5%;max-width:62.5%}.ant-col-xxl-push-15{left:62.5%}.ant-col-xxl-pull-15{right:62.5%}.ant-col-xxl-offset-15{margin-left:62.5%}.ant-col-xxl-order-15{order:15}.ant-col-xxl-14{display:block;flex:0 0 58.33333333%;max-width:58.33333333%}.ant-col-xxl-push-14{left:58.33333333%}.ant-col-xxl-pull-14{right:58.33333333%}.ant-col-xxl-offset-14{margin-left:58.33333333%}.ant-col-xxl-order-14{order:14}.ant-col-xxl-13{display:block;flex:0 0 54.16666667%;max-width:54.16666667%}.ant-col-xxl-push-13{left:54.16666667%}.ant-col-xxl-pull-13{right:54.16666667%}.ant-col-xxl-offset-13{margin-left:54.16666667%}.ant-col-xxl-order-13{order:13}.ant-col-xxl-12{display:block;flex:0 0 50%;max-width:50%}.ant-col-xxl-push-12{left:50%}.ant-col-xxl-pull-12{right:50%}.ant-col-xxl-offset-12{margin-left:50%}.ant-col-xxl-order-12{order:12}.ant-col-xxl-11{display:block;flex:0 0 45.83333333%;max-width:45.83333333%}.ant-col-xxl-push-11{left:45.83333333%}.ant-col-xxl-pull-11{right:45.83333333%}.ant-col-xxl-offset-11{margin-left:45.83333333%}.ant-col-xxl-order-11{order:11}.ant-col-xxl-10{display:block;flex:0 0 41.66666667%;max-width:41.66666667%}.ant-col-xxl-push-10{left:41.66666667%}.ant-col-xxl-pull-10{right:41.66666667%}.ant-col-xxl-offset-10{margin-left:41.66666667%}.ant-col-xxl-order-10{order:10}.ant-col-xxl-9{display:block;flex:0 0 37.5%;max-width:37.5%}.ant-col-xxl-push-9{left:37.5%}.ant-col-xxl-pull-9{right:37.5%}.ant-col-xxl-offset-9{margin-left:37.5%}.ant-col-xxl-order-9{order:9}.ant-col-xxl-8{display:block;flex:0 0 33.33333333%;max-width:33.33333333%}.ant-col-xxl-push-8{left:33.33333333%}.ant-col-xxl-pull-8{right:33.33333333%}.ant-col-xxl-offset-8{margin-left:33.33333333%}.ant-col-xxl-order-8{order:8}.ant-col-xxl-7{display:block;flex:0 0 29.16666667%;max-width:29.16666667%}.ant-col-xxl-push-7{left:29.16666667%}.ant-col-xxl-pull-7{right:29.16666667%}.ant-col-xxl-offset-7{margin-left:29.16666667%}.ant-col-xxl-order-7{order:7}.ant-col-xxl-6{display:block;flex:0 0 25%;max-width:25%}.ant-col-xxl-push-6{left:25%}.ant-col-xxl-pull-6{right:25%}.ant-col-xxl-offset-6{margin-left:25%}.ant-col-xxl-order-6{order:6}.ant-col-xxl-5{display:block;flex:0 0 20.83333333%;max-width:20.83333333%}.ant-col-xxl-push-5{left:20.83333333%}.ant-col-xxl-pull-5{right:20.83333333%}.ant-col-xxl-offset-5{margin-left:20.83333333%}.ant-col-xxl-order-5{order:5}.ant-col-xxl-4{display:block;flex:0 0 16.66666667%;max-width:16.66666667%}.ant-col-xxl-push-4{left:16.66666667%}.ant-col-xxl-pull-4{right:16.66666667%}.ant-col-xxl-offset-4{margin-left:16.66666667%}.ant-col-xxl-order-4{order:4}.ant-col-xxl-3{display:block;flex:0 0 12.5%;max-width:12.5%}.ant-col-xxl-push-3{left:12.5%}.ant-col-xxl-pull-3{right:12.5%}.ant-col-xxl-offset-3{margin-left:12.5%}.ant-col-xxl-order-3{order:3}.ant-col-xxl-2{display:block;flex:0 0 8.33333333%;max-width:8.33333333%}.ant-col-xxl-push-2{left:8.33333333%}.ant-col-xxl-pull-2{right:8.33333333%}.ant-col-xxl-offset-2{margin-left:8.33333333%}.ant-col-xxl-order-2{order:2}.ant-col-xxl-1{display:block;flex:0 0 4.16666667%;max-width:4.16666667%}.ant-col-xxl-push-1{left:4.16666667%}.ant-col-xxl-pull-1{right:4.16666667%}.ant-col-xxl-offset-1{margin-left:4.16666667%}.ant-col-xxl-order-1{order:1}.ant-col-xxl-0{display:none}.ant-col-push-0{left:auto}.ant-col-pull-0{right:auto}.ant-col-xxl-push-0{left:auto}.ant-col-xxl-pull-0{right:auto}.ant-col-xxl-offset-0{margin-left:0}.ant-col-xxl-order-0{order:0}.ant-col-push-0.ant-col-rtl{right:auto}.ant-col-pull-0.ant-col-rtl{left:auto}.ant-col-xxl-push-0.ant-col-rtl{right:auto}.ant-col-xxl-pull-0.ant-col-rtl{left:auto}.ant-col-xxl-offset-0.ant-col-rtl{margin-right:0}.ant-col-xxl-push-1.ant-col-rtl{right:4.16666667%;left:auto}.ant-col-xxl-pull-1.ant-col-rtl{right:auto;left:4.16666667%}.ant-col-xxl-offset-1.ant-col-rtl{margin-right:4.16666667%;margin-left:0}.ant-col-xxl-push-2.ant-col-rtl{right:8.33333333%;left:auto}.ant-col-xxl-pull-2.ant-col-rtl{right:auto;left:8.33333333%}.ant-col-xxl-offset-2.ant-col-rtl{margin-right:8.33333333%;margin-left:0}.ant-col-xxl-push-3.ant-col-rtl{right:12.5%;left:auto}.ant-col-xxl-pull-3.ant-col-rtl{right:auto;left:12.5%}.ant-col-xxl-offset-3.ant-col-rtl{margin-right:12.5%;margin-left:0}.ant-col-xxl-push-4.ant-col-rtl{right:16.66666667%;left:auto}.ant-col-xxl-pull-4.ant-col-rtl{right:auto;left:16.66666667%}.ant-col-xxl-offset-4.ant-col-rtl{margin-right:16.66666667%;margin-left:0}.ant-col-xxl-push-5.ant-col-rtl{right:20.83333333%;left:auto}.ant-col-xxl-pull-5.ant-col-rtl{right:auto;left:20.83333333%}.ant-col-xxl-offset-5.ant-col-rtl{margin-right:20.83333333%;margin-left:0}.ant-col-xxl-push-6.ant-col-rtl{right:25%;left:auto}.ant-col-xxl-pull-6.ant-col-rtl{right:auto;left:25%}.ant-col-xxl-offset-6.ant-col-rtl{margin-right:25%;margin-left:0}.ant-col-xxl-push-7.ant-col-rtl{right:29.16666667%;left:auto}.ant-col-xxl-pull-7.ant-col-rtl{right:auto;left:29.16666667%}.ant-col-xxl-offset-7.ant-col-rtl{margin-right:29.16666667%;margin-left:0}.ant-col-xxl-push-8.ant-col-rtl{right:33.33333333%;left:auto}.ant-col-xxl-pull-8.ant-col-rtl{right:auto;left:33.33333333%}.ant-col-xxl-offset-8.ant-col-rtl{margin-right:33.33333333%;margin-left:0}.ant-col-xxl-push-9.ant-col-rtl{right:37.5%;left:auto}.ant-col-xxl-pull-9.ant-col-rtl{right:auto;left:37.5%}.ant-col-xxl-offset-9.ant-col-rtl{margin-right:37.5%;margin-left:0}.ant-col-xxl-push-10.ant-col-rtl{right:41.66666667%;left:auto}.ant-col-xxl-pull-10.ant-col-rtl{right:auto;left:41.66666667%}.ant-col-xxl-offset-10.ant-col-rtl{margin-right:41.66666667%;margin-left:0}.ant-col-xxl-push-11.ant-col-rtl{right:45.83333333%;left:auto}.ant-col-xxl-pull-11.ant-col-rtl{right:auto;left:45.83333333%}.ant-col-xxl-offset-11.ant-col-rtl{margin-right:45.83333333%;margin-left:0}.ant-col-xxl-push-12.ant-col-rtl{right:50%;left:auto}.ant-col-xxl-pull-12.ant-col-rtl{right:auto;left:50%}.ant-col-xxl-offset-12.ant-col-rtl{margin-right:50%;margin-left:0}.ant-col-xxl-push-13.ant-col-rtl{right:54.16666667%;left:auto}.ant-col-xxl-pull-13.ant-col-rtl{right:auto;left:54.16666667%}.ant-col-xxl-offset-13.ant-col-rtl{margin-right:54.16666667%;margin-left:0}.ant-col-xxl-push-14.ant-col-rtl{right:58.33333333%;left:auto}.ant-col-xxl-pull-14.ant-col-rtl{right:auto;left:58.33333333%}.ant-col-xxl-offset-14.ant-col-rtl{margin-right:58.33333333%;margin-left:0}.ant-col-xxl-push-15.ant-col-rtl{right:62.5%;left:auto}.ant-col-xxl-pull-15.ant-col-rtl{right:auto;left:62.5%}.ant-col-xxl-offset-15.ant-col-rtl{margin-right:62.5%;margin-left:0}.ant-col-xxl-push-16.ant-col-rtl{right:66.66666667%;left:auto}.ant-col-xxl-pull-16.ant-col-rtl{right:auto;left:66.66666667%}.ant-col-xxl-offset-16.ant-col-rtl{margin-right:66.66666667%;margin-left:0}.ant-col-xxl-push-17.ant-col-rtl{right:70.83333333%;left:auto}.ant-col-xxl-pull-17.ant-col-rtl{right:auto;left:70.83333333%}.ant-col-xxl-offset-17.ant-col-rtl{margin-right:70.83333333%;margin-left:0}.ant-col-xxl-push-18.ant-col-rtl{right:75%;left:auto}.ant-col-xxl-pull-18.ant-col-rtl{right:auto;left:75%}.ant-col-xxl-offset-18.ant-col-rtl{margin-right:75%;margin-left:0}.ant-col-xxl-push-19.ant-col-rtl{right:79.16666667%;left:auto}.ant-col-xxl-pull-19.ant-col-rtl{right:auto;left:79.16666667%}.ant-col-xxl-offset-19.ant-col-rtl{margin-right:79.16666667%;margin-left:0}.ant-col-xxl-push-20.ant-col-rtl{right:83.33333333%;left:auto}.ant-col-xxl-pull-20.ant-col-rtl{right:auto;left:83.33333333%}.ant-col-xxl-offset-20.ant-col-rtl{margin-right:83.33333333%;margin-left:0}.ant-col-xxl-push-21.ant-col-rtl{right:87.5%;left:auto}.ant-col-xxl-pull-21.ant-col-rtl{right:auto;left:87.5%}.ant-col-xxl-offset-21.ant-col-rtl{margin-right:87.5%;margin-left:0}.ant-col-xxl-push-22.ant-col-rtl{right:91.66666667%;left:auto}.ant-col-xxl-pull-22.ant-col-rtl{right:auto;left:91.66666667%}.ant-col-xxl-offset-22.ant-col-rtl{margin-right:91.66666667%;margin-left:0}.ant-col-xxl-push-23.ant-col-rtl{right:95.83333333%;left:auto}.ant-col-xxl-pull-23.ant-col-rtl{right:auto;left:95.83333333%}.ant-col-xxl-offset-23.ant-col-rtl{margin-right:95.83333333%;margin-left:0}.ant-col-xxl-push-24.ant-col-rtl{right:100%;left:auto}.ant-col-xxl-pull-24.ant-col-rtl{right:auto;left:100%}.ant-col-xxl-offset-24.ant-col-rtl{margin-right:100%;margin-left:0}}.ant-row-rtl{direction:rtl}.ant-input-affix-wrapper{position:relative;display:inline-block;width:100%;min-width:0;padding:4px 11px;color:#000000d9;font-size:14px;line-height:1.5715;background-color:#fff;background-image:none;border:1px solid #d9d9d9;border-radius:2px;transition:all .3s;display:inline-flex}.ant-input-affix-wrapper::placeholder{color:#bfbfbf}.ant-input-affix-wrapper:placeholder-shown{text-overflow:ellipsis}.ant-input-affix-wrapper:hover{border-color:#40a9ff;border-right-width:1px!important}.ant-input-rtl .ant-input-affix-wrapper:hover{border-right-width:0;border-left-width:1px!important}.ant-input-affix-wrapper-focused,.ant-input-affix-wrapper:focus{border-color:#40a9ff;border-right-width:1px!important;outline:0;box-shadow:0 0 0 2px #1890ff33}.ant-input-rtl .ant-input-affix-wrapper-focused,.ant-input-rtl .ant-input-affix-wrapper:focus{border-right-width:0;border-left-width:1px!important}.ant-input-affix-wrapper-disabled{color:#00000040;background-color:#f5f5f5;border-color:#d9d9d9;box-shadow:none;cursor:not-allowed;opacity:1}.ant-input-affix-wrapper-disabled:hover{border-color:#d9d9d9;border-right-width:1px!important}.ant-input-affix-wrapper[disabled]{color:#00000040;background-color:#f5f5f5;border-color:#d9d9d9;box-shadow:none;cursor:not-allowed;opacity:1}.ant-input-affix-wrapper[disabled]:hover{border-color:#d9d9d9;border-right-width:1px!important}.ant-input-affix-wrapper-borderless,.ant-input-affix-wrapper-borderless-disabled,.ant-input-affix-wrapper-borderless-focused,.ant-input-affix-wrapper-borderless:focus,.ant-input-affix-wrapper-borderless:hover,.ant-input-affix-wrapper-borderless[disabled]{background-color:initial;border:none;box-shadow:none}textarea.ant-input-affix-wrapper{max-width:100%;height:auto;min-height:32px;line-height:1.5715;vertical-align:bottom;transition:all .3s,height 0s}.ant-input-affix-wrapper-lg{padding:6.5px 11px;font-size:16px}.ant-input-affix-wrapper-sm{padding:0 7px}.ant-input-affix-wrapper-rtl{direction:rtl}.ant-input-affix-wrapper:not(.ant-input-affix-wrapper-disabled):hover{border-color:#40a9ff;border-right-width:1px!important;z-index:1}.ant-input-rtl .ant-input-affix-wrapper:not(.ant-input-affix-wrapper-disabled):hover{border-right-width:0;border-left-width:1px!important}.ant-input-search-with-button .ant-input-affix-wrapper:not(.ant-input-affix-wrapper-disabled):hover{z-index:0}.ant-input-affix-wrapper-focused,.ant-input-affix-wrapper:focus{z-index:1}.ant-input-affix-wrapper-disabled .ant-input[disabled]{background:#0000}.ant-input-affix-wrapper>input.ant-input{padding:0;border:none;outline:none}.ant-input-affix-wrapper>input.ant-input:focus{box-shadow:none!important}.ant-input-affix-wrapper:before{width:0;visibility:hidden;content:"\\a0"}.ant-input-prefix,.ant-input-suffix{display:flex;flex:none;align-items:center}.ant-input-prefix{margin-right:4px}.ant-input-suffix{margin-left:4px}.anticon.ant-input-clear-icon{margin:0;color:#00000040;font-size:12px;vertical-align:-1px;cursor:pointer;transition:color .3s}.anticon.ant-input-clear-icon:hover{color:#00000073}.anticon.ant-input-clear-icon:active{color:#000000d9}.anticon.ant-input-clear-icon-hidden{visibility:hidden}.anticon.ant-input-clear-icon-has-suffix{margin:0 4px}.ant-input-affix-wrapper-textarea-with-clear-btn{padding:0!important;border:0!important}.ant-input-affix-wrapper-textarea-with-clear-btn .ant-input-clear-icon{position:absolute;top:8px;right:8px;z-index:1}.ant-input{box-sizing:border-box;margin:0;font-variant:tabular-nums;list-style:none;font-feature-settings:"tnum";position:relative;display:inline-block;width:100%;min-width:0;padding:4px 11px;color:#000000d9;font-size:14px;line-height:1.5715;background-color:#fff;background-image:none;border:1px solid #d9d9d9;border-radius:2px;transition:all .3s}.ant-input::placeholder{color:#bfbfbf}.ant-input:placeholder-shown{text-overflow:ellipsis}.ant-input:hover{border-color:#40a9ff;border-right-width:1px!important}.ant-input-rtl .ant-input:hover{border-right-width:0;border-left-width:1px!important}.ant-input-focused,.ant-input:focus{border-color:#40a9ff;border-right-width:1px!important;outline:0;box-shadow:0 0 0 2px #1890ff33}.ant-input-rtl .ant-input-focused,.ant-input-rtl .ant-input:focus{border-right-width:0;border-left-width:1px!important}.ant-input-disabled{color:#00000040;background-color:#f5f5f5;border-color:#d9d9d9;box-shadow:none;cursor:not-allowed;opacity:1}.ant-input-disabled:hover{border-color:#d9d9d9;border-right-width:1px!important}.ant-input[disabled]{color:#00000040;background-color:#f5f5f5;border-color:#d9d9d9;box-shadow:none;cursor:not-allowed;opacity:1}.ant-input[disabled]:hover{border-color:#d9d9d9;border-right-width:1px!important}.ant-input-borderless,.ant-input-borderless-disabled,.ant-input-borderless-focused,.ant-input-borderless:focus,.ant-input-borderless:hover,.ant-input-borderless[disabled]{background-color:initial;border:none;box-shadow:none}textarea.ant-input{max-width:100%;height:auto;min-height:32px;line-height:1.5715;vertical-align:bottom;transition:all .3s,height 0s}.ant-input-lg{padding:6.5px 11px;font-size:16px}.ant-input-sm{padding:0 7px}.ant-input-rtl{direction:rtl}.ant-input-group{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:relative;display:table;width:100%;border-collapse:initial;border-spacing:0}.ant-input-group[class*=col-]{float:none;padding-right:0;padding-left:0}.ant-input-group>[class*=col-]{padding-right:8px}.ant-input-group>[class*=col-]:last-child{padding-right:0}.ant-input-group-addon,.ant-input-group-wrap,.ant-input-group>.ant-input{display:table-cell}.ant-input-group-addon:not(:first-child):not(:last-child),.ant-input-group-wrap:not(:first-child):not(:last-child),.ant-input-group>.ant-input:not(:first-child):not(:last-child){border-radius:0}.ant-input-group-addon,.ant-input-group-wrap{width:1px;white-space:nowrap;vertical-align:middle}.ant-input-group-wrap>*{display:block!important}.ant-input-group .ant-input{float:left;width:100%;margin-bottom:0;text-align:inherit}.ant-input-group .ant-input:focus,.ant-input-group .ant-input:hover{z-index:1;border-right-width:1px}.ant-input-search-with-button .ant-input-group .ant-input:hover{z-index:0}.ant-input-group-addon{position:relative;padding:0 11px;color:#000000d9;font-weight:400;font-size:14px;text-align:center;background-color:#fafafa;border:1px solid #d9d9d9;border-radius:2px;transition:all .3s}.ant-input-group-addon .ant-select{margin:-5px -11px}.ant-input-group-addon .ant-select.ant-select-single:not(.ant-select-customize-input) .ant-select-selector{background-color:inherit;border:1px solid #0000;box-shadow:none}.ant-input-group-addon .ant-select-focused .ant-select-selector,.ant-input-group-addon .ant-select-open .ant-select-selector{color:#1890ff}.ant-input-group-addon .ant-cascader-picker{margin:-9px -12px;background-color:initial}.ant-input-group-addon .ant-cascader-picker .ant-cascader-input{text-align:left;border:0;box-shadow:none}.ant-input-group-addon:first-child,.ant-input-group-addon:first-child .ant-select .ant-select-selector,.ant-input-group>.ant-input:first-child,.ant-input-group>.ant-input:first-child .ant-select .ant-select-selector{border-top-right-radius:0;border-bottom-right-radius:0}.ant-input-group>.ant-input-affix-wrapper:not(:first-child) .ant-input{border-top-left-radius:0;border-bottom-left-radius:0}.ant-input-group>.ant-input-affix-wrapper:not(:last-child) .ant-input{border-top-right-radius:0;border-bottom-right-radius:0}.ant-input-group-addon:first-child{border-right:0}.ant-input-group-addon:last-child{border-left:0}.ant-input-group-addon:last-child,.ant-input-group-addon:last-child .ant-select .ant-select-selector,.ant-input-group>.ant-input:last-child,.ant-input-group>.ant-input:last-child .ant-select .ant-select-selector{border-top-left-radius:0;border-bottom-left-radius:0}.ant-input-group-lg .ant-input,.ant-input-group-lg>.ant-input-group-addon{padding:6.5px 11px;font-size:16px}.ant-input-group-sm .ant-input,.ant-input-group-sm>.ant-input-group-addon{padding:0 7px}.ant-input-group-lg .ant-select-single .ant-select-selector{height:40px}.ant-input-group-sm .ant-select-single .ant-select-selector{height:24px}.ant-input-group .ant-input-affix-wrapper:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.ant-input-group .ant-input-affix-wrapper:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.ant-input-search .ant-input-group .ant-input-affix-wrapper:not(:last-child){border-top-left-radius:2px;border-bottom-left-radius:2px}.ant-input-group.ant-input-group-compact{display:block}.ant-input-group.ant-input-group-compact:before{display:table;content:""}.ant-input-group.ant-input-group-compact:after{display:table;clear:both;content:""}.ant-input-group.ant-input-group-compact-addon:not(:first-child):not(:last-child),.ant-input-group.ant-input-group-compact-wrap:not(:first-child):not(:last-child),.ant-input-group.ant-input-group-compact>.ant-input:not(:first-child):not(:last-child){border-right-width:1px}.ant-input-group.ant-input-group-compact-addon:not(:first-child):not(:last-child):focus,.ant-input-group.ant-input-group-compact-addon:not(:first-child):not(:last-child):hover,.ant-input-group.ant-input-group-compact-wrap:not(:first-child):not(:last-child):focus,.ant-input-group.ant-input-group-compact-wrap:not(:first-child):not(:last-child):hover,.ant-input-group.ant-input-group-compact>.ant-input:not(:first-child):not(:last-child):focus,.ant-input-group.ant-input-group-compact>.ant-input:not(:first-child):not(:last-child):hover{z-index:1}.ant-input-group.ant-input-group-compact>*{display:inline-block;float:none;vertical-align:top;border-radius:0}.ant-input-group.ant-input-group-compact>.ant-input-affix-wrapper,.ant-input-group.ant-input-group-compact>.ant-picker-range{display:inline-flex}.ant-input-group.ant-input-group-compact>:not(:last-child){margin-right:-1px;border-right-width:1px}.ant-input-group.ant-input-group-compact .ant-input{float:none}.ant-input-group.ant-input-group-compact>.ant-cascader-picker .ant-input,.ant-input-group.ant-input-group-compact>.ant-input-group-wrapper .ant-input,.ant-input-group.ant-input-group-compact>.ant-select-auto-complete .ant-input,.ant-input-group.ant-input-group-compact>.ant-select>.ant-select-selector{border-right-width:1px;border-radius:0}.ant-input-group.ant-input-group-compact>.ant-cascader-picker .ant-input:focus,.ant-input-group.ant-input-group-compact>.ant-cascader-picker .ant-input:hover,.ant-input-group.ant-input-group-compact>.ant-input-group-wrapper .ant-input:focus,.ant-input-group.ant-input-group-compact>.ant-input-group-wrapper .ant-input:hover,.ant-input-group.ant-input-group-compact>.ant-select-auto-complete .ant-input:focus,.ant-input-group.ant-input-group-compact>.ant-select-auto-complete .ant-input:hover,.ant-input-group.ant-input-group-compact>.ant-select-focused,.ant-input-group.ant-input-group-compact>.ant-select>.ant-select-arrow,.ant-input-group.ant-input-group-compact>.ant-select>.ant-select-selector:focus,.ant-input-group.ant-input-group-compact>.ant-select>.ant-select-selector:hover{z-index:1}.ant-input-group.ant-input-group-compact>.ant-cascader-picker:first-child .ant-input,.ant-input-group.ant-input-group-compact>.ant-select-auto-complete:first-child .ant-input,.ant-input-group.ant-input-group-compact>.ant-select:first-child>.ant-select-selector,.ant-input-group.ant-input-group-compact>:first-child{border-top-left-radius:2px;border-bottom-left-radius:2px}.ant-input-group.ant-input-group-compact>.ant-cascader-picker-focused:last-child .ant-input,.ant-input-group.ant-input-group-compact>.ant-cascader-picker:last-child .ant-input,.ant-input-group.ant-input-group-compact>.ant-select:last-child>.ant-select-selector,.ant-input-group.ant-input-group-compact>:last-child{border-right-width:1px;border-top-right-radius:2px;border-bottom-right-radius:2px}.ant-input-group.ant-input-group-compact>.ant-select-auto-complete .ant-input{vertical-align:top}.ant-input-group.ant-input-group-compact .ant-input-group-wrapper+.ant-input-group-wrapper{margin-left:-1px}.ant-input-group.ant-input-group-compact .ant-input-group-wrapper+.ant-input-group-wrapper .ant-input-affix-wrapper,.ant-input-group.ant-input-group-compact .ant-input-group-wrapper:not(:last-child).ant-input-search>.ant-input-group>.ant-input-group-addon>.ant-input-search-button{border-radius:0}.ant-input-group.ant-input-group-compact .ant-input-group-wrapper:not(:last-child).ant-input-search>.ant-input-group>.ant-input{border-radius:2px 0 0 2px}.ant-input-group-rtl .ant-input-group-addon:first-child,.ant-input-group>.ant-input-rtl:first-child{border-radius:0 2px 2px 0}.ant-input-group-rtl .ant-input-group-addon:first-child{border-right:1px solid #d9d9d9;border-left:0}.ant-input-group-rtl .ant-input-group-addon:last-child{border-right:0;border-left:1px solid #d9d9d9}.ant-input-group-rtl.ant-input-group .ant-input-affix-wrapper:not(:first-child),.ant-input-group-rtl.ant-input-group-addon:last-child,.ant-input-group-rtl.ant-input-group>.ant-input:last-child{border-radius:2px 0 0 2px}.ant-input-group-rtl.ant-input-group .ant-input-affix-wrapper:not(:last-child){border-radius:0 2px 2px 0}.ant-input-group-rtl.ant-input-group.ant-input-group-compact>:not(:last-child){margin-right:0;margin-left:-1px;border-left-width:1px}.ant-input-group-rtl.ant-input-group.ant-input-group-compact>.ant-cascader-picker:first-child .ant-input,.ant-input-group-rtl.ant-input-group.ant-input-group-compact>.ant-select-auto-complete:first-child .ant-input,.ant-input-group-rtl.ant-input-group.ant-input-group-compact>.ant-select:first-child>.ant-select-selector,.ant-input-group-rtl.ant-input-group.ant-input-group-compact>:first-child{border-radius:0 2px 2px 0}.ant-input-group-rtl.ant-input-group.ant-input-group-compact>.ant-cascader-picker-focused:last-child .ant-input,.ant-input-group-rtl.ant-input-group.ant-input-group-compact>.ant-cascader-picker:last-child .ant-input,.ant-input-group-rtl.ant-input-group.ant-input-group-compact>.ant-select-auto-complete:last-child .ant-input,.ant-input-group-rtl.ant-input-group.ant-input-group-compact>.ant-select:last-child>.ant-select-selector,.ant-input-group-rtl.ant-input-group.ant-input-group-compact>:last-child{border-left-width:1px;border-radius:2px 0 0 2px}.ant-input-group.ant-input-group-compact .ant-input-group-wrapper-rtl+.ant-input-group-wrapper-rtl{margin-right:-1px;margin-left:0}.ant-input-group.ant-input-group-compact .ant-input-group-wrapper-rtl:not(:last-child).ant-input-search>.ant-input-group>.ant-input{border-radius:0 2px 2px 0}.ant-input-group-wrapper{display:inline-block;width:100%;text-align:start;vertical-align:top}.ant-input-password-icon{color:#00000073;cursor:pointer;transition:all .3s}.ant-input-password-icon:hover{color:#000000d9}.ant-input[type=color]{height:32px}.ant-input[type=color].ant-input-lg{height:40px}.ant-input[type=color].ant-input-sm{height:24px;padding-top:3px;padding-bottom:3px}.ant-input-textarea-show-count:after{float:right;color:#00000073;white-space:nowrap;content:attr(data-count);pointer-events:none}.ant-input-search .ant-input:focus,.ant-input-search .ant-input:hover{border-color:#40a9ff}.ant-input-search .ant-input:focus+.ant-input-group-addon .ant-input-search-button:not(.ant-btn-primary),.ant-input-search .ant-input:hover+.ant-input-group-addon .ant-input-search-button:not(.ant-btn-primary){border-left-color:#40a9ff}.ant-input-search .ant-input-affix-wrapper{border-radius:0}.ant-input-search .ant-input-lg{line-height:1.5713}.ant-input-search>.ant-input-group>.ant-input-group-addon:last-child{left:-1px;padding:0;border:0}.ant-input-search>.ant-input-group>.ant-input-group-addon:last-child .ant-input-search-button{padding-top:0;padding-bottom:0;border-radius:0 2px 2px 0}.ant-input-search>.ant-input-group>.ant-input-group-addon:last-child .ant-input-search-button:not(.ant-btn-primary){color:#00000073}.ant-input-search>.ant-input-group>.ant-input-group-addon:last-child .ant-input-search-button:not(.ant-btn-primary).ant-btn-loading:before{top:0;right:0;bottom:0;left:0}.ant-input-search-button{height:32px}.ant-input-search-button:focus,.ant-input-search-button:hover{z-index:1}.ant-input-search-large .ant-input-search-button{height:40px}.ant-input-search-small .ant-input-search-button{height:24px}.ant-input-group-rtl,.ant-input-group-wrapper-rtl{direction:rtl}.ant-input-affix-wrapper.ant-input-affix-wrapper-rtl>input.ant-input{border:none;outline:none}.ant-input-affix-wrapper-rtl .ant-input-prefix{margin:0 0 0 4px}.ant-input-affix-wrapper-rtl .ant-input-suffix{margin:0 4px 0 0}.ant-input-textarea-rtl{direction:rtl}.ant-input-textarea-rtl.ant-input-textarea-show-count:after{text-align:left}.ant-input-affix-wrapper-rtl .ant-input-clear-icon-has-suffix{margin-right:0;margin-left:4px}.ant-input-affix-wrapper-rtl .ant-input-clear-icon{right:auto;left:8px}.ant-input-search-rtl{direction:rtl}.ant-input-search-rtl .ant-input:focus+.ant-input-group-addon .ant-input-search-button:not(.ant-btn-primary),.ant-input-search-rtl .ant-input:hover+.ant-input-group-addon .ant-input-search-button:not(.ant-btn-primary){border-right-color:#40a9ff;border-left-color:#d9d9d9}.ant-input-search-rtl>.ant-input-group>.ant-input-affix-wrapper-focused,.ant-input-search-rtl>.ant-input-group>.ant-input-affix-wrapper:hover{border-right-color:#40a9ff}.ant-input-search-rtl>.ant-input-group>.ant-input-group-addon{right:-1px;left:auto}.ant-input-search-rtl>.ant-input-group>.ant-input-group-addon .ant-input-search-button{border-radius:2px 0 0 2px}@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none){.ant-input{height:32px}.ant-input-lg{height:40px}.ant-input-sm{height:24px}.ant-input-affix-wrapper>input.ant-input{height:auto}}textarea.nz-textarea-autosize-measuring{height:auto!important;overflow:hidden!important;padding:2px 0!important;box-sizing:initial!important}.ant-input-search-rtl.ant-input-search-enter-button input+.ant-input-group-addon .ant-input-search-button.ant-btn-icon-only,.ant-input-search-rtl.ant-input-search-enter-button+.ant-input-group-addon .ant-input-search-button.ant-btn-icon-only{width:32px;height:32px}.ant-input-search-rtl.ant-input-search-enter-button input+.ant-input-group-addon .ant-input-search-button.ant-btn-icon-only.ant-btn-sm,.ant-input-search-rtl.ant-input-search-enter-button+.ant-input-group-addon .ant-input-search-button.ant-btn-icon-only.ant-btn-sm{width:24px;height:24px}.ant-input-search-rtl.ant-input-search-enter-button input+.ant-input-group-addon .ant-input-search-button.ant-btn-icon-only.ant-btn-lg,.ant-input-search-rtl.ant-input-search-enter-button+.ant-input-group-addon .ant-input-search-button.ant-btn-icon-only.ant-btn-lg{width:40px;height:40px}.ant-input-number{box-sizing:border-box;font-variant:tabular-nums;list-style:none;font-feature-settings:"tnum";position:relative;width:100%;min-width:0;color:#000000d9;font-size:14px;line-height:1.5715;background-color:#fff;background-image:none;transition:all .3s;display:inline-block;width:90px;margin:0;padding:0;border:1px solid #d9d9d9;border-radius:2px}.ant-input-number::placeholder{color:#bfbfbf}.ant-input-number:placeholder-shown{text-overflow:ellipsis}.ant-input-rtl .ant-input-number:hover{border-right-width:0;border-left-width:1px!important}.ant-input-number-focused,.ant-input-number:focus{border-color:#40a9ff;border-right-width:1px!important;outline:0;box-shadow:0 0 0 2px #1890ff33}.ant-input-rtl .ant-input-number-focused,.ant-input-rtl .ant-input-number:focus{border-right-width:0;border-left-width:1px!important}.ant-input-number[disabled]{color:#00000040;background-color:#f5f5f5;border-color:#d9d9d9;box-shadow:none;cursor:not-allowed;opacity:1}.ant-input-number[disabled]:hover{border-color:#d9d9d9;border-right-width:1px!important}.ant-input-number-borderless,.ant-input-number-borderless-disabled,.ant-input-number-borderless-focused,.ant-input-number-borderless:focus,.ant-input-number-borderless:hover,.ant-input-number-borderless[disabled]{background-color:initial;border:none;box-shadow:none}textarea.ant-input-number{max-width:100%;height:auto;min-height:32px;line-height:1.5715;vertical-align:bottom;transition:all .3s,height 0s}.ant-input-number-lg{padding:6.5px 11px}.ant-input-number-sm{padding:0 7px}.ant-input-number-handler{position:relative;display:block;width:100%;height:50%;overflow:hidden;color:#00000073;font-weight:700;line-height:0;text-align:center;border-left:1px solid #d9d9d9;transition:all .1s linear}.ant-input-number-handler:active{background:#f4f4f4}.ant-input-number-handler:hover .ant-input-number-handler-down-inner,.ant-input-number-handler:hover .ant-input-number-handler-up-inner{color:#40a9ff}.ant-input-number-handler-down-inner,.ant-input-number-handler-up-inner{display:inline-block;color:inherit;font-style:normal;line-height:0;text-align:center;text-transform:none;vertical-align:-.125em;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:absolute;right:4px;width:12px;height:12px;color:#00000073;line-height:12px;transition:all .1s linear;-webkit-user-select:none;user-select:none}.ant-input-number-handler-down-inner>*,.ant-input-number-handler-up-inner>*{line-height:1}.ant-input-number-handler-down-inner svg,.ant-input-number-handler-up-inner svg{display:inline-block}.ant-input-number-handler-down-inner:before,.ant-input-number-handler-up-inner:before{display:none}.ant-input-number-handler-down-inner .ant-input-number-handler-down-inner-icon,.ant-input-number-handler-down-inner .ant-input-number-handler-up-inner-icon,.ant-input-number-handler-up-inner .ant-input-number-handler-down-inner-icon,.ant-input-number-handler-up-inner .ant-input-number-handler-up-inner-icon{display:block}.ant-input-number:hover{border-color:#40a9ff;border-right-width:1px!important}.ant-input-number:hover+.ant-form-item-children-icon{opacity:0;transition:opacity .24s linear .24s}.ant-input-number-focused{border-color:#40a9ff;border-right-width:1px!important;outline:0;box-shadow:0 0 0 2px #1890ff33}.ant-input-rtl .ant-input-number-focused{border-right-width:0;border-left-width:1px!important}.ant-input-number-disabled{color:#00000040;background-color:#f5f5f5;border-color:#d9d9d9;box-shadow:none;cursor:not-allowed;opacity:1}.ant-input-number-disabled:hover{border-color:#d9d9d9;border-right-width:1px!important}.ant-input-number-disabled .ant-input-number-input{cursor:not-allowed}.ant-input-number-disabled .ant-input-number-handler-wrap,.ant-input-number-readonly .ant-input-number-handler-wrap{display:none}.ant-input-number-input{width:100%;height:30px;padding:0 11px;text-align:left;background-color:initial;border:0;border-radius:2px;outline:0;transition:all .3s linear;-moz-appearance:textfield!important}.ant-input-number-input::placeholder{color:#bfbfbf}.ant-input-number-input:placeholder-shown{text-overflow:ellipsis}.ant-input-number-input[type=number]::-webkit-inner-spin-button,.ant-input-number-input[type=number]::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}.ant-input-number-lg{padding:0;font-size:16px}.ant-input-number-lg input{height:38px}.ant-input-number-sm{padding:0}.ant-input-number-sm input{height:22px;padding:0 7px}.ant-input-number-handler-wrap{position:absolute;top:0;right:0;width:22px;height:100%;background:#fff;border-radius:0 2px 2px 0;opacity:0;transition:opacity .24s linear .1s}.ant-input-number-handler-wrap .ant-input-number-handler .ant-input-number-handler-down-inner,.ant-input-number-handler-wrap .ant-input-number-handler .ant-input-number-handler-up-inner{min-width:auto;margin-right:0;font-size:7px}.ant-input-number-borderless .ant-input-number-handler-wrap{border-left-width:0}.ant-input-number-handler-wrap:hover .ant-input-number-handler{height:40%}.ant-input-number:hover .ant-input-number-handler-wrap{opacity:1}.ant-input-number-handler-up{border-top-right-radius:2px;cursor:pointer}.ant-input-number-handler-up-inner{top:50%;margin-top:-5px;text-align:center}.ant-input-number-handler-up:hover{height:60%!important}.ant-input-number-handler-down{top:0;border-top:1px solid #d9d9d9;border-bottom-right-radius:2px;cursor:pointer}.ant-input-number-handler-down-inner{top:50%;text-align:center;transform:translateY(-50%)}.ant-input-number-handler-down:hover{height:60%!important}.ant-input-number-borderless .ant-input-number-handler-down{border-top-width:0}.ant-input-number-handler-down-disabled,.ant-input-number-handler-up-disabled{cursor:not-allowed}.ant-input-number-handler-down-disabled:hover .ant-input-number-handler-down-inner,.ant-input-number-handler-up-disabled:hover .ant-input-number-handler-up-inner{color:#00000040}.ant-input-number-borderless{box-shadow:none}.ant-input-number-out-of-range input{color:#ff4d4f}.ant-input-number-rtl{direction:rtl}.ant-input-number-rtl .ant-input-number-handler-wrap{right:auto;left:0;border-right:1px solid #d9d9d9;border-left:0;border-radius:2px 0 0 2px}.ant-input-number-rtl.ant-input-number-borderless .ant-input-number-handler-wrap{border-right-width:0}.ant-input-number-rtl .ant-input-number-input{direction:ltr;text-align:right}.ant-layout{display:flex;flex:auto;flex-direction:column;min-height:0;background:#f0f2f5}.ant-layout,.ant-layout *{box-sizing:border-box}.ant-layout.ant-layout-has-sider{flex-direction:row}.ant-layout.ant-layout-has-sider>.ant-layout,.ant-layout.ant-layout-has-sider>.ant-layout-content{width:0}.ant-layout-footer,.ant-layout-header{flex:0 0 auto}.ant-layout-header{height:64px;padding:0 50px;color:#000000d9;line-height:64px;background:#001529}.ant-layout-footer{padding:24px 50px;color:#000000d9;font-size:14px;background:#f0f2f5}.ant-layout-content{flex:auto;min-height:0}.ant-layout-sider{position:relative;min-width:0;background:#001529;transition:all .2s}.ant-layout-sider-children{height:100%;margin-top:-.1px;padding-top:.1px}.ant-layout-sider-children .ant-menu.ant-menu-inline-collapsed{width:auto}.ant-layout-sider-has-trigger{padding-bottom:48px}.ant-layout-sider-right{order:1}.ant-layout-sider-trigger{position:fixed;bottom:0;z-index:1;height:48px;color:#fff;line-height:48px;text-align:center;background:#002140;cursor:pointer;transition:all .2s}.ant-layout-sider-zero-width>*{overflow:hidden}.ant-layout-sider-zero-width-trigger{position:absolute;top:64px;right:-36px;z-index:1;width:36px;height:42px;color:#fff;font-size:18px;line-height:42px;text-align:center;background:#001529;border-radius:0 2px 2px 0;cursor:pointer;transition:background .3s ease}.ant-layout-sider-zero-width-trigger:after{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000;transition:all .3s;content:""}.ant-layout-sider-zero-width-trigger:hover:after{background:#ffffff1a}.ant-layout-sider-zero-width-trigger-right{left:-36px;border-radius:2px 0 0 2px}.ant-layout-sider-light{background:#fff}.ant-layout-sider-light .ant-layout-sider-trigger,.ant-layout-sider-light .ant-layout-sider-zero-width-trigger{color:#000000d9;background:#fff}.ant-layout-rtl{direction:rtl}nz-content,nz-footer,nz-header{display:block}.ant-form-item .ant-mentions,.ant-form-item textarea.ant-input{height:auto}.ant-form-item .ant-upload{background:#0000}.ant-form-item .ant-upload.ant-upload-drag{background:#fafafa}.ant-form-item input[type=checkbox],.ant-form-item input[type=radio]{width:14px;height:14px}.ant-form-item .ant-checkbox-inline,.ant-form-item .ant-radio-inline{display:inline-block;margin-left:8px;font-weight:400;vertical-align:middle;cursor:pointer}.ant-form-item .ant-checkbox-inline:first-child,.ant-form-item .ant-radio-inline:first-child{margin-left:0}.ant-form-item .ant-checkbox-vertical,.ant-form-item .ant-radio-vertical{display:block}.ant-form-item .ant-checkbox-vertical+.ant-checkbox-vertical,.ant-form-item .ant-radio-vertical+.ant-radio-vertical{margin-left:0}.ant-form-item .ant-input-number+.ant-form-text{margin-left:8px}.ant-form-item .ant-input-number-handler-wrap{z-index:2}.ant-form-item .ant-cascader-picker,.ant-form-item .ant-select{width:100%}.ant-form-item .ant-input-group .ant-cascader-picker,.ant-form-item .ant-input-group .ant-select,.ant-form-item .ant-picker-calendar-month-select,.ant-form-item .ant-picker-calendar-year-select{width:auto}.ant-form-inline{display:flex;flex-wrap:wrap}.ant-form-inline .ant-form-item{flex:none;flex-wrap:nowrap;margin-right:16px;margin-bottom:0}.ant-form-inline .ant-form-item-with-help{margin-bottom:24px}.ant-form-inline .ant-form-item>.ant-form-item-control,.ant-form-inline .ant-form-item>.ant-form-item-label{display:inline-block;vertical-align:top}.ant-form-inline .ant-form-item>.ant-form-item-label{flex:none}.ant-form-inline .ant-form-item .ant-form-item-has-feedback,.ant-form-inline .ant-form-item .ant-form-text{display:inline-block}.ant-form-horizontal .ant-form-item-label{flex-grow:0}.ant-form-horizontal .ant-form-item-control{flex:1 1 0}.ant-form-vertical .ant-form-item{flex-direction:column}.ant-form-vertical .ant-form-item-label>label{height:auto}.ant-col-24.ant-form-item-label,.ant-col-xl-24.ant-form-item-label,.ant-form-vertical .ant-form-item-label{padding:0 0 8px;line-height:1.5715;white-space:normal;text-align:left}.ant-col-24.ant-form-item-label>label,.ant-col-xl-24.ant-form-item-label>label,.ant-form-vertical .ant-form-item-label>label{margin:0}.ant-col-24.ant-form-item-label>label:after,.ant-col-xl-24.ant-form-item-label>label:after,.ant-form-vertical .ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-col-24.ant-form-item-label,.ant-form-rtl.ant-col-xl-24.ant-form-item-label,.ant-form-rtl.ant-form-vertical .ant-form-item-label{text-align:right}@media (max-width: 575px){.ant-form-item .ant-form-item-label{padding:0 0 8px;line-height:1.5715;white-space:normal;text-align:left}.ant-form-item .ant-form-item-label>label{margin:0}.ant-form-item .ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-form-item .ant-form-item-label{text-align:right}.ant-form .ant-form-item{flex-wrap:wrap}.ant-form .ant-form-item .ant-form-item-control,.ant-form .ant-form-item .ant-form-item-label{flex:0 0 100%;max-width:100%}.ant-col-xs-24.ant-form-item-label{padding:0 0 8px;line-height:1.5715;white-space:normal;text-align:left}.ant-col-xs-24.ant-form-item-label>label{margin:0}.ant-col-xs-24.ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-col-xs-24.ant-form-item-label{text-align:right}}@media (max-width: 767px){.ant-col-sm-24.ant-form-item-label{padding:0 0 8px;line-height:1.5715;white-space:normal;text-align:left}.ant-col-sm-24.ant-form-item-label>label{margin:0}.ant-col-sm-24.ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-col-sm-24.ant-form-item-label{text-align:right}}@media (max-width: 991px){.ant-col-md-24.ant-form-item-label{padding:0 0 8px;line-height:1.5715;white-space:normal;text-align:left}.ant-col-md-24.ant-form-item-label>label{margin:0}.ant-col-md-24.ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-col-md-24.ant-form-item-label{text-align:right}}@media (max-width: 1199px){.ant-col-lg-24.ant-form-item-label{padding:0 0 8px;line-height:1.5715;white-space:normal;text-align:left}.ant-col-lg-24.ant-form-item-label>label{margin:0}.ant-col-lg-24.ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-col-lg-24.ant-form-item-label{text-align:right}}@media (max-width: 1599px){.ant-col-xl-24.ant-form-item-label{padding:0 0 8px;line-height:1.5715;white-space:normal;text-align:left}.ant-col-xl-24.ant-form-item-label>label{margin:0}.ant-col-xl-24.ant-form-item-label>label:after{display:none}.ant-form-rtl.ant-col-xl-24.ant-form-item-label{text-align:right}}.ant-form-item-explain.ant-form-item-explain-error{color:#ff4d4f}.ant-form-item-explain.ant-form-item-explain-warning{color:#faad14}.ant-form-item-has-feedback .ant-input{padding-right:24px}.ant-form-item-has-feedback .ant-input-affix-wrapper .ant-input-suffix{padding-right:18px}.ant-form-item-has-feedback .ant-input-search:not(.ant-input-search-enter-button) .ant-input-suffix{right:28px}.ant-form-item-has-feedback .ant-switch{margin:2px 0 4px}.ant-form-item-has-feedback :not(.ant-input-group-addon)>.ant-select .ant-select-arrow,.ant-form-item-has-feedback :not(.ant-input-group-addon)>.ant-select .ant-select-clear,.ant-form-item-has-feedback>.ant-select .ant-select-arrow,.ant-form-item-has-feedback>.ant-select .ant-select-clear{right:32px}.ant-form-item-has-feedback :not(.ant-input-group-addon)>.ant-select .ant-select-selection-selected-value,.ant-form-item-has-feedback>.ant-select .ant-select-selection-selected-value{padding-right:42px}.ant-form-item-has-feedback .ant-cascader-picker-arrow{margin-right:19px}.ant-form-item-has-feedback .ant-cascader-picker-clear{right:32px}.ant-form-item-has-feedback .ant-picker,.ant-form-item-has-feedback .ant-picker-large{padding-right:29.2px}.ant-form-item-has-feedback .ant-picker-small{padding-right:25.2px}.ant-form-item-has-feedback.ant-form-item-has-error .ant-form-item-children-icon,.ant-form-item-has-feedback.ant-form-item-has-success .ant-form-item-children-icon,.ant-form-item-has-feedback.ant-form-item-has-warning .ant-form-item-children-icon,.ant-form-item-has-feedback.ant-form-item-is-validating .ant-form-item-children-icon{position:absolute;top:50%;right:0;z-index:1;width:32px;height:20px;margin-top:-10px;font-size:14px;line-height:20px;text-align:center;visibility:visible;animation:zoomIn .3s cubic-bezier(.12,.4,.29,1.46);pointer-events:none}.ant-form-item-has-success.ant-form-item-has-feedback .ant-form-item-children-icon{color:#52c41a;animation-name:diffZoomIn1!important}.ant-form-item-has-warning .ant-form-item-split{color:#faad14}.ant-form-item-has-warning :not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper,.ant-form-item-has-warning :not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:hover,.ant-form-item-has-warning :not(.ant-input-disabled):not(.ant-input-borderless).ant-input,.ant-form-item-has-warning :not(.ant-input-disabled):not(.ant-input-borderless).ant-input:hover{background-color:#fff;border-color:#faad14}.ant-form-item-has-warning .ant-calendar-picker-open .ant-calendar-picker-input,.ant-form-item-has-warning :not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper-focused,.ant-form-item-has-warning :not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:focus,.ant-form-item-has-warning :not(.ant-input-disabled):not(.ant-input-borderless).ant-input-focused,.ant-form-item-has-warning :not(.ant-input-disabled):not(.ant-input-borderless).ant-input:focus{border-color:#ffc53d;border-right-width:1px!important;outline:0;box-shadow:0 0 0 2px #faad1433}.ant-form-item-has-warning .ant-input-prefix{color:#faad14}.ant-form-item-has-warning .ant-input-group-addon{color:#faad14;border-color:#faad14}.ant-form-item-has-warning .has-feedback{color:#faad14}.ant-form-item-has-warning.ant-form-item-has-feedback .ant-form-item-children-icon{color:#faad14;animation-name:diffZoomIn3!important}.ant-form-item-has-warning .ant-select:not(.ant-select-disabled):not(.ant-select-customize-input) .ant-select-selector{background-color:#fff;border-color:#faad14!important}.ant-form-item-has-warning .ant-select:not(.ant-select-disabled):not(.ant-select-customize-input).ant-select-focused .ant-select-selector,.ant-form-item-has-warning .ant-select:not(.ant-select-disabled):not(.ant-select-customize-input).ant-select-open .ant-select-selector{border-color:#ffc53d;border-right-width:1px!important;outline:0;box-shadow:0 0 0 2px #faad1433}.ant-form-item-has-warning .ant-input-number,.ant-form-item-has-warning .ant-picker{background-color:#fff;border-color:#faad14}.ant-form-item-has-warning .ant-input-number-focused,.ant-form-item-has-warning .ant-input-number:focus,.ant-form-item-has-warning .ant-picker-focused,.ant-form-item-has-warning .ant-picker:focus{border-color:#ffc53d;border-right-width:1px!important;outline:0;box-shadow:0 0 0 2px #faad1433}.ant-form-item-has-warning .ant-input-number:not([disabled]):hover,.ant-form-item-has-warning .ant-picker:not([disabled]):hover{background-color:#fff;border-color:#faad14}.ant-form-item-has-warning .ant-cascader-picker:focus .ant-cascader-input{border-color:#ffc53d;border-right-width:1px!important;outline:0;box-shadow:0 0 0 2px #faad1433}.ant-form-item-has-error .ant-form-item-split{color:#ff4d4f}.ant-form-item-has-error :not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper,.ant-form-item-has-error :not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:hover,.ant-form-item-has-error :not(.ant-input-disabled):not(.ant-input-borderless).ant-input,.ant-form-item-has-error :not(.ant-input-disabled):not(.ant-input-borderless).ant-input:hover{background-color:#fff;border-color:#ff4d4f}.ant-form-item-has-error .ant-calendar-picker-open .ant-calendar-picker-input,.ant-form-item-has-error :not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper-focused,.ant-form-item-has-error :not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:focus,.ant-form-item-has-error :not(.ant-input-disabled):not(.ant-input-borderless).ant-input-focused,.ant-form-item-has-error :not(.ant-input-disabled):not(.ant-input-borderless).ant-input:focus{border-color:#ff7875;border-right-width:1px!important;outline:0;box-shadow:0 0 0 2px #ff4d4f33}.ant-form-item-has-error .ant-input-prefix{color:#ff4d4f}.ant-form-item-has-error .ant-input-group-addon{color:#ff4d4f;border-color:#ff4d4f}.ant-form-item-has-error .has-feedback{color:#ff4d4f}.ant-form-item-has-error.ant-form-item-has-feedback .ant-form-item-children-icon{color:#ff4d4f;animation-name:diffZoomIn2!important}.ant-form-item-has-error .ant-select:not(.ant-select-disabled):not(.ant-select-customize-input) .ant-select-selector{background-color:#fff;border-color:#ff4d4f!important}.ant-form-item-has-error .ant-select:not(.ant-select-disabled):not(.ant-select-customize-input).ant-select-focused .ant-select-selector,.ant-form-item-has-error .ant-select:not(.ant-select-disabled):not(.ant-select-customize-input).ant-select-open .ant-select-selector{border-color:#ff7875;border-right-width:1px!important;outline:0;box-shadow:0 0 0 2px #ff4d4f33}.ant-form-item-has-error .ant-input-group-addon .ant-select.ant-select-single:not(.ant-select-customize-input) .ant-select-selector{background-color:inherit;border:0;box-shadow:none}.ant-form-item-has-error .ant-select.ant-select-auto-complete .ant-input:focus{border-color:#ff4d4f}.ant-form-item-has-error .ant-input-number,.ant-form-item-has-error .ant-picker{background-color:#fff;border-color:#ff4d4f}.ant-form-item-has-error .ant-input-number-focused,.ant-form-item-has-error .ant-input-number:focus,.ant-form-item-has-error .ant-picker-focused,.ant-form-item-has-error .ant-picker:focus{border-color:#ff7875;border-right-width:1px!important;outline:0;box-shadow:0 0 0 2px #ff4d4f33}.ant-form-item-has-error .ant-input-number:not([disabled]):hover,.ant-form-item-has-error .ant-mention-wrapper .ant-mention-editor,.ant-form-item-has-error .ant-mention-wrapper .ant-mention-editor:not([disabled]):hover,.ant-form-item-has-error .ant-picker:not([disabled]):hover{background-color:#fff;border-color:#ff4d4f}.ant-form-item-has-error .ant-mention-wrapper .ant-mention-editor:not([disabled]):focus,.ant-form-item-has-error .ant-mention-wrapper.ant-mention-active:not([disabled]) .ant-mention-editor{border-color:#ff7875;border-right-width:1px!important;outline:0;box-shadow:0 0 0 2px #ff4d4f33}.ant-form-item-has-error .ant-cascader-picker:hover .ant-cascader-picker-label:hover+.ant-cascader-input.ant-input{border-color:#ff4d4f}.ant-form-item-has-error .ant-cascader-picker:focus .ant-cascader-input{background-color:#fff;border-color:#ff7875;border-right-width:1px!important;outline:0;box-shadow:0 0 0 2px #ff4d4f33}.ant-form-item-has-error .ant-transfer-list{border-color:#ff4d4f}.ant-form-item-has-error .ant-transfer-list-search:not([disabled]){border-color:#d9d9d9}.ant-form-item-has-error .ant-transfer-list-search:not([disabled]):hover{border-color:#40a9ff;border-right-width:1px!important}.ant-input-rtl .ant-form-item-has-error .ant-transfer-list-search:not([disabled]):hover{border-right-width:0;border-left-width:1px!important}.ant-form-item-has-error .ant-transfer-list-search:not([disabled]):focus{border-color:#40a9ff;border-right-width:1px!important;outline:0;box-shadow:0 0 0 2px #1890ff33}.ant-input-rtl .ant-form-item-has-error .ant-transfer-list-search:not([disabled]):focus{border-right-width:0;border-left-width:1px!important}.ant-form-item-has-error .ant-radio-button-wrapper{border-color:#ff4d4f!important}.ant-form-item-has-error .ant-radio-button-wrapper:not(:first-child):before{background-color:#ff4d4f}.ant-form-item-is-validating.ant-form-item-has-feedback .ant-form-item-children-icon{display:inline-block;color:#1890ff}.ant-form{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum"}.ant-form legend{display:block;width:100%;margin-bottom:20px;padding:0;color:#00000073;font-size:16px;line-height:inherit;border:0;border-bottom:1px solid #d9d9d9}.ant-form label{font-size:14px}.ant-form input[type=search]{box-sizing:border-box}.ant-form input[type=checkbox],.ant-form input[type=radio]{line-height:normal}.ant-form input[type=file]{display:block}.ant-form input[type=range]{display:block;width:100%}.ant-form select[multiple],.ant-form select[size]{height:auto}.ant-form input[type=checkbox]:focus,.ant-form input[type=file]:focus,.ant-form input[type=radio]:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.ant-form output{display:block;padding-top:15px;color:#000000d9;font-size:14px;line-height:1.5715}.ant-form .ant-form-text{display:inline-block;padding-right:8px}.ant-form-small .ant-form-item-label>label{height:24px}.ant-form-small .ant-form-item-control-input{min-height:24px}.ant-form-large .ant-form-item-label>label{height:40px}.ant-form-large .ant-form-item-control-input{min-height:40px}.ant-form-item{box-sizing:border-box;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";margin:0 0 24px;vertical-align:top}.ant-form-item-with-help{margin-bottom:0}.ant-form-item-hidden,.ant-form-item-hidden.ant-row{display:none}.ant-form-item-label{display:inline-block;flex-grow:0;overflow:hidden;white-space:nowrap;text-align:right;vertical-align:middle}.ant-form-item-label-left{text-align:left}.ant-form-item-label>label{position:relative;display:inline-flex;align-items:center;max-width:100%;height:32px;color:#000000d9;font-size:14px}.ant-form-item-label>label>.anticon{font-size:14px;vertical-align:top}.ant-form-item-label>label.ant-form-item-required:not(.ant-form-item-required-mark-optional):before{display:inline-block;margin-right:4px;color:#ff4d4f;font-size:14px;font-family:SimSun,sans-serif;line-height:1;content:"*"}.ant-form-hide-required-mark .ant-form-item-label>label.ant-form-item-required:not(.ant-form-item-required-mark-optional):before{display:none}.ant-form-item-label>label .ant-form-item-optional{display:inline-block;margin-left:4px;color:#00000073}.ant-form-hide-required-mark .ant-form-item-label>label .ant-form-item-optional{display:none}.ant-form-item-label>label .ant-form-item-tooltip{color:#00000073;cursor:help;writing-mode:horizontal-tb;margin-inline-start:4px}.ant-form-item-label>label:after{content:":";position:relative;top:-.5px;margin:0 8px 0 2px}.ant-form-item-label>label.ant-form-item-no-colon:after{content:" "}.ant-form-item-control{display:flex;flex-direction:column;flex-grow:1}.ant-form-item-control:first-child:not([class^=ant-col-]):not([class*=" ant-col-"]){width:100%}.ant-form-item-control-input{position:relative;display:flex;align-items:center;min-height:32px}.ant-form-item-control-input-content{flex:auto;max-width:100%}.ant-form-item-explain,.ant-form-item-extra{clear:both;min-height:24px;color:#00000073;font-size:14px;line-height:1.5715;transition:color .3s cubic-bezier(.215,.61,.355,1)}.ant-form-item .ant-input-textarea-show-count:after{margin-bottom:-22px}.ant-show-help-appear,.ant-show-help-enter,.ant-show-help-leave{animation-duration:.3s;animation-fill-mode:both;animation-play-state:paused}.ant-show-help-appear.ant-show-help-appear-active,.ant-show-help-enter.ant-show-help-enter-active{animation-name:antShowHelpIn;animation-play-state:running}.ant-show-help-leave.ant-show-help-leave-active{animation-name:antShowHelpOut;animation-play-state:running;pointer-events:none}.ant-show-help-appear,.ant-show-help-enter{opacity:0}.ant-show-help-appear,.ant-show-help-enter,.ant-show-help-leave{animation-timing-function:cubic-bezier(.645,.045,.355,1)}@keyframes antShowHelpIn{0%{transform:translateY(-5px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes antShowHelpOut{to{transform:translateY(-5px);opacity:0}}@keyframes diffZoomIn1{0%{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}@keyframes diffZoomIn2{0%{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}@keyframes diffZoomIn3{0%{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}.ant-form-rtl{direction:rtl}.ant-form-rtl .ant-form-item-label{text-align:left}.ant-form-rtl .ant-form-item-label>label.ant-form-item-required:before{margin-right:0;margin-left:4px}.ant-form-rtl .ant-form-item-label>label:after{margin:0 2px 0 8px}.ant-form-rtl .ant-form-item-label>label .ant-form-item-optional{margin-right:4px;margin-left:0}.ant-col-rtl .ant-form-item-control:first-child{width:100%}.ant-form-rtl .ant-form-item-has-feedback .ant-input{padding-right:11px;padding-left:24px}.ant-form-rtl .ant-form-item-has-feedback .ant-input-affix-wrapper .ant-input-suffix{padding-right:11px;padding-left:18px}.ant-form-rtl .ant-form-item-has-feedback .ant-input-affix-wrapper .ant-input{padding:0}.ant-form-rtl .ant-form-item-has-feedback .ant-input-search:not(.ant-input-search-enter-button) .ant-input-suffix{right:auto;left:28px}.ant-form-rtl .ant-form-item-has-feedback .ant-input-number{padding-left:18px}.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-group-addon)>.ant-select .ant-select-arrow,.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-group-addon)>.ant-select .ant-select-clear,.ant-form-rtl .ant-form-item-has-feedback>.ant-select .ant-select-arrow,.ant-form-rtl .ant-form-item-has-feedback>.ant-select .ant-select-clear{right:auto;left:32px}.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-group-addon)>.ant-select .ant-select-selection-selected-value,.ant-form-rtl .ant-form-item-has-feedback>.ant-select .ant-select-selection-selected-value{padding-right:0;padding-left:42px}.ant-form-rtl .ant-form-item-has-feedback .ant-cascader-picker-arrow{margin-right:0;margin-left:19px}.ant-form-rtl .ant-form-item-has-feedback .ant-cascader-picker-clear{right:auto;left:32px}.ant-form-rtl .ant-form-item-has-feedback .ant-picker,.ant-form-rtl .ant-form-item-has-feedback .ant-picker-large{padding-right:11px;padding-left:29.2px}.ant-form-rtl .ant-form-item-has-feedback .ant-picker-small{padding-right:7px;padding-left:25.2px}.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-has-error .ant-form-item-children-icon,.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-has-success .ant-form-item-children-icon,.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-has-warning .ant-form-item-children-icon,.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-is-validating .ant-form-item-children-icon{right:auto;left:0}.ant-form-rtl.ant-form-inline .ant-form-item{margin-right:0;margin-left:16px}.ant-list{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:relative}.ant-list *{outline:none}.ant-list-pagination{margin-top:24px;text-align:right}.ant-list-pagination .ant-pagination-options{text-align:left}.ant-list-more{margin-top:12px;text-align:center}.ant-list-more button{padding-right:32px;padding-left:32px}.ant-list-spin{min-height:40px;text-align:center}.ant-list-empty-text{padding:16px;color:#00000040;font-size:14px;text-align:center}.ant-list-items{margin:0;padding:0;list-style:none}.ant-list-item{display:flex;align-items:center;justify-content:space-between;padding:12px 0;color:#000000d9}.ant-list-item-meta{display:flex;flex:1;align-items:flex-start;max-width:100%}.ant-list-item-meta-avatar{margin-right:16px}.ant-list-item-meta-content{flex:1 0;width:0;color:#000000d9}.ant-list-item-meta-title{margin-bottom:4px;color:#000000d9;font-size:14px;line-height:1.5715}.ant-list-item-meta-title>a{color:#000000d9;transition:all .3s}.ant-list-item-meta-title>a:hover{color:#1890ff}.ant-list-item-meta-description{color:#00000073;font-size:14px;line-height:1.5715}.ant-list-item-action{flex:0 0 auto;margin-left:48px;padding:0;font-size:0;list-style:none}.ant-list-item-action>li{position:relative;display:inline-block;padding:0 8px;color:#00000073;font-size:14px;line-height:1.5715;text-align:center}.ant-list-item-action>li:first-child{padding-left:0}.ant-list-item-action-split{position:absolute;top:50%;right:0;width:1px;height:14px;margin-top:-7px;background-color:#f0f0f0}.ant-list-footer,.ant-list-header{background:#0000}.ant-list-footer,.ant-list-header{padding-top:12px;padding-bottom:12px}.ant-list-empty{padding:16px 0;color:#00000073;font-size:12px;text-align:center}.ant-list-split .ant-list-item{border-bottom:1px solid #f0f0f0}.ant-list-split .ant-list-item:last-child{border-bottom:none}.ant-list-split .ant-list-header{border-bottom:1px solid #f0f0f0}.ant-list-split.ant-list-empty .ant-list-footer{border-top:1px solid #f0f0f0}.ant-list-loading .ant-list-spin-nested-loading{min-height:32px}.ant-list-split.ant-list-something-after-last-item .ant-spin-container>.ant-list-items>.ant-list-item:last-child{border-bottom:1px solid #f0f0f0}.ant-list-lg .ant-list-item{padding:16px 24px}.ant-list-sm .ant-list-item{padding:8px 16px}.ant-list-vertical .ant-list-item{align-items:normal}.ant-list-vertical .ant-list-item-main{display:block;flex:1}.ant-list-vertical .ant-list-item-extra{margin-left:40px}.ant-list-vertical .ant-list-item-meta{margin-bottom:16px}.ant-list-vertical .ant-list-item-meta-title{margin-bottom:12px;color:#000000d9;font-size:16px;line-height:24px}.ant-list-vertical .ant-list-item-action{margin-top:16px;margin-left:auto}.ant-list-vertical .ant-list-item-action>li{padding:0 16px}.ant-list-vertical .ant-list-item-action>li:first-child{padding-left:0}.ant-list-grid .ant-col>.ant-list-item{display:block;max-width:100%;margin-bottom:16px;padding-top:0;padding-bottom:0;border-bottom:none}.ant-list-item-no-flex{display:block}.ant-list:not(.ant-list-vertical) .ant-list-item-no-flex .ant-list-item-action{float:right}.ant-list-bordered{border:1px solid #d9d9d9;border-radius:2px}.ant-list-bordered .ant-list-footer,.ant-list-bordered .ant-list-header,.ant-list-bordered .ant-list-item{padding-right:24px;padding-left:24px}.ant-list-bordered .ant-list-pagination{margin:16px 24px}.ant-list-bordered.ant-list-sm .ant-list-footer,.ant-list-bordered.ant-list-sm .ant-list-header,.ant-list-bordered.ant-list-sm .ant-list-item{padding:8px 16px}.ant-list-bordered.ant-list-lg .ant-list-footer,.ant-list-bordered.ant-list-lg .ant-list-header,.ant-list-bordered.ant-list-lg .ant-list-item{padding:16px 24px}@media screen and (max-width: 768px){.ant-list-item-action,.ant-list-vertical .ant-list-item-extra{margin-left:24px}}@media screen and (max-width: 576px){.ant-list-item{flex-wrap:wrap}.ant-list-item-action{margin-left:12px}.ant-list-vertical .ant-list-item{flex-wrap:wrap-reverse}.ant-list-vertical .ant-list-item-main{min-width:220px}.ant-list-vertical .ant-list-item-extra{margin:auto auto 16px}}.ant-list-rtl{direction:rtl;text-align:right}.ant-list-rtl .ReactVirtualized__List .ant-list-item{direction:rtl}.ant-list-rtl .ant-list-pagination{text-align:left}.ant-list-rtl .ant-list-item-meta-avatar{margin-right:0;margin-left:16px}.ant-list-rtl .ant-list-item-action{margin-right:48px;margin-left:0}.ant-list.ant-list-rtl .ant-list-item-action>li:first-child{padding-right:0;padding-left:16px}.ant-list-rtl .ant-list-item-action-split{right:auto;left:0}.ant-list-rtl.ant-list-vertical .ant-list-item-extra{margin-right:40px;margin-left:0}.ant-list-rtl.ant-list-vertical .ant-list-item-action{margin-right:auto}.ant-list-rtl .ant-list-vertical .ant-list-item-action>li:first-child{padding-right:0;padding-left:16px}.ant-list-rtl .ant-list:not(.ant-list-vertical) .ant-list-item-no-flex .ant-list-item-action{float:left}@media screen and (max-width: 768px){.ant-list-rtl .ant-list-item-action,.ant-list-rtl .ant-list-vertical .ant-list-item-extra{margin-right:24px;margin-left:0}}@media screen and (max-width: 576px){.ant-list-rtl .ant-list-item-action{margin-right:22px;margin-left:0}.ant-list-rtl.ant-list-vertical .ant-list-item-extra{margin:auto auto 16px}}nz-list,nz-list nz-spin,nz-list-empty,nz-list-footer,nz-list-header,nz-list-item-extra,nz-list-pagination{display:block}.ant-menu-item-danger.ant-menu-item,.ant-menu-item-danger.ant-menu-item-active,.ant-menu-item-danger.ant-menu-item:hover{color:#ff4d4f}.ant-menu-item-danger.ant-menu-item:active{background:#fff1f0}.ant-menu-item-danger.ant-menu-item-selected,.ant-menu-item-danger.ant-menu-item-selected>a,.ant-menu-item-danger.ant-menu-item-selected>a:hover{color:#ff4d4f}.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-danger.ant-menu-item-selected{background-color:#fff1f0}.ant-menu-inline .ant-menu-item-danger.ant-menu-item:after{border-right-color:#ff4d4f}.ant-menu-dark .ant-menu-item-danger.ant-menu-item,.ant-menu-dark .ant-menu-item-danger.ant-menu-item:hover,.ant-menu-dark .ant-menu-item-danger.ant-menu-item>a{color:#ff4d4f}.ant-menu-dark.ant-menu-dark:not(.ant-menu-horizontal) .ant-menu-item-danger.ant-menu-item-selected{color:#fff;background-color:#ff4d4f}.ant-menu{box-sizing:border-box;font-variant:tabular-nums;line-height:1.5715;font-feature-settings:"tnum";margin:0;padding:0;color:#000000d9;font-size:14px;line-height:0;text-align:left;list-style:none;background:#fff;outline:none;box-shadow:0 3px 6px -4px #0000001f,0 6px 16px 0 #00000014,0 9px 28px 8px #0000000d;transition:background .3s,width .3s cubic-bezier(.2,0,0,1) 0s}.ant-menu:after,.ant-menu:before{display:table;content:""}.ant-menu:after{clear:both}.ant-menu.ant-menu-root:focus-visible{box-shadow:0 0 0 2px #1890ff33}.ant-menu ol,.ant-menu ul{margin:0;padding:0;list-style:none}.ant-menu-overflow{display:flex}.ant-menu-overflow-item{flex:none}.ant-menu-hidden,.ant-menu-submenu-hidden{display:none}.ant-menu-item-group-title{height:1.5715;padding:8px 16px;color:#00000073;font-size:14px;line-height:1.5715;transition:all .3s}.ant-menu-horizontal .ant-menu-submenu{transition:border-color .3s cubic-bezier(.645,.045,.355,1),background .3s cubic-bezier(.645,.045,.355,1)}.ant-menu-submenu,.ant-menu-submenu-inline{transition:border-color .3s cubic-bezier(.645,.045,.355,1),background .3s cubic-bezier(.645,.045,.355,1),padding .15s cubic-bezier(.645,.045,.355,1)}.ant-menu-submenu-selected{color:#1890ff}.ant-menu-item:active,.ant-menu-submenu-title:active{background:#e6f7ff}.ant-menu-submenu .ant-menu-sub{cursor:auto;transition:background .3s cubic-bezier(.645,.045,.355,1),padding .3s cubic-bezier(.645,.045,.355,1)}.ant-menu-title-content{transition:color .3s}.ant-menu-item a{color:#000000d9}.ant-menu-item a:hover{color:#1890ff}.ant-menu-item a:before{position:absolute;top:0;right:0;bottom:0;left:0;background-color:initial;content:""}.ant-menu-item>.ant-badge a{color:#000000d9}.ant-menu-item>.ant-badge a:hover{color:#1890ff}.ant-menu-item-divider{height:1px;overflow:hidden;line-height:0;background-color:#f0f0f0}.ant-menu-horizontal .ant-menu-item,.ant-menu-horizontal .ant-menu-submenu{margin-top:-1px}.ant-menu-horizontal>.ant-menu-item-active,.ant-menu-horizontal>.ant-menu-item:hover,.ant-menu-horizontal>.ant-menu-submenu .ant-menu-submenu-title:hover{background-color:initial}.ant-menu-item-selected,.ant-menu-item-selected a,.ant-menu-item-selected a:hover{color:#1890ff}.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected{background-color:#e6f7ff}.ant-menu-inline,.ant-menu-vertical,.ant-menu-vertical-left{border-right:1px solid #f0f0f0}.ant-menu-vertical-right{border-left:1px solid #f0f0f0}.ant-menu-vertical-left.ant-menu-sub,.ant-menu-vertical-right.ant-menu-sub,.ant-menu-vertical.ant-menu-sub{min-width:160px;max-height:calc(100vh - 100px);padding:0;overflow:hidden;border-right:0}.ant-menu-vertical-left.ant-menu-sub:not([class*=-active]),.ant-menu-vertical-right.ant-menu-sub:not([class*=-active]),.ant-menu-vertical.ant-menu-sub:not([class*=-active]){overflow-x:hidden;overflow-y:auto}.ant-menu-vertical-left.ant-menu-sub .ant-menu-item,.ant-menu-vertical-right.ant-menu-sub .ant-menu-item,.ant-menu-vertical.ant-menu-sub .ant-menu-item{left:0;margin-left:0;border-right:0}.ant-menu-vertical-left.ant-menu-sub .ant-menu-item:after,.ant-menu-vertical-right.ant-menu-sub .ant-menu-item:after,.ant-menu-vertical.ant-menu-sub .ant-menu-item:after{border-right:0}.ant-menu-vertical-left.ant-menu-sub>.ant-menu-item,.ant-menu-vertical-left.ant-menu-sub>.ant-menu-submenu,.ant-menu-vertical-right.ant-menu-sub>.ant-menu-item,.ant-menu-vertical-right.ant-menu-sub>.ant-menu-submenu,.ant-menu-vertical.ant-menu-sub>.ant-menu-item,.ant-menu-vertical.ant-menu-sub>.ant-menu-submenu{transform-origin:0 0}.ant-menu-horizontal.ant-menu-sub{min-width:114px}.ant-menu-horizontal .ant-menu-item,.ant-menu-horizontal .ant-menu-submenu-title{transition:border-color .3s,background .3s}.ant-menu-item,.ant-menu-submenu-title{position:relative;display:block;margin:0;padding:0 20px;white-space:nowrap;cursor:pointer;transition:border-color .3s,background .3s,padding .3s cubic-bezier(.645,.045,.355,1)}.ant-menu-item .ant-menu-item-icon,.ant-menu-item .anticon,.ant-menu-submenu-title .ant-menu-item-icon,.ant-menu-submenu-title .anticon{min-width:14px;font-size:14px;transition:font-size .15s cubic-bezier(.215,.61,.355,1),margin .3s cubic-bezier(.645,.045,.355,1),color .3s}.ant-menu-item .ant-menu-item-icon+span,.ant-menu-item .anticon+span,.ant-menu-submenu-title .ant-menu-item-icon+span,.ant-menu-submenu-title .anticon+span{margin-left:10px;opacity:1;transition:opacity .3s cubic-bezier(.645,.045,.355,1),margin .3s,color .3s}.ant-menu-item .ant-menu-item-icon.svg,.ant-menu-submenu-title .ant-menu-item-icon.svg{vertical-align:-.125em}.ant-menu-item.ant-menu-item-only-child>.ant-menu-item-icon,.ant-menu-item.ant-menu-item-only-child>.anticon,.ant-menu-submenu-title.ant-menu-item-only-child>.ant-menu-item-icon,.ant-menu-submenu-title.ant-menu-item-only-child>.anticon{margin-right:0}.ant-menu-item:focus-visible,.ant-menu-submenu-title:focus-visible{box-shadow:0 0 0 2px #1890ff33}.ant-menu>.ant-menu-item-divider{height:1px;margin:1px 0;padding:0;overflow:hidden;line-height:0;background-color:#f0f0f0}.ant-menu-submenu-popup{position:absolute;z-index:1050;background:#0000;border-radius:2px;box-shadow:none;transform-origin:0 0}.ant-menu-submenu-popup:before{position:absolute;top:-7px;right:0;bottom:0;left:0;z-index:-1;width:100%;height:100%;opacity:.0001;content:" "}.ant-menu-submenu-placement-rightTop:before{top:0;left:-7px}.ant-menu-submenu>.ant-menu{background-color:#fff;border-radius:2px}.ant-menu-submenu>.ant-menu-submenu-title:after{transition:transform .3s cubic-bezier(.645,.045,.355,1)}.ant-menu-submenu-popup>.ant-menu{background-color:#fff}.ant-menu-submenu-arrow,.ant-menu-submenu-expand-icon{position:absolute;top:50%;right:16px;width:10px;color:#000000d9;transform:translateY(-50%);transition:transform .3s cubic-bezier(.645,.045,.355,1)}.ant-menu-submenu-arrow:after,.ant-menu-submenu-arrow:before{position:absolute;width:6px;height:1.5px;background-color:currentColor;border-radius:2px;transition:background .3s cubic-bezier(.645,.045,.355,1),transform .3s cubic-bezier(.645,.045,.355,1),top .3s cubic-bezier(.645,.045,.355,1),color .3s cubic-bezier(.645,.045,.355,1);content:""}.ant-menu-submenu-arrow:before{transform:rotate(45deg) translateY(-2.5px)}.ant-menu-submenu-arrow:after{transform:rotate(-45deg) translateY(2.5px)}.ant-menu-submenu:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow,.ant-menu-submenu:hover>.ant-menu-submenu-title>.ant-menu-submenu-expand-icon{color:#1890ff}.ant-menu-inline-collapsed .ant-menu-submenu-arrow:before,.ant-menu-submenu-inline .ant-menu-submenu-arrow:before{transform:rotate(-45deg) translateX(2.5px)}.ant-menu-inline-collapsed .ant-menu-submenu-arrow:after,.ant-menu-submenu-inline .ant-menu-submenu-arrow:after{transform:rotate(45deg) translateX(-2.5px)}.ant-menu-submenu-horizontal .ant-menu-submenu-arrow{display:none}.ant-menu-submenu-open.ant-menu-submenu-inline>.ant-menu-submenu-title>.ant-menu-submenu-arrow{transform:translateY(-2px)}.ant-menu-submenu-open.ant-menu-submenu-inline>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after{transform:rotate(-45deg) translateX(-2.5px)}.ant-menu-submenu-open.ant-menu-submenu-inline>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before{transform:rotate(45deg) translateX(2.5px)}.ant-menu-vertical .ant-menu-submenu-selected,.ant-menu-vertical-left .ant-menu-submenu-selected,.ant-menu-vertical-right .ant-menu-submenu-selected{color:#1890ff}.ant-menu-horizontal{line-height:46px;border:0;border-bottom:1px solid #f0f0f0;box-shadow:none}.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu{margin-top:-1px;margin-bottom:0;padding:0 20px}.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item-active,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item-open,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item-selected,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item:hover,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu-active,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu-open,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu-selected,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu:hover{color:#1890ff}.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item-active:after,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item-open:after,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item-selected:after,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-item:hover:after,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu-active:after,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu-open:after,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu-selected:after,.ant-menu-horizontal:not(.ant-menu-dark)>.ant-menu-submenu:hover:after{border-bottom:2px solid #1890ff}.ant-menu-horizontal>.ant-menu-item,.ant-menu-horizontal>.ant-menu-submenu{position:relative;top:1px;display:inline-block;vertical-align:bottom}.ant-menu-horizontal>.ant-menu-item:after,.ant-menu-horizontal>.ant-menu-submenu:after{position:absolute;right:20px;bottom:0;left:20px;border-bottom:2px solid #0000;transition:border-color .3s cubic-bezier(.645,.045,.355,1);content:""}.ant-menu-horizontal>.ant-menu-submenu>.ant-menu-submenu-title{padding:0}.ant-menu-horizontal>.ant-menu-item a{color:#000000d9}.ant-menu-horizontal>.ant-menu-item a:hover{color:#1890ff}.ant-menu-horizontal>.ant-menu-item a:before{bottom:-2px}.ant-menu-horizontal>.ant-menu-item-selected a{color:#1890ff}.ant-menu-horizontal:after{display:block;clear:both;height:0;content:"\\20"}.ant-menu-inline .ant-menu-item,.ant-menu-vertical .ant-menu-item,.ant-menu-vertical-left .ant-menu-item,.ant-menu-vertical-right .ant-menu-item{position:relative}.ant-menu-inline .ant-menu-item:after,.ant-menu-vertical .ant-menu-item:after,.ant-menu-vertical-left .ant-menu-item:after,.ant-menu-vertical-right .ant-menu-item:after{position:absolute;top:0;right:0;bottom:0;border-right:3px solid #1890ff;transform:scaleY(.0001);opacity:0;transition:transform .15s cubic-bezier(.215,.61,.355,1),opacity .15s cubic-bezier(.215,.61,.355,1);content:""}.ant-menu-inline .ant-menu-item,.ant-menu-inline .ant-menu-submenu-title,.ant-menu-vertical .ant-menu-item,.ant-menu-vertical .ant-menu-submenu-title,.ant-menu-vertical-left .ant-menu-item,.ant-menu-vertical-left .ant-menu-submenu-title,.ant-menu-vertical-right .ant-menu-item,.ant-menu-vertical-right .ant-menu-submenu-title{height:40px;margin-top:4px;margin-bottom:4px;padding:0 16px;overflow:hidden;line-height:40px;text-overflow:ellipsis}.ant-menu-inline .ant-menu-submenu,.ant-menu-vertical .ant-menu-submenu,.ant-menu-vertical-left .ant-menu-submenu,.ant-menu-vertical-right .ant-menu-submenu{padding-bottom:.02px}.ant-menu-inline .ant-menu-item:not(:last-child),.ant-menu-vertical .ant-menu-item:not(:last-child),.ant-menu-vertical-left .ant-menu-item:not(:last-child),.ant-menu-vertical-right .ant-menu-item:not(:last-child){margin-bottom:8px}.ant-menu-inline>.ant-menu-item,.ant-menu-inline>.ant-menu-submenu>.ant-menu-submenu-title,.ant-menu-vertical-left>.ant-menu-item,.ant-menu-vertical-left>.ant-menu-submenu>.ant-menu-submenu-title,.ant-menu-vertical-right>.ant-menu-item,.ant-menu-vertical-right>.ant-menu-submenu>.ant-menu-submenu-title,.ant-menu-vertical>.ant-menu-item,.ant-menu-vertical>.ant-menu-submenu>.ant-menu-submenu-title{height:40px;line-height:40px}.ant-menu-vertical .ant-menu-item-group-list .ant-menu-submenu-title,.ant-menu-vertical .ant-menu-submenu-title{padding-right:34px}.ant-menu-inline{width:100%}.ant-menu-inline .ant-menu-item-selected:after,.ant-menu-inline .ant-menu-selected:after{transform:scaleY(1);opacity:1;transition:transform .15s cubic-bezier(.645,.045,.355,1),opacity .15s cubic-bezier(.645,.045,.355,1)}.ant-menu-inline .ant-menu-item,.ant-menu-inline .ant-menu-submenu-title{width:calc(100% + 1px)}.ant-menu-inline .ant-menu-item-group-list .ant-menu-submenu-title,.ant-menu-inline .ant-menu-submenu-title{padding-right:34px}.ant-menu-inline.ant-menu-root .ant-menu-item,.ant-menu-inline.ant-menu-root .ant-menu-submenu-title{display:flex;align-items:center;transition:border-color .3s,background .3s,padding .1s cubic-bezier(.215,.61,.355,1)}.ant-menu-inline.ant-menu-root .ant-menu-item>.ant-menu-title-content,.ant-menu-inline.ant-menu-root .ant-menu-submenu-title>.ant-menu-title-content{flex:auto;min-width:0;overflow:hidden;text-overflow:ellipsis}.ant-menu-inline.ant-menu-root .ant-menu-item>*,.ant-menu-inline.ant-menu-root .ant-menu-submenu-title>*{flex:none}.ant-menu.ant-menu-inline-collapsed{width:80px}.ant-menu.ant-menu-inline-collapsed>.ant-menu-item,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-item,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-submenu>.ant-menu-submenu-title,.ant-menu.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title{left:0;padding:0 calc(50% - 16px / 2);text-overflow:clip}.ant-menu.ant-menu-inline-collapsed>.ant-menu-item .ant-menu-submenu-arrow,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-item .ant-menu-submenu-arrow,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-submenu>.ant-menu-submenu-title .ant-menu-submenu-arrow,.ant-menu.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title .ant-menu-submenu-arrow{opacity:0}.ant-menu.ant-menu-inline-collapsed>.ant-menu-item .ant-menu-item-icon,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item .anticon,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-item .ant-menu-item-icon,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-item .anticon,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-submenu>.ant-menu-submenu-title .ant-menu-item-icon,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-submenu>.ant-menu-submenu-title .anticon,.ant-menu.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title .ant-menu-item-icon,.ant-menu.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title .anticon{margin:0;font-size:16px;line-height:40px}.ant-menu.ant-menu-inline-collapsed>.ant-menu-item .ant-menu-item-icon+span,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item .anticon+span,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-item .ant-menu-item-icon+span,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-item .anticon+span,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-submenu>.ant-menu-submenu-title .ant-menu-item-icon+span,.ant-menu.ant-menu-inline-collapsed>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-submenu>.ant-menu-submenu-title .anticon+span,.ant-menu.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title .ant-menu-item-icon+span,.ant-menu.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title .anticon+span{display:inline-block;opacity:0}.ant-menu.ant-menu-inline-collapsed .ant-menu-item-icon,.ant-menu.ant-menu-inline-collapsed .anticon{display:inline-block}.ant-menu.ant-menu-inline-collapsed-tooltip{pointer-events:none}.ant-menu.ant-menu-inline-collapsed-tooltip .ant-menu-item-icon,.ant-menu.ant-menu-inline-collapsed-tooltip .anticon{display:none}.ant-menu.ant-menu-inline-collapsed-tooltip a{color:#ffffffd9}.ant-menu.ant-menu-inline-collapsed .ant-menu-item-group-title{padding-right:4px;padding-left:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ant-menu-item-group-list{margin:0;padding:0}.ant-menu-item-group-list .ant-menu-item,.ant-menu-item-group-list .ant-menu-submenu-title{padding:0 16px 0 28px}.ant-menu-root.ant-menu-inline,.ant-menu-root.ant-menu-vertical,.ant-menu-root.ant-menu-vertical-left,.ant-menu-root.ant-menu-vertical-right{box-shadow:none}.ant-menu-root.ant-menu-inline-collapsed .ant-menu-item>.ant-menu-inline-collapsed-noicon,.ant-menu-root.ant-menu-inline-collapsed .ant-menu-submenu .ant-menu-submenu-title>.ant-menu-inline-collapsed-noicon{font-size:16px;text-align:center}.ant-menu-sub.ant-menu-inline{padding:0;background:#fafafa;border-radius:0;box-shadow:none}.ant-menu-sub.ant-menu-inline>.ant-menu-item,.ant-menu-sub.ant-menu-inline>.ant-menu-submenu>.ant-menu-submenu-title{height:40px;line-height:40px;list-style-position:inside;list-style-type:disc}.ant-menu-sub.ant-menu-inline .ant-menu-item-group-title{padding-left:32px}.ant-menu-item-disabled,.ant-menu-submenu-disabled{color:#00000040!important;background:none;cursor:not-allowed}.ant-menu-item-disabled:after,.ant-menu-submenu-disabled:after{border-color:#0000!important}.ant-menu-item-disabled a,.ant-menu-submenu-disabled a{color:#00000040!important;pointer-events:none}.ant-menu-item-disabled>.ant-menu-submenu-title,.ant-menu-submenu-disabled>.ant-menu-submenu-title{color:#00000040!important;cursor:not-allowed}.ant-menu-item-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-item-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-submenu-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-submenu-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before{background:#00000040!important}.ant-layout-header .ant-menu{line-height:inherit}.ant-menu-light .ant-menu-item-active,.ant-menu-light .ant-menu-item:hover,.ant-menu-light .ant-menu-submenu-active,.ant-menu-light .ant-menu-submenu-title:hover,.ant-menu-light .ant-menu:not(.ant-menu-inline) .ant-menu-submenu-open{color:#1890ff}.ant-menu-dark .ant-menu-sub,.ant-menu.ant-menu-dark,.ant-menu.ant-menu-dark .ant-menu-sub{color:#ffffffa6;background:#001529}.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow,.ant-menu.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow,.ant-menu.ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow{opacity:.45;transition:all .3s}.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow:before,.ant-menu.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow:after,.ant-menu.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow:before,.ant-menu.ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow:after,.ant-menu.ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow:before{background:#fff}.ant-menu-dark.ant-menu-submenu-popup{background:#0000}.ant-menu-dark .ant-menu-inline.ant-menu-sub{background:#000c17}.ant-menu-dark.ant-menu-horizontal{border-bottom:0}.ant-menu-dark.ant-menu-horizontal>.ant-menu-item,.ant-menu-dark.ant-menu-horizontal>.ant-menu-submenu{top:0;margin-top:0;padding:0 20px;border-color:#001529;border-bottom:0}.ant-menu-dark.ant-menu-horizontal>.ant-menu-item:hover{background-color:#1890ff}.ant-menu-dark.ant-menu-horizontal>.ant-menu-item>a:before{bottom:0}.ant-menu-dark .ant-menu-item,.ant-menu-dark .ant-menu-item-group-title,.ant-menu-dark .ant-menu-item>a,.ant-menu-dark .ant-menu-item>span>a{color:#ffffffa6}.ant-menu-dark.ant-menu-inline,.ant-menu-dark.ant-menu-vertical,.ant-menu-dark.ant-menu-vertical-left,.ant-menu-dark.ant-menu-vertical-right{border-right:0}.ant-menu-dark.ant-menu-inline .ant-menu-item,.ant-menu-dark.ant-menu-vertical .ant-menu-item,.ant-menu-dark.ant-menu-vertical-left .ant-menu-item,.ant-menu-dark.ant-menu-vertical-right .ant-menu-item{left:0;margin-left:0;border-right:0}.ant-menu-dark.ant-menu-inline .ant-menu-item:after,.ant-menu-dark.ant-menu-vertical .ant-menu-item:after,.ant-menu-dark.ant-menu-vertical-left .ant-menu-item:after,.ant-menu-dark.ant-menu-vertical-right .ant-menu-item:after{border-right:0}.ant-menu-dark.ant-menu-inline .ant-menu-item,.ant-menu-dark.ant-menu-inline .ant-menu-submenu-title{width:100%}.ant-menu-dark .ant-menu-item-active,.ant-menu-dark .ant-menu-item:hover,.ant-menu-dark .ant-menu-submenu-active,.ant-menu-dark .ant-menu-submenu-open,.ant-menu-dark .ant-menu-submenu-selected,.ant-menu-dark .ant-menu-submenu-title:hover{color:#fff;background-color:initial}.ant-menu-dark .ant-menu-item-active>a,.ant-menu-dark .ant-menu-item-active>span>a,.ant-menu-dark .ant-menu-item:hover>a,.ant-menu-dark .ant-menu-item:hover>span>a,.ant-menu-dark .ant-menu-submenu-active>a,.ant-menu-dark .ant-menu-submenu-active>span>a,.ant-menu-dark .ant-menu-submenu-open>a,.ant-menu-dark .ant-menu-submenu-open>span>a,.ant-menu-dark .ant-menu-submenu-selected>a,.ant-menu-dark .ant-menu-submenu-selected>span>a,.ant-menu-dark .ant-menu-submenu-title:hover>a,.ant-menu-dark .ant-menu-submenu-title:hover>span>a{color:#fff}.ant-menu-dark .ant-menu-item-active>.ant-menu-submenu-title>.ant-menu-submenu-arrow,.ant-menu-dark .ant-menu-item:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow,.ant-menu-dark .ant-menu-submenu-active>.ant-menu-submenu-title>.ant-menu-submenu-arrow,.ant-menu-dark .ant-menu-submenu-open>.ant-menu-submenu-title>.ant-menu-submenu-arrow,.ant-menu-dark .ant-menu-submenu-selected>.ant-menu-submenu-title>.ant-menu-submenu-arrow,.ant-menu-dark .ant-menu-submenu-title:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow{opacity:1}.ant-menu-dark .ant-menu-item-active>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-item-active>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-item:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-item:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-active>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-active>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-open>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-open>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-selected>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-selected>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-title:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-title:hover>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before{background:#fff}.ant-menu-dark .ant-menu-item:hover{background-color:initial}.ant-menu-dark.ant-menu-dark:not(.ant-menu-horizontal) .ant-menu-item-selected{background-color:#1890ff}.ant-menu-dark .ant-menu-item-selected{color:#fff;border-right:0}.ant-menu-dark .ant-menu-item-selected:after{border-right:0}.ant-menu-dark .ant-menu-item-selected .ant-menu-item-icon,.ant-menu-dark .ant-menu-item-selected .ant-menu-item-icon+span,.ant-menu-dark .ant-menu-item-selected .anticon,.ant-menu-dark .ant-menu-item-selected .anticon+span,.ant-menu-dark .ant-menu-item-selected>a,.ant-menu-dark .ant-menu-item-selected>a:hover,.ant-menu-dark .ant-menu-item-selected>span>a,.ant-menu-dark .ant-menu-item-selected>span>a:hover{color:#fff}.ant-menu-submenu-popup.ant-menu-dark .ant-menu-item-selected,.ant-menu.ant-menu-dark .ant-menu-item-selected{background-color:#1890ff}.ant-menu-dark .ant-menu-item-disabled,.ant-menu-dark .ant-menu-item-disabled>a,.ant-menu-dark .ant-menu-item-disabled>span>a,.ant-menu-dark .ant-menu-submenu-disabled,.ant-menu-dark .ant-menu-submenu-disabled>a,.ant-menu-dark .ant-menu-submenu-disabled>span>a{color:#ffffff59!important;opacity:.8}.ant-menu-dark .ant-menu-item-disabled>.ant-menu-submenu-title,.ant-menu-dark .ant-menu-submenu-disabled>.ant-menu-submenu-title{color:#ffffff59!important}.ant-menu-dark .ant-menu-item-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-item-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before,.ant-menu-dark .ant-menu-submenu-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:after,.ant-menu-dark .ant-menu-submenu-disabled>.ant-menu-submenu-title>.ant-menu-submenu-arrow:before{background:#ffffff59!important}.ant-menu.ant-menu-rtl{direction:rtl;text-align:right}.ant-menu-rtl .ant-menu-item-group-title{text-align:right}.ant-menu-rtl.ant-menu-inline,.ant-menu-rtl.ant-menu-vertical{border-right:none;border-left:1px solid #f0f0f0}.ant-menu-rtl.ant-menu-dark.ant-menu-inline,.ant-menu-rtl.ant-menu-dark.ant-menu-vertical{border-left:none}.ant-menu-rtl.ant-menu-vertical-left.ant-menu-sub>.ant-menu-item,.ant-menu-rtl.ant-menu-vertical-left.ant-menu-sub>.ant-menu-submenu,.ant-menu-rtl.ant-menu-vertical-right.ant-menu-sub>.ant-menu-item,.ant-menu-rtl.ant-menu-vertical-right.ant-menu-sub>.ant-menu-submenu,.ant-menu-rtl.ant-menu-vertical.ant-menu-sub>.ant-menu-item,.ant-menu-rtl.ant-menu-vertical.ant-menu-sub>.ant-menu-submenu{transform-origin:top right}.ant-menu-rtl .ant-menu-item .ant-menu-item-icon,.ant-menu-rtl .ant-menu-item .anticon,.ant-menu-rtl .ant-menu-submenu-title .ant-menu-item-icon,.ant-menu-rtl .ant-menu-submenu-title .anticon{margin-right:auto;margin-left:10px}.ant-menu-rtl .ant-menu-item.ant-menu-item-only-child>.ant-menu-item-icon,.ant-menu-rtl .ant-menu-item.ant-menu-item-only-child>.anticon,.ant-menu-rtl .ant-menu-submenu-title.ant-menu-item-only-child>.ant-menu-item-icon,.ant-menu-rtl .ant-menu-submenu-title.ant-menu-item-only-child>.anticon{margin-left:0}.ant-menu-submenu-rtl.ant-menu-submenu-popup{transform-origin:100% 0}.ant-menu-rtl .ant-menu-submenu-inline>.ant-menu-submenu-title .ant-menu-submenu-arrow,.ant-menu-rtl .ant-menu-submenu-vertical-left>.ant-menu-submenu-title .ant-menu-submenu-arrow,.ant-menu-rtl .ant-menu-submenu-vertical-right>.ant-menu-submenu-title .ant-menu-submenu-arrow,.ant-menu-rtl .ant-menu-submenu-vertical>.ant-menu-submenu-title .ant-menu-submenu-arrow{right:auto;left:16px}.ant-menu-rtl .ant-menu-submenu-vertical-left>.ant-menu-submenu-title .ant-menu-submenu-arrow:before,.ant-menu-rtl .ant-menu-submenu-vertical-right>.ant-menu-submenu-title .ant-menu-submenu-arrow:before,.ant-menu-rtl .ant-menu-submenu-vertical>.ant-menu-submenu-title .ant-menu-submenu-arrow:before{transform:rotate(-45deg) translateY(-2px)}.ant-menu-rtl .ant-menu-submenu-vertical-left>.ant-menu-submenu-title .ant-menu-submenu-arrow:after,.ant-menu-rtl .ant-menu-submenu-vertical-right>.ant-menu-submenu-title .ant-menu-submenu-arrow:after,.ant-menu-rtl .ant-menu-submenu-vertical>.ant-menu-submenu-title .ant-menu-submenu-arrow:after{transform:rotate(45deg) translateY(2px)}.ant-menu-rtl.ant-menu-inline .ant-menu-item:after,.ant-menu-rtl.ant-menu-vertical .ant-menu-item:after,.ant-menu-rtl.ant-menu-vertical-left .ant-menu-item:after,.ant-menu-rtl.ant-menu-vertical-right .ant-menu-item:after{right:auto;left:0}.ant-menu-rtl.ant-menu-inline .ant-menu-item,.ant-menu-rtl.ant-menu-inline .ant-menu-submenu-title,.ant-menu-rtl.ant-menu-vertical .ant-menu-item,.ant-menu-rtl.ant-menu-vertical .ant-menu-submenu-title,.ant-menu-rtl.ant-menu-vertical-left .ant-menu-item,.ant-menu-rtl.ant-menu-vertical-left .ant-menu-submenu-title,.ant-menu-rtl.ant-menu-vertical-right .ant-menu-item,.ant-menu-rtl.ant-menu-vertical-right .ant-menu-submenu-title{text-align:right}.ant-menu-rtl.ant-menu-inline .ant-menu-submenu-title{padding-right:0;padding-left:34px}.ant-menu-rtl.ant-menu-vertical .ant-menu-submenu-title{padding-right:16px;padding-left:34px}.ant-menu-rtl.ant-menu-inline-collapsed.ant-menu-vertical .ant-menu-submenu-title{padding:0 calc(50% - 16px / 2)}.ant-menu-rtl .ant-menu-item-group-list .ant-menu-item,.ant-menu-rtl .ant-menu-item-group-list .ant-menu-submenu-title{padding:0 28px 0 16px}.ant-menu-sub.ant-menu-inline{border:0}.ant-menu-rtl.ant-menu-sub.ant-menu-inline .ant-menu-item-group-title{padding-right:32px;padding-left:0}.ant-menu-submenu.ant-menu-submenu-placement-bottom{top:6px;position:relative}.ant-menu-submenu.ant-menu-submenu-placement-right{left:4px;position:relative}.ant-menu-submenu.ant-menu-submenu-placement-right.ant-menu-submenu-rtl{left:auto;right:4px}.ant-menu-submenu.ant-menu-submenu-placement-left{right:4px;position:relative}.ant-menu-submenu.ant-menu-submenu-placement-left.ant-menu-submenu-rtl{right:auto;left:4px}.ant-mention-wrapper{box-sizing:border-box;margin:0;font-size:14px;font-variant:tabular-nums;list-style:none;font-feature-settings:"tnum";vertical-align:middle}.ant-mention-wrapper,.ant-mention-wrapper .ant-mention-editor{padding:0;color:#000000d9;line-height:1.5715;position:relative;display:inline-block;width:100%}.ant-mention-wrapper .ant-mention-editor{min-width:0;font-size:14px;background-color:#fff;background-image:none;border:1px solid #d9d9d9;border-radius:2px;transition:all .3s;display:block;height:auto;min-height:32px}.ant-mention-wrapper .ant-mention-editor::placeholder{color:#bfbfbf}.ant-mention-wrapper .ant-mention-editor:placeholder-shown{text-overflow:ellipsis}.ant-mention-wrapper .ant-mention-editor:hover{border-color:#40a9ff;border-right-width:1px!important}.ant-input-rtl .ant-mention-wrapper .ant-mention-editor:hover{border-right-width:0;border-left-width:1px!important}.ant-mention-wrapper .ant-mention-editor-focused,.ant-mention-wrapper .ant-mention-editor:focus{border-color:#40a9ff;border-right-width:1px!important;outline:0;box-shadow:0 0 0 2px #1890ff33}.ant-input-rtl .ant-mention-wrapper .ant-mention-editor-focused,.ant-input-rtl .ant-mention-wrapper .ant-mention-editor:focus{border-right-width:0;border-left-width:1px!important}.ant-mention-wrapper .ant-mention-editor-disabled{color:#00000040;background-color:#f5f5f5;border-color:#d9d9d9;box-shadow:none;cursor:not-allowed;opacity:1}.ant-mention-wrapper .ant-mention-editor-disabled:hover{border-color:#d9d9d9;border-right-width:1px!important}.ant-mention-wrapper .ant-mention-editor[disabled]{color:#00000040;background-color:#f5f5f5;border-color:#d9d9d9;box-shadow:none;cursor:not-allowed;opacity:1}.ant-mention-wrapper .ant-mention-editor[disabled]:hover{border-color:#d9d9d9;border-right-width:1px!important}.ant-mention-wrapper .ant-mention-editor-borderless,.ant-mention-wrapper .ant-mention-editor-borderless-disabled,.ant-mention-wrapper .ant-mention-editor-borderless-focused,.ant-mention-wrapper .ant-mention-editor-borderless:focus,.ant-mention-wrapper .ant-mention-editor-borderless:hover,.ant-mention-wrapper .ant-mention-editor-borderless[disabled]{background-color:initial;border:none;box-shadow:none}textarea.ant-mention-wrapper .ant-mention-editor{max-width:100%;height:auto;min-height:32px;line-height:1.5715;vertical-align:bottom;transition:all .3s,height 0s}.ant-mention-wrapper .ant-mention-editor-lg{padding:6.5px 11px;font-size:16px}.ant-mention-wrapper .ant-mention-editor-sm{padding:0 7px}.ant-mention-wrapper .ant-mention-editor-rtl{direction:rtl}.ant-mention-wrapper .ant-mention-editor-wrapper{height:auto;overflow-y:auto}.ant-mention-wrapper.ant-mention-active:not(.disabled) .ant-mention-editor{border-color:#40a9ff;border-right-width:1px!important;outline:0;box-shadow:0 0 0 2px #1890ff33}.ant-input-rtl .ant-mention-wrapper.ant-mention-active:not(.disabled) .ant-mention-editor{border-right-width:0;border-left-width:1px!important}.ant-mention-wrapper.disabled .ant-mention-editor{color:#00000040;background-color:#f5f5f5;border-color:#d9d9d9;box-shadow:none;cursor:not-allowed;opacity:1}.ant-mention-wrapper.disabled .ant-mention-editor:hover{border-color:#d9d9d9;border-right-width:1px!important}.ant-mention-wrapper .public-DraftEditorPlaceholder-root{position:absolute;pointer-events:none}.ant-mention-wrapper .public-DraftEditorPlaceholder-root .public-DraftEditorPlaceholder-inner{height:auto;padding:5px 11px;color:#bfbfbf;white-space:pre-wrap;word-wrap:break-word;outline:none;opacity:1}.ant-mention-wrapper .DraftEditor-editorContainer .public-DraftEditor-content{height:auto;padding:5px 11px}.ant-mention-dropdown{box-sizing:border-box;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:absolute;top:-9999px;left:-9999px;z-index:1050;min-width:120px;max-height:250px;margin:1.5em 0 0;overflow-x:hidden;overflow-y:auto;background-color:#fff;border-radius:2px;outline:none;box-shadow:0 3px 6px -4px #0000001f,0 6px 16px 0 #00000014,0 9px 28px 8px #0000000d}.ant-mention-dropdown-placement-top{margin-top:-.1em}.ant-mention-dropdown-notfound.ant-mention-dropdown-item{color:#00000040}.ant-mention-dropdown-notfound.ant-mention-dropdown-item .anticon-loading{display:block;color:#1890ff;text-align:center}.ant-mention-dropdown-item{position:relative;display:block;padding:5px 12px;overflow:hidden;color:#000000d9;font-weight:400;line-height:22px;white-space:nowrap;text-overflow:ellipsis;cursor:pointer;transition:background .3s}.ant-mention-dropdown-item:hover{background-color:#f5f5f5}.ant-mention-dropdown-item-active,.ant-mention-dropdown-item.focus{background-color:#e6f7ff}.ant-mention-dropdown-item-disabled{color:#00000040;cursor:not-allowed}.ant-mention-dropdown-item-disabled:hover{color:#00000040;background-color:#fff;cursor:not-allowed}.ant-mention-dropdown-item-selected,.ant-mention-dropdown-item-selected:hover{color:#000000d9;font-weight:700;background-color:#f5f5f5}.ant-mention-dropdown-item-divider{height:1px;margin:1px 0;overflow:hidden;line-height:0;background-color:#f0f0f0}.ant-mention-dropdown{top:100%;left:0;position:relative;width:100%;margin-top:4px;margin-bottom:4px}.ant-message{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:fixed;top:8px;left:0;z-index:1010;width:100%;pointer-events:none}.ant-message-notice{padding:8px;text-align:center}.ant-message-notice-content{display:inline-block;padding:10px 16px;background:#fff;border-radius:2px;box-shadow:0 3px 6px -4px #0000001f,0 6px 16px 0 #00000014,0 9px 28px 8px #0000000d;pointer-events:all}.ant-message-success .anticon{color:#52c41a}.ant-message-error .anticon{color:#ff4d4f}.ant-message-warning .anticon{color:#faad14}.ant-message-info .anticon,.ant-message-loading .anticon{color:#1890ff}.ant-message .anticon{position:relative;top:1px;margin-right:8px;font-size:16px}.ant-message-notice.ant-move-up-leave.ant-move-up-leave-active{animation-name:MessageMoveOut;animation-duration:.3s}@keyframes MessageMoveOut{0%{max-height:150px;padding:8px;opacity:1}to{max-height:0;padding:0;opacity:0}}.ant-message-rtl,.ant-message-rtl span{direction:rtl}.ant-message-rtl .anticon{margin-right:0;margin-left:8px}.ant-modal{box-sizing:border-box;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";pointer-events:none;position:relative;top:100px;width:auto;max-width:calc(100vw - 32px);margin:0 auto;padding:0 0 24px}.ant-modal.ant-zoom-enter,.ant-modal.antzoom-appear{transform:none;opacity:0;animation-duration:.3s;-webkit-user-select:none;user-select:none}.ant-modal-mask{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;height:100%;background-color:#00000073}.ant-modal-mask-hidden{display:none}.ant-modal-wrap{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;outline:0;-webkit-overflow-scrolling:touch;z-index:1000}.ant-modal-title{margin:0;color:#000000d9;font-weight:500;font-size:16px;line-height:22px;word-wrap:break-word}.ant-modal-content{position:relative;background-color:#fff;background-clip:padding-box;border:0;border-radius:2px;box-shadow:0 3px 6px -4px #0000001f,0 6px 16px 0 #00000014,0 9px 28px 8px #0000000d;pointer-events:auto}.ant-modal-close{position:absolute;top:0;right:0;z-index:10;padding:0;color:#00000073;font-weight:700;line-height:1;text-decoration:none;background:#0000;border:0;outline:0;cursor:pointer;transition:color .3s}.ant-modal-close-x{display:block;width:56px;height:56px;font-size:16px;font-style:normal;line-height:56px;text-align:center;text-transform:none;text-rendering:auto}.ant-modal-close:focus,.ant-modal-close:hover{color:#000000bf;text-decoration:none}.ant-modal-header{padding:16px 24px;color:#000000d9;background:#fff;border-bottom:1px solid #f0f0f0;border-radius:2px 2px 0 0}.ant-modal-body{padding:24px;font-size:14px;line-height:1.5715;word-wrap:break-word}.ant-modal-footer{padding:10px 16px;text-align:right;background:#0000;border-top:1px solid #f0f0f0;border-radius:0 0 2px 2px}.ant-modal-footer .ant-btn+.ant-btn:not(.ant-dropdown-trigger){margin-bottom:0;margin-left:8px}.ant-modal-open{overflow:hidden}.ant-modal-centered{text-align:center}.ant-modal-centered:before{display:inline-block;width:0;height:100%;vertical-align:middle;content:""}.ant-modal-centered .ant-modal{top:0;display:inline-block;text-align:left;vertical-align:middle}@media (max-width: 767px){.ant-modal{max-width:calc(100vw - 16px);margin:8px auto}.ant-modal-centered .ant-modal{flex:1}}.ant-modal-confirm .ant-modal-header{display:none}.ant-modal-confirm .ant-modal-body{padding:32px 32px 24px}.ant-modal-confirm-body-wrapper:before{display:table;content:""}.ant-modal-confirm-body-wrapper:after{display:table;clear:both;content:""}.ant-modal-confirm-body .ant-modal-confirm-title{display:block;overflow:hidden;color:#000000d9;font-weight:500;font-size:16px;line-height:1.4}.ant-modal-confirm-body .ant-modal-confirm-content{margin-top:8px;color:#000000d9;font-size:14px}.ant-modal-confirm-body>.anticon{float:left;margin-right:16px;font-size:22px}.ant-modal-confirm-body>.anticon+.ant-modal-confirm-title+.ant-modal-confirm-content{margin-left:38px}.ant-modal-confirm .ant-modal-confirm-btns{float:right;margin-top:24px}.ant-modal-confirm .ant-modal-confirm-btns .ant-btn+.ant-btn{margin-bottom:0;margin-left:8px}.ant-modal-confirm-error .ant-modal-confirm-body>.anticon{color:#ff4d4f}.ant-modal-confirm-confirm .ant-modal-confirm-body>.anticon,.ant-modal-confirm-warning .ant-modal-confirm-body>.anticon{color:#faad14}.ant-modal-confirm-info .ant-modal-confirm-body>.anticon{color:#1890ff}.ant-modal-confirm-success .ant-modal-confirm-body>.anticon{color:#52c41a}.ant-modal-wrap-rtl{direction:rtl}.ant-modal-wrap-rtl .ant-modal-close{right:auto;left:0}.ant-modal-wrap-rtl .ant-modal-footer{text-align:left}.ant-modal-wrap-rtl .ant-modal-footer .ant-btn+.ant-btn{margin-right:8px;margin-left:0}.ant-modal-wrap-rtl .ant-modal-confirm-body{direction:rtl}.ant-modal-wrap-rtl .ant-modal-confirm-body>.anticon{float:right;margin-right:0;margin-left:16px}.ant-modal-wrap-rtl .ant-modal-confirm-body>.anticon+.ant-modal-confirm-title+.ant-modal-confirm-content{margin-right:38px;margin-left:0}.ant-modal-wrap-rtl .ant-modal-confirm-btns{float:left}.ant-modal-wrap-rtl .ant-modal-confirm-btns .ant-btn+.ant-btn{margin-right:8px;margin-left:0}.ant-modal-wrap-rtl.ant-modal-centered .ant-modal{text-align:right}.ant-notification{box-sizing:border-box;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:fixed;z-index:1010;margin:0 24px 0 0}.ant-notification-bottomLeft,.ant-notification-topLeft{margin-right:0;margin-left:24px}.ant-notification-bottomLeft .ant-notification-fade-appear.ant-notification-fade-appear-active,.ant-notification-bottomLeft .ant-notification-fade-enter.ant-notification-fade-enter-active,.ant-notification-topLeft .ant-notification-fade-appear.ant-notification-fade-appear-active,.ant-notification-topLeft .ant-notification-fade-enter.ant-notification-fade-enter-active{animation-name:NotificationLeftFadeIn}.ant-notification-close-icon{font-size:14px;cursor:pointer}.ant-notification-hook-holder{position:relative}.ant-notification-notice{position:relative;width:384px;max-width:calc(100vw - 24px * 2);margin-bottom:16px;margin-left:auto;padding:16px 24px;overflow:hidden;line-height:1.5715;word-wrap:break-word;background:#fff;border-radius:2px;box-shadow:0 3px 6px -4px #0000001f,0 6px 16px 0 #00000014,0 9px 28px 8px #0000000d}.ant-notification-bottomLeft .ant-notification-notice,.ant-notification-topLeft .ant-notification-notice{margin-right:auto;margin-left:0}.ant-notification-notice-message{margin-bottom:8px;color:#000000d9;font-size:16px;line-height:24px}.ant-notification-notice-message-single-line-auto-margin{display:block;width:calc(384px - 24px * 2 - 24px - 48px - 100%);max-width:4px;background-color:initial;pointer-events:none}.ant-notification-notice-message-single-line-auto-margin:before{display:block;content:""}.ant-notification-notice-description{font-size:14px}.ant-notification-notice-closable .ant-notification-notice-message{padding-right:24px}.ant-notification-notice-with-icon .ant-notification-notice-message{margin-bottom:4px;margin-left:48px;font-size:16px}.ant-notification-notice-with-icon .ant-notification-notice-description{margin-left:48px;font-size:14px}.ant-notification-notice-icon{position:absolute;margin-left:4px;font-size:24px;line-height:24px}.anticon.ant-notification-notice-icon-success{color:#52c41a}.anticon.ant-notification-notice-icon-info{color:#1890ff}.anticon.ant-notification-notice-icon-warning{color:#faad14}.anticon.ant-notification-notice-icon-error{color:#ff4d4f}.ant-notification-notice-close{position:absolute;top:16px;right:22px;color:#00000073;outline:none}.ant-notification-notice-close:hover{color:#000000ab}.ant-notification-notice-btn{float:right;margin-top:16px}.ant-notification .notification-fade-effect{animation-duration:.24s;animation-timing-function:cubic-bezier(.645,.045,.355,1);animation-fill-mode:both}.ant-notification-fade-appear,.ant-notification-fade-enter{opacity:0;animation-play-state:paused}.ant-notification-fade-appear,.ant-notification-fade-enter,.ant-notification-fade-leave{animation-duration:.24s;animation-timing-function:cubic-bezier(.645,.045,.355,1);animation-fill-mode:both}.ant-notification-fade-leave{animation-duration:.2s;animation-play-state:paused}.ant-notification-fade-appear.ant-notification-fade-appear-active,.ant-notification-fade-enter.ant-notification-fade-enter-active{animation-name:NotificationFadeIn;animation-play-state:running}.ant-notification-fade-leave.ant-notification-fade-leave-active{animation-name:NotificationFadeOut;animation-play-state:running}@keyframes NotificationFadeIn{0%{left:384px;opacity:0}to{left:0;opacity:1}}@keyframes NotificationLeftFadeIn{0%{right:384px;opacity:0}to{right:0;opacity:1}}@keyframes NotificationFadeOut{0%{max-height:150px;margin-bottom:16px;opacity:1}to{max-height:0;margin-bottom:0;padding-top:0;padding-bottom:0;opacity:0}}.ant-notification-rtl{direction:rtl}.ant-notification-rtl .ant-notification-notice-closable .ant-notification-notice-message{padding-right:0;padding-left:24px}.ant-notification-rtl .ant-notification-notice-with-icon .ant-notification-notice-description,.ant-notification-rtl .ant-notification-notice-with-icon .ant-notification-notice-message{margin-right:48px;margin-left:0}.ant-notification-rtl .ant-notification-notice-icon{margin-right:4px;margin-left:0}.ant-notification-rtl .ant-notification-notice-close{right:auto;left:22px}.ant-notification-rtl .ant-notification-notice-btn{float:left}.ant-page-header{box-sizing:border-box;margin:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:relative;padding:16px 24px;background-color:#fff}.ant-page-header-ghost{background-color:inherit}.ant-page-header.has-breadcrumb{padding-top:12px}.ant-page-header.has-footer{padding-bottom:0}.ant-page-header-back{margin-right:16px;font-size:16px;line-height:1}.ant-page-header-back-button{color:#1890ff;text-decoration:none;outline:none;transition:color .3s;color:#000;cursor:pointer}.ant-page-header-back-button:focus,.ant-page-header-back-button:hover{color:#40a9ff}.ant-page-header-back-button:active{color:#096dd9}.ant-page-header .ant-divider-vertical{height:14px;margin:0 12px;vertical-align:middle}.ant-breadcrumb+.ant-page-header-heading{margin-top:8px}.ant-page-header-heading{display:flex;justify-content:space-between}.ant-page-header-heading-left{display:flex;align-items:center;margin:4px 0;overflow:hidden}.ant-page-header-heading-title{margin-right:12px;margin-bottom:0;color:#000000d9;font-weight:600;font-size:20px;line-height:32px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ant-page-header-heading .ant-avatar{margin-right:12px}.ant-page-header-heading-sub-title{margin-right:12px;color:#00000073;font-size:14px;line-height:1.5715;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ant-page-header-heading-extra{margin:4px 0;white-space:nowrap}.ant-page-header-heading-extra>*{margin-left:12px;white-space:unset}.ant-page-header-heading-extra>:first-child{margin-left:0}.ant-page-header-content{padding-top:12px}.ant-page-header-footer{margin-top:16px}.ant-page-header-footer .ant-tabs>.ant-tabs-nav{margin:0}.ant-page-header-footer .ant-tabs>.ant-tabs-nav:before{border:none}.ant-page-header-footer .ant-tabs .ant-tabs-tab{padding-top:8px;padding-bottom:8px;font-size:16px}.ant-page-header-compact .ant-page-header-heading{flex-wrap:wrap}.ant-page-header-rtl{direction:rtl}.ant-page-header-rtl .ant-page-header-back{float:right;margin-right:0;margin-left:16px}.ant-page-header-rtl .ant-page-header-heading .ant-avatar,.ant-page-header-rtl .ant-page-header-heading-title{margin-right:0;margin-left:12px}.ant-page-header-rtl .ant-page-header-heading-sub-title{float:right;margin-right:0;margin-left:12px}.ant-page-header-rtl .ant-page-header-heading-tags{float:right}.ant-page-header-rtl .ant-page-header-heading-extra{float:left}.ant-page-header-rtl .ant-page-header-heading-extra>*{margin-right:12px;margin-left:0}.ant-page-header-rtl .ant-page-header-heading-extra>:first-child{margin-right:0}.ant-page-header-rtl .ant-page-header-footer .ant-tabs-bar .ant-tabs-nav{float:right}.ant-page-header-back-button{border:0;background:#0000;padding:0;line-height:inherit;display:inline-block}nz-page-header,nz-page-header-content,nz-page-header-footer{display:block}.ant-pagination{box-sizing:border-box;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;font-feature-settings:"tnum"}.ant-pagination,.ant-pagination ol,.ant-pagination ul{margin:0;padding:0;list-style:none}.ant-pagination:after{display:block;clear:both;height:0;overflow:hidden;visibility:hidden;content:" "}.ant-pagination-item,.ant-pagination-total-text{display:inline-block;height:32px;margin-right:8px;line-height:30px;vertical-align:middle}.ant-pagination-item{min-width:32px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;text-align:center;list-style:none;background-color:#fff;border:1px solid #d9d9d9;border-radius:2px;outline:0;cursor:pointer;-webkit-user-select:none;user-select:none}.ant-pagination-item a{display:block;padding:0 6px;color:#000000d9;transition:none}.ant-pagination-item a:hover{text-decoration:none}.ant-pagination-item:focus-visible,.ant-pagination-item:hover{border-color:#1890ff;transition:all .3s}.ant-pagination-item:focus-visible a,.ant-pagination-item:hover a{color:#1890ff}.ant-pagination-item-active{font-weight:500;background:#fff;border-color:#1890ff}.ant-pagination-item-active a{color:#1890ff}.ant-pagination-item-active:focus-visible,.ant-pagination-item-active:hover{border-color:#40a9ff}.ant-pagination-item-active:focus-visible a,.ant-pagination-item-active:hover a{color:#40a9ff}.ant-pagination-jump-next,.ant-pagination-jump-prev{outline:0}.ant-pagination-jump-next .ant-pagination-item-container,.ant-pagination-jump-prev .ant-pagination-item-container{position:relative}.ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-link-icon,.ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-link-icon{color:#1890ff;font-size:12px;letter-spacing:-1px;opacity:0;transition:all .2s}.ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-link-icon-svg,.ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-link-icon-svg{top:0;right:0;bottom:0;left:0;margin:auto}.ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-ellipsis,.ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-ellipsis{position:absolute;top:0;right:0;bottom:0;left:0;display:block;margin:auto;color:#00000040;font-family:Arial,Helvetica,sans-serif;letter-spacing:2px;text-align:center;text-indent:.13em;opacity:1;transition:all .2s}.ant-pagination-jump-next:focus-visible .ant-pagination-item-link-icon,.ant-pagination-jump-next:hover .ant-pagination-item-link-icon,.ant-pagination-jump-prev:focus-visible .ant-pagination-item-link-icon,.ant-pagination-jump-prev:hover .ant-pagination-item-link-icon{opacity:1}.ant-pagination-jump-next:focus-visible .ant-pagination-item-ellipsis,.ant-pagination-jump-next:hover .ant-pagination-item-ellipsis,.ant-pagination-jump-prev:focus-visible .ant-pagination-item-ellipsis,.ant-pagination-jump-prev:hover .ant-pagination-item-ellipsis{opacity:0}.ant-pagination-jump-next,.ant-pagination-jump-prev,.ant-pagination-prev{margin-right:8px}.ant-pagination-jump-next,.ant-pagination-jump-prev,.ant-pagination-next,.ant-pagination-prev{display:inline-block;min-width:32px;height:32px;color:#000000d9;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:32px;text-align:center;vertical-align:middle;list-style:none;border-radius:2px;cursor:pointer;transition:all .3s}.ant-pagination-next,.ant-pagination-prev{font-family:Arial,Helvetica,sans-serif;outline:0}.ant-pagination-next button,.ant-pagination-prev button{color:#000000d9;cursor:pointer;-webkit-user-select:none;user-select:none}.ant-pagination-next:hover button,.ant-pagination-prev:hover button{border-color:#40a9ff}.ant-pagination-next .ant-pagination-item-link,.ant-pagination-prev .ant-pagination-item-link{display:block;width:100%;height:100%;padding:0;font-size:12px;text-align:center;background-color:#fff;border:1px solid #d9d9d9;border-radius:2px;outline:none;transition:all .3s}.ant-pagination-next:focus-visible .ant-pagination-item-link,.ant-pagination-next:hover .ant-pagination-item-link,.ant-pagination-prev:focus-visible .ant-pagination-item-link,.ant-pagination-prev:hover .ant-pagination-item-link{color:#1890ff;border-color:#1890ff}.ant-pagination-disabled,.ant-pagination-disabled:focus-visible,.ant-pagination-disabled:hover{cursor:not-allowed}.ant-pagination-disabled .ant-pagination-item-link,.ant-pagination-disabled:focus-visible .ant-pagination-item-link,.ant-pagination-disabled:hover .ant-pagination-item-link{color:#00000040;border-color:#d9d9d9;cursor:not-allowed}.ant-pagination-slash{margin:0 10px 0 5px}.ant-pagination-options{display:inline-block;margin-left:16px;vertical-align:middle}@media all and (-ms-high-contrast: none){.ant-pagination-options,.ant-pagination-options ::-ms-backdrop{vertical-align:top}}.ant-pagination-options-size-changer.ant-select{display:inline-block;width:auto}.ant-pagination-options-quick-jumper{display:inline-block;height:32px;margin-left:8px;line-height:32px;vertical-align:top}.ant-pagination-options-quick-jumper input{position:relative;display:inline-block;width:100%;min-width:0;padding:4px 11px;color:#000000d9;font-size:14px;line-height:1.5715;background-color:#fff;background-image:none;border:1px solid #d9d9d9;border-radius:2px;transition:all .3s;width:50px;height:32px;margin:0 8px}.ant-pagination-options-quick-jumper input::placeholder{color:#bfbfbf}.ant-pagination-options-quick-jumper input:placeholder-shown{text-overflow:ellipsis}.ant-pagination-options-quick-jumper input:hover{border-color:#40a9ff;border-right-width:1px!important}.ant-input-rtl .ant-pagination-options-quick-jumper input:hover{border-right-width:0;border-left-width:1px!important}.ant-pagination-options-quick-jumper input-focused,.ant-pagination-options-quick-jumper input:focus{border-color:#40a9ff;border-right-width:1px!important;outline:0;box-shadow:0 0 0 2px #1890ff33}.ant-input-rtl .ant-pagination-options-quick-jumper input-focused,.ant-input-rtl .ant-pagination-options-quick-jumper input:focus{border-right-width:0;border-left-width:1px!important}.ant-pagination-options-quick-jumper input-disabled{color:#00000040;background-color:#f5f5f5;border-color:#d9d9d9;box-shadow:none;cursor:not-allowed;opacity:1}.ant-pagination-options-quick-jumper input-disabled:hover{border-color:#d9d9d9;border-right-width:1px!important}.ant-pagination-options-quick-jumper input[disabled]{color:#00000040;background-color:#f5f5f5;border-color:#d9d9d9;box-shadow:none;cursor:not-allowed;opacity:1}.ant-pagination-options-quick-jumper input[disabled]:hover{border-color:#d9d9d9;border-right-width:1px!important}.ant-pagination-options-quick-jumper input-borderless,.ant-pagination-options-quick-jumper input-borderless-disabled,.ant-pagination-options-quick-jumper input-borderless-focused,.ant-pagination-options-quick-jumper input-borderless:focus,.ant-pagination-options-quick-jumper input-borderless:hover,.ant-pagination-options-quick-jumper input-borderless[disabled]{background-color:initial;border:none;box-shadow:none}textarea.ant-pagination-options-quick-jumper input{max-width:100%;height:auto;min-height:32px;line-height:1.5715;vertical-align:bottom;transition:all .3s,height 0s}.ant-pagination-options-quick-jumper input-lg{padding:6.5px 11px;font-size:16px}.ant-pagination-options-quick-jumper input-sm{padding:0 7px}.ant-pagination-options-quick-jumper input-rtl{direction:rtl}.ant-pagination-simple .ant-pagination-next,.ant-pagination-simple .ant-pagination-prev{height:24px;line-height:24px;vertical-align:top}.ant-pagination-simple .ant-pagination-next .ant-pagination-item-link,.ant-pagination-simple .ant-pagination-prev .ant-pagination-item-link{height:24px;background-color:initial;border:0}.ant-pagination-simple .ant-pagination-next .ant-pagination-item-link:after,.ant-pagination-simple .ant-pagination-prev .ant-pagination-item-link:after{height:24px;line-height:24px}.ant-pagination-simple .ant-pagination-simple-pager{display:inline-block;height:24px;margin-right:8px}.ant-pagination-simple .ant-pagination-simple-pager input{box-sizing:border-box;height:100%;margin-right:8px;padding:0 6px;text-align:center;background-color:#fff;border:1px solid #d9d9d9;border-radius:2px;outline:none;transition:border-color .3s}.ant-pagination-simple .ant-pagination-simple-pager input:hover{border-color:#1890ff}.ant-pagination-simple .ant-pagination-simple-pager input[disabled]{color:#00000040;background:#f5f5f5;border-color:#d9d9d9;cursor:not-allowed}.ant-pagination.mini .ant-pagination-simple-pager,.ant-pagination.mini .ant-pagination-total-text{height:24px;line-height:24px}.ant-pagination.mini .ant-pagination-item{min-width:24px;height:24px;margin:0;line-height:22px}.ant-pagination.mini .ant-pagination-item:not(.ant-pagination-item-active){background:#0000;border-color:#0000}.ant-pagination.mini .ant-pagination-next,.ant-pagination.mini .ant-pagination-prev{min-width:24px;height:24px;margin:0;line-height:24px}.ant-pagination.mini .ant-pagination-next .ant-pagination-item-link,.ant-pagination.mini .ant-pagination-prev .ant-pagination-item-link{background:#0000;border-color:#0000}.ant-pagination.mini .ant-pagination-next .ant-pagination-item-link:after,.ant-pagination.mini .ant-pagination-prev .ant-pagination-item-link:after{height:24px;line-height:24px}.ant-pagination.mini .ant-pagination-jump-next,.ant-pagination.mini .ant-pagination-jump-prev{height:24px;margin-right:0;line-height:24px}.ant-pagination.mini .ant-pagination-options{margin-left:2px}.ant-pagination.mini .ant-pagination-options-size-changer{top:0}.ant-pagination.mini .ant-pagination-options-quick-jumper{height:24px;line-height:24px}.ant-pagination.mini .ant-pagination-options-quick-jumper input{padding:0 7px;width:44px;height:24px}.ant-pagination.ant-pagination-disabled{cursor:not-allowed}.ant-pagination.ant-pagination-disabled .ant-pagination-item{background:#f5f5f5;border-color:#d9d9d9;cursor:not-allowed}.ant-pagination.ant-pagination-disabled .ant-pagination-item a{color:#00000040;background:#0000;border:none;cursor:not-allowed}.ant-pagination.ant-pagination-disabled .ant-pagination-item-active{background:#e6e6e6}.ant-pagination.ant-pagination-disabled .ant-pagination-item-active a{color:#00000040}.ant-pagination.ant-pagination-disabled .ant-pagination-item-link{color:#00000040;background:#f5f5f5;border-color:#d9d9d9;cursor:not-allowed}.ant-pagination-simple.ant-pagination.ant-pagination-disabled .ant-pagination-item-link{background:#0000}.ant-pagination.ant-pagination-disabled .ant-pagination-item-link-icon{opacity:0}.ant-pagination.ant-pagination-disabled .ant-pagination-item-ellipsis{opacity:1}.ant-pagination.ant-pagination-disabled .ant-pagination-simple-pager{color:#00000040}@media only screen and (max-width: 992px){.ant-pagination-item-after-jump-prev,.ant-pagination-item-before-jump-next{display:none}}@media only screen and (max-width: 576px){.ant-pagination-options{display:none}}.ant-pagination-rtl .ant-pagination-item,.ant-pagination-rtl .ant-pagination-jump-next,.ant-pagination-rtl .ant-pagination-jump-prev,.ant-pagination-rtl .ant-pagination-prev,.ant-pagination-rtl .ant-pagination-total-text{margin-right:0;margin-left:8px}.ant-pagination-rtl .ant-pagination-slash{margin:0 5px 0 10px}.ant-pagination-rtl .ant-pagination-options{margin-right:16px;margin-left:0}.ant-pagination-rtl .ant-pagination-options .ant-pagination-options-size-changer.ant-select{margin-right:0;margin-left:8px}.ant-pagination-rtl .ant-pagination-options .ant-pagination-options-quick-jumper{margin-left:0}.ant-pagination-rtl.ant-pagination-simple .ant-pagination-simple-pager,.ant-pagination-rtl.ant-pagination-simple .ant-pagination-simple-pager input{margin-right:0;margin-left:8px}.ant-pagination-rtl.ant-pagination.mini .ant-pagination-options{margin-right:2px;margin-left:0}nz-pagination{display:block}.ant-popover{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:absolute;top:0;left:0;z-index:1030;font-weight:400;white-space:normal;text-align:left;cursor:auto;-webkit-user-select:text;user-select:text}.ant-popover:after{position:absolute;background:#ffffff03;content:""}.ant-popover-hidden{display:none}.ant-popover-placement-top,.ant-popover-placement-topLeft,.ant-popover-placement-topRight{padding-bottom:10px}.ant-popover-placement-right,.ant-popover-placement-rightBottom,.ant-popover-placement-rightTop{padding-left:10px}.ant-popover-placement-bottom,.ant-popover-placement-bottomLeft,.ant-popover-placement-bottomRight{padding-top:10px}.ant-popover-placement-left,.ant-popover-placement-leftBottom,.ant-popover-placement-leftTop{padding-right:10px}.ant-popover-inner{background-color:#fff;background-clip:padding-box;border-radius:2px;box-shadow:0 3px 6px -4px #0000001f,0 6px 16px 0 #00000014,0 9px 28px 8px #0000000d;box-shadow:0 0 8px #00000026\\9}@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none){.ant-popover-inner{box-shadow:0 3px 6px -4px #0000001f,0 6px 16px 0 #00000014,0 9px 28px 8px #0000000d}}.ant-popover-title{min-width:177px;min-height:32px;margin:0;padding:5px 16px 4px;color:#000000d9;font-weight:500;border-bottom:1px solid #f0f0f0}.ant-popover-inner-content{padding:12px 16px;color:#000000d9}.ant-popover-message{position:relative;padding:4px 0 12px;color:#000000d9;font-size:14px}.ant-popover-message>.anticon{position:absolute;top:8.0005px;color:#faad14;font-size:14px}.ant-popover-message-title{padding-left:22px}.ant-popover-buttons{margin-bottom:4px;text-align:right}.ant-popover-buttons button{margin-left:8px}.ant-popover-arrow{position:absolute;display:block;width:8.48528137px;height:8.48528137px;overflow:hidden;background:#0000;pointer-events:none}.ant-popover-arrow-content{position:absolute;top:0;right:0;bottom:0;left:0;display:block;width:6px;height:6px;margin:auto;background-color:#fff;content:"";pointer-events:auto}.ant-popover-placement-top .ant-popover-arrow,.ant-popover-placement-topLeft .ant-popover-arrow,.ant-popover-placement-topRight .ant-popover-arrow{bottom:1.51471863px}.ant-popover-placement-top .ant-popover-arrow-content,.ant-popover-placement-topLeft .ant-popover-arrow-content,.ant-popover-placement-topRight .ant-popover-arrow-content{box-shadow:3px 3px 7px #00000012;transform:translateY(-4.24264069px) rotate(45deg)}.ant-popover-placement-top .ant-popover-arrow{left:50%;transform:translateX(-50%)}.ant-popover-placement-topLeft .ant-popover-arrow{left:16px}.ant-popover-placement-topRight .ant-popover-arrow{right:16px}.ant-popover-placement-right .ant-popover-arrow,.ant-popover-placement-rightBottom .ant-popover-arrow,.ant-popover-placement-rightTop .ant-popover-arrow{left:1.51471863px}.ant-popover-placement-right .ant-popover-arrow-content,.ant-popover-placement-rightBottom .ant-popover-arrow-content,.ant-popover-placement-rightTop .ant-popover-arrow-content{box-shadow:-3px 3px 7px #00000012;transform:translateX(4.24264069px) rotate(45deg)}.ant-popover-placement-right .ant-popover-arrow{top:50%;transform:translateY(-50%)}.ant-popover-placement-rightTop .ant-popover-arrow{top:12px}.ant-popover-placement-rightBottom .ant-popover-arrow{bottom:12px}.ant-popover-placement-bottom .ant-popover-arrow,.ant-popover-placement-bottomLeft .ant-popover-arrow,.ant-popover-placement-bottomRight .ant-popover-arrow{top:1.51471863px}.ant-popover-placement-bottom .ant-popover-arrow-content,.ant-popover-placement-bottomLeft .ant-popover-arrow-content,.ant-popover-placement-bottomRight .ant-popover-arrow-content{box-shadow:-2px -2px 5px #0000000f;transform:translateY(4.24264069px) rotate(45deg)}.ant-popover-placement-bottom .ant-popover-arrow{left:50%;transform:translateX(-50%)}.ant-popover-placement-bottomLeft .ant-popover-arrow{left:16px}.ant-popover-placement-bottomRight .ant-popover-arrow{right:16px}.ant-popover-placement-left .ant-popover-arrow,.ant-popover-placement-leftBottom .ant-popover-arrow,.ant-popover-placement-leftTop .ant-popover-arrow{right:1.51471863px}.ant-popover-placement-left .ant-popover-arrow-content,.ant-popover-placement-leftBottom .ant-popover-arrow-content,.ant-popover-placement-leftTop .ant-popover-arrow-content{box-shadow:3px -3px 7px #00000012;transform:translateX(-4.24264069px) rotate(45deg)}.ant-popover-placement-left .ant-popover-arrow{top:50%;transform:translateY(-50%)}.ant-popover-placement-leftTop .ant-popover-arrow{top:12px}.ant-popover-placement-leftBottom .ant-popover-arrow{bottom:12px}.ant-popover-magenta .ant-popover-arrow-content,.ant-popover-magenta .ant-popover-inner,.ant-popover-pink .ant-popover-arrow-content,.ant-popover-pink .ant-popover-inner{background-color:#eb2f96}.ant-popover-red .ant-popover-arrow-content,.ant-popover-red .ant-popover-inner{background-color:#f5222d}.ant-popover-volcano .ant-popover-arrow-content,.ant-popover-volcano .ant-popover-inner{background-color:#fa541c}.ant-popover-orange .ant-popover-arrow-content,.ant-popover-orange .ant-popover-inner{background-color:#fa8c16}.ant-popover-yellow .ant-popover-arrow-content,.ant-popover-yellow .ant-popover-inner{background-color:#fadb14}.ant-popover-gold .ant-popover-arrow-content,.ant-popover-gold .ant-popover-inner{background-color:#faad14}.ant-popover-cyan .ant-popover-arrow-content,.ant-popover-cyan .ant-popover-inner{background-color:#13c2c2}.ant-popover-lime .ant-popover-arrow-content,.ant-popover-lime .ant-popover-inner{background-color:#a0d911}.ant-popover-green .ant-popover-arrow-content,.ant-popover-green .ant-popover-inner{background-color:#52c41a}.ant-popover-blue .ant-popover-arrow-content,.ant-popover-blue .ant-popover-inner{background-color:#1890ff}.ant-popover-geekblue .ant-popover-arrow-content,.ant-popover-geekblue .ant-popover-inner{background-color:#2f54eb}.ant-popover-purple .ant-popover-arrow-content,.ant-popover-purple .ant-popover-inner{background-color:#722ed1}.ant-popover-rtl{direction:rtl;text-align:right}.ant-popover-rtl .ant-popover-message-title{padding-right:22px;padding-left:16px}.ant-popover-rtl .ant-popover-buttons{text-align:left}.ant-popover-rtl .ant-popover-buttons button{margin-right:8px;margin-left:0}.ant-popover{position:relative}.ant-progress{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";display:inline-block}.ant-progress-line{position:relative;width:100%;font-size:14px}.ant-progress-steps{display:inline-block}.ant-progress-steps-outer{display:flex;flex-direction:row;align-items:center}.ant-progress-steps-item{flex-shrink:0;min-width:2px;margin-right:2px;background:#f3f3f3;transition:all .3s}.ant-progress-steps-item-active{background:#1890ff}.ant-progress-small.ant-progress-line,.ant-progress-small.ant-progress-line .ant-progress-text .anticon{font-size:12px}.ant-progress-outer{display:inline-block;width:100%;margin-right:0;padding-right:0}.ant-progress-show-info .ant-progress-outer{margin-right:calc(-2em - 8px);padding-right:calc(2em + 8px)}.ant-progress-inner{position:relative;display:inline-block;width:100%;overflow:hidden;vertical-align:middle;background-color:#f5f5f5;border-radius:100px}.ant-progress-circle-trail{stroke:#f5f5f5}.ant-progress-circle-path{animation:ant-progress-appear .3s}.ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path{stroke:#1890ff}.ant-progress-bg,.ant-progress-success-bg{position:relative;background-color:#1890ff;border-radius:100px;transition:all .4s cubic-bezier(.08,.82,.17,1) 0s}.ant-progress-success-bg{position:absolute;top:0;left:0;background-color:#52c41a}.ant-progress-text{display:inline-block;width:2em;margin-left:8px;color:#000000d9;font-size:1em;line-height:1;white-space:nowrap;text-align:left;vertical-align:middle;word-break:normal}.ant-progress-text .anticon{font-size:14px}.ant-progress-status-active .ant-progress-bg:before{position:absolute;top:0;right:0;bottom:0;left:0;background:#fff;border-radius:10px;opacity:0;animation:ant-progress-active 2.4s cubic-bezier(.23,1,.32,1) infinite;content:""}.ant-progress-status-exception .ant-progress-bg{background-color:#ff4d4f}.ant-progress-status-exception .ant-progress-text{color:#ff4d4f}.ant-progress-status-exception .ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path{stroke:#ff4d4f}.ant-progress-status-success .ant-progress-bg{background-color:#52c41a}.ant-progress-status-success .ant-progress-text{color:#52c41a}.ant-progress-status-success .ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path{stroke:#52c41a}.ant-progress-circle .ant-progress-inner{position:relative;line-height:1;background-color:initial}.ant-progress-circle .ant-progress-text{position:absolute;top:50%;left:50%;width:100%;margin:0;padding:0;color:#000000d9;font-size:1em;line-height:1;white-space:normal;text-align:center;transform:translate(-50%,-50%)}.ant-progress-circle .ant-progress-text .anticon{font-size:1.16666667em}.ant-progress-circle.ant-progress-status-exception .ant-progress-text{color:#ff4d4f}.ant-progress-circle.ant-progress-status-success .ant-progress-text{color:#52c41a}@keyframes ant-progress-active{0%{transform:translateX(-100%) scaleX(0);opacity:.1}20%{transform:translateX(-100%) scaleX(0);opacity:.5}to{transform:translateX(0) scaleX(1);opacity:0}}.ant-progress-rtl{direction:rtl}.ant-progress-rtl.ant-progress-show-info .ant-progress-outer{margin-right:0;margin-left:calc(-2em - 8px);padding-right:0;padding-left:calc(2em + 8px)}.ant-progress-rtl .ant-progress-success-bg{right:0;left:auto}.ant-progress-rtl.ant-progress-line .ant-progress-text,.ant-progress-rtl.ant-progress-steps .ant-progress-text{margin-right:8px;margin-left:0;text-align:right}.ant-radio-group{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";display:inline-block;font-size:0}.ant-radio-group .ant-badge-count{z-index:1}.ant-radio-group>.ant-badge:not(:first-child)>.ant-radio-button-wrapper{border-left:none}.ant-radio-wrapper{box-sizing:border-box;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:relative;display:inline-flex;align-items:baseline;margin:0 8px 0 0;cursor:pointer}.ant-radio-wrapper:after{display:inline-block;width:0;overflow:hidden;content:"\\a0"}.ant-radio{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:relative;top:.2em;display:inline-block;outline:none;cursor:pointer}.ant-radio-input:focus+.ant-radio-inner,.ant-radio-wrapper:hover .ant-radio,.ant-radio:hover .ant-radio-inner{border-color:#1890ff}.ant-radio-input:focus+.ant-radio-inner{box-shadow:0 0 0 3px #1890ff14}.ant-radio-checked:after{position:absolute;top:0;left:0;width:100%;height:100%;border:1px solid #1890ff;border-radius:50%;visibility:hidden;animation:antRadioEffect .36s ease-in-out;animation-fill-mode:both;content:""}.ant-radio-wrapper:hover .ant-radio:after,.ant-radio:hover:after{visibility:visible}.ant-radio-inner{position:relative;top:0;left:0;display:block;width:16px;height:16px;background-color:#fff;border:1px solid #d9d9d9;border-radius:50%;transition:all .3s}.ant-radio-inner:after{position:absolute;top:3px;left:3px;display:block;width:8px;height:8px;background-color:#1890ff;border-top:0;border-left:0;border-radius:8px;transform:scale(0);opacity:0;transition:all .3s cubic-bezier(.78,.14,.15,.86);content:" "}.ant-radio-input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;cursor:pointer;opacity:0}.ant-radio-checked .ant-radio-inner{border-color:#1890ff}.ant-radio-checked .ant-radio-inner:after{transform:scale(1);opacity:1;transition:all .3s cubic-bezier(.78,.14,.15,.86)}.ant-radio-disabled{cursor:not-allowed}.ant-radio-disabled .ant-radio-inner{background-color:#f5f5f5;border-color:#d9d9d9!important;cursor:not-allowed}.ant-radio-disabled .ant-radio-inner:after{background-color:#0003}.ant-radio-disabled .ant-radio-input{cursor:not-allowed}.ant-radio-disabled+span{color:#00000040;cursor:not-allowed}span.ant-radio+*{padding-right:8px;padding-left:8px}.ant-radio-button-wrapper{position:relative;display:inline-block;height:32px;margin:0;padding:0 15px;color:#000000d9;font-size:14px;line-height:30px;background:#fff;border-color:#d9d9d9;border-style:solid;border-width:1.02px 1px 1px 0;cursor:pointer;transition:color .3s,background .3s,border-color .3s,box-shadow .3s}.ant-radio-button-wrapper a{color:#000000d9}.ant-radio-button-wrapper>.ant-radio-button{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%}.ant-radio-group-large .ant-radio-button-wrapper{height:40px;font-size:16px;line-height:38px}.ant-radio-group-small .ant-radio-button-wrapper{height:24px;padding:0 7px;line-height:22px}.ant-radio-button-wrapper:not(:first-child):before{position:absolute;top:-1px;left:-1px;display:block;box-sizing:initial;width:1px;height:100%;padding:1px 0;background-color:#d9d9d9;transition:background-color .3s;content:""}.ant-radio-button-wrapper:first-child{border-left:1px solid #d9d9d9;border-radius:2px 0 0 2px}.ant-radio-button-wrapper:last-child{border-radius:0 2px 2px 0}.ant-radio-button-wrapper:first-child:last-child{border-radius:2px}.ant-radio-button-wrapper:hover{position:relative;color:#1890ff}.ant-radio-button-wrapper:focus-within{box-shadow:0 0 0 3px #1890ff14}.ant-radio-button-wrapper .ant-radio-inner,.ant-radio-button-wrapper input[type=checkbox],.ant-radio-button-wrapper input[type=radio]{width:0;height:0;opacity:0;pointer-events:none}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled){z-index:1;color:#1890ff;background:#fff;border-color:#1890ff}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):before{background-color:#1890ff}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):first-child{border-color:#1890ff}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover{color:#40a9ff;border-color:#40a9ff}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover:before{background-color:#40a9ff}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active{color:#096dd9;border-color:#096dd9}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active:before{background-color:#096dd9}.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):focus-within{box-shadow:0 0 0 3px #1890ff14}.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled){color:#fff;background:#1890ff;border-color:#1890ff}.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover{color:#fff;background:#40a9ff;border-color:#40a9ff}.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active{color:#fff;background:#096dd9;border-color:#096dd9}.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):focus-within{box-shadow:0 0 0 3px #1890ff14}.ant-radio-button-wrapper-disabled{cursor:not-allowed}.ant-radio-button-wrapper-disabled,.ant-radio-button-wrapper-disabled:first-child,.ant-radio-button-wrapper-disabled:hover{color:#00000040;background-color:#f5f5f5;border-color:#d9d9d9}.ant-radio-button-wrapper-disabled:first-child{border-left-color:#d9d9d9}.ant-radio-button-wrapper-disabled.ant-radio-button-wrapper-checked{color:#00000040;background-color:#e6e6e6;border-color:#d9d9d9;box-shadow:none}@keyframes antRadioEffect{0%{transform:scale(1);opacity:.5}to{transform:scale(1.6);opacity:0}}.ant-radio-group.ant-radio-group-rtl{direction:rtl}.ant-radio-wrapper.ant-radio-wrapper-rtl{margin-right:0;margin-left:8px;direction:rtl}.ant-radio-button-wrapper.ant-radio-button-wrapper-rtl{border-right-width:0;border-left-width:1px}.ant-radio-button-wrapper.ant-radio-button-wrapper-rtl.ant-radio-button-wrapper:not(:first-child):before{right:-1px;left:0}.ant-radio-button-wrapper.ant-radio-button-wrapper-rtl.ant-radio-button-wrapper:first-child{border-right:1px solid #d9d9d9;border-radius:0 2px 2px 0}.ant-radio-button-wrapper-checked:not([class*=" ant-radio-button-wrapper-disabled"]).ant-radio-button-wrapper:first-child{border-right-color:#40a9ff}.ant-radio-button-wrapper.ant-radio-button-wrapper-rtl.ant-radio-button-wrapper:last-child{border-radius:2px 0 0 2px}.ant-radio-button-wrapper.ant-radio-button-wrapper-rtl.ant-radio-button-wrapper-disabled:first-child{border-right-color:#d9d9d9}.ant-radio+span:empty{display:none}.ant-rate{box-sizing:border-box;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;font-feature-settings:"tnum";display:inline-block;margin:0;padding:0;color:#fadb14;font-size:20px;line-height:unset;list-style:none;outline:none}.ant-rate-disabled .ant-rate-star{cursor:default}.ant-rate-disabled .ant-rate-star:hover{transform:scale(1)}.ant-rate-star{position:relative;display:inline-block;color:inherit;cursor:pointer}.ant-rate-star:not(:last-child){margin-right:8px}.ant-rate-star>div{transition:all .3s,outline 0s}.ant-rate-star>div:focus-visible,.ant-rate-star>div:hover{transform:scale(1.1)}.ant-rate-star>div:focus{outline:0}.ant-rate-star>div:focus-visible{outline:1px dashed #fadb14}.ant-rate-star-first,.ant-rate-star-second{color:#f0f0f0;transition:all .3s;-webkit-user-select:none;user-select:none}.ant-rate-star-first .anticon,.ant-rate-star-second .anticon{vertical-align:middle}.ant-rate-star-first{position:absolute;top:0;left:0;width:50%;height:100%;overflow:hidden;opacity:0}.ant-rate-star-half .ant-rate-star-first,.ant-rate-star-half .ant-rate-star-second{opacity:1}.ant-rate-star-full .ant-rate-star-second,.ant-rate-star-half .ant-rate-star-first{color:inherit}.ant-rate-text{display:inline-block;margin:0 8px;font-size:14px}.ant-rate-rtl{direction:rtl}.ant-rate-rtl .ant-rate-star:not(:last-child){margin-right:0;margin-left:8px}.ant-rate-rtl .ant-rate-star-first{right:0;left:auto}.ant-select-single .ant-select-selector{display:flex}.ant-select-single .ant-select-selector .ant-select-selection-search{position:absolute;top:0;right:11px;bottom:0;left:11px}.ant-select-single .ant-select-selector .ant-select-selection-search-input{width:100%}.ant-select-single .ant-select-selector .ant-select-selection-item,.ant-select-single .ant-select-selector .ant-select-selection-placeholder{padding:0;line-height:30px;transition:all .3s}@supports (-moz-appearance: meterbar){.ant-select-single .ant-select-selector .ant-select-selection-item,.ant-select-single .ant-select-selector .ant-select-selection-placeholder{line-height:30px}}.ant-select-single .ant-select-selector .ant-select-selection-item{position:relative;-webkit-user-select:none;user-select:none}.ant-select-single .ant-select-selector .ant-select-selection-placeholder{pointer-events:none}.ant-select-single .ant-select-selector .ant-select-selection-item:after,.ant-select-single .ant-select-selector .ant-select-selection-placeholder:after,.ant-select-single .ant-select-selector:after{display:inline-block;width:0;visibility:hidden;content:"\\a0"}.ant-select-single.ant-select-show-arrow .ant-select-selection-search{right:25px}.ant-select-single.ant-select-show-arrow .ant-select-selection-item,.ant-select-single.ant-select-show-arrow .ant-select-selection-placeholder{padding-right:18px}.ant-select-single.ant-select-open .ant-select-selection-item{color:#bfbfbf}.ant-select-single:not(.ant-select-customize-input) .ant-select-selector{width:100%;height:32px;padding:0 11px}.ant-select-single:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-search-input{height:30px}.ant-select-single:not(.ant-select-customize-input) .ant-select-selector:after{line-height:30px}.ant-select-single.ant-select-customize-input .ant-select-selector:after{display:none}.ant-select-single.ant-select-customize-input .ant-select-selector .ant-select-selection-search{position:static;width:100%}.ant-select-single.ant-select-customize-input .ant-select-selector .ant-select-selection-placeholder{position:absolute;right:0;left:0;padding:0 11px}.ant-select-single.ant-select-customize-input .ant-select-selector .ant-select-selection-placeholder:after{display:none}.ant-select-single.ant-select-lg:not(.ant-select-customize-input) .ant-select-selector{height:40px}.ant-select-single.ant-select-lg:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-item,.ant-select-single.ant-select-lg:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-placeholder,.ant-select-single.ant-select-lg:not(.ant-select-customize-input) .ant-select-selector:after{line-height:38px}.ant-select-single.ant-select-lg:not(.ant-select-customize-input):not(.ant-select-customize-input) .ant-select-selection-search-input{height:38px}.ant-select-single.ant-select-sm:not(.ant-select-customize-input) .ant-select-selector{height:24px}.ant-select-single.ant-select-sm:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-item,.ant-select-single.ant-select-sm:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-placeholder,.ant-select-single.ant-select-sm:not(.ant-select-customize-input) .ant-select-selector:after{line-height:22px}.ant-select-single.ant-select-sm:not(.ant-select-customize-input):not(.ant-select-customize-input) .ant-select-selection-search-input{height:22px}.ant-select-single.ant-select-sm:not(.ant-select-customize-input) .ant-select-selection-search{right:7px;left:7px}.ant-select-single.ant-select-sm:not(.ant-select-customize-input) .ant-select-selector{padding:0 7px}.ant-select-single.ant-select-sm:not(.ant-select-customize-input).ant-select-show-arrow .ant-select-selection-search{right:28px}.ant-select-single.ant-select-sm:not(.ant-select-customize-input).ant-select-show-arrow .ant-select-selection-item,.ant-select-single.ant-select-sm:not(.ant-select-customize-input).ant-select-show-arrow .ant-select-selection-placeholder{padding-right:21px}.ant-select-single.ant-select-lg:not(.ant-select-customize-input) .ant-select-selector{padding:0 11px}.ant-select-selection-overflow{position:relative;display:flex;flex:auto;flex-wrap:wrap;max-width:100%}.ant-select-selection-overflow-item{flex:none;align-self:center;max-width:100%}.ant-select-multiple .ant-select-selector{display:flex;flex-wrap:wrap;align-items:center;padding:1px 4px}.ant-select-show-search.ant-select-multiple .ant-select-selector{cursor:text}.ant-select-disabled.ant-select-multiple .ant-select-selector{background:#f5f5f5;cursor:not-allowed}.ant-select-multiple .ant-select-selector:after{display:inline-block;width:0;margin:2px 0;line-height:24px;content:"\\a0"}.ant-select-multiple.ant-select-allow-clear .ant-select-selector,.ant-select-multiple.ant-select-show-arrow .ant-select-selector{padding-right:24px}.ant-select-multiple .ant-select-selection-item{position:relative;display:flex;flex:none;box-sizing:border-box;max-width:100%;height:24px;margin-top:2px;margin-bottom:2px;line-height:22px;background:#f5f5f5;border:1px solid #f0f0f0;border-radius:2px;cursor:default;transition:font-size .3s,line-height .3s,height .3s;-webkit-user-select:none;user-select:none;margin-inline-end:4px;padding-inline-start:8px;padding-inline-end:4px}.ant-select-disabled.ant-select-multiple .ant-select-selection-item{color:#bfbfbf;border-color:#d9d9d9;cursor:not-allowed}.ant-select-multiple .ant-select-selection-item-content{display:inline-block;margin-right:4px;overflow:hidden;white-space:pre;text-overflow:ellipsis}.ant-select-multiple .ant-select-selection-item-remove{color:inherit;font-style:normal;line-height:0;text-align:center;text-transform:none;vertical-align:-.125em;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;color:#00000073;font-weight:700;font-size:10px;line-height:inherit;cursor:pointer}.ant-select-multiple .ant-select-selection-item-remove>*{line-height:1}.ant-select-multiple .ant-select-selection-item-remove svg{display:inline-block}.ant-select-multiple .ant-select-selection-item-remove:before{display:none}.ant-select-multiple .ant-select-selection-item-remove .ant-select-multiple .ant-select-selection-item-remove-icon{display:block}.ant-select-multiple .ant-select-selection-item-remove>.anticon{vertical-align:-.2em}.ant-select-multiple .ant-select-selection-item-remove:hover{color:#000000bf}.ant-select-multiple .ant-select-selection-overflow-item+.ant-select-selection-overflow-item .ant-select-selection-search{margin-inline-start:0}.ant-select-multiple .ant-select-selection-search{position:relative;max-width:100%;margin-top:2px;margin-bottom:2px;margin-inline-start:7px}.ant-select-multiple .ant-select-selection-search-input,.ant-select-multiple .ant-select-selection-search-mirror{height:24px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:24px;transition:all .3s}.ant-select-multiple .ant-select-selection-search-input{width:100%;min-width:4.1px}.ant-select-multiple .ant-select-selection-search-mirror{position:absolute;top:0;left:0;z-index:999;white-space:pre;visibility:hidden}.ant-select-multiple .ant-select-selection-placeholder{position:absolute;top:50%;right:11px;left:11px;transform:translateY(-50%);transition:all .3s}.ant-select-multiple.ant-select-lg .ant-select-selector:after{line-height:32px}.ant-select-multiple.ant-select-lg .ant-select-selection-item{line-height:30px}.ant-select-multiple.ant-select-lg .ant-select-selection-search{height:32px;line-height:32px}.ant-select-multiple.ant-select-lg .ant-select-selection-search-input,.ant-select-multiple.ant-select-lg .ant-select-selection-search-mirror{height:32px;line-height:30px}.ant-select-multiple.ant-select-sm .ant-select-selector:after{line-height:16px}.ant-select-multiple.ant-select-sm .ant-select-selection-item{height:16px;line-height:14px}.ant-select-multiple.ant-select-sm .ant-select-selection-search{height:16px;line-height:16px}.ant-select-multiple.ant-select-sm .ant-select-selection-search-input,.ant-select-multiple.ant-select-sm .ant-select-selection-search-mirror{height:16px;line-height:14px}.ant-select-multiple.ant-select-sm .ant-select-selection-placeholder{left:7px}.ant-select-multiple.ant-select-sm .ant-select-selection-search{margin-inline-start:3px}.ant-select-multiple.ant-select-lg .ant-select-selection-item{height:32px;line-height:32px}.ant-select-disabled .ant-select-selection-item-remove{display:none}.ant-select{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:relative;display:inline-block;cursor:pointer}.ant-select:not(.ant-select-customize-input) .ant-select-selector{position:relative;background-color:#fff;border:1px solid #d9d9d9;border-radius:2px;transition:all .3s cubic-bezier(.645,.045,.355,1)}.ant-select:not(.ant-select-customize-input) .ant-select-selector input{cursor:pointer}.ant-select-show-search.ant-select:not(.ant-select-customize-input) .ant-select-selector{cursor:text}.ant-select-show-search.ant-select:not(.ant-select-customize-input) .ant-select-selector input{cursor:auto}.ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector{border-color:#40a9ff;border-right-width:1px!important;outline:0;box-shadow:0 0 0 2px #1890ff33}.ant-input-rtl .ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector{border-right-width:0;border-left-width:1px!important}.ant-select-disabled.ant-select:not(.ant-select-customize-input) .ant-select-selector{color:#00000040;background:#f5f5f5;cursor:not-allowed}.ant-select-multiple.ant-select-disabled.ant-select:not(.ant-select-customize-input) .ant-select-selector{background:#f5f5f5}.ant-select-disabled.ant-select:not(.ant-select-customize-input) .ant-select-selector input{cursor:not-allowed}.ant-select:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-search-input{margin:0;padding:0;background:#0000;border:none;outline:none;-webkit-appearance:none;appearance:none}.ant-select:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-search-input::-webkit-search-cancel-button{display:none;-webkit-appearance:none}.ant-select:not(.ant-select-disabled):hover .ant-select-selector{border-color:#40a9ff;border-right-width:1px!important}.ant-input-rtl .ant-select:not(.ant-select-disabled):hover .ant-select-selector{border-right-width:0;border-left-width:1px!important}.ant-select-selection-item{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}@media all and (-ms-high-contrast: none){.ant-select-selection-item,.ant-select-selection-item ::-ms-backdrop{flex:auto}}.ant-select-selection-placeholder{flex:1;overflow:hidden;color:#bfbfbf;white-space:nowrap;text-overflow:ellipsis;pointer-events:none}@media all and (-ms-high-contrast: none){.ant-select-selection-placeholder,.ant-select-selection-placeholder ::-ms-backdrop{flex:auto}}.ant-select-arrow{display:inline-block;color:inherit;font-style:normal;line-height:0;text-transform:none;vertical-align:-.125em;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:absolute;top:50%;right:11px;width:12px;height:12px;margin-top:-6px;color:#00000040;font-size:12px;line-height:1;text-align:center;pointer-events:none}.ant-select-arrow>*{line-height:1}.ant-select-arrow svg{display:inline-block}.ant-select-arrow:before{display:none}.ant-select-arrow .ant-select-arrow-icon{display:block}.ant-select-arrow .anticon{vertical-align:top;transition:transform .3s}.ant-select-arrow .anticon>svg{vertical-align:top}.ant-select-arrow .anticon:not(.ant-select-suffix){pointer-events:auto}.ant-select-disabled .ant-select-arrow{cursor:not-allowed}.ant-select-clear{position:absolute;top:50%;right:11px;z-index:1;display:inline-block;width:12px;height:12px;margin-top:-6px;color:#00000040;font-size:12px;font-style:normal;line-height:1;text-align:center;text-transform:none;background:#fff;cursor:pointer;opacity:0;transition:color .3s ease,opacity .15s ease;text-rendering:auto}.ant-select-clear:before{display:block}.ant-select-clear:hover{color:#00000073}.ant-select:hover .ant-select-clear{opacity:1}.ant-select-dropdown{margin:0;color:#000000d9;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:absolute;top:-9999px;left:-9999px;z-index:1050;box-sizing:border-box;padding:4px 0;overflow:hidden;font-size:14px;font-variant:normal;background-color:#fff;border-radius:2px;outline:none;box-shadow:0 3px 6px -4px #0000001f,0 6px 16px 0 #00000014,0 9px 28px 8px #0000000d}.ant-select-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-select-dropdown-placement-bottomLeft,.ant-select-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-select-dropdown-placement-bottomLeft{animation-name:antSlideUpIn}.ant-select-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-select-dropdown-placement-topLeft,.ant-select-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-select-dropdown-placement-topLeft{animation-name:antSlideDownIn}.ant-select-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-select-dropdown-placement-bottomLeft{animation-name:antSlideUpOut}.ant-select-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-select-dropdown-placement-topLeft{animation-name:antSlideDownOut}.ant-select-dropdown-empty{color:#00000040}.ant-select-item-empty{color:#000000d9;color:#00000040}.ant-select-item,.ant-select-item-empty{position:relative;display:block;min-height:32px;padding:5px 12px;font-weight:400;font-size:14px;line-height:22px}.ant-select-item{color:#000000d9;cursor:pointer;transition:background .3s ease}.ant-select-item-group{color:#00000073;font-size:12px;cursor:default}.ant-select-item-option{display:flex}.ant-select-item-option-content{flex:auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ant-select-item-option-state{flex:none}.ant-select-item-option-active:not(.ant-select-item-option-disabled){background-color:#f5f5f5}.ant-select-item-option-selected:not(.ant-select-item-option-disabled){color:#000000d9;font-weight:600;background-color:#e6f7ff}.ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-state{color:#1890ff}.ant-select-item-option-disabled{color:#00000040;cursor:not-allowed}.ant-select-item-option-disabled.ant-select-item-option-selected{background-color:#f5f5f5}.ant-select-item-option-grouped{padding-left:24px}.ant-select-lg{font-size:16px}.ant-select-borderless .ant-select-selector{background-color:initial!important;border-color:#0000!important;box-shadow:none!important}.ant-select-rtl{direction:rtl}.ant-select-rtl .ant-select-arrow,.ant-select-rtl .ant-select-clear{right:auto;left:11px}.ant-select-dropdown-rtl{direction:rtl}.ant-select-dropdown-rtl .ant-select-item-option-grouped{padding-right:24px;padding-left:12px}.ant-select-rtl.ant-select-multiple.ant-select-allow-clear .ant-select-selector,.ant-select-rtl.ant-select-multiple.ant-select-show-arrow .ant-select-selector{padding-right:4px;padding-left:24px}.ant-select-rtl.ant-select-multiple .ant-select-selection-item{text-align:right}.ant-select-rtl.ant-select-multiple .ant-select-selection-item-content{margin-right:0;margin-left:4px;text-align:right}.ant-select-rtl.ant-select-multiple .ant-select-selection-search-mirror{right:0;left:auto}.ant-select-rtl.ant-select-multiple .ant-select-selection-placeholder{right:11px;left:auto}.ant-select-rtl.ant-select-multiple.ant-select-sm .ant-select-selection-placeholder{right:7px}.ant-select-rtl.ant-select-single .ant-select-selector .ant-select-selection-item,.ant-select-rtl.ant-select-single .ant-select-selector .ant-select-selection-placeholder{right:0;left:9px;text-align:right}.ant-select-rtl.ant-select-single.ant-select-show-arrow .ant-select-selection-search{right:11px;left:25px}.ant-select-rtl.ant-select-single.ant-select-show-arrow .ant-select-selection-item,.ant-select-rtl.ant-select-single.ant-select-show-arrow .ant-select-selection-placeholder{padding-right:0;padding-left:18px}.ant-select-rtl.ant-select-single.ant-select-sm:not(.ant-select-customize-input).ant-select-show-arrow .ant-select-selection-search{right:6px}.ant-select-rtl.ant-select-single.ant-select-sm:not(.ant-select-customize-input).ant-select-show-arrow .ant-select-selection-item,.ant-select-rtl.ant-select-single.ant-select-sm:not(.ant-select-customize-input).ant-select-show-arrow .ant-select-selection-placeholder{padding-right:0;padding-left:21px}.ant-select-dropdown{top:100%;left:0;position:relative;width:100%;margin-top:4px;margin-bottom:4px;display:block}.ant-select-dropdown .cdk-virtual-scroll-content-wrapper{right:0}.ant-select-dropdown .full-width{contain:none}.ant-select-dropdown .full-width .cdk-virtual-scroll-content-wrapper{position:static}.ant-skeleton{display:table;width:100%}.ant-skeleton-header{display:table-cell;padding-right:16px;vertical-align:top}.ant-skeleton-header .ant-skeleton-avatar{display:inline-block;vertical-align:top;background:#bebebe33;width:32px;height:32px;line-height:32px}.ant-skeleton-header .ant-skeleton-avatar.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-header .ant-skeleton-avatar-lg{width:40px;height:40px;line-height:40px}.ant-skeleton-header .ant-skeleton-avatar-lg.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-header .ant-skeleton-avatar-sm{width:24px;height:24px;line-height:24px}.ant-skeleton-header .ant-skeleton-avatar-sm.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-content{display:table-cell;width:100%;vertical-align:top}.ant-skeleton-content .ant-skeleton-title{width:100%;height:16px;margin-top:16px;background:#bebebe33;border-radius:4px}.ant-skeleton-content .ant-skeleton-title+.ant-skeleton-paragraph{margin-top:24px}.ant-skeleton-content .ant-skeleton-paragraph{padding:0}.ant-skeleton-content .ant-skeleton-paragraph>li{width:100%;height:16px;list-style:none;background:#bebebe33;border-radius:4px}.ant-skeleton-content .ant-skeleton-paragraph>li:last-child:not(:first-child):not(:nth-child(2)){width:61%}.ant-skeleton-content .ant-skeleton-paragraph>li+li{margin-top:16px}.ant-skeleton-with-avatar .ant-skeleton-content .ant-skeleton-title{margin-top:12px}.ant-skeleton-with-avatar .ant-skeleton-content .ant-skeleton-title+.ant-skeleton-paragraph{margin-top:28px}.ant-skeleton-round .ant-skeleton-content .ant-skeleton-paragraph>li,.ant-skeleton-round .ant-skeleton-content .ant-skeleton-title{border-radius:100px}.ant-skeleton.ant-skeleton-active .ant-skeleton-avatar,.ant-skeleton.ant-skeleton-active .ant-skeleton-button,.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-paragraph>li,.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-title,.ant-skeleton.ant-skeleton-active .ant-skeleton-image,.ant-skeleton.ant-skeleton-active .ant-skeleton-input{background:linear-gradient(90deg,#bebebe33 25%,#8181813d 37%,#bebebe33 63%);background-size:400% 100%;animation:ant-skeleton-loading 1.4s ease infinite}.ant-skeleton-element{display:inline-block;width:auto}.ant-skeleton-element .ant-skeleton-button{display:inline-block;vertical-align:top;background:#bebebe33;border-radius:2px;width:64px;height:32px;line-height:32px}.ant-skeleton-element .ant-skeleton-button.ant-skeleton-button-circle{width:32px;border-radius:50%}.ant-skeleton-element .ant-skeleton-button.ant-skeleton-button-round{border-radius:32px}.ant-skeleton-element .ant-skeleton-button-lg{width:80px;height:40px;line-height:40px}.ant-skeleton-element .ant-skeleton-button-lg.ant-skeleton-button-circle{width:40px;border-radius:50%}.ant-skeleton-element .ant-skeleton-button-lg.ant-skeleton-button-round{border-radius:40px}.ant-skeleton-element .ant-skeleton-button-sm{width:48px;height:24px;line-height:24px}.ant-skeleton-element .ant-skeleton-button-sm.ant-skeleton-button-circle{width:24px;border-radius:50%}.ant-skeleton-element .ant-skeleton-button-sm.ant-skeleton-button-round{border-radius:24px}.ant-skeleton-element .ant-skeleton-avatar{display:inline-block;vertical-align:top;background:#bebebe33;width:32px;height:32px;line-height:32px}.ant-skeleton-element .ant-skeleton-avatar.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-element .ant-skeleton-avatar-lg{width:40px;height:40px;line-height:40px}.ant-skeleton-element .ant-skeleton-avatar-lg.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-element .ant-skeleton-avatar-sm{width:24px;height:24px;line-height:24px}.ant-skeleton-element .ant-skeleton-avatar-sm.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-element .ant-skeleton-input{display:inline-block;vertical-align:top;background:#bebebe33;width:100%;height:32px;line-height:32px}.ant-skeleton-element .ant-skeleton-input-lg{width:100%;height:40px;line-height:40px}.ant-skeleton-element .ant-skeleton-input-sm{width:100%;height:24px;line-height:24px}.ant-skeleton-element .ant-skeleton-image{display:flex;align-items:center;justify-content:center;vertical-align:top;background:#bebebe33;width:96px;height:96px;line-height:96px}.ant-skeleton-element .ant-skeleton-image.ant-skeleton-image-circle{border-radius:50%}.ant-skeleton-element .ant-skeleton-image-path{fill:#bfbfbf}.ant-skeleton-element .ant-skeleton-image-svg{width:48px;height:48px;line-height:48px;max-width:192px;max-height:192px}.ant-skeleton-element .ant-skeleton-image-svg.ant-skeleton-image-circle{border-radius:50%}@keyframes ant-skeleton-loading{0%{background-position:100% 50%}to{background-position:0 50%}}.ant-skeleton-rtl{direction:rtl}.ant-skeleton-rtl .ant-skeleton-header{padding-right:0;padding-left:16px}.ant-skeleton-rtl.ant-skeleton.ant-skeleton-active .ant-skeleton-avatar,.ant-skeleton-rtl.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-paragraph>li,.ant-skeleton-rtl.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-title{animation-name:ant-skeleton-loading-rtl}@keyframes ant-skeleton-loading-rtl{0%{background-position:0 50%}to{background-position:100% 50%}}.ant-slider{box-sizing:border-box;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:relative;height:12px;margin:10px 6px;padding:4px 0;cursor:pointer;touch-action:none}.ant-slider-vertical{width:12px;height:100%;margin:6px 10px;padding:0 4px}.ant-slider-vertical .ant-slider-rail{width:4px;height:100%}.ant-slider-vertical .ant-slider-track{width:4px}.ant-slider-vertical .ant-slider-handle{margin-top:-6px;margin-left:-5px}.ant-slider-vertical .ant-slider-mark{top:0;left:12px;width:18px;height:100%}.ant-slider-vertical .ant-slider-mark-text{left:4px;white-space:nowrap}.ant-slider-vertical .ant-slider-step{width:4px;height:100%}.ant-slider-vertical .ant-slider-dot{top:auto;left:2px;margin-bottom:-4px}.ant-slider-tooltip .ant-tooltip-inner{min-width:unset}.ant-slider-rtl.ant-slider-vertical .ant-slider-handle{margin-right:-5px;margin-left:0}.ant-slider-rtl.ant-slider-vertical .ant-slider-mark{right:12px;left:auto}.ant-slider-rtl.ant-slider-vertical .ant-slider-mark-text{right:4px;left:auto}.ant-slider-rtl.ant-slider-vertical .ant-slider-dot{right:2px;left:auto}.ant-slider-with-marks{margin-bottom:28px}.ant-slider-rail{width:100%;background-color:#f5f5f5}.ant-slider-rail,.ant-slider-track{position:absolute;height:4px;border-radius:2px;transition:background-color .3s}.ant-slider-track{background-color:#91d5ff}.ant-slider-handle{position:absolute;width:14px;height:14px;margin-top:-5px;background-color:#fff;border:2px solid #91d5ff;border-radius:50%;box-shadow:0;cursor:pointer;transition:border-color .3s,box-shadow .6s,transform .3s cubic-bezier(.18,.89,.32,1.28)}.ant-slider-handle-dragging.ant-slider-handle-dragging.ant-slider-handle-dragging,.ant-slider-handle:focus{border-color:#46a6ff;box-shadow:0 0 0 5px #1890ff1f}.ant-slider-handle:focus{outline:none}.ant-slider-handle.ant-tooltip-open{border-color:#1890ff}.ant-slider:hover .ant-slider-rail{background-color:#e1e1e1}.ant-slider:hover .ant-slider-track{background-color:#69c0ff}.ant-slider:hover .ant-slider-handle:not(.ant-tooltip-open){border-color:#69c0ff}.ant-slider-mark{position:absolute;top:14px;left:0;width:100%;font-size:14px}.ant-slider-mark-text{position:absolute;display:inline-block;color:#00000073;text-align:center;word-break:keep-all;cursor:pointer;-webkit-user-select:none;user-select:none}.ant-slider-mark-text-active{color:#000000d9}.ant-slider-step{position:absolute;width:100%;height:4px;background:#0000}.ant-slider-dot{position:absolute;top:-2px;width:8px;height:8px;background-color:#fff;border:2px solid #f0f0f0;border-radius:50%;cursor:pointer}.ant-slider-dot,.ant-slider-dot:first-child,.ant-slider-dot:last-child{margin-left:-4px}.ant-slider-dot-active{border-color:#8cc8ff}.ant-slider-disabled{cursor:not-allowed}.ant-slider-disabled .ant-slider-track{background-color:#00000040!important}.ant-slider-disabled .ant-slider-dot,.ant-slider-disabled .ant-slider-handle{background-color:#fff;border-color:#00000040!important;box-shadow:none;cursor:not-allowed}.ant-slider-disabled .ant-slider-dot,.ant-slider-disabled .ant-slider-mark-text{cursor:not-allowed!important}.ant-slider-rtl{direction:rtl}.ant-slider-rtl .ant-slider-mark{right:0;left:auto}.ant-slider-rtl .ant-slider-dot,.ant-slider-rtl .ant-slider-dot:first-child,.ant-slider-rtl .ant-slider-dot:last-child{margin-right:-4px;margin-left:0}.ant-spin{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:absolute;display:none;color:#1890ff;text-align:center;vertical-align:middle;opacity:0;transition:transform .3s cubic-bezier(.78,.14,.15,.86)}.ant-spin-spinning{position:static;display:inline-block;opacity:1}.ant-spin-nested-loading{position:relative}.ant-spin-nested-loading>div>.ant-spin{position:absolute;top:0;left:0;z-index:4;display:block;width:100%;height:100%;max-height:400px}.ant-spin-nested-loading>div>.ant-spin .ant-spin-dot{position:absolute;top:50%;left:50%;margin:-10px}.ant-spin-nested-loading>div>.ant-spin .ant-spin-text{position:absolute;top:50%;width:100%;padding-top:5px;text-shadow:0 1px 2px #fff}.ant-spin-nested-loading>div>.ant-spin.ant-spin-show-text .ant-spin-dot{margin-top:-20px}.ant-spin-nested-loading>div>.ant-spin-sm .ant-spin-dot{margin:-7px}.ant-spin-nested-loading>div>.ant-spin-sm .ant-spin-text{padding-top:2px}.ant-spin-nested-loading>div>.ant-spin-sm.ant-spin-show-text .ant-spin-dot{margin-top:-17px}.ant-spin-nested-loading>div>.ant-spin-lg .ant-spin-dot{margin:-16px}.ant-spin-nested-loading>div>.ant-spin-lg .ant-spin-text{padding-top:11px}.ant-spin-nested-loading>div>.ant-spin-lg.ant-spin-show-text .ant-spin-dot{margin-top:-26px}.ant-spin-container{position:relative;transition:opacity .3s}.ant-spin-container:after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:10;display:none\\9;width:100%;height:100%;background:#fff;opacity:0;transition:all .3s;content:"";pointer-events:none}.ant-spin-blur{clear:both;overflow:hidden;opacity:.5;-webkit-user-select:none;user-select:none;pointer-events:none}.ant-spin-blur:after{opacity:.4;pointer-events:auto}.ant-spin-tip{color:#00000073}.ant-spin-dot{position:relative;display:inline-block;font-size:20px;width:1em;height:1em}.ant-spin-dot-item{position:absolute;display:block;width:9px;height:9px;background-color:#1890ff;border-radius:100%;transform:scale(.75);transform-origin:50% 50%;opacity:.3;animation:antSpinMove 1s linear infinite alternate}.ant-spin-dot-item:first-child{top:0;left:0}.ant-spin-dot-item:nth-child(2){top:0;right:0;animation-delay:.4s}.ant-spin-dot-item:nth-child(3){right:0;bottom:0;animation-delay:.8s}.ant-spin-dot-item:nth-child(4){bottom:0;left:0;animation-delay:1.2s}.ant-spin-dot-spin{transform:rotate(45deg);animation:antRotate 1.2s linear infinite}.ant-spin-sm .ant-spin-dot{font-size:14px}.ant-spin-sm .ant-spin-dot i{width:6px;height:6px}.ant-spin-lg .ant-spin-dot{font-size:32px}.ant-spin-lg .ant-spin-dot i{width:14px;height:14px}.ant-spin.ant-spin-show-text .ant-spin-text{display:block}@media all and (-ms-high-contrast: none), (-ms-high-contrast: active){.ant-spin-blur{background:#fff;opacity:.5}}@keyframes antSpinMove{to{opacity:1}}@keyframes antRotate{to{transform:rotate(405deg)}}.ant-spin-rtl{direction:rtl}.ant-spin-rtl .ant-spin-dot-spin{transform:rotate(-45deg);animation-name:antRotateRtl}@keyframes antRotateRtl{to{transform:rotate(-405deg)}}nz-spin{display:block}.ant-statistic{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum"}.ant-statistic-title{margin-bottom:4px;color:#00000073;font-size:14px}.ant-statistic-content{color:#000000d9;font-size:24px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.ant-statistic-content-value{display:inline-block;direction:ltr}.ant-statistic-content-prefix,.ant-statistic-content-suffix{display:inline-block}.ant-statistic-content-prefix{margin-right:4px}.ant-statistic-content-suffix{margin-left:4px}.ant-statistic-rtl{direction:rtl}.ant-statistic-rtl .ant-statistic-content-prefix{margin-right:0;margin-left:4px}.ant-statistic-rtl .ant-statistic-content-suffix{margin-right:4px;margin-left:0}.ant-steps{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";display:flex;width:100%;font-size:0;text-align:initial}.ant-steps-item{position:relative;display:inline-block;flex:1;overflow:hidden;vertical-align:top}.ant-steps-item-container{outline:none}.ant-steps-item:last-child{flex:none}.ant-steps-item:last-child>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-title:after,.ant-steps-item:last-child>.ant-steps-item-container>.ant-steps-item-tail{display:none}.ant-steps-item-content,.ant-steps-item-icon{display:inline-block;vertical-align:top}.ant-steps-item-icon{width:32px;height:32px;margin:0 8px 0 0;font-size:16px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:32px;text-align:center;border:1px solid #00000040;border-radius:32px;transition:background-color .3s,border-color .3s}.ant-steps-item-icon .ant-steps-icon{position:relative;top:-.5px;color:#1890ff;line-height:1}.ant-steps-item-tail{position:absolute;top:12px;left:0;width:100%;padding:0 10px}.ant-steps-item-tail:after{display:inline-block;width:100%;height:1px;background:#f0f0f0;border-radius:1px;transition:background .3s;content:""}.ant-steps-item-title{position:relative;display:inline-block;padding-right:16px;color:#000000d9;font-size:16px;line-height:32px}.ant-steps-item-title:after{position:absolute;top:16px;left:100%;display:block;width:9999px;height:1px;background:#f0f0f0;content:""}.ant-steps-item-subtitle{display:inline;margin-left:8px;font-weight:400}.ant-steps-item-description,.ant-steps-item-subtitle{color:#00000073;font-size:14px}.ant-steps-item-wait .ant-steps-item-icon{background-color:#fff;border-color:#00000040}.ant-steps-item-wait .ant-steps-item-icon>.ant-steps-icon{color:#00000040}.ant-steps-item-wait .ant-steps-item-icon>.ant-steps-icon .ant-steps-icon-dot{background:#00000040}.ant-steps-item-wait>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-title{color:#00000073}.ant-steps-item-wait>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-title:after{background-color:#f0f0f0}.ant-steps-item-wait>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-description{color:#00000073}.ant-steps-item-wait>.ant-steps-item-container>.ant-steps-item-tail:after{background-color:#f0f0f0}.ant-steps-item-process .ant-steps-item-icon{background-color:#fff;border-color:#1890ff}.ant-steps-item-process .ant-steps-item-icon>.ant-steps-icon{color:#1890ff}.ant-steps-item-process .ant-steps-item-icon>.ant-steps-icon .ant-steps-icon-dot{background:#1890ff}.ant-steps-item-process>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-title{color:#000000d9}.ant-steps-item-process>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-title:after{background-color:#f0f0f0}.ant-steps-item-process>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-description{color:#000000d9}.ant-steps-item-process>.ant-steps-item-container>.ant-steps-item-tail:after{background-color:#f0f0f0}.ant-steps-item-process>.ant-steps-item-container>.ant-steps-item-icon{background:#1890ff}.ant-steps-item-process>.ant-steps-item-container>.ant-steps-item-icon .ant-steps-icon{color:#fff}.ant-steps-item-process>.ant-steps-item-container>.ant-steps-item-title{font-weight:500}.ant-steps-item-finish .ant-steps-item-icon{background-color:#fff;border-color:#1890ff}.ant-steps-item-finish .ant-steps-item-icon>.ant-steps-icon{color:#1890ff}.ant-steps-item-finish .ant-steps-item-icon>.ant-steps-icon .ant-steps-icon-dot{background:#1890ff}.ant-steps-item-finish>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-title{color:#000000d9}.ant-steps-item-finish>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-title:after{background-color:#1890ff}.ant-steps-item-finish>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-description{color:#00000073}.ant-steps-item-finish>.ant-steps-item-container>.ant-steps-item-tail:after{background-color:#1890ff}.ant-steps-item-error .ant-steps-item-icon{background-color:#fff;border-color:#ff4d4f}.ant-steps-item-error .ant-steps-item-icon>.ant-steps-icon{color:#ff4d4f}.ant-steps-item-error .ant-steps-item-icon>.ant-steps-icon .ant-steps-icon-dot{background:#ff4d4f}.ant-steps-item-error>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-title{color:#ff4d4f}.ant-steps-item-error>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-title:after{background-color:#f0f0f0}.ant-steps-item-error>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-description{color:#ff4d4f}.ant-steps-item-error>.ant-steps-item-container>.ant-steps-item-tail:after{background-color:#f0f0f0}.ant-steps-item.ant-steps-next-error .ant-steps-item-title:after{background:#ff4d4f}.ant-steps-item-disabled{cursor:not-allowed}.ant-steps .ant-steps-item:not(.ant-steps-item-active)>.ant-steps-item-container[role=button]{cursor:pointer}.ant-steps .ant-steps-item:not(.ant-steps-item-active)>.ant-steps-item-container[role=button] .ant-steps-item-description,.ant-steps .ant-steps-item:not(.ant-steps-item-active)>.ant-steps-item-container[role=button] .ant-steps-item-icon .ant-steps-icon,.ant-steps .ant-steps-item:not(.ant-steps-item-active)>.ant-steps-item-container[role=button] .ant-steps-item-subtitle,.ant-steps .ant-steps-item:not(.ant-steps-item-active)>.ant-steps-item-container[role=button] .ant-steps-item-title{transition:color .3s}.ant-steps .ant-steps-item:not(.ant-steps-item-active)>.ant-steps-item-container[role=button]:hover .ant-steps-item-description,.ant-steps .ant-steps-item:not(.ant-steps-item-active)>.ant-steps-item-container[role=button]:hover .ant-steps-item-subtitle,.ant-steps .ant-steps-item:not(.ant-steps-item-active)>.ant-steps-item-container[role=button]:hover .ant-steps-item-title{color:#1890ff}.ant-steps .ant-steps-item:not(.ant-steps-item-active):not(.ant-steps-item-process)>.ant-steps-item-container[role=button]:hover .ant-steps-item-icon{border-color:#1890ff}.ant-steps .ant-steps-item:not(.ant-steps-item-active):not(.ant-steps-item-process)>.ant-steps-item-container[role=button]:hover .ant-steps-item-icon .ant-steps-icon{color:#1890ff}.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item{padding-left:16px;white-space:nowrap}.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item:first-child{padding-left:0}.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item:last-child .ant-steps-item-title{padding-right:0}.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item-tail{display:none}.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item-description{max-width:140px;white-space:normal}.ant-steps-item-custom>.ant-steps-item-container>.ant-steps-item-icon{height:auto;background:none;border:0}.ant-steps-item-custom>.ant-steps-item-container>.ant-steps-item-icon>.ant-steps-icon{top:0;left:.5px;width:32px;height:32px;font-size:24px;line-height:32px}.ant-steps-item-custom.ant-steps-item-process .ant-steps-item-icon>.ant-steps-icon{color:#1890ff}.ant-steps:not(.ant-steps-vertical) .ant-steps-item-custom .ant-steps-item-icon{width:auto;background:none}.ant-steps-small.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item{padding-left:12px}.ant-steps-small.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item:first-child{padding-left:0}.ant-steps-small .ant-steps-item-icon{width:24px;height:24px;margin:0 8px 0 0;font-size:12px;line-height:24px;text-align:center;border-radius:24px}.ant-steps-small .ant-steps-item-title{padding-right:12px;font-size:14px;line-height:24px}.ant-steps-small .ant-steps-item-title:after{top:12px}.ant-steps-small .ant-steps-item-description{color:#00000073;font-size:14px}.ant-steps-small .ant-steps-item-tail{top:8px}.ant-steps-small .ant-steps-item-custom .ant-steps-item-icon{width:inherit;height:inherit;line-height:inherit;background:none;border:0;border-radius:0}.ant-steps-small .ant-steps-item-custom .ant-steps-item-icon>.ant-steps-icon{font-size:24px;line-height:24px;transform:none}.ant-steps-vertical{display:flex;flex-direction:column}.ant-steps-vertical>.ant-steps-item{display:block;flex:1 0 auto;padding-left:0;overflow:visible}.ant-steps-vertical>.ant-steps-item .ant-steps-item-icon{float:left;margin-right:16px}.ant-steps-vertical>.ant-steps-item .ant-steps-item-content{display:block;min-height:48px;overflow:hidden}.ant-steps-vertical>.ant-steps-item .ant-steps-item-title{line-height:32px}.ant-steps-vertical>.ant-steps-item .ant-steps-item-description{padding-bottom:12px}.ant-steps-vertical>.ant-steps-item>.ant-steps-item-container>.ant-steps-item-tail{position:absolute;top:0;left:16px;width:1px;height:100%;padding:38px 0 6px}.ant-steps-vertical>.ant-steps-item>.ant-steps-item-container>.ant-steps-item-tail:after{width:1px;height:100%}.ant-steps-vertical>.ant-steps-item:not(:last-child)>.ant-steps-item-container>.ant-steps-item-tail{display:block}.ant-steps-vertical>.ant-steps-item>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-title:after{display:none}.ant-steps-vertical.ant-steps-small .ant-steps-item-container .ant-steps-item-tail{position:absolute;top:0;left:12px;padding:30px 0 6px}.ant-steps-vertical.ant-steps-small .ant-steps-item-container .ant-steps-item-title{line-height:24px}.ant-steps-label-vertical .ant-steps-item{overflow:visible}.ant-steps-label-vertical .ant-steps-item-tail{margin-left:58px;padding:3.5px 24px}.ant-steps-label-vertical .ant-steps-item-content{display:block;width:116px;margin-top:8px;text-align:center}.ant-steps-label-vertical .ant-steps-item-icon{display:inline-block;margin-left:42px}.ant-steps-label-vertical .ant-steps-item-title{padding-right:0;padding-left:0}.ant-steps-label-vertical .ant-steps-item-title:after{display:none}.ant-steps-label-vertical .ant-steps-item-subtitle{display:block;margin-bottom:4px;margin-left:0;line-height:1.5715}.ant-steps-label-vertical.ant-steps-small:not(.ant-steps-dot) .ant-steps-item-icon{margin-left:46px}.ant-steps-dot .ant-steps-item-title,.ant-steps-dot.ant-steps-small .ant-steps-item-title{line-height:1.5715}.ant-steps-dot .ant-steps-item-tail,.ant-steps-dot.ant-steps-small .ant-steps-item-tail{top:2px;width:100%;margin:0 0 0 70px;padding:0}.ant-steps-dot .ant-steps-item-tail:after,.ant-steps-dot.ant-steps-small .ant-steps-item-tail:after{width:calc(100% - 20px);height:3px;margin-left:12px}.ant-steps-dot .ant-steps-item:first-child .ant-steps-icon-dot,.ant-steps-dot.ant-steps-small .ant-steps-item:first-child .ant-steps-icon-dot{left:2px}.ant-steps-dot .ant-steps-item-icon,.ant-steps-dot.ant-steps-small .ant-steps-item-icon{width:8px;height:8px;margin-left:67px;padding-right:0;line-height:8px;background:#0000;border:0}.ant-steps-dot .ant-steps-item-icon .ant-steps-icon-dot,.ant-steps-dot.ant-steps-small .ant-steps-item-icon .ant-steps-icon-dot{position:relative;float:left;width:100%;height:100%;border-radius:100px;transition:all .3s}.ant-steps-dot .ant-steps-item-icon .ant-steps-icon-dot:after,.ant-steps-dot.ant-steps-small .ant-steps-item-icon .ant-steps-icon-dot:after{position:absolute;top:-12px;left:-26px;width:60px;height:32px;background:rgba(0,0,0,.001);content:""}.ant-steps-dot .ant-steps-item-content,.ant-steps-dot.ant-steps-small .ant-steps-item-content{width:140px}.ant-steps-dot .ant-steps-item-process .ant-steps-item-icon,.ant-steps-dot.ant-steps-small .ant-steps-item-process .ant-steps-item-icon{position:relative;top:-1px;width:10px;height:10px;line-height:10px;background:none}.ant-steps-dot .ant-steps-item-process .ant-steps-icon:first-child .ant-steps-icon-dot,.ant-steps-dot.ant-steps-small .ant-steps-item-process .ant-steps-icon:first-child .ant-steps-icon-dot{left:0}.ant-steps-vertical.ant-steps-dot .ant-steps-item-icon{margin-top:8px;margin-left:0;background:none}.ant-steps-vertical.ant-steps-dot .ant-steps-item>.ant-steps-item-container>.ant-steps-item-tail{top:2px;left:-9px;margin:0;padding:22px 0 4px}.ant-steps-vertical.ant-steps-dot .ant-steps-item:first-child .ant-steps-icon-dot{left:0}.ant-steps-vertical.ant-steps-dot .ant-steps-item-content{width:inherit}.ant-steps-vertical.ant-steps-dot .ant-steps-item-process .ant-steps-item-container .ant-steps-item-icon .ant-steps-icon-dot{left:-2px}.ant-steps-navigation{padding-top:12px}.ant-steps-navigation.ant-steps-small .ant-steps-item-container{margin-left:-12px}.ant-steps-navigation .ant-steps-item{overflow:visible;text-align:center}.ant-steps-navigation .ant-steps-item-container{display:inline-block;height:100%;margin-left:-16px;padding-bottom:12px;text-align:left;transition:opacity .3s}.ant-steps-navigation .ant-steps-item-container .ant-steps-item-content{max-width:auto}.ant-steps-navigation .ant-steps-item-container .ant-steps-item-title{max-width:100%;padding-right:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ant-steps-navigation .ant-steps-item-container .ant-steps-item-title:after{display:none}.ant-steps-navigation .ant-steps-item:not(.ant-steps-item-active) .ant-steps-item-container[role=button]{cursor:pointer}.ant-steps-navigation .ant-steps-item:not(.ant-steps-item-active) .ant-steps-item-container[role=button]:hover{opacity:.85}.ant-steps-navigation .ant-steps-item:last-child{flex:1}.ant-steps-navigation .ant-steps-item:last-child:after{display:none}.ant-steps-navigation .ant-steps-item:after{position:absolute;top:50%;left:100%;display:inline-block;width:12px;height:12px;margin-top:-14px;margin-left:-2px;border:1px solid #00000040;border-bottom:none;border-left:none;transform:rotate(45deg);content:""}.ant-steps-navigation .ant-steps-item:before{position:absolute;bottom:0;left:50%;display:inline-block;width:0;height:2px;background-color:#1890ff;transition:width .3s,left .3s;transition-timing-function:ease-out;content:""}.ant-steps-navigation .ant-steps-item.ant-steps-item-active:before{left:0;width:100%}.ant-steps-navigation.ant-steps-vertical>.ant-steps-item{margin-right:0!important}.ant-steps-navigation.ant-steps-vertical>.ant-steps-item:before{display:none}.ant-steps-navigation.ant-steps-vertical>.ant-steps-item.ant-steps-item-active:before{top:0;right:0;left:unset;display:block;width:3px;height:calc(100% - 24px)}.ant-steps-navigation.ant-steps-vertical>.ant-steps-item:after{position:relative;top:-2px;left:50%;display:block;width:8px;height:8px;margin-bottom:8px;text-align:center;transform:rotate(135deg)}.ant-steps-navigation.ant-steps-vertical>.ant-steps-item>.ant-steps-item-container>.ant-steps-item-tail{visibility:hidden}.ant-steps-rtl{direction:rtl}.ant-steps.ant-steps-rtl .ant-steps-item-icon{margin-right:0;margin-left:8px}.ant-steps-rtl .ant-steps-item-tail{right:0;left:auto}.ant-steps-rtl .ant-steps-item-title{padding-right:0;padding-left:16px}.ant-steps-rtl .ant-steps-item-title:after{right:100%;left:auto}.ant-steps-rtl.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item{padding-right:16px;padding-left:0}.ant-steps-rtl.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item:first-child{padding-right:0}.ant-steps-rtl.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item:last-child .ant-steps-item-title{padding-left:0}.ant-steps-rtl .ant-steps-item-custom .ant-steps-item-icon>.ant-steps-icon{right:.5px;left:auto}.ant-steps-rtl.ant-steps-navigation.ant-steps-small .ant-steps-item-container{margin-right:-12px;margin-left:0}.ant-steps-rtl.ant-steps-navigation .ant-steps-item-container{margin-right:-16px;margin-left:0;text-align:right}.ant-steps-rtl.ant-steps-navigation .ant-steps-item-container .ant-steps-item-title{padding-left:0}.ant-steps-rtl.ant-steps-navigation .ant-steps-item:after{right:100%;left:auto;margin-right:-2px;margin-left:0;transform:rotate(225deg)}.ant-steps-rtl.ant-steps-small.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item{padding-right:12px;padding-left:0}.ant-steps-rtl.ant-steps-small.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item:first-child{padding-right:0}.ant-steps-rtl.ant-steps-small .ant-steps-item-title{padding-right:0;padding-left:12px}.ant-steps-rtl.ant-steps-vertical>.ant-steps-item .ant-steps-item-icon{float:right;margin-right:0;margin-left:16px}.ant-steps-rtl.ant-steps-vertical>.ant-steps-item>.ant-steps-item-container>.ant-steps-item-tail{right:16px;left:auto}.ant-steps-rtl.ant-steps-vertical.ant-steps-small .ant-steps-item-container .ant-steps-item-tail{right:12px;left:auto}.ant-steps-rtl.ant-steps-label-vertical .ant-steps-item-title{padding-left:0}.ant-steps-rtl.ant-steps-dot .ant-steps-item-tail,.ant-steps-rtl.ant-steps-dot.ant-steps-small .ant-steps-item-tail{margin:0 70px 0 0}.ant-steps-rtl.ant-steps-dot .ant-steps-item-tail:after,.ant-steps-rtl.ant-steps-dot.ant-steps-small .ant-steps-item-tail:after{margin-right:12px;margin-left:0}.ant-steps-rtl.ant-steps-dot .ant-steps-item:first-child .ant-steps-icon-dot,.ant-steps-rtl.ant-steps-dot.ant-steps-small .ant-steps-item:first-child .ant-steps-icon-dot{right:2px;left:auto}.ant-steps-rtl.ant-steps-dot .ant-steps-item-icon,.ant-steps-rtl.ant-steps-dot.ant-steps-small .ant-steps-item-icon{margin-right:67px;margin-left:0}.ant-steps-rtl.ant-steps-dot .ant-steps-item-icon .ant-steps-icon-dot,.ant-steps-rtl.ant-steps-dot.ant-steps-small .ant-steps-item-icon .ant-steps-icon-dot{float:right}.ant-steps-rtl.ant-steps-dot .ant-steps-item-icon .ant-steps-icon-dot:after,.ant-steps-rtl.ant-steps-dot.ant-steps-small .ant-steps-item-icon .ant-steps-icon-dot:after{right:-26px;left:auto}.ant-steps-rtl.ant-steps-vertical.ant-steps-dot .ant-steps-item-icon{margin-right:0;margin-left:16px}.ant-steps-rtl.ant-steps-vertical.ant-steps-dot .ant-steps-item>.ant-steps-item-container>.ant-steps-item-tail{right:-9px;left:auto}.ant-steps-rtl.ant-steps-vertical.ant-steps-dot .ant-steps-item:first-child .ant-steps-icon-dot{right:0;left:auto}.ant-steps-rtl.ant-steps-vertical.ant-steps-dot .ant-steps-item-process .ant-steps-icon-dot{right:-2px;left:auto}.ant-steps-rtl.ant-steps-with-progress.ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item:first-child.ant-steps-item-active{padding-right:4px}.ant-steps-with-progress .ant-steps-item{padding-top:4px}.ant-steps-with-progress .ant-steps-item .ant-steps-item-tail{top:4px!important}.ant-steps-with-progress.ant-steps-horizontal .ant-steps-item:first-child{padding-bottom:4px;padding-left:4px}.ant-steps-with-progress .ant-steps-item-icon{position:relative}.ant-steps-with-progress .ant-steps-item-icon .ant-progress{position:absolute;top:-5px;right:-5px;bottom:-5px;left:-5px}.ant-switch{margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:relative;display:inline-block;box-sizing:border-box;min-width:44px;height:22px;line-height:22px;vertical-align:middle;background-color:#00000040;border:0;border-radius:100px;cursor:pointer;transition:all .2s;-webkit-user-select:none;user-select:none}.ant-switch:focus{outline:0;box-shadow:0 0 0 2px #0000001a}.ant-switch-checked:focus{box-shadow:0 0 0 2px #1890ff33}.ant-switch:focus:hover{box-shadow:none}.ant-switch-checked{background-color:#1890ff}.ant-switch-disabled,.ant-switch-loading{cursor:not-allowed;opacity:.4}.ant-switch-disabled *,.ant-switch-loading *{box-shadow:none;cursor:not-allowed}.ant-switch-inner{display:block;margin:0 7px 0 25px;color:#fff;font-size:12px;transition:margin .2s}.ant-switch-checked .ant-switch-inner{margin:0 25px 0 7px}.ant-switch-handle{top:2px;left:2px;width:18px;height:18px}.ant-switch-handle,.ant-switch-handle:before{position:absolute;transition:all .2s ease-in-out}.ant-switch-handle:before{top:0;right:0;bottom:0;left:0;background-color:#fff;border-radius:9px;box-shadow:0 2px 4px 0 #00230b33;content:""}.ant-switch-checked .ant-switch-handle{left:calc(100% - 18px - 2px)}.ant-switch:not(.ant-switch-disabled):active .ant-switch-handle:before{right:-30%;left:0}.ant-switch:not(.ant-switch-disabled):active.ant-switch-checked .ant-switch-handle:before{right:0;left:-30%}.ant-switch-loading-icon{position:relative;top:2px;color:#000000a6;vertical-align:top}.ant-switch-checked .ant-switch-loading-icon{color:#1890ff}.ant-switch-small{min-width:28px;height:16px;line-height:16px}.ant-switch-small .ant-switch-inner{margin:0 5px 0 18px;font-size:12px}.ant-switch-small .ant-switch-handle{width:12px;height:12px}.ant-switch-small .ant-switch-loading-icon{top:1.5px;font-size:9px}.ant-switch-small.ant-switch-checked .ant-switch-inner{margin:0 18px 0 5px}.ant-switch-small.ant-switch-checked .ant-switch-handle{left:calc(100% - 12px - 2px)}.ant-switch-rtl{direction:rtl}.ant-switch-rtl .ant-switch-inner{margin:0 25px 0 7px}.ant-switch-rtl .ant-switch-handle{right:2px;left:auto}.ant-switch-rtl:not(.ant-switch-rtl-disabled):active .ant-switch-handle:before{right:0;left:-30%}.ant-switch-rtl:not(.ant-switch-rtl-disabled):active.ant-switch-checked .ant-switch-handle:before{right:-30%;left:0}.ant-switch-rtl.ant-switch-checked .ant-switch-inner{margin:0 7px 0 25px}.ant-switch-rtl.ant-switch-checked .ant-switch-handle{right:calc(100% - 18px - 2px)}.ant-switch-rtl.ant-switch-small.ant-switch-checked .ant-switch-handle{right:calc(100% - 12px - 2px)}nz-switch{display:inline-block}.ant-table.ant-table-middle{font-size:14px}.ant-table.ant-table-middle .ant-table-footer,.ant-table.ant-table-middle .ant-table-tbody>tr>td,.ant-table.ant-table-middle .ant-table-thead>tr>th,.ant-table.ant-table-middle .ant-table-title,.ant-table.ant-table-middle tfoot>tr>td,.ant-table.ant-table-middle tfoot>tr>th{padding:12px 8px}.ant-table.ant-table-middle .ant-table-filter-trigger{margin-right:-4px}.ant-table.ant-table-middle .ant-table-expanded-row-fixed{margin:-12px -8px}.ant-table.ant-table-middle .ant-table-tbody .ant-table-wrapper:only-child .ant-table{margin:-12px -8px -12px 25px}.ant-table.ant-table-small{font-size:14px}.ant-table.ant-table-small .ant-table-footer,.ant-table.ant-table-small .ant-table-tbody>tr>td,.ant-table.ant-table-small .ant-table-thead>tr>th,.ant-table.ant-table-small .ant-table-title,.ant-table.ant-table-small tfoot>tr>td,.ant-table.ant-table-small tfoot>tr>th{padding:8px}.ant-table.ant-table-small .ant-table-filter-trigger{margin-right:-4px}.ant-table.ant-table-small .ant-table-expanded-row-fixed{margin:-8px}.ant-table.ant-table-small .ant-table-tbody .ant-table-wrapper:only-child .ant-table{margin:-8px -8px -8px 25px}.ant-table-small .ant-table-thead>tr>th{background-color:#fafafa}.ant-table-small .ant-table-selection-column{width:46px;min-width:46px}.ant-table.ant-table-bordered>.ant-table-title{border:1px solid #f0f0f0;border-bottom:0}.ant-table.ant-table-bordered>.ant-table-container{border-left:1px solid #f0f0f0}.ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>tbody>tr>td,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>tfoot>tr>td,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>tfoot>tr>th,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>thead>tr>th,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>tbody>tr>td,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>tfoot>tr>td,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>tfoot>tr>th,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>thead>tr>th,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>tbody>tr>td,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>tfoot>tr>td,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>tfoot>tr>th,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>thead>tr>th,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-summary>table>tbody>tr>td,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-summary>table>tfoot>tr>td,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-summary>table>tfoot>tr>th,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-summary>table>thead>tr>th{border-right:1px solid #f0f0f0}.ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>thead>tr:not(:last-child)>th,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>thead>tr:not(:last-child)>th,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>thead>tr:not(:last-child)>th,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-summary>table>thead>tr:not(:last-child)>th{border-bottom:1px solid #f0f0f0}.ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>thead>tr>th:before,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>thead>tr>th:before,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>thead>tr>th:before,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-summary>table>thead>tr>th:before{background-color:initial!important}.ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>tbody>tr>.ant-table-cell-fix-right-first:after,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>tfoot>tr>.ant-table-cell-fix-right-first:after,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>thead>tr>.ant-table-cell-fix-right-first:after,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>tbody>tr>.ant-table-cell-fix-right-first:after,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>tfoot>tr>.ant-table-cell-fix-right-first:after,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>thead>tr>.ant-table-cell-fix-right-first:after,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>tbody>tr>.ant-table-cell-fix-right-first:after,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>tfoot>tr>.ant-table-cell-fix-right-first:after,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>thead>tr>.ant-table-cell-fix-right-first:after,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-summary>table>tbody>tr>.ant-table-cell-fix-right-first:after,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-summary>table>tfoot>tr>.ant-table-cell-fix-right-first:after,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-summary>table>thead>tr>.ant-table-cell-fix-right-first:after{border-right:1px solid #f0f0f0}.ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>tbody>tr>td>.ant-table-expanded-row-fixed,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>tbody>tr>td>.ant-table-expanded-row-fixed,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>tbody>tr>td>.ant-table-expanded-row-fixed,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-summary>table>tbody>tr>td>.ant-table-expanded-row-fixed{margin:-16px -17px}.ant-table.ant-table-bordered>.ant-table-container>.ant-table-body>table>tbody>tr>td>.ant-table-expanded-row-fixed:after,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table>tbody>tr>td>.ant-table-expanded-row-fixed:after,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table>tbody>tr>td>.ant-table-expanded-row-fixed:after,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-summary>table>tbody>tr>td>.ant-table-expanded-row-fixed:after{position:absolute;top:0;right:1px;bottom:0;border-right:1px solid #f0f0f0;content:""}.ant-table.ant-table-bordered>.ant-table-container>.ant-table-content>table,.ant-table.ant-table-bordered>.ant-table-container>.ant-table-header>table{border-top:1px solid #f0f0f0}.ant-table.ant-table-bordered.ant-table-scroll-horizontal>.ant-table-container>.ant-table-body>table>tbody>tr.ant-table-expanded-row>td,.ant-table.ant-table-bordered.ant-table-scroll-horizontal>.ant-table-container>.ant-table-body>table>tbody>tr.ant-table-placeholder>td{border-right:0}.ant-table.ant-table-bordered.ant-table-middle>.ant-table-container>.ant-table-body>table>tbody>tr>td>.ant-table-expanded-row-fixed,.ant-table.ant-table-bordered.ant-table-middle>.ant-table-container>.ant-table-content>table>tbody>tr>td>.ant-table-expanded-row-fixed{margin:-12px -9px}.ant-table.ant-table-bordered.ant-table-small>.ant-table-container>.ant-table-body>table>tbody>tr>td>.ant-table-expanded-row-fixed,.ant-table.ant-table-bordered.ant-table-small>.ant-table-container>.ant-table-content>table>tbody>tr>td>.ant-table-expanded-row-fixed{margin:-8px -9px}.ant-table.ant-table-bordered>.ant-table-footer{border:1px solid #f0f0f0;border-top:0}.ant-table-cell .ant-table-container:first-child{border-top:0}.ant-table-cell-scrollbar{box-shadow:0 1px 0 1px #fafafa}.ant-table-wrapper{clear:both;max-width:100%}.ant-table-wrapper:before{display:table;content:""}.ant-table-wrapper:after{display:table;clear:both;content:""}.ant-table{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:relative;font-size:14px;background:#fff;border-radius:2px}.ant-table table{width:100%;text-align:left;border-radius:2px 2px 0 0;border-collapse:initial;border-spacing:0}.ant-table tfoot>tr>td,.ant-table tfoot>tr>th,.ant-table-tbody>tr>td,.ant-table-thead>tr>th{position:relative;padding:16px;overflow-wrap:break-word}.ant-table-cell-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;word-break:keep-all}.ant-table-cell-ellipsis.ant-table-cell-fix-left-last,.ant-table-cell-ellipsis.ant-table-cell-fix-right-first{overflow:visible}.ant-table-cell-ellipsis.ant-table-cell-fix-left-last .ant-table-cell-content,.ant-table-cell-ellipsis.ant-table-cell-fix-right-first .ant-table-cell-content{display:block;overflow:hidden;text-overflow:ellipsis}.ant-table-cell-ellipsis .ant-table-column-title{overflow:hidden;text-overflow:ellipsis;word-break:keep-all}.ant-table-title{padding:16px}.ant-table-footer{padding:16px;color:#000000d9;background:#fafafa}.ant-table-thead>tr>th{position:relative;color:#000000d9;font-weight:500;text-align:left;background:#fafafa;border-bottom:1px solid #f0f0f0;transition:background .3s ease}.ant-table-thead>tr>th[colspan]:not([colspan="1"]){text-align:center}.ant-table-thead>tr>th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan]):before{position:absolute;top:50%;right:0;width:1px;height:1.6em;background-color:#0000000f;transform:translateY(-50%);transition:background-color .3s;content:""}.ant-table-thead>tr:not(:last-child)>th[colspan]{border-bottom:0}.ant-table-tbody>tr>td{border-bottom:1px solid #f0f0f0;transition:background .3s}.ant-table-tbody>tr>td>.ant-table-expanded-row-fixed>.ant-table-wrapper:only-child .ant-table,.ant-table-tbody>tr>td>.ant-table-wrapper:only-child .ant-table{margin:-16px -16px -16px 33px}.ant-table-tbody>tr>td>.ant-table-expanded-row-fixed>.ant-table-wrapper:only-child .ant-table-tbody>tr:last-child>td,.ant-table-tbody>tr>td>.ant-table-wrapper:only-child .ant-table-tbody>tr:last-child>td{border-bottom:0}.ant-table-tbody>tr>td>.ant-table-expanded-row-fixed>.ant-table-wrapper:only-child .ant-table-tbody>tr:last-child>td:first-child,.ant-table-tbody>tr>td>.ant-table-expanded-row-fixed>.ant-table-wrapper:only-child .ant-table-tbody>tr:last-child>td:last-child,.ant-table-tbody>tr>td>.ant-table-wrapper:only-child .ant-table-tbody>tr:last-child>td:first-child,.ant-table-tbody>tr>td>.ant-table-wrapper:only-child .ant-table-tbody>tr:last-child>td:last-child{border-radius:0}.ant-table-tbody>tr.ant-table-row:hover>td{background:#fafafa}.ant-table-tbody>tr.ant-table-row-selected>td{background:#e6f7ff;border-color:#00000008}.ant-table-tbody>tr.ant-table-row-selected:hover>td{background:#dcf4ff}.ant-table-summary{position:relative;z-index:2;background:#fff}div.ant-table-summary{box-shadow:0 -1px 0 #f0f0f0}.ant-table-summary>tr>td,.ant-table-summary>tr>th{border-bottom:1px solid #f0f0f0}.ant-table-pagination.ant-pagination{margin:16px 0}.ant-table-pagination{display:flex;flex-wrap:wrap;grid-row-gap:8px;row-gap:8px}.ant-table-pagination>*{flex:none}.ant-table-pagination-left{justify-content:flex-start}.ant-table-pagination-center{justify-content:center}.ant-table-pagination-right{justify-content:flex-end}.ant-table-thead th.ant-table-column-has-sorters{cursor:pointer;transition:all .3s}.ant-table-thead th.ant-table-column-has-sorters:hover{background:#0000000a}.ant-table-thead th.ant-table-column-has-sorters:hover:before{background-color:initial!important}.ant-table-thead th.ant-table-column-has-sorters.ant-table-cell-fix-left:hover,.ant-table-thead th.ant-table-column-has-sorters.ant-table-cell-fix-right:hover,.ant-table-thead th.ant-table-column-sort{background:#f5f5f5}.ant-table-thead th.ant-table-column-sort:before{background-color:initial!important}td.ant-table-column-sort{background:#fafafa}.ant-table-column-title{position:relative;z-index:1;flex:1}.ant-table-column-sorters{display:flex;flex:auto;align-items:center;justify-content:space-between}.ant-table-column-sorters:after{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;content:""}.ant-table-column-sorter{color:#bfbfbf;font-size:0;transition:color .3s}.ant-table-column-sorter-inner{display:inline-flex;flex-direction:column;align-items:center}.ant-table-column-sorter-down,.ant-table-column-sorter-up{font-size:11px}.ant-table-column-sorter-down.active,.ant-table-column-sorter-up.active{color:#1890ff}.ant-table-column-sorter-up+.ant-table-column-sorter-down{margin-top:-.3em}.ant-table-column-sorters:hover .ant-table-column-sorter{color:#a6a6a6}.ant-table-filter-column{display:flex;justify-content:space-between}.ant-table-filter-trigger{position:relative;display:flex;align-items:center;margin:-4px -8px -4px 4px;padding:0 4px;color:#bfbfbf;font-size:12px;border-radius:2px;cursor:pointer;transition:all .3s}.ant-table-filter-trigger:hover{color:#00000073;background:#0000000a}.ant-table-filter-trigger.active{color:#1890ff}.ant-table-filter-dropdown{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";min-width:120px;background-color:#fff;border-radius:2px;box-shadow:0 3px 6px -4px #0000001f,0 6px 16px 0 #00000014,0 9px 28px 8px #0000000d}.ant-table-filter-dropdown .ant-dropdown-menu{max-height:264px;overflow-x:hidden;border:0;box-shadow:none}.ant-table-filter-dropdown-submenu>ul{max-height:calc(100vh - 130px);overflow-x:hidden;overflow-y:auto}.ant-table-filter-dropdown .ant-checkbox-wrapper+span,.ant-table-filter-dropdown-submenu .ant-checkbox-wrapper+span{padding-left:8px}.ant-table-filter-dropdown-btns{display:flex;justify-content:space-between;padding:7px 8px 7px 3px;overflow:hidden;background-color:inherit;border-top:1px solid #f0f0f0}.ant-table-selection-col{width:32px}.ant-table-bordered .ant-table-selection-col{width:50px}table tr td.ant-table-selection-column,table tr th.ant-table-selection-column{padding-right:8px;padding-left:8px;text-align:center}table tr td.ant-table-selection-column .ant-radio-wrapper,table tr th.ant-table-selection-column .ant-radio-wrapper{margin-right:0}table tr th.ant-table-selection-column:after{background-color:initial!important}.ant-table-selection{position:relative;display:inline-flex;flex-direction:column}.ant-table-selection-extra{position:absolute;top:0;z-index:1;cursor:pointer;transition:all .3s;margin-inline-start:100%;padding-inline-start:4px}.ant-table-selection-extra .anticon{color:#bfbfbf;font-size:10px}.ant-table-selection-extra .anticon:hover{color:#a6a6a6}.ant-table-expand-icon-col{width:48px}.ant-table-row-expand-icon-cell{text-align:center}.ant-table-row-indent{float:left;height:1px}.ant-table-row-expand-icon{color:#1890ff;text-decoration:none;cursor:pointer;transition:color .3s;position:relative;display:inline-flex;float:left;box-sizing:border-box;width:17px;height:17px;padding:0;color:inherit;line-height:17px;background:#fff;border:1px solid #f0f0f0;border-radius:2px;outline:none;transform:scale(.94117647);transition:all .3s;-webkit-user-select:none;user-select:none}.ant-table-row-expand-icon:focus,.ant-table-row-expand-icon:hover{color:#40a9ff}.ant-table-row-expand-icon:active{color:#096dd9}.ant-table-row-expand-icon:active,.ant-table-row-expand-icon:focus,.ant-table-row-expand-icon:hover{border-color:currentColor}.ant-table-row-expand-icon:after,.ant-table-row-expand-icon:before{position:absolute;background:currentColor;transition:transform .3s ease-out;content:""}.ant-table-row-expand-icon:before{top:7px;right:3px;left:3px;height:1px}.ant-table-row-expand-icon:after{top:3px;bottom:3px;left:7px;width:1px;transform:rotate(90deg)}.ant-table-row-expand-icon-collapsed:before{transform:rotate(-180deg)}.ant-table-row-expand-icon-collapsed:after{transform:rotate(0deg)}.ant-table-row-expand-icon-spaced{background:#0000;border:0;visibility:hidden}.ant-table-row-expand-icon-spaced:after,.ant-table-row-expand-icon-spaced:before{display:none;content:none}.ant-table-row-indent+.ant-table-row-expand-icon{margin-top:2.5005px;margin-right:8px}tr.ant-table-expanded-row:hover>td,tr.ant-table-expanded-row>td{background:#fbfbfb}tr.ant-table-expanded-row .ant-descriptions-view{display:flex}tr.ant-table-expanded-row .ant-descriptions-view table{flex:auto;width:auto}.ant-table .ant-table-expanded-row-fixed{position:relative;margin:-16px;padding:16px}.ant-table-tbody>tr.ant-table-placeholder{text-align:center}.ant-table-empty .ant-table-tbody>tr.ant-table-placeholder{color:#00000040}.ant-table-tbody>tr.ant-table-placeholder:hover>td{background:#fff}.ant-table-cell-fix-left,.ant-table-cell-fix-right{position:sticky!important;z-index:2;background:#fff}.ant-table-cell-fix-left-first:after,.ant-table-cell-fix-left-last:after{position:absolute;top:0;right:0;bottom:-1px;width:30px;transform:translateX(100%);transition:box-shadow .3s;content:"";pointer-events:none}.ant-table-cell-fix-right-first:after,.ant-table-cell-fix-right-last:after{position:absolute;top:0;bottom:-1px;left:0;width:30px;transform:translateX(-100%);transition:box-shadow .3s;content:"";pointer-events:none}.ant-table .ant-table-container:after,.ant-table .ant-table-container:before{position:absolute;top:0;bottom:0;z-index:1;width:30px;transition:box-shadow .3s;content:"";pointer-events:none}.ant-table .ant-table-container:before{left:0}.ant-table .ant-table-container:after{right:0}.ant-table-ping-left:not(.ant-table-has-fix-left) .ant-table-container{position:relative}.ant-table-ping-left .ant-table-cell-fix-left-first:after,.ant-table-ping-left .ant-table-cell-fix-left-last:after,.ant-table-ping-left:not(.ant-table-has-fix-left) .ant-table-container:before{box-shadow:inset 10px 0 8px -8px #00000026}.ant-table-ping-left .ant-table-cell-fix-left-last:before{background-color:initial!important}.ant-table-ping-right:not(.ant-table-has-fix-right) .ant-table-container{position:relative}.ant-table-ping-right .ant-table-cell-fix-right-first:after,.ant-table-ping-right .ant-table-cell-fix-right-last:after,.ant-table-ping-right:not(.ant-table-has-fix-right) .ant-table-container:after{box-shadow:inset -10px 0 8px -8px #00000026}.ant-table-sticky-holder,.ant-table-sticky-scroll{position:sticky;z-index:3;background:#fff}.ant-table-sticky-scroll{bottom:0;display:flex;align-items:center;border-top:1px solid #f0f0f0;opacity:.6}.ant-table-sticky-scroll:hover{transform-origin:center bottom}.ant-table-sticky-scroll-bar{height:8px;background-color:#00000059;border-radius:4px}.ant-table-sticky-scroll-bar-active,.ant-table-sticky-scroll-bar:hover{background-color:#000c}@media all and (-ms-high-contrast: none){.ant-table-ping-left .ant-table-cell-fix-left-last:after,.ant-table-ping-right .ant-table-cell-fix-right-first:after{box-shadow:none!important}}.ant-table-title{border-radius:2px 2px 0 0}.ant-table-title+.ant-table-container{border-top-left-radius:0;border-top-right-radius:0}.ant-table-title+.ant-table-container table>thead>tr:first-child th:first-child,.ant-table-title+.ant-table-container table>thead>tr:first-child th:last-child{border-radius:0}.ant-table-container{border-top-right-radius:2px}.ant-table-container,.ant-table-container table>thead>tr:first-child th:first-child{border-top-left-radius:2px}.ant-table-container table>thead>tr:first-child th:last-child{border-top-right-radius:2px}.ant-table-footer{border-radius:0 0 2px 2px}.ant-table-rtl,.ant-table-wrapper-rtl{direction:rtl}.ant-table-wrapper-rtl .ant-table table{text-align:right}.ant-table-wrapper-rtl .ant-table-thead>tr>th[colspan]:not([colspan="1"]){text-align:center}.ant-table-wrapper-rtl .ant-table-thead>tr>th{text-align:right}.ant-table-tbody>tr .ant-table-wrapper:only-child .ant-table.ant-table-rtl{margin:-16px 33px -16px -16px}.ant-table-wrapper.ant-table-wrapper-rtl .ant-table-pagination-left{justify-content:flex-end}.ant-table-wrapper.ant-table-wrapper-rtl .ant-table-pagination-right{justify-content:flex-start}.ant-table-wrapper-rtl .ant-table-column-sorter{margin-right:8px;margin-left:0}.ant-table-wrapper-rtl .ant-table-filter-column-title{padding:16px 16px 16px 2.3em}.ant-table-rtl .ant-table-thead tr th.ant-table-column-has-sorters .ant-table-filter-column-title{padding:0 0 0 2.3em}.ant-table-wrapper-rtl .ant-table-filter-trigger-container{right:auto;left:0}.ant-dropdown-menu-submenu-rtl.ant-table-filter-dropdown .ant-checkbox-wrapper+span,.ant-dropdown-menu-submenu-rtl.ant-table-filter-dropdown-submenu .ant-checkbox-wrapper+span,.ant-dropdown-rtl .ant-table-filter-dropdown .ant-checkbox-wrapper+span,.ant-dropdown-rtl .ant-table-filter-dropdown-submenu .ant-checkbox-wrapper+span{padding-right:8px;padding-left:0}.ant-table-wrapper-rtl .ant-table-selection{text-align:center}.ant-table-wrapper-rtl .ant-table-row-expand-icon,.ant-table-wrapper-rtl .ant-table-row-indent{float:right}.ant-table-wrapper-rtl .ant-table-row-indent+.ant-table-row-expand-icon{margin-right:0;margin-left:8px}.ant-table-wrapper-rtl .ant-table-row-expand-icon:after{transform:rotate(-90deg)}.ant-table-wrapper-rtl .ant-table-row-expand-icon-collapsed:before{transform:rotate(180deg)}.ant-table-wrapper-rtl .ant-table-row-expand-icon-collapsed:after{transform:rotate(0deg)}nz-table,nz-table-inner-default,nz-table-inner-scroll,nz-table-selection,nz-table-title-footer{display:block}nz-filter-trigger{display:inline-flex}.nz-table-out-bordered>.ant-table-container,.nz-table-out-bordered>.ant-table-title{border:1px solid #f0f0f0;border-bottom:0}.nz-table-out-bordered>.ant-table-footer{border:1px solid #f0f0f0;border-top:0}cdk-virtual-scroll-viewport.ant-table-body{overflow-y:scroll}.nz-table-hide-scrollbar{scrollbar-color:#fafafa #fafafa}.nz-table-hide-scrollbar::-webkit-scrollbar{background-color:#fafafa}.ant-table.ant-table-small .nz-table-hide-scrollbar{scrollbar-color:#fafafa #fafafa}.ant-table.ant-table-small .nz-table-hide-scrollbar::-webkit-scrollbar{background-color:initial}.ant-table-wrapper-rtl .ant-table thead>tr>th.ant-table-selection-column{text-align:center}.ant-table.ant-table-bordered>.ant-table-container>.cdk-virtual-scroll-viewport>.cdk-virtual-scroll-content-wrapper>table>tbody>tr>td,.ant-table.ant-table-bordered>.ant-table-container>.cdk-virtual-scroll-viewport>.cdk-virtual-scroll-content-wrapper>table>tfoot>tr>td,.ant-table.ant-table-bordered>.ant-table-container>.cdk-virtual-scroll-viewport>.cdk-virtual-scroll-content-wrapper>table>tfoot>tr>th,.ant-table.ant-table-bordered>.ant-table-container>.cdk-virtual-scroll-viewport>.cdk-virtual-scroll-content-wrapper>table>thead>tr>th{border-right:1px solid #f0f0f0}.ant-table.ant-table-bordered>.ant-table-container>.cdk-virtual-scroll-viewport>.cdk-virtual-scroll-content-wrapper>table>thead>tr:not(:last-child)>th{border-bottom:1px solid #f0f0f0}.ant-table.ant-table-bordered>.ant-table-container>.cdk-virtual-scroll-viewport>.cdk-virtual-scroll-content-wrapper>table>tbody>tr>.ant-table-cell-fix-right-first:after,.ant-table.ant-table-bordered>.ant-table-container>.cdk-virtual-scroll-viewport>.cdk-virtual-scroll-content-wrapper>table>tfoot>tr>.ant-table-cell-fix-right-first:after,.ant-table.ant-table-bordered>.ant-table-container>.cdk-virtual-scroll-viewport>.cdk-virtual-scroll-content-wrapper>table>thead>tr>.ant-table-cell-fix-right-first:after{border-right:1px solid #f0f0f0}.ant-table.ant-table-bordered>.ant-table-container>.cdk-virtual-scroll-viewport>.cdk-virtual-scroll-content-wrapper>table>tbody>tr>td>.ant-table-expanded-row-fixed{margin:-16px -17px}.ant-table.ant-table-bordered>.ant-table-container>.cdk-virtual-scroll-viewport>.cdk-virtual-scroll-content-wrapper>table>tbody>tr>td>.ant-table-expanded-row-fixed:after{position:absolute;top:0;right:1px;bottom:0;border-right:1px solid #f0f0f0;content:""}.ant-table.ant-table-bordered.ant-table-scroll-horizontal>.ant-table-container>.cdk-virtual-scroll-viewport>.cdk-virtual-scroll-content-wrapper>table>tbody>tr.ant-table-expanded-row>td,.ant-table.ant-table-bordered.ant-table-scroll-horizontal>.ant-table-container>.cdk-virtual-scroll-viewport>.cdk-virtual-scroll-content-wrapper>table>tbody>tr.ant-table-placeholder>td{border-right:0}.ant-table.ant-table-bordered.ant-table-middle>.ant-table-container>.cdk-virtual-scroll-viewport>.cdk-virtual-scroll-content-wrapper>table>tbody>tr>td>.ant-table-expanded-row-fixed{margin:-12px -9px}.ant-table.ant-table-bordered.ant-table-small>.ant-table-container>.cdk-virtual-scroll-viewport>.cdk-virtual-scroll-content-wrapper>table>tbody>tr>td>.ant-table-expanded-row-fixed{margin:-8px -9px}.ant-tabs-small>.ant-tabs-nav .ant-tabs-tab{padding:8px 0;font-size:14px}.ant-tabs-large>.ant-tabs-nav .ant-tabs-tab{padding:16px 0;font-size:16px}.ant-tabs-card.ant-tabs-small>.ant-tabs-nav .ant-tabs-tab{padding:6px 16px}.ant-tabs-card.ant-tabs-large>.ant-tabs-nav .ant-tabs-tab{padding:7px 16px 6px}.ant-tabs-rtl{direction:rtl}.ant-tabs-rtl .ant-tabs-nav .ant-tabs-tab{margin:0 0 0 32px}.ant-tabs-rtl .ant-tabs-nav .ant-tabs-tab:last-of-type{margin-left:0}.ant-tabs-rtl .ant-tabs-nav .ant-tabs-tab .anticon{margin-right:0;margin-left:12px}.ant-tabs-rtl .ant-tabs-nav .ant-tabs-tab .ant-tabs-tab-remove{margin-right:8px;margin-left:-4px}.ant-tabs-rtl .ant-tabs-nav .ant-tabs-tab .ant-tabs-tab-remove .anticon{margin:0}.ant-tabs-rtl.ant-tabs-left>.ant-tabs-nav{order:1}.ant-tabs-rtl.ant-tabs-left>.ant-tabs-content-holder,.ant-tabs-rtl.ant-tabs-right>.ant-tabs-nav{order:0}.ant-tabs-rtl.ant-tabs-right>.ant-tabs-content-holder{order:1}.ant-tabs-rtl.ant-tabs-card.ant-tabs-bottom>.ant-tabs-nav .ant-tabs-nav-add,.ant-tabs-rtl.ant-tabs-card.ant-tabs-bottom>.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab,.ant-tabs-rtl.ant-tabs-card.ant-tabs-bottom>div>.ant-tabs-nav .ant-tabs-nav-add,.ant-tabs-rtl.ant-tabs-card.ant-tabs-bottom>div>.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab,.ant-tabs-rtl.ant-tabs-card.ant-tabs-top>.ant-tabs-nav .ant-tabs-nav-add,.ant-tabs-rtl.ant-tabs-card.ant-tabs-top>.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab,.ant-tabs-rtl.ant-tabs-card.ant-tabs-top>div>.ant-tabs-nav .ant-tabs-nav-add,.ant-tabs-rtl.ant-tabs-card.ant-tabs-top>div>.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab{margin-right:2px;margin-left:0}.ant-tabs-dropdown-rtl{direction:rtl}.ant-tabs-dropdown-rtl .ant-tabs-dropdown-menu-item{text-align:right}.ant-tabs-bottom,.ant-tabs-top{flex-direction:column}.ant-tabs-bottom>.ant-tabs-nav,.ant-tabs-bottom>div>.ant-tabs-nav,.ant-tabs-top>.ant-tabs-nav,.ant-tabs-top>div>.ant-tabs-nav{margin:0 0 16px}.ant-tabs-bottom>.ant-tabs-nav:before,.ant-tabs-bottom>div>.ant-tabs-nav:before,.ant-tabs-top>.ant-tabs-nav:before,.ant-tabs-top>div>.ant-tabs-nav:before{position:absolute;right:0;left:0;border-bottom:1px solid #f0f0f0;content:""}.ant-tabs-bottom>.ant-tabs-nav .ant-tabs-ink-bar,.ant-tabs-bottom>div>.ant-tabs-nav .ant-tabs-ink-bar,.ant-tabs-top>.ant-tabs-nav .ant-tabs-ink-bar,.ant-tabs-top>div>.ant-tabs-nav .ant-tabs-ink-bar{height:2px}.ant-tabs-bottom>.ant-tabs-nav .ant-tabs-ink-bar-animated,.ant-tabs-bottom>div>.ant-tabs-nav .ant-tabs-ink-bar-animated,.ant-tabs-top>.ant-tabs-nav .ant-tabs-ink-bar-animated,.ant-tabs-top>div>.ant-tabs-nav .ant-tabs-ink-bar-animated{transition:width .3s,left .3s,right .3s}.ant-tabs-bottom>.ant-tabs-nav .ant-tabs-nav-wrap:after,.ant-tabs-bottom>.ant-tabs-nav .ant-tabs-nav-wrap:before,.ant-tabs-bottom>div>.ant-tabs-nav .ant-tabs-nav-wrap:after,.ant-tabs-bottom>div>.ant-tabs-nav .ant-tabs-nav-wrap:before,.ant-tabs-top>.ant-tabs-nav .ant-tabs-nav-wrap:after,.ant-tabs-top>.ant-tabs-nav .ant-tabs-nav-wrap:before,.ant-tabs-top>div>.ant-tabs-nav .ant-tabs-nav-wrap:after,.ant-tabs-top>div>.ant-tabs-nav .ant-tabs-nav-wrap:before{top:0;bottom:0;width:30px}.ant-tabs-bottom>.ant-tabs-nav .ant-tabs-nav-wrap:before,.ant-tabs-bottom>div>.ant-tabs-nav .ant-tabs-nav-wrap:before,.ant-tabs-top>.ant-tabs-nav .ant-tabs-nav-wrap:before,.ant-tabs-top>div>.ant-tabs-nav .ant-tabs-nav-wrap:before{left:0;box-shadow:inset 10px 0 8px -8px #00000014}.ant-tabs-bottom>.ant-tabs-nav .ant-tabs-nav-wrap:after,.ant-tabs-bottom>div>.ant-tabs-nav .ant-tabs-nav-wrap:after,.ant-tabs-top>.ant-tabs-nav .ant-tabs-nav-wrap:after,.ant-tabs-top>div>.ant-tabs-nav .ant-tabs-nav-wrap:after{right:0;box-shadow:inset -10px 0 8px -8px #00000014}.ant-tabs-bottom>.ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-left:before,.ant-tabs-bottom>.ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-right:after,.ant-tabs-bottom>div>.ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-left:before,.ant-tabs-bottom>div>.ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-right:after,.ant-tabs-top>.ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-left:before,.ant-tabs-top>.ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-right:after,.ant-tabs-top>div>.ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-left:before,.ant-tabs-top>div>.ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-right:after{opacity:1}.ant-tabs-top>.ant-tabs-nav .ant-tabs-ink-bar,.ant-tabs-top>.ant-tabs-nav:before,.ant-tabs-top>div>.ant-tabs-nav .ant-tabs-ink-bar,.ant-tabs-top>div>.ant-tabs-nav:before{bottom:0}.ant-tabs-bottom>.ant-tabs-nav,.ant-tabs-bottom>div>.ant-tabs-nav{order:1;margin-top:16px;margin-bottom:0}.ant-tabs-bottom>.ant-tabs-nav .ant-tabs-ink-bar,.ant-tabs-bottom>.ant-tabs-nav:before,.ant-tabs-bottom>div>.ant-tabs-nav .ant-tabs-ink-bar,.ant-tabs-bottom>div>.ant-tabs-nav:before{top:0}.ant-tabs-bottom>.ant-tabs-content-holder,.ant-tabs-bottom>div>.ant-tabs-content-holder{order:0}.ant-tabs-left>.ant-tabs-nav,.ant-tabs-left>div>.ant-tabs-nav,.ant-tabs-right>.ant-tabs-nav,.ant-tabs-right>div>.ant-tabs-nav{flex-direction:column;min-width:50px}.ant-tabs-left>.ant-tabs-nav .ant-tabs-tab,.ant-tabs-left>div>.ant-tabs-nav .ant-tabs-tab,.ant-tabs-right>.ant-tabs-nav .ant-tabs-tab,.ant-tabs-right>div>.ant-tabs-nav .ant-tabs-tab{padding:8px 24px;text-align:center}.ant-tabs-left>.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab,.ant-tabs-left>div>.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab,.ant-tabs-right>.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab,.ant-tabs-right>div>.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab{margin:16px 0 0}.ant-tabs-left>.ant-tabs-nav .ant-tabs-nav-wrap,.ant-tabs-left>div>.ant-tabs-nav .ant-tabs-nav-wrap,.ant-tabs-right>.ant-tabs-nav .ant-tabs-nav-wrap,.ant-tabs-right>div>.ant-tabs-nav .ant-tabs-nav-wrap{flex-direction:column}.ant-tabs-left>.ant-tabs-nav .ant-tabs-nav-wrap:after,.ant-tabs-left>.ant-tabs-nav .ant-tabs-nav-wrap:before,.ant-tabs-left>div>.ant-tabs-nav .ant-tabs-nav-wrap:after,.ant-tabs-left>div>.ant-tabs-nav .ant-tabs-nav-wrap:before,.ant-tabs-right>.ant-tabs-nav .ant-tabs-nav-wrap:after,.ant-tabs-right>.ant-tabs-nav .ant-tabs-nav-wrap:before,.ant-tabs-right>div>.ant-tabs-nav .ant-tabs-nav-wrap:after,.ant-tabs-right>div>.ant-tabs-nav .ant-tabs-nav-wrap:before{right:0;left:0;height:30px}.ant-tabs-left>.ant-tabs-nav .ant-tabs-nav-wrap:before,.ant-tabs-left>div>.ant-tabs-nav .ant-tabs-nav-wrap:before,.ant-tabs-right>.ant-tabs-nav .ant-tabs-nav-wrap:before,.ant-tabs-right>div>.ant-tabs-nav .ant-tabs-nav-wrap:before{top:0;box-shadow:inset 0 10px 8px -8px #00000014}.ant-tabs-left>.ant-tabs-nav .ant-tabs-nav-wrap:after,.ant-tabs-left>div>.ant-tabs-nav .ant-tabs-nav-wrap:after,.ant-tabs-right>.ant-tabs-nav .ant-tabs-nav-wrap:after,.ant-tabs-right>div>.ant-tabs-nav .ant-tabs-nav-wrap:after{bottom:0;box-shadow:inset 0 -10px 8px -8px #00000014}.ant-tabs-left>.ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-bottom:after,.ant-tabs-left>.ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-top:before,.ant-tabs-left>div>.ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-bottom:after,.ant-tabs-left>div>.ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-top:before,.ant-tabs-right>.ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-bottom:after,.ant-tabs-right>.ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-top:before,.ant-tabs-right>div>.ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-bottom:after,.ant-tabs-right>div>.ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-top:before{opacity:1}.ant-tabs-left>.ant-tabs-nav .ant-tabs-ink-bar,.ant-tabs-left>div>.ant-tabs-nav .ant-tabs-ink-bar,.ant-tabs-right>.ant-tabs-nav .ant-tabs-ink-bar,.ant-tabs-right>div>.ant-tabs-nav .ant-tabs-ink-bar{width:2px}.ant-tabs-left>.ant-tabs-nav .ant-tabs-ink-bar-animated,.ant-tabs-left>div>.ant-tabs-nav .ant-tabs-ink-bar-animated,.ant-tabs-right>.ant-tabs-nav .ant-tabs-ink-bar-animated,.ant-tabs-right>div>.ant-tabs-nav .ant-tabs-ink-bar-animated{transition:height .3s,top .3s}.ant-tabs-left>.ant-tabs-nav .ant-tabs-nav-list,.ant-tabs-left>.ant-tabs-nav .ant-tabs-nav-operations,.ant-tabs-left>div>.ant-tabs-nav .ant-tabs-nav-list,.ant-tabs-left>div>.ant-tabs-nav .ant-tabs-nav-operations,.ant-tabs-right>.ant-tabs-nav .ant-tabs-nav-list,.ant-tabs-right>.ant-tabs-nav .ant-tabs-nav-operations,.ant-tabs-right>div>.ant-tabs-nav .ant-tabs-nav-list,.ant-tabs-right>div>.ant-tabs-nav .ant-tabs-nav-operations{flex:1 0 auto;flex-direction:column}.ant-tabs-left>.ant-tabs-nav .ant-tabs-ink-bar,.ant-tabs-left>div>.ant-tabs-nav .ant-tabs-ink-bar{right:0}.ant-tabs-left>.ant-tabs-content-holder,.ant-tabs-left>div>.ant-tabs-content-holder{margin-left:-1px;border-left:1px solid #f0f0f0}.ant-tabs-left>.ant-tabs-content-holder>.ant-tabs-content>.ant-tabs-tabpane,.ant-tabs-left>div>.ant-tabs-content-holder>.ant-tabs-content>.ant-tabs-tabpane{padding-left:24px}.ant-tabs-right>.ant-tabs-nav,.ant-tabs-right>div>.ant-tabs-nav{order:1}.ant-tabs-right>.ant-tabs-nav .ant-tabs-ink-bar,.ant-tabs-right>div>.ant-tabs-nav .ant-tabs-ink-bar{left:0}.ant-tabs-right>.ant-tabs-content-holder,.ant-tabs-right>div>.ant-tabs-content-holder{order:0;margin-right:-1px;border-right:1px solid #f0f0f0}.ant-tabs-right>.ant-tabs-content-holder>.ant-tabs-content>.ant-tabs-tabpane,.ant-tabs-right>div>.ant-tabs-content-holder>.ant-tabs-content>.ant-tabs-tabpane{padding-right:24px}.ant-tabs-dropdown{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:absolute;top:-9999px;left:-9999px;z-index:1050;display:block}.ant-tabs-dropdown-hidden{display:none}.ant-tabs-dropdown-menu{max-height:200px;margin:0;padding:4px 0;overflow-x:hidden;overflow-y:auto;text-align:left;list-style-type:none;background-color:#fff;background-clip:padding-box;border-radius:2px;outline:none;box-shadow:0 3px 6px -4px #0000001f,0 6px 16px 0 #00000014,0 9px 28px 8px #0000000d}.ant-tabs-dropdown-menu-item{min-width:120px;margin:0;padding:5px 12px;overflow:hidden;color:#000000d9;font-weight:400;font-size:14px;line-height:22px;white-space:nowrap;text-overflow:ellipsis;cursor:pointer;transition:all .3s}.ant-tabs-dropdown-menu-item:hover{background:#f5f5f5}.ant-tabs-dropdown-menu-item-disabled,.ant-tabs-dropdown-menu-item-disabled:hover{color:#00000040;background:#0000;cursor:not-allowed}.ant-tabs-card>.ant-tabs-nav .ant-tabs-tab,.ant-tabs-card>div>.ant-tabs-nav .ant-tabs-tab{margin:0;padding:8px 16px;background:#fafafa;border:1px solid #f0f0f0;transition:all .3s cubic-bezier(.645,.045,.355,1)}.ant-tabs-card>.ant-tabs-nav .ant-tabs-tab-active,.ant-tabs-card>div>.ant-tabs-nav .ant-tabs-tab-active{color:#1890ff;background:#fff}.ant-tabs-card>.ant-tabs-nav .ant-tabs-ink-bar,.ant-tabs-card>div>.ant-tabs-nav .ant-tabs-ink-bar{visibility:hidden}.ant-tabs-card.ant-tabs-bottom>.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab,.ant-tabs-card.ant-tabs-bottom>div>.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab,.ant-tabs-card.ant-tabs-top>.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab,.ant-tabs-card.ant-tabs-top>div>.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab{margin-left:2px}.ant-tabs-card.ant-tabs-top>.ant-tabs-nav .ant-tabs-tab,.ant-tabs-card.ant-tabs-top>div>.ant-tabs-nav .ant-tabs-tab{border-radius:2px 2px 0 0}.ant-tabs-card.ant-tabs-top>.ant-tabs-nav .ant-tabs-tab-active,.ant-tabs-card.ant-tabs-top>div>.ant-tabs-nav .ant-tabs-tab-active{border-bottom-color:#fff}.ant-tabs-card.ant-tabs-bottom>.ant-tabs-nav .ant-tabs-tab,.ant-tabs-card.ant-tabs-bottom>div>.ant-tabs-nav .ant-tabs-tab{border-radius:0 0 2px 2px}.ant-tabs-card.ant-tabs-bottom>.ant-tabs-nav .ant-tabs-tab-active,.ant-tabs-card.ant-tabs-bottom>div>.ant-tabs-nav .ant-tabs-tab-active{border-top-color:#fff}.ant-tabs-card.ant-tabs-left>.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab,.ant-tabs-card.ant-tabs-left>div>.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab,.ant-tabs-card.ant-tabs-right>.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab,.ant-tabs-card.ant-tabs-right>div>.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab{margin-top:2px}.ant-tabs-card.ant-tabs-left>.ant-tabs-nav .ant-tabs-tab,.ant-tabs-card.ant-tabs-left>div>.ant-tabs-nav .ant-tabs-tab{border-radius:2px 0 0 2px}.ant-tabs-card.ant-tabs-left>.ant-tabs-nav .ant-tabs-tab-active,.ant-tabs-card.ant-tabs-left>div>.ant-tabs-nav .ant-tabs-tab-active{border-right-color:#fff}.ant-tabs-card.ant-tabs-right>.ant-tabs-nav .ant-tabs-tab,.ant-tabs-card.ant-tabs-right>div>.ant-tabs-nav .ant-tabs-tab{border-radius:0 2px 2px 0}.ant-tabs-card.ant-tabs-right>.ant-tabs-nav .ant-tabs-tab-active,.ant-tabs-card.ant-tabs-right>div>.ant-tabs-nav .ant-tabs-tab-active{border-left-color:#fff}.ant-tabs{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";display:flex;overflow:hidden}.ant-tabs>.ant-tabs-nav,.ant-tabs>div>.ant-tabs-nav{position:relative;display:flex;flex:none;align-items:center}.ant-tabs>.ant-tabs-nav .ant-tabs-nav-wrap,.ant-tabs>div>.ant-tabs-nav .ant-tabs-nav-wrap{position:relative;display:inline-block;display:flex;flex:auto;align-self:stretch;overflow:hidden;white-space:nowrap;transform:translate(0)}.ant-tabs>.ant-tabs-nav .ant-tabs-nav-wrap:after,.ant-tabs>.ant-tabs-nav .ant-tabs-nav-wrap:before,.ant-tabs>div>.ant-tabs-nav .ant-tabs-nav-wrap:after,.ant-tabs>div>.ant-tabs-nav .ant-tabs-nav-wrap:before{position:absolute;z-index:1;opacity:0;transition:opacity .3s;content:"";pointer-events:none}.ant-tabs>.ant-tabs-nav .ant-tabs-nav-list,.ant-tabs>div>.ant-tabs-nav .ant-tabs-nav-list{position:relative;display:flex;transition:transform .3s}.ant-tabs>.ant-tabs-nav .ant-tabs-nav-operations,.ant-tabs>div>.ant-tabs-nav .ant-tabs-nav-operations{display:flex;align-self:stretch}.ant-tabs>.ant-tabs-nav .ant-tabs-nav-operations-hidden,.ant-tabs>div>.ant-tabs-nav .ant-tabs-nav-operations-hidden{position:absolute;visibility:hidden;pointer-events:none}.ant-tabs>.ant-tabs-nav .ant-tabs-nav-more,.ant-tabs>div>.ant-tabs-nav .ant-tabs-nav-more{position:relative;padding:8px 16px;background:#0000;border:0}.ant-tabs>.ant-tabs-nav .ant-tabs-nav-more:after,.ant-tabs>div>.ant-tabs-nav .ant-tabs-nav-more:after{position:absolute;right:0;bottom:0;left:0;height:5px;transform:translateY(100%);content:""}.ant-tabs>.ant-tabs-nav .ant-tabs-nav-add,.ant-tabs>div>.ant-tabs-nav .ant-tabs-nav-add{min-width:40px;margin-left:2px;padding:0 8px;background:#fafafa;border:1px solid #f0f0f0;border-radius:2px 2px 0 0;outline:none;cursor:pointer;transition:all .3s cubic-bezier(.645,.045,.355,1)}.ant-tabs>.ant-tabs-nav .ant-tabs-nav-add:hover,.ant-tabs>div>.ant-tabs-nav .ant-tabs-nav-add:hover{color:#40a9ff}.ant-tabs>.ant-tabs-nav .ant-tabs-nav-add:active,.ant-tabs>.ant-tabs-nav .ant-tabs-nav-add:focus,.ant-tabs>div>.ant-tabs-nav .ant-tabs-nav-add:active,.ant-tabs>div>.ant-tabs-nav .ant-tabs-nav-add:focus{color:#096dd9}.ant-tabs-extra-content{flex:none}.ant-tabs-centered>.ant-tabs-nav .ant-tabs-nav-wrap:not([class*=ant-tabs-nav-wrap-ping]),.ant-tabs-centered>div>.ant-tabs-nav .ant-tabs-nav-wrap:not([class*=ant-tabs-nav-wrap-ping]){justify-content:center}.ant-tabs-ink-bar{position:absolute;background:#1890ff;pointer-events:none}.ant-tabs-tab{position:relative;display:inline-flex;align-items:center;padding:12px 0;font-size:14px;background:#0000;border:0;outline:none;cursor:pointer}.ant-tabs-tab-btn:active,.ant-tabs-tab-btn:focus,.ant-tabs-tab-remove:active,.ant-tabs-tab-remove:focus{color:#096dd9}.ant-tabs-tab-btn,.ant-tabs-tab-remove{outline:none;transition:all .3s}.ant-tabs-tab-remove{flex:none;margin-right:-4px;margin-left:8px;color:#00000073;font-size:12px;background:#0000;border:none;cursor:pointer}.ant-tabs-tab-remove:hover{color:#000000d9}.ant-tabs-tab:hover{color:#40a9ff}.ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn{color:#1890ff;text-shadow:0 0 .25px currentColor}.ant-tabs-tab.ant-tabs-tab-disabled{color:#00000040;cursor:not-allowed}.ant-tabs-tab.ant-tabs-tab-disabled .ant-tabs-tab-btn:active,.ant-tabs-tab.ant-tabs-tab-disabled .ant-tabs-tab-btn:focus,.ant-tabs-tab.ant-tabs-tab-disabled .ant-tabs-tab-remove:active,.ant-tabs-tab.ant-tabs-tab-disabled .ant-tabs-tab-remove:focus{color:#00000040}.ant-tabs-tab .ant-tabs-tab-remove .anticon{margin:0}.ant-tabs-tab .anticon{margin-right:12px}.ant-tabs-tab+.ant-tabs-tab{margin:0 0 0 32px}.ant-tabs-content{display:flex;width:100%}.ant-tabs-content-holder{flex:auto;min-width:0;min-height:0}.ant-tabs-content-animated{transition:margin .3s}.ant-tabs-tabpane{flex:none;width:100%;outline:none}.ant-tabs-dropdown-menu-item a[nz-tab-link]{position:relative}a[nz-tab-link]:before{position:absolute;top:0;left:0;right:0;bottom:0;background-color:initial;content:""}a[nz-tab-link]~*{position:relative}nz-tab-nav-operation,nz-tabs-nav,nz-tabset{display:block}.nz-tabs-dropdown.ant-dropdown .ant-dropdown-menu{max-height:200px;margin:0;padding:4px 0;overflow-x:hidden;overflow-y:auto;text-align:left;list-style-type:none;background-color:#fff;background-clip:padding-box;border-radius:2px;outline:none;box-shadow:0 3px 6px -4px #0000001f,0 6px 16px 0 #00000014,0 9px 28px 8px #0000000d}.nz-tabs-dropdown.ant-dropdown .ant-dropdown-menu-item{min-width:120px;margin:0;padding:5px 12px;overflow:hidden;color:#000000d9;font-weight:400;font-size:14px;line-height:22px;white-space:nowrap;text-overflow:ellipsis;cursor:pointer;transition:all .3s}.nz-tabs-dropdown.ant-dropdown .ant-dropdown-menu-item:hover{background:#f5f5f5}.nz-tabs-dropdown.ant-dropdown .ant-dropdown-menu-item-disabled,.nz-tabs-dropdown.ant-dropdown .ant-dropdown-menu-item-disabled:hover{color:#00000040;background:#0000;cursor:not-allowed}.nz-tabs-dropdown.ant-dropdown .ant-dropdown-menu-item-disabled a,.nz-tabs-dropdown.ant-dropdown .ant-dropdown-menu-item-disabled:hover a{pointer-events:none;color:#00000040}.ant-tabs-rtl .ant-tabs-rtl-tab-next{right:auto;left:2px}.ant-tabs-tab-disabled a{pointer-events:none;color:#00000040}.ant-tabs>.ant-tabs-nav .ant-tabs-nav-add,.ant-tabs>div>.ant-tabs-nav .ant-tabs-nav-add{min-height:40px}.ant-tag{box-sizing:border-box;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";display:inline-block;height:auto;margin:0 8px 0 0;padding:0 7px;font-size:12px;line-height:20px;white-space:nowrap;background:#fafafa;border:1px solid #d9d9d9;border-radius:2px;opacity:1;transition:all .3s}.ant-tag,.ant-tag a,.ant-tag a:hover{color:#000000d9}.ant-tag>a:first-child:last-child{display:inline-block;margin:0 -8px;padding:0 8px}.ant-tag-close-icon{margin-left:3px;color:#00000073;font-size:10px;cursor:pointer;transition:all .3s}.ant-tag-close-icon:hover{color:#000000d9}.ant-tag-has-color{border-color:#0000}.ant-tag-has-color,.ant-tag-has-color .anticon-close,.ant-tag-has-color .anticon-close:hover,.ant-tag-has-color a,.ant-tag-has-color a:hover{color:#fff}.ant-tag-checkable{background-color:initial;border-color:#0000;cursor:pointer}.ant-tag-checkable:not(.ant-tag-checkable-checked):hover{color:#1890ff}.ant-tag-checkable-checked,.ant-tag-checkable:active{color:#fff}.ant-tag-checkable-checked{background-color:#1890ff}.ant-tag-checkable:active{background-color:#096dd9}.ant-tag-hidden{display:none}.ant-tag-pink{color:#c41d7f;background:#fff0f6;border-color:#ffadd2}.ant-tag-pink-inverse{color:#fff;background:#eb2f96;border-color:#eb2f96}.ant-tag-magenta{color:#c41d7f;background:#fff0f6;border-color:#ffadd2}.ant-tag-magenta-inverse{color:#fff;background:#eb2f96;border-color:#eb2f96}.ant-tag-red{color:#cf1322;background:#fff1f0;border-color:#ffa39e}.ant-tag-red-inverse{color:#fff;background:#f5222d;border-color:#f5222d}.ant-tag-volcano{color:#d4380d;background:#fff2e8;border-color:#ffbb96}.ant-tag-volcano-inverse{color:#fff;background:#fa541c;border-color:#fa541c}.ant-tag-orange{color:#d46b08;background:#fff7e6;border-color:#ffd591}.ant-tag-orange-inverse{color:#fff;background:#fa8c16;border-color:#fa8c16}.ant-tag-yellow{color:#d4b106;background:#feffe6;border-color:#fffb8f}.ant-tag-yellow-inverse{color:#fff;background:#fadb14;border-color:#fadb14}.ant-tag-gold{color:#d48806;background:#fffbe6;border-color:#ffe58f}.ant-tag-gold-inverse{color:#fff;background:#faad14;border-color:#faad14}.ant-tag-cyan{color:#08979c;background:#e6fffb;border-color:#87e8de}.ant-tag-cyan-inverse{color:#fff;background:#13c2c2;border-color:#13c2c2}.ant-tag-lime{color:#7cb305;background:#fcffe6;border-color:#eaff8f}.ant-tag-lime-inverse{color:#fff;background:#a0d911;border-color:#a0d911}.ant-tag-green{color:#389e0d;background:#f6ffed;border-color:#b7eb8f}.ant-tag-green-inverse{color:#fff;background:#52c41a;border-color:#52c41a}.ant-tag-blue{color:#096dd9;background:#e6f7ff;border-color:#91d5ff}.ant-tag-blue-inverse{color:#fff;background:#1890ff;border-color:#1890ff}.ant-tag-geekblue{color:#1d39c4;background:#f0f5ff;border-color:#adc6ff}.ant-tag-geekblue-inverse{color:#fff;background:#2f54eb;border-color:#2f54eb}.ant-tag-purple{color:#531dab;background:#f9f0ff;border-color:#d3adf7}.ant-tag-purple-inverse{color:#fff;background:#722ed1;border-color:#722ed1}.ant-tag-success{color:#52c41a;background:#f6ffed;border-color:#b7eb8f}.ant-tag-processing{color:#1890ff;background:#e6f7ff;border-color:#91d5ff}.ant-tag-error{color:#f5222d;background:#fff1f0;border-color:#ffa39e}.ant-tag-warning{color:#fa8c16;background:#fff7e6;border-color:#ffd591}.ant-tag>.anticon+span,.ant-tag>span+.anticon{margin-left:7px}.ant-tag.ant-tag-rtl{margin-right:0;margin-left:8px;direction:rtl;text-align:right}.ant-tag-rtl .ant-tag-close-icon{margin-right:3px;margin-left:0}.ant-tag-rtl.ant-tag>.anticon+span,.ant-tag-rtl.ant-tag>span+.anticon{margin-right:7px;margin-left:0}.ant-timeline{box-sizing:border-box;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;font-feature-settings:"tnum";margin:0;padding:0;list-style:none}.ant-timeline-item{position:relative;margin:0;padding-bottom:20px;font-size:14px;list-style:none}.ant-timeline-item-tail{position:absolute;top:10px;left:4px;height:calc(100% - 10px);border-left:2px solid #f0f0f0}.ant-timeline-item-pending .ant-timeline-item-head{font-size:12px;background-color:initial}.ant-timeline-item-pending .ant-timeline-item-tail{display:none}.ant-timeline-item-head{position:absolute;width:10px;height:10px;background-color:#fff;border:2px solid #0000;border-radius:100px}.ant-timeline-item-head-blue{color:#1890ff;border-color:#1890ff}.ant-timeline-item-head-red{color:#ff4d4f;border-color:#ff4d4f}.ant-timeline-item-head-green{color:#52c41a;border-color:#52c41a}.ant-timeline-item-head-gray{color:#00000040;border-color:#00000040}.ant-timeline-item-head-custom{position:absolute;top:5.5px;left:5px;width:auto;height:auto;margin-top:0;padding:3px 1px;line-height:1;text-align:center;border:0;border-radius:0;transform:translate(-50%,-50%)}.ant-timeline-item-content{position:relative;top:-7.001px;margin:0 0 0 26px;word-break:break-word}.ant-timeline-item-last>.ant-timeline-item-tail{display:none}.ant-timeline-item-last>.ant-timeline-item-content{min-height:48px}.ant-timeline.ant-timeline-alternate .ant-timeline-item-head,.ant-timeline.ant-timeline-alternate .ant-timeline-item-head-custom,.ant-timeline.ant-timeline-alternate .ant-timeline-item-tail,.ant-timeline.ant-timeline-label .ant-timeline-item-head,.ant-timeline.ant-timeline-label .ant-timeline-item-head-custom,.ant-timeline.ant-timeline-label .ant-timeline-item-tail,.ant-timeline.ant-timeline-right .ant-timeline-item-head,.ant-timeline.ant-timeline-right .ant-timeline-item-head-custom,.ant-timeline.ant-timeline-right .ant-timeline-item-tail{left:50%}.ant-timeline.ant-timeline-alternate .ant-timeline-item-head,.ant-timeline.ant-timeline-label .ant-timeline-item-head,.ant-timeline.ant-timeline-right .ant-timeline-item-head{margin-left:-4px}.ant-timeline.ant-timeline-alternate .ant-timeline-item-head-custom,.ant-timeline.ant-timeline-label .ant-timeline-item-head-custom,.ant-timeline.ant-timeline-right .ant-timeline-item-head-custom{margin-left:1px}.ant-timeline.ant-timeline-alternate .ant-timeline-item-left .ant-timeline-item-content,.ant-timeline.ant-timeline-label .ant-timeline-item-left .ant-timeline-item-content,.ant-timeline.ant-timeline-right .ant-timeline-item-left .ant-timeline-item-content{left:calc(50% - 4px);width:calc(50% - 14px);text-align:left}.ant-timeline.ant-timeline-alternate .ant-timeline-item-right .ant-timeline-item-content,.ant-timeline.ant-timeline-label .ant-timeline-item-right .ant-timeline-item-content,.ant-timeline.ant-timeline-right .ant-timeline-item-right .ant-timeline-item-content{width:calc(50% - 12px);margin:0;text-align:right}.ant-timeline.ant-timeline-right .ant-timeline-item-right .ant-timeline-item-head,.ant-timeline.ant-timeline-right .ant-timeline-item-right .ant-timeline-item-head-custom,.ant-timeline.ant-timeline-right .ant-timeline-item-right .ant-timeline-item-tail{left:calc(100% - 4px - 2px)}.ant-timeline.ant-timeline-right .ant-timeline-item-right .ant-timeline-item-content{width:calc(100% - 18px)}.ant-timeline.ant-timeline-pending .ant-timeline-item-last .ant-timeline-item-tail{display:block;height:calc(100% - 14px);border-left:2px dotted #f0f0f0}.ant-timeline.ant-timeline-reverse .ant-timeline-item-last .ant-timeline-item-tail{display:none}.ant-timeline.ant-timeline-reverse .ant-timeline-item-pending .ant-timeline-item-tail{top:15px;display:block;height:calc(100% - 15px);border-left:2px dotted #f0f0f0}.ant-timeline.ant-timeline-reverse .ant-timeline-item-pending .ant-timeline-item-content{min-height:48px}.ant-timeline.ant-timeline-label .ant-timeline-item-label{position:absolute;top:-7.001px;width:calc(50% - 12px);text-align:right}.ant-timeline.ant-timeline-label .ant-timeline-item-right .ant-timeline-item-label{left:calc(50% + 14px);width:calc(50% - 14px);text-align:left}.ant-timeline-rtl{direction:rtl}.ant-timeline-rtl .ant-timeline-item-tail{right:4px;left:auto;border-right:2px solid #f0f0f0;border-left:none}.ant-timeline-rtl .ant-timeline-item-head-custom{right:5px;left:auto;transform:translate(50%,-50%)}.ant-timeline-rtl .ant-timeline-item-content{margin:0 18px 0 0}.ant-timeline-rtl.ant-timeline.ant-timeline-alternate .ant-timeline-item-head,.ant-timeline-rtl.ant-timeline.ant-timeline-alternate .ant-timeline-item-head-custom,.ant-timeline-rtl.ant-timeline.ant-timeline-alternate .ant-timeline-item-tail,.ant-timeline-rtl.ant-timeline.ant-timeline-label .ant-timeline-item-head,.ant-timeline-rtl.ant-timeline.ant-timeline-label .ant-timeline-item-head-custom,.ant-timeline-rtl.ant-timeline.ant-timeline-label .ant-timeline-item-tail,.ant-timeline-rtl.ant-timeline.ant-timeline-right .ant-timeline-item-head,.ant-timeline-rtl.ant-timeline.ant-timeline-right .ant-timeline-item-head-custom,.ant-timeline-rtl.ant-timeline.ant-timeline-right .ant-timeline-item-tail{right:50%;left:auto}.ant-timeline-rtl.ant-timeline.ant-timeline-alternate .ant-timeline-item-head,.ant-timeline-rtl.ant-timeline.ant-timeline-label .ant-timeline-item-head,.ant-timeline-rtl.ant-timeline.ant-timeline-right .ant-timeline-item-head{margin-right:-4px;margin-left:0}.ant-timeline-rtl.ant-timeline.ant-timeline-alternate .ant-timeline-item-head-custom,.ant-timeline-rtl.ant-timeline.ant-timeline-label .ant-timeline-item-head-custom,.ant-timeline-rtl.ant-timeline.ant-timeline-right .ant-timeline-item-head-custom{margin-right:1px;margin-left:0}.ant-timeline-rtl.ant-timeline.ant-timeline-alternate .ant-timeline-item-left .ant-timeline-item-content,.ant-timeline-rtl.ant-timeline.ant-timeline-label .ant-timeline-item-left .ant-timeline-item-content,.ant-timeline-rtl.ant-timeline.ant-timeline-right .ant-timeline-item-left .ant-timeline-item-content{right:calc(50% - 4px);left:auto;text-align:right}.ant-timeline-rtl.ant-timeline.ant-timeline-alternate .ant-timeline-item-right .ant-timeline-item-content,.ant-timeline-rtl.ant-timeline.ant-timeline-label .ant-timeline-item-right .ant-timeline-item-content,.ant-timeline-rtl.ant-timeline.ant-timeline-right .ant-timeline-item-right .ant-timeline-item-content{text-align:left}.ant-timeline-rtl.ant-timeline.ant-timeline-right .ant-timeline-item-right .ant-timeline-item-head,.ant-timeline-rtl.ant-timeline.ant-timeline-right .ant-timeline-item-right .ant-timeline-item-head-custom,.ant-timeline-rtl.ant-timeline.ant-timeline-right .ant-timeline-item-right .ant-timeline-item-tail{right:0;left:auto}.ant-timeline-rtl.ant-timeline.ant-timeline-right .ant-timeline-item-right .ant-timeline-item-content{width:100%;margin-right:18px;text-align:right}.ant-timeline-rtl.ant-timeline.ant-timeline-pending .ant-timeline-item-last .ant-timeline-item-tail,.ant-timeline-rtl.ant-timeline.ant-timeline-reverse .ant-timeline-item-pending .ant-timeline-item-tail{border-right:2px dotted #f0f0f0;border-left:none}.ant-timeline-rtl.ant-timeline.ant-timeline-label .ant-timeline-item-label{text-align:left}.ant-timeline-rtl.ant-timeline.ant-timeline-label .ant-timeline-item-right .ant-timeline-item-label{right:calc(50% + 14px);text-align:right}.ant-tooltip{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:absolute;z-index:1070;display:block;width:max-content;max-width:250px;visibility:visible}.ant-tooltip-hidden{display:none}.ant-tooltip-placement-top,.ant-tooltip-placement-topLeft,.ant-tooltip-placement-topRight{padding-bottom:8px}.ant-tooltip-placement-right,.ant-tooltip-placement-rightBottom,.ant-tooltip-placement-rightTop{padding-left:8px}.ant-tooltip-placement-bottom,.ant-tooltip-placement-bottomLeft,.ant-tooltip-placement-bottomRight{padding-top:8px}.ant-tooltip-placement-left,.ant-tooltip-placement-leftBottom,.ant-tooltip-placement-leftTop{padding-right:8px}.ant-tooltip-inner{min-width:30px;min-height:32px;padding:6px 8px;color:#fff;text-align:left;text-decoration:none;word-wrap:break-word;background-color:#000000bf;border-radius:2px;box-shadow:0 3px 6px -4px #0000001f,0 6px 16px 0 #00000014,0 9px 28px 8px #0000000d}.ant-tooltip-arrow{position:absolute;display:block;width:13.07106781px;height:13.07106781px;overflow:hidden;background:#0000;pointer-events:none}.ant-tooltip-arrow-content{position:absolute;top:0;right:0;bottom:0;left:0;display:block;width:5px;height:5px;margin:auto;background-color:#000000bf;content:"";pointer-events:auto}.ant-tooltip-placement-top .ant-tooltip-arrow,.ant-tooltip-placement-topLeft .ant-tooltip-arrow,.ant-tooltip-placement-topRight .ant-tooltip-arrow{bottom:-5.07106781px}.ant-tooltip-placement-top .ant-tooltip-arrow-content,.ant-tooltip-placement-topLeft .ant-tooltip-arrow-content,.ant-tooltip-placement-topRight .ant-tooltip-arrow-content{box-shadow:3px 3px 7px #00000012;transform:translateY(-6.53553391px) rotate(45deg)}.ant-tooltip-placement-top .ant-tooltip-arrow{left:50%;transform:translateX(-50%)}.ant-tooltip-placement-topLeft .ant-tooltip-arrow{left:13px}.ant-tooltip-placement-topRight .ant-tooltip-arrow{right:13px}.ant-tooltip-placement-right .ant-tooltip-arrow,.ant-tooltip-placement-rightBottom .ant-tooltip-arrow,.ant-tooltip-placement-rightTop .ant-tooltip-arrow{left:-5.07106781px}.ant-tooltip-placement-right .ant-tooltip-arrow-content,.ant-tooltip-placement-rightBottom .ant-tooltip-arrow-content,.ant-tooltip-placement-rightTop .ant-tooltip-arrow-content{box-shadow:-3px 3px 7px #00000012;transform:translateX(6.53553391px) rotate(45deg)}.ant-tooltip-placement-right .ant-tooltip-arrow{top:50%;transform:translateY(-50%)}.ant-tooltip-placement-rightTop .ant-tooltip-arrow{top:5px}.ant-tooltip-placement-rightBottom .ant-tooltip-arrow{bottom:5px}.ant-tooltip-placement-left .ant-tooltip-arrow,.ant-tooltip-placement-leftBottom .ant-tooltip-arrow,.ant-tooltip-placement-leftTop .ant-tooltip-arrow{right:-5.07106781px}.ant-tooltip-placement-left .ant-tooltip-arrow-content,.ant-tooltip-placement-leftBottom .ant-tooltip-arrow-content,.ant-tooltip-placement-leftTop .ant-tooltip-arrow-content{box-shadow:3px -3px 7px #00000012;transform:translateX(-6.53553391px) rotate(45deg)}.ant-tooltip-placement-left .ant-tooltip-arrow{top:50%;transform:translateY(-50%)}.ant-tooltip-placement-leftTop .ant-tooltip-arrow{top:5px}.ant-tooltip-placement-leftBottom .ant-tooltip-arrow{bottom:5px}.ant-tooltip-placement-bottom .ant-tooltip-arrow,.ant-tooltip-placement-bottomLeft .ant-tooltip-arrow,.ant-tooltip-placement-bottomRight .ant-tooltip-arrow{top:-5.07106781px}.ant-tooltip-placement-bottom .ant-tooltip-arrow-content,.ant-tooltip-placement-bottomLeft .ant-tooltip-arrow-content,.ant-tooltip-placement-bottomRight .ant-tooltip-arrow-content{box-shadow:-3px -3px 7px #00000012;transform:translateY(6.53553391px) rotate(45deg)}.ant-tooltip-placement-bottom .ant-tooltip-arrow{left:50%;transform:translateX(-50%)}.ant-tooltip-placement-bottomLeft .ant-tooltip-arrow{left:13px}.ant-tooltip-placement-bottomRight .ant-tooltip-arrow{right:13px}.ant-tooltip-magenta .ant-tooltip-arrow-content,.ant-tooltip-magenta .ant-tooltip-inner,.ant-tooltip-pink .ant-tooltip-arrow-content,.ant-tooltip-pink .ant-tooltip-inner{background-color:#eb2f96}.ant-tooltip-red .ant-tooltip-arrow-content,.ant-tooltip-red .ant-tooltip-inner{background-color:#f5222d}.ant-tooltip-volcano .ant-tooltip-arrow-content,.ant-tooltip-volcano .ant-tooltip-inner{background-color:#fa541c}.ant-tooltip-orange .ant-tooltip-arrow-content,.ant-tooltip-orange .ant-tooltip-inner{background-color:#fa8c16}.ant-tooltip-yellow .ant-tooltip-arrow-content,.ant-tooltip-yellow .ant-tooltip-inner{background-color:#fadb14}.ant-tooltip-gold .ant-tooltip-arrow-content,.ant-tooltip-gold .ant-tooltip-inner{background-color:#faad14}.ant-tooltip-cyan .ant-tooltip-arrow-content,.ant-tooltip-cyan .ant-tooltip-inner{background-color:#13c2c2}.ant-tooltip-lime .ant-tooltip-arrow-content,.ant-tooltip-lime .ant-tooltip-inner{background-color:#a0d911}.ant-tooltip-green .ant-tooltip-arrow-content,.ant-tooltip-green .ant-tooltip-inner{background-color:#52c41a}.ant-tooltip-blue .ant-tooltip-arrow-content,.ant-tooltip-blue .ant-tooltip-inner{background-color:#1890ff}.ant-tooltip-geekblue .ant-tooltip-arrow-content,.ant-tooltip-geekblue .ant-tooltip-inner{background-color:#2f54eb}.ant-tooltip-purple .ant-tooltip-arrow-content,.ant-tooltip-purple .ant-tooltip-inner{background-color:#722ed1}.ant-tooltip-rtl{direction:rtl}.ant-tooltip-rtl .ant-tooltip-inner{text-align:right}.ant-tooltip{position:relative}.ant-transfer-customize-list .ant-transfer-list{flex:1 1 50%;width:auto;height:auto;min-height:200px}.ant-transfer-customize-list .ant-table-wrapper .ant-table-small{border:0;border-radius:0}.ant-transfer-customize-list .ant-table-wrapper .ant-table-small .ant-table-selection-column{width:40px;min-width:40px}.ant-transfer-customize-list .ant-table-wrapper .ant-table-small>.ant-table-content>.ant-table-body>table>.ant-table-thead>tr>th{background:#fafafa}.ant-transfer-customize-list .ant-table-wrapper .ant-table-small>.ant-table-content .ant-table-row:last-child td{border-bottom:1px solid #f0f0f0}.ant-transfer-customize-list .ant-table-wrapper .ant-table-small .ant-table-body{margin:0}.ant-transfer-customize-list .ant-table-wrapper .ant-table-pagination.ant-pagination{margin:16px 0 4px}.ant-transfer-customize-list .ant-input[disabled]{background-color:initial}.ant-transfer{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:relative;display:flex;align-items:stretch}.ant-transfer-disabled .ant-transfer-list{background:#f5f5f5}.ant-transfer-list{display:flex;flex-direction:column;width:180px;height:200px;border:1px solid #d9d9d9;border-radius:2px}.ant-transfer-list-with-pagination{width:250px;height:auto}.ant-transfer-list-search{padding-right:24px;padding-left:8px}.ant-transfer-list-search-action{position:absolute;top:12px;right:12px;bottom:12px;width:28px;color:#00000040;line-height:32px;text-align:center}.ant-transfer-list-search-action .anticon{color:#00000040;transition:all .3s}.ant-transfer-list-search-action .anticon:hover{color:#00000073}span.ant-transfer-list-search-action{pointer-events:none}.ant-transfer-list-header{display:flex;flex:none;align-items:center;height:40px;padding:8px 12px 9px;color:#000000d9;background:#fff;border-bottom:1px solid #f0f0f0;border-radius:2px 2px 0 0}.ant-transfer-list-header>:not(:last-child){margin-right:4px}.ant-transfer-list-header>*{flex:none}.ant-transfer-list-header-title{flex:auto;overflow:hidden;white-space:nowrap;text-align:right;text-overflow:ellipsis}.ant-transfer-list-header-dropdown{font-size:10px;transform:translateY(10%);cursor:pointer}.ant-transfer-list-header-dropdown[disabled]{cursor:not-allowed}.ant-transfer-list-body{display:flex;flex:auto;flex-direction:column;overflow:hidden;font-size:14px}.ant-transfer-list-body-search-wrapper{position:relative;flex:none;padding:12px}.ant-transfer-list-content{flex:auto;margin:0;padding:0;overflow:auto;list-style:none}.ant-transfer-list-content-item{display:flex;align-items:center;min-height:32px;padding:6px 12px;line-height:20px;transition:all .3s}.ant-transfer-list-content-item>:not(:last-child){margin-right:8px}.ant-transfer-list-content-item>*{flex:none}.ant-transfer-list-content-item-text{flex:auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ant-transfer-list-content-item-remove{color:#1890ff;text-decoration:none;outline:none;cursor:pointer;transition:color .3s;position:relative;color:#d9d9d9}.ant-transfer-list-content-item-remove:focus,.ant-transfer-list-content-item-remove:hover{color:#40a9ff}.ant-transfer-list-content-item-remove:active{color:#096dd9}.ant-transfer-list-content-item-remove:after{position:absolute;top:-6px;right:-50%;bottom:-6px;left:-50%;content:""}.ant-transfer-list-content-item-remove:hover{color:#40a9ff}.ant-transfer-list-content-item:not(.ant-transfer-list-content-item-disabled):hover{background-color:#f5f5f5;cursor:pointer}.ant-transfer-list-content-item:not(.ant-transfer-list-content-item-disabled).ant-transfer-list-content-item-checked:hover{background-color:#dcf4ff}.ant-transfer-list-content-show-remove .ant-transfer-list-content-item:not(.ant-transfer-list-content-item-disabled):hover{background:#0000;cursor:default}.ant-transfer-list-content-item-checked{background-color:#e6f7ff}.ant-transfer-list-content-item-disabled{color:#00000040;cursor:not-allowed}.ant-transfer-list-pagination{padding:8px 0;text-align:right;border-top:1px solid #f0f0f0}.ant-transfer-list-body-not-found{flex:none;width:100%;margin:auto 0;color:#00000040;text-align:center}.ant-transfer-list-footer{border-top:1px solid #f0f0f0}.ant-transfer-operation{display:flex;flex:none;flex-direction:column;align-self:center;margin:0 8px;vertical-align:middle}.ant-transfer-operation .ant-btn{display:block}.ant-transfer-operation .ant-btn:first-child{margin-bottom:4px}.ant-transfer-operation .ant-btn .anticon{font-size:12px}.ant-transfer .ant-empty-image{max-height:-2px}.ant-transfer-rtl{direction:rtl}.ant-transfer-rtl .ant-transfer-list-search{padding-right:8px;padding-left:24px}.ant-transfer-rtl .ant-transfer-list-search-action{right:auto;left:12px}.ant-transfer-rtl .ant-transfer-list-header>:not(:last-child){margin-right:0;margin-left:4px}.ant-transfer-rtl .ant-transfer-list-header{right:0;left:auto}.ant-transfer-rtl .ant-transfer-list-header-title{text-align:left}.ant-transfer-rtl .ant-transfer-list-content-item>:not(:last-child){margin-right:0;margin-left:8px}.ant-transfer-rtl .ant-transfer-list-pagination{text-align:left}.ant-transfer-rtl .ant-transfer-list-footer{right:0;left:auto}.ant-typography{color:#000000d9;overflow-wrap:break-word}.ant-typography.ant-typography-secondary{color:#00000073}.ant-typography.ant-typography-success{color:#52c41a}.ant-typography.ant-typography-warning{color:#faad14}.ant-typography.ant-typography-danger{color:#ff4d4f}a.ant-typography.ant-typography-danger:active,a.ant-typography.ant-typography-danger:focus,a.ant-typography.ant-typography-danger:hover{color:#ff7875}.ant-typography.ant-typography-disabled{color:#00000040;cursor:not-allowed;-webkit-user-select:none;user-select:none}.ant-typography p,div.ant-typography{margin-bottom:1em}.ant-typography h1,h1.ant-typography{margin-bottom:.5em;color:#000000d9;font-weight:600;font-size:38px;line-height:1.23}.ant-typography h2,h2.ant-typography{margin-bottom:.5em;color:#000000d9;font-weight:600;font-size:30px;line-height:1.35}.ant-typography h3,h3.ant-typography{margin-bottom:.5em;color:#000000d9;font-weight:600;font-size:24px;line-height:1.35}.ant-typography h4,h4.ant-typography{margin-bottom:.5em;color:#000000d9;font-weight:600;font-size:20px;line-height:1.4}.ant-typography h5,h5.ant-typography{margin-bottom:.5em;color:#000000d9;font-weight:600;font-size:16px;line-height:1.5}.ant-typography div+h1,.ant-typography div+h2,.ant-typography div+h3,.ant-typography div+h4,.ant-typography div+h5,.ant-typography h1+h1,.ant-typography h1+h2,.ant-typography h1+h3,.ant-typography h1+h4,.ant-typography h1+h5,.ant-typography h2+h1,.ant-typography h2+h2,.ant-typography h2+h3,.ant-typography h2+h4,.ant-typography h2+h5,.ant-typography h3+h1,.ant-typography h3+h2,.ant-typography h3+h3,.ant-typography h3+h4,.ant-typography h3+h5,.ant-typography h4+h1,.ant-typography h4+h2,.ant-typography h4+h3,.ant-typography h4+h4,.ant-typography h4+h5,.ant-typography h5+h1,.ant-typography h5+h2,.ant-typography h5+h3,.ant-typography h5+h4,.ant-typography h5+h5,.ant-typography li+h1,.ant-typography li+h2,.ant-typography li+h3,.ant-typography li+h4,.ant-typography li+h5,.ant-typography p+h1,.ant-typography p+h2,.ant-typography p+h3,.ant-typography p+h4,.ant-typography p+h5,.ant-typography ul+h1,.ant-typography ul+h2,.ant-typography ul+h3,.ant-typography ul+h4,.ant-typography ul+h5,.ant-typography+h1.ant-typography,.ant-typography+h2.ant-typography,.ant-typography+h3.ant-typography,.ant-typography+h4.ant-typography,.ant-typography+h5.ant-typography{margin-top:1.2em}a.ant-typography-ellipsis,span.ant-typography-ellipsis{display:inline-block;max-width:100%}.ant-typography a,a.ant-typography{color:#1890ff;outline:none;cursor:pointer;transition:color .3s;text-decoration:none}.ant-typography a:focus,.ant-typography a:hover,a.ant-typography:focus,a.ant-typography:hover{color:#40a9ff}.ant-typography a:active,a.ant-typography:active{color:#096dd9}.ant-typography a:active,.ant-typography a:hover,a.ant-typography:active,a.ant-typography:hover{text-decoration:none}.ant-typography a.ant-typography-disabled,.ant-typography a[disabled],a.ant-typography.ant-typography-disabled,a.ant-typography[disabled]{color:#00000040;cursor:not-allowed}.ant-typography a.ant-typography-disabled:active,.ant-typography a.ant-typography-disabled:hover,.ant-typography a[disabled]:active,.ant-typography a[disabled]:hover,a.ant-typography.ant-typography-disabled:active,a.ant-typography.ant-typography-disabled:hover,a.ant-typography[disabled]:active,a.ant-typography[disabled]:hover{color:#00000040}.ant-typography a.ant-typography-disabled:active,.ant-typography a[disabled]:active,a.ant-typography.ant-typography-disabled:active,a.ant-typography[disabled]:active{pointer-events:none}.ant-typography code{margin:0 .2em;padding:.2em .4em .1em;font-size:85%;background:#9696961a;border:1px solid #64646433;border-radius:3px}.ant-typography kbd{margin:0 .2em;padding:.15em .4em .1em;font-size:90%;background:#9696960f;border:solid #64646433;border-width:1px 1px 2px;border-radius:3px}.ant-typography mark{padding:0;background-color:#ffe58f}.ant-typography ins,.ant-typography u{text-decoration:underline;-webkit-text-decoration-skip:ink;text-decoration-skip-ink:auto}.ant-typography del,.ant-typography s{text-decoration:line-through}.ant-typography strong{font-weight:600}.ant-typography-copy,.ant-typography-edit,.ant-typography-expand{color:#1890ff;text-decoration:none;outline:none;cursor:pointer;transition:color .3s;margin-left:4px}.ant-typography-copy:focus,.ant-typography-copy:hover,.ant-typography-edit:focus,.ant-typography-edit:hover,.ant-typography-expand:focus,.ant-typography-expand:hover{color:#40a9ff}.ant-typography-copy:active,.ant-typography-edit:active,.ant-typography-expand:active{color:#096dd9}.ant-typography-copy-success,.ant-typography-copy-success:focus,.ant-typography-copy-success:hover{color:#52c41a}.ant-typography-edit-content{position:relative}div.ant-typography-edit-content{left:-12px;margin-top:-5px;margin-bottom:calc(1em - 4px - 1px)}.ant-typography-edit-content-confirm{position:absolute;right:10px;bottom:8px;color:#00000073;pointer-events:none}.ant-typography-edit-content textarea{-moz-transition:none}.ant-typography ol,.ant-typography ul{margin:0 0 1em;padding:0}.ant-typography ol li,.ant-typography ul li{margin:0 0 0 20px;padding:0 0 0 4px}.ant-typography ul{list-style-type:circle}.ant-typography ul ul{list-style-type:disc}.ant-typography ol{list-style-type:decimal}.ant-typography blockquote,.ant-typography pre{margin:1em 0}.ant-typography pre{padding:.4em .6em;white-space:pre-wrap;word-wrap:break-word;background:#9696961a;border:1px solid #64646433;border-radius:3px}.ant-typography pre code{display:inline;margin:0;padding:0;font-size:inherit;font-family:inherit;background:#0000;border:0}.ant-typography blockquote{padding:0 0 0 .6em;border-left:4px solid #64646433;opacity:.85}.ant-typography-single-line{white-space:nowrap}.ant-typography-ellipsis-single-line{overflow:hidden;text-overflow:ellipsis}a.ant-typography-ellipsis-single-line,span.ant-typography-ellipsis-single-line{vertical-align:bottom}.ant-typography-ellipsis-multiple-line{display:-webkit-box;overflow:hidden;-webkit-line-clamp:3;\n /*! autoprefixer: ignore next */-webkit-box-orient:vertical}.ant-typography-rtl{direction:rtl}.ant-typography-rtl .ant-typography-copy,.ant-typography-rtl .ant-typography-edit,.ant-typography-rtl .ant-typography-expand{margin-right:4px;margin-left:0}.ant-typography-rtl .ant-typography-expand{float:left}div.ant-typography-edit-content.ant-typography-rtl{right:-12px;left:auto}.ant-typography-rtl .ant-typography-edit-content-confirm{right:auto;left:10px}.ant-typography-rtl.ant-typography ol li,.ant-typography-rtl.ant-typography ul li{margin:0 20px 0 0;padding:0 4px 0 0}.ant-upload{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";outline:0}.ant-upload p{margin:0}.ant-upload-btn{display:block;width:100%;outline:none}.ant-upload input[type=file]{cursor:pointer}.ant-upload.ant-upload-select{display:inline-block}.ant-upload.ant-upload-disabled{cursor:not-allowed}.ant-upload.ant-upload-select-picture-card{width:104px;height:104px;margin-right:8px;margin-bottom:8px;text-align:center;vertical-align:top;background-color:#fafafa;border:1px dashed #d9d9d9;border-radius:2px;cursor:pointer;transition:border-color .3s}.ant-upload.ant-upload-select-picture-card>.ant-upload{display:flex;align-items:center;justify-content:center;height:100%;text-align:center}.ant-upload.ant-upload-select-picture-card:hover{border-color:#1890ff}.ant-upload-disabled.ant-upload.ant-upload-select-picture-card:hover{border-color:#d9d9d9}.ant-upload.ant-upload-drag{position:relative;width:100%;height:100%;text-align:center;background:#fafafa;border:1px dashed #d9d9d9;border-radius:2px;cursor:pointer;transition:border-color .3s}.ant-upload.ant-upload-drag .ant-upload{padding:16px 0}.ant-upload.ant-upload-drag.ant-upload-drag-hover:not(.ant-upload-disabled){border-color:#096dd9}.ant-upload.ant-upload-drag.ant-upload-disabled{cursor:not-allowed}.ant-upload.ant-upload-drag .ant-upload-btn{display:table;height:100%}.ant-upload.ant-upload-drag .ant-upload-drag-container{display:table-cell;vertical-align:middle}.ant-upload.ant-upload-drag:not(.ant-upload-disabled):hover{border-color:#40a9ff}.ant-upload.ant-upload-drag p.ant-upload-drag-icon{margin-bottom:20px}.ant-upload.ant-upload-drag p.ant-upload-drag-icon .anticon{color:#40a9ff;font-size:48px}.ant-upload.ant-upload-drag p.ant-upload-text{margin:0 0 4px;color:#000000d9;font-size:16px}.ant-upload.ant-upload-drag p.ant-upload-hint{color:#00000073;font-size:14px}.ant-upload.ant-upload-drag .anticon-plus{color:#00000040;font-size:30px;transition:all .3s}.ant-upload.ant-upload-drag .anticon-plus:hover,.ant-upload.ant-upload-drag:hover .anticon-plus{color:#00000073}.ant-upload-picture-card-wrapper{display:inline-block;width:100%}.ant-upload-picture-card-wrapper:before{display:table;content:""}.ant-upload-picture-card-wrapper:after{display:table;clear:both;content:""}.ant-upload-list{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;list-style:none;font-feature-settings:"tnum";line-height:1.5715}.ant-upload-list:after,.ant-upload-list:before{display:table;content:""}.ant-upload-list:after{clear:both}.ant-upload-list-item{position:relative;height:22.001px;margin-top:8px;font-size:14px}.ant-upload-list-item-name{display:inline-block;width:100%;padding-left:22px;overflow:hidden;line-height:1.5715;white-space:nowrap;text-overflow:ellipsis}.ant-upload-list-item-card-actions{position:absolute;right:0}.ant-upload-list-item-card-actions-btn{opacity:0}.ant-upload-list-item-card-actions-btn.ant-btn-sm{height:20px;line-height:1}.ant-upload-list-item-card-actions.picture{top:22px;line-height:0}.ant-upload-list-item-card-actions-btn:focus,.ant-upload-list-item-card-actions.picture .ant-upload-list-item-card-actions-btn{opacity:1}.ant-upload-list-item-card-actions .anticon{color:#00000073}.ant-upload-list-item-info{height:100%;padding:0 4px;transition:background-color .3s}.ant-upload-list-item-info>span{display:block;width:100%;height:100%}.ant-upload-list-item-info .ant-upload-text-icon .anticon,.ant-upload-list-item-info .anticon-loading .anticon{position:absolute;top:5px;color:#00000073;font-size:14px}.ant-upload-list-item .anticon-close{position:absolute;top:6px;right:4px;color:#00000073;font-size:10px;line-height:0;cursor:pointer;opacity:0;transition:all .3s}.ant-upload-list-item .anticon-close:hover{color:#000000d9}.ant-upload-list-item:hover .ant-upload-list-item-info{background-color:#f5f5f5}.ant-upload-list-item:hover .ant-upload-list-item-card-actions-btn,.ant-upload-list-item:hover .anticon-close{opacity:1}.ant-upload-list-item-error,.ant-upload-list-item-error .ant-upload-list-item-card-actions .anticon,.ant-upload-list-item-error .ant-upload-list-item-name,.ant-upload-list-item-error .ant-upload-text-icon>.anticon{color:#ff4d4f}.ant-upload-list-item-error .ant-upload-list-item-card-actions-btn{opacity:1}.ant-upload-list-item-progress{position:absolute;bottom:-12px;width:100%;padding-left:26px;font-size:14px;line-height:0}.ant-upload-list-picture .ant-upload-list-item,.ant-upload-list-picture-card .ant-upload-list-item{position:relative;height:66px;padding:8px;border:1px solid #d9d9d9;border-radius:2px}.ant-upload-list-picture .ant-upload-list-item:hover,.ant-upload-list-picture-card .ant-upload-list-item:hover{background:#0000}.ant-upload-list-picture .ant-upload-list-item-error,.ant-upload-list-picture-card .ant-upload-list-item-error{border-color:#ff4d4f}.ant-upload-list-picture .ant-upload-list-item:hover .ant-upload-list-item-info,.ant-upload-list-picture-card .ant-upload-list-item:hover .ant-upload-list-item-info{background:#0000}.ant-upload-list-picture .ant-upload-list-item-uploading,.ant-upload-list-picture-card .ant-upload-list-item-uploading{border-style:dashed}.ant-upload-list-picture .ant-upload-list-item-thumbnail,.ant-upload-list-picture-card .ant-upload-list-item-thumbnail{width:48px;height:48px;line-height:54px;text-align:center;opacity:.8}.ant-upload-list-picture .ant-upload-list-item-thumbnail .anticon,.ant-upload-list-picture-card .ant-upload-list-item-thumbnail .anticon{font-size:26px}.ant-upload-list-picture .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill="#e6f7ff"],.ant-upload-list-picture-card .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill="#e6f7ff"]{fill:#fff2f0}.ant-upload-list-picture .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill="#1890ff"],.ant-upload-list-picture-card .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill="#1890ff"]{fill:#ff4d4f}.ant-upload-list-picture .ant-upload-list-item-icon,.ant-upload-list-picture-card .ant-upload-list-item-icon{position:absolute;top:50%;left:50%;font-size:26px;transform:translate(-50%,-50%)}.ant-upload-list-picture .ant-upload-list-item-icon .anticon,.ant-upload-list-picture-card .ant-upload-list-item-icon .anticon{font-size:26px}.ant-upload-list-picture .ant-upload-list-item-image,.ant-upload-list-picture-card .ant-upload-list-item-image{max-width:100%}.ant-upload-list-picture .ant-upload-list-item-thumbnail img,.ant-upload-list-picture-card .ant-upload-list-item-thumbnail img{display:block;width:48px;height:48px;overflow:hidden}.ant-upload-list-picture .ant-upload-list-item-name,.ant-upload-list-picture-card .ant-upload-list-item-name{display:inline-block;box-sizing:border-box;max-width:100%;margin:0 0 0 8px;padding-right:8px;padding-left:48px;overflow:hidden;line-height:44px;white-space:nowrap;text-overflow:ellipsis;transition:all .3s}.ant-upload-list-picture .ant-upload-list-item-uploading .ant-upload-list-item-name,.ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-name{line-height:28px}.ant-upload-list-picture .ant-upload-list-item-progress,.ant-upload-list-picture-card .ant-upload-list-item-progress{bottom:14px;width:calc(100% - 24px);margin-top:0;padding-left:56px}.ant-upload-list-picture .anticon-close,.ant-upload-list-picture-card .anticon-close{position:absolute;top:8px;right:8px;line-height:1;opacity:1}.ant-upload-list-picture-card-container{display:inline-block;width:104px;height:104px;margin:0 8px 8px 0;vertical-align:top}.ant-upload-list-picture-card.ant-upload-list:after{display:none}.ant-upload-list-picture-card .ant-upload-list-item{height:100%;margin:0}.ant-upload-list-picture-card .ant-upload-list-item-info{position:relative;height:100%;overflow:hidden}.ant-upload-list-picture-card .ant-upload-list-item-info:before{position:absolute;z-index:1;width:100%;height:100%;background-color:#00000080;opacity:0;transition:all .3s;content:" "}.ant-upload-list-picture-card .ant-upload-list-item:hover .ant-upload-list-item-info:before{opacity:1}.ant-upload-list-picture-card .ant-upload-list-item-actions{position:absolute;top:50%;left:50%;z-index:10;white-space:nowrap;transform:translate(-50%,-50%);opacity:0;transition:all .3s}.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-delete,.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-download,.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-eye{z-index:10;width:16px;margin:0 4px;color:#ffffffd9;font-size:16px;cursor:pointer;transition:all .3s}.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-delete:hover,.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-download:hover,.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-eye:hover{color:#fff}.ant-upload-list-picture-card .ant-upload-list-item-actions:hover,.ant-upload-list-picture-card .ant-upload-list-item-info:hover+.ant-upload-list-item-actions{opacity:1}.ant-upload-list-picture-card .ant-upload-list-item-thumbnail,.ant-upload-list-picture-card .ant-upload-list-item-thumbnail img{position:static;display:block;width:100%;height:100%;object-fit:contain}.ant-upload-list-picture-card .ant-upload-list-item-name{display:none;margin:8px 0 0;padding:0;line-height:1.5715;text-align:center}.ant-upload-list-picture-card .ant-upload-list-item-file+.ant-upload-list-item-name{position:absolute;bottom:10px;display:block}.ant-upload-list-picture-card .ant-upload-list-item-uploading.ant-upload-list-item{background-color:#fafafa}.ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-info{height:auto}.ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-info .anticon-delete,.ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-info .anticon-eye,.ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-info:before{display:none}.ant-upload-list-picture-card .ant-upload-list-item-progress{bottom:32px;width:calc(100% - 14px);padding-left:0}.ant-upload-list-picture-container,.ant-upload-list-text-container{transition:opacity .3s,height .3s}.ant-upload-list-picture-container:before,.ant-upload-list-text-container:before{display:table;width:0;height:0;content:""}.ant-upload-list-picture-container .ant-upload-span,.ant-upload-list-text-container .ant-upload-span{display:block;flex:auto}.ant-upload-list-picture .ant-upload-span,.ant-upload-list-text .ant-upload-span{display:flex;align-items:center}.ant-upload-list-picture .ant-upload-span>*,.ant-upload-list-text .ant-upload-span>*{flex:none}.ant-upload-list-picture .ant-upload-list-item-name,.ant-upload-list-text .ant-upload-list-item-name{flex:auto;padding:0 8px}.ant-upload-list-picture .ant-upload-list-item-card-actions,.ant-upload-list-text .ant-upload-list-item-card-actions,.ant-upload-list-text .ant-upload-text-icon .anticon{position:static}.ant-upload-list .ant-upload-animate-inline-appear,.ant-upload-list .ant-upload-animate-inline-enter,.ant-upload-list .ant-upload-animate-inline-leave{animation-duration:.3s;animation-fill-mode:cubic-bezier(.78,.14,.15,.86)}.ant-upload-list .ant-upload-animate-inline-appear,.ant-upload-list .ant-upload-animate-inline-enter{animation-name:uploadAnimateInlineIn}.ant-upload-list .ant-upload-animate-inline-leave{animation-name:uploadAnimateInlineOut}@keyframes uploadAnimateInlineIn{0%{width:0;height:0;margin:0;padding:0;opacity:0}}@keyframes uploadAnimateInlineOut{to{width:0;height:0;margin:0;padding:0;opacity:0}}.ant-upload-rtl{direction:rtl}.ant-upload-rtl.ant-upload.ant-upload-select-picture-card{margin-right:auto;margin-left:8px}.ant-upload-list-rtl{direction:rtl}.ant-upload-list-rtl .ant-upload-list-item-list-type-text:hover .ant-upload-list-item-name-icon-count-1{padding-right:22px;padding-left:14px}.ant-upload-list-rtl .ant-upload-list-item-list-type-text:hover .ant-upload-list-item-name-icon-count-2{padding-right:22px;padding-left:28px}.ant-upload-list-rtl .ant-upload-list-item-name{padding-right:22px;padding-left:0}.ant-upload-list-rtl .ant-upload-list-item-name-icon-count-1{padding-left:14px}.ant-upload-list-rtl .ant-upload-list-item-card-actions{right:auto;left:0}.ant-upload-list-rtl .ant-upload-list-item-card-actions .anticon{padding-right:0;padding-left:5px}.ant-upload-list-rtl .ant-upload-list-item-info{padding:0 4px 0 12px}.ant-upload-list-rtl .ant-upload-list-item .anticon-close{right:auto;left:4px}.ant-upload-list-rtl .ant-upload-list-item-error .ant-upload-list-item-card-actions .anticon{padding-right:0;padding-left:5px}.ant-upload-list-rtl .ant-upload-list-item-progress{padding-right:26px;padding-left:0}.ant-upload-list-picture .ant-upload-list-item-info,.ant-upload-list-picture-card .ant-upload-list-item-info{padding:0}.ant-upload-list-rtl.ant-upload-list-picture .ant-upload-list-item-thumbnail,.ant-upload-list-rtl.ant-upload-list-picture-card .ant-upload-list-item-thumbnail{right:8px;left:auto}.ant-upload-list-rtl.ant-upload-list-picture .ant-upload-list-item-icon,.ant-upload-list-rtl.ant-upload-list-picture-card .ant-upload-list-item-icon{right:50%;left:auto;transform:translate(50%,-50%)}.ant-upload-list-rtl.ant-upload-list-picture .ant-upload-list-item-name,.ant-upload-list-rtl.ant-upload-list-picture-card .ant-upload-list-item-name{margin:0 8px 0 0;padding-right:48px;padding-left:8px}.ant-upload-list-rtl.ant-upload-list-picture .ant-upload-list-item-name-icon-count-1,.ant-upload-list-rtl.ant-upload-list-picture-card .ant-upload-list-item-name-icon-count-1{padding-right:48px;padding-left:18px}.ant-upload-list-rtl.ant-upload-list-picture .ant-upload-list-item-name-icon-count-2,.ant-upload-list-rtl.ant-upload-list-picture-card .ant-upload-list-item-name-icon-count-2{padding-right:48px;padding-left:36px}.ant-upload-list-rtl.ant-upload-list-picture .ant-upload-list-item-progress,.ant-upload-list-rtl.ant-upload-list-picture-card .ant-upload-list-item-progress{padding-right:0;padding-left:0}.ant-upload-list-rtl.ant-upload-list-picture .anticon-close,.ant-upload-list-rtl.ant-upload-list-picture-card .anticon-close{right:auto;left:8px}.ant-upload-list-rtl .ant-upload-list-picture-card-container{margin:0 0 8px 8px}.ant-upload-list-rtl.ant-upload-list-picture-card .ant-upload-list-item-actions{right:50%;left:auto;transform:translate(50%,-50%)}.ant-upload-list-rtl.ant-upload-list-picture-card .ant-upload-list-item-file+.ant-upload-list-item-name{margin:8px 0 0;padding:0}.ant-upload-list-rtl.ant-upload-list-picture-card .ant-upload-list-item{float:unset}.ant-select-auto-complete{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum"}.ant-select-auto-complete .ant-select-clear{right:13px}.ant-select-dropdown-hidden{display:none}.ant-cascader{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum"}.ant-cascader-input.ant-input{position:static;width:100%;padding-right:24px;background-color:initial!important;cursor:pointer}.ant-cascader-picker-show-search .ant-cascader-input.ant-input{position:relative}.ant-cascader-picker{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:relative;display:inline-block;background-color:#fff;border-radius:2px;outline:0;cursor:pointer;transition:color .3s}.ant-cascader-picker-with-value .ant-cascader-picker-label{color:#0000}.ant-cascader-picker-disabled{color:#00000040;background:#f5f5f5;cursor:not-allowed}.ant-cascader-picker-disabled .ant-cascader-input{cursor:not-allowed}.ant-cascader-picker:focus .ant-cascader-input{border-color:#40a9ff;border-right-width:1px!important;outline:0;box-shadow:0 0 0 2px #1890ff33}.ant-input-rtl .ant-cascader-picker:focus .ant-cascader-input{border-right-width:0;border-left-width:1px!important}.ant-cascader-picker-borderless .ant-cascader-input{border-color:#0000!important;box-shadow:none!important}.ant-cascader-picker-show-search.ant-cascader-picker-focused{color:#00000040}.ant-cascader-picker-label{position:absolute;top:50%;left:0;width:100%;height:20px;margin-top:-10px;padding:0 20px 0 12px;overflow:hidden;line-height:20px;white-space:nowrap;text-overflow:ellipsis}.ant-cascader-picker-clear{position:absolute;top:50%;right:12px;z-index:2;width:12px;height:12px;margin-top:-6px;color:#00000040;font-size:12px;line-height:12px;background:#fff;cursor:pointer;opacity:0;transition:color .3s ease,opacity .15s ease}.ant-cascader-picker-clear:hover{color:#00000073}.ant-cascader-picker:hover .ant-cascader-picker-clear{opacity:1}.ant-cascader-picker-arrow{position:absolute;top:50%;right:12px;z-index:1;width:12px;height:12px;margin-top:-6px;color:#00000040;font-size:12px;line-height:12px}.ant-cascader-picker-label:hover+.ant-cascader-input:not(.ant-cascader-picker-disabled .ant-cascader-picker-label:hover+.ant-cascader-input){border-color:#40a9ff;border-right-width:1px!important}.ant-input-rtl .ant-cascader-picker-label:hover+.ant-cascader-input:not(.ant-cascader-picker-disabled .ant-cascader-picker-label:hover+.ant-cascader-input){border-right-width:0;border-left-width:1px!important}.ant-cascader-picker-small .ant-cascader-picker-arrow,.ant-cascader-picker-small .ant-cascader-picker-clear{right:8px}.ant-cascader-menus{position:absolute;z-index:1050;font-size:14px;white-space:nowrap;background:#fff;border-radius:2px;box-shadow:0 3px 6px -4px #0000001f,0 6px 16px 0 #00000014,0 9px 28px 8px #0000000d}.ant-cascader-menus ol,.ant-cascader-menus ul{margin:0;list-style:none}.ant-cascader-menus-empty,.ant-cascader-menus-hidden{display:none}.ant-cascader-menus.ant-slide-up-appear.ant-slide-up-appear-active.ant-cascader-menus-placement-bottomLeft,.ant-cascader-menus.ant-slide-up-enter.ant-slide-up-enter-active.ant-cascader-menus-placement-bottomLeft{animation-name:antSlideUpIn}.ant-cascader-menus.ant-slide-up-appear.ant-slide-up-appear-active.ant-cascader-menus-placement-topLeft,.ant-cascader-menus.ant-slide-up-enter.ant-slide-up-enter-active.ant-cascader-menus-placement-topLeft{animation-name:antSlideDownIn}.ant-cascader-menus.ant-slide-up-leave.ant-slide-up-leave-active.ant-cascader-menus-placement-bottomLeft{animation-name:antSlideUpOut}.ant-cascader-menus.ant-slide-up-leave.ant-slide-up-leave-active.ant-cascader-menus-placement-topLeft{animation-name:antSlideDownOut}.ant-cascader-menu{display:inline-block;min-width:111px;height:180px;margin:0;padding:4px 0;overflow:auto;vertical-align:top;list-style:none;border-right:1px solid #f0f0f0;-ms-overflow-style:-ms-autohiding-scrollbar}.ant-cascader-menu:first-child{border-radius:2px 0 0 2px}.ant-cascader-menu:last-child{margin-right:-1px;border-right-color:#0000;border-radius:0 2px 2px 0}.ant-cascader-menu:only-child{border-radius:2px}.ant-cascader-menu-item{padding:5px 12px;overflow:hidden;line-height:22px;white-space:nowrap;text-overflow:ellipsis;cursor:pointer;transition:all .3s}.ant-cascader-menu-item:hover{background:#f5f5f5}.ant-cascader-menu-item-disabled{color:#00000040;cursor:not-allowed}.ant-cascader-menu-item-disabled:hover{background:#0000}.ant-cascader-menu-empty .ant-cascader-menu-item{color:#00000040;cursor:default;pointer-events:none}.ant-cascader-menu-item-active:not(.ant-cascader-menu-item-disabled),.ant-cascader-menu-item-active:not(.ant-cascader-menu-item-disabled):hover{font-weight:600;background-color:#e6f7ff}.ant-cascader-menu-item-expand{position:relative;padding-right:24px}.ant-cascader-menu-item-expand .ant-cascader-menu-item-expand-icon,.ant-cascader-menu-item-loading-icon{position:absolute;right:12px;color:#00000073;font-size:10px}.ant-cascader-menu-item-disabled.ant-cascader-menu-item-expand .ant-cascader-menu-item-expand-icon,.ant-cascader-menu-item-disabled.ant-cascader-menu-item-loading-icon{color:#00000040}.ant-cascader-menu-item .ant-cascader-menu-item-keyword{color:#ff4d4f}.ant-cascader-picker-rtl .ant-cascader-input.ant-input{padding-right:11px;padding-left:24px;text-align:right}.ant-cascader-picker-rtl{direction:rtl}.ant-cascader-picker-rtl .ant-cascader-picker-label{padding:0 12px 0 20px;text-align:right}.ant-cascader-picker-rtl .ant-cascader-picker-arrow,.ant-cascader-picker-rtl .ant-cascader-picker-clear{right:auto;left:12px}.ant-cascader-picker-rtl.ant-cascader-picker-small .ant-cascader-picker-arrow,.ant-cascader-picker-rtl.ant-cascader-picker-small .ant-cascader-picker-clear{right:auto;left:8px}.ant-cascader-menu-rtl .ant-cascader-menu{direction:rtl;border-right:none;border-left:1px solid #f0f0f0}.ant-cascader-menu-rtl .ant-cascader-menu:first-child{border-radius:0 2px 2px 0}.ant-cascader-menu-rtl .ant-cascader-menu:last-child{margin-right:0;margin-left:-1px;border-left-color:#0000;border-radius:2px 0 0 2px}.ant-cascader-menu-rtl .ant-cascader-menu:only-child{border-radius:2px}.ant-cascader-menu-rtl .ant-cascader-menu-item-expand{padding-right:12px;padding-left:24px}.ant-cascader-menu-rtl .ant-cascader-menu-item-expand .ant-cascader-menu-item-expand-icon,.ant-cascader-menu-rtl .ant-cascader-menu-item-loading-icon{right:auto;left:12px}.ant-cascader-menu-rtl .ant-cascader-menu-item-loading-icon{transform:scaleY(-1)}.ant-cascader-menus{position:relative;margin-top:2px;margin-bottom:2px}nz-tree-virtual-scroll-view{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-webkit-overflow-scrolling:touch}nz-tree-virtual-scroll-view .ant-tree-list,nz-tree-virtual-scroll-view .ant-tree-list-holder{height:100%}nz-tree-view .ant-tree-switcher+.ant-tree-switcher.nz-tree-leaf-line-icon,nz-tree-virtual-scroll-view .ant-tree-switcher+.ant-tree-switcher.nz-tree-leaf-line-icon{display:none}nz-tree-view .ant-tree-list-holder-inner{display:flex;flex-direction:column}.ant-tree-treenode-leaf-last .ant-tree-switcher-leaf-line:before{top:auto!important;bottom:auto!important;height:14px!important}.ant-tree.ant-tree-directory .ant-tree-treenode{position:relative}.ant-tree.ant-tree-directory .ant-tree-treenode:before{position:absolute;top:0;right:0;bottom:4px;left:0;transition:background-color .3s;content:"";pointer-events:none}.ant-tree.ant-tree-directory .ant-tree-treenode:hover:before{background:#f5f5f5}.ant-tree.ant-tree-directory .ant-tree-treenode>*{z-index:1}.ant-tree.ant-tree-directory .ant-tree-treenode .ant-tree-switcher{transition:color .3s}.ant-tree.ant-tree-directory .ant-tree-treenode .ant-tree-node-content-wrapper{border-radius:0;-webkit-user-select:none;user-select:none}.ant-tree.ant-tree-directory .ant-tree-treenode .ant-tree-node-content-wrapper:hover{background:#0000}.ant-tree.ant-tree-directory .ant-tree-treenode .ant-tree-node-content-wrapper.ant-tree-node-selected{color:#fff;background:#0000}.ant-tree.ant-tree-directory .ant-tree-treenode-selected:before,.ant-tree.ant-tree-directory .ant-tree-treenode-selected:hover:before{background:#1890ff}.ant-tree.ant-tree-directory .ant-tree-treenode-selected .ant-tree-switcher{color:#fff}.ant-tree.ant-tree-directory .ant-tree-treenode-selected .ant-tree-node-content-wrapper{color:#fff;background:#0000}.ant-tree-checkbox{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:relative;top:.2em;line-height:1;white-space:nowrap;outline:none;cursor:pointer}.ant-tree-checkbox-input:focus+.ant-tree-checkbox-inner,.ant-tree-checkbox-wrapper:hover .ant-tree-checkbox-inner,.ant-tree-checkbox:hover .ant-tree-checkbox-inner{border-color:#1890ff}.ant-tree-checkbox-checked:after{position:absolute;top:0;left:0;width:100%;height:100%;border:1px solid #1890ff;border-radius:2px;visibility:hidden;animation:antCheckboxEffect .36s ease-in-out;animation-fill-mode:backwards;content:""}.ant-tree-checkbox-wrapper:hover .ant-tree-checkbox:after,.ant-tree-checkbox:hover:after{visibility:visible}.ant-tree-checkbox-inner{position:relative;top:0;left:0;display:block;width:16px;height:16px;direction:ltr;background-color:#fff;border:1px solid #d9d9d9;border-radius:2px;border-collapse:initial;transition:all .3s}.ant-tree-checkbox-inner:after{position:absolute;top:50%;left:21.5%;display:table;width:5.71428571px;height:9.14285714px;border:2px solid #fff;border-top:0;border-left:0;transform:rotate(45deg) scale(0) translate(-50%,-50%);opacity:0;transition:all .1s cubic-bezier(.71,-.46,.88,.6),opacity .1s;content:" "}.ant-tree-checkbox-input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%;cursor:pointer;opacity:0}.ant-tree-checkbox-checked .ant-tree-checkbox-inner:after{position:absolute;display:table;border:2px solid #fff;border-top:0;border-left:0;transform:rotate(45deg) scale(1) translate(-50%,-50%);opacity:1;transition:all .2s cubic-bezier(.12,.4,.29,1.46) .1s;content:" "}.ant-tree-checkbox-checked .ant-tree-checkbox-inner{background-color:#1890ff;border-color:#1890ff}.ant-tree-checkbox-disabled{cursor:not-allowed}.ant-tree-checkbox-disabled.ant-tree-checkbox-checked .ant-tree-checkbox-inner:after{border-color:#00000040;animation-name:none}.ant-tree-checkbox-disabled .ant-tree-checkbox-input{cursor:not-allowed}.ant-tree-checkbox-disabled .ant-tree-checkbox-inner{background-color:#f5f5f5;border-color:#d9d9d9!important}.ant-tree-checkbox-disabled .ant-tree-checkbox-inner:after{border-color:#f5f5f5;border-collapse:initial;animation-name:none}.ant-tree-checkbox-disabled+span{color:#00000040;cursor:not-allowed}.ant-tree-checkbox-disabled:hover:after,.ant-tree-checkbox-wrapper:hover .ant-tree-checkbox-disabled:after{visibility:hidden}.ant-tree-checkbox-wrapper{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";display:inline-flex;align-items:baseline;line-height:unset;cursor:pointer}.ant-tree-checkbox-wrapper:after{display:inline-block;width:0;overflow:hidden;content:"\\a0"}.ant-tree-checkbox-wrapper.ant-tree-checkbox-wrapper-disabled{cursor:not-allowed}.ant-tree-checkbox-wrapper+.ant-tree-checkbox-wrapper{margin-left:8px}.ant-tree-checkbox+span{padding-right:8px;padding-left:8px}.ant-tree-checkbox-group{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";display:inline-block}.ant-tree-checkbox-group-item{margin-right:8px}.ant-tree-checkbox-group-item:last-child{margin-right:0}.ant-tree-checkbox-group-item+.ant-tree-checkbox-group-item{margin-left:0}.ant-tree-checkbox-indeterminate .ant-tree-checkbox-inner{background-color:#fff;border-color:#d9d9d9}.ant-tree-checkbox-indeterminate .ant-tree-checkbox-inner:after{top:50%;left:50%;width:8px;height:8px;background-color:#1890ff;border:0;transform:translate(-50%,-50%) scale(1);opacity:1;content:" "}.ant-tree-checkbox-indeterminate.ant-tree-checkbox-disabled .ant-tree-checkbox-inner:after{background-color:#00000040;border-color:#00000040}.ant-tree-checkbox-rtl{direction:rtl}.ant-tree-checkbox-group-rtl .ant-tree-checkbox-group-item{margin-right:0;margin-left:8px}.ant-tree-checkbox-group-rtl .ant-tree-checkbox-group-item:last-child{margin-left:0!important}.ant-tree-checkbox-group-rtl .ant-tree-checkbox-group-item+.ant-tree-checkbox-group-item{margin-left:8px}.ant-tree{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";background:#fff;border-radius:2px;transition:background-color .3s}.ant-tree-focused:not(:hover):not(.ant-tree-active-focused){background:#e6f7ff}.ant-tree-list-holder-inner{align-items:flex-start}.ant-tree.ant-tree-block-node .ant-tree-list-holder-inner{align-items:stretch}.ant-tree.ant-tree-block-node .ant-tree-list-holder-inner .ant-tree-node-content-wrapper{flex:auto}.ant-tree .ant-tree-treenode{display:flex;align-items:flex-start;padding:0 0 4px;outline:none}.ant-tree .ant-tree-treenode-disabled .ant-tree-node-content-wrapper{color:#00000040;cursor:not-allowed}.ant-tree .ant-tree-treenode-disabled .ant-tree-node-content-wrapper:hover{background:#0000}.ant-tree .ant-tree-treenode-active .ant-tree-node-content-wrapper{background:#f5f5f5}.ant-tree .ant-tree-treenode:not(.ant-tree .ant-tree-treenode-disabled).filter-node .ant-tree-title{color:inherit;font-weight:500}.ant-tree-indent{align-self:stretch;white-space:nowrap;-webkit-user-select:none;user-select:none}.ant-tree-indent-unit{display:inline-block;width:24px}.ant-tree-switcher{position:relative;flex:none;align-self:stretch;width:24px;margin:0;line-height:24px;text-align:center;cursor:pointer;-webkit-user-select:none;user-select:none}.ant-tree-switcher .ant-select-tree-switcher-icon,.ant-tree-switcher .ant-tree-switcher-icon{display:inline-block;font-size:10px;vertical-align:initial}.ant-tree-switcher .ant-select-tree-switcher-icon svg,.ant-tree-switcher .ant-tree-switcher-icon svg{transition:transform .3s}.ant-tree-switcher-noop{cursor:default}.ant-tree-switcher_close .ant-tree-switcher-icon svg{transform:rotate(-90deg)}.ant-tree-switcher-loading-icon{color:#1890ff}.ant-tree-switcher-leaf-line{position:relative;z-index:1;display:inline-block;width:100%;height:100%}.ant-tree-switcher-leaf-line:before{position:absolute;top:0;bottom:-4px;margin-left:-1px;border-left:1px solid #d9d9d9;content:" "}.ant-tree-switcher-leaf-line:after{position:absolute;width:10px;height:14px;margin-left:-1px;border-bottom:1px solid #d9d9d9;content:" "}.ant-tree-checkbox{top:auto;margin:4px 8px 0 0}.ant-tree .ant-tree-node-content-wrapper{position:relative;z-index:auto;min-height:24px;margin:0;padding:0 4px;color:inherit;line-height:24px;background:#0000;border-radius:2px;cursor:pointer;transition:all .3s,border 0s,line-height 0s,box-shadow 0s}.ant-tree .ant-tree-node-content-wrapper:hover{background-color:#f5f5f5}.ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected{background-color:#bae7ff}.ant-tree .ant-tree-node-content-wrapper .ant-tree-iconEle{display:inline-block;width:24px;height:24px;line-height:24px;text-align:center;vertical-align:top}.ant-tree .ant-tree-node-content-wrapper .ant-tree-iconEle:empty{display:none}.ant-tree-unselectable .ant-tree-node-content-wrapper:hover{background-color:initial}.ant-tree-node-content-wrapper[draggable=true]{line-height:24px;-webkit-user-select:none;user-select:none}.ant-tree-node-content-wrapper[draggable=true] .ant-tree-drop-indicator{position:absolute;z-index:1;height:2px;background-color:#1890ff;border-radius:1px;pointer-events:none}.ant-tree-node-content-wrapper[draggable=true] .ant-tree-drop-indicator:after{position:absolute;top:-3px;left:-6px;width:8px;height:8px;background-color:initial;border:2px solid #1890ff;border-radius:50%;content:""}.ant-tree .ant-tree-treenode.drop-container>[draggable]{box-shadow:0 0 0 2px #1890ff}.ant-tree-show-line .ant-tree-indent-unit{position:relative;height:100%}.ant-tree-show-line .ant-tree-indent-unit:before{position:absolute;top:0;right:12px;bottom:-4px;border-right:1px solid #d9d9d9;content:""}.ant-tree-show-line .ant-tree-indent-unit-end:before{display:none}.ant-tree-show-line .ant-tree-switcher{background:#fff}.ant-tree-show-line .ant-tree-switcher-line-icon{vertical-align:-.225em}.ant-tree-rtl{direction:rtl}.ant-tree-rtl .ant-tree-node-content-wrapper[draggable=true] .ant-tree-drop-indicator:after{right:-6px;left:unset}.ant-tree .ant-tree-treenode-rtl{direction:rtl}.ant-tree-rtl .ant-tree-switcher_close .ant-tree-switcher-icon svg{transform:rotate(90deg)}.ant-tree-rtl.ant-tree-show-line .ant-tree-indent-unit:before{right:auto;left:-13px;border-right:none;border-left:1px solid #d9d9d9}.ant-tree-rtl.ant-tree-checkbox,.ant-tree-select-dropdown-rtl .ant-select-tree-checkbox{margin:4px 0 0 8px}.font-highlight{color:#ff4d4f}.ant-tree-child-tree{overflow:hidden}nz-tree{display:block}.ant-select-tree-checkbox{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:relative;top:.2em;line-height:1;white-space:nowrap;outline:none;cursor:pointer}.ant-select-tree-checkbox-input:focus+.ant-select-tree-checkbox-inner,.ant-select-tree-checkbox-wrapper:hover .ant-select-tree-checkbox-inner,.ant-select-tree-checkbox:hover .ant-select-tree-checkbox-inner{border-color:#1890ff}.ant-select-tree-checkbox-checked:after{position:absolute;top:0;left:0;width:100%;height:100%;border:1px solid #1890ff;border-radius:2px;visibility:hidden;animation:antCheckboxEffect .36s ease-in-out;animation-fill-mode:backwards;content:""}.ant-select-tree-checkbox-wrapper:hover .ant-select-tree-checkbox:after,.ant-select-tree-checkbox:hover:after{visibility:visible}.ant-select-tree-checkbox-inner{position:relative;top:0;left:0;display:block;width:16px;height:16px;direction:ltr;background-color:#fff;border:1px solid #d9d9d9;border-radius:2px;border-collapse:initial;transition:all .3s}.ant-select-tree-checkbox-inner:after{position:absolute;top:50%;left:21.5%;display:table;width:5.71428571px;height:9.14285714px;border:2px solid #fff;border-top:0;border-left:0;transform:rotate(45deg) scale(0) translate(-50%,-50%);opacity:0;transition:all .1s cubic-bezier(.71,-.46,.88,.6),opacity .1s;content:" "}.ant-select-tree-checkbox-input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%;cursor:pointer;opacity:0}.ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner:after{position:absolute;display:table;border:2px solid #fff;border-top:0;border-left:0;transform:rotate(45deg) scale(1) translate(-50%,-50%);opacity:1;transition:all .2s cubic-bezier(.12,.4,.29,1.46) .1s;content:" "}.ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner{background-color:#1890ff;border-color:#1890ff}.ant-select-tree-checkbox-disabled{cursor:not-allowed}.ant-select-tree-checkbox-disabled.ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner:after{border-color:#00000040;animation-name:none}.ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-input{cursor:not-allowed}.ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-inner{background-color:#f5f5f5;border-color:#d9d9d9!important}.ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-inner:after{border-color:#f5f5f5;border-collapse:initial;animation-name:none}.ant-select-tree-checkbox-disabled+span{color:#00000040;cursor:not-allowed}.ant-select-tree-checkbox-disabled:hover:after,.ant-select-tree-checkbox-wrapper:hover .ant-select-tree-checkbox-disabled:after{visibility:hidden}.ant-select-tree-checkbox-wrapper{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";display:inline-flex;align-items:baseline;line-height:unset;cursor:pointer}.ant-select-tree-checkbox-wrapper:after{display:inline-block;width:0;overflow:hidden;content:"\\a0"}.ant-select-tree-checkbox-wrapper.ant-select-tree-checkbox-wrapper-disabled{cursor:not-allowed}.ant-select-tree-checkbox-wrapper+.ant-select-tree-checkbox-wrapper{margin-left:8px}.ant-select-tree-checkbox+span{padding-right:8px;padding-left:8px}.ant-select-tree-checkbox-group{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";display:inline-block}.ant-select-tree-checkbox-group-item{margin-right:8px}.ant-select-tree-checkbox-group-item:last-child{margin-right:0}.ant-select-tree-checkbox-group-item+.ant-select-tree-checkbox-group-item{margin-left:0}.ant-select-tree-checkbox-indeterminate .ant-select-tree-checkbox-inner{background-color:#fff;border-color:#d9d9d9}.ant-select-tree-checkbox-indeterminate .ant-select-tree-checkbox-inner:after{top:50%;left:50%;width:8px;height:8px;background-color:#1890ff;border:0;transform:translate(-50%,-50%) scale(1);opacity:1;content:" "}.ant-select-tree-checkbox-indeterminate.ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-inner:after{background-color:#00000040;border-color:#00000040}.ant-select-tree-checkbox-rtl{direction:rtl}.ant-select-tree-checkbox-group-rtl .ant-select-tree-checkbox-group-item{margin-right:0;margin-left:8px}.ant-select-tree-checkbox-group-rtl .ant-select-tree-checkbox-group-item:last-child{margin-left:0!important}.ant-select-tree-checkbox-group-rtl .ant-select-tree-checkbox-group-item+.ant-select-tree-checkbox-group-item{margin-left:8px}.ant-tree-select-dropdown{padding:8px 4px 0}.ant-tree-select-dropdown-rtl{direction:rtl}.ant-tree-select-dropdown .ant-select-tree{border-radius:0}.ant-tree-select-dropdown .ant-select-tree-list-holder-inner{align-items:stretch}.ant-tree-select-dropdown .ant-select-tree-list-holder-inner .ant-select-tree-treenode{padding-bottom:8px}.ant-tree-select-dropdown .ant-select-tree-list-holder-inner .ant-select-tree-treenode .ant-select-tree-node-content-wrapper{flex:auto}.ant-select-tree{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";background:#fff;border-radius:2px;transition:background-color .3s}.ant-select-tree-focused:not(:hover):not(.ant-select-tree-active-focused){background:#e6f7ff}.ant-select-tree-list-holder-inner{align-items:flex-start}.ant-select-tree.ant-select-tree-block-node .ant-select-tree-list-holder-inner{align-items:stretch}.ant-select-tree.ant-select-tree-block-node .ant-select-tree-list-holder-inner .ant-select-tree-node-content-wrapper{flex:auto}.ant-select-tree .ant-select-tree-treenode{display:flex;align-items:flex-start;padding:0 0 4px;outline:none}.ant-select-tree .ant-select-tree-treenode-disabled .ant-select-tree-node-content-wrapper{color:#00000040;cursor:not-allowed}.ant-select-tree .ant-select-tree-treenode-disabled .ant-select-tree-node-content-wrapper:hover{background:#0000}.ant-select-tree .ant-select-tree-treenode-active .ant-select-tree-node-content-wrapper{background:#f5f5f5}.ant-select-tree .ant-select-tree-treenode:not(.ant-select-tree .ant-select-tree-treenode-disabled).filter-node .ant-select-tree-title{color:inherit;font-weight:500}.ant-select-tree-indent{align-self:stretch;white-space:nowrap;-webkit-user-select:none;user-select:none}.ant-select-tree-indent-unit{display:inline-block;width:24px}.ant-select-tree-switcher{position:relative;flex:none;align-self:stretch;width:24px;margin:0;line-height:24px;text-align:center;cursor:pointer;-webkit-user-select:none;user-select:none}.ant-select-tree-switcher .ant-select-tree-switcher-icon,.ant-select-tree-switcher .ant-tree-switcher-icon{display:inline-block;font-size:10px;vertical-align:initial}.ant-select-tree-switcher .ant-select-tree-switcher-icon svg,.ant-select-tree-switcher .ant-tree-switcher-icon svg{transition:transform .3s}.ant-select-tree-switcher-noop{cursor:default}.ant-select-tree-switcher_close .ant-select-tree-switcher-icon svg{transform:rotate(-90deg)}.ant-select-tree-switcher-loading-icon{color:#1890ff}.ant-select-tree-switcher-leaf-line{position:relative;z-index:1;display:inline-block;width:100%;height:100%}.ant-select-tree-switcher-leaf-line:before{position:absolute;top:0;bottom:-4px;margin-left:-1px;border-left:1px solid #d9d9d9;content:" "}.ant-select-tree-switcher-leaf-line:after{position:absolute;width:10px;height:14px;margin-left:-1px;border-bottom:1px solid #d9d9d9;content:" "}.ant-select-tree-checkbox{top:auto;margin:4px 8px 0 0}.ant-select-tree .ant-select-tree-node-content-wrapper{position:relative;z-index:auto;min-height:24px;margin:0;padding:0 4px;color:inherit;line-height:24px;background:#0000;border-radius:2px;cursor:pointer;transition:all .3s,border 0s,line-height 0s,box-shadow 0s}.ant-select-tree .ant-select-tree-node-content-wrapper:hover{background-color:#f5f5f5}.ant-select-tree .ant-select-tree-node-content-wrapper.ant-select-tree-node-selected{background-color:#bae7ff}.ant-select-tree .ant-select-tree-node-content-wrapper .ant-select-tree-iconEle{display:inline-block;width:24px;height:24px;line-height:24px;text-align:center;vertical-align:top}.ant-select-tree .ant-select-tree-node-content-wrapper .ant-select-tree-iconEle:empty{display:none}.ant-select-tree-unselectable .ant-select-tree-node-content-wrapper:hover{background-color:initial}.ant-select-tree-node-content-wrapper[draggable=true]{line-height:24px;-webkit-user-select:none;user-select:none}.ant-select-tree-node-content-wrapper[draggable=true] .ant-tree-drop-indicator{position:absolute;z-index:1;height:2px;background-color:#1890ff;border-radius:1px;pointer-events:none}.ant-select-tree-node-content-wrapper[draggable=true] .ant-tree-drop-indicator:after{position:absolute;top:-3px;left:-6px;width:8px;height:8px;background-color:initial;border:2px solid #1890ff;border-radius:50%;content:""}.ant-select-tree .ant-select-tree-treenode.drop-container>[draggable]{box-shadow:0 0 0 2px #1890ff}.ant-select-tree-show-line .ant-select-tree-indent-unit{position:relative;height:100%}.ant-select-tree-show-line .ant-select-tree-indent-unit:before{position:absolute;top:0;right:12px;bottom:-4px;border-right:1px solid #d9d9d9;content:""}.ant-select-tree-show-line .ant-select-tree-indent-unit-end:before{display:none}.ant-select-tree-show-line .ant-select-tree-switcher{background:#fff}.ant-select-tree-show-line .ant-select-tree-switcher-line-icon{vertical-align:-.225em}.ant-tree-select-dropdown-rtl .ant-select-tree .ant-select-tree-switcher_close .ant-select-tree-switcher-icon svg{transform:rotate(90deg)}.ant-tree-select-dropdown-rtl .ant-select-tree .ant-select-tree-switcher-loading-icon{transform:scaleY(-1)}.ant-tree.ant-select-tree.ant-tree-show-line nz-tree-node[builtin]:not(:last-child)>li:before{content:" ";width:1px;border-left:1px solid #d9d9d9;height:calc(100% - 16px);position:absolute;left:12px;margin:26px 0}.ant-select-dropdown.ant-select-tree-dropdown{top:100%;left:0;position:relative;width:100%;margin-top:4px;margin-bottom:4px;overflow:auto}.ant-picker-calendar{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";background:#fff}.ant-picker-calendar-header{display:flex;justify-content:flex-end;padding:12px 0}.ant-picker-calendar-header .ant-picker-calendar-year-select{min-width:80px}.ant-picker-calendar-header .ant-picker-calendar-month-select{min-width:70px;margin-left:8px}.ant-picker-calendar-header .ant-picker-calendar-mode-switch{margin-left:8px}.ant-picker-calendar .ant-picker-panel{background:#fff;border:0;border-top:1px solid #f0f0f0;border-radius:0}.ant-picker-calendar .ant-picker-panel .ant-picker-date-panel,.ant-picker-calendar .ant-picker-panel .ant-picker-month-panel{width:auto}.ant-picker-calendar .ant-picker-panel .ant-picker-body{padding:8px 0}.ant-picker-calendar .ant-picker-panel .ant-picker-content{width:100%}.ant-picker-calendar-mini{border-radius:2px}.ant-picker-calendar-mini .ant-picker-calendar-header{padding-right:8px;padding-left:8px}.ant-picker-calendar-mini .ant-picker-panel{border-radius:0 0 2px 2px}.ant-picker-calendar-mini .ant-picker-content{height:256px}.ant-picker-calendar-mini .ant-picker-content th{height:auto;padding:0;line-height:18px}.ant-picker-calendar-full .ant-picker-panel{display:block;width:100%;text-align:right;background:#fff;border:0}.ant-picker-calendar-full .ant-picker-panel .ant-picker-body td,.ant-picker-calendar-full .ant-picker-panel .ant-picker-body th{padding:0}.ant-picker-calendar-full .ant-picker-panel .ant-picker-body th{height:auto;padding:0 12px 5px 0;line-height:18px}.ant-picker-calendar-full .ant-picker-panel .ant-picker-cell:before{display:none}.ant-picker-calendar-full .ant-picker-panel .ant-picker-cell:hover .ant-picker-calendar-date{background:#f5f5f5}.ant-picker-calendar-full .ant-picker-panel .ant-picker-cell .ant-picker-calendar-date-today:before{display:none}.ant-picker-calendar-full .ant-picker-panel .ant-picker-cell-selected .ant-picker-calendar-date,.ant-picker-calendar-full .ant-picker-panel .ant-picker-cell-selected .ant-picker-calendar-date-today,.ant-picker-calendar-full .ant-picker-panel .ant-picker-cell-selected:hover .ant-picker-calendar-date,.ant-picker-calendar-full .ant-picker-panel .ant-picker-cell-selected:hover .ant-picker-calendar-date-today{background:#e6f7ff}.ant-picker-calendar-full .ant-picker-panel .ant-picker-cell-selected .ant-picker-calendar-date .ant-picker-calendar-date-value,.ant-picker-calendar-full .ant-picker-panel .ant-picker-cell-selected .ant-picker-calendar-date-today .ant-picker-calendar-date-value,.ant-picker-calendar-full .ant-picker-panel .ant-picker-cell-selected:hover .ant-picker-calendar-date .ant-picker-calendar-date-value,.ant-picker-calendar-full .ant-picker-panel .ant-picker-cell-selected:hover .ant-picker-calendar-date-today .ant-picker-calendar-date-value{color:#1890ff}.ant-picker-calendar-full .ant-picker-panel .ant-picker-calendar-date{display:block;width:auto;height:auto;margin:0 4px;padding:4px 8px 0;border:0;border-top:2px solid #f0f0f0;border-radius:0;transition:background .3s}.ant-picker-calendar-full .ant-picker-panel .ant-picker-calendar-date-value{line-height:24px;transition:color .3s}.ant-picker-calendar-full .ant-picker-panel .ant-picker-calendar-date-content{position:static;width:auto;height:86px;overflow-y:auto;color:#000000d9;line-height:1.5715;text-align:left}.ant-picker-calendar-full .ant-picker-panel .ant-picker-calendar-date-today{border-color:#1890ff}.ant-picker-calendar-full .ant-picker-panel .ant-picker-calendar-date-today .ant-picker-calendar-date-value{color:#000000d9}@media only screen and (max-width: 480px){.ant-picker-calendar-header{display:block}.ant-picker-calendar-header .ant-picker-calendar-year-select{width:50%}.ant-picker-calendar-header .ant-picker-calendar-month-select{width:calc(50% - 8px)}.ant-picker-calendar-header .ant-picker-calendar-mode-switch{width:100%;margin-top:8px;margin-left:0}.ant-picker-calendar-header .ant-picker-calendar-mode-switch>label{width:50%;text-align:center}}.ant-picker-calendar-rtl{direction:rtl}.ant-picker-calendar-rtl .ant-picker-calendar-header .ant-picker-calendar-mode-switch,.ant-picker-calendar-rtl .ant-picker-calendar-header .ant-picker-calendar-month-select{margin-right:8px;margin-left:0}.ant-picker-calendar-rtl.ant-picker-calendar-full .ant-picker-panel{text-align:left}.ant-picker-calendar-rtl.ant-picker-calendar-full .ant-picker-panel .ant-picker-body th{padding:0 0 5px 12px}.ant-picker-calendar-rtl.ant-picker-calendar-full .ant-picker-panel .ant-picker-calendar-date-content{text-align:right}.ant-result{padding:48px 32px}.ant-result-success .ant-result-icon>.anticon{color:#52c41a}.ant-result-error .ant-result-icon>.anticon{color:#ff4d4f}.ant-result-info .ant-result-icon>.anticon{color:#1890ff}.ant-result-warning .ant-result-icon>.anticon{color:#faad14}.ant-result-image{width:250px;height:295px;margin:auto}.ant-result-icon{margin-bottom:24px;text-align:center}.ant-result-icon>.anticon{font-size:72px}.ant-result-title{color:#000000d9;font-size:24px;line-height:1.8;text-align:center}.ant-result-subtitle{color:#00000073;font-size:14px;line-height:1.6;text-align:center}.ant-result-extra{margin:24px 0 0;text-align:center}.ant-result-extra>*{margin-right:8px}.ant-result-extra>:last-child{margin-right:0}.ant-result-content{margin-top:24px;padding:24px 40px;background-color:#fafafa}.ant-result-rtl{direction:rtl}.ant-result-rtl .ant-result-extra>*{margin-right:0;margin-left:8px}.ant-result-rtl .ant-result-extra>:last-child{margin-left:0}nz-result{display:block}.ant-space{display:inline-flex}.ant-space-vertical{flex-direction:column}.ant-space-align-center{align-items:center}.ant-space-align-start{align-items:flex-start}.ant-space-align-end{align-items:flex-end}.ant-space-align-baseline{align-items:baseline}.ant-space-item:empty{display:none}.ant-space-rtl{direction:rtl}nz-space-item{display:block}.ant-image{position:relative;display:inline-block}.ant-image-img{display:block;width:100%;height:auto}.ant-image-img-placeholder{background-color:#f5f5f5;background-image:url('+d+');background-repeat:no-repeat;background-position:50%;background-size:30%}.ant-image-mask{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;color:#fff;background:#00000080;cursor:pointer;opacity:0;transition:opacity .3s}.ant-image-mask-info .anticon{margin-inline-end:4px}.ant-image-mask:hover{opacity:1}.ant-image-placeholder{position:absolute;top:0;right:0;bottom:0;left:0}.ant-image-preview{pointer-events:none;height:100%;text-align:center}.ant-image-preview.ant-zoom-enter,.ant-image-preview.antzoom-appear{transform:none;opacity:0;animation-duration:.3s;-webkit-user-select:none;user-select:none}.ant-image-preview-mask{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;height:100%;background-color:#00000073}.ant-image-preview-mask-hidden{display:none}.ant-image-preview-wrap{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;outline:0;-webkit-overflow-scrolling:touch}.ant-image-preview-body{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden}.ant-image-preview-img{max-width:100%;max-height:100%;vertical-align:middle;transform:scaleX(1);cursor:grab;-webkit-user-select:none;user-select:none;pointer-events:auto}.ant-image-preview-img,.ant-image-preview-img-wrapper{transition:transform .3s cubic-bezier(.215,.61,.355,1) 0s}.ant-image-preview-img-wrapper{position:absolute;top:0;right:0;bottom:0;left:0}.ant-image-preview-img-wrapper:before{display:inline-block;width:1px;height:50%;margin-right:-1px;content:""}.ant-image-preview-moving .ant-image-preview-img{cursor:grabbing}.ant-image-preview-moving .ant-image-preview-img-wrapper{transition-duration:0s}.ant-image-preview-wrap{z-index:1080}.ant-image-preview-operations{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;font-feature-settings:"tnum";position:absolute;top:0;right:0;z-index:1;display:flex;flex-direction:row-reverse;align-items:center;width:100%;color:#ffffffd9;list-style:none;background:#0000001a;pointer-events:auto}.ant-image-preview-operations-operation{margin-left:12px;padding:12px;cursor:pointer}.ant-image-preview-operations-operation-disabled{color:#ffffff40;pointer-events:none}.ant-image-preview-operations-operation:last-of-type{margin-left:0}.ant-image-preview-operations-icon{font-size:18px}.ant-image-preview-switch-left,.ant-image-preview-switch-right{position:absolute;top:50%;right:10px;z-index:1;display:flex;align-items:center;justify-content:center;width:44px;height:44px;margin-top:-22px;color:#ffffffd9;background:#0000001a;border-radius:50%;cursor:pointer;pointer-events:auto}.ant-image-preview-switch-left-disabled,.ant-image-preview-switch-right-disabled{color:#ffffff40;cursor:not-allowed}.ant-image-preview-switch-left-disabled>.anticon,.ant-image-preview-switch-right-disabled>.anticon{cursor:not-allowed}.ant-image-preview-switch-left>.anticon,.ant-image-preview-switch-right>.anticon{font-size:18px}.ant-image-preview-switch-left{left:10px}.ant-image-preview-switch-right{right:10px}.cdk-overlay-backdrop.ant-image-preview-mask{opacity:1}[cloud2d-theme-style=dark]{--main_font:#ddd;--main_font_mobile:#fff;--main_font_light:#fff;--main_border:#9dacbe;--main_background:#313841;--main_white:#ddd;--popmenu_background:#384049;--popmenu_selected:#2191ec;--popmenu_table_border:#a0a0a0;--popmenu_table_seperate-color:#646464;--ribbon_background:#46566b;--ribbon_selected_font:#34bfee;--ribbon_hover:#2191ec;--toolbar_background:#424b56;--toolbar_selected:#0084ff;--window_background:#424b56;--window_title:#515c69;--window_selected_font:#34bfee;--window_preview:#0084ff;--selectBox_background:#222833;--selectBox_border:#40a9ff;--selectBox_selected:#515d66;--header_icon_hover:#656565;--editor_main_background:#535353;--editor_main_border:#363636;--editor_main_border_light:#424242;--editor_main_scrollBar:#000;--editor_main_selected:#383838;--editor_main_selected_icon:#f0f8ff;--editor_main_tabItem:#343334;--editor_main_title:#424242;--editor_menu_name:#cfcfcf;--editor_tool_icon:#fff;--editor_icon_plot:#6d6d6d;--editor_not_active:#424242;--editor_not_active_font:#fff6;--editor_active:#6b6b6b;--editor_active_font:#fff;--editor_layer_picker:#2a2e32;--editor_command_panel:#333;--editor_command_panel_border:#666;--editor_command_panel_hover:#333;--editor_comment_button:#fff;--editor_comment_button_mobile:#424242;--editor_comment_button_font:#000;--editor_comment_button_hover:#e8e8e8;--editor_command_input:#424242;--editor_command_input_mobile:#424242;--editor_command_tips:#2e3339;--editor_painter:#212830;--editor_mobile_background:#3b3b3b;--editor_mobile_border:#4d4d4d;--editor_input_background:#384049;--editor_slip_list:#fff;--editor_slip_list_disable:#7d7d7d;--editor_fcmp_active_background:#1a70a7;--version_selected:#7f7f7f;--version_border:#666565;--version_border_light:#666565;--layer_lweight_icon:#fff;--panel_title:#fff6;--scrollbar_track:#363636;--select_file_border:#fff;--context_menu_font:#aaa;--context_menu_font:#d6d6d6;--context_menu_border:#595959;--context_menu_hover:#0094ea}[cloud2d-theme-style=light]{--main_font:#7f7f7f;--main_font_mobile:#333;--main_font_light:#555;--main_border:#9dacbe;--main_background:#313841;--main_white:#fff;--popmenu_background:#384049;--popmenu_selected:#2191ec;--popmenu_table_border:#a0a0a0;--popmenu_table_seperate-color:#646464;--ribbon_background:#46566b;--ribbon_selected_font:#34bfee;--ribbon_hover:#2191ec;--toolbar_background:#424b56;--toolbar_selected:#0084ff;--window_background:#424b56;--window_title:#515c69;--window_selected_font:#fff;--window_preview:#0084ff;--selectBox_background:#222833;--selectBox_border:#40a9ff;--selectBox_selected:#515d66;--header_icon_hover:#d7d7d7;--editor_main_background:#f2f2f2;--editor_main_border:#d7d7d7;--editor_main_border_light:#e1e1e1;--editor_main_scrollBar:#fff;--editor_main_selected:#aaa;--editor_main_selected_icon:#fff;--editor_main_tabItem:#f2f2f2;--editor_main_title:#d7d7d7;--editor_menu_name:#7f7f7f;--editor_tool_icon:#aaa;--editor_icon_plot:#d7d7d7;--editor_not_active:#d7d7d7;--editor_not_active_font:#aaa;--editor_active:#aaa;--editor_active_font:#fff;--editor_layer_picker:#f2f2f2;--editor_command_panel:#eaeaea;--editor_command_panel_hover:#eaeaea;--editor_command_panel_border:#d7d7d7;--editor_comment_button:#aaa;--editor_comment_button_mobile:#7accf1;--editor_comment_button_font:#fff;--editor_comment_button_hover:#1b69a8;--editor_command_input:#eaeaea;--editor_command_input_mobile:#fff;--editor_command_tips:#f6f6f6;--editor_painter:#fff;--editor_mobile_background:#f2f2f2;--editor_mobile_border:#d7d7d7;--editor_input_background:#fff;--editor_slip_list:#aaa;--editor_slip_list_disable:#d7d7d7;--editor_fcmp_active_background:#6ab9f4;--version_selected:#078bed;--version_border:#d7d7d7;--version_border_light:#e1e1e1;--panel_title:#7f7f7f66;--layer_lweight_icon:#000;--scrollbar_track:#ccced0;--select_file_border:#d7d7d7;--context_menu_icon:#aaa;--context_menu_font:#7f7f7f;--context_menu_border:#e0e0e0;--context_menu_hover:#0094ea}html{font-size:100%}body{overflow:hidden}.icon-area{display:flex;margin-bottom:10px}.icon-area .icon-box{border:1px solid #999;height:47px;line-height:42px;margin-right:10px}.icon-area .icon-box img{width:45px;height:45px}.inputBox{margin-bottom:10px}.radioGroup label{display:flex;align-items:center}.radioGroup label input{margin-right:5px}.ant-popover-inner-content{padding:0}.not-select{user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.about-title{display:flex;align-items:center;margin-left:-14px}.about-title .about-title-img{width:24px;height:24px;margin-right:5px}.plot_preview{padding:10px}.plot_preview .plot_preview_img{width:300px}.about-content{width:545px}.about-content #aboutVersion{margin-top:10px;margin-left:14px}.about-content .box{line-height:16px;height:310px;overflow:hidden;border:1px solid #078bed80;margin:12px 12px 0}.about-content .box #aboutContent{height:95%;overflow-y:auto;overflow-x:hidden;width:103.5%;padding-left:7px;padding-right:5px;margin-top:5px}.ant-list-split .ant-list-item{padding:0;cursor:pointer}.ant-list-split .ant-list-item:hover{background-color:#f0f6fc}.statistics{font-family:statistics!important;font-weight:700;font-style:normal}svg{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.cdk-global-scrollblock{overflow-y:auto}.tns-outer{padding:0!important}.tns-outer [hidden]{display:none!important}.tns-outer [aria-controls],.tns-outer [data-action]{cursor:pointer}.tns-slider{transition:all 0s}.tns-slider>.tns-item{box-sizing:border-box}.tns-horizontal.tns-subpixel{white-space:nowrap}.tns-horizontal.tns-subpixel>.tns-item{display:inline-block;vertical-align:top;white-space:normal}.tns-horizontal.tns-no-subpixel:after{content:"";display:table;clear:both}.tns-horizontal.tns-no-subpixel>.tns-item{float:left}.tns-horizontal.tns-carousel.tns-no-subpixel>.tns-item{margin-right:-100%}.tns-gallery,.tns-no-calc{position:relative;left:0}.tns-gallery{min-height:1px}.tns-gallery>.tns-item{position:absolute;left:-100%;transition:transform 0s,opacity 0s}.tns-gallery>.tns-slide-active{position:relative;left:auto!important}.tns-gallery>.tns-moving{transition:all .25s}.tns-autowidth{display:inline-block}.tns-lazy-img{transition:opacity .6s;opacity:.6}.tns-lazy-img.tns-complete{opacity:1}.tns-ah{transition:height 0s}.tns-ovh{overflow:hidden}.tns-visually-hidden{position:absolute;left:-10000em}.tns-transparent{opacity:0;visibility:hidden}.tns-fadeIn{opacity:1;filter:alpha(opacity=100);z-index:0}.tns-fadeOut,.tns-normal{opacity:0;filter:alpha(opacity=0);z-index:-1}.tns-vpfix{white-space:nowrap}.tns-vpfix>div,.tns-vpfix>li{display:inline-block}.tns-t-subp2{margin:0 auto;width:310px;position:relative;height:10px;overflow:hidden}.tns-t-ct{width:2333.3333333%;width:calc(100% * 70 / 3);position:absolute;right:0}.tns-t-ct:after{content:"";display:table;clear:both}.tns-t-ct>div{width:1.4285714%;width:calc(100% / 70);height:10px;float:left}',""]);const u=h},3645:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",i=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),i&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),i&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,i,r,a){"string"==typeof t&&(t=[[null,t,void 0]]);var o={};if(i)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(o[l]=!0)}for(var c=0;c<t.length;c++){var h=[].concat(t[c]);i&&o[h[0]]||(void 0!==a&&(void 0===h[5]||(h[1]="@layer".concat(h[5].length>0?" ".concat(h[5]):""," {").concat(h[1],"}")),h[5]=a),n&&(h[2]?(h[1]="@media ".concat(h[2]," {").concat(h[1],"}"),h[2]=n):h[2]=n),r&&(h[4]?(h[1]="@supports (".concat(h[4],") {").concat(h[1],"}"),h[4]=r):h[4]="".concat(r)),e.push(h))}},e}},1667:t=>{"use strict";t.exports=function(t,e){return e||(e={}),t?(t=String(t.__esModule?t.default:t),/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]|(%20)/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t):t}},8081:t=>{"use strict";t.exports=function(t){return t[1]}},4289:(t,e,n)=>{"use strict";var i=n(2215),r="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),a=Object.prototype.toString,o=Array.prototype.concat,s=Object.defineProperty,l=n(1044)(),c=s&&l,h=function(t,e,n,i){var r;(!(e in t)||"function"==typeof(r=i)&&"[object Function]"===a.call(r)&&i())&&(c?s(t,e,{configurable:!0,enumerable:!1,value:n,writable:!0}):t[e]=n)},d=function(t,e){var n=arguments.length>2?arguments[2]:{},a=i(e);r&&(a=o.call(a,Object.getOwnPropertySymbols(e)));for(var s=0;s<a.length;s+=1)h(t,a[s],e[a[s]],n[a[s]])};d.supportsDescriptors=!!c,t.exports=d},8091:t=>{"use strict";function e(t,e){if(null==t)throw new TypeError("Cannot convert first argument to object");for(var n=Object(t),i=1;i<arguments.length;i++){var r=arguments[i];if(null!=r)for(var a=Object.keys(Object(r)),o=0,s=a.length;o<s;o++){var l=a[o],c=Object.getOwnPropertyDescriptor(r,l);void 0!==c&&c.enumerable&&(n[l]=r[l])}}return n}t.exports={assign:e,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:e})}}},4029:(t,e,n)=>{"use strict";var i=n(5320),r=Object.prototype.toString,a=Object.prototype.hasOwnProperty,o=function(t,e,n){for(var i=0,r=t.length;i<r;i++)a.call(t,i)&&(null==n?e(t[i],i,t):e.call(n,t[i],i,t))},s=function(t,e,n){for(var i=0,r=t.length;i<r;i++)null==n?e(t.charAt(i),i,t):e.call(n,t.charAt(i),i,t)},l=function(t,e,n){for(var i in t)a.call(t,i)&&(null==n?e(t[i],i,t):e.call(n,t[i],i,t))};t.exports=function(t,e,n){if(!i(e))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=n),"[object Array]"===r.call(t)?o(t,e,a):"string"==typeof t?s(t,e,a):l(t,e,a)}},7648:t=>{"use strict";var e="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,i=Object.prototype.toString,r="[object Function]";t.exports=function(t){var a=this;if("function"!=typeof a||i.call(a)!==r)throw new TypeError(e+a);for(var o,s=n.call(arguments,1),l=function(){if(this instanceof o){var e=a.apply(this,s.concat(n.call(arguments)));return Object(e)===e?e:this}return a.apply(t,s.concat(n.call(arguments)))},c=Math.max(0,a.length-s.length),h=[],d=0;d<c;d++)h.push("$"+d);if(o=Function("binder","return function ("+h.join(",")+"){ return binder.apply(this,arguments); }")(l),a.prototype){var u=function(){};u.prototype=a.prototype,o.prototype=new u,u.prototype=null}return o}},8612:(t,e,n)=>{"use strict";var i=n(7648);t.exports=Function.prototype.bind||i},210:(t,e,n)=>{"use strict";var i,r=SyntaxError,a=Function,o=TypeError,s=function(t){try{return a('"use strict"; return ('+t+").constructor;")()}catch(t){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(t){l=null}var c=function(){throw new o},h=l?function(){try{return c}catch(t){try{return l(arguments,"callee").get}catch(t){return c}}}():c,d=n(1405)(),u=Object.getPrototypeOf||function(t){return t.__proto__},m={},p="undefined"==typeof Uint8Array?i:u(Uint8Array),g={"%AggregateError%":"undefined"==typeof AggregateError?i:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?i:ArrayBuffer,"%ArrayIteratorPrototype%":d?u([][Symbol.iterator]()):i,"%AsyncFromSyncIteratorPrototype%":i,"%AsyncFunction%":m,"%AsyncGenerator%":m,"%AsyncGeneratorFunction%":m,"%AsyncIteratorPrototype%":m,"%Atomics%":"undefined"==typeof Atomics?i:Atomics,"%BigInt%":"undefined"==typeof BigInt?i:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?i:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?i:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?i:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?i:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":m,"%Int8Array%":"undefined"==typeof Int8Array?i:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?i:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?i:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":d?u(u([][Symbol.iterator]())):i,"%JSON%":"object"==typeof JSON?JSON:i,"%Map%":"undefined"==typeof Map?i:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&d?u((new Map)[Symbol.iterator]()):i,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?i:Promise,"%Proxy%":"undefined"==typeof Proxy?i:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?i:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?i:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&d?u((new Set)[Symbol.iterator]()):i,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?i:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d?u(""[Symbol.iterator]()):i,"%Symbol%":d?Symbol:i,"%SyntaxError%":r,"%ThrowTypeError%":h,"%TypedArray%":p,"%TypeError%":o,"%Uint8Array%":"undefined"==typeof Uint8Array?i:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?i:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?i:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?i:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?i:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?i:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?i:WeakSet},f=function t(e){var n;if("%AsyncFunction%"===e)n=s("async function () {}");else if("%GeneratorFunction%"===e)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===e)n=s("async function* () {}");else if("%AsyncGenerator%"===e){var i=t("%AsyncGeneratorFunction%");i&&(n=i.prototype)}else if("%AsyncIteratorPrototype%"===e){var r=t("%AsyncGenerator%");r&&(n=u(r.prototype))}return g[e]=n,n},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},y=n(8612),v=n(7642),w=y.call(Function.call,Array.prototype.concat),x=y.call(Function.apply,Array.prototype.splice),C=y.call(Function.call,String.prototype.replace),k=y.call(Function.call,String.prototype.slice),S=y.call(Function.call,RegExp.prototype.exec),P=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_=/\\(\\)?/g,M=function(t){var e=k(t,0,1),n=k(t,-1);if("%"===e&&"%"!==n)throw new r("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==e)throw new r("invalid intrinsic syntax, expected opening `%`");var i=[];return C(t,P,(function(t,e,n,r){i[i.length]=n?C(r,_,"$1"):e||t})),i},D=function(t,e){var n,i=t;if(v(b,i)&&(i="%"+(n=b[i])[0]+"%"),v(g,i)){var a=g[i];if(a===m&&(a=f(i)),void 0===a&&!e)throw new o("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:a}}throw new r("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new o('"allowMissing" argument must be a boolean');if(null===S(/^%?[^%]*%?$/g,t))throw new r("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=M(t),i=n.length>0?n[0]:"",a=D("%"+i+"%",e),s=a.name,c=a.value,h=!1,d=a.alias;d&&(i=d[0],x(n,w([0,1],d)));for(var u=1,m=!0;u<n.length;u+=1){var p=n[u],f=k(p,0,1),b=k(p,-1);if(('"'===f||"'"===f||"`"===f||'"'===b||"'"===b||"`"===b)&&f!==b)throw new r("property names with quotes must have matching quotes");if("constructor"!==p&&m||(h=!0),v(g,s="%"+(i+="."+p)+"%"))c=g[s];else if(null!=c){if(!(p in c)){if(!e)throw new o("base intrinsic for "+t+" exists, but the property is not available.");return}if(l&&u+1>=n.length){var y=l(c,p);c=(m=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:c[p]}else m=v(c,p),c=c[p];m&&!h&&(g[s]=c)}}return c}},1044:(t,e,n)=>{"use strict";var i=n(210)("%Object.defineProperty%",!0),r=function(){if(i)try{return i({},"a",{value:1}),!0}catch(t){return!1}return!1};r.hasArrayLengthDefineBug=function(){if(!r())return null;try{return 1!==i([],"length",{value:1}).length}catch(t){return!0}},t.exports=r},1405:(t,e,n)=>{"use strict";var i="undefined"!=typeof Symbol&&Symbol,r=n(5419);t.exports=function(){return"function"==typeof i&&("function"==typeof Symbol&&("symbol"==typeof i("foo")&&("symbol"==typeof Symbol("bar")&&r())))}},5419:t=>{"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),n=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var i=Object.getOwnPropertySymbols(t);if(1!==i.length||i[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var r=Object.getOwnPropertyDescriptor(t,e);if(42!==r.value||!0!==r.enumerable)return!1}return!0}},6410:(t,e,n)=>{"use strict";var i=n(5419);t.exports=function(){return i()&&!!Symbol.toStringTag}},7642:(t,e,n)=>{"use strict";var i=n(8612);t.exports=i.call(Function.call,Object.prototype.hasOwnProperty)},645:(t,e)=>{e.read=function(t,e,n,i,r){var a,o,s=8*r-i-1,l=(1<<s)-1,c=l>>1,h=-7,d=n?r-1:0,u=n?-1:1,m=t[e+d];for(d+=u,a=m&(1<<-h)-1,m>>=-h,h+=s;h>0;a=256*a+t[e+d],d+=u,h-=8);for(o=a&(1<<-h)-1,a>>=-h,h+=i;h>0;o=256*o+t[e+d],d+=u,h-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(m?-1:1);o+=Math.pow(2,i),a-=c}return(m?-1:1)*o*Math.pow(2,a-i)},e.write=function(t,e,n,i,r,a){var o,s,l,c=8*a-r-1,h=(1<<c)-1,d=h>>1,u=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,m=i?0:a-1,p=i?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=h):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),(e+=o+d>=1?u/l:u*Math.pow(2,1-d))*l>=2&&(o++,l/=2),o+d>=h?(s=0,o=h):o+d>=1?(s=(e*l-1)*Math.pow(2,r),o+=d):(s=e*Math.pow(2,d-1)*Math.pow(2,r),o=0));r>=8;t[n+m]=255&s,m+=p,s/=256,r-=8);for(o=o<<r|s,c+=r;c>0;t[n+m]=255&o,m+=p,o/=256,c-=8);t[n+m-p]|=128*g}},5717:t=>{"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},2584:(t,e,n)=>{"use strict";var i=n(6410)(),r=n(1924)("Object.prototype.toString"),a=function(t){return!(i&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===r(t)},o=function(t){return!!a(t)||null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==r(t)&&"[object Function]"===r(t.callee)},s=function(){return a(arguments)}();a.isLegacyArguments=o,t.exports=s?a:o},5320:t=>{"use strict";var e,n,i=Function.prototype.toString,r="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof r&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw n}}),n={},r((function(){throw 42}),null,e)}catch(t){t!==n&&(r=null)}else r=null;var a=/^\s*class\b/,o=function(t){try{var e=i.call(t);return a.test(e)}catch(t){return!1}},s=Object.prototype.toString,l="function"==typeof Symbol&&!!Symbol.toStringTag,c="object"==typeof document&&void 0===document.all&&void 0!==document.all?document.all:{};t.exports=r?function(t){if(t===c)return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if("function"==typeof t&&!t.prototype)return!0;try{r(t,null,e)}catch(t){if(t!==n)return!1}return!o(t)}:function(t){if(t===c)return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if("function"==typeof t&&!t.prototype)return!0;if(l)return function(t){try{return!o(t)&&(i.call(t),!0)}catch(t){return!1}}(t);if(o(t))return!1;var e=s.call(t);return"[object Function]"===e||"[object GeneratorFunction]"===e}},8662:(t,e,n)=>{"use strict";var i,r=Object.prototype.toString,a=Function.prototype.toString,o=/^\s*(?:function)?\*/,s=n(6410)(),l=Object.getPrototypeOf;t.exports=function(t){if("function"!=typeof t)return!1;if(o.test(a.call(t)))return!0;if(!s)return"[object GeneratorFunction]"===r.call(t);if(!l)return!1;if(void 0===i){var e=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(t){}}();i=!!e&&l(e)}return l(t)===i}},8611:t=>{"use strict";t.exports=function(t){return t!=t}},360:(t,e,n)=>{"use strict";var i=n(5559),r=n(4289),a=n(8611),o=n(9415),s=n(3194),l=i(o(),Number);r(l,{getPolyfill:o,implementation:a,shim:s}),t.exports=l},9415:(t,e,n)=>{"use strict";var i=n(8611);t.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:i}},3194:(t,e,n)=>{"use strict";var i=n(4289),r=n(9415);t.exports=function(){var t=r();return i(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}},5692:(t,e,n)=>{"use strict";var i=n(4029),r=n(3083),a=n(1924),o=a("Object.prototype.toString"),s=n(6410)(),l="undefined"==typeof globalThis?n.g:globalThis,c=r(),h=a("Array.prototype.indexOf",!0)||function(t,e){for(var n=0;n<t.length;n+=1)if(t[n]===e)return n;return-1},d=a("String.prototype.slice"),u={},m=n(882),p=Object.getPrototypeOf;s&&m&&p&&i(c,(function(t){var e=new l[t];if(Symbol.toStringTag in e){var n=p(e),i=m(n,Symbol.toStringTag);if(!i){var r=p(n);i=m(r,Symbol.toStringTag)}u[t]=i.get}}));t.exports=function(t){if(!t||"object"!=typeof t)return!1;if(!s||!(Symbol.toStringTag in t)){var e=d(o(t),8,-1);return h(c,e)>-1}return!!m&&function(t){var e=!1;return i(u,(function(n,i){if(!e)try{e=n.call(t)===i}catch(t){}})),e}(t)}},4244:t=>{"use strict";var e=function(t){return t!=t};t.exports=function(t,n){return 0===t&&0===n?1/t==1/n:t===n||!(!e(t)||!e(n))}},609:(t,e,n)=>{"use strict";var i=n(4289),r=n(5559),a=n(4244),o=n(5624),s=n(2281),l=r(o(),Object);i(l,{getPolyfill:o,implementation:a,shim:s}),t.exports=l},5624:(t,e,n)=>{"use strict";var i=n(4244);t.exports=function(){return"function"==typeof Object.is?Object.is:i}},2281:(t,e,n)=>{"use strict";var i=n(5624),r=n(4289);t.exports=function(){var t=i();return r(Object,{is:t},{is:function(){return Object.is!==t}}),t}},8987:(t,e,n)=>{"use strict";var i;if(!Object.keys){var r=Object.prototype.hasOwnProperty,a=Object.prototype.toString,o=n(1414),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),c=s.call((function(){}),"prototype"),h=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(t){var e=t.constructor;return e&&e.prototype===t},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},m=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!u["$"+t]&&r.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{d(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();i=function(t){var e=null!==t&&"object"==typeof t,n="[object Function]"===a.call(t),i=o(t),s=e&&"[object String]"===a.call(t),u=[];if(!e&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var p=c&&n;if(s&&t.length>0&&!r.call(t,0))for(var g=0;g<t.length;++g)u.push(String(g));if(i&&t.length>0)for(var f=0;f<t.length;++f)u.push(String(f));else for(var b in t)p&&"prototype"===b||!r.call(t,b)||u.push(String(b));if(l)for(var y=function(t){if("undefined"==typeof window||!m)return d(t);try{return d(t)}catch(t){return!1}}(t),v=0;v<h.length;++v)y&&"constructor"===h[v]||!r.call(t,h[v])||u.push(h[v]);return u}}t.exports=i},2215:(t,e,n)=>{"use strict";var i=Array.prototype.slice,r=n(1414),a=Object.keys,o=a?function(t){return a(t)}:n(8987),s=Object.keys;o.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return r(t)?s(i.call(t)):s(t)})}else Object.keys=o;return Object.keys||o},t.exports=o},1414:t=>{"use strict";var e=Object.prototype.toString;t.exports=function(t){var n=e.call(t),i="[object Arguments]"===n;return i||(i="[object Array]"!==n&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===e.call(t.callee)),i}},4155:t=>{var e,n,i=t.exports={};function r(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function o(t){if(e===setTimeout)return setTimeout(t,0);if((e===r||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:r}catch(t){e=r}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(t){n=a}}();var s,l=[],c=!1,h=-1;function d(){c&&s&&(c=!1,s.length?l=s.concat(l):h=-1,l.length&&u())}function u(){if(!c){var t=o(d);c=!0;for(var e=l.length;e;){for(s=l,l=[];++h<e;)s&&s[h].run();h=-1,e=l.length}s=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function m(t,e){this.fun=t,this.array=e}function p(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new m(t,e)),1!==l.length||c||o(u)},m.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},9966:(t,e,n)=>{"use strict";var i=n(3379),r=n.n(i),a=n(7795),o=n.n(a),s=n(569),l=n.n(s),c=n(3565),h=n.n(c),d=n(9216),u=n.n(d),m=n(4589),p=n.n(m),g=n(9638),f={};f.styleTagTransform=p(),f.setAttributes=h(),f.insert=l().bind(null,"head"),f.domAPI=o(),f.insertStyleElement=u();r()(g.Z,f),g.Z&&g.Z.locals&&g.Z.locals},3379:t=>{"use strict";var e=[];function n(t){for(var n=-1,i=0;i<e.length;i++)if(e[i].identifier===t){n=i;break}return n}function i(t,i){for(var a={},o=[],s=0;s<t.length;s++){var l=t[s],c=i.base?l[0]+i.base:l[0],h=a[c]||0,d="".concat(c," ").concat(h);a[c]=h+1;var u=n(d),m={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==u)e[u].references++,e[u].updater(m);else{var p=r(m,i);i.byIndex=s,e.splice(s,0,{identifier:d,updater:p,references:1})}o.push(d)}return o}function r(t,e){var n=e.domAPI(e);n.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;n.update(t=e)}else n.remove()}}t.exports=function(t,r){var a=i(t=t||[],r=r||{});return function(t){t=t||[];for(var o=0;o<a.length;o++){var s=n(a[o]);e[s].references--}for(var l=i(t,r),c=0;c<a.length;c++){var h=n(a[c]);0===e[h].references&&(e[h].updater(),e.splice(h,1))}a=l}}},569:t=>{"use strict";var e={};t.exports=function(t,n){var i=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}},9216:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},3565:(t,e,n)=>{"use strict";t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},7795:t=>{"use strict";t.exports=function(t){var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var i="";n.supports&&(i+="@supports (".concat(n.supports,") {")),n.media&&(i+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(i+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),i+=n.css,r&&(i+="}"),n.media&&(i+="}"),n.supports&&(i+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleTagTransform(i,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},4589:t=>{"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},384:t=>{t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},5955:(t,e,n)=>{"use strict";var i=n(2584),r=n(8662),a=n(6430),o=n(5692);function s(t){return t.call.bind(t)}var l="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,h=s(Object.prototype.toString),d=s(Number.prototype.valueOf),u=s(String.prototype.valueOf),m=s(Boolean.prototype.valueOf);if(l)var p=s(BigInt.prototype.valueOf);if(c)var g=s(Symbol.prototype.valueOf);function f(t,e){if("object"!=typeof t)return!1;try{return e(t),!0}catch(t){return!1}}function b(t){return"[object Map]"===h(t)}function y(t){return"[object Set]"===h(t)}function v(t){return"[object WeakMap]"===h(t)}function w(t){return"[object WeakSet]"===h(t)}function x(t){return"[object ArrayBuffer]"===h(t)}function C(t){return"undefined"!=typeof ArrayBuffer&&(x.working?x(t):t instanceof ArrayBuffer)}function k(t){return"[object DataView]"===h(t)}function S(t){return"undefined"!=typeof DataView&&(k.working?k(t):t instanceof DataView)}e.isArgumentsObject=i,e.isGeneratorFunction=r,e.isTypedArray=o,e.isPromise=function(t){return"undefined"!=typeof Promise&&t instanceof Promise||null!==t&&"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch},e.isArrayBufferView=function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):o(t)||S(t)},e.isUint8Array=function(t){return"Uint8Array"===a(t)},e.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===a(t)},e.isUint16Array=function(t){return"Uint16Array"===a(t)},e.isUint32Array=function(t){return"Uint32Array"===a(t)},e.isInt8Array=function(t){return"Int8Array"===a(t)},e.isInt16Array=function(t){return"Int16Array"===a(t)},e.isInt32Array=function(t){return"Int32Array"===a(t)},e.isFloat32Array=function(t){return"Float32Array"===a(t)},e.isFloat64Array=function(t){return"Float64Array"===a(t)},e.isBigInt64Array=function(t){return"BigInt64Array"===a(t)},e.isBigUint64Array=function(t){return"BigUint64Array"===a(t)},b.working="undefined"!=typeof Map&&b(new Map),e.isMap=function(t){return"undefined"!=typeof Map&&(b.working?b(t):t instanceof Map)},y.working="undefined"!=typeof Set&&y(new Set),e.isSet=function(t){return"undefined"!=typeof Set&&(y.working?y(t):t instanceof Set)},v.working="undefined"!=typeof WeakMap&&v(new WeakMap),e.isWeakMap=function(t){return"undefined"!=typeof WeakMap&&(v.working?v(t):t instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),e.isWeakSet=function(t){return w(t)},x.working="undefined"!=typeof ArrayBuffer&&x(new ArrayBuffer),e.isArrayBuffer=C,k.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&k(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=S;var P="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function _(t){return"[object SharedArrayBuffer]"===h(t)}function M(t){return void 0!==P&&(void 0===_.working&&(_.working=_(new P)),_.working?_(t):t instanceof P)}function D(t){return f(t,d)}function E(t){return f(t,u)}function O(t){return f(t,m)}function A(t){return l&&f(t,p)}function T(t){return c&&f(t,g)}e.isSharedArrayBuffer=M,e.isAsyncFunction=function(t){return"[object AsyncFunction]"===h(t)},e.isMapIterator=function(t){return"[object Map Iterator]"===h(t)},e.isSetIterator=function(t){return"[object Set Iterator]"===h(t)},e.isGeneratorObject=function(t){return"[object Generator]"===h(t)},e.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===h(t)},e.isNumberObject=D,e.isStringObject=E,e.isBooleanObject=O,e.isBigIntObject=A,e.isSymbolObject=T,e.isBoxedPrimitive=function(t){return D(t)||E(t)||O(t)||A(t)||T(t)},e.isAnyArrayBuffer=function(t){return"undefined"!=typeof Uint8Array&&(C(t)||M(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})}))},9539:(t,e,n)=>{var i=n(4155),r=n(5108),a=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),n={},i=0;i<e.length;i++)n[e[i]]=Object.getOwnPropertyDescriptor(t,e[i]);return n},o=/%[sdj%]/g;e.format=function(t){if(!w(t)){for(var e=[],n=0;n<arguments.length;n++)e.push(h(arguments[n]));return e.join(" ")}n=1;for(var i=arguments,r=i.length,a=String(t).replace(o,(function(t){if("%%"===t)return"%";if(n>=r)return t;switch(t){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(t){return"[Circular]"}default:return t}})),s=i[n];n<r;s=i[++n])y(s)||!k(s)?a+=" "+s:a+=" "+h(s);return a},e.deprecate=function(t,n){if(void 0!==i&&!0===i.noDeprecation)return t;if(void 0===i)return function(){return e.deprecate(t,n).apply(this,arguments)};var a=!1;return function(){if(!a){if(i.throwDeprecation)throw new Error(n);i.traceDeprecation?r.trace(n):r.error(n),a=!0}return t.apply(this,arguments)}};var s={},l=/^$/;if(i.env.NODE_DEBUG){var c=i.env.NODE_DEBUG;c=c.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),l=new RegExp("^"+c+"$","i")}function h(t,n){var i={seen:[],stylize:u};return arguments.length>=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),b(n)?i.showHidden=n:n&&e._extend(i,n),x(i.showHidden)&&(i.showHidden=!1),x(i.depth)&&(i.depth=2),x(i.colors)&&(i.colors=!1),x(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=d),m(i,t,i.depth)}function d(t,e){var n=h.styles[e];return n?"["+h.colors[n][0]+"m"+t+"["+h.colors[n][1]+"m":t}function u(t,e){return t}function m(t,n,i){if(t.customInspect&&n&&_(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var r=n.inspect(i,t);return w(r)||(r=m(t,r,i)),r}var a=function(t,e){if(x(e))return t.stylize("undefined","undefined");if(w(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}if(v(e))return t.stylize(""+e,"number");if(b(e))return t.stylize(""+e,"boolean");if(y(e))return t.stylize("null","null")}(t,n);if(a)return a;var o=Object.keys(n),s=function(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(n)),P(n)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return p(n);if(0===o.length){if(_(n)){var l=n.name?": "+n.name:"";return t.stylize("[Function"+l+"]","special")}if(C(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(S(n))return t.stylize(Date.prototype.toString.call(n),"date");if(P(n))return p(n)}var c,h="",d=!1,u=["{","}"];(f(n)&&(d=!0,u=["[","]"]),_(n))&&(h=" [Function"+(n.name?": "+n.name:"")+"]");return C(n)&&(h=" "+RegExp.prototype.toString.call(n)),S(n)&&(h=" "+Date.prototype.toUTCString.call(n)),P(n)&&(h=" "+p(n)),0!==o.length||d&&0!=n.length?i<0?C(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),c=d?function(t,e,n,i,r){for(var a=[],o=0,s=e.length;o<s;++o)A(e,String(o))?a.push(g(t,e,n,i,String(o),!0)):a.push("");return r.forEach((function(r){r.match(/^\d+$/)||a.push(g(t,e,n,i,r,!0))})),a}(t,n,i,s,o):o.map((function(e){return g(t,n,i,s,e,d)})),t.seen.pop(),function(t,e,n){if(t.reduce((function(t,e){return e.indexOf("\n")>=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1];return n[0]+e+" "+t.join(", ")+" "+n[1]}(c,h,u)):u[0]+h+u[1]}function p(t){return"["+Error.prototype.toString.call(t)+"]"}function g(t,e,n,i,r,a){var o,s,l;if((l=Object.getOwnPropertyDescriptor(e,r)||{value:e[r]}).get?s=l.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):l.set&&(s=t.stylize("[Setter]","special")),A(i,r)||(o="["+r+"]"),s||(t.seen.indexOf(l.value)<0?(s=y(n)?m(t,l.value,null):m(t,l.value,n-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),x(o)){if(a&&r.match(/^\d+$/))return s;(o=JSON.stringify(""+r)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=t.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=t.stylize(o,"string"))}return o+": "+s}function f(t){return Array.isArray(t)}function b(t){return"boolean"==typeof t}function y(t){return null===t}function v(t){return"number"==typeof t}function w(t){return"string"==typeof t}function x(t){return void 0===t}function C(t){return k(t)&&"[object RegExp]"===M(t)}function k(t){return"object"==typeof t&&null!==t}function S(t){return k(t)&&"[object Date]"===M(t)}function P(t){return k(t)&&("[object Error]"===M(t)||t instanceof Error)}function _(t){return"function"==typeof t}function M(t){return Object.prototype.toString.call(t)}function D(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!s[t])if(l.test(t)){var n=i.pid;s[t]=function(){var i=e.format.apply(e,arguments);r.error("%s %d: %s",t,n,i)}}else s[t]=function(){};return s[t]},e.inspect=h,h.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},h.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=n(5955),e.isArray=f,e.isBoolean=b,e.isNull=y,e.isNullOrUndefined=function(t){return null==t},e.isNumber=v,e.isString=w,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=x,e.isRegExp=C,e.types.isRegExp=C,e.isObject=k,e.isDate=S,e.types.isDate=S,e.isError=P,e.types.isNativeError=P,e.isFunction=_,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=n(384);var E=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function O(){var t=new Date,e=[D(t.getHours()),D(t.getMinutes()),D(t.getSeconds())].join(":");return[t.getDate(),E[t.getMonth()],e].join(" ")}function A(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){r.log("%s - %s",O(),e.format.apply(e,arguments))},e.inherits=n(5717),e._extend=function(t,e){if(!e||!k(e))return t;for(var n=Object.keys(e),i=n.length;i--;)t[n[i]]=e[n[i]];return t};var T="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function I(t,e){if(!t){var n=new Error("Promise was rejected with a falsy value");n.reason=t,t=n}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(T&&t[T]){var e;if("function"!=typeof(e=t[T]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,T,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,n,i=new Promise((function(t,i){e=t,n=i})),r=[],a=0;a<arguments.length;a++)r.push(arguments[a]);r.push((function(t,i){t?n(t):e(i)}));try{t.apply(this,r)}catch(t){n(t)}return i}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),T&&Object.defineProperty(e,T,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,a(t))},e.promisify.custom=T,e.callbackify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');function e(){for(var e=[],n=0;n<arguments.length;n++)e.push(arguments[n]);var r=e.pop();if("function"!=typeof r)throw new TypeError("The last argument must be of type Function");var a=this,o=function(){return r.apply(a,arguments)};t.apply(this,e).then((function(t){i.nextTick(o.bind(null,null,t))}),(function(t){i.nextTick(I.bind(null,t,o))}))}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),Object.defineProperties(e,a(t)),e}},6430:(t,e,n)=>{"use strict";var i=n(4029),r=n(3083),a=n(1924),o=a("Object.prototype.toString"),s=n(6410)(),l="undefined"==typeof globalThis?n.g:globalThis,c=r(),h=a("String.prototype.slice"),d={},u=n(882),m=Object.getPrototypeOf;s&&u&&m&&i(c,(function(t){if("function"==typeof l[t]){var e=new l[t];if(Symbol.toStringTag in e){var n=m(e),i=u(n,Symbol.toStringTag);if(!i){var r=m(n);i=u(r,Symbol.toStringTag)}d[t]=i.get}}}));var p=n(5692);t.exports=function(t){return!!p(t)&&(s&&Symbol.toStringTag in t?function(t){var e=!1;return i(d,(function(n,i){if(!e)try{var r=n.call(t);r===i&&(e=r)}catch(t){}})),e}(t):h(o(t),8,-1))}},2445:t=>{"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="},3083:(t,e,n)=>{"use strict";var i=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],r="undefined"==typeof globalThis?n.g:globalThis;t.exports=function(){for(var t=[],e=0;e<i.length;e++)"function"==typeof r[i[e]]&&(t[t.length]=i[e]);return t}},882:(t,e,n)=>{"use strict";var i=n(210)("%Object.getOwnPropertyDescriptor%",!0);if(i)try{i([],"length")}catch(t){i=null}t.exports=i}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var a=e[i]={id:i,exports:{}};return t[i].call(a.exports,a,a.exports,n),a.exports}n.m=t,n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.b=document.baseURI||self.location.href,n.nc=void 0,n(8356),n(7207),n(8688);n(9966)})();
|