59 lines
774 KiB
JavaScript
59 lines
774 KiB
JavaScript
(self["webpackChunkaida"]=self["webpackChunkaida"]||[]).push([[652],{1125:function(e,t,A){(function(){var t={9662:function(e,t,A){var i=A(7854),n=A(614),r=A(6330),o=i.TypeError;e.exports=function(e){if(n(e))return e;throw o(r(e)+" is not a function")}},6077:function(e,t,A){var i=A(7854),n=A(614),r=i.String,o=i.TypeError;e.exports=function(e){if("object"==typeof e||n(e))return e;throw o("Can't set "+r(e)+" as a prototype")}},9670:function(e,t,A){var i=A(7854),n=A(111),r=i.String,o=i.TypeError;e.exports=function(e){if(n(e))return e;throw o(r(e)+" is not an object")}},1318:function(e,t,A){var i=A(5656),n=A(1400),r=A(6244),o=function(e){return function(t,A,o){var s,a=i(t),l=r(a),c=n(o,l);if(e&&A!=A){while(l>c)if(s=a[c++],s!=s)return!0}else for(;l>c;c++)if((e||c in a)&&a[c]===A)return e||c||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},4326:function(e,t,A){var i=A(1702),n=i({}.toString),r=i("".slice);e.exports=function(e){return r(n(e),8,-1)}},648:function(e,t,A){var i=A(7854),n=A(1694),r=A(614),o=A(4326),s=A(5112),a=s("toStringTag"),l=i.Object,c="Arguments"==o(function(){return arguments}()),d=function(e,t){try{return e[t]}catch(A){}};e.exports=n?o:function(e){var t,A,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(A=d(t=l(e),a))?A:c?o(t):"Object"==(i=o(t))&&r(t.callee)?"Arguments":i}},7741:function(e,t,A){var i=A(1702),n=i("".replace),r=function(e){return String(Error(e).stack)}("zxcasd"),o=/\n\s*at [^:]*:[^\n]*/,s=o.test(r);e.exports=function(e,t){if(s&&"string"==typeof e)while(t--)e=n(e,o,"");return e}},9920:function(e,t,A){var i=A(2597),n=A(3887),r=A(1236),o=A(3070);e.exports=function(e,t,A){for(var s=n(t),a=o.f,l=r.f,c=0;c<s.length;c++){var d=s[c];i(e,d)||A&&i(A,d)||a(e,d,l(t,d))}}},8880:function(e,t,A){var i=A(9781),n=A(3070),r=A(9114);e.exports=i?function(e,t,A){return n.f(e,t,r(1,A))}:function(e,t,A){return e[t]=A,e}},9114:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},9781:function(e,t,A){var i=A(7293);e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(e,t,A){var i=A(7854),n=A(111),r=i.document,o=n(r)&&n(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},8113:function(e,t,A){var i=A(5005);e.exports=i("navigator","userAgent")||""},7392:function(e,t,A){var i,n,r=A(7854),o=A(8113),s=r.process,a=r.Deno,l=s&&s.versions||a&&a.version,c=l&&l.v8;c&&(i=c.split("."),n=i[0]>0&&i[0]<4?1:+(i[0]+i[1])),!n&&o&&(i=o.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=o.match(/Chrome\/(\d+)/),i&&(n=+i[1]))),e.exports=n},748:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2914:function(e,t,A){var i=A(7293),n=A(9114);e.exports=!i((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",n(1,7)),7!==e.stack)}))},2109:function(e,t,A){var i=A(7854),n=A(1236).f,r=A(8880),o=A(1320),s=A(3505),a=A(9920),l=A(4705);e.exports=function(e,t){var A,c,d,u,h,g,p=e.target,f=e.global,m=e.stat;if(c=f?i:m?i[p]||s(p,{}):(i[p]||{}).prototype,c)for(d in t){if(h=t[d],e.noTargetGet?(g=n(c,d),u=g&&g.value):u=c[d],A=l(f?d:p+(m?".":"#")+d,e.forced),!A&&void 0!==u){if(typeof h==typeof u)continue;a(h,u)}(e.sham||u&&u.sham)&&r(h,"sham",!0),o(c,d,h,e)}}},7293:function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},2104:function(e,t,A){var i=A(4374),n=Function.prototype,r=n.apply,o=n.call;e.exports="object"==typeof Reflect&&Reflect.apply||(i?o.bind(r):function(){return o.apply(r,arguments)})},4374:function(e,t,A){var i=A(7293);e.exports=!i((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},6916:function(e,t,A){var i=A(4374),n=Function.prototype.call;e.exports=i?n.bind(n):function(){return n.apply(n,arguments)}},6530:function(e,t,A){var i=A(9781),n=A(2597),r=Function.prototype,o=i&&Object.getOwnPropertyDescriptor,s=n(r,"name"),a=s&&"something"===function(){}.name,l=s&&(!i||i&&o(r,"name").configurable);e.exports={EXISTS:s,PROPER:a,CONFIGURABLE:l}},1702:function(e,t,A){var i=A(4374),n=Function.prototype,r=n.bind,o=n.call,s=i&&r.bind(o,o);e.exports=i?function(e){return e&&s(e)}:function(e){return e&&function(){return o.apply(e,arguments)}}},5005:function(e,t,A){var i=A(7854),n=A(614),r=function(e){return n(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?r(i[e]):i[e]&&i[e][t]}},8173:function(e,t,A){var i=A(9662);e.exports=function(e,t){var A=e[t];return null==A?void 0:i(A)}},7854:function(e,t,A){var i=function(e){return e&&e.Math==Math&&e};e.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof A.g&&A.g)||function(){return this}()||Function("return this")()},2597:function(e,t,A){var i=A(1702),n=A(7908),r=i({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return r(n(e),t)}},3501:function(e){e.exports={}},4664:function(e,t,A){var i=A(9781),n=A(7293),r=A(317);e.exports=!i&&!n((function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},8361:function(e,t,A){var i=A(7854),n=A(1702),r=A(7293),o=A(4326),s=i.Object,a=n("".split);e.exports=r((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?a(e,""):s(e)}:s},9587:function(e,t,A){var i=A(614),n=A(111),r=A(7674);e.exports=function(e,t,A){var o,s;return r&&i(o=t.constructor)&&o!==A&&n(s=o.prototype)&&s!==A.prototype&&r(e,s),e}},2788:function(e,t,A){var i=A(1702),n=A(614),r=A(5465),o=i(Function.toString);n(r.inspectSource)||(r.inspectSource=function(e){return o(e)}),e.exports=r.inspectSource},8340:function(e,t,A){var i=A(111),n=A(8880);e.exports=function(e,t){i(t)&&"cause"in t&&n(e,"cause",t.cause)}},9909:function(e,t,A){var i,n,r,o=A(8536),s=A(7854),a=A(1702),l=A(111),c=A(8880),d=A(2597),u=A(5465),h=A(6200),g=A(3501),p="Object already initialized",f=s.TypeError,m=s.WeakMap,B=function(e){return r(e)?n(e):i(e,{})},w=function(e){return function(t){var A;if(!l(t)||(A=n(t)).type!==e)throw f("Incompatible receiver, "+e+" required");return A}};if(o||u.state){var v=u.state||(u.state=new m),y=a(v.get),C=a(v.has),b=a(v.set);i=function(e,t){if(C(v,e))throw new f(p);return t.facade=e,b(v,e,t),t},n=function(e){return y(v,e)||{}},r=function(e){return C(v,e)}}else{var _=h("state");g[_]=!0,i=function(e,t){if(d(e,_))throw new f(p);return t.facade=e,c(e,_,t),t},n=function(e){return d(e,_)?e[_]:{}},r=function(e){return d(e,_)}}e.exports={set:i,get:n,has:r,enforce:B,getterFor:w}},614:function(e){e.exports=function(e){return"function"==typeof e}},4705:function(e,t,A){var i=A(7293),n=A(614),r=/#|\.prototype\./,o=function(e,t){var A=a[s(e)];return A==c||A!=l&&(n(t)?i(t):!!t)},s=o.normalize=function(e){return String(e).replace(r,".").toLowerCase()},a=o.data={},l=o.NATIVE="N",c=o.POLYFILL="P";e.exports=o},111:function(e,t,A){var i=A(614);e.exports=function(e){return"object"==typeof e?null!==e:i(e)}},1913:function(e){e.exports=!1},2190:function(e,t,A){var i=A(7854),n=A(5005),r=A(614),o=A(7976),s=A(3307),a=i.Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return r(t)&&o(t.prototype,a(e))}},6244:function(e,t,A){var i=A(7466);e.exports=function(e){return i(e.length)}},133:function(e,t,A){var i=A(7392),n=A(7293);e.exports=!!Object.getOwnPropertySymbols&&!n((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},8536:function(e,t,A){var i=A(7854),n=A(614),r=A(2788),o=i.WeakMap;e.exports=n(o)&&/native code/.test(r(o))},6277:function(e,t,A){var i=A(1340);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:i(e)}},3070:function(e,t,A){var i=A(7854),n=A(9781),r=A(4664),o=A(3353),s=A(9670),a=A(4948),l=i.TypeError,c=Object.defineProperty,d=Object.getOwnPropertyDescriptor,u="enumerable",h="configurable",g="writable";t.f=n?o?function(e,t,A){if(s(e),t=a(t),s(A),"function"===typeof e&&"prototype"===t&&"value"in A&&g in A&&!A[g]){var i=d(e,t);i&&i[g]&&(e[t]=A.value,A={configurable:h in A?A[h]:i[h],enumerable:u in A?A[u]:i[u],writable:!1})}return c(e,t,A)}:c:function(e,t,A){if(s(e),t=a(t),s(A),r)try{return c(e,t,A)}catch(i){}if("get"in A||"set"in A)throw l("Accessors not supported");return"value"in A&&(e[t]=A.value),e}},1236:function(e,t,A){var i=A(9781),n=A(6916),r=A(5296),o=A(9114),s=A(5656),a=A(4948),l=A(2597),c=A(4664),d=Object.getOwnPropertyDescriptor;t.f=i?d:function(e,t){if(e=s(e),t=a(t),c)try{return d(e,t)}catch(A){}if(l(e,t))return o(!n(r.f,e,t),e[t])}},8006:function(e,t,A){var i=A(6324),n=A(748),r=n.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},5181:function(e,t){t.f=Object.getOwnPropertySymbols},7976:function(e,t,A){var i=A(1702);e.exports=i({}.isPrototypeOf)},6324:function(e,t,A){var i=A(1702),n=A(2597),r=A(5656),o=A(1318).indexOf,s=A(3501),a=i([].push);e.exports=function(e,t){var A,i=r(e),l=0,c=[];for(A in i)!n(s,A)&&n(i,A)&&a(c,A);while(t.length>l)n(i,A=t[l++])&&(~o(c,A)||a(c,A));return c}},5296:function(e,t){"use strict";var A={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,n=i&&!A.call({1:2},1);t.f=n?function(e){var t=i(this,e);return!!t&&t.enumerable}:A},7674:function(e,t,A){var i=A(1702),n=A(9670),r=A(6077);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,A={};try{e=i(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),e(A,[]),t=A instanceof Array}catch(o){}return function(A,i){return n(A),r(i),t?e(A,i):A.__proto__=i,A}}():void 0)},2140:function(e,t,A){var i=A(7854),n=A(6916),r=A(614),o=A(111),s=i.TypeError;e.exports=function(e,t){var A,i;if("string"===t&&r(A=e.toString)&&!o(i=n(A,e)))return i;if(r(A=e.valueOf)&&!o(i=n(A,e)))return i;if("string"!==t&&r(A=e.toString)&&!o(i=n(A,e)))return i;throw s("Can't convert object to primitive value")}},3887:function(e,t,A){var i=A(5005),n=A(1702),r=A(8006),o=A(5181),s=A(9670),a=n([].concat);e.exports=i("Reflect","ownKeys")||function(e){var t=r.f(s(e)),A=o.f;return A?a(t,A(e)):t}},1320:function(e,t,A){var i=A(7854),n=A(614),r=A(2597),o=A(8880),s=A(3505),a=A(2788),l=A(9909),c=A(6530).CONFIGURABLE,d=l.get,u=l.enforce,h=String(String).split("String");(e.exports=function(e,t,A,a){var l,d=!!a&&!!a.unsafe,g=!!a&&!!a.enumerable,p=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:t;n(A)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!r(A,"name")||c&&A.name!==f)&&o(A,"name",f),l=u(A),l.source||(l.source=h.join("string"==typeof f?f:""))),e!==i?(d?!p&&e[t]&&(g=!0):delete e[t],g?e[t]=A:o(e,t,A)):g?e[t]=A:s(t,A)})(Function.prototype,"toString",(function(){return n(this)&&d(this).source||a(this)}))},4488:function(e,t,A){var i=A(7854),n=i.TypeError;e.exports=function(e){if(void 0==e)throw n("Can't call method on "+e);return e}},3505:function(e,t,A){var i=A(7854),n=Object.defineProperty;e.exports=function(e,t){try{n(i,e,{value:t,configurable:!0,writable:!0})}catch(A){i[e]=t}return t}},6200:function(e,t,A){var i=A(2309),n=A(9711),r=i("keys");e.exports=function(e){return r[e]||(r[e]=n(e))}},5465:function(e,t,A){var i=A(7854),n=A(3505),r="__core-js_shared__",o=i[r]||n(r,{});e.exports=o},2309:function(e,t,A){var i=A(1913),n=A(5465);(e.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.21.1",mode:i?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"})},1400:function(e,t,A){var i=A(9303),n=Math.max,r=Math.min;e.exports=function(e,t){var A=i(e);return A<0?n(A+t,0):r(A,t)}},5656:function(e,t,A){var i=A(8361),n=A(4488);e.exports=function(e){return i(n(e))}},9303:function(e){var t=Math.ceil,A=Math.floor;e.exports=function(e){var i=+e;return i!==i||0===i?0:(i>0?A:t)(i)}},7466:function(e,t,A){var i=A(9303),n=Math.min;e.exports=function(e){return e>0?n(i(e),9007199254740991):0}},7908:function(e,t,A){var i=A(7854),n=A(4488),r=i.Object;e.exports=function(e){return r(n(e))}},7593:function(e,t,A){var i=A(7854),n=A(6916),r=A(111),o=A(2190),s=A(8173),a=A(2140),l=A(5112),c=i.TypeError,d=l("toPrimitive");e.exports=function(e,t){if(!r(e)||o(e))return e;var A,i=s(e,d);if(i){if(void 0===t&&(t="default"),A=n(i,e,t),!r(A)||o(A))return A;throw c("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},4948:function(e,t,A){var i=A(7593),n=A(2190);e.exports=function(e){var t=i(e,"string");return n(t)?t:t+""}},1694:function(e,t,A){var i=A(5112),n=i("toStringTag"),r={};r[n]="z",e.exports="[object z]"===String(r)},1340:function(e,t,A){var i=A(7854),n=A(648),r=i.String;e.exports=function(e){if("Symbol"===n(e))throw TypeError("Cannot convert a Symbol value to a string");return r(e)}},6330:function(e,t,A){var i=A(7854),n=i.String;e.exports=function(e){try{return n(e)}catch(t){return"Object"}}},9711:function(e,t,A){var i=A(1702),n=0,r=Math.random(),o=i(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++n+r,36)}},3307:function(e,t,A){var i=A(133);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(e,t,A){var i=A(9781),n=A(7293);e.exports=i&&n((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},5112:function(e,t,A){var i=A(7854),n=A(2309),r=A(2597),o=A(9711),s=A(133),a=A(3307),l=n("wks"),c=i.Symbol,d=c&&c["for"],u=a?c:c&&c.withoutSetter||o;e.exports=function(e){if(!r(l,e)||!s&&"string"!=typeof l[e]){var t="Symbol."+e;s&&r(c,e)?l[e]=c[e]:l[e]=a&&d?d(t):u(t)}return l[e]}},9191:function(e,t,A){"use strict";var i=A(5005),n=A(2597),r=A(8880),o=A(7976),s=A(7674),a=A(9920),l=A(9587),c=A(6277),d=A(8340),u=A(7741),h=A(2914),g=A(1913);e.exports=function(e,t,A,p){var f=p?2:1,m=e.split("."),B=m[m.length-1],w=i.apply(null,m);if(w){var v=w.prototype;if(!g&&n(v,"cause")&&delete v.cause,!A)return w;var y=i("Error"),C=t((function(e,t){var A=c(p?t:e,void 0),i=p?new w(e):new w;return void 0!==A&&r(i,"message",A),h&&r(i,"stack",u(i.stack,2)),this&&o(v,this)&&l(i,this,C),arguments.length>f&&d(i,arguments[f]),i}));if(C.prototype=v,"Error"!==B&&(s?s(C,y):a(C,y,{name:!0})),a(C,w),!g)try{v.name!==B&&r(v,"name",B),v.constructor=C}catch(b){}return C}}},1703:function(e,t,A){var i=A(2109),n=A(7854),r=A(2104),o=A(9191),s="WebAssembly",a=n[s],l=7!==Error("e",{cause:7}).cause,c=function(e,t){var A={};A[e]=o(e,t,l),i({global:!0,forced:l},A)},d=function(e,t){if(a&&a[e]){var A={};A[e]=o(s+"."+e,t,l),i({target:s,stat:!0,forced:l},A)}};c("Error",(function(e){return function(t){return r(e,this,arguments)}})),c("EvalError",(function(e){return function(t){return r(e,this,arguments)}})),c("RangeError",(function(e){return function(t){return r(e,this,arguments)}})),c("ReferenceError",(function(e){return function(t){return r(e,this,arguments)}})),c("SyntaxError",(function(e){return function(t){return r(e,this,arguments)}})),c("TypeError",(function(e){return function(t){return r(e,this,arguments)}})),c("URIError",(function(e){return function(t){return r(e,this,arguments)}})),d("CompileError",(function(e){return function(t){return r(e,this,arguments)}})),d("LinkError",(function(e){return function(t){return r(e,this,arguments)}})),d("RuntimeError",(function(e){return function(t){return r(e,this,arguments)}}))},6095:function(e,t,A){"use strict";A.r(t);var i=A(8081),n=A.n(i),r=A(3645),o=A.n(r),s=o()(n());s.push([e.id,".vc-chrome{background:#fff;border-radius:2px;box-shadow:0 0 2px rgba(0,0,0,.3),0 4px 8px rgba(0,0,0,.3);box-sizing:initial;width:225px;font-family:Menlo;background-color:#fff}.vc-chrome-controls{display:flex}.vc-chrome-color-wrap{position:relative;width:36px}.vc-chrome-active-color{position:relative;width:30px;height:30px;border-radius:15px;overflow:hidden;z-index:1}.vc-chrome-color-wrap .vc-checkerboard{width:30px;height:30px;border-radius:15px;background-size:auto}.vc-chrome-sliders{flex:1}.vc-chrome-fields-wrap{display:flex;padding-top:16px}.vc-chrome-fields{display:flex;margin-left:-6px;flex:1}.vc-chrome-field{padding-left:6px;width:100%}.vc-chrome-toggle-btn{width:32px;text-align:right;position:relative}.vc-chrome-toggle-icon{margin-right:-4px;margin-top:12px;cursor:pointer;position:relative;z-index:2}.vc-chrome-toggle-icon-highlight{position:absolute;width:24px;height:28px;background:#eee;border-radius:4px;top:10px;left:12px}.vc-chrome-hue-wrap{margin-bottom:8px}.vc-chrome-alpha-wrap,.vc-chrome-hue-wrap{position:relative;height:10px}.vc-chrome-alpha-wrap .vc-alpha-gradient,.vc-chrome-hue-wrap .vc-hue{border-radius:2px}.vc-chrome-alpha-wrap .vc-alpha-picker,.vc-chrome-hue-wrap .vc-hue-picker{width:12px;height:12px;border-radius:6px;transform:translate(-6px,-2px);background-color:#f8f8f8;box-shadow:0 1px 4px 0 rgba(0,0,0,.37)}.vc-chrome-body{padding:16px 16px 12px;background-color:#fff}.vc-chrome-saturation-wrap{width:100%;padding-bottom:55%;position:relative;border-radius:2px 2px 0 0;overflow:hidden}.vc-chrome-saturation-wrap .vc-saturation-circle{width:12px;height:12px}.vc-chrome-fields .vc-input__input{font-size:11px;color:#333;width:100%;border-radius:2px;border:none;box-shadow:inset 0 0 0 1px #dadada;height:21px;text-align:center}.vc-chrome-fields .vc-input__label{text-transform:uppercase;font-size:11px;line-height:11px;color:#969696;text-align:center;display:block;margin-top:12px}.vc-chrome__disable-alpha .vc-chrome-active-color{width:18px;height:18px}.vc-chrome__disable-alpha .vc-chrome-color-wrap{width:30px}.vc-chrome__disable-alpha .vc-chrome-hue-wrap{margin-top:4px;margin-bottom:4px}",""]),t["default"]=s},6047:function(e,t,A){"use strict";A.r(t);var i=A(8081),n=A.n(i),r=A(3645),o=A.n(r),s=o()(n());s.push([e.id,".vc-compact{padding-top:5px;padding-left:5px;width:245px;border-radius:2px;box-sizing:border-box;box-shadow:0 2px 10px rgba(0,0,0,.12),0 2px 5px rgba(0,0,0,.16);background-color:#fff}.vc-compact-colors{overflow:hidden;padding:0;margin:0}.vc-compact-color-item{list-style:none;width:15px;height:15px;float:left;margin-right:5px;margin-bottom:5px;position:relative;cursor:pointer}.vc-compact-color-item--white{box-shadow:inset 0 0 0 1px #ddd}.vc-compact-color-item--white .vc-compact-dot{background:#000}.vc-compact-dot{position:absolute;top:5px;right:5px;bottom:5px;left:5px;border-radius:50%;opacity:1;background:#fff}",""]),t["default"]=s},9481:function(e,t,A){"use strict";A.r(t);var i=A(8081),n=A.n(i),r=A(3645),o=A.n(r),s=o()(n());s.push([e.id,".vc-grayscale{width:125px;border-radius:2px;box-shadow:0 2px 15px rgba(0,0,0,.12),0 2px 10px rgba(0,0,0,.16);background-color:#fff}.vc-grayscale-colors{border-radius:2px;overflow:hidden;padding:0;margin:0}.vc-grayscale-color-item{list-style:none;width:25px;height:25px;float:left;position:relative;cursor:pointer}.vc-grayscale-color-item--white .vc-grayscale-dot{background:#000}.vc-grayscale-dot{position:absolute;top:50%;left:50%;width:6px;height:6px;margin:-3px 0 0 -2px;border-radius:50%;opacity:1;background:#fff}",""]),t["default"]=s},5186:function(e,t,A){"use strict";A.r(t);var i=A(8081),n=A.n(i),r=A(3645),o=A.n(r),s=o()(n());s.push([e.id,".vc-material{width:98px;height:98px;padding:16px;font-family:Roboto;position:relative;border-radius:2px;box-shadow:0 2px 10px rgba(0,0,0,.12),0 2px 5px rgba(0,0,0,.16);background-color:#fff}.vc-material .vc-input__input{width:100%;margin-top:12px;font-size:15px;color:#333;height:30px}.vc-material .vc-input__label{position:absolute;top:0;left:0;font-size:11px;color:#999;text-transform:capitalize}.vc-material-hex{border-bottom-width:2px;border-bottom-style:solid}.vc-material-split{display:flex;margin-right:-10px;padding-top:11px}.vc-material-third{flex:1;padding-right:10px}",""]),t["default"]=s},3695:function(e,t,A){"use strict";A.r(t);var i=A(8081),n=A.n(i),r=A(3645),o=A.n(r),s=o()(n());s.push([e.id,'.vc-photoshop{background:#dcdcdc;border-radius:4px;box-shadow:0 0 0 1px rgba(0,0,0,.25),0 8px 16px rgba(0,0,0,.15);box-sizing:initial;width:513px;font-family:Roboto}.vc-photoshop__disable-fields{width:390px}.vc-ps-head{background-image:linear-gradient(-180deg,#f0f0f0,#d4d4d4);border-bottom:1px solid #b1b1b1;box-shadow:inset 0 1px 0 0 hsla(0,0%,100%,.2),inset 0 -1px 0 0 rgba(0,0,0,.02);height:23px;line-height:24px;border-radius:4px 4px 0 0;font-size:13px;color:#4d4d4d;text-align:center}.vc-ps-body{padding:15px;display:flex}.vc-ps-saturation-wrap{width:256px;height:256px;position:relative;border:2px solid #b3b3b3;border-bottom:2px solid #f0f0f0;overflow:hidden}.vc-ps-saturation-wrap .vc-saturation-circle{width:12px;height:12px}.vc-ps-hue-wrap{height:256px;width:19px;margin-left:10px;border:2px solid #b3b3b3;border-bottom:2px solid #f0f0f0}.vc-ps-hue-pointer,.vc-ps-hue-wrap{position:relative}.vc-ps-hue-pointer--left,.vc-ps-hue-pointer--right{position:absolute;width:0;height:0;border-style:solid;border-width:5px 0 5px 8px;border-color:transparent transparent transparent #555}.vc-ps-hue-pointer--left:after,.vc-ps-hue-pointer--right:after{content:"";width:0;height:0;border-style:solid;border-width:4px 0 4px 6px;border-color:transparent transparent transparent #fff;position:absolute;top:1px;left:1px;transform:translate(-8px,-5px)}.vc-ps-hue-pointer--left{transform:translate(-13px,-4px)}.vc-ps-hue-pointer--right{transform:translate(20px,-4px) rotate(180deg)}.vc-ps-controls{width:180px;margin-left:10px;display:flex}.vc-ps-controls__disable-fields{width:auto}.vc-ps-actions{margin-left:20px;flex:1}.vc-ps-ac-btn{cursor:pointer;background-image:linear-gradient(-180deg,#fff,#e6e6e6);border:1px solid #878787;border-radius:2px;height:20px;box-shadow:0 1px 0 0 #eaeaea;font-size:14px;color:#000;line-height:20px;text-align:center;margin-bottom:10px}.vc-ps-previews{width:60px}.vc-ps-previews__swatches{border:1px solid #b3b3b3;border-bottom:1px solid #f0f0f0;margin-bottom:2px;margin-top:1px}.vc-ps-previews__pr-color{height:34px;box-shadow:inset 1px 0 0 #000,inset -1px 0 0 #000,inset 0 1px 0 #000}.vc-ps-previews__label{font-size:14px;color:#000;text-align:center}.vc-ps-fields{padding-top:5px;padding-bottom:9px;width:80px;position:relative}.vc-ps-fields .vc-input__input{margin-left:40%;width:40%;height:18px;border:1px solid #888;box-shadow:inset 0 1px 1px rgba(0,0,0,.1),0 1px 0 0 #ececec;margin-bottom:5px;font-size:13px;padding-left:3px;margin-right:10px}.vc-ps-fields .vc-input__desc,.vc-ps-fields .vc-input__label{top:0;text-transform:uppercase;font-size:13px;height:18px;line-height:22px;position:absolute}.vc-ps-fields .vc-input__label{left:0;width:34px}.vc-ps-fields .vc-input__desc{right:0;width:0}.vc-ps-fields__divider{height:5px}.vc-ps-fields__hex .vc-input__input{margin-left:20%;width:80%;height:18px;border:1px solid #888;box-shadow:inset 0 1px 1px rgba(0,0,0,.1),0 1px 0 0 #ececec;margin-bottom:6px;font-size:13px;padding-left:3px}.vc-ps-fields__hex .vc-input__label{position:absolute;top:0;left:0;width:14px;text-transform:uppercase;font-size:13px;height:18px;line-height:22px}',""]),t["default"]=s},1380:function(e,t,A){"use strict";A.r(t);var i=A(8081),n=A.n(i),r=A(3645),o=A.n(r),s=o()(n());s.push([e.id,".vc-botton-container{display:flex;justify-content:end;padding-bottom:10px;font-size:12px}.vc-botton-right{cursor:pointer;margin-left:10px;padding:5px 5px;border:1px solid #dcdfe6;border-radius:5px;color:#606266}.vc-botton-right:hover{color:#409eff;border:1px solid #409eff}.vc-botton-left{cursor:pointer;padding:5px 5px;color:#409eff}.vc-sketch{position:relative;width:200px;padding:10px 10px 0;box-sizing:initial;background:#fff;border-radius:4px;box-shadow:0 0 0 1px rgba(0,0,0,.15),0 8px 16px rgba(0,0,0,.15)}.vc-sketch-saturation-wrap{width:100%;padding-bottom:75%;position:relative;overflow:hidden}.vc-sketch-controls{display:flex}.vc-sketch-sliders{padding:4px 0;flex:1}.vc-sketch-sliders .vc-alpha-gradient,.vc-sketch-sliders .vc-hue{border-radius:2px}.vc-sketch-alpha-wrap,.vc-sketch-hue-wrap{position:relative;height:10px}.vc-sketch-alpha-wrap{margin-top:4px;overflow:hidden}.vc-sketch-color-wrap{width:24px;height:24px;position:relative;margin-top:4px;margin-left:4px;border-radius:3px}.vc-sketch-active-color{position:absolute;top:0;left:0;right:0;bottom:0;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15),inset 0 0 4px rgba(0,0,0,.25);z-index:2}.vc-sketch-color-wrap .vc-checkerboard{background-size:auto}.vc-sketch-field{display:flex;padding-top:4px}.vc-sketch-field .vc-input__input{width:90%;padding:4px 0 3px 10%;border:none;box-shadow:inset 0 0 0 1px #ccc;font-size:10px}.vc-sketch-field .vc-input__label{display:block;text-align:center;font-size:11px;color:#222;padding-top:3px;padding-bottom:4px;text-transform:capitalize}.vc-sketch-field--single{flex:1;padding-left:6px}.vc-sketch-field--double{flex:2}.vc-sketch-presets{margin-right:-10px;margin-left:-10px;padding-left:10px;padding-top:10px;border-top:1px solid #eee}.vc-sketch-presets-color{overflow:hidden;position:relative;display:inline-block;margin:0 10px 10px 0;vertical-align:top;cursor:pointer;width:16px;height:16px}.vc-sketch-presets-color,.vc-sketch-presets-color .vc-checkerboard{border-radius:3px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}.vc-sketch__disable-alpha .vc-sketch-color-wrap{height:10px}",""]),t["default"]=s},6278:function(e,t,A){"use strict";A.r(t);var i=A(8081),n=A.n(i),r=A(3645),o=A.n(r),s=o()(n());s.push([e.id,".vc-slider{position:relative;width:410px}.vc-slider-hue-warp{height:12px;position:relative}.vc-slider-hue-warp .vc-hue-picker{width:14px;height:14px;border-radius:6px;transform:translate(-7px,-2px);background-color:#f8f8f8;box-shadow:0 1px 4px 0 rgba(0,0,0,.37)}.vc-slider-swatches{display:flex;margin-top:20px}.vc-slider-swatch{margin-right:1px;flex:1;width:20%}.vc-slider-swatch:first-child{margin-right:1px}.vc-slider-swatch:first-child .vc-slider-swatch-picker{border-radius:2px 0 0 2px}.vc-slider-swatch:last-child{margin-right:0}.vc-slider-swatch:last-child .vc-slider-swatch-picker{border-radius:0 2px 2px 0}.vc-slider-swatch-picker{cursor:pointer;height:12px}.vc-slider-swatch:nth-child(n) .vc-slider-swatch-picker.vc-slider-swatch-picker--active{transform:scaleY(1.8);border-radius:3.6px/2px}.vc-slider-swatch-picker--white{box-shadow:inset 0 0 0 1px #ddd}.vc-slider-swatch-picker--active.vc-slider-swatch-picker--white{box-shadow:inset 0 0 0 .6px #ddd}",""]),t["default"]=s},3468:function(e,t,A){"use strict";A.r(t);var i=A(8081),n=A.n(i),r=A(3645),o=A.n(r),s=o()(n());s.push([e.id,".vc-swatches{width:320px;height:240px;overflow-y:scroll;background-color:#fff;box-shadow:0 2px 10px rgba(0,0,0,.12),0 2px 5px rgba(0,0,0,.16)}.vc-swatches-box{padding:16px 0 6px 16px;overflow:hidden}.vc-swatches-color-group{padding-bottom:10px;width:40px;float:left;margin-right:10px}.vc-swatches-color-it{box-sizing:border-box;width:40px;height:24px;cursor:pointer;background:#880e4f;margin-bottom:1px;overflow:hidden;border-radius:2px 2px 0 0}.vc-swatches-color--white{border:1px solid #ddd}.vc-swatches-pick{fill:#fff;margin-left:8px;display:block}.vc-swatches-color--white .vc-swatches-pick{fill:#333}",""]),t["default"]=s},5689:function(e,t,A){"use strict";A.r(t);var i=A(8081),n=A.n(i),r=A(3645),o=A.n(r),s=o()(n());s.push([e.id,".vc-twitter{background:#fff;border:0 solid rgba(0,0,0,.25);box-shadow:0 1px 4px rgba(0,0,0,.25);border-radius:4px;position:relative}.vc-twitter-triangle{border-color:transparent transparent #fff transparent}.vc-twitter-triangle,.vc-twitter-triangle-shadow{width:0;height:0;border-style:solid;border-width:0 9px 10px 9px;position:absolute}.vc-twitter-triangle-shadow{border-color:transparent transparent rgba(0,0,0,.1) transparent}.vc-twitter-body{padding:15px 9px 9px 15px}.vc-twitter .vc-editable-input{position:relative}.vc-twitter .vc-editable-input input{width:100px;font-size:14px;color:#666;border:0;outline:none;height:28px;box-shadow:inset 0 0 0 1px #f0f0f0;box-sizing:content-box;border-radius:0 4px 4px 0;float:left;padding:1px;padding-left:8px}.vc-twitter .vc-editable-input span{display:none}.vc-twitter-hash{background:#f0f0f0;height:30px;width:30px;border-radius:4px 0 0 4px;float:left;color:#98a1a4;display:flex;align-items:center;justify-content:center}.vc-twitter-swatch{width:30px;height:30px;float:left;border-radius:4px;margin:0 6px 6px 0;cursor:pointer;position:relative;outline:none}.vc-twitter-clear{clear:both}.vc-twitter-hide-triangle .vc-twitter-triangle,.vc-twitter-hide-triangle .vc-twitter-triangle-shadow{display:none}.vc-twitter-top-left-triangle .vc-twitter-triangle{top:-10px;left:12px}.vc-twitter-top-left-triangle .vc-twitter-triangle-shadow{top:-11px;left:12px}.vc-twitter-top-right-triangle .vc-twitter-triangle{top:-10px;right:12px}.vc-twitter-top-right-triangle .vc-twitter-triangle-shadow{top:-11px;right:12px}",""]),t["default"]=s},2410:function(e,t,A){"use strict";A.r(t);var i=A(8081),n=A.n(i),r=A(3645),o=A.n(r),s=o()(n());s.push([e.id,".vc-alpha,.vc-alpha-checkboard-wrap{position:absolute;top:0;right:0;bottom:0;left:0}.vc-alpha-checkboard-wrap{overflow:hidden}.vc-alpha-gradient{position:absolute;top:0;right:0;bottom:0;left:0}.vc-alpha-container{cursor:pointer;position:relative;z-index:2;height:100%;margin:0 3px}.vc-alpha-pointer{z-index:2;position:absolute}.vc-alpha-picker{cursor:pointer;width:4px;border-radius:1px;height:8px;box-shadow:0 0 2px rgba(0,0,0,.6);background:#fff;margin-top:1px;transform:translateX(-2px)}",""]),t["default"]=s},3142:function(e,t,A){"use strict";A.r(t);var i=A(8081),n=A.n(i),r=A(3645),o=A.n(r),s=o()(n());s.push([e.id,".vc-checkerboard{position:absolute;top:0;right:0;bottom:0;left:0;background-size:contain}",""]),t["default"]=s},7953:function(e,t,A){"use strict";A.r(t);var i=A(8081),n=A.n(i),r=A(3645),o=A.n(r),s=o()(n());s.push([e.id,".vc-editable-input{position:relative}.vc-input__input{padding:0;border:0;outline:none}.vc-input__label{text-transform:capitalize}",""]),t["default"]=s},3097:function(e,t,A){"use strict";A.r(t);var i=A(8081),n=A.n(i),r=A(3645),o=A.n(r),s=o()(n());s.push([e.id,".vc-hue{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:2px}.vc-hue--horizontal{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.vc-hue--vertical{background:linear-gradient(0deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.vc-hue-container{cursor:pointer;margin:0 2px;position:relative;height:100%}.vc-hue-pointer{z-index:2;position:absolute}.vc-hue-picker{cursor:pointer;margin-top:1px;width:4px;border-radius:1px;height:8px;box-shadow:0 0 2px rgba(0,0,0,.6);background:#fff;transform:translateX(-2px)}",""]),t["default"]=s},4339:function(e,t,A){"use strict";A.r(t);var i=A(8081),n=A.n(i),r=A(3645),o=A.n(r),s=o()(n());s.push([e.id,".vc-saturation,.vc-saturation--black,.vc-saturation--white{cursor:pointer;position:absolute;top:0;left:0;right:0;bottom:0}.vc-saturation--white{background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.vc-saturation--black{background:linear-gradient(0deg,#000,transparent)}.vc-saturation-pointer{cursor:pointer;position:absolute}.vc-saturation-circle{cursor:head;width:4px;height:4px;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4);border-radius:50%;transform:translate(-2px,-2px)}",""]),t["default"]=s},3645:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var A="",i="undefined"!==typeof t[5];return t[4]&&(A+="@supports (".concat(t[4],") {")),t[2]&&(A+="@media ".concat(t[2]," {")),i&&(A+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),A+=e(t),i&&(A+="}"),t[2]&&(A+="}"),t[4]&&(A+="}"),A})).join("")},t.i=function(e,A,i,n,r){"string"===typeof e&&(e=[[null,e,void 0]]);var o={};if(i)for(var s=0;s<this.length;s++){var a=this[s][0];null!=a&&(o[a]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);i&&o[c[0]]||("undefined"!==typeof r&&("undefined"===typeof c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=r),A&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=A):c[2]=A),n&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=n):c[4]="".concat(n)),t.push(c))}},t}},8081:function(e){"use strict";e.exports=function(e){return e[1]}},9428:function(e){function t(e,t,A){return t<A?e<t?t:e>A?A:e:e<A?A:e>t?t:e}e.exports=t},9016:function(e,t,A){var i=A(9159),n=i.Symbol;e.exports=n},6423:function(e,t,A){var i=A(9016),n=A(2366),r=A(2886),o="[object Null]",s="[object Undefined]",a=i?i.toStringTag:void 0;function l(e){return null==e?void 0===e?s:o:a&&a in Object(e)?n(e):r(e)}e.exports=l},6009:function(e,t,A){var i=A(1626),n=/^\s+/;function r(e){return e?e.slice(0,i(e)+1).replace(n,""):e}e.exports=r},791:function(e,t,A){var i="object"==typeof A.g&&A.g&&A.g.Object===Object&&A.g;e.exports=i},2366:function(e,t,A){var i=A(9016),n=Object.prototype,r=n.hasOwnProperty,o=n.toString,s=i?i.toStringTag:void 0;function a(e){var t=r.call(e,s),A=e[s];try{e[s]=void 0;var i=!0}catch(a){}var n=o.call(e);return i&&(t?e[s]=A:delete e[s]),n}e.exports=a},2886:function(e){var t=Object.prototype,A=t.toString;function i(e){return A.call(e)}e.exports=i},9159:function(e,t,A){var i=A(791),n="object"==typeof self&&self&&self.Object===Object&&self,r=i||n||Function("return this")();e.exports=r},1626:function(e){var t=/\s/;function A(e){var A=e.length;while(A--&&t.test(e.charAt(A)));return A}e.exports=A},3738:function(e,t,A){A(1703);var i=A(150),n=A(657),r=A(2012),o="Expected a function",s=Math.max,a=Math.min;function l(e,t,A){var l,c,d,u,h,g,p=0,f=!1,m=!1,B=!0;if("function"!=typeof e)throw new TypeError(o);function w(t){var A=l,i=c;return l=c=void 0,p=t,u=e.apply(i,A),u}function v(e){return p=e,h=setTimeout(b,t),f?w(e):u}function y(e){var A=e-g,i=e-p,n=t-A;return m?a(n,d-i):n}function C(e){var A=e-g,i=e-p;return void 0===g||A>=t||A<0||m&&i>=d}function b(){var e=n();if(C(e))return _(e);h=setTimeout(b,y(e))}function _(e){return h=void 0,B&&l?w(e):(l=c=void 0,u)}function Q(){void 0!==h&&clearTimeout(h),p=0,l=g=c=h=void 0}function U(){return void 0===h?u:_(n())}function F(){var e=n(),A=C(e);if(l=arguments,c=this,g=e,A){if(void 0===h)return v(g);if(m)return clearTimeout(h),h=setTimeout(b,t),w(g)}return void 0===h&&(h=setTimeout(b,t)),u}return t=r(t)||0,i(A)&&(f=!!A.leading,m="maxWait"in A,d=m?s(r(A.maxWait)||0,t):d,B="trailing"in A?!!A.trailing:B),F.cancel=Q,F.flush=U,F}e.exports=l},150:function(e){function t(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=t},4430:function(e){function t(e){return null!=e&&"object"==typeof e}e.exports=t},7691:function(e,t,A){var i=A(6423),n=A(4430),r="[object Symbol]";function o(e){return"symbol"==typeof e||n(e)&&i(e)==r}e.exports=o},657:function(e,t,A){var i=A(9159),n=function(){return i.Date.now()};e.exports=n},9289:function(e,t,A){A(1703);var i=A(3738),n=A(150),r="Expected a function";function o(e,t,A){var o=!0,s=!0;if("function"!=typeof e)throw new TypeError(r);return n(A)&&(o="leading"in A?!!A.leading:o,s="trailing"in A?!!A.trailing:s),i(e,t,{leading:o,maxWait:t,trailing:s})}e.exports=o},2012:function(e,t,A){var i=A(6009),n=A(150),r=A(7691),o=NaN,s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;function d(e){if("number"==typeof e)return e;if(r(e))return o;if(n(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=n(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=i(e);var A=a.test(e);return A||l.test(e)?c(e.slice(2),A?2:8):s.test(e)?o:+e}e.exports=d},7013:function(e,t,A){var i;(function(n){var r=/^\s+/,o=/\s+$/,s=0,a=n.round,l=n.min,c=n.max,d=n.random;function u(e,t){if(e=e||"",t=t||{},e instanceof u)return e;if(!(this instanceof u))return new u(e,t);var A=h(e);this._originalInput=e,this._r=A.r,this._g=A.g,this._b=A.b,this._a=A.a,this._roundA=a(100*this._a)/100,this._format=t.format||A.format,this._gradientType=t.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=A.ok,this._tc_id=s++}function h(e){var t={r:0,g:0,b:0},A=1,i=null,n=null,r=null,o=!1,s=!1;return"string"==typeof e&&(e=X(e)),"object"==typeof e&&(Y(e.r)&&Y(e.g)&&Y(e.b)?(t=g(e.r,e.g,e.b),o=!0,s="%"===String(e.r).substr(-1)?"prgb":"rgb"):Y(e.h)&&Y(e.s)&&Y(e.v)?(i=z(e.s),n=z(e.v),t=B(e.h,i,n),o=!0,s="hsv"):Y(e.h)&&Y(e.s)&&Y(e.l)&&(i=z(e.s),r=z(e.l),t=f(e.h,i,r),o=!0,s="hsl"),e.hasOwnProperty("a")&&(A=e.a)),A=T(A),{ok:o,format:e.format||s,r:l(255,c(t.r,0)),g:l(255,c(t.g,0)),b:l(255,c(t.b,0)),a:A}}function g(e,t,A){return{r:255*N(e,255),g:255*N(t,255),b:255*N(A,255)}}function p(e,t,A){e=N(e,255),t=N(t,255),A=N(A,255);var i,n,r=c(e,t,A),o=l(e,t,A),s=(r+o)/2;if(r==o)i=n=0;else{var a=r-o;switch(n=s>.5?a/(2-r-o):a/(r+o),r){case e:i=(t-A)/a+(t<A?6:0);break;case t:i=(A-e)/a+2;break;case A:i=(e-t)/a+4;break}i/=6}return{h:i,s:n,l:s}}function f(e,t,A){var i,n,r;function o(e,t,A){return A<0&&(A+=1),A>1&&(A-=1),A<1/6?e+6*(t-e)*A:A<.5?t:A<2/3?e+(t-e)*(2/3-A)*6:e}if(e=N(e,360),t=N(t,100),A=N(A,100),0===t)i=n=r=A;else{var s=A<.5?A*(1+t):A+t-A*t,a=2*A-s;i=o(a,s,e+1/3),n=o(a,s,e),r=o(a,s,e-1/3)}return{r:255*i,g:255*n,b:255*r}}function m(e,t,A){e=N(e,255),t=N(t,255),A=N(A,255);var i,n,r=c(e,t,A),o=l(e,t,A),s=r,a=r-o;if(n=0===r?0:a/r,r==o)i=0;else{switch(r){case e:i=(t-A)/a+(t<A?6:0);break;case t:i=(A-e)/a+2;break;case A:i=(e-t)/a+4;break}i/=6}return{h:i,s:n,v:s}}function B(e,t,A){e=6*N(e,360),t=N(t,100),A=N(A,100);var i=n.floor(e),r=e-i,o=A*(1-t),s=A*(1-r*t),a=A*(1-(1-r)*t),l=i%6,c=[A,s,o,o,a,A][l],d=[a,A,A,s,o,o][l],u=[o,o,a,A,A,s][l];return{r:255*c,g:255*d,b:255*u}}function w(e,t,A,i){var n=[G(a(e).toString(16)),G(a(t).toString(16)),G(a(A).toString(16))];return i&&n[0].charAt(0)==n[0].charAt(1)&&n[1].charAt(0)==n[1].charAt(1)&&n[2].charAt(0)==n[2].charAt(1)?n[0].charAt(0)+n[1].charAt(0)+n[2].charAt(0):n.join("")}function v(e,t,A,i,n){var r=[G(a(e).toString(16)),G(a(t).toString(16)),G(a(A).toString(16)),G(j(i))];return n&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)&&r[3].charAt(0)==r[3].charAt(1)?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0)+r[3].charAt(0):r.join("")}function y(e,t,A,i){var n=[G(j(i)),G(a(e).toString(16)),G(a(t).toString(16)),G(a(A).toString(16))];return n.join("")}function C(e,t){t=0===t?0:t||10;var A=u(e).toHsl();return A.s-=t/100,A.s=K(A.s),u(A)}function b(e,t){t=0===t?0:t||10;var A=u(e).toHsl();return A.s+=t/100,A.s=K(A.s),u(A)}function _(e){return u(e).desaturate(100)}function Q(e,t){t=0===t?0:t||10;var A=u(e).toHsl();return A.l+=t/100,A.l=K(A.l),u(A)}function U(e,t){t=0===t?0:t||10;var A=u(e).toRgb();return A.r=c(0,l(255,A.r-a(-t/100*255))),A.g=c(0,l(255,A.g-a(-t/100*255))),A.b=c(0,l(255,A.b-a(-t/100*255))),u(A)}function F(e,t){t=0===t?0:t||10;var A=u(e).toHsl();return A.l-=t/100,A.l=K(A.l),u(A)}function x(e,t){var A=u(e).toHsl(),i=(A.h+t)%360;return A.h=i<0?360+i:i,u(A)}function E(e){var t=u(e).toHsl();return t.h=(t.h+180)%360,u(t)}function k(e){var t=u(e).toHsl(),A=t.h;return[u(e),u({h:(A+120)%360,s:t.s,l:t.l}),u({h:(A+240)%360,s:t.s,l:t.l})]}function I(e){var t=u(e).toHsl(),A=t.h;return[u(e),u({h:(A+90)%360,s:t.s,l:t.l}),u({h:(A+180)%360,s:t.s,l:t.l}),u({h:(A+270)%360,s:t.s,l:t.l})]}function D(e){var t=u(e).toHsl(),A=t.h;return[u(e),u({h:(A+72)%360,s:t.s,l:t.l}),u({h:(A+216)%360,s:t.s,l:t.l})]}function S(e,t,A){t=t||6,A=A||30;var i=u(e).toHsl(),n=360/A,r=[u(e)];for(i.h=(i.h-(n*t>>1)+720)%360;--t;)i.h=(i.h+n)%360,r.push(u(i));return r}function H(e,t){t=t||6;var A=u(e).toHsv(),i=A.h,n=A.s,r=A.v,o=[],s=1/t;while(t--)o.push(u({h:i,s:n,v:r})),r=(r+s)%1;return o}u.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,A,i,r,o,s=this.toRgb();return e=s.r/255,t=s.g/255,A=s.b/255,i=e<=.03928?e/12.92:n.pow((e+.055)/1.055,2.4),r=t<=.03928?t/12.92:n.pow((t+.055)/1.055,2.4),o=A<=.03928?A/12.92:n.pow((A+.055)/1.055,2.4),.2126*i+.7152*r+.0722*o},setAlpha:function(e){return this._a=T(e),this._roundA=a(100*this._a)/100,this},toHsv:function(){var e=m(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=m(this._r,this._g,this._b),t=a(360*e.h),A=a(100*e.s),i=a(100*e.v);return 1==this._a?"hsv("+t+", "+A+"%, "+i+"%)":"hsva("+t+", "+A+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=p(this._r,this._g,this._b),t=a(360*e.h),A=a(100*e.s),i=a(100*e.l);return 1==this._a?"hsl("+t+", "+A+"%, "+i+"%)":"hsla("+t+", "+A+"%, "+i+"%, "+this._roundA+")"},toHex:function(e){return w(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return v(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(100*N(this._r,255))+"%",g:a(100*N(this._g,255))+"%",b:a(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+a(100*N(this._r,255))+"%, "+a(100*N(this._g,255))+"%, "+a(100*N(this._b,255))+"%)":"rgba("+a(100*N(this._r,255))+"%, "+a(100*N(this._g,255))+"%, "+a(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(O[w(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+y(this._r,this._g,this._b,this._a),A=t,i=this._gradientType?"GradientType = 1, ":"";if(e){var n=u(e);A="#"+y(n._r,n._g,n._b,n._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+t+",endColorstr="+A+")"},toString:function(e){var t=!!e;e=e||this._format;var A=!1,i=this._a<1&&this._a>=0,n=!t&&i&&("hex"===e||"hex6"===e||"hex3"===e||"hex4"===e||"hex8"===e||"name"===e);return n?"name"===e&&0===this._a?this.toName():this.toRgbString():("rgb"===e&&(A=this.toRgbString()),"prgb"===e&&(A=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(A=this.toHexString()),"hex3"===e&&(A=this.toHexString(!0)),"hex4"===e&&(A=this.toHex8String(!0)),"hex8"===e&&(A=this.toHex8String()),"name"===e&&(A=this.toName()),"hsl"===e&&(A=this.toHslString()),"hsv"===e&&(A=this.toHsvString()),A||this.toHexString())},clone:function(){return u(this.toString())},_applyModification:function(e,t){var A=e.apply(null,[this].concat([].slice.call(t)));return this._r=A._r,this._g=A._g,this._b=A._b,this.setAlpha(A._a),this},lighten:function(){return this._applyModification(Q,arguments)},brighten:function(){return this._applyModification(U,arguments)},darken:function(){return this._applyModification(F,arguments)},desaturate:function(){return this._applyModification(C,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(_,arguments)},spin:function(){return this._applyModification(x,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(H,arguments)},splitcomplement:function(){return this._applyCombination(D,arguments)},triad:function(){return this._applyCombination(k,arguments)},tetrad:function(){return this._applyCombination(I,arguments)}},u.fromRatio=function(e,t){if("object"==typeof e){var A={};for(var i in e)e.hasOwnProperty(i)&&(A[i]="a"===i?e[i]:z(e[i]));e=A}return u(e,t)},u.equals=function(e,t){return!(!e||!t)&&u(e).toRgbString()==u(t).toRgbString()},u.random=function(){return u.fromRatio({r:d(),g:d(),b:d()})},u.mix=function(e,t,A){A=0===A?0:A||50;var i=u(e).toRgb(),n=u(t).toRgb(),r=A/100,o={r:(n.r-i.r)*r+i.r,g:(n.g-i.g)*r+i.g,b:(n.b-i.b)*r+i.b,a:(n.a-i.a)*r+i.a};return u(o)},u.readability=function(e,t){var A=u(e),i=u(t);return(n.max(A.getLuminance(),i.getLuminance())+.05)/(n.min(A.getLuminance(),i.getLuminance())+.05)},u.isReadable=function(e,t,A){var i,n,r=u.readability(e,t);switch(n=!1,i=J(A),i.level+i.size){case"AAsmall":case"AAAlarge":n=r>=4.5;break;case"AAlarge":n=r>=3;break;case"AAAsmall":n=r>=7;break}return n},u.mostReadable=function(e,t,A){var i,n,r,o,s=null,a=0;A=A||{},n=A.includeFallbackColors,r=A.level,o=A.size;for(var l=0;l<t.length;l++)i=u.readability(e,t[l]),i>a&&(a=i,s=u(t[l]));return u.isReadable(e,s,{level:r,size:o})||!n?s:(A.includeFallbackColors=!1,u.mostReadable(e,["#fff","#000"],A))};var L=u.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",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:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",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:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"f00",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:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},O=u.hexNames=M(L);function M(e){var t={};for(var A in e)e.hasOwnProperty(A)&&(t[e[A]]=A);return t}function T(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function N(e,t){R(e)&&(e="100%");var A=V(e);return e=l(t,c(0,parseFloat(e))),A&&(e=parseInt(e*t,10)/100),n.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function K(e){return l(1,c(0,e))}function P(e){return parseInt(e,16)}function R(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)}function V(e){return"string"===typeof e&&-1!=e.indexOf("%")}function G(e){return 1==e.length?"0"+e:""+e}function z(e){return e<=1&&(e=100*e+"%"),e}function j(e){return n.round(255*parseFloat(e)).toString(16)}function Z(e){return P(e)/255}var W=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",A="(?:"+t+")|(?:"+e+")",i="[\\s|\\(]+("+A+")[,|\\s]+("+A+")[,|\\s]+("+A+")\\s*\\)?",n="[\\s|\\(]+("+A+")[,|\\s]+("+A+")[,|\\s]+("+A+")[,|\\s]+("+A+")\\s*\\)?";return{CSS_UNIT:new RegExp(A),rgb:new RegExp("rgb"+i),rgba:new RegExp("rgba"+n),hsl:new RegExp("hsl"+i),hsla:new RegExp("hsla"+n),hsv:new RegExp("hsv"+i),hsva:new RegExp("hsva"+n),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 Y(e){return!!W.CSS_UNIT.exec(e)}function X(e){e=e.replace(r,"").replace(o,"").toLowerCase();var t,A=!1;if(L[e])e=L[e],A=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=W.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=W.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=W.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=W.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=W.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=W.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=W.hex8.exec(e))?{r:P(t[1]),g:P(t[2]),b:P(t[3]),a:Z(t[4]),format:A?"name":"hex8"}:(t=W.hex6.exec(e))?{r:P(t[1]),g:P(t[2]),b:P(t[3]),format:A?"name":"hex"}:(t=W.hex4.exec(e))?{r:P(t[1]+""+t[1]),g:P(t[2]+""+t[2]),b:P(t[3]+""+t[3]),a:Z(t[4]+""+t[4]),format:A?"name":"hex8"}:!!(t=W.hex3.exec(e))&&{r:P(t[1]+""+t[1]),g:P(t[2]+""+t[2]),b:P(t[3]+""+t[3]),format:A?"name":"hex"}}function J(e){var t,A;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),A=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA"),"small"!==A&&"large"!==A&&(A="small"),{level:t,size:A}}e.exports?e.exports=u:(i=function(){return u}.call(t,A,t,e),void 0===i||(e.exports=i))})(Math)},89:function(e,t){"use strict";t.Z=(e,t)=>{const A=e.__vccOpts||e;for(const[i,n]of t)A[i]=n;return A}},3647:function(e,t,A){var i=A(6095);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=A(7037).Z;n("29397b9c",i,!0,{sourceMap:!1,shadowMode:!1})},325:function(e,t,A){var i=A(6047);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=A(7037).Z;n("479d8be0",i,!0,{sourceMap:!1,shadowMode:!1})},5208:function(e,t,A){var i=A(9481);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=A(7037).Z;n("1e383f72",i,!0,{sourceMap:!1,shadowMode:!1})},1425:function(e,t,A){var i=A(5186);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=A(7037).Z;n("3855edf0",i,!0,{sourceMap:!1,shadowMode:!1})},1902:function(e,t,A){var i=A(3695);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=A(7037).Z;n("2f73e1a8",i,!0,{sourceMap:!1,shadowMode:!1})},3439:function(e,t,A){var i=A(1380);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=A(7037).Z;n("070aa0ef",i,!0,{sourceMap:!1,shadowMode:!1})},8016:function(e,t,A){var i=A(6278);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=A(7037).Z;n("8bcdd408",i,!0,{sourceMap:!1,shadowMode:!1})},193:function(e,t,A){var i=A(3468);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=A(7037).Z;n("17a63672",i,!0,{sourceMap:!1,shadowMode:!1})},1113:function(e,t,A){var i=A(5689);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=A(7037).Z;n("39c50172",i,!0,{sourceMap:!1,shadowMode:!1})},6320:function(e,t,A){var i=A(2410);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=A(7037).Z;n("5c6f2742",i,!0,{sourceMap:!1,shadowMode:!1})},3205:function(e,t,A){var i=A(3142);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=A(7037).Z;n("90803b82",i,!0,{sourceMap:!1,shadowMode:!1})},1979:function(e,t,A){var i=A(7953);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=A(7037).Z;n("418ed5a2",i,!0,{sourceMap:!1,shadowMode:!1})},6547:function(e,t,A){var i=A(3097);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=A(7037).Z;n("1f7c089b",i,!0,{sourceMap:!1,shadowMode:!1})},5233:function(e,t,A){var i=A(4339);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=A(7037).Z;n("491ed8fe",i,!0,{sourceMap:!1,shadowMode:!1})},7037:function(e,t,A){"use strict";function i(e,t){for(var A=[],i={},n=0;n<t.length;n++){var r=t[n],o=r[0],s=r[1],a=r[2],l=r[3],c={id:e+":"+n,css:s,media:a,sourceMap:l};i[o]?i[o].parts.push(c):A.push(i[o]={id:o,parts:[c]})}return A}A.d(t,{Z:function(){return g}});var n="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!n)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var r={},o=n&&(document.head||document.getElementsByTagName("head")[0]),s=null,a=0,l=!1,c=function(){},d=null,u="data-vue-ssr-id",h="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function g(e,t,A,n){l=A,d=n||{};var o=i(e,t);return p(o),function(t){for(var A=[],n=0;n<o.length;n++){var s=o[n],a=r[s.id];a.refs--,A.push(a)}t?(o=i(e,t),p(o)):o=[];for(n=0;n<A.length;n++){a=A[n];if(0===a.refs){for(var l=0;l<a.parts.length;l++)a.parts[l]();delete r[a.id]}}}}function p(e){for(var t=0;t<e.length;t++){var A=e[t],i=r[A.id];if(i){i.refs++;for(var n=0;n<i.parts.length;n++)i.parts[n](A.parts[n]);for(;n<A.parts.length;n++)i.parts.push(m(A.parts[n]));i.parts.length>A.parts.length&&(i.parts.length=A.parts.length)}else{var o=[];for(n=0;n<A.parts.length;n++)o.push(m(A.parts[n]));r[A.id]={id:A.id,refs:1,parts:o}}}}function f(){var e=document.createElement("style");return e.type="text/css",o.appendChild(e),e}function m(e){var t,A,i=document.querySelector("style["+u+'~="'+e.id+'"]');if(i){if(l)return c;i.parentNode.removeChild(i)}if(h){var n=a++;i=s||(s=f()),t=w.bind(null,i,n,!1),A=w.bind(null,i,n,!0)}else i=f(),t=v.bind(null,i),A=function(){i.parentNode.removeChild(i)};return t(e),function(i){if(i){if(i.css===e.css&&i.media===e.media&&i.sourceMap===e.sourceMap)return;t(e=i)}else A()}}var B=function(){var e=[];return function(t,A){return e[t]=A,e.filter(Boolean).join("\n")}}();function w(e,t,A,i){var n=A?"":i.css;if(e.styleSheet)e.styleSheet.cssText=B(t,n);else{var r=document.createTextNode(n),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(r,o[t]):e.appendChild(r)}}function v(e,t){var A=t.css,i=t.media,n=t.sourceMap;if(i&&e.setAttribute("media",i),d.ssrId&&e.setAttribute(u,t.id),n&&(A+="\n/*# sourceURL="+n.sources[0]+" */",A+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),e.styleSheet)e.styleSheet.cssText=A;else{while(e.firstChild)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(A))}}}},i={};function n(e){var A=i[e];if(void 0!==A)return A.exports;var r=i[e]={id:e,exports:{}};return t[e](r,r.exports,n),r.exports}!function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){n.d=function(e,t){for(var A in t)n.o(t,A)&&!n.o(e,A)&&Object.defineProperty(e,A,{enumerable:!0,get:t[A]})}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){n.p=""}();var r={};!function(){"use strict";if(n.r(r),n.d(r,{Alpha:function(){return nA},Checkboard:function(){return tA},Chrome:function(){return MA},ColorMixin:function(){return p},Compact:function(){return v},EditableInput:function(){return V},Grayscale:function(){return E},Hue:function(){return ne},Material:function(){return j},Photoshop:function(){return Qt},Saturation:function(){return Ct},Sketch:function(){return aA},Slider:function(){return ae},Swatches:function(){return Ze},Twitter:function(){return WA},default:function(){return $A},version:function(){return YA}}),"undefined"!==typeof window){var e=window.document.currentScript,t=e&&e.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);t&&(n.p=t[1])}var i={i8:"3.0.6"},o=A(9812);const s={role:"application","aria-label":"Compact color picker",class:"vc-compact"},a={class:"vc-compact-colors",role:"listbox"},l=["aria-label","aria-selected","onClick"],c={class:"vc-compact-dot"};function d(e,t,A,i,n,r){return(0,o.openBlock)(),(0,o.createElementBlock)("div",s,[(0,o.createElementVNode)("ul",a,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e.paletteUpperCase(A.palette),(e=>((0,o.openBlock)(),(0,o.createElementBlock)("li",{role:"option","aria-label":"color:"+e,"aria-selected":e===r.pick,class:(0,o.normalizeClass)(["vc-compact-color-item",{"vc-compact-color-item--white":"#FFFFFF"===e}]),key:e,style:(0,o.normalizeStyle)({background:e}),onClick:t=>r.handlerClick(e)},[(0,o.withDirectives)((0,o.createElementVNode)("div",c,null,512),[[o.vShow,e===r.pick]])],14,l)))),128))])])}var u=n(7013),h=n.n(u);function g(e={},t=0){const A=e&&e.a;let i;i=e&&e.hsl?h()(e.hsl):e&&e.hex&&e.hex.length>0?h()(e.hex):e&&e.hsv?h()(e.hsv):e&&e.rgba?h()(e.rgba):e&&e.rgb?h()(e.rgb):h()(e),!i||void 0!==i._a&&null!==i._a||i.setAlpha(A||1);const n=i.toHsl(),r=i.toHsv();return 0===n.s&&(r.h=n.h=e.h||e.hsl&&e.hsl.h||t||0),{hsl:n,hex:i.toHexString().toUpperCase(),hex8:i.toHex8String().toUpperCase(),rgba:i.toRgb(),hsv:r,oldHue:e.h||t||n.h,source:e.source,a:e.a||i.getAlpha()}}var p={props:["modelValue"],data(){return{val:g(this.modelValue)}},computed:{colors:{get(){return this.val},set(e){this.val=e,this.$emit("update:modelValue",e)}}},watch:{modelValue(e){this.val=g(e)}},methods:{colorChange(e,t){this.oldHue=this.colors.hsl.h,this.colors=g(e,t||this.oldHue)},isValidHex(e){return h()(e).isValid()},simpleCheckForValidColor(e){const t=["r","g","b","a","h","s","l","v"];let A=0,i=0;for(let n=0;n<t.length;n++){const r=t[n];e[r]&&(A++,isNaN(e[r])||i++)}if(A===i)return e},paletteUpperCase(e){return e.map((e=>e.toUpperCase()))},isTransparent(e){return 0===h()(e).getAlpha()}}};const f=["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#CCCCCC","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"];var m={name:"Compact",mixins:[p],props:{palette:{type:Array,default(){return f}}},components:{},computed:{pick(){return this.colors.hex.toUpperCase()}},methods:{handlerClick(e){this.colorChange({hex:e,source:"hex"})}}},B=(n(325),n(89));const w=(0,B.Z)(m,[["render",d]]);var v=w;const y={role:"application","aria-label":"Grayscale color picker",class:"vc-grayscale"},C={class:"vc-grayscale-colors",role:"listbox"},b=["aria-label","aria-selected","onClick"],_={class:"vc-grayscale-dot"};function Q(e,t,A,i,n,r){return(0,o.openBlock)(),(0,o.createElementBlock)("div",y,[(0,o.createElementVNode)("ul",C,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e.paletteUpperCase(A.palette),(e=>((0,o.openBlock)(),(0,o.createElementBlock)("li",{role:"option","aria-label":"Color:"+e,"aria-selected":e===r.pick,key:e,class:(0,o.normalizeClass)(["vc-grayscale-color-item",{"vc-grayscale-color-item--white":"#FFFFFF"==e}]),style:(0,o.normalizeStyle)({background:e}),onClick:t=>r.handlerClick(e)},[(0,o.withDirectives)((0,o.createElementVNode)("div",_,null,512),[[o.vShow,e===r.pick]])],14,b)))),128))])])}const U=["#FFFFFF","#F2F2F2","#E6E6E6","#D9D9D9","#CCCCCC","#BFBFBF","#B3B3B3","#A6A6A6","#999999","#8C8C8C","#808080","#737373","#666666","#595959","#4D4D4D","#404040","#333333","#262626","#0D0D0D","#000000"];var F={name:"Grayscale",mixins:[p],props:{palette:{type:Array,default(){return U}}},components:{},computed:{pick(){return this.colors.hex.toUpperCase()}},methods:{handlerClick(e){this.colorChange({hex:e,source:"hex"})}}};n(5208);const x=(0,B.Z)(F,[["render",Q]]);var E=x;const k={role:"application","aria-label":"Material color picker",class:"vc-material"},I={class:"vc-material-split"},D={class:"vc-material-third"},S={class:"vc-material-third"},H={class:"vc-material-third"};function L(e,t,A,i,n,r){const s=(0,o.resolveComponent)("ed-in");return(0,o.openBlock)(),(0,o.createElementBlock)("div",k,[(0,o.createVNode)(s,{class:"vc-material-hex",label:"hex",modelValue:e.colors.hex,"onUpdate:modelValue":t[0]||(t[0]=t=>e.colors.hex=t),style:(0,o.normalizeStyle)({borderColor:e.colors.hex}),onChange:r.onChange},null,8,["modelValue","style","onChange"]),(0,o.createElementVNode)("div",I,[(0,o.createElementVNode)("div",D,[(0,o.createVNode)(s,{label:"r",modelValue:e.colors.rgba.r,"onUpdate:modelValue":t[1]||(t[1]=t=>e.colors.rgba.r=t),onChange:r.onChange},null,8,["modelValue","onChange"])]),(0,o.createElementVNode)("div",S,[(0,o.createVNode)(s,{label:"g",modelValue:e.colors.rgba.g,"onUpdate:modelValue":t[2]||(t[2]=t=>e.colors.rgba.g=t),onChange:r.onChange},null,8,["modelValue","onChange"])]),(0,o.createElementVNode)("div",H,[(0,o.createVNode)(s,{label:"b",modelValue:e.colors.rgba.b,"onUpdate:modelValue":t[3]||(t[3]=t=>e.colors.rgba.b=t),onChange:r.onChange},null,8,["modelValue","onChange"])])])])}const O={class:"vc-editable-input"},M=["aria-labelledby"],T=["for","id"],N={class:"vc-input__desc"};function K(e,t,A,i,n,r){return(0,o.openBlock)(),(0,o.createElementBlock)("div",O,[(0,o.withDirectives)((0,o.createElementVNode)("input",{"aria-labelledby":r.labelId,class:"vc-input__input","onUpdate:modelValue":t[0]||(t[0]=e=>r.val=e),onKeydown:t[1]||(t[1]=(...e)=>r.handleKeyDown&&r.handleKeyDown(...e)),onInput:t[2]||(t[2]=(...e)=>r.update&&r.update(...e)),ref:"input"},null,40,M),[[o.vModelText,r.val]]),(0,o.createElementVNode)("span",{for:A.label,class:"vc-input__label",id:r.labelId},(0,o.toDisplayString)(r.labelSpanText),9,T),(0,o.createElementVNode)("span",N,(0,o.toDisplayString)(A.desc),1)])}var P={name:"editableInput",props:{label:String,labelText:String,desc:String,modelValue:[String,Number],max:Number,min:Number,arrowOffset:{type:Number,default:1}},computed:{val:{get(){return this.modelValue},set(e){if(!(void 0!==this.max&&+e>this.max))return e;this.$refs.input.value=this.max}},labelId(){return`input__label__${this.label}__${Math.random().toString().slice(2,5)}`},labelSpanText(){return this.labelText||this.label}},methods:{update(e){this.handleChange(e.target.value)},handleChange(e){const t={};t[this.label]=e,(void 0===t.hex&&void 0===t["#"]||e.length>5)&&this.$emit("change",t)},handleKeyDown(e){let t=this.val;const A=Number(t);if(A){const i=this.arrowOffset||1;38===e.keyCode&&(t=A+i,this.handleChange(t),e.preventDefault()),40===e.keyCode&&(t=A-i,this.handleChange(t),e.preventDefault())}}}};n(1979);const R=(0,B.Z)(P,[["render",K]]);var V=R,G={name:"Material",mixins:[p],components:{"ed-in":V},methods:{onChange(e){e&&(e.hex?this.isValidHex(e.hex)&&this.colorChange({hex:e.hex,source:"hex"}):(e.r||e.g||e.b)&&this.colorChange({r:e.r||this.colors.rgba.r,g:e.g||this.colors.rgba.g,b:e.b||this.colors.rgba.b,a:e.a||this.colors.rgba.a,source:"rgba"}))}}};n(1425);const z=(0,B.Z)(G,[["render",L]]);var j=z;const Z={role:"application","aria-label":"Slider color picker",class:"vc-slider"},W={class:"vc-slider-hue-warp"},Y={class:"vc-slider-swatches",role:"group"},X=["data-index","aria-label","onClick"];function J(e,t,A,i,n,r){const s=(0,o.resolveComponent)("hue");return(0,o.openBlock)(),(0,o.createElementBlock)("div",Z,[(0,o.createElementVNode)("div",W,[(0,o.createVNode)(s,{modelValue:e.colors,"onUpdate:modelValue":t[0]||(t[0]=t=>e.colors=t),onChange:r.hueChange},null,8,["modelValue","onChange"])]),(0,o.createElementVNode)("div",Y,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(r.normalizedSwatches,((t,A)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{class:"vc-slider-swatch",key:A,"data-index":A,"aria-label":"color:"+e.colors.hex,role:"button",onClick:e=>r.handleSwClick(A,t)},[(0,o.createElementVNode)("div",{class:(0,o.normalizeClass)(["vc-slider-swatch-picker",{"vc-slider-swatch-picker--active":r.isActive(t,A),"vc-slider-swatch-picker--white":1===t.l}]),style:(0,o.normalizeStyle)({background:"hsl("+e.colors.hsl.h+", "+100*t.s+"%, "+100*t.l+"%)"})},null,6)],8,X)))),128))])])}const $=["aria-valuenow"],q=(0,o.createElementVNode)("div",{class:"vc-hue-picker"},null,-1),ee=[q];function te(e,t,A,i,n,r){return(0,o.openBlock)(),(0,o.createElementBlock)("div",{class:(0,o.normalizeClass)(["vc-hue",r.directionClass])},[(0,o.createElementVNode)("div",{class:"vc-hue-container",role:"slider","aria-valuenow":r.colors.hsl.h,"aria-valuemin":"0","aria-valuemax":"360",ref:"container",onMousedown:t[0]||(t[0]=(...e)=>r.handleMouseDown&&r.handleMouseDown(...e)),onTouchmove:t[1]||(t[1]=(...e)=>r.handleChange&&r.handleChange(...e)),onTouchstart:t[2]||(t[2]=(...e)=>r.handleChange&&r.handleChange(...e))},[(0,o.createElementVNode)("div",{class:"vc-hue-pointer",style:(0,o.normalizeStyle)({top:r.pointerTop,left:r.pointerLeft}),role:"presentation"},ee,4)],40,$)],2)}var Ae={name:"Hue",props:{modelValue:Object,direction:{type:String,default:"horizontal"}},data(){return{oldHue:0,pullDirection:""}},computed:{colors(){const e=this.modelValue.hsl.h;return 0!==e&&e-this.oldHue>0&&(this.pullDirection="right"),0!==e&&e-this.oldHue<0&&(this.pullDirection="left"),this.oldHue=e,this.modelValue},directionClass(){return{"vc-hue--horizontal":"horizontal"===this.direction,"vc-hue--vertical":"vertical"===this.direction}},pointerTop(){return"vertical"===this.direction?0===this.colors.hsl.h&&"right"===this.pullDirection?0:-100*this.colors.hsl.h/360+100+"%":0},pointerLeft(){return"vertical"===this.direction?0:0===this.colors.hsl.h&&"right"===this.pullDirection?"100%":100*this.colors.hsl.h/360+"%"}},methods:{handleChange(e,t){!t&&e.preventDefault();const A=this.$refs.container;if(!A)return;const i=A.clientWidth,n=A.clientHeight,r=A.getBoundingClientRect().left+window.pageXOffset,o=A.getBoundingClientRect().top+window.pageYOffset,s=e.pageX||(e.touches?e.touches[0].pageX:0),a=e.pageY||(e.touches?e.touches[0].pageY:0),l=s-r,c=a-o;let d,u;"vertical"===this.direction?(c<0?d=360:c>n?d=0:(u=-100*c/n+100,d=360*u/100),this.colors.hsl.h!==d&&this.$emit("change",{h:d,s:this.colors.hsl.s,l:this.colors.hsl.l,a:this.colors.hsl.a,source:"hsl"})):(l<0?d=0:l>i?d=360:(u=100*l/i,d=360*u/100),this.colors.hsl.h!==d&&this.$emit("change",{h:d,s:this.colors.hsl.s,l:this.colors.hsl.l,a:this.colors.hsl.a,source:"hsl"}))},handleMouseDown(e){this.handleChange(e,!0),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp(e){this.unbindEventListeners()},unbindEventListeners(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}};n(6547);const ie=(0,B.Z)(Ae,[["render",te]]);var ne=ie;const re=.5;var oe={name:"Slider",mixins:[p],props:{swatches:{type:Array,default(){return[{s:re,l:.8},{s:re,l:.65},{s:re,l:.5},{s:re,l:.35},{s:re,l:.2}]}}},components:{hue:ne},computed:{normalizedSwatches(){const e=this.swatches;return e.map((e=>"object"!==typeof e?{s:re,l:e}:e))}},methods:{isActive(e,t){const A=this.colors.hsl;return 1===A.l&&1===e.l||(0===A.l&&0===e.l||Math.abs(A.l-e.l)<.01&&Math.abs(A.s-e.s)<.01)},hueChange(e){this.colorChange(e)},handleSwClick(e,t){this.colorChange({h:this.colors.hsl.h,s:t.s,l:t.l,source:"hsl"})}}};n(8016);const se=(0,B.Z)(oe,[["render",J]]);var ae=se;const le=["data-pick"],ce={class:"vc-swatches-box",role:"listbox"},de=["aria-label","aria-selected","data-color","onClick"],ue={class:"vc-swatches-pick"},he=(0,o.createElementVNode)("svg",{style:{width:"24px",height:"24px"},viewBox:"0 0 24 24"},[(0,o.createElementVNode)("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})],-1),ge=[he];function pe(e,t,A,i,n,r){return(0,o.openBlock)(),(0,o.createElementBlock)("div",{role:"application","aria-label":"Swatches color picker",class:"vc-swatches","data-pick":r.pick},[(0,o.createElementVNode)("div",ce,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(A.palette,((e,t)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{class:"vc-swatches-color-group",key:t},[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e,(e=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{class:(0,o.normalizeClass)(["vc-swatches-color-it",{"vc-swatches-color--white":"#FFFFFF"===e}]),role:"option","aria-label":"Color:"+e,"aria-selected":r.equal(e),key:e,"data-color":e,style:(0,o.normalizeStyle)({background:e}),onClick:t=>r.handlerClick(e)},[(0,o.withDirectives)((0,o.createElementVNode)("div",ue,ge,512),[[o.vShow,r.equal(e)]])],14,de)))),128))])))),128))])],8,le)}var fe={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},me={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},Be={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},we={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},ve={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},ye={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},Ce={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},be={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},_e={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},Qe={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},Ue={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},Fe={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},xe={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},Ee={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},ke={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},Ie={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},De={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},Se={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121"},He={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},Le={primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",dividers:"rgba(0, 0, 0, 0.12)"},Oe={primary:"rgba(255, 255, 255, 1)",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",dividers:"rgba(255, 255, 255, 0.12)"},Me={active:"rgba(0, 0, 0, 0.54)",inactive:"rgba(0, 0, 0, 0.38)"},Te={active:"rgba(255, 255, 255, 1)",inactive:"rgba(255, 255, 255, 0.5)"},Ne="#ffffff",Ke="#000000",Pe={red:fe,pink:me,purple:Be,deepPurple:we,indigo:ve,blue:ye,lightBlue:Ce,cyan:be,teal:_e,green:Qe,lightGreen:Ue,lime:Fe,yellow:xe,amber:Ee,orange:ke,deepOrange:Ie,brown:De,grey:Se,blueGrey:He,darkText:Le,lightText:Oe,darkIcons:Me,lightIcons:Te,white:Ne,black:Ke};const Re=["red","pink","purple","deepPurple","indigo","blue","lightBlue","cyan","teal","green","lightGreen","lime","yellow","amber","orange","deepOrange","brown","blueGrey","black"],Ve=["900","700","500","300","100"],Ge=(()=>{const e=[];return Re.forEach((t=>{let A=[];"black"===t.toLowerCase()||"white"===t.toLowerCase()?A=A.concat(["#000000","#FFFFFF"]):Ve.forEach((e=>{const i=Pe[t][e];A.push(i.toUpperCase())})),e.push(A)})),e})();var ze={name:"Swatches",mixins:[p],props:{palette:{type:Array,default(){return Ge}}},computed:{pick(){return this.colors.hex}},methods:{equal(e){return e.toLowerCase()===this.colors.hex.toLowerCase()},handlerClick(e){this.colorChange({hex:e,source:"hex"})}}};n(193);const je=(0,B.Z)(ze,[["render",pe]]);var Ze=je;const We={role:"heading",class:"vc-ps-head"},Ye={class:"vc-ps-body"},Xe={class:"vc-ps-saturation-wrap"},Je={class:"vc-ps-hue-wrap"},$e=(0,o.createElementVNode)("div",{class:"vc-ps-hue-pointer"},[(0,o.createElementVNode)("i",{class:"vc-ps-hue-pointer--left"}),(0,o.createElementVNode)("i",{class:"vc-ps-hue-pointer--right"})],-1),qe={class:"vc-ps-previews"},et={class:"vc-ps-previews__label"},tt={class:"vc-ps-previews__swatches"},At=["aria-label"],it=["aria-label"],nt={class:"vc-ps-previews__label"},rt={key:0,class:"vc-ps-actions"},ot=["aria-label"],st=["aria-label"],at={class:"vc-ps-fields"},lt=(0,o.createElementVNode)("div",{class:"vc-ps-fields__divider"},null,-1),ct=(0,o.createElementVNode)("div",{class:"vc-ps-fields__divider"},null,-1);function dt(e,t,A,i,n,r){const s=(0,o.resolveComponent)("saturation"),a=(0,o.resolveComponent)("hue"),l=(0,o.resolveComponent)("ed-in");return(0,o.openBlock)(),(0,o.createElementBlock)("div",{role:"application","aria-label":"PhotoShop color picker",class:(0,o.normalizeClass)(["vc-photoshop",A.disableFields?"vc-photoshop__disable-fields":""])},[(0,o.createElementVNode)("div",We,(0,o.toDisplayString)(A.head),1),(0,o.createElementVNode)("div",Ye,[(0,o.createElementVNode)("div",Xe,[(0,o.createVNode)(s,{modelValue:e.colors,"onUpdate:modelValue":t[0]||(t[0]=t=>e.colors=t),onChange:r.childChange},null,8,["modelValue","onChange"])]),(0,o.createElementVNode)("div",Je,[(0,o.createVNode)(a,{modelValue:e.colors,"onUpdate:modelValue":t[1]||(t[1]=t=>e.colors=t),onChange:r.childChange,direction:"vertical"},{default:(0,o.withCtx)((()=>[$e])),_:1},8,["modelValue","onChange"])]),(0,o.createElementVNode)("div",{class:(0,o.normalizeClass)(["vc-ps-controls",A.disableFields?"vc-ps-controls__disable-fields":""])},[(0,o.createElementVNode)("div",qe,[(0,o.createElementVNode)("div",et,(0,o.toDisplayString)(A.newLabel),1),(0,o.createElementVNode)("div",tt,[(0,o.createElementVNode)("div",{class:"vc-ps-previews__pr-color","aria-label":`New color is ${e.colors.hex}`,style:(0,o.normalizeStyle)({background:e.colors.hex})},null,12,At),(0,o.createElementVNode)("div",{class:"vc-ps-previews__pr-color","aria-label":`Current color is ${n.currentColor}`,style:(0,o.normalizeStyle)({background:n.currentColor}),onClick:t[2]||(t[2]=(...e)=>r.clickCurrentColor&&r.clickCurrentColor(...e))},null,12,it)]),(0,o.createElementVNode)("div",nt,(0,o.toDisplayString)(A.currentLabel),1)]),A.disableFields?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",rt,[(0,o.createElementVNode)("div",{class:"vc-ps-ac-btn",role:"button","aria-label":A.acceptLabel,onClick:t[3]||(t[3]=(...e)=>r.handleAccept&&r.handleAccept(...e))},(0,o.toDisplayString)(A.acceptLabel),9,ot),(0,o.createElementVNode)("div",{class:"vc-ps-ac-btn",role:"button","aria-label":A.cancelLabel,onClick:t[4]||(t[4]=(...e)=>r.handleCancel&&r.handleCancel(...e))},(0,o.toDisplayString)(A.cancelLabel),9,st),(0,o.createElementVNode)("div",at,[(0,o.createVNode)(l,{label:"h",desc:"°",modelValue:r.hsv.h,onChange:r.inputChange},null,8,["modelValue","onChange"]),(0,o.createVNode)(l,{label:"s",desc:"%",modelValue:r.hsv.s,max:100,onChange:r.inputChange},null,8,["modelValue","onChange"]),(0,o.createVNode)(l,{label:"v",desc:"%",modelValue:r.hsv.v,max:100,onChange:r.inputChange},null,8,["modelValue","onChange"]),lt,(0,o.createVNode)(l,{label:"r",modelValue:e.colors.rgba.r,onChange:r.inputChange},null,8,["modelValue","onChange"]),(0,o.createVNode)(l,{label:"g",modelValue:e.colors.rgba.g,onChange:r.inputChange},null,8,["modelValue","onChange"]),(0,o.createVNode)(l,{label:"b",modelValue:e.colors.rgba.b,onChange:r.inputChange},null,8,["modelValue","onChange"]),ct,(0,o.createVNode)(l,{label:"#",class:"vc-ps-fields__hex",modelValue:r.hex,onChange:r.inputChange},null,8,["modelValue","onChange"])]),A.hasResetButton?((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:0,class:"vc-ps-ac-btn","aria-label":"reset",onClick:t[5]||(t[5]=(...e)=>r.handleReset&&r.handleReset(...e))},(0,o.toDisplayString)(A.resetLabel),1)):(0,o.createCommentVNode)("",!0)]))],2)])],2)}const ut=(0,o.createElementVNode)("div",{class:"vc-saturation--white"},null,-1),ht=(0,o.createElementVNode)("div",{class:"vc-saturation--black"},null,-1),gt=(0,o.createElementVNode)("div",{class:"vc-saturation-circle"},null,-1),pt=[gt];function ft(e,t,A,i,n,r){return(0,o.openBlock)(),(0,o.createElementBlock)("div",{class:"vc-saturation",style:(0,o.normalizeStyle)({background:r.bgColor}),ref:"container",onMousedown:t[0]||(t[0]=(...e)=>r.handleMouseDown&&r.handleMouseDown(...e)),onTouchmove:t[1]||(t[1]=(...e)=>r.handleChange&&r.handleChange(...e)),onTouchstart:t[2]||(t[2]=(...e)=>r.handleChange&&r.handleChange(...e))},[ut,ht,(0,o.createElementVNode)("div",{class:"vc-saturation-pointer",style:(0,o.normalizeStyle)({top:r.pointerTop,left:r.pointerLeft})},pt,4)],36)}var mt=n(9428),Bt=n.n(mt),wt=n(9289),vt={name:"Saturation",props:{modelValue:Object},computed:{colors(){return this.modelValue},bgColor(){return`hsl(${this.colors.hsv.h}, 100%, 50%)`},pointerTop(){return-100*this.colors.hsv.v+1+100+"%"},pointerLeft(){return 100*this.colors.hsv.s+"%"}},methods:{throttle:wt(((e,t)=>{e(t)}),20,{leading:!0,trailing:!1}),handleChange(e,t){!t&&e.preventDefault();const A=this.$refs.container;if(!A)return;const i=A.clientWidth,n=A.clientHeight,r=A.getBoundingClientRect().left+window.pageXOffset,o=A.getBoundingClientRect().top+window.pageYOffset,s=e.pageX||(e.touches?e.touches[0].pageX:0),a=e.pageY||(e.touches?e.touches[0].pageY:0),l=Bt()(s-r,0,i),c=Bt()(a-o,0,n),d=l/i,u=Bt()(-c/n+1,0,1);this.throttle(this.onChange,{h:this.colors.hsv.h,s:d,v:u,a:this.colors.hsv.a,source:"hsva"})},onChange(e){this.$emit("change",e)},handleMouseDown(e){window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp(e){this.unbindEventListeners()},unbindEventListeners(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}};n(5233);const yt=(0,B.Z)(vt,[["render",ft]]);var Ct=yt,bt={name:"Photoshop",mixins:[p],props:{head:{type:String,default:"Color Picker"},disableFields:{type:Boolean,default:!1},hasResetButton:{type:Boolean,default:!1},acceptLabel:{type:String,default:"OK"},cancelLabel:{type:String,default:"Cancel"},resetLabel:{type:String,default:"Reset"},newLabel:{type:String,default:"new"},currentLabel:{type:String,default:"current"}},components:{saturation:Ct,hue:ne,"ed-in":V},data(){return{currentColor:"#FFF"}},computed:{hsv(){const e=this.colors.hsv;return{h:e.h.toFixed(),s:(100*e.s).toFixed(),v:(100*e.v).toFixed()}},hex(){const e=this.colors.hex;return e&&e.replace("#","")}},created(){this.currentColor=this.colors.hex},methods:{childChange(e){this.colorChange(e)},inputChange(e){e&&(e["#"]?this.isValidHex(e["#"])&&this.colorChange({hex:e["#"],source:"hex"}):e.r||e.g||e.b||e.a?this.colorChange({r:e.r||this.colors.rgba.r,g:e.g||this.colors.rgba.g,b:e.b||this.colors.rgba.b,a:e.a||this.colors.rgba.a,source:"rgba"}):(e.h||e.s||e.v)&&this.colorChange({h:e.h||this.colors.hsv.h,s:e.s/100||this.colors.hsv.s,v:e.v/100||this.colors.hsv.v,source:"hsv"}))},clickCurrentColor(){this.colorChange({hex:this.currentColor,source:"hex"})},handleAccept(){this.$emit("ok")},handleCancel(){this.$emit("cancel")},handleReset(){this.$emit("reset")}}};n(1902);const _t=(0,B.Z)(bt,[["render",dt]]);var Qt=_t;const Ut={class:"vc-sketch-saturation-wrap"},Ft={class:"vc-sketch-controls"},xt={class:"vc-sketch-sliders"},Et={class:"vc-sketch-hue-wrap"},kt={key:0,class:"vc-sketch-alpha-wrap"},It={class:"vc-sketch-color-wrap"},Dt=["aria-label"],St={key:0,class:"vc-sketch-field"},Ht={class:"vc-sketch-field--double"},Lt={class:"vc-sketch-field--single"},Ot={class:"vc-sketch-field--single"},Mt={class:"vc-sketch-field--single"},Tt={key:0,class:"vc-sketch-field--single"},Nt={class:"vc-sketch-presets",role:"group","aria-label":"A color preset, pick one to set as current color"},Kt=["aria-label","onClick"],Pt=["aria-label","onClick"],Rt={class:"vc-botton-container"};function Vt(e,t,A,i,n,r){const s=(0,o.resolveComponent)("saturation"),a=(0,o.resolveComponent)("hue"),l=(0,o.resolveComponent)("alpha"),c=(0,o.resolveComponent)("checkboard"),d=(0,o.resolveComponent)("ed-in");return n.showView?((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:0,role:"application","aria-label":"Sketch color picker",class:(0,o.normalizeClass)(["vc-sketch",A.disableAlpha?"vc-sketch__disable-alpha":""])},[(0,o.createElementVNode)("div",Ut,[(0,o.createVNode)(s,{modelValue:e.colors,"onUpdate:modelValue":t[0]||(t[0]=t=>e.colors=t),onChange:r.childChange},null,8,["modelValue","onChange"])]),(0,o.createElementVNode)("div",Ft,[(0,o.createElementVNode)("div",xt,[(0,o.createElementVNode)("div",Et,[(0,o.createVNode)(a,{modelValue:e.colors,"onUpdate:modelValue":t[1]||(t[1]=t=>e.colors=t),onChange:r.childChange},null,8,["modelValue","onChange"])]),A.disableAlpha?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",kt,[(0,o.createVNode)(l,{modelValue:e.colors,"onUpdate:modelValue":t[2]||(t[2]=t=>e.colors=t),onChange:r.childChange},null,8,["modelValue","onChange"])]))]),(0,o.createElementVNode)("div",It,[(0,o.createElementVNode)("div",{"aria-label":`Current color is ${r.activeColor}`,class:"vc-sketch-active-color",style:(0,o.normalizeStyle)({background:r.activeColor})},null,12,Dt),(0,o.createVNode)(c)])]),A.disableFields?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",St,[(0,o.createElementVNode)("div",Ht,[(0,o.createVNode)(d,{label:"hex",modelValue:r.hex,onChange:r.inputChange},null,8,["modelValue","onChange"])]),(0,o.createElementVNode)("div",Lt,[(0,o.createVNode)(d,{label:"r",modelValue:e.colors.rgba.r,onChange:r.inputChange},null,8,["modelValue","onChange"])]),(0,o.createElementVNode)("div",Ot,[(0,o.createVNode)(d,{label:"g",modelValue:e.colors.rgba.g,onChange:r.inputChange},null,8,["modelValue","onChange"])]),(0,o.createElementVNode)("div",Mt,[(0,o.createVNode)(d,{label:"b",modelValue:e.colors.rgba.b,onChange:r.inputChange},null,8,["modelValue","onChange"])]),A.disableAlpha?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",Tt,[(0,o.createVNode)(d,{label:"a",modelValue:e.colors.a,"arrow-offset":.01,max:1,onChange:r.inputChange},null,8,["modelValue","arrow-offset","onChange"])]))])),(0,o.createElementVNode)("div",Nt,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(A.presetColors,(t=>((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,null,[e.isTransparent(t)?((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:"else-"+t,"aria-label":"Color:"+t,class:"vc-sketch-presets-color",onClick:e=>r.handlePreset(t)},[(0,o.createVNode)(c)],8,Pt)):((0,o.openBlock)(),(0,o.createElementBlock)("div",{class:"vc-sketch-presets-color","aria-label":"Color:"+t,key:"if-"+t,style:(0,o.normalizeStyle)({background:t}),onClick:e=>r.handlePreset(t)},null,12,Kt))],64)))),256))]),(0,o.createElementVNode)("div",Rt,[(0,o.createElementVNode)("div",{class:"vc-botton-left",onClick:t[3]||(t[3]=(...e)=>r.handleCancel&&r.handleCancel(...e))},"取消"),(0,o.createElementVNode)("div",{class:"vc-botton-right",onClick:t[4]||(t[4]=(...e)=>r.handleConfirm&&r.handleConfirm(...e))},"确定")])],2)):(0,o.createCommentVNode)("",!0)}const Gt={class:"vc-alpha"},zt={class:"vc-alpha-checkboard-wrap"},jt=(0,o.createElementVNode)("div",{class:"vc-alpha-picker"},null,-1),Zt=[jt];function Wt(e,t,A,i,n,r){const s=(0,o.resolveComponent)("checkboard");return(0,o.openBlock)(),(0,o.createElementBlock)("div",Gt,[(0,o.createElementVNode)("div",zt,[(0,o.createVNode)(s)]),(0,o.createElementVNode)("div",{class:"vc-alpha-gradient",style:(0,o.normalizeStyle)({background:r.gradientColor})},null,4),(0,o.createElementVNode)("div",{class:"vc-alpha-container",ref:"container",onMousedown:t[0]||(t[0]=(...e)=>r.handleMouseDown&&r.handleMouseDown(...e)),onTouchmove:t[1]||(t[1]=(...e)=>r.handleChange&&r.handleChange(...e)),onTouchstart:t[2]||(t[2]=(...e)=>r.handleChange&&r.handleChange(...e))},[(0,o.createElementVNode)("div",{class:"vc-alpha-pointer",style:(0,o.normalizeStyle)({left:100*r.colors.a+"%"})},Zt,4)],544)])}function Yt(e,t,A,i,n,r){return(0,o.openBlock)(),(0,o.createElementBlock)("div",{class:"vc-checkerboard",style:(0,o.normalizeStyle)(r.bgStyle)},null,4)}const Xt={};var Jt={name:"Checkboard",props:{size:{type:[Number,String],default:8},white:{type:String,default:"#fff"},grey:{type:String,default:"#e6e6e6"}},computed:{bgStyle(){return{"background-image":"url("+qt(this.white,this.grey,this.size)+")"}}}};function $t(e,t,A){if("undefined"===typeof document)return null;const i=document.createElement("canvas");i.width=i.height=2*A;const n=i.getContext("2d");return n?(n.fillStyle=e,n.fillRect(0,0,i.width,i.height),n.fillStyle=t,n.fillRect(0,0,A,A),n.translate(A,A),n.fillRect(0,0,A,A),i.toDataURL()):null}function qt(e,t,A){const i=e+","+t+","+A;if(Xt[i])return Xt[i];{const n=$t(e,t,A);return Xt[i]=n,n}}n(3205);const eA=(0,B.Z)(Jt,[["render",Yt]]);var tA=eA,AA={name:"Alpha",props:{modelValue:Object,onChange:Function},components:{checkboard:tA},computed:{colors(){return this.modelValue},gradientColor(){const e=this.colors.rgba,t=[e.r,e.g,e.b].join(",");return"linear-gradient(to right, rgba("+t+", 0) 0%, rgba("+t+", 1) 100%)"}},methods:{handleChange(e,t){!t&&e.preventDefault();const A=this.$refs.container;if(!A)return;const i=A.clientWidth,n=A.getBoundingClientRect().left+window.pageXOffset,r=e.pageX||(e.touches?e.touches[0].pageX:0),o=r-n;let s;s=o<0?0:o>i?1:Math.round(100*o/i)/100,this.colors.a!==s&&this.$emit("change",{h:this.colors.hsl.h,s:this.colors.hsl.s,l:this.colors.hsl.l,a:s,source:"rgba"})},handleMouseDown(e){this.handleChange(e,!0),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp(){this.unbindEventListeners()},unbindEventListeners(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}};n(6320);const iA=(0,B.Z)(AA,[["render",Wt]]);var nA=iA;const rA=["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF","rgba(0,0,0,0)"];var oA={name:"Sketch",mixins:[p],components:{saturation:Ct,hue:ne,alpha:nA,"ed-in":V,checkboard:tA},props:{show:{type:Boolean,default(){return!0}},presetColors:{type:Array,default(){return rA}},disableAlpha:{type:Boolean,default:!1},disableFields:{type:Boolean,default:!1},changColor:{type:Function}},watch:{show(e,t){this.showView=e}},data(){return{showView:this.show}},computed:{hex(){let e;return e=this.colors.a<1?this.colors.hex8:this.colors.hex,e.replace("#","")},activeColor(){const e=this.colors.rgba;return"rgba("+[e.r,e.g,e.b,e.a].join(",")+")"}},methods:{handleCancel(){const e={isOk:!1};this.$emit("changButton",e)},handleConfirm(){const e={isOk:!0,activeColor:this.activeColor,hex:this.hex};this.$emit("changButton",e)},handlePreset(e){this.colorChange({hex:e,source:"hex"})},childChange(e){this.colorChange(e)},inputChange(e){e&&(e.hex?this.isValidHex(e.hex)&&this.colorChange({hex:e.hex,source:"hex"}):(e.r||e.g||e.b||e.a)&&this.colorChange({r:e.r||this.colors.rgba.r,g:e.g||this.colors.rgba.g,b:e.b||this.colors.rgba.b,a:e.a||this.colors.rgba.a,source:"rgba"}))}}};n(3439);const sA=(0,B.Z)(oA,[["render",Vt]]);var aA=sA;const lA={class:"vc-chrome-saturation-wrap"},cA={class:"vc-chrome-body"},dA={class:"vc-chrome-controls"},uA={class:"vc-chrome-color-wrap"},hA=["aria-label"],gA={class:"vc-chrome-sliders"},pA={class:"vc-chrome-hue-wrap"},fA={key:0,class:"vc-chrome-alpha-wrap"},mA={key:0,class:"vc-chrome-fields-wrap"},BA={class:"vc-chrome-fields"},wA={class:"vc-chrome-field"},vA={class:"vc-chrome-fields"},yA={class:"vc-chrome-field"},CA={class:"vc-chrome-field"},bA={class:"vc-chrome-field"},_A={key:0,class:"vc-chrome-field"},QA={class:"vc-chrome-fields"},UA={class:"vc-chrome-field"},FA={class:"vc-chrome-field"},xA={class:"vc-chrome-field"},EA={key:0,class:"vc-chrome-field"},kA={class:"vc-chrome-toggle-icon"},IA=(0,o.createElementVNode)("path",{fill:"#333",d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"},null,-1),DA=[IA],SA={class:"vc-chrome-toggle-icon-highlight"};function HA(e,t,A,i,n,r){const s=(0,o.resolveComponent)("saturation"),a=(0,o.resolveComponent)("checkboard"),l=(0,o.resolveComponent)("hue"),c=(0,o.resolveComponent)("alpha"),d=(0,o.resolveComponent)("ed-in");return(0,o.openBlock)(),(0,o.createElementBlock)("div",{role:"application","aria-label":"Chrome color picker",class:(0,o.normalizeClass)(["vc-chrome",A.disableAlpha?"vc-chrome__disable-alpha":""])},[(0,o.createElementVNode)("div",lA,[(0,o.createVNode)(s,{modelValue:e.colors,"onUpdate:modelValue":t[0]||(t[0]=t=>e.colors=t),onChange:r.childChange},null,8,["modelValue","onChange"])]),(0,o.createElementVNode)("div",cA,[(0,o.createElementVNode)("div",dA,[(0,o.createElementVNode)("div",uA,[(0,o.createElementVNode)("div",{"aria-label":`current color is ${e.colors.hex}`,class:"vc-chrome-active-color",style:(0,o.normalizeStyle)({background:r.activeColor})},null,12,hA),A.disableAlpha?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createBlock)(a,{key:0}))]),(0,o.createElementVNode)("div",gA,[(0,o.createElementVNode)("div",pA,[(0,o.createVNode)(l,{modelValue:e.colors,"onUpdate:modelValue":t[1]||(t[1]=t=>e.colors=t),onChange:r.childChange},null,8,["modelValue","onChange"])]),A.disableAlpha?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",fA,[(0,o.createVNode)(c,{modelValue:e.colors,"onUpdate:modelValue":t[2]||(t[2]=t=>e.colors=t),onChange:r.childChange},null,8,["modelValue","onChange"])]))])]),A.disableFields?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",mA,[(0,o.withDirectives)((0,o.createElementVNode)("div",BA,[(0,o.createElementVNode)("div",wA,[r.hasAlpha?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createBlock)(d,{key:0,label:"hex",modelValue:e.colors.hex,onChange:r.inputChange},null,8,["modelValue","onChange"])),r.hasAlpha?((0,o.openBlock)(),(0,o.createBlock)(d,{key:1,label:"hex",modelValue:e.colors.hex8,onChange:r.inputChange},null,8,["modelValue","onChange"])):(0,o.createCommentVNode)("",!0)])],512),[[o.vShow,0===n.fieldsIndex]]),(0,o.withDirectives)((0,o.createElementVNode)("div",vA,[(0,o.createElementVNode)("div",yA,[(0,o.createVNode)(d,{label:"r",modelValue:e.colors.rgba.r,onChange:r.inputChange},null,8,["modelValue","onChange"])]),(0,o.createElementVNode)("div",CA,[(0,o.createVNode)(d,{label:"g",modelValue:e.colors.rgba.g,onChange:r.inputChange},null,8,["modelValue","onChange"])]),(0,o.createElementVNode)("div",bA,[(0,o.createVNode)(d,{label:"b",modelValue:e.colors.rgba.b,onChange:r.inputChange},null,8,["modelValue","onChange"])]),A.disableAlpha?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",_A,[(0,o.createVNode)(d,{label:"a",modelValue:e.colors.a,"arrow-offset":.01,max:1,onChange:r.inputChange},null,8,["modelValue","arrow-offset","onChange"])]))],512),[[o.vShow,1===n.fieldsIndex]]),(0,o.withDirectives)((0,o.createElementVNode)("div",QA,[(0,o.createElementVNode)("div",UA,[(0,o.createVNode)(d,{label:"h",modelValue:r.hsl.h,onChange:r.inputChange},null,8,["modelValue","onChange"])]),(0,o.createElementVNode)("div",FA,[(0,o.createVNode)(d,{label:"s",modelValue:r.hsl.s,onChange:r.inputChange},null,8,["modelValue","onChange"])]),(0,o.createElementVNode)("div",xA,[(0,o.createVNode)(d,{label:"l",modelValue:r.hsl.l,onChange:r.inputChange},null,8,["modelValue","onChange"])]),A.disableAlpha?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",EA,[(0,o.createVNode)(d,{label:"a",modelValue:e.colors.a,"arrow-offset":.01,max:1,onChange:r.inputChange},null,8,["modelValue","arrow-offset","onChange"])]))],512),[[o.vShow,2===n.fieldsIndex]]),(0,o.createElementVNode)("div",{class:"vc-chrome-toggle-btn",role:"button","aria-label":"Change another color definition",onClick:t[6]||(t[6]=(...e)=>r.toggleViews&&r.toggleViews(...e))},[(0,o.createElementVNode)("div",kA,[((0,o.openBlock)(),(0,o.createElementBlock)("svg",{style:{width:"24px",height:"24px"},viewBox:"0 0 24 24",onMouseover:t[3]||(t[3]=(...e)=>r.showHighlight&&r.showHighlight(...e)),onMouseenter:t[4]||(t[4]=(...e)=>r.showHighlight&&r.showHighlight(...e)),onMouseout:t[5]||(t[5]=(...e)=>r.hideHighlight&&r.hideHighlight(...e))},DA,32))]),(0,o.withDirectives)((0,o.createElementVNode)("div",SA,null,512),[[o.vShow,n.highlight]])])]))])],2)}var LA={name:"Chrome",mixins:[p],props:{disableAlpha:{type:Boolean,default:!1},disableFields:{type:Boolean,default:!1}},components:{saturation:Ct,hue:ne,alpha:nA,"ed-in":V,checkboard:tA},data(){return{fieldsIndex:0,highlight:!1}},computed:{hsl(){const{h:e,s:t,l:A}=this.colors.hsl;return{h:e.toFixed(),s:`${(100*t).toFixed()}%`,l:`${(100*A).toFixed()}%`}},activeColor(){const e=this.colors.rgba;return"rgba("+[e.r,e.g,e.b,e.a].join(",")+")"},hasAlpha(){return this.colors.a<1}},methods:{childChange(e){this.colorChange(e)},inputChange(e){if(e)if(e.hex)this.isValidHex(e.hex)&&this.colorChange({hex:e.hex,source:"hex"});else if(e.r||e.g||e.b||e.a)this.colorChange({r:e.r||this.colors.rgba.r,g:e.g||this.colors.rgba.g,b:e.b||this.colors.rgba.b,a:e.a||this.colors.rgba.a,source:"rgba"});else if(e.h||e.s||e.l){const t=e.s?e.s.replace("%","")/100:this.colors.hsl.s,A=e.l?e.l.replace("%","")/100:this.colors.hsl.l;this.colorChange({h:e.h||this.colors.hsl.h,s:t,l:A,source:"hsl"})}},toggleViews(){this.fieldsIndex>=2?this.fieldsIndex=0:this.fieldsIndex++},showHighlight(){this.highlight=!0},hideHighlight(){this.highlight=!1}}};n(3647);const OA=(0,B.Z)(LA,[["render",HA]]);var MA=OA;const TA=(0,o.createElementVNode)("div",{class:"vc-twitter-triangle-shadow"},null,-1),NA=(0,o.createElementVNode)("div",{class:"vc-twitter-triangle"},null,-1),KA={class:"vc-twitter-body"},PA=["onClick"],RA=(0,o.createElementVNode)("div",{class:"vc-twitter-hash"},"#",-1),VA=(0,o.createElementVNode)("div",{class:"vc-twitter-clear"},null,-1);function GA(e,t,A,i,n,r){const s=(0,o.resolveComponent)("editable-input");return(0,o.openBlock)(),(0,o.createElementBlock)("div",{class:(0,o.normalizeClass)(["vc-twitter",{"vc-twitter-hide-triangle ":"hide"===A.triangle,"vc-twitter-top-left-triangle ":"top-left"===A.triangle,"vc-twitter-top-right-triangle ":"top-right"===A.triangle}]),style:(0,o.normalizeStyle)({width:"number"===typeof A.width?`${A.width}px`:A.width})},[TA,NA,(0,o.createElementVNode)("div",KA,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(A.defaultColors,((e,t)=>((0,o.openBlock)(),(0,o.createElementBlock)("span",{class:"vc-twitter-swatch",style:(0,o.normalizeStyle)({background:e,boxShadow:`0 0 4px ${r.equal(e)?e:"transparent"}`}),key:t,onClick:t=>r.handlerClick(e)},null,12,PA)))),128)),RA,(0,o.createVNode)(s,{label:"#",modelValue:r.hex,onChange:r.inputChange},null,8,["modelValue","onChange"]),VA])],6)}const zA=["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"];var jA={name:"Twitter",mixins:[p],components:{editableInput:V},props:{width:{type:[String,Number],default:276},defaultColors:{type:Array,default(){return zA}},triangle:{default:"top-left",validator(e){return["hide","top-left","top-right"].includes(e)}}},computed:{hsv(){const e=this.colors.hsv;return{h:e.h.toFixed(),s:(100*e.s).toFixed(),v:(100*e.v).toFixed()}},hex(){const e=this.colors.hex;return e&&e.replace("#","")}},methods:{equal(e){return e.toLowerCase()===this.colors.hex.toLowerCase()},handlerClick(e){this.colorChange({hex:e,source:"hex"})},inputChange(e){e&&(e["#"]?this.isValidHex(e["#"])&&this.colorChange({hex:e["#"],source:"hex"}):e.r||e.g||e.b||e.a?this.colorChange({r:e.r||this.colors.rgba.r,g:e.g||this.colors.rgba.g,b:e.b||this.colors.rgba.b,a:e.a||this.colors.rgba.a,source:"rgba"}):(e.h||e.s||e.v)&&this.colorChange({h:e.h||this.colors.hsv.h,s:e.s/100||this.colors.hsv.s,v:e.v/100||this.colors.hsv.v,source:"hsv"}))}}};n(1113);const ZA=(0,B.Z)(jA,[["render",GA]]);var WA=ZA;const YA=i.i8,XA={version:YA,Compact:v,Grayscale:E,Twitter:WA,Material:j,Slider:ae,Swatches:Ze,Photoshop:Qt,Sketch:aA,Chrome:MA,Alpha:nA,Checkboard:tA,EditableInput:V,Hue:ne,Saturation:Ct,ColorMixin:p};"object"===typeof process&&"[object process]"===String(process)||(window.VueColor=XA);var JA=XA,$A=JA}(),e.exports=r})()},3162:function(e,t,A){var i,n,r;(function(A,o){n=[],i=o,r="function"===typeof i?i.apply(t,n):i,void 0===r||(e.exports=r)})(0,(function(){"use strict";function t(e,t){return"undefined"==typeof t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}function i(e,t,A){var i=new XMLHttpRequest;i.open("GET",e),i.responseType="blob",i.onload=function(){a(i.response,t,A)},i.onerror=function(){console.error("could not download file")},i.send()}function n(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function r(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(i){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof A.g&&A.g.global===A.g?A.g:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),a=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(e,t,A){var s=o.URL||o.webkitURL,a=document.createElement("a");t=t||e.name||"download",a.download=t,a.rel="noopener","string"==typeof e?(a.href=e,a.origin===location.origin?r(a):n(a.href)?i(e,t,A):r(a,a.target="_blank")):(a.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(a.href)}),4e4),setTimeout((function(){r(a)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,A,o){if(A=A||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,o),A);else if(n(e))i(e,A,o);else{var s=document.createElement("a");s.href=e,s.target="_blank",setTimeout((function(){r(s)}))}}:function(e,t,A,n){if(n=n||open("","_blank"),n&&(n.document.title=n.document.body.innerText="downloading..."),"string"==typeof e)return i(e,t,A);var r="application/octet-stream"===e.type,a=/constructor/i.test(o.HTMLElement)||o.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||r&&a||s)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var e=c.result;e=l?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=e:location=e,n=null},c.readAsDataURL(e)}else{var d=o.URL||o.webkitURL,u=d.createObjectURL(e);n?n.location=u:location.href=u,n=null,setTimeout((function(){d.revokeObjectURL(u)}),4e4)}});o.saveAs=a.saveAs=a,e.exports=a}))},1120:function(e){
|
||
/*!
|
||
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
|
||
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
|
||
* Released under MIT License
|
||
*/
|
||
(function(t,A){e.exports=A()})(0,(function(){"use strict";
|
||
/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */var e=function(t,A){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var A in t)Object.prototype.hasOwnProperty.call(t,A)&&(e[A]=t[A])},e(t,A)};function t(t,A){if("function"!==typeof A&&null!==A)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");function i(){this.constructor=t}e(t,A),t.prototype=null===A?Object.create(A):(i.prototype=A.prototype,new i)}var A=function(){return A=Object.assign||function(e){for(var t,A=1,i=arguments.length;A<i;A++)for(var n in t=arguments[A],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},A.apply(this,arguments)};function i(e,t,A,i){function n(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function o(e){try{a(i.next(e))}catch(zt){r(zt)}}function s(e){try{a(i["throw"](e))}catch(zt){r(zt)}}function a(e){e.done?A(e.value):n(e.value).then(o,s)}a((i=i.apply(e,t||[])).next())}))}function n(e,t){var A,i,n,r,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(e){return function(t){return a([e,t])}}function a(r){if(A)throw new TypeError("Generator is already executing.");while(o)try{if(A=1,i&&(n=2&r[0]?i["return"]:r[0]?i["throw"]||((n=i["return"])&&n.call(i),0):i.next)&&!(n=n.call(i,r[1])).done)return n;switch(i=0,n&&(r=[2&r[0],n.value]),r[0]){case 0:case 1:n=r;break;case 4:return o.label++,{value:r[1],done:!1};case 5:o.label++,i=r[1],r=[0];continue;case 7:r=o.ops.pop(),o.trys.pop();continue;default:if(n=o.trys,!(n=n.length>0&&n[n.length-1])&&(6===r[0]||2===r[0])){o=0;continue}if(3===r[0]&&(!n||r[1]>n[0]&&r[1]<n[3])){o.label=r[1];break}if(6===r[0]&&o.label<n[1]){o.label=n[1],n=r;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(r);break}n[2]&&o.ops.pop(),o.trys.pop();continue}r=t.call(e,o)}catch(zt){r=[6,zt],i=0}finally{A=n=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}}function r(e,t,A){if(A||2===arguments.length)for(var i,n=0,r=t.length;n<r;n++)!i&&n in t||(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||t)}for(var o=function(){function e(e,t,A,i){this.left=e,this.top=t,this.width=A,this.height=i}return e.prototype.add=function(t,A,i,n){return new e(this.left+t,this.top+A,this.width+i,this.height+n)},e.fromClientRect=function(t,A){return new e(A.left+t.windowBounds.left,A.top+t.windowBounds.top,A.width,A.height)},e.fromDOMRectList=function(t,A){var i=Array.from(A).find((function(e){return 0!==e.width}));return i?new e(i.left+t.windowBounds.left,i.top+t.windowBounds.top,i.width,i.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e}(),s=function(e,t){return o.fromClientRect(e,t.getBoundingClientRect())},a=function(e){var t=e.body,A=e.documentElement;if(!t||!A)throw new Error("Unable to get document size");var i=Math.max(Math.max(t.scrollWidth,A.scrollWidth),Math.max(t.offsetWidth,A.offsetWidth),Math.max(t.clientWidth,A.clientWidth)),n=Math.max(Math.max(t.scrollHeight,A.scrollHeight),Math.max(t.offsetHeight,A.offsetHeight),Math.max(t.clientHeight,A.clientHeight));return new o(0,0,i,n)},l=function(e){var t=[],A=0,i=e.length;while(A<i){var n=e.charCodeAt(A++);if(n>=55296&&n<=56319&&A<i){var r=e.charCodeAt(A++);56320===(64512&r)?t.push(((1023&n)<<10)+(1023&r)+65536):(t.push(n),A--)}else t.push(n)}return t},c=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var A=e.length;if(!A)return"";var i=[],n=-1,r="";while(++n<A){var o=e[n];o<=65535?i.push(o):(o-=65536,i.push(55296+(o>>10),o%1024+56320)),(n+1===A||i.length>16384)&&(r+=String.fromCharCode.apply(String,i),i.length=0)}return r},d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u="undefined"===typeof Uint8Array?[]:new Uint8Array(256),h=0;h<d.length;h++)u[d.charCodeAt(h)]=h;for(var g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p="undefined"===typeof Uint8Array?[]:new Uint8Array(256),f=0;f<g.length;f++)p[g.charCodeAt(f)]=f;for(var m=function(e){var t,A,i,n,r,o=.75*e.length,s=e.length,a=0;"="===e[e.length-1]&&(o--,"="===e[e.length-2]&&o--);var l="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint8Array.prototype.slice?new ArrayBuffer(o):new Array(o),c=Array.isArray(l)?l:new Uint8Array(l);for(t=0;t<s;t+=4)A=p[e.charCodeAt(t)],i=p[e.charCodeAt(t+1)],n=p[e.charCodeAt(t+2)],r=p[e.charCodeAt(t+3)],c[a++]=A<<2|i>>4,c[a++]=(15&i)<<4|n>>2,c[a++]=(3&n)<<6|63&r;return l},B=function(e){for(var t=e.length,A=[],i=0;i<t;i+=2)A.push(e[i+1]<<8|e[i]);return A},w=function(e){for(var t=e.length,A=[],i=0;i<t;i+=4)A.push(e[i+3]<<24|e[i+2]<<16|e[i+1]<<8|e[i]);return A},v=5,y=11,C=2,b=y-v,_=65536>>v,Q=1<<v,U=Q-1,F=1024>>v,x=_+F,E=x,k=32,I=E+k,D=65536>>y,S=1<<b,H=S-1,L=function(e,t,A){return e.slice?e.slice(t,A):new Uint16Array(Array.prototype.slice.call(e,t,A))},O=function(e,t,A){return e.slice?e.slice(t,A):new Uint32Array(Array.prototype.slice.call(e,t,A))},M=function(e,t){var A=m(e),i=Array.isArray(A)?w(A):new Uint32Array(A),n=Array.isArray(A)?B(A):new Uint16Array(A),r=24,o=L(n,r/2,i[4]/2),s=2===i[5]?L(n,(r+i[4])/2):O(i,Math.ceil((r+i[4])/4));return new T(i[0],i[1],i[2],i[3],o,s)},T=function(){function e(e,t,A,i,n,r){this.initialValue=e,this.errorValue=t,this.highStart=A,this.highValueIndex=i,this.index=n,this.data=r}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>v],t=(t<<C)+(e&U),this.data[t];if(e<=65535)return t=this.index[_+(e-55296>>v)],t=(t<<C)+(e&U),this.data[t];if(e<this.highStart)return t=I-D+(e>>y),t=this.index[t],t+=e>>v&H,t=this.index[t],t=(t<<C)+(e&U),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),N="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",K="undefined"===typeof Uint8Array?[]:new Uint8Array(256),P=0;P<N.length;P++)K[N.charCodeAt(P)]=P;var R="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",V=50,G=1,z=2,j=3,Z=4,W=5,Y=7,X=8,J=9,$=10,q=11,ee=12,te=13,Ae=14,ie=15,ne=16,re=17,oe=18,se=19,ae=20,le=21,ce=22,de=23,ue=24,he=25,ge=26,pe=27,fe=28,me=29,Be=30,we=31,ve=32,ye=33,Ce=34,be=35,_e=36,Qe=37,Ue=38,Fe=39,xe=40,Ee=41,ke=42,Ie=43,De=[9001,65288],Se="!",He="×",Le="÷",Oe=M(R),Me=[Be,_e],Te=[G,z,j,W],Ne=[$,X],Ke=[pe,ge],Pe=Te.concat(Ne),Re=[Ue,Fe,xe,Ce,be],Ve=[ie,te],Ge=function(e,t){void 0===t&&(t="strict");var A=[],i=[],n=[];return e.forEach((function(e,r){var o=Oe.get(e);if(o>V?(n.push(!0),o-=V):n.push(!1),-1!==["normal","auto","loose"].indexOf(t)&&-1!==[8208,8211,12316,12448].indexOf(e))return i.push(r),A.push(ne);if(o===Z||o===q){if(0===r)return i.push(r),A.push(Be);var s=A[r-1];return-1===Pe.indexOf(s)?(i.push(i[r-1]),A.push(s)):(i.push(r),A.push(Be))}return i.push(r),o===we?A.push("strict"===t?le:Qe):o===ke||o===me?A.push(Be):o===Ie?e>=131072&&e<=196605||e>=196608&&e<=262141?A.push(Qe):A.push(Be):void A.push(o)})),[i,A,n]},ze=function(e,t,A,i){var n=i[A];if(Array.isArray(e)?-1!==e.indexOf(n):e===n){var r=A;while(r<=i.length){r++;var o=i[r];if(o===t)return!0;if(o!==$)break}}if(n===$){r=A;while(r>0){r--;var s=i[r];if(Array.isArray(e)?-1!==e.indexOf(s):e===s){var a=A;while(a<=i.length){a++;o=i[a];if(o===t)return!0;if(o!==$)break}}if(s!==$)break}}return!1},je=function(e,t){var A=e;while(A>=0){var i=t[A];if(i!==$)return i;A--}return 0},Ze=function(e,t,A,i,n){if(0===A[i])return He;var r=i-1;if(Array.isArray(n)&&!0===n[r])return He;var o=r-1,s=r+1,a=t[r],l=o>=0?t[o]:0,c=t[s];if(a===z&&c===j)return He;if(-1!==Te.indexOf(a))return Se;if(-1!==Te.indexOf(c))return He;if(-1!==Ne.indexOf(c))return He;if(je(r,t)===X)return Le;if(Oe.get(e[r])===q)return He;if((a===ve||a===ye)&&Oe.get(e[s])===q)return He;if(a===Y||c===Y)return He;if(a===J)return He;if(-1===[$,te,ie].indexOf(a)&&c===J)return He;if(-1!==[re,oe,se,ue,fe].indexOf(c))return He;if(je(r,t)===ce)return He;if(ze(de,ce,r,t))return He;if(ze([re,oe],le,r,t))return He;if(ze(ee,ee,r,t))return He;if(a===$)return Le;if(a===de||c===de)return He;if(c===ne||a===ne)return Le;if(-1!==[te,ie,le].indexOf(c)||a===Ae)return He;if(l===_e&&-1!==Ve.indexOf(a))return He;if(a===fe&&c===_e)return He;if(c===ae)return He;if(-1!==Me.indexOf(c)&&a===he||-1!==Me.indexOf(a)&&c===he)return He;if(a===pe&&-1!==[Qe,ve,ye].indexOf(c)||-1!==[Qe,ve,ye].indexOf(a)&&c===ge)return He;if(-1!==Me.indexOf(a)&&-1!==Ke.indexOf(c)||-1!==Ke.indexOf(a)&&-1!==Me.indexOf(c))return He;if(-1!==[pe,ge].indexOf(a)&&(c===he||-1!==[ce,ie].indexOf(c)&&t[s+1]===he)||-1!==[ce,ie].indexOf(a)&&c===he||a===he&&-1!==[he,fe,ue].indexOf(c))return He;if(-1!==[he,fe,ue,re,oe].indexOf(c)){var d=r;while(d>=0){var u=t[d];if(u===he)return He;if(-1===[fe,ue].indexOf(u))break;d--}}if(-1!==[pe,ge].indexOf(c)){d=-1!==[re,oe].indexOf(a)?o:r;while(d>=0){u=t[d];if(u===he)return He;if(-1===[fe,ue].indexOf(u))break;d--}}if(Ue===a&&-1!==[Ue,Fe,Ce,be].indexOf(c)||-1!==[Fe,Ce].indexOf(a)&&-1!==[Fe,xe].indexOf(c)||-1!==[xe,be].indexOf(a)&&c===xe)return He;if(-1!==Re.indexOf(a)&&-1!==[ae,ge].indexOf(c)||-1!==Re.indexOf(c)&&a===pe)return He;if(-1!==Me.indexOf(a)&&-1!==Me.indexOf(c))return He;if(a===ue&&-1!==Me.indexOf(c))return He;if(-1!==Me.concat(he).indexOf(a)&&c===ce&&-1===De.indexOf(e[s])||-1!==Me.concat(he).indexOf(c)&&a===oe)return He;if(a===Ee&&c===Ee){var h=A[r],g=1;while(h>0){if(h--,t[h]!==Ee)break;g++}if(g%2!==0)return He}return a===ve&&c===ye?He:Le},We=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var A=Ge(e,t.lineBreak),i=A[0],n=A[1],r=A[2];"break-all"!==t.wordBreak&&"break-word"!==t.wordBreak||(n=n.map((function(e){return-1!==[he,Be,ke].indexOf(e)?Qe:e})));var o="keep-all"===t.wordBreak?r.map((function(t,A){return t&&e[A]>=19968&&e[A]<=40959})):void 0;return[i,n,o]},Ye=function(){function e(e,t,A,i){this.codePoints=e,this.required=t===Se,this.start=A,this.end=i}return e.prototype.slice=function(){return c.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),Xe=function(e,t){var A=l(e),i=We(A,t),n=i[0],r=i[1],o=i[2],s=A.length,a=0,c=0;return{next:function(){if(c>=s)return{done:!0,value:null};var e=He;while(c<s&&(e=Ze(A,r,n,++c,o))===He);if(e!==He||c===s){var t=new Ye(A,e,a,c);return a=c,{value:t,done:!1}}return{done:!0,value:null}}}},Je=1,$e=2,qe=4,et=8,tt=10,At=47,it=92,nt=9,rt=32,ot=34,st=61,at=35,lt=36,ct=37,dt=39,ut=40,ht=41,gt=95,pt=45,ft=33,mt=60,Bt=62,wt=64,vt=91,yt=93,Ct=61,bt=123,_t=63,Qt=125,Ut=124,Ft=126,xt=128,Et=65533,kt=42,It=43,Dt=44,St=58,Ht=59,Lt=46,Ot=0,Mt=8,Tt=11,Nt=14,Kt=31,Pt=127,Rt=-1,Vt=48,Gt=97,zt=101,jt=102,Zt=117,Wt=122,Yt=65,Xt=69,Jt=70,$t=85,qt=90,eA=function(e){return e>=Vt&&e<=57},tA=function(e){return e>=55296&&e<=57343},AA=function(e){return eA(e)||e>=Yt&&e<=Jt||e>=Gt&&e<=jt},iA=function(e){return e>=Gt&&e<=Wt},nA=function(e){return e>=Yt&&e<=qt},rA=function(e){return iA(e)||nA(e)},oA=function(e){return e>=xt},sA=function(e){return e===tt||e===nt||e===rt},aA=function(e){return rA(e)||oA(e)||e===gt},lA=function(e){return aA(e)||eA(e)||e===pt},cA=function(e){return e>=Ot&&e<=Mt||e===Tt||e>=Nt&&e<=Kt||e===Pt},dA=function(e,t){return e===it&&t!==tt},uA=function(e,t,A){return e===pt?aA(t)||dA(t,A):!!aA(e)||!(e!==it||!dA(e,t))},hA=function(e,t,A){return e===It||e===pt?!!eA(t)||t===Lt&&eA(A):eA(e===Lt?t:e)},gA=function(e){var t=0,A=1;e[t]!==It&&e[t]!==pt||(e[t]===pt&&(A=-1),t++);var i=[];while(eA(e[t]))i.push(e[t++]);var n=i.length?parseInt(c.apply(void 0,i),10):0;e[t]===Lt&&t++;var r=[];while(eA(e[t]))r.push(e[t++]);var o=r.length,s=o?parseInt(c.apply(void 0,r),10):0;e[t]!==Xt&&e[t]!==zt||t++;var a=1;e[t]!==It&&e[t]!==pt||(e[t]===pt&&(a=-1),t++);var l=[];while(eA(e[t]))l.push(e[t++]);var d=l.length?parseInt(c.apply(void 0,l),10):0;return A*(n+s*Math.pow(10,-o))*Math.pow(10,a*d)},pA={type:2},fA={type:3},mA={type:4},BA={type:13},wA={type:8},vA={type:21},yA={type:9},CA={type:10},bA={type:11},_A={type:12},QA={type:14},UA={type:23},FA={type:1},xA={type:25},EA={type:24},kA={type:26},IA={type:27},DA={type:28},SA={type:29},HA={type:31},LA={type:32},OA=function(){function e(){this._value=[]}return e.prototype.write=function(e){this._value=this._value.concat(l(e))},e.prototype.read=function(){var e=[],t=this.consumeToken();while(t!==LA)e.push(t),t=this.consumeToken();return e},e.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case ot:return this.consumeStringToken(ot);case at:var t=this.peekCodePoint(0),A=this.peekCodePoint(1),i=this.peekCodePoint(2);if(lA(t)||dA(A,i)){var n=uA(t,A,i)?$e:Je,r=this.consumeName();return{type:5,value:r,flags:n}}break;case lt:if(this.peekCodePoint(0)===st)return this.consumeCodePoint(),BA;break;case dt:return this.consumeStringToken(dt);case ut:return pA;case ht:return fA;case kt:if(this.peekCodePoint(0)===st)return this.consumeCodePoint(),QA;break;case It:if(hA(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case Dt:return mA;case pt:var o=e,s=this.peekCodePoint(0),a=this.peekCodePoint(1);if(hA(o,s,a))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(uA(o,s,a))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(s===pt&&a===Bt)return this.consumeCodePoint(),this.consumeCodePoint(),EA;break;case Lt:if(hA(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case At:if(this.peekCodePoint(0)===kt){this.consumeCodePoint();while(1){var l=this.consumeCodePoint();if(l===kt&&(l=this.consumeCodePoint(),l===At))return this.consumeToken();if(l===Rt)return this.consumeToken()}}break;case St:return kA;case Ht:return IA;case mt:if(this.peekCodePoint(0)===ft&&this.peekCodePoint(1)===pt&&this.peekCodePoint(2)===pt)return this.consumeCodePoint(),this.consumeCodePoint(),xA;break;case wt:var d=this.peekCodePoint(0),u=this.peekCodePoint(1),h=this.peekCodePoint(2);if(uA(d,u,h)){r=this.consumeName();return{type:7,value:r}}break;case vt:return DA;case it:if(dA(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case yt:return SA;case Ct:if(this.peekCodePoint(0)===st)return this.consumeCodePoint(),wA;break;case bt:return bA;case Qt:return _A;case Zt:case $t:var g=this.peekCodePoint(0),p=this.peekCodePoint(1);return g!==It||!AA(p)&&p!==_t||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case Ut:if(this.peekCodePoint(0)===st)return this.consumeCodePoint(),yA;if(this.peekCodePoint(0)===Ut)return this.consumeCodePoint(),vA;break;case Ft:if(this.peekCodePoint(0)===st)return this.consumeCodePoint(),CA;break;case Rt:return LA}return sA(e)?(this.consumeWhiteSpace(),HA):eA(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):aA(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:c(e)}},e.prototype.consumeCodePoint=function(){var e=this._value.shift();return"undefined"===typeof e?-1:e},e.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},e.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},e.prototype.consumeUnicodeRangeToken=function(){var e=[],t=this.consumeCodePoint();while(AA(t)&&e.length<6)e.push(t),t=this.consumeCodePoint();var A=!1;while(t===_t&&e.length<6)e.push(t),t=this.consumeCodePoint(),A=!0;if(A){var i=parseInt(c.apply(void 0,e.map((function(e){return e===_t?Vt:e}))),16),n=parseInt(c.apply(void 0,e.map((function(e){return e===_t?Jt:e}))),16);return{type:30,start:i,end:n}}var r=parseInt(c.apply(void 0,e),16);if(this.peekCodePoint(0)===pt&&AA(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();var o=[];while(AA(t)&&o.length<6)o.push(t),t=this.consumeCodePoint();n=parseInt(c.apply(void 0,o),16);return{type:30,start:r,end:n}}return{type:30,start:r,end:r}},e.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return"url"===e.toLowerCase()&&this.peekCodePoint(0)===ut?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===ut?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},e.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Rt)return{type:22,value:""};var t=this.peekCodePoint(0);if(t===dt||t===ot){var A=this.consumeStringToken(this.consumeCodePoint());return 0===A.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Rt||this.peekCodePoint(0)===ht)?(this.consumeCodePoint(),{type:22,value:A.value}):(this.consumeBadUrlRemnants(),UA)}while(1){var i=this.consumeCodePoint();if(i===Rt||i===ht)return{type:22,value:c.apply(void 0,e)};if(sA(i))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Rt||this.peekCodePoint(0)===ht?(this.consumeCodePoint(),{type:22,value:c.apply(void 0,e)}):(this.consumeBadUrlRemnants(),UA);if(i===ot||i===dt||i===ut||cA(i))return this.consumeBadUrlRemnants(),UA;if(i===it){if(!dA(i,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),UA;e.push(this.consumeEscapedCodePoint())}else e.push(i)}},e.prototype.consumeWhiteSpace=function(){while(sA(this.peekCodePoint(0)))this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){while(1){var e=this.consumeCodePoint();if(e===ht||e===Rt)return;dA(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(e){var t=5e4,A="";while(e>0){var i=Math.min(t,e);A+=c.apply(void 0,this._value.splice(0,i)),e-=i}return this._value.shift(),A},e.prototype.consumeStringToken=function(e){var t="",A=0;do{var i=this._value[A];if(i===Rt||void 0===i||i===e)return t+=this.consumeStringSlice(A),{type:0,value:t};if(i===tt)return this._value.splice(0,A),FA;if(i===it){var n=this._value[A+1];n!==Rt&&void 0!==n&&(n===tt?(t+=this.consumeStringSlice(A),A=-1,this._value.shift()):dA(i,n)&&(t+=this.consumeStringSlice(A),t+=c(this.consumeEscapedCodePoint()),A=-1))}A++}while(1)},e.prototype.consumeNumber=function(){var e=[],t=qe,A=this.peekCodePoint(0);A!==It&&A!==pt||e.push(this.consumeCodePoint());while(eA(this.peekCodePoint(0)))e.push(this.consumeCodePoint());A=this.peekCodePoint(0);var i=this.peekCodePoint(1);if(A===Lt&&eA(i)){e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=et;while(eA(this.peekCodePoint(0)))e.push(this.consumeCodePoint())}A=this.peekCodePoint(0),i=this.peekCodePoint(1);var n=this.peekCodePoint(2);if((A===Xt||A===zt)&&((i===It||i===pt)&&eA(n)||eA(i))){e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=et;while(eA(this.peekCodePoint(0)))e.push(this.consumeCodePoint())}return[gA(e),t]},e.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],A=e[1],i=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(uA(i,n,r)){var o=this.consumeName();return{type:15,number:t,flags:A,unit:o}}return i===ct?(this.consumeCodePoint(),{type:16,number:t,flags:A}):{type:17,number:t,flags:A}},e.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(AA(e)){var t=c(e);while(AA(this.peekCodePoint(0))&&t.length<6)t+=c(this.consumeCodePoint());sA(this.peekCodePoint(0))&&this.consumeCodePoint();var A=parseInt(t,16);return 0===A||tA(A)||A>1114111?Et:A}return e===Rt?Et:e},e.prototype.consumeName=function(){var e="";while(1){var t=this.consumeCodePoint();if(lA(t))e+=c(t);else{if(!dA(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),e;e+=c(this.consumeEscapedCodePoint())}}},e}(),MA=function(){function e(e){this._tokens=e}return e.create=function(t){var A=new OA;return A.write(t),new e(A.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){var e=this.consumeToken();while(31===e.type)e=this.consumeToken();if(32===e.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do{e=this.consumeToken()}while(31===e.type);if(32===e.type)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){var e=[];while(1){var t=this.consumeComponentValue();if(32===t.type)return e;e.push(t),e.push()}},e.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},e.prototype.consumeSimpleBlock=function(e){var t={type:e,values:[]},A=this.consumeToken();while(1){if(32===A.type||jA(A,e))return t;this.reconsumeToken(A),t.values.push(this.consumeComponentValue()),A=this.consumeToken()}},e.prototype.consumeFunction=function(e){var t={name:e.value,values:[],type:18};while(1){var A=this.consumeToken();if(32===A.type||3===A.type)return t;this.reconsumeToken(A),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var e=this._tokens.shift();return"undefined"===typeof e?LA:e},e.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},e}(),TA=function(e){return 15===e.type},NA=function(e){return 17===e.type},KA=function(e){return 20===e.type},PA=function(e){return 0===e.type},RA=function(e,t){return KA(e)&&e.value===t},VA=function(e){return 31!==e.type},GA=function(e){return 31!==e.type&&4!==e.type},zA=function(e){var t=[],A=[];return e.forEach((function(e){if(4===e.type){if(0===A.length)throw new Error("Error parsing function args, zero tokens for arg");return t.push(A),void(A=[])}31!==e.type&&A.push(e)})),A.length&&t.push(A),t},jA=function(e,t){return 11===t&&12===e.type||(28===t&&29===e.type||2===t&&3===e.type)},ZA=function(e){return 17===e.type||15===e.type},WA=function(e){return 16===e.type||ZA(e)},YA=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},XA={type:17,number:0,flags:qe},JA={type:16,number:50,flags:qe},$A={type:16,number:100,flags:qe},qA=function(e,t,A){var i=e[0],n=e[1];return[ei(i,t),ei("undefined"!==typeof n?n:i,A)]},ei=function(e,t){if(16===e.type)return e.number/100*t;if(TA(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number},ti="deg",Ai="grad",ii="rad",ni="turn",ri={name:"angle",parse:function(e,t){if(15===t.type)switch(t.unit){case ti:return Math.PI*t.number/180;case Ai:return Math.PI/200*t.number;case ii:return t.number;case ni:return 2*Math.PI*t.number}throw new Error("Unsupported angle type")}},oi=function(e){return 15===e.type&&(e.unit===ti||e.unit===Ai||e.unit===ii||e.unit===ni)},si=function(e){var t=e.filter(KA).map((function(e){return e.value})).join(" ");switch(t){case"to bottom right":case"to right bottom":case"left top":case"top left":return[XA,XA];case"to top":case"bottom":return ai(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[XA,$A];case"to right":case"left":return ai(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[$A,$A];case"to bottom":case"top":return ai(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[$A,XA];case"to left":case"right":return ai(270)}return 0},ai=function(e){return Math.PI*e/180},li={name:"color",parse:function(e,t){if(18===t.type){var A=mi[t.name];if("undefined"===typeof A)throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return A(e,t.values)}if(5===t.type){if(3===t.value.length){var i=t.value.substring(0,1),n=t.value.substring(1,2),r=t.value.substring(2,3);return ui(parseInt(i+i,16),parseInt(n+n,16),parseInt(r+r,16),1)}if(4===t.value.length){i=t.value.substring(0,1),n=t.value.substring(1,2),r=t.value.substring(2,3);var o=t.value.substring(3,4);return ui(parseInt(i+i,16),parseInt(n+n,16),parseInt(r+r,16),parseInt(o+o,16)/255)}if(6===t.value.length){i=t.value.substring(0,2),n=t.value.substring(2,4),r=t.value.substring(4,6);return ui(parseInt(i,16),parseInt(n,16),parseInt(r,16),1)}if(8===t.value.length){i=t.value.substring(0,2),n=t.value.substring(2,4),r=t.value.substring(4,6),o=t.value.substring(6,8);return ui(parseInt(i,16),parseInt(n,16),parseInt(r,16),parseInt(o,16)/255)}}if(20===t.type){var s=wi[t.value.toUpperCase()];if("undefined"!==typeof s)return s}return wi.TRANSPARENT}},ci=function(e){return 0===(255&e)},di=function(e){var t=255&e,A=255&e>>8,i=255&e>>16,n=255&e>>24;return t<255?"rgba("+n+","+i+","+A+","+t/255+")":"rgb("+n+","+i+","+A+")"},ui=function(e,t,A,i){return(e<<24|t<<16|A<<8|Math.round(255*i)<<0)>>>0},hi=function(e,t){if(17===e.type)return e.number;if(16===e.type){var A=3===t?1:255;return 3===t?e.number/100*A:Math.round(e.number/100*A)}return 0},gi=function(e,t){var A=t.filter(GA);if(3===A.length){var i=A.map(hi),n=i[0],r=i[1],o=i[2];return ui(n,r,o,1)}if(4===A.length){var s=A.map(hi),a=(n=s[0],r=s[1],o=s[2],s[3]);return ui(n,r,o,a)}return 0};function pi(e,t,A){return A<0&&(A+=1),A>=1&&(A-=1),A<1/6?(t-e)*A*6+e:A<.5?t:A<2/3?6*(t-e)*(2/3-A)+e:e}var fi=function(e,t){var A=t.filter(GA),i=A[0],n=A[1],r=A[2],o=A[3],s=(17===i.type?ai(i.number):ri.parse(e,i))/(2*Math.PI),a=WA(n)?n.number/100:0,l=WA(r)?r.number/100:0,c="undefined"!==typeof o&&WA(o)?ei(o,1):1;if(0===a)return ui(255*l,255*l,255*l,1);var d=l<=.5?l*(a+1):l+a-l*a,u=2*l-d,h=pi(u,d,s+1/3),g=pi(u,d,s),p=pi(u,d,s-1/3);return ui(255*h,255*g,255*p,c)},mi={hsl:fi,hsla:fi,rgb:gi,rgba:gi},Bi=function(e,t){return li.parse(e,MA.create(t).parseComponentValue())},wi={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},vi={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map((function(e){if(KA(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},yi={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ci=function(e,t){var A=li.parse(e,t[0]),i=t[1];return i&&WA(i)?{color:A,stop:i}:{color:A,stop:null}},bi=function(e,t){var A=e[0],i=e[e.length-1];null===A.stop&&(A.stop=XA),null===i.stop&&(i.stop=$A);for(var n=[],r=0,o=0;o<e.length;o++){var s=e[o].stop;if(null!==s){var a=ei(s,t);a>r?n.push(a):n.push(r),r=a}else n.push(null)}var l=null;for(o=0;o<n.length;o++){var c=n[o];if(null===c)null===l&&(l=o);else if(null!==l){for(var d=o-l,u=n[l-1],h=(c-u)/(d+1),g=1;g<=d;g++)n[l+g-1]=h*g;l=null}}return e.map((function(e,A){var i=e.color;return{color:i,stop:Math.max(Math.min(1,n[A]/t),0)}}))},_i=function(e,t,A){var i=t/2,n=A/2,r=ei(e[0],t)-i,o=n-ei(e[1],A);return(Math.atan2(o,r)+2*Math.PI)%(2*Math.PI)},Qi=function(e,t,A){var i="number"===typeof e?e:_i(e,t,A),n=Math.abs(t*Math.sin(i))+Math.abs(A*Math.cos(i)),r=t/2,o=A/2,s=n/2,a=Math.sin(i-Math.PI/2)*s,l=Math.cos(i-Math.PI/2)*s;return[n,r-l,r+l,o-a,o+a]},Ui=function(e,t){return Math.sqrt(e*e+t*t)},Fi=function(e,t,A,i,n){var r=[[0,0],[0,t],[e,0],[e,t]];return r.reduce((function(e,t){var r=t[0],o=t[1],s=Ui(A-r,i-o);return(n?s<e.optimumDistance:s>e.optimumDistance)?{optimumCorner:t,optimumDistance:s}:e}),{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},xi=function(e,t,A,i,n){var r=0,o=0;switch(e.size){case 0:0===e.shape?r=o=Math.min(Math.abs(t),Math.abs(t-i),Math.abs(A),Math.abs(A-n)):1===e.shape&&(r=Math.min(Math.abs(t),Math.abs(t-i)),o=Math.min(Math.abs(A),Math.abs(A-n)));break;case 2:if(0===e.shape)r=o=Math.min(Ui(t,A),Ui(t,A-n),Ui(t-i,A),Ui(t-i,A-n));else if(1===e.shape){var s=Math.min(Math.abs(A),Math.abs(A-n))/Math.min(Math.abs(t),Math.abs(t-i)),a=Fi(i,n,t,A,!0),l=a[0],c=a[1];r=Ui(l-t,(c-A)/s),o=s*r}break;case 1:0===e.shape?r=o=Math.max(Math.abs(t),Math.abs(t-i),Math.abs(A),Math.abs(A-n)):1===e.shape&&(r=Math.max(Math.abs(t),Math.abs(t-i)),o=Math.max(Math.abs(A),Math.abs(A-n)));break;case 3:if(0===e.shape)r=o=Math.max(Ui(t,A),Ui(t,A-n),Ui(t-i,A),Ui(t-i,A-n));else if(1===e.shape){s=Math.max(Math.abs(A),Math.abs(A-n))/Math.max(Math.abs(t),Math.abs(t-i));var d=Fi(i,n,t,A,!1);l=d[0],c=d[1];r=Ui(l-t,(c-A)/s),o=s*r}break}return Array.isArray(e.size)&&(r=ei(e.size[0],i),o=2===e.size.length?ei(e.size[1],n):r),[r,o]},Ei=function(e,t){var A=ai(180),i=[];return zA(t).forEach((function(t,n){if(0===n){var r=t[0];if(20===r.type&&"to"===r.value)return void(A=si(t));if(oi(r))return void(A=ri.parse(e,r))}var o=Ci(e,t);i.push(o)})),{angle:A,stops:i,type:1}},ki=function(e,t){var A=ai(180),i=[];return zA(t).forEach((function(t,n){if(0===n){var r=t[0];if(20===r.type&&-1!==["top","left","right","bottom"].indexOf(r.value))return void(A=si(t));if(oi(r))return void(A=(ri.parse(e,r)+ai(270))%ai(360))}var o=Ci(e,t);i.push(o)})),{angle:A,stops:i,type:1}},Ii=function(e,t){var A=ai(180),i=[],n=1,r=0,o=3,s=[];return zA(t).forEach((function(t,A){var r=t[0];if(0===A){if(KA(r)&&"linear"===r.value)return void(n=1);if(KA(r)&&"radial"===r.value)return void(n=2)}if(18===r.type)if("from"===r.name){var o=li.parse(e,r.values[0]);i.push({stop:XA,color:o})}else if("to"===r.name){o=li.parse(e,r.values[0]);i.push({stop:$A,color:o})}else if("color-stop"===r.name){var s=r.values.filter(GA);if(2===s.length){o=li.parse(e,s[1]);var a=s[0];NA(a)&&i.push({stop:{type:16,number:100*a.number,flags:a.flags},color:o})}}})),1===n?{angle:(A+ai(180))%ai(360),stops:i,type:n}:{size:o,shape:r,stops:i,position:s,type:n}},Di="closest-side",Si="farthest-side",Hi="closest-corner",Li="farthest-corner",Oi="circle",Mi="ellipse",Ti="cover",Ni="contain",Ki=function(e,t){var A=0,i=3,n=[],r=[];return zA(t).forEach((function(t,o){var s=!0;if(0===o){var a=!1;s=t.reduce((function(e,t){if(a)if(KA(t))switch(t.value){case"center":return r.push(JA),e;case"top":case"left":return r.push(XA),e;case"right":case"bottom":return r.push($A),e}else(WA(t)||ZA(t))&&r.push(t);else if(KA(t))switch(t.value){case Oi:return A=0,!1;case Mi:return A=1,!1;case"at":return a=!0,!1;case Di:return i=0,!1;case Ti:case Si:return i=1,!1;case Ni:case Hi:return i=2,!1;case Li:return i=3,!1}else if(ZA(t)||WA(t))return Array.isArray(i)||(i=[]),i.push(t),!1;return e}),s)}if(s){var l=Ci(e,t);n.push(l)}})),{size:i,shape:A,stops:n,position:r,type:2}},Pi=function(e,t){var A=0,i=3,n=[],r=[];return zA(t).forEach((function(t,o){var s=!0;if(0===o?s=t.reduce((function(e,t){if(KA(t))switch(t.value){case"center":return r.push(JA),!1;case"top":case"left":return r.push(XA),!1;case"right":case"bottom":return r.push($A),!1}else if(WA(t)||ZA(t))return r.push(t),!1;return e}),s):1===o&&(s=t.reduce((function(e,t){if(KA(t))switch(t.value){case Oi:return A=0,!1;case Mi:return A=1,!1;case Ni:case Di:return i=0,!1;case Si:return i=1,!1;case Hi:return i=2,!1;case Ti:case Li:return i=3,!1}else if(ZA(t)||WA(t))return Array.isArray(i)||(i=[]),i.push(t),!1;return e}),s)),s){var a=Ci(e,t);n.push(a)}})),{size:i,shape:A,stops:n,position:r,type:2}},Ri=function(e){return 1===e.type},Vi=function(e){return 2===e.type},Gi={name:"image",parse:function(e,t){if(22===t.type){var A={url:t.value,type:0};return e.cache.addImage(t.value),A}if(18===t.type){var i=Zi[t.name];if("undefined"===typeof i)throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return i(e,t.values)}throw new Error("Unsupported image type "+t.type)}};function zi(e){return!(20===e.type&&"none"===e.value)&&(18!==e.type||!!Zi[e.name])}var ji,Zi={"linear-gradient":Ei,"-moz-linear-gradient":ki,"-ms-linear-gradient":ki,"-o-linear-gradient":ki,"-webkit-linear-gradient":ki,"radial-gradient":Ki,"-moz-radial-gradient":Pi,"-ms-radial-gradient":Pi,"-o-radial-gradient":Pi,"-webkit-radial-gradient":Pi,"-webkit-gradient":Ii},Wi={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(0===t.length)return[];var A=t[0];return 20===A.type&&"none"===A.value?[]:t.filter((function(e){return GA(e)&&zi(e)})).map((function(t){return Gi.parse(e,t)}))}},Yi={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map((function(e){if(KA(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Xi={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,t){return zA(t).map((function(e){return e.filter(WA)})).map(YA)}},Ji={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,t){return zA(t).map((function(e){return e.filter(KA).map((function(e){return e.value})).join(" ")})).map($i)}},$i=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}};(function(e){e["AUTO"]="auto",e["CONTAIN"]="contain",e["COVER"]="cover"})(ji||(ji={}));var qi,en={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,t){return zA(t).map((function(e){return e.filter(tn)}))}},tn=function(e){return KA(e)||WA(e)},An=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},nn=An("top"),rn=An("right"),on=An("bottom"),sn=An("left"),an=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return YA(t.filter(WA))}}},ln=an("top-left"),cn=an("top-right"),dn=an("bottom-right"),un=an("bottom-left"),hn=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},gn=hn("top"),pn=hn("right"),fn=hn("bottom"),mn=hn("left"),Bn=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return TA(t)?t.number:0}}},wn=Bn("top"),vn=Bn("right"),yn=Bn("bottom"),Cn=Bn("left"),bn={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},_n={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,t){switch(t){case"rtl":return 1;case"ltr":default:return 0}}},Qn={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,t){return t.filter(KA).reduce((function(e,t){return e|Un(t.value)}),0)}},Un=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Fn={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},xn={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,t){return 20===t.type&&"normal"===t.value?0:17===t.type||15===t.type?t.number:0}};(function(e){e["NORMAL"]="normal",e["STRICT"]="strict"})(qi||(qi={}));var En,kn={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"strict":return qi.STRICT;case"normal":default:return qi.NORMAL}}},In={name:"line-height",initialValue:"normal",prefix:!1,type:4},Dn=function(e,t){return KA(e)&&"normal"===e.value?1.2*t:17===e.type?t*e.number:WA(e)?ei(e,t):t},Sn={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,t){return 20===t.type&&"none"===t.value?null:Gi.parse(e,t)}},Hn={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,t){switch(t){case"inside":return 0;case"outside":default:return 1}}},Ln={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},On=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},Mn=On("top"),Tn=On("right"),Nn=On("bottom"),Kn=On("left"),Pn={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,t){return t.filter(KA).map((function(e){switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}}))}},Rn={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-word":return"break-word";case"normal":default:return"normal"}}},Vn=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Gn=Vn("top"),zn=Vn("right"),jn=Vn("bottom"),Zn=Vn("left"),Wn={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,t){switch(t){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Yn={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Xn={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return 1===t.length&&RA(t[0],"none")?[]:zA(t).map((function(t){for(var A={color:wi.TRANSPARENT,offsetX:XA,offsetY:XA,blur:XA},i=0,n=0;n<t.length;n++){var r=t[n];ZA(r)?(0===i?A.offsetX=r:1===i?A.offsetY=r:A.blur=r,i++):A.color=li.parse(e,r)}return A}))}},Jn={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},$n={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(e,t){if(20===t.type&&"none"===t.value)return null;if(18===t.type){var A=tr[t.name];if("undefined"===typeof A)throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return A(t.values)}return null}},qn=function(e){var t=e.filter((function(e){return 17===e.type})).map((function(e){return e.number}));return 6===t.length?t:null},er=function(e){var t=e.filter((function(e){return 17===e.type})).map((function(e){return e.number})),A=t[0],i=t[1];t[2],t[3];var n=t[4],r=t[5];t[6],t[7],t[8],t[9],t[10],t[11];var o=t[12],s=t[13];return t[14],t[15],16===t.length?[A,i,n,r,o,s]:null},tr={matrix:qn,matrix3d:er},Ar={type:16,number:50,flags:qe},ir=[Ar,Ar],nr={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,t){var A=t.filter(WA);return 2!==A.length?ir:[A[0],A[1]]}},rr={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}};(function(e){e["NORMAL"]="normal",e["BREAK_ALL"]="break-all",e["KEEP_ALL"]="keep-all"})(En||(En={}));for(var or={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-all":return En.BREAK_ALL;case"keep-all":return En.KEEP_ALL;case"normal":default:return En.NORMAL}}},sr={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,t){if(20===t.type)return{auto:!0,order:0};if(NA(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},ar={name:"time",parse:function(e,t){if(15===t.type)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")}},lr={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,t){return NA(t)?t.number:1}},cr={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},dr={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,t){return t.filter(KA).map((function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0})).filter((function(e){return 0!==e}))}},ur={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,t){var A=[],i=[];return t.forEach((function(e){switch(e.type){case 20:case 0:A.push(e.value);break;case 17:A.push(e.number.toString());break;case 4:i.push(A.join(" ")),A.length=0;break}})),A.length&&i.push(A.join(" ")),i.map((function(e){return-1===e.indexOf(" ")?e:"'"+e+"'"}))}},hr={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},gr={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,t){if(NA(t))return t.number;if(KA(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},pr={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.filter(KA).map((function(e){return e.value}))}},fr={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},mr=function(e,t){return 0!==(e&t)},Br={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(0===t.length)return[];var A=t[0];return 20===A.type&&"none"===A.value?[]:t}},wr={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return null;var A=t[0];if(20===A.type&&"none"===A.value)return null;for(var i=[],n=t.filter(VA),r=0;r<n.length;r++){var o=n[r],s=n[r+1];if(20===o.type){var a=s&&NA(s)?s.number:1;i.push({counter:o.value,increment:a})}}return i}},vr={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return[];for(var A=[],i=t.filter(VA),n=0;n<i.length;n++){var r=i[n],o=i[n+1];if(KA(r)&&"none"!==r.value){var s=o&&NA(o)?o.number:0;A.push({counter:r.value,reset:s})}}return A}},yr={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,t){return t.filter(TA).map((function(t){return ar.parse(e,t)}))}},Cr={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return null;var A=t[0];if(20===A.type&&"none"===A.value)return null;var i=[],n=t.filter(PA);if(n.length%2!==0)return null;for(var r=0;r<n.length;r+=2){var o=n[r].value,s=n[r+1].value;i.push({open:o,close:s})}return i}},br=function(e,t,A){if(!e)return"";var i=e[Math.min(t,e.length-1)];return i?A?i.open:i.close:""},_r={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return 1===t.length&&RA(t[0],"none")?[]:zA(t).map((function(t){for(var A={color:255,offsetX:XA,offsetY:XA,blur:XA,spread:XA,inset:!1},i=0,n=0;n<t.length;n++){var r=t[n];RA(r,"inset")?A.inset=!0:ZA(r)?(0===i?A.offsetX=r:1===i?A.offsetY=r:2===i?A.blur=r:A.spread=r,i++):A.color=li.parse(e,r)}return A}))}},Qr={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,t){var A=[0,1,2],i=[];return t.filter(KA).forEach((function(e){switch(e.value){case"stroke":i.push(1);break;case"fill":i.push(0);break;case"markers":i.push(2);break}})),A.forEach((function(e){-1===i.indexOf(e)&&i.push(e)})),i}},Ur={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Fr={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return TA(t)?t.number:0}},xr=function(){function e(e,t){var A,i;this.animationDuration=Ir(e,yr,t.animationDuration),this.backgroundClip=Ir(e,vi,t.backgroundClip),this.backgroundColor=Ir(e,yi,t.backgroundColor),this.backgroundImage=Ir(e,Wi,t.backgroundImage),this.backgroundOrigin=Ir(e,Yi,t.backgroundOrigin),this.backgroundPosition=Ir(e,Xi,t.backgroundPosition),this.backgroundRepeat=Ir(e,Ji,t.backgroundRepeat),this.backgroundSize=Ir(e,en,t.backgroundSize),this.borderTopColor=Ir(e,nn,t.borderTopColor),this.borderRightColor=Ir(e,rn,t.borderRightColor),this.borderBottomColor=Ir(e,on,t.borderBottomColor),this.borderLeftColor=Ir(e,sn,t.borderLeftColor),this.borderTopLeftRadius=Ir(e,ln,t.borderTopLeftRadius),this.borderTopRightRadius=Ir(e,cn,t.borderTopRightRadius),this.borderBottomRightRadius=Ir(e,dn,t.borderBottomRightRadius),this.borderBottomLeftRadius=Ir(e,un,t.borderBottomLeftRadius),this.borderTopStyle=Ir(e,gn,t.borderTopStyle),this.borderRightStyle=Ir(e,pn,t.borderRightStyle),this.borderBottomStyle=Ir(e,fn,t.borderBottomStyle),this.borderLeftStyle=Ir(e,mn,t.borderLeftStyle),this.borderTopWidth=Ir(e,wn,t.borderTopWidth),this.borderRightWidth=Ir(e,vn,t.borderRightWidth),this.borderBottomWidth=Ir(e,yn,t.borderBottomWidth),this.borderLeftWidth=Ir(e,Cn,t.borderLeftWidth),this.boxShadow=Ir(e,_r,t.boxShadow),this.color=Ir(e,bn,t.color),this.direction=Ir(e,_n,t.direction),this.display=Ir(e,Qn,t.display),this.float=Ir(e,Fn,t.cssFloat),this.fontFamily=Ir(e,ur,t.fontFamily),this.fontSize=Ir(e,hr,t.fontSize),this.fontStyle=Ir(e,fr,t.fontStyle),this.fontVariant=Ir(e,pr,t.fontVariant),this.fontWeight=Ir(e,gr,t.fontWeight),this.letterSpacing=Ir(e,xn,t.letterSpacing),this.lineBreak=Ir(e,kn,t.lineBreak),this.lineHeight=Ir(e,In,t.lineHeight),this.listStyleImage=Ir(e,Sn,t.listStyleImage),this.listStylePosition=Ir(e,Hn,t.listStylePosition),this.listStyleType=Ir(e,Ln,t.listStyleType),this.marginTop=Ir(e,Mn,t.marginTop),this.marginRight=Ir(e,Tn,t.marginRight),this.marginBottom=Ir(e,Nn,t.marginBottom),this.marginLeft=Ir(e,Kn,t.marginLeft),this.opacity=Ir(e,lr,t.opacity);var n=Ir(e,Pn,t.overflow);this.overflowX=n[0],this.overflowY=n[n.length>1?1:0],this.overflowWrap=Ir(e,Rn,t.overflowWrap),this.paddingTop=Ir(e,Gn,t.paddingTop),this.paddingRight=Ir(e,zn,t.paddingRight),this.paddingBottom=Ir(e,jn,t.paddingBottom),this.paddingLeft=Ir(e,Zn,t.paddingLeft),this.paintOrder=Ir(e,Qr,t.paintOrder),this.position=Ir(e,Yn,t.position),this.textAlign=Ir(e,Wn,t.textAlign),this.textDecorationColor=Ir(e,cr,null!==(A=t.textDecorationColor)&&void 0!==A?A:t.color),this.textDecorationLine=Ir(e,dr,null!==(i=t.textDecorationLine)&&void 0!==i?i:t.textDecoration),this.textShadow=Ir(e,Xn,t.textShadow),this.textTransform=Ir(e,Jn,t.textTransform),this.transform=Ir(e,$n,t.transform),this.transformOrigin=Ir(e,nr,t.transformOrigin),this.visibility=Ir(e,rr,t.visibility),this.webkitTextStrokeColor=Ir(e,Ur,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=Ir(e,Fr,t.webkitTextStrokeWidth),this.wordBreak=Ir(e,or,t.wordBreak),this.zIndex=Ir(e,sr,t.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},e.prototype.isTransparent=function(){return ci(this.backgroundColor)},e.prototype.isTransformed=function(){return null!==this.transform},e.prototype.isPositioned=function(){return 0!==this.position},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return 0!==this.float},e.prototype.isInlineLevel=function(){return mr(this.display,4)||mr(this.display,33554432)||mr(this.display,268435456)||mr(this.display,536870912)||mr(this.display,67108864)||mr(this.display,134217728)},e}(),Er=function(){function e(e,t){this.content=Ir(e,Br,t.content),this.quotes=Ir(e,Cr,t.quotes)}return e}(),kr=function(){function e(e,t){this.counterIncrement=Ir(e,wr,t.counterIncrement),this.counterReset=Ir(e,vr,t.counterReset)}return e}(),Ir=function(e,t,A){var i=new OA,n=null!==A&&"undefined"!==typeof A?A.toString():t.initialValue;i.write(n);var r=new MA(i.read());switch(t.type){case 2:var o=r.parseComponentValue();return t.parse(e,KA(o)?o.value:t.initialValue);case 0:return t.parse(e,r.parseComponentValue());case 1:return t.parse(e,r.parseComponentValues());case 4:return r.parseComponentValue();case 3:switch(t.format){case"angle":return ri.parse(e,r.parseComponentValue());case"color":return li.parse(e,r.parseComponentValue());case"image":return Gi.parse(e,r.parseComponentValue());case"length":var s=r.parseComponentValue();return ZA(s)?s:XA;case"length-percentage":var a=r.parseComponentValue();return WA(a)?a:XA;case"time":return ar.parse(e,r.parseComponentValue())}break}},Dr="data-html2canvas-debug",Sr=function(e){var t=e.getAttribute(Dr);switch(t){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Hr=function(e,t){var A=Sr(e);return 1===A||t===A},Lr=function(){function e(e,t){this.context=e,this.textNodes=[],this.elements=[],this.flags=0,Hr(t,3),this.styles=new xr(e,window.getComputedStyle(t,null)),ks(t)&&(this.styles.animationDuration.some((function(e){return e>0}))&&(t.style.animationDuration="0s"),null!==this.styles.transform&&(t.style.transform="none")),this.bounds=s(this.context,t),Hr(t,4)&&(this.flags|=16)}return e}(),Or="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Mr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Tr="undefined"===typeof Uint8Array?[]:new Uint8Array(256),Nr=0;Nr<Mr.length;Nr++)Tr[Mr.charCodeAt(Nr)]=Nr;for(var Kr=function(e){var t,A,i,n,r,o=.75*e.length,s=e.length,a=0;"="===e[e.length-1]&&(o--,"="===e[e.length-2]&&o--);var l="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint8Array.prototype.slice?new ArrayBuffer(o):new Array(o),c=Array.isArray(l)?l:new Uint8Array(l);for(t=0;t<s;t+=4)A=Tr[e.charCodeAt(t)],i=Tr[e.charCodeAt(t+1)],n=Tr[e.charCodeAt(t+2)],r=Tr[e.charCodeAt(t+3)],c[a++]=A<<2|i>>4,c[a++]=(15&i)<<4|n>>2,c[a++]=(3&n)<<6|63&r;return l},Pr=function(e){for(var t=e.length,A=[],i=0;i<t;i+=2)A.push(e[i+1]<<8|e[i]);return A},Rr=function(e){for(var t=e.length,A=[],i=0;i<t;i+=4)A.push(e[i+3]<<24|e[i+2]<<16|e[i+1]<<8|e[i]);return A},Vr=5,Gr=11,zr=2,jr=Gr-Vr,Zr=65536>>Vr,Wr=1<<Vr,Yr=Wr-1,Xr=1024>>Vr,Jr=Zr+Xr,$r=Jr,qr=32,eo=$r+qr,to=65536>>Gr,Ao=1<<jr,io=Ao-1,no=function(e,t,A){return e.slice?e.slice(t,A):new Uint16Array(Array.prototype.slice.call(e,t,A))},ro=function(e,t,A){return e.slice?e.slice(t,A):new Uint32Array(Array.prototype.slice.call(e,t,A))},oo=function(e,t){var A=Kr(e),i=Array.isArray(A)?Rr(A):new Uint32Array(A),n=Array.isArray(A)?Pr(A):new Uint16Array(A),r=24,o=no(n,r/2,i[4]/2),s=2===i[5]?no(n,(r+i[4])/2):ro(i,Math.ceil((r+i[4])/4));return new so(i[0],i[1],i[2],i[3],o,s)},so=function(){function e(e,t,A,i,n,r){this.initialValue=e,this.errorValue=t,this.highStart=A,this.highValueIndex=i,this.index=n,this.data=r}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>Vr],t=(t<<zr)+(e&Yr),this.data[t];if(e<=65535)return t=this.index[Zr+(e-55296>>Vr)],t=(t<<zr)+(e&Yr),this.data[t];if(e<this.highStart)return t=eo-to+(e>>Gr),t=this.index[t],t+=e>>Vr&io,t=this.index[t],t=(t<<zr)+(e&Yr),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),ao="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lo="undefined"===typeof Uint8Array?[]:new Uint8Array(256),co=0;co<ao.length;co++)lo[ao.charCodeAt(co)]=co;var uo,ho=1,go=2,po=3,fo=4,mo=5,Bo=7,wo=8,vo=9,yo=10,Co=11,bo=12,_o=13,Qo=14,Uo=15,Fo=function(e){var t=[],A=0,i=e.length;while(A<i){var n=e.charCodeAt(A++);if(n>=55296&&n<=56319&&A<i){var r=e.charCodeAt(A++);56320===(64512&r)?t.push(((1023&n)<<10)+(1023&r)+65536):(t.push(n),A--)}else t.push(n)}return t},xo=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var A=e.length;if(!A)return"";var i=[],n=-1,r="";while(++n<A){var o=e[n];o<=65535?i.push(o):(o-=65536,i.push(55296+(o>>10),o%1024+56320)),(n+1===A||i.length>16384)&&(r+=String.fromCharCode.apply(String,i),i.length=0)}return r},Eo=oo(Or),ko="×",Io="÷",Do=function(e){return Eo.get(e)},So=function(e,t,A){var i=A-2,n=t[i],r=t[A-1],o=t[A];if(r===go&&o===po)return ko;if(r===go||r===po||r===fo)return Io;if(o===go||o===po||o===fo)return Io;if(r===wo&&-1!==[wo,vo,Co,bo].indexOf(o))return ko;if((r===Co||r===vo)&&(o===vo||o===yo))return ko;if((r===bo||r===yo)&&o===yo)return ko;if(o===_o||o===mo)return ko;if(o===Bo)return ko;if(r===ho)return ko;if(r===_o&&o===Qo){while(n===mo)n=t[--i];if(n===Qo)return ko}if(r===Uo&&o===Uo){var s=0;while(n===Uo)s++,n=t[--i];if(s%2===0)return ko}return Io},Ho=function(e){var t=Fo(e),A=t.length,i=0,n=0,r=t.map(Do);return{next:function(){if(i>=A)return{done:!0,value:null};var e=ko;while(i<A&&(e=So(t,r,++i))===ko);if(e!==ko||i===A){var o=xo.apply(null,t.slice(n,i));return n=i,{value:o,done:!1}}return{done:!0,value:null}}}},Lo=function(e){var t,A=Ho(e),i=[];while(!(t=A.next()).done)t.value&&i.push(t.value.slice());return i},Oo=function(e){var t=123;if(e.createRange){var A=e.createRange();if(A.getBoundingClientRect){var i=e.createElement("boundtest");i.style.height=t+"px",i.style.display="block",e.body.appendChild(i),A.selectNode(i);var n=A.getBoundingClientRect(),r=Math.round(n.height);if(e.body.removeChild(i),r===t)return!0}}return!1},Mo=function(e){var t=e.createElement("boundtest");t.style.width="50px",t.style.display="block",t.style.fontSize="12px",t.style.letterSpacing="0px",t.style.wordSpacing="0px",e.body.appendChild(t);var A=e.createRange();t.innerHTML="function"===typeof"".repeat?"👨".repeat(10):"";var i=t.firstChild,n=l(i.data).map((function(e){return c(e)})),r=0,o={},s=n.every((function(e,t){A.setStart(i,r),A.setEnd(i,r+e.length);var n=A.getBoundingClientRect();r+=e.length;var s=n.x>o.x||n.y>o.y;return o=n,0===t||s}));return e.body.removeChild(t),s},To=function(){return"undefined"!==typeof(new Image).crossOrigin},No=function(){return"string"===typeof(new XMLHttpRequest).responseType},Ko=function(e){var t=new Image,A=e.createElement("canvas"),i=A.getContext("2d");if(!i)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{i.drawImage(t,0,0),A.toDataURL()}catch(zt){return!1}return!0},Po=function(e){return 0===e[0]&&255===e[1]&&0===e[2]&&255===e[3]},Ro=function(e){var t=e.createElement("canvas"),A=100;t.width=A,t.height=A;var i=t.getContext("2d");if(!i)return Promise.reject(!1);i.fillStyle="rgb(0, 255, 0)",i.fillRect(0,0,A,A);var n=new Image,r=t.toDataURL();n.src=r;var o=Vo(A,A,0,0,n);return i.fillStyle="red",i.fillRect(0,0,A,A),Go(o).then((function(t){i.drawImage(t,0,0);var n=i.getImageData(0,0,A,A).data;i.fillStyle="red",i.fillRect(0,0,A,A);var o=e.createElement("div");return o.style.backgroundImage="url("+r+")",o.style.height=A+"px",Po(n)?Go(Vo(A,A,0,0,o)):Promise.reject(!1)})).then((function(e){return i.drawImage(e,0,0),Po(i.getImageData(0,0,A,A).data)})).catch((function(){return!1}))},Vo=function(e,t,A,i,n){var r="http://www.w3.org/2000/svg",o=document.createElementNS(r,"svg"),s=document.createElementNS(r,"foreignObject");return o.setAttributeNS(null,"width",e.toString()),o.setAttributeNS(null,"height",t.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",A.toString()),s.setAttributeNS(null,"y",i.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(s),s.appendChild(n),o},Go=function(e){return new Promise((function(t,A){var i=new Image;i.onload=function(){return t(i)},i.onerror=A,i.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))}))},zo={get SUPPORT_RANGE_BOUNDS(){var e=Oo(document);return Object.defineProperty(zo,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=zo.SUPPORT_RANGE_BOUNDS&&Mo(document);return Object.defineProperty(zo,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=Ko(document);return Object.defineProperty(zo,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e="function"===typeof Array.from&&"function"===typeof window.fetch?Ro(document):Promise.resolve(!1);return Object.defineProperty(zo,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=To();return Object.defineProperty(zo,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=No();return Object.defineProperty(zo,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(zo,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!("undefined"===typeof Intl||!Intl.Segmenter);return Object.defineProperty(zo,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},jo=function(){function e(e,t){this.text=e,this.bounds=t}return e}(),Zo=function(e,t,A,i){var n=$o(t,A),r=[],s=0;return n.forEach((function(t){if(A.textDecorationLine.length||t.trim().length>0)if(zo.SUPPORT_RANGE_BOUNDS){var n=Yo(i,s,t.length).getClientRects();if(n.length>1){var a=Xo(t),l=0;a.forEach((function(t){r.push(new jo(t,o.fromDOMRectList(e,Yo(i,l+s,t.length).getClientRects()))),l+=t.length}))}else r.push(new jo(t,o.fromDOMRectList(e,n)))}else{var c=i.splitText(t.length);r.push(new jo(t,Wo(e,i))),i=c}else zo.SUPPORT_RANGE_BOUNDS||(i=i.splitText(t.length));s+=t.length})),r},Wo=function(e,t){var A=t.ownerDocument;if(A){var i=A.createElement("html2canvaswrapper");i.appendChild(t.cloneNode(!0));var n=t.parentNode;if(n){n.replaceChild(i,t);var r=s(e,i);return i.firstChild&&n.replaceChild(i.firstChild,i),r}}return o.EMPTY},Yo=function(e,t,A){var i=e.ownerDocument;if(!i)throw new Error("Node has no owner document");var n=i.createRange();return n.setStart(e,t),n.setEnd(e,t+A),n},Xo=function(e){if(zo.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e)).map((function(e){return e.segment}))}return Lo(e)},Jo=function(e,t){if(zo.SUPPORT_NATIVE_TEXT_SEGMENTATION){var A=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(A.segment(e)).map((function(e){return e.segment}))}return es(e,t)},$o=function(e,t){return 0!==t.letterSpacing?Xo(e):Jo(e,t)},qo=[32,160,4961,65792,65793,4153,4241],es=function(e,t){var A,i=Xe(e,{lineBreak:t.lineBreak,wordBreak:"break-word"===t.overflowWrap?"break-word":t.wordBreak}),n=[],r=function(){if(A.value){var e=A.value.slice(),t=l(e),i="";t.forEach((function(e){-1===qo.indexOf(e)?i+=c(e):(i.length&&n.push(i),n.push(c(e)),i="")})),i.length&&n.push(i)}};while(!(A=i.next()).done)r();return n},ts=function(){function e(e,t,A){this.text=As(t.data,A.textTransform),this.textBounds=Zo(e,this.text,A,t)}return e}(),As=function(e,t){switch(t){case 1:return e.toLowerCase();case 3:return e.replace(is,ns);case 2:return e.toUpperCase();default:return e}},is=/(^|\s|:|-|\(|\))([a-z])/g,ns=function(e,t,A){return e.length>0?t+A.toUpperCase():e},rs=function(e){function A(t,A){var i=e.call(this,t,A)||this;return i.src=A.currentSrc||A.src,i.intrinsicWidth=A.naturalWidth,i.intrinsicHeight=A.naturalHeight,i.context.cache.addImage(i.src),i}return t(A,e),A}(Lr),os=function(e){function A(t,A){var i=e.call(this,t,A)||this;return i.canvas=A,i.intrinsicWidth=A.width,i.intrinsicHeight=A.height,i}return t(A,e),A}(Lr),ss=function(e){function A(t,A){var i=e.call(this,t,A)||this,n=new XMLSerializer,r=s(t,A);return A.setAttribute("width",r.width+"px"),A.setAttribute("height",r.height+"px"),i.svg="data:image/svg+xml,"+encodeURIComponent(n.serializeToString(A)),i.intrinsicWidth=A.width.baseVal.value,i.intrinsicHeight=A.height.baseVal.value,i.context.cache.addImage(i.svg),i}return t(A,e),A}(Lr),as=function(e){function A(t,A){var i=e.call(this,t,A)||this;return i.value=A.value,i}return t(A,e),A}(Lr),ls=function(e){function A(t,A){var i=e.call(this,t,A)||this;return i.start=A.start,i.reversed="boolean"===typeof A.reversed&&!0===A.reversed,i}return t(A,e),A}(Lr),cs=[{type:15,flags:0,unit:"px",number:3}],ds=[{type:16,flags:0,number:50}],us=function(e){return e.width>e.height?new o(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new o(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e},hs=function(e){var t=e.type===fs?new Array(e.value.length+1).join("•"):e.value;return 0===t.length?e.placeholder||"":t},gs="checkbox",ps="radio",fs="password",ms=707406591,Bs=function(e){function A(t,A){var i=e.call(this,t,A)||this;switch(i.type=A.type.toLowerCase(),i.checked=A.checked,i.value=hs(A),i.type!==gs&&i.type!==ps||(i.styles.backgroundColor=3739148031,i.styles.borderTopColor=i.styles.borderRightColor=i.styles.borderBottomColor=i.styles.borderLeftColor=2779096575,i.styles.borderTopWidth=i.styles.borderRightWidth=i.styles.borderBottomWidth=i.styles.borderLeftWidth=1,i.styles.borderTopStyle=i.styles.borderRightStyle=i.styles.borderBottomStyle=i.styles.borderLeftStyle=1,i.styles.backgroundClip=[0],i.styles.backgroundOrigin=[0],i.bounds=us(i.bounds)),i.type){case gs:i.styles.borderTopRightRadius=i.styles.borderTopLeftRadius=i.styles.borderBottomRightRadius=i.styles.borderBottomLeftRadius=cs;break;case ps:i.styles.borderTopRightRadius=i.styles.borderTopLeftRadius=i.styles.borderBottomRightRadius=i.styles.borderBottomLeftRadius=ds;break}return i}return t(A,e),A}(Lr),ws=function(e){function A(t,A){var i=e.call(this,t,A)||this,n=A.options[A.selectedIndex||0];return i.value=n&&n.text||"",i}return t(A,e),A}(Lr),vs=function(e){function A(t,A){var i=e.call(this,t,A)||this;return i.value=A.value,i}return t(A,e),A}(Lr),ys=function(e){function A(t,A){var i=e.call(this,t,A)||this;i.src=A.src,i.width=parseInt(A.width,10)||0,i.height=parseInt(A.height,10)||0,i.backgroundColor=i.styles.backgroundColor;try{if(A.contentWindow&&A.contentWindow.document&&A.contentWindow.document.documentElement){i.tree=Qs(t,A.contentWindow.document.documentElement);var n=A.contentWindow.document.documentElement?Bi(t,getComputedStyle(A.contentWindow.document.documentElement).backgroundColor):wi.TRANSPARENT,r=A.contentWindow.document.body?Bi(t,getComputedStyle(A.contentWindow.document.body).backgroundColor):wi.TRANSPARENT;i.backgroundColor=ci(n)?ci(r)?i.styles.backgroundColor:r:n}}catch(zt){}return i}return t(A,e),A}(Lr),Cs=["OL","UL","MENU"],bs=function(e,t,A,i){for(var n=t.firstChild,r=void 0;n;n=r)if(r=n.nextSibling,xs(n)&&n.data.trim().length>0)A.textNodes.push(new ts(e,n,A.styles));else if(Es(n))if(js(n)&&n.assignedNodes)n.assignedNodes().forEach((function(t){return bs(e,t,A,i)}));else{var o=_s(e,n);o.styles.isVisible()&&(Us(n,o,i)?o.flags|=4:Fs(o.styles)&&(o.flags|=2),-1!==Cs.indexOf(n.tagName)&&(o.flags|=8),A.elements.push(o),n.slot,n.shadowRoot?bs(e,n.shadowRoot,o,i):Gs(n)||Os(n)||zs(n)||bs(e,n,o,i))}},_s=function(e,t){return Ks(t)?new rs(e,t):Ts(t)?new os(e,t):Os(t)?new ss(e,t):Ds(t)?new as(e,t):Ss(t)?new ls(e,t):Hs(t)?new Bs(e,t):zs(t)?new ws(e,t):Gs(t)?new vs(e,t):Ps(t)?new ys(e,t):new Lr(e,t)},Qs=function(e,t){var A=_s(e,t);return A.flags|=4,bs(e,t,A,A),A},Us=function(e,t,A){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||Ms(e)&&A.styles.isTransparent()},Fs=function(e){return e.isPositioned()||e.isFloating()},xs=function(e){return e.nodeType===Node.TEXT_NODE},Es=function(e){return e.nodeType===Node.ELEMENT_NODE},ks=function(e){return Es(e)&&"undefined"!==typeof e.style&&!Is(e)},Is=function(e){return"object"===typeof e.className},Ds=function(e){return"LI"===e.tagName},Ss=function(e){return"OL"===e.tagName},Hs=function(e){return"INPUT"===e.tagName},Ls=function(e){return"HTML"===e.tagName},Os=function(e){return"svg"===e.tagName},Ms=function(e){return"BODY"===e.tagName},Ts=function(e){return"CANVAS"===e.tagName},Ns=function(e){return"VIDEO"===e.tagName},Ks=function(e){return"IMG"===e.tagName},Ps=function(e){return"IFRAME"===e.tagName},Rs=function(e){return"STYLE"===e.tagName},Vs=function(e){return"SCRIPT"===e.tagName},Gs=function(e){return"TEXTAREA"===e.tagName},zs=function(e){return"SELECT"===e.tagName},js=function(e){return"SLOT"===e.tagName},Zs=function(e){return e.tagName.indexOf("-")>0},Ws=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(e){var t=this.counters[e];return t||[]},e.prototype.pop=function(e){var t=this;e.forEach((function(e){return t.counters[e].pop()}))},e.prototype.parse=function(e){var t=this,A=e.counterIncrement,i=e.counterReset,n=!0;null!==A&&A.forEach((function(e){var A=t.counters[e.counter];A&&0!==e.increment&&(n=!1,A.length||A.push(1),A[Math.max(0,A.length-1)]+=e.increment)}));var r=[];return n&&i.forEach((function(e){var A=t.counters[e.counter];r.push(e.counter),A||(A=t.counters[e.counter]=[]),A.push(e.reset)})),r},e}(),Ys={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Xs={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Js={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},$s={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},qs=function(e,t,A,i,n,r){return e<t||e>A?ua(e,n,r.length>0):i.integers.reduce((function(t,A,n){while(e>=A)e-=A,t+=i.values[n];return t}),"")+r},ea=function(e,t,A,i){var n="";do{A||e--,n=i(e)+n,e/=t}while(e*t>=t);return n},ta=function(e,t,A,i,n){var r=A-t+1;return(e<0?"-":"")+(ea(Math.abs(e),r,i,(function(e){return c(Math.floor(e%r)+t)}))+n)},Aa=function(e,t,A){void 0===A&&(A=". ");var i=t.length;return ea(Math.abs(e),i,!1,(function(e){return t[Math.floor(e%i)]}))+A},ia=1,na=2,ra=4,oa=8,sa=function(e,t,A,i,n,r){if(e<-9999||e>9999)return ua(e,4,n.length>0);var o=Math.abs(e),s=n;if(0===o)return t[0]+s;for(var a=0;o>0&&a<=4;a++){var l=o%10;0===l&&mr(r,ia)&&""!==s?s=t[l]+s:l>1||1===l&&0===a||1===l&&1===a&&mr(r,na)||1===l&&1===a&&mr(r,ra)&&e>100||1===l&&a>1&&mr(r,oa)?s=t[l]+(a>0?A[a-1]:"")+s:1===l&&a>0&&(s=A[a-1]+s),o=Math.floor(o/10)}return(e<0?i:"")+s},aa="十百千萬",la="拾佰仟萬",ca="マイナス",da="마이너스",ua=function(e,t,A){var i=A?". ":"",n=A?"、":"",r=A?", ":"",o=A?" ":"";switch(t){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:var s=ta(e,48,57,!0,i);return s.length<4?"0"+s:s;case 4:return Aa(e,"〇一二三四五六七八九",n);case 6:return qs(e,1,3999,Ys,3,i).toLowerCase();case 7:return qs(e,1,3999,Ys,3,i);case 8:return ta(e,945,969,!1,i);case 9:return ta(e,97,122,!1,i);case 10:return ta(e,65,90,!1,i);case 11:return ta(e,1632,1641,!0,i);case 12:case 49:return qs(e,1,9999,Xs,3,i);case 35:return qs(e,1,9999,Xs,3,i).toLowerCase();case 13:return ta(e,2534,2543,!0,i);case 14:case 30:return ta(e,6112,6121,!0,i);case 15:return Aa(e,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return Aa(e,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return sa(e,"零一二三四五六七八九",aa,"負",n,na|ra|oa);case 47:return sa(e,"零壹貳參肆伍陸柒捌玖",la,"負",n,ia|na|ra|oa);case 42:return sa(e,"零一二三四五六七八九",aa,"负",n,na|ra|oa);case 41:return sa(e,"零壹贰叁肆伍陆柒捌玖",la,"负",n,ia|na|ra|oa);case 26:return sa(e,"〇一二三四五六七八九","十百千万",ca,n,0);case 25:return sa(e,"零壱弐参四伍六七八九","拾百千万",ca,n,ia|na|ra);case 31:return sa(e,"영일이삼사오육칠팔구","십백천만",da,r,ia|na|ra);case 33:return sa(e,"零一二三四五六七八九","十百千萬",da,r,0);case 32:return sa(e,"零壹貳參四五六七八九","拾百千",da,r,ia|na|ra);case 18:return ta(e,2406,2415,!0,i);case 20:return qs(e,1,19999,$s,3,i);case 21:return ta(e,2790,2799,!0,i);case 22:return ta(e,2662,2671,!0,i);case 22:return qs(e,1,10999,Js,3,i);case 23:return Aa(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Aa(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return ta(e,3302,3311,!0,i);case 28:return Aa(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return Aa(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return ta(e,3792,3801,!0,i);case 37:return ta(e,6160,6169,!0,i);case 38:return ta(e,4160,4169,!0,i);case 39:return ta(e,2918,2927,!0,i);case 40:return ta(e,1776,1785,!0,i);case 43:return ta(e,3046,3055,!0,i);case 44:return ta(e,3174,3183,!0,i);case 45:return ta(e,3664,3673,!0,i);case 46:return ta(e,3872,3881,!0,i);case 3:default:return ta(e,48,57,!0,i)}},ha="data-html2canvas-ignore",ga=function(){function e(e,t,A){if(this.context=e,this.options=A,this.scrolledElements=[],this.referenceElement=t,this.counters=new Ws,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(e,t){var A=this,r=fa(e,t);if(!r.contentWindow)return Promise.reject("Unable to find iframe window");var o=e.defaultView.pageXOffset,s=e.defaultView.pageYOffset,a=r.contentWindow,l=a.document,c=wa(r).then((function(){return i(A,void 0,void 0,(function(){var e,A;return n(this,(function(i){switch(i.label){case 0:return this.scrolledElements.forEach(_a),a&&(a.scrollTo(t.left,t.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||a.scrollY===t.top&&a.scrollX===t.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(a.scrollX-t.left,a.scrollY-t.top,0,0))),e=this.options.onclone,A=this.clonedReferenceElement,"undefined"===typeof A?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:i.sent(),i.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Ba(l)]:[3,4];case 3:i.sent(),i.label=4;case 4:return"function"===typeof e?[2,Promise.resolve().then((function(){return e(l,A)})).then((function(){return r}))]:[2,r]}}))}))}));return l.open(),l.write(Ca(document.doctype)+"<html></html>"),ba(this.referenceElement.ownerDocument,o,s),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),c},e.prototype.createElementClone=function(e){if(Hr(e,2),Ts(e))return this.createCanvasClone(e);if(Ns(e))return this.createVideoClone(e);if(Rs(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return Ks(t)&&(Ks(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),"lazy"===t.loading&&(t.loading="eager")),Zs(t)?this.createCustomElementClone(t):t},e.prototype.createCustomElementClone=function(e){var t=document.createElement("html2canvascustomelement");return ya(e.style,t),t},e.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var A=[].slice.call(t.cssRules,0).reduce((function(e,t){return t&&"string"===typeof t.cssText?e+t.cssText:e}),""),i=e.cloneNode(!1);return i.textContent=A,i}}catch(zt){if(this.context.logger.error("Unable to access cssRules property",zt),"SecurityError"!==zt.name)throw zt}return e.cloneNode(!1)},e.prototype.createCanvasClone=function(e){var t;if(this.options.inlineImages&&e.ownerDocument){var A=e.ownerDocument.createElement("img");try{return A.src=e.toDataURL(),A}catch(zt){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var i=e.cloneNode(!1);try{i.width=e.width,i.height=e.height;var n=e.getContext("2d"),r=i.getContext("2d");if(r)if(!this.options.allowTaint&&n)r.putImageData(n.getImageData(0,0,e.width,e.height),0,0);else{var o=null!==(t=e.getContext("webgl2"))&&void 0!==t?t:e.getContext("webgl");if(o){var s=o.getContextAttributes();!1===(null===s||void 0===s?void 0:s.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}r.drawImage(e,0,0)}return i}catch(zt){this.context.logger.info("Unable to clone canvas as it is tainted",e)}return i},e.prototype.createVideoClone=function(e){var t=e.ownerDocument.createElement("canvas");t.width=e.offsetWidth,t.height=e.offsetHeight;var A=t.getContext("2d");try{return A&&(A.drawImage(e,0,0,t.width,t.height),this.options.allowTaint||A.getImageData(0,0,t.width,t.height)),t}catch(zt){this.context.logger.info("Unable to clone video as it is tainted",e)}var i=e.ownerDocument.createElement("canvas");return i.width=e.offsetWidth,i.height=e.offsetHeight,i},e.prototype.appendChildNode=function(e,t,A){Es(t)&&(Vs(t)||t.hasAttribute(ha)||"function"===typeof this.options.ignoreElements&&this.options.ignoreElements(t))||this.options.copyStyles&&Es(t)&&Rs(t)||e.appendChild(this.cloneNode(t,A))},e.prototype.cloneChildNodes=function(e,t,A){for(var i=this,n=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;n;n=n.nextSibling)if(Es(n)&&js(n)&&"function"===typeof n.assignedNodes){var r=n.assignedNodes();r.length&&r.forEach((function(e){return i.appendChildNode(t,e,A)}))}else this.appendChildNode(t,n,A)},e.prototype.cloneNode=function(e,t){if(xs(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var A=e.ownerDocument.defaultView;if(A&&Es(e)&&(ks(e)||Is(e))){var i=this.createElementClone(e);i.style.transitionProperty="none";var n=A.getComputedStyle(e),r=A.getComputedStyle(e,":before"),o=A.getComputedStyle(e,":after");this.referenceElement===e&&ks(i)&&(this.clonedReferenceElement=i),Ms(i)&&ka(i);var s=this.counters.parse(new kr(this.context,n)),a=this.resolvePseudoContent(e,i,r,uo.BEFORE);Zs(e)&&(t=!0),Ns(e)||this.cloneChildNodes(e,i,t),a&&i.insertBefore(a,i.firstChild);var l=this.resolvePseudoContent(e,i,o,uo.AFTER);return l&&i.appendChild(l),this.counters.pop(s),(n&&(this.options.copyStyles||Is(e))&&!Ps(e)||t)&&ya(n,i),0===e.scrollTop&&0===e.scrollLeft||this.scrolledElements.push([i,e.scrollLeft,e.scrollTop]),(Gs(e)||zs(e))&&(Gs(i)||zs(i))&&(i.value=e.value),i}return e.cloneNode(!1)},e.prototype.resolvePseudoContent=function(e,t,A,i){var n=this;if(A){var r=A.content,o=t.ownerDocument;if(o&&r&&"none"!==r&&"-moz-alt-content"!==r&&"none"!==A.display){this.counters.parse(new kr(this.context,A));var s=new Er(this.context,A),a=o.createElement("html2canvaspseudoelement");ya(A,a),s.content.forEach((function(t){if(0===t.type)a.appendChild(o.createTextNode(t.value));else if(22===t.type){var A=o.createElement("img");A.src=t.value,A.style.opacity="1",a.appendChild(A)}else if(18===t.type){if("attr"===t.name){var i=t.values.filter(KA);i.length&&a.appendChild(o.createTextNode(e.getAttribute(i[0].value)||""))}else if("counter"===t.name){var r=t.values.filter(GA),l=r[0],c=r[1];if(l&&KA(l)){var d=n.counters.getCounterValue(l.value),u=c&&KA(c)?Ln.parse(n.context,c.value):3;a.appendChild(o.createTextNode(ua(d,u,!1)))}}else if("counters"===t.name){var h=t.values.filter(GA),g=(l=h[0],h[1]);c=h[2];if(l&&KA(l)){var p=n.counters.getCounterValues(l.value),f=c&&KA(c)?Ln.parse(n.context,c.value):3,m=g&&0===g.type?g.value:"",B=p.map((function(e){return ua(e,f,!1)})).join(m);a.appendChild(o.createTextNode(B))}}}else if(20===t.type)switch(t.value){case"open-quote":a.appendChild(o.createTextNode(br(s.quotes,n.quoteDepth++,!0)));break;case"close-quote":a.appendChild(o.createTextNode(br(s.quotes,--n.quoteDepth,!1)));break;default:a.appendChild(o.createTextNode(t.value))}})),a.className=Fa+" "+xa;var l=i===uo.BEFORE?" "+Fa:" "+xa;return Is(t)?t.className.baseValue+=l:t.className+=l,a}}},e.destroy=function(e){return!!e.parentNode&&(e.parentNode.removeChild(e),!0)},e}();(function(e){e[e["BEFORE"]=0]="BEFORE",e[e["AFTER"]=1]="AFTER"})(uo||(uo={}));var pa,fa=function(e,t){var A=e.createElement("iframe");return A.className="html2canvas-container",A.style.visibility="hidden",A.style.position="fixed",A.style.left="-10000px",A.style.top="0px",A.style.border="0",A.width=t.width.toString(),A.height=t.height.toString(),A.scrolling="no",A.setAttribute(ha,"true"),e.body.appendChild(A),A},ma=function(e){return new Promise((function(t){e.complete?t():e.src?(e.onload=t,e.onerror=t):t()}))},Ba=function(e){return Promise.all([].slice.call(e.images,0).map(ma))},wa=function(e){return new Promise((function(t,A){var i=e.contentWindow;if(!i)return A("No window assigned for iframe");var n=i.document;i.onload=e.onload=function(){i.onload=e.onload=null;var A=setInterval((function(){n.body.childNodes.length>0&&"complete"===n.readyState&&(clearInterval(A),t(e))}),50)}}))},va=["all","d","content"],ya=function(e,t){for(var A=e.length-1;A>=0;A--){var i=e.item(A);-1===va.indexOf(i)&&t.style.setProperty(i,e.getPropertyValue(i))}return t},Ca=function(e){var t="";return e&&(t+="<!DOCTYPE ",e.name&&(t+=e.name),e.internalSubset&&(t+=e.internalSubset),e.publicId&&(t+='"'+e.publicId+'"'),e.systemId&&(t+='"'+e.systemId+'"'),t+=">"),t},ba=function(e,t,A){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||A!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,A)},_a=function(e){var t=e[0],A=e[1],i=e[2];t.scrollLeft=A,t.scrollTop=i},Qa=":before",Ua=":after",Fa="___html2canvas___pseudoelement_before",xa="___html2canvas___pseudoelement_after",Ea='{\n content: "" !important;\n display: none !important;\n}',ka=function(e){Ia(e,"."+Fa+Qa+Ea+"\n ."+xa+Ua+Ea)},Ia=function(e,t){var A=e.ownerDocument;if(A){var i=A.createElement("style");i.textContent=t,e.appendChild(i)}},Da=function(){function e(){}return e.getOrigin=function(t){var A=e._link;return A?(A.href=t,A.href=A.href,A.protocol+A.hostname+A.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e}(),Sa=function(){function e(e,t){this.context=e,this._options=t,this._cache={}}return e.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)?t:Ka(e)||Ma(e)?((this._cache[e]=this.loadImage(e)).catch((function(){})),t):t},e.prototype.match=function(e){return this._cache[e]},e.prototype.loadImage=function(e){return i(this,void 0,void 0,(function(){var t,A,i,r,o=this;return n(this,(function(n){switch(n.label){case 0:return t=Da.isSameOrigin(e),A=!Ta(e)&&!0===this._options.useCORS&&zo.SUPPORT_CORS_IMAGES&&!t,i=!Ta(e)&&!t&&!Ka(e)&&"string"===typeof this._options.proxy&&zo.SUPPORT_CORS_XHR&&!A,t||!1!==this._options.allowTaint||Ta(e)||Ka(e)||i||A?(r=e,i?[4,this.proxy(r)]:[3,2]):[2];case 1:r=n.sent(),n.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise((function(e,t){var i=new Image;i.onload=function(){return e(i)},i.onerror=t,(Na(r)||A)&&(i.crossOrigin="anonymous"),i.src=r,!0===i.complete&&setTimeout((function(){return e(i)}),500),o._options.imageTimeout>0&&setTimeout((function(){return t("Timed out ("+o._options.imageTimeout+"ms) loading image")}),o._options.imageTimeout)}))];case 3:return[2,n.sent()]}}))}))},e.prototype.has=function(e){return"undefined"!==typeof this._cache[e]},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(e){var t=this,A=this._options.proxy;if(!A)throw new Error("No proxy defined");var i=e.substring(0,256);return new Promise((function(n,r){var o=zo.SUPPORT_RESPONSE_TYPE?"blob":"text",s=new XMLHttpRequest;s.onload=function(){if(200===s.status)if("text"===o)n(s.response);else{var e=new FileReader;e.addEventListener("load",(function(){return n(e.result)}),!1),e.addEventListener("error",(function(e){return r(e)}),!1),e.readAsDataURL(s.response)}else r("Failed to proxy resource "+i+" with status code "+s.status)},s.onerror=r;var a=A.indexOf("?")>-1?"&":"?";if(s.open("GET",""+A+a+"url="+encodeURIComponent(e)+"&responseType="+o),"text"!==o&&s instanceof XMLHttpRequest&&(s.responseType=o),t._options.imageTimeout){var l=t._options.imageTimeout;s.timeout=l,s.ontimeout=function(){return r("Timed out ("+l+"ms) proxying "+i)}}s.send()}))},e}(),Ha=/^data:image\/svg\+xml/i,La=/^data:image\/.*;base64,/i,Oa=/^data:image\/.*/i,Ma=function(e){return zo.SUPPORT_SVG_DRAWING||!Pa(e)},Ta=function(e){return Oa.test(e)},Na=function(e){return La.test(e)},Ka=function(e){return"blob"===e.substr(0,4)},Pa=function(e){return"svg"===e.substr(-3).toLowerCase()||Ha.test(e)},Ra=function(){function e(e,t){this.type=0,this.x=e,this.y=t}return e.prototype.add=function(t,A){return new e(this.x+t,this.y+A)},e}(),Va=function(e,t,A){return new Ra(e.x+(t.x-e.x)*A,e.y+(t.y-e.y)*A)},Ga=function(){function e(e,t,A,i){this.type=1,this.start=e,this.startControl=t,this.endControl=A,this.end=i}return e.prototype.subdivide=function(t,A){var i=Va(this.start,this.startControl,t),n=Va(this.startControl,this.endControl,t),r=Va(this.endControl,this.end,t),o=Va(i,n,t),s=Va(n,r,t),a=Va(o,s,t);return A?new e(this.start,i,o,a):new e(a,s,r,this.end)},e.prototype.add=function(t,A){return new e(this.start.add(t,A),this.startControl.add(t,A),this.endControl.add(t,A),this.end.add(t,A))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),za=function(e){return 1===e.type},ja=function(){function e(e){var t=e.styles,A=e.bounds,i=qA(t.borderTopLeftRadius,A.width,A.height),n=i[0],r=i[1],o=qA(t.borderTopRightRadius,A.width,A.height),s=o[0],a=o[1],l=qA(t.borderBottomRightRadius,A.width,A.height),c=l[0],d=l[1],u=qA(t.borderBottomLeftRadius,A.width,A.height),h=u[0],g=u[1],p=[];p.push((n+s)/A.width),p.push((h+c)/A.width),p.push((r+g)/A.height),p.push((a+d)/A.height);var f=Math.max.apply(Math,p);f>1&&(n/=f,r/=f,s/=f,a/=f,c/=f,d/=f,h/=f,g/=f);var m=A.width-s,B=A.height-d,w=A.width-c,v=A.height-g,y=t.borderTopWidth,C=t.borderRightWidth,b=t.borderBottomWidth,_=t.borderLeftWidth,Q=ei(t.paddingTop,e.bounds.width),U=ei(t.paddingRight,e.bounds.width),F=ei(t.paddingBottom,e.bounds.width),x=ei(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=n>0||r>0?Za(A.left+_/3,A.top+y/3,n-_/3,r-y/3,pa.TOP_LEFT):new Ra(A.left+_/3,A.top+y/3),this.topRightBorderDoubleOuterBox=n>0||r>0?Za(A.left+m,A.top+y/3,s-C/3,a-y/3,pa.TOP_RIGHT):new Ra(A.left+A.width-C/3,A.top+y/3),this.bottomRightBorderDoubleOuterBox=c>0||d>0?Za(A.left+w,A.top+B,c-C/3,d-b/3,pa.BOTTOM_RIGHT):new Ra(A.left+A.width-C/3,A.top+A.height-b/3),this.bottomLeftBorderDoubleOuterBox=h>0||g>0?Za(A.left+_/3,A.top+v,h-_/3,g-b/3,pa.BOTTOM_LEFT):new Ra(A.left+_/3,A.top+A.height-b/3),this.topLeftBorderDoubleInnerBox=n>0||r>0?Za(A.left+2*_/3,A.top+2*y/3,n-2*_/3,r-2*y/3,pa.TOP_LEFT):new Ra(A.left+2*_/3,A.top+2*y/3),this.topRightBorderDoubleInnerBox=n>0||r>0?Za(A.left+m,A.top+2*y/3,s-2*C/3,a-2*y/3,pa.TOP_RIGHT):new Ra(A.left+A.width-2*C/3,A.top+2*y/3),this.bottomRightBorderDoubleInnerBox=c>0||d>0?Za(A.left+w,A.top+B,c-2*C/3,d-2*b/3,pa.BOTTOM_RIGHT):new Ra(A.left+A.width-2*C/3,A.top+A.height-2*b/3),this.bottomLeftBorderDoubleInnerBox=h>0||g>0?Za(A.left+2*_/3,A.top+v,h-2*_/3,g-2*b/3,pa.BOTTOM_LEFT):new Ra(A.left+2*_/3,A.top+A.height-2*b/3),this.topLeftBorderStroke=n>0||r>0?Za(A.left+_/2,A.top+y/2,n-_/2,r-y/2,pa.TOP_LEFT):new Ra(A.left+_/2,A.top+y/2),this.topRightBorderStroke=n>0||r>0?Za(A.left+m,A.top+y/2,s-C/2,a-y/2,pa.TOP_RIGHT):new Ra(A.left+A.width-C/2,A.top+y/2),this.bottomRightBorderStroke=c>0||d>0?Za(A.left+w,A.top+B,c-C/2,d-b/2,pa.BOTTOM_RIGHT):new Ra(A.left+A.width-C/2,A.top+A.height-b/2),this.bottomLeftBorderStroke=h>0||g>0?Za(A.left+_/2,A.top+v,h-_/2,g-b/2,pa.BOTTOM_LEFT):new Ra(A.left+_/2,A.top+A.height-b/2),this.topLeftBorderBox=n>0||r>0?Za(A.left,A.top,n,r,pa.TOP_LEFT):new Ra(A.left,A.top),this.topRightBorderBox=s>0||a>0?Za(A.left+m,A.top,s,a,pa.TOP_RIGHT):new Ra(A.left+A.width,A.top),this.bottomRightBorderBox=c>0||d>0?Za(A.left+w,A.top+B,c,d,pa.BOTTOM_RIGHT):new Ra(A.left+A.width,A.top+A.height),this.bottomLeftBorderBox=h>0||g>0?Za(A.left,A.top+v,h,g,pa.BOTTOM_LEFT):new Ra(A.left,A.top+A.height),this.topLeftPaddingBox=n>0||r>0?Za(A.left+_,A.top+y,Math.max(0,n-_),Math.max(0,r-y),pa.TOP_LEFT):new Ra(A.left+_,A.top+y),this.topRightPaddingBox=s>0||a>0?Za(A.left+Math.min(m,A.width-C),A.top+y,m>A.width+C?0:Math.max(0,s-C),Math.max(0,a-y),pa.TOP_RIGHT):new Ra(A.left+A.width-C,A.top+y),this.bottomRightPaddingBox=c>0||d>0?Za(A.left+Math.min(w,A.width-_),A.top+Math.min(B,A.height-b),Math.max(0,c-C),Math.max(0,d-b),pa.BOTTOM_RIGHT):new Ra(A.left+A.width-C,A.top+A.height-b),this.bottomLeftPaddingBox=h>0||g>0?Za(A.left+_,A.top+Math.min(v,A.height-b),Math.max(0,h-_),Math.max(0,g-b),pa.BOTTOM_LEFT):new Ra(A.left+_,A.top+A.height-b),this.topLeftContentBox=n>0||r>0?Za(A.left+_+x,A.top+y+Q,Math.max(0,n-(_+x)),Math.max(0,r-(y+Q)),pa.TOP_LEFT):new Ra(A.left+_+x,A.top+y+Q),this.topRightContentBox=s>0||a>0?Za(A.left+Math.min(m,A.width+_+x),A.top+y+Q,m>A.width+_+x?0:s-_+x,a-(y+Q),pa.TOP_RIGHT):new Ra(A.left+A.width-(C+U),A.top+y+Q),this.bottomRightContentBox=c>0||d>0?Za(A.left+Math.min(w,A.width-(_+x)),A.top+Math.min(B,A.height+y+Q),Math.max(0,c-(C+U)),d-(b+F),pa.BOTTOM_RIGHT):new Ra(A.left+A.width-(C+U),A.top+A.height-(b+F)),this.bottomLeftContentBox=h>0||g>0?Za(A.left+_+x,A.top+v,Math.max(0,h-(_+x)),g-(b+F),pa.BOTTOM_LEFT):new Ra(A.left+_+x,A.top+A.height-(b+F))}return e}();(function(e){e[e["TOP_LEFT"]=0]="TOP_LEFT",e[e["TOP_RIGHT"]=1]="TOP_RIGHT",e[e["BOTTOM_RIGHT"]=2]="BOTTOM_RIGHT",e[e["BOTTOM_LEFT"]=3]="BOTTOM_LEFT"})(pa||(pa={}));var Za=function(e,t,A,i,n){var r=(Math.sqrt(2)-1)/3*4,o=A*r,s=i*r,a=e+A,l=t+i;switch(n){case pa.TOP_LEFT:return new Ga(new Ra(e,l),new Ra(e,l-s),new Ra(a-o,t),new Ra(a,t));case pa.TOP_RIGHT:return new Ga(new Ra(e,t),new Ra(e+o,t),new Ra(a,l-s),new Ra(a,l));case pa.BOTTOM_RIGHT:return new Ga(new Ra(a,t),new Ra(a,t+s),new Ra(e+o,l),new Ra(e,l));case pa.BOTTOM_LEFT:default:return new Ga(new Ra(a,l),new Ra(a-o,l),new Ra(e,t+s),new Ra(e,t))}},Wa=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},Ya=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},Xa=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},Ja=function(){function e(e,t,A){this.offsetX=e,this.offsetY=t,this.matrix=A,this.type=0,this.target=6}return e}(),$a=function(){function e(e,t){this.path=e,this.target=t,this.type=1}return e}(),qa=function(){function e(e){this.opacity=e,this.type=2,this.target=6}return e}(),el=function(e){return 0===e.type},tl=function(e){return 1===e.type},Al=function(e){return 2===e.type},il=function(e,t){return e.length===t.length&&e.some((function(e,A){return e===t[A]}))},nl=function(e,t,A,i,n){return e.map((function(e,r){switch(r){case 0:return e.add(t,A);case 1:return e.add(t+i,A);case 2:return e.add(t+i,A+n);case 3:return e.add(t,A+n)}return e}))},rl=function(){function e(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e}(),ol=function(){function e(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new ja(this.container),this.container.styles.opacity<1&&this.effects.push(new qa(this.container.styles.opacity)),null!==this.container.styles.transform){var A=this.container.bounds.left+this.container.styles.transformOrigin[0].number,i=this.container.bounds.top+this.container.styles.transformOrigin[1].number,n=this.container.styles.transform;this.effects.push(new Ja(A,i,n))}if(0!==this.container.styles.overflowX){var r=Wa(this.curves),o=Xa(this.curves);il(r,o)?this.effects.push(new $a(r,6)):(this.effects.push(new $a(r,2)),this.effects.push(new $a(o,4)))}}return e.prototype.getEffects=function(e){var t=-1===[2,3].indexOf(this.container.styles.position),A=this.parent,i=this.effects.slice(0);while(A){var n=A.effects.filter((function(e){return!tl(e)}));if(t||0!==A.container.styles.position||!A.parent){if(i.unshift.apply(i,n),t=-1===[2,3].indexOf(A.container.styles.position),0!==A.container.styles.overflowX){var r=Wa(A.curves),o=Xa(A.curves);il(r,o)||i.unshift(new $a(o,6))}}else i.unshift.apply(i,n);A=A.parent}return i.filter((function(t){return mr(t.target,e)}))},e}(),sl=function(e,t,A,i){e.container.elements.forEach((function(n){var r=mr(n.flags,4),o=mr(n.flags,2),s=new ol(n,e);mr(n.styles.display,2048)&&i.push(s);var a=mr(n.flags,8)?[]:i;if(r||o){var l=r||n.styles.isPositioned()?A:t,c=new rl(s);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var d=n.styles.zIndex.order;if(d<0){var u=0;l.negativeZIndex.some((function(e,t){return d>e.element.container.styles.zIndex.order?(u=t,!1):u>0})),l.negativeZIndex.splice(u,0,c)}else if(d>0){var h=0;l.positiveZIndex.some((function(e,t){return d>=e.element.container.styles.zIndex.order?(h=t+1,!1):h>0})),l.positiveZIndex.splice(h,0,c)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else n.styles.isFloating()?l.nonPositionedFloats.push(c):l.nonPositionedInlineLevel.push(c);sl(s,c,r?c:A,a)}else n.styles.isInlineLevel()?t.inlineLevel.push(s):t.nonInlineLevel.push(s),sl(s,t,A,a);mr(n.flags,8)&&al(n,a)}))},al=function(e,t){for(var A=e instanceof ls?e.start:1,i=e instanceof ls&&e.reversed,n=0;n<t.length;n++){var r=t[n];r.container instanceof as&&"number"===typeof r.container.value&&0!==r.container.value&&(A=r.container.value),r.listValue=ua(A,r.container.styles.listStyleType,!0),A+=i?-1:1}},ll=function(e){var t=new ol(e,null),A=new rl(t),i=[];return sl(t,A,A,i),al(t.container,i),A},cl=function(e,t){switch(t){case 0:return pl(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return pl(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return pl(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return pl(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},dl=function(e,t){switch(t){case 0:return pl(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return pl(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return pl(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);case 3:default:return pl(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},ul=function(e,t){switch(t){case 0:return pl(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return pl(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return pl(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);case 3:default:return pl(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},hl=function(e,t){switch(t){case 0:return gl(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return gl(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return gl(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);case 3:default:return gl(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},gl=function(e,t){var A=[];return za(e)?A.push(e.subdivide(.5,!1)):A.push(e),za(t)?A.push(t.subdivide(.5,!0)):A.push(t),A},pl=function(e,t,A,i){var n=[];return za(e)?n.push(e.subdivide(.5,!1)):n.push(e),za(A)?n.push(A.subdivide(.5,!0)):n.push(A),za(i)?n.push(i.subdivide(.5,!0).reverse()):n.push(i),za(t)?n.push(t.subdivide(.5,!1).reverse()):n.push(t),n},fl=function(e){var t=e.bounds,A=e.styles;return t.add(A.borderLeftWidth,A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth),-(A.borderTopWidth+A.borderBottomWidth))},ml=function(e){var t=e.styles,A=e.bounds,i=ei(t.paddingLeft,A.width),n=ei(t.paddingRight,A.width),r=ei(t.paddingTop,A.width),o=ei(t.paddingBottom,A.width);return A.add(i+t.borderLeftWidth,r+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+i+n),-(t.borderTopWidth+t.borderBottomWidth+r+o))},Bl=function(e,t){return 0===e?t.bounds:2===e?ml(t):fl(t)},wl=function(e,t){return 0===e?t.bounds:2===e?ml(t):fl(t)},vl=function(e,t,A){var i=Bl(_l(e.styles.backgroundOrigin,t),e),n=wl(_l(e.styles.backgroundClip,t),e),r=bl(_l(e.styles.backgroundSize,t),A,i),o=r[0],s=r[1],a=qA(_l(e.styles.backgroundPosition,t),i.width-o,i.height-s),l=Ql(_l(e.styles.backgroundRepeat,t),a,r,i,n),c=Math.round(i.left+a[0]),d=Math.round(i.top+a[1]);return[l,c,d,o,s]},yl=function(e){return KA(e)&&e.value===ji.AUTO},Cl=function(e){return"number"===typeof e},bl=function(e,t,A){var i=t[0],n=t[1],r=t[2],o=e[0],s=e[1];if(!o)return[0,0];if(WA(o)&&s&&WA(s))return[ei(o,A.width),ei(s,A.height)];var a=Cl(r);if(KA(o)&&(o.value===ji.CONTAIN||o.value===ji.COVER)){if(Cl(r)){var l=A.width/A.height;return l<r!==(o.value===ji.COVER)?[A.width,A.width/r]:[A.height*r,A.height]}return[A.width,A.height]}var c=Cl(i),d=Cl(n),u=c||d;if(yl(o)&&(!s||yl(s))){if(c&&d)return[i,n];if(!a&&!u)return[A.width,A.height];if(u&&a){var h=c?i:n*r,g=d?n:i/r;return[h,g]}var p=c?i:A.width,f=d?n:A.height;return[p,f]}if(a){var m=0,B=0;return WA(o)?m=ei(o,A.width):WA(s)&&(B=ei(s,A.height)),yl(o)?m=B*r:s&&!yl(s)||(B=m/r),[m,B]}var w=null,v=null;if(WA(o)?w=ei(o,A.width):s&&WA(s)&&(v=ei(s,A.height)),null===w||s&&!yl(s)||(v=c&&d?w/i*n:A.height),null!==v&&yl(o)&&(w=c&&d?v/n*i:A.width),null!==w&&null!==v)return[w,v];throw new Error("Unable to calculate background-size for element")},_l=function(e,t){var A=e[t];return"undefined"===typeof A?e[0]:A},Ql=function(e,t,A,i,n){var r=t[0],o=t[1],s=A[0],a=A[1];switch(e){case 2:return[new Ra(Math.round(i.left),Math.round(i.top+o)),new Ra(Math.round(i.left+i.width),Math.round(i.top+o)),new Ra(Math.round(i.left+i.width),Math.round(a+i.top+o)),new Ra(Math.round(i.left),Math.round(a+i.top+o))];case 3:return[new Ra(Math.round(i.left+r),Math.round(i.top)),new Ra(Math.round(i.left+r+s),Math.round(i.top)),new Ra(Math.round(i.left+r+s),Math.round(i.height+i.top)),new Ra(Math.round(i.left+r),Math.round(i.height+i.top))];case 1:return[new Ra(Math.round(i.left+r),Math.round(i.top+o)),new Ra(Math.round(i.left+r+s),Math.round(i.top+o)),new Ra(Math.round(i.left+r+s),Math.round(i.top+o+a)),new Ra(Math.round(i.left+r),Math.round(i.top+o+a))];default:return[new Ra(Math.round(n.left),Math.round(n.top)),new Ra(Math.round(n.left+n.width),Math.round(n.top)),new Ra(Math.round(n.left+n.width),Math.round(n.height+n.top)),new Ra(Math.round(n.left),Math.round(n.height+n.top))]}},Ul="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Fl="Hidden Text",xl=function(){function e(e){this._data={},this._document=e}return e.prototype.parseMetrics=function(e,t){var A=this._document.createElement("div"),i=this._document.createElement("img"),n=this._document.createElement("span"),r=this._document.body;A.style.visibility="hidden",A.style.fontFamily=e,A.style.fontSize=t,A.style.margin="0",A.style.padding="0",A.style.whiteSpace="nowrap",r.appendChild(A),i.src=Ul,i.width=1,i.height=1,i.style.margin="0",i.style.padding="0",i.style.verticalAlign="baseline",n.style.fontFamily=e,n.style.fontSize=t,n.style.margin="0",n.style.padding="0",n.appendChild(this._document.createTextNode(Fl)),A.appendChild(n),A.appendChild(i);var o=i.offsetTop-n.offsetTop+2;A.removeChild(n),A.appendChild(this._document.createTextNode(Fl)),A.style.lineHeight="normal",i.style.verticalAlign="super";var s=i.offsetTop-A.offsetTop+2;return r.removeChild(A),{baseline:o,middle:s}},e.prototype.getMetrics=function(e,t){var A=e+" "+t;return"undefined"===typeof this._data[A]&&(this._data[A]=this.parseMetrics(e,t)),this._data[A]},e}(),El=function(){function e(e,t){this.context=e,this.options=t}return e}(),kl=1e4,Il=function(e){function A(t,A){var i=e.call(this,t,A)||this;return i._activeEffects=[],i.canvas=A.canvas?A.canvas:document.createElement("canvas"),i.ctx=i.canvas.getContext("2d"),A.canvas||(i.canvas.width=Math.floor(A.width*A.scale),i.canvas.height=Math.floor(A.height*A.scale),i.canvas.style.width=A.width+"px",i.canvas.style.height=A.height+"px"),i.fontMetrics=new xl(document),i.ctx.scale(i.options.scale,i.options.scale),i.ctx.translate(-A.x,-A.y),i.ctx.textBaseline="bottom",i._activeEffects=[],i.context.logger.debug("Canvas renderer initialized ("+A.width+"x"+A.height+") with scale "+A.scale),i}return t(A,e),A.prototype.applyEffects=function(e){var t=this;while(this._activeEffects.length)this.popEffect();e.forEach((function(e){return t.applyEffect(e)}))},A.prototype.applyEffect=function(e){this.ctx.save(),Al(e)&&(this.ctx.globalAlpha=e.opacity),el(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),tl(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},A.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},A.prototype.renderStack=function(e){return i(this,void 0,void 0,(function(){var t;return n(this,(function(A){switch(A.label){case 0:return t=e.element.container.styles,t.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:A.sent(),A.label=2;case 2:return[2]}}))}))},A.prototype.renderNode=function(e){return i(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return mr(e.container.flags,16),e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(e)];case 2:t.sent(),t.label=3;case 3:return[2]}}))}))},A.prototype.renderTextWithLetterSpacing=function(e,t,A){var i=this;if(0===t)this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+A);else{var n=Xo(e.text);n.reduce((function(t,n){return i.ctx.fillText(n,t,e.bounds.top+A),t+i.ctx.measureText(n).width}),e.bounds.left)}},A.prototype.createFontStyle=function(e){var t=e.fontVariant.filter((function(e){return"normal"===e||"small-caps"===e})).join(""),A=Ol(e.fontFamily).join(", "),i=TA(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,t,e.fontWeight,i,A].join(" "),A,i]},A.prototype.renderTextNode=function(e,t){return i(this,void 0,void 0,(function(){var A,i,r,o,s,a,l,c,d=this;return n(this,(function(n){return A=this.createFontStyle(t),i=A[0],r=A[1],o=A[2],this.ctx.font=i,this.ctx.direction=1===t.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",s=this.fontMetrics.getMetrics(r,o),a=s.baseline,l=s.middle,c=t.paintOrder,e.textBounds.forEach((function(e){c.forEach((function(A){switch(A){case 0:d.ctx.fillStyle=di(t.color),d.renderTextWithLetterSpacing(e,t.letterSpacing,a);var i=t.textShadow;i.length&&e.text.trim().length&&(i.slice(0).reverse().forEach((function(A){d.ctx.shadowColor=di(A.color),d.ctx.shadowOffsetX=A.offsetX.number*d.options.scale,d.ctx.shadowOffsetY=A.offsetY.number*d.options.scale,d.ctx.shadowBlur=A.blur.number,d.renderTextWithLetterSpacing(e,t.letterSpacing,a)})),d.ctx.shadowColor="",d.ctx.shadowOffsetX=0,d.ctx.shadowOffsetY=0,d.ctx.shadowBlur=0),t.textDecorationLine.length&&(d.ctx.fillStyle=di(t.textDecorationColor||t.color),t.textDecorationLine.forEach((function(t){switch(t){case 1:d.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top+a),e.bounds.width,1);break;case 2:d.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top),e.bounds.width,1);break;case 3:d.ctx.fillRect(e.bounds.left,Math.ceil(e.bounds.top+l),e.bounds.width,1);break}})));break;case 1:t.webkitTextStrokeWidth&&e.text.trim().length&&(d.ctx.strokeStyle=di(t.webkitTextStrokeColor),d.ctx.lineWidth=t.webkitTextStrokeWidth,d.ctx.lineJoin=window.chrome?"miter":"round",d.ctx.strokeText(e.text,e.bounds.left,e.bounds.top+a)),d.ctx.strokeStyle="",d.ctx.lineWidth=0,d.ctx.lineJoin="miter";break}}))})),[2]}))}))},A.prototype.renderReplacedElement=function(e,t,A){if(A&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var i=ml(e),n=Xa(t);this.path(n),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(A,0,0,e.intrinsicWidth,e.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},A.prototype.renderNodeContent=function(e){return i(this,void 0,void 0,(function(){var t,i,r,s,a,l,c,d,u,h,g,p,f,m,B,w,v,y,C;return n(this,(function(n){switch(n.label){case 0:this.applyEffects(e.getEffects(4)),t=e.container,i=e.curves,r=t.styles,s=0,a=t.textNodes,n.label=1;case 1:return s<a.length?(l=a[s],[4,this.renderTextNode(l,r)]):[3,4];case 2:n.sent(),n.label=3;case 3:return s++,[3,1];case 4:if(!(t instanceof rs))return[3,8];n.label=5;case 5:return n.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return w=n.sent(),this.renderReplacedElement(t,i,w),[3,8];case 7:return n.sent(),this.context.logger.error("Error loading image "+t.src),[3,8];case 8:if(t instanceof os&&this.renderReplacedElement(t,i,t.canvas),!(t instanceof ss))return[3,12];n.label=9;case 9:return n.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return w=n.sent(),this.renderReplacedElement(t,i,w),[3,12];case 11:return n.sent(),this.context.logger.error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof ys&&t.tree?(c=new A(this.context,{scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,width:t.width,height:t.height}),[4,c.render(t.tree)]):[3,14];case 13:d=n.sent(),t.width&&t.height&&this.ctx.drawImage(d,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),n.label=14;case 14:if(t instanceof Bs&&(u=Math.min(t.bounds.width,t.bounds.height),t.type===gs?t.checked&&(this.ctx.save(),this.path([new Ra(t.bounds.left+.39363*u,t.bounds.top+.79*u),new Ra(t.bounds.left+.16*u,t.bounds.top+.5549*u),new Ra(t.bounds.left+.27347*u,t.bounds.top+.44071*u),new Ra(t.bounds.left+.39694*u,t.bounds.top+.5649*u),new Ra(t.bounds.left+.72983*u,t.bounds.top+.23*u),new Ra(t.bounds.left+.84*u,t.bounds.top+.34085*u),new Ra(t.bounds.left+.39363*u,t.bounds.top+.79*u)]),this.ctx.fillStyle=di(ms),this.ctx.fill(),this.ctx.restore()):t.type===ps&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+u/2,t.bounds.top+u/2,u/4,0,2*Math.PI,!0),this.ctx.fillStyle=di(ms),this.ctx.fill(),this.ctx.restore())),Dl(t)&&t.value.length){switch(h=this.createFontStyle(r),y=h[0],g=h[1],p=this.fontMetrics.getMetrics(y,g).baseline,this.ctx.font=y,this.ctx.fillStyle=di(r.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Hl(t.styles.textAlign),C=ml(t),f=0,t.styles.textAlign){case 1:f+=C.width/2;break;case 2:f+=C.width;break}m=C.add(f,0,0,-C.height/2+1),this.ctx.save(),this.path([new Ra(C.left,C.top),new Ra(C.left+C.width,C.top),new Ra(C.left+C.width,C.top+C.height),new Ra(C.left,C.top+C.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new jo(t.value,m),r.letterSpacing,p),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!mr(t.styles.display,2048))return[3,20];if(null===t.styles.listStyleImage)return[3,19];if(B=t.styles.listStyleImage,0!==B.type)return[3,18];w=void 0,v=B.url,n.label=15;case 15:return n.trys.push([15,17,,18]),[4,this.context.cache.match(v)];case 16:return w=n.sent(),this.ctx.drawImage(w,t.bounds.left-(w.width+10),t.bounds.top),[3,18];case 17:return n.sent(),this.context.logger.error("Error loading list-style-image "+v),[3,18];case 18:return[3,20];case 19:e.listValue&&-1!==t.styles.listStyleType&&(y=this.createFontStyle(r)[0],this.ctx.font=y,this.ctx.fillStyle=di(r.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",C=new o(t.bounds.left,t.bounds.top+ei(t.styles.paddingTop,t.bounds.width),t.bounds.width,Dn(r.lineHeight,r.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new jo(e.listValue,C),r.letterSpacing,Dn(r.lineHeight,r.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),n.label=20;case 20:return[2]}}))}))},A.prototype.renderStackContent=function(e){return i(this,void 0,void 0,(function(){var t,A,i,r,o,s,a,l,c,d,u,h,g,p,f;return n(this,(function(n){switch(n.label){case 0:return mr(e.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:n.sent(),t=0,A=e.negativeZIndex,n.label=2;case 2:return t<A.length?(f=A[t],[4,this.renderStack(f)]):[3,5];case 3:n.sent(),n.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:n.sent(),i=0,r=e.nonInlineLevel,n.label=7;case 7:return i<r.length?(f=r[i],[4,this.renderNode(f)]):[3,10];case 8:n.sent(),n.label=9;case 9:return i++,[3,7];case 10:o=0,s=e.nonPositionedFloats,n.label=11;case 11:return o<s.length?(f=s[o],[4,this.renderStack(f)]):[3,14];case 12:n.sent(),n.label=13;case 13:return o++,[3,11];case 14:a=0,l=e.nonPositionedInlineLevel,n.label=15;case 15:return a<l.length?(f=l[a],[4,this.renderStack(f)]):[3,18];case 16:n.sent(),n.label=17;case 17:return a++,[3,15];case 18:c=0,d=e.inlineLevel,n.label=19;case 19:return c<d.length?(f=d[c],[4,this.renderNode(f)]):[3,22];case 20:n.sent(),n.label=21;case 21:return c++,[3,19];case 22:u=0,h=e.zeroOrAutoZIndexOrTransformedOrOpacity,n.label=23;case 23:return u<h.length?(f=h[u],[4,this.renderStack(f)]):[3,26];case 24:n.sent(),n.label=25;case 25:return u++,[3,23];case 26:g=0,p=e.positiveZIndex,n.label=27;case 27:return g<p.length?(f=p[g],[4,this.renderStack(f)]):[3,30];case 28:n.sent(),n.label=29;case 29:return g++,[3,27];case 30:return[2]}}))}))},A.prototype.mask=function(e){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()},A.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},A.prototype.formatPath=function(e){var t=this;e.forEach((function(e,A){var i=za(e)?e.start:e;0===A?t.ctx.moveTo(i.x,i.y):t.ctx.lineTo(i.x,i.y),za(e)&&t.ctx.bezierCurveTo(e.startControl.x,e.startControl.y,e.endControl.x,e.endControl.y,e.end.x,e.end.y)}))},A.prototype.renderRepeat=function(e,t,A,i){this.path(e),this.ctx.fillStyle=t,this.ctx.translate(A,i),this.ctx.fill(),this.ctx.translate(-A,-i)},A.prototype.resizeImage=function(e,t,A){var i;if(e.width===t&&e.height===A)return e;var n=null!==(i=this.canvas.ownerDocument)&&void 0!==i?i:document,r=n.createElement("canvas");r.width=Math.max(1,t),r.height=Math.max(1,A);var o=r.getContext("2d");return o.drawImage(e,0,0,e.width,e.height,0,0,t,A),r},A.prototype.renderBackgroundImage=function(e){return i(this,void 0,void 0,(function(){var t,A,i,r,o,s;return n(this,(function(a){switch(a.label){case 0:t=e.styles.backgroundImage.length-1,A=function(A){var r,o,s,a,l,c,d,u,h,g,p,f,m,B,w,v,y,C,b,_,Q,U,F,x,E,k,I,D,S,H,L;return n(this,(function(n){switch(n.label){case 0:if(0!==A.type)return[3,5];r=void 0,o=A.url,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,i.context.cache.match(o)];case 2:return r=n.sent(),[3,4];case 3:return n.sent(),i.context.logger.error("Error loading background-image "+o),[3,4];case 4:return r&&(s=vl(e,t,[r.width,r.height,r.width/r.height]),v=s[0],U=s[1],F=s[2],b=s[3],_=s[4],B=i.ctx.createPattern(i.resizeImage(r,b,_),"repeat"),i.renderRepeat(v,B,U,F)),[3,6];case 5:Ri(A)?(a=vl(e,t,[null,null,null]),v=a[0],U=a[1],F=a[2],b=a[3],_=a[4],l=Qi(A.angle,b,_),c=l[0],d=l[1],u=l[2],h=l[3],g=l[4],p=document.createElement("canvas"),p.width=b,p.height=_,f=p.getContext("2d"),m=f.createLinearGradient(d,h,u,g),bi(A.stops,c).forEach((function(e){return m.addColorStop(e.stop,di(e.color))})),f.fillStyle=m,f.fillRect(0,0,b,_),b>0&&_>0&&(B=i.ctx.createPattern(p,"repeat"),i.renderRepeat(v,B,U,F))):Vi(A)&&(w=vl(e,t,[null,null,null]),v=w[0],y=w[1],C=w[2],b=w[3],_=w[4],Q=0===A.position.length?[JA]:A.position,U=ei(Q[0],b),F=ei(Q[Q.length-1],_),x=xi(A,U,F,b,_),E=x[0],k=x[1],E>0&&k>0&&(I=i.ctx.createRadialGradient(y+U,C+F,0,y+U,C+F,E),bi(A.stops,2*E).forEach((function(e){return I.addColorStop(e.stop,di(e.color))})),i.path(v),i.ctx.fillStyle=I,E!==k?(D=e.bounds.left+.5*e.bounds.width,S=e.bounds.top+.5*e.bounds.height,H=k/E,L=1/H,i.ctx.save(),i.ctx.translate(D,S),i.ctx.transform(1,0,0,H,0,0),i.ctx.translate(-D,-S),i.ctx.fillRect(y,L*(C-S)+S,b,_*L),i.ctx.restore()):i.ctx.fill())),n.label=6;case 6:return t--,[2]}}))},i=this,r=0,o=e.styles.backgroundImage.slice(0).reverse(),a.label=1;case 1:return r<o.length?(s=o[r],[5,A(s)]):[3,4];case 2:a.sent(),a.label=3;case 3:return r++,[3,1];case 4:return[2]}}))}))},A.prototype.renderSolidBorder=function(e,t,A){return i(this,void 0,void 0,(function(){return n(this,(function(i){return this.path(cl(A,t)),this.ctx.fillStyle=di(e),this.ctx.fill(),[2]}))}))},A.prototype.renderDoubleBorder=function(e,t,A,r){return i(this,void 0,void 0,(function(){var i,o;return n(this,(function(n){switch(n.label){case 0:return t<3?[4,this.renderSolidBorder(e,A,r)]:[3,2];case 1:return n.sent(),[2];case 2:return i=dl(r,A),this.path(i),this.ctx.fillStyle=di(e),this.ctx.fill(),o=ul(r,A),this.path(o),this.ctx.fill(),[2]}}))}))},A.prototype.renderNodeBackgroundAndBorders=function(e){return i(this,void 0,void 0,(function(){var t,A,i,r,o,s,a,l,c=this;return n(this,(function(n){switch(n.label){case 0:return this.applyEffects(e.getEffects(2)),t=e.container.styles,A=!ci(t.backgroundColor)||t.backgroundImage.length,i=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],r=Sl(_l(t.backgroundClip,0),e.curves),A||t.boxShadow.length?(this.ctx.save(),this.path(r),this.ctx.clip(),ci(t.backgroundColor)||(this.ctx.fillStyle=di(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:n.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach((function(t){c.ctx.save();var A=Wa(e.curves),i=t.inset?0:kl,n=nl(A,-i+(t.inset?1:-1)*t.spread.number,(t.inset?1:-1)*t.spread.number,t.spread.number*(t.inset?-2:2),t.spread.number*(t.inset?-2:2));t.inset?(c.path(A),c.ctx.clip(),c.mask(n)):(c.mask(A),c.ctx.clip(),c.path(n)),c.ctx.shadowOffsetX=t.offsetX.number+i,c.ctx.shadowOffsetY=t.offsetY.number,c.ctx.shadowColor=di(t.color),c.ctx.shadowBlur=t.blur.number,c.ctx.fillStyle=t.inset?di(t.color):"rgba(0,0,0,1)",c.ctx.fill(),c.ctx.restore()})),n.label=2;case 2:o=0,s=0,a=i,n.label=3;case 3:return s<a.length?(l=a[s],0!==l.style&&!ci(l.color)&&l.width>0?2!==l.style?[3,5]:[4,this.renderDashedDottedBorder(l.color,l.width,o,e.curves,2)]:[3,11]):[3,13];case 4:return n.sent(),[3,11];case 5:return 3!==l.style?[3,7]:[4,this.renderDashedDottedBorder(l.color,l.width,o,e.curves,3)];case 6:return n.sent(),[3,11];case 7:return 4!==l.style?[3,9]:[4,this.renderDoubleBorder(l.color,l.width,o,e.curves)];case 8:return n.sent(),[3,11];case 9:return[4,this.renderSolidBorder(l.color,o,e.curves)];case 10:n.sent(),n.label=11;case 11:o++,n.label=12;case 12:return s++,[3,3];case 13:return[2]}}))}))},A.prototype.renderDashedDottedBorder=function(e,t,A,r,o){return i(this,void 0,void 0,(function(){var i,s,a,l,c,d,u,h,g,p,f,m,B,w,v,y;return n(this,(function(n){return this.ctx.save(),i=hl(r,A),s=cl(r,A),2===o&&(this.path(s),this.ctx.clip()),za(s[0])?(a=s[0].start.x,l=s[0].start.y):(a=s[0].x,l=s[0].y),za(s[1])?(c=s[1].end.x,d=s[1].end.y):(c=s[1].x,d=s[1].y),u=0===A||2===A?Math.abs(a-c):Math.abs(l-d),this.ctx.beginPath(),3===o?this.formatPath(i):this.formatPath(s.slice(0,2)),h=t<3?3*t:2*t,g=t<3?2*t:t,3===o&&(h=t,g=t),p=!0,u<=2*h?p=!1:u<=2*h+g?(f=u/(2*h+g),h*=f,g*=f):(m=Math.floor((u+g)/(h+g)),B=(u-m*h)/(m-1),w=(u-(m+1)*h)/m,g=w<=0||Math.abs(g-B)<Math.abs(g-w)?B:w),p&&(3===o?this.ctx.setLineDash([0,h+g]):this.ctx.setLineDash([h,g])),3===o?(this.ctx.lineCap="round",this.ctx.lineWidth=t):this.ctx.lineWidth=2*t+1.1,this.ctx.strokeStyle=di(e),this.ctx.stroke(),this.ctx.setLineDash([]),2===o&&(za(s[0])&&(v=s[3],y=s[0],this.ctx.beginPath(),this.formatPath([new Ra(v.end.x,v.end.y),new Ra(y.start.x,y.start.y)]),this.ctx.stroke()),za(s[1])&&(v=s[1],y=s[2],this.ctx.beginPath(),this.formatPath([new Ra(v.end.x,v.end.y),new Ra(y.start.x,y.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]}))}))},A.prototype.render=function(e){return i(this,void 0,void 0,(function(){var t;return n(this,(function(A){switch(A.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=di(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),t=ll(e),[4,this.renderStack(t)];case 1:return A.sent(),this.applyEffects([]),[2,this.canvas]}}))}))},A}(El),Dl=function(e){return e instanceof vs||(e instanceof ws||e instanceof Bs&&e.type!==ps&&e.type!==gs)},Sl=function(e,t){switch(e){case 0:return Wa(t);case 2:return Ya(t);case 1:default:return Xa(t)}},Hl=function(e){switch(e){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Ll=["-apple-system","system-ui"],Ol=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter((function(e){return-1===Ll.indexOf(e)})):e},Ml=function(e){function A(t,A){var i=e.call(this,t,A)||this;return i.canvas=A.canvas?A.canvas:document.createElement("canvas"),i.ctx=i.canvas.getContext("2d"),i.options=A,i.canvas.width=Math.floor(A.width*A.scale),i.canvas.height=Math.floor(A.height*A.scale),i.canvas.style.width=A.width+"px",i.canvas.style.height=A.height+"px",i.ctx.scale(i.options.scale,i.options.scale),i.ctx.translate(-A.x,-A.y),i.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+A.width+"x"+A.height+" at "+A.x+","+A.y+") with scale "+A.scale),i}return t(A,e),A.prototype.render=function(e){return i(this,void 0,void 0,(function(){var t,A;return n(this,(function(i){switch(i.label){case 0:return t=Vo(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e),[4,Tl(t)];case 1:return A=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=di(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(A,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}}))}))},A}(El),Tl=function(e){return new Promise((function(t,A){var i=new Image;i.onload=function(){t(i)},i.onerror=A,i.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))}))},Nl=function(){function e(e){var t=e.id,A=e.enabled;this.id=t,this.enabled=A,this.start=Date.now()}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!==typeof window&&window.console&&"function"===typeof console.debug?console.debug.apply(console,r([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&"undefined"!==typeof window&&window.console&&"function"===typeof console.info&&console.info.apply(console,r([this.id,this.getTime()+"ms"],e))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!==typeof window&&window.console&&"function"===typeof console.warn?console.warn.apply(console,r([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!==typeof window&&window.console&&"function"===typeof console.error?console.error.apply(console,r([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.instances={},e}(),Kl=function(){function e(t,A){var i;this.windowBounds=A,this.instanceName="#"+e.instanceCount++,this.logger=new Nl({id:this.instanceName,enabled:t.logging}),this.cache=null!==(i=t.cache)&&void 0!==i?i:new Sa(this,t)}return e.instanceCount=1,e}(),Pl=function(e,t){return void 0===t&&(t={}),Rl(e,t)};"undefined"!==typeof window&&Da.setContext(window);var Rl=function(e,t){return i(void 0,void 0,void 0,(function(){var i,r,l,c,d,u,h,g,p,f,m,B,w,v,y,C,b,_,Q,U,F,x,E,k,I,D,S,H,L,O,M,T,N,K,P,R,V,G,z;return n(this,(function(n){switch(n.label){case 0:if(!e||"object"!==typeof e)return[2,Promise.reject("Invalid element provided as first argument")];if(i=e.ownerDocument,!i)throw new Error("Element is not attached to a Document");if(r=i.defaultView,!r)throw new Error("Document is not attached to a Window");return l={allowTaint:null!==(E=t.allowTaint)&&void 0!==E&&E,imageTimeout:null!==(k=t.imageTimeout)&&void 0!==k?k:15e3,proxy:t.proxy,useCORS:null!==(I=t.useCORS)&&void 0!==I&&I},c=A({logging:null===(D=t.logging)||void 0===D||D,cache:t.cache},l),d={windowWidth:null!==(S=t.windowWidth)&&void 0!==S?S:r.innerWidth,windowHeight:null!==(H=t.windowHeight)&&void 0!==H?H:r.innerHeight,scrollX:null!==(L=t.scrollX)&&void 0!==L?L:r.pageXOffset,scrollY:null!==(O=t.scrollY)&&void 0!==O?O:r.pageYOffset},u=new o(d.scrollX,d.scrollY,d.windowWidth,d.windowHeight),h=new Kl(c,u),g=null!==(M=t.foreignObjectRendering)&&void 0!==M&&M,p={allowTaint:null!==(T=t.allowTaint)&&void 0!==T&&T,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:g,copyStyles:g},h.logger.debug("Starting document clone with size "+u.width+"x"+u.height+" scrolled to "+-u.left+","+-u.top),f=new ga(h,e,p),m=f.clonedReferenceElement,m?[4,f.toIFrame(i,u)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return B=n.sent(),w=Ms(m)||Ls(m)?a(m.ownerDocument):s(h,m),v=w.width,y=w.height,C=w.left,b=w.top,_=Vl(h,m,t.backgroundColor),Q={canvas:t.canvas,backgroundColor:_,scale:null!==(K=null!==(N=t.scale)&&void 0!==N?N:r.devicePixelRatio)&&void 0!==K?K:1,x:(null!==(P=t.x)&&void 0!==P?P:0)+C,y:(null!==(R=t.y)&&void 0!==R?R:0)+b,width:null!==(V=t.width)&&void 0!==V?V:Math.ceil(v),height:null!==(G=t.height)&&void 0!==G?G:Math.ceil(y)},g?(h.logger.debug("Document cloned, using foreign object rendering"),x=new Ml(h,Q),[4,x.render(m)]):[3,3];case 2:return U=n.sent(),[3,5];case 3:return h.logger.debug("Document cloned, element located at "+C+","+b+" with size "+v+"x"+y+" using computed rendering"),h.logger.debug("Starting DOM parsing"),F=Qs(h,m),_===F.styles.backgroundColor&&(F.styles.backgroundColor=wi.TRANSPARENT),h.logger.debug("Starting renderer for element at "+Q.x+","+Q.y+" with size "+Q.width+"x"+Q.height),x=new Il(h,Q),[4,x.render(F)];case 4:U=n.sent(),n.label=5;case 5:return(null===(z=t.removeContainer)||void 0===z||z)&&(ga.destroy(B)||h.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),h.logger.debug("Finished rendering"),[2,U]}}))}))},Vl=function(e,t,A){var i=t.ownerDocument,n=i.documentElement?Bi(e,getComputedStyle(i.documentElement).backgroundColor):wi.TRANSPARENT,r=i.body?Bi(e,getComputedStyle(i.body).backgroundColor):wi.TRANSPARENT,o="string"===typeof A?Bi(e,A):null===A?wi.TRANSPARENT:4294967295;return t===i.documentElement?ci(n)?ci(r)?o:r:n:o};return Pl}))},5733:function(e,t,A){
|
||
/*!
|
||
|
||
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
|
||
<http://stuartk.com/jszip>
|
||
|
||
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
|
||
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
|
||
|
||
JSZip uses the library pako released under the MIT license :
|
||
https://github.com/nodeca/pako/blob/main/LICENSE
|
||
*/
|
||
!function(t){e.exports=t()}((function(){return function e(t,A,i){function n(o,s){if(!A[o]){if(!t[o]){var a=void 0;if(!s&&a)return require(o,!0);if(r)return r(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var c=A[o]={exports:{}};t[o][0].call(c.exports,(function(e){var A=t[o][1][e];return n(A||e)}),c,c.exports,e,t,A,i)}return A[o].exports}for(var r=void 0,o=0;o<i.length;o++)n(i[o]);return n}({1:[function(e,t,A){"use strict";var i=e("./utils"),n=e("./support"),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";A.encode=function(e){for(var t,A,n,o,s,a,l,c=[],d=0,u=e.length,h=u,g="string"!==i.getTypeOf(e);d<e.length;)h=u-d,n=g?(t=e[d++],A=d<u?e[d++]:0,d<u?e[d++]:0):(t=e.charCodeAt(d++),A=d<u?e.charCodeAt(d++):0,d<u?e.charCodeAt(d++):0),o=t>>2,s=(3&t)<<4|A>>4,a=1<h?(15&A)<<2|n>>6:64,l=2<h?63&n:64,c.push(r.charAt(o)+r.charAt(s)+r.charAt(a)+r.charAt(l));return c.join("")},A.decode=function(e){var t,A,i,o,s,a,l=0,c=0,d="data:";if(e.substr(0,d.length)===d)throw new Error("Invalid base64 input, it looks like a data url.");var u,h=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===r.charAt(64)&&h--,e.charAt(e.length-2)===r.charAt(64)&&h--,h%1!=0)throw new Error("Invalid base64 input, bad content length.");for(u=n.uint8array?new Uint8Array(0|h):new Array(0|h);l<e.length;)t=r.indexOf(e.charAt(l++))<<2|(o=r.indexOf(e.charAt(l++)))>>4,A=(15&o)<<4|(s=r.indexOf(e.charAt(l++)))>>2,i=(3&s)<<6|(a=r.indexOf(e.charAt(l++))),u[c++]=t,64!==s&&(u[c++]=A),64!==a&&(u[c++]=i);return u}},{"./support":30,"./utils":32}],2:[function(e,t,A){"use strict";var i=e("./external"),n=e("./stream/DataWorker"),r=e("./stream/Crc32Probe"),o=e("./stream/DataLengthProbe");function s(e,t,A,i,n){this.compressedSize=e,this.uncompressedSize=t,this.crc32=A,this.compression=i,this.compressedContent=n}s.prototype={getContentWorker:function(){var e=new n(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new n(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,A){return e.pipe(new r).pipe(new o("uncompressedSize")).pipe(t.compressWorker(A)).pipe(new o("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,A){"use strict";var i=e("./stream/GenericWorker");A.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},A.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,A){"use strict";var i=e("./utils"),n=function(){for(var e,t=[],A=0;A<256;A++){e=A;for(var i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;t[A]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==i.getTypeOf(e)?function(e,t,A,i){var r=n,o=i+A;e^=-1;for(var s=i;s<o;s++)e=e>>>8^r[255&(e^t[s])];return-1^e}(0|t,e,e.length,0):function(e,t,A,i){var r=n,o=i+A;e^=-1;for(var s=i;s<o;s++)e=e>>>8^r[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,A){"use strict";A.base64=!1,A.binary=!1,A.dir=!1,A.createFolders=!0,A.date=null,A.compression=null,A.compressionOptions=null,A.comment=null,A.unixPermissions=null,A.dosPermissions=null},{}],6:[function(e,t,A){"use strict";var i=null;i="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:i}},{lie:37}],7:[function(e,t,A){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,n=e("pako"),r=e("./utils"),o=e("./stream/GenericWorker"),s=i?"uint8array":"array";function a(e,t){o.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}A.magic="\b\0",r.inherits(a,o),a.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(r.transformTo(s,e.data),!1)},a.prototype.flush=function(){o.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},a.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},a.prototype._createPako=function(){this._pako=new n[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},A.compressWorker=function(e){return new a("Deflate",e)},A.uncompressWorker=function(){return new a("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,A){"use strict";function i(e,t){var A,i="";for(A=0;A<t;A++)i+=String.fromCharCode(255&e),e>>>=8;return i}function n(e,t,A,n,o,c){var d,u,h=e.file,g=e.compression,p=c!==s.utf8encode,f=r.transformTo("string",c(h.name)),m=r.transformTo("string",s.utf8encode(h.name)),B=h.comment,w=r.transformTo("string",c(B)),v=r.transformTo("string",s.utf8encode(B)),y=m.length!==h.name.length,C=v.length!==B.length,b="",_="",Q="",U=h.dir,F=h.date,x={crc32:0,compressedSize:0,uncompressedSize:0};t&&!A||(x.crc32=e.crc32,x.compressedSize=e.compressedSize,x.uncompressedSize=e.uncompressedSize);var E=0;t&&(E|=8),p||!y&&!C||(E|=2048);var k=0,I=0;U&&(k|=16),"UNIX"===o?(I=798,k|=function(e,t){var A=e;return e||(A=t?16893:33204),(65535&A)<<16}(h.unixPermissions,U)):(I=20,k|=function(e){return 63&(e||0)}(h.dosPermissions)),d=F.getUTCHours(),d<<=6,d|=F.getUTCMinutes(),d<<=5,d|=F.getUTCSeconds()/2,u=F.getUTCFullYear()-1980,u<<=4,u|=F.getUTCMonth()+1,u<<=5,u|=F.getUTCDate(),y&&(_=i(1,1)+i(a(f),4)+m,b+="up"+i(_.length,2)+_),C&&(Q=i(1,1)+i(a(w),4)+v,b+="uc"+i(Q.length,2)+Q);var D="";return D+="\n\0",D+=i(E,2),D+=g.magic,D+=i(d,2),D+=i(u,2),D+=i(x.crc32,4),D+=i(x.compressedSize,4),D+=i(x.uncompressedSize,4),D+=i(f.length,2),D+=i(b.length,2),{fileRecord:l.LOCAL_FILE_HEADER+D+f+b,dirRecord:l.CENTRAL_FILE_HEADER+i(I,2)+D+i(w.length,2)+"\0\0\0\0"+i(k,4)+i(n,4)+f+b+w}}var r=e("../utils"),o=e("../stream/GenericWorker"),s=e("../utf8"),a=e("../crc32"),l=e("../signature");function c(e,t,A,i){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=A,this.encodeFileName=i,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}r.inherits(c,o),c.prototype.push=function(e){var t=e.meta.percent||0,A=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,o.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:A?(t+100*(A-i-1))/A:100}}))},c.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var A=n(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:A.fileRecord,meta:{percent:0}})}else this.accumulate=!0},c.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,A=n(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(A.dirRecord),t)this.push({data:function(e){return l.DATA_DESCRIPTOR+i(e.crc32,4)+i(e.compressedSize,4)+i(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:A.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},c.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var A=this.bytesWritten-e,n=function(e,t,A,n,o){var s=r.transformTo("string",o(n));return l.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(e,2)+i(e,2)+i(t,4)+i(A,4)+i(s.length,2)+s}(this.dirRecords.length,A,e,this.zipComment,this.encodeFileName);this.push({data:n,meta:{percent:100}})},c.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},c.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()})),e.on("error",(function(e){t.error(e)})),this},c.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},c.prototype.error=function(e){var t=this._sources;if(!o.prototype.error.call(this,e))return!1;for(var A=0;A<t.length;A++)try{t[A].error(e)}catch(e){}return!0},c.prototype.lock=function(){o.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=c},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,A){"use strict";var i=e("../compressions"),n=e("./ZipFileWorker");A.generateWorker=function(e,t,A){var r=new n(t.streamFiles,A,t.platform,t.encodeFileName),o=0;try{e.forEach((function(e,A){o++;var n=function(e,t){var A=e||t,n=i[A];if(!n)throw new Error(A+" is not a valid compression method !");return n}(A.options.compression,t.compression),s=A.options.compressionOptions||t.compressionOptions||{},a=A.dir,l=A.date;A._compressWorker(n,s).withStreamInfo("file",{name:e,dir:a,date:l,comment:A.comment||"",unixPermissions:A.unixPermissions,dosPermissions:A.dosPermissions}).pipe(r)})),r.entriesCount=o}catch(e){r.error(e)}return r}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,A){"use strict";function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new i;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(i.prototype=e("./object")).loadAsync=e("./load"),i.support=e("./support"),i.defaults=e("./defaults"),i.version="3.10.1",i.loadAsync=function(e,t){return(new i).loadAsync(e,t)},i.external=e("./external"),t.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,A){"use strict";var i=e("./utils"),n=e("./external"),r=e("./utf8"),o=e("./zipEntries"),s=e("./stream/Crc32Probe"),a=e("./nodejsUtils");function l(e){return new n.Promise((function(t,A){var i=e.decompressed.getContentWorker().pipe(new s);i.on("error",(function(e){A(e)})).on("end",(function(){i.streamInfo.crc32!==e.decompressed.crc32?A(new Error("Corrupted zip : CRC32 mismatch")):t()})).resume()}))}t.exports=function(e,t){var A=this;return t=i.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:r.utf8decode}),a.isNode&&a.isStream(e)?n.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then((function(e){var A=new o(t);return A.load(e),A})).then((function(e){var A=[n.Promise.resolve(e)],i=e.files;if(t.checkCRC32)for(var r=0;r<i.length;r++)A.push(l(i[r]));return n.Promise.all(A)})).then((function(e){for(var n=e.shift(),r=n.files,o=0;o<r.length;o++){var s=r[o],a=s.fileNameStr,l=i.resolve(s.fileNameStr);A.file(l,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:t.createFolders}),s.dir||(A.file(l).unsafeOriginalName=a)}return n.zipComment.length&&(A.comment=n.zipComment),A}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,A){"use strict";var i=e("../utils"),n=e("../stream/GenericWorker");function r(e,t){n.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}i.inherits(r,n),r.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",(function(e){t.push({data:e,meta:{percent:0}})})).on("error",(function(e){t.isPaused?this.generatedError=e:t.error(e)})).on("end",(function(){t.isPaused?t._upstreamEnded=!0:t.end()}))},r.prototype.pause=function(){return!!n.prototype.pause.call(this)&&(this._stream.pause(),!0)},r.prototype.resume=function(){return!!n.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=r},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,A){"use strict";var i=e("readable-stream").Readable;function n(e,t,A){i.call(this,t),this._helper=e;var n=this;e.on("data",(function(e,t){n.push(e)||n._helper.pause(),A&&A(t)})).on("error",(function(e){n.emit("error",e)})).on("end",(function(){n.push(null)}))}e("../utils").inherits(n,i),n.prototype._read=function(){this._helper.resume()},t.exports=n},{"../utils":32,"readable-stream":16}],14:[function(e,t,A){"use strict";t.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,A){"use strict";function i(e,t,A){var i,n=r.getTypeOf(t),s=r.extend(A||{},a);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(e=p(e)),s.createFolders&&(i=g(e))&&f.call(this,i,!0);var d="string"===n&&!1===s.binary&&!1===s.base64;A&&void 0!==A.binary||(s.binary=!d),(t instanceof l&&0===t.uncompressedSize||s.dir||!t||0===t.length)&&(s.base64=!1,s.binary=!0,t="",s.compression="STORE",n="string");var m=null;m=t instanceof l||t instanceof o?t:u.isNode&&u.isStream(t)?new h(e,t):r.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var B=new c(e,m,s);this.files[e]=B}var n=e("./utf8"),r=e("./utils"),o=e("./stream/GenericWorker"),s=e("./stream/StreamHelper"),a=e("./defaults"),l=e("./compressedObject"),c=e("./zipObject"),d=e("./generate"),u=e("./nodejsUtils"),h=e("./nodejs/NodejsStreamInputAdapter"),g=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},p=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},f=function(e,t){return t=void 0!==t?t:a.createFolders,e=p(e),this.files[e]||i.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function m(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var B={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,A,i;for(t in this.files)i=this.files[t],(A=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(A,i)},filter:function(e){var t=[];return this.forEach((function(A,i){e(A,i)&&t.push(i)})),t},file:function(e,t,A){if(1!==arguments.length)return e=this.root+e,i.call(this,e,t,A),this;if(m(e)){var n=e;return this.filter((function(e,t){return!t.dir&&n.test(e)}))}var r=this.files[this.root+e];return r&&!r.dir?r:null},folder:function(e){if(!e)return this;if(m(e))return this.filter((function(t,A){return A.dir&&e.test(t)}));var t=this.root+e,A=f.call(this,t),i=this.clone();return i.root=A.name,i},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var A=this.filter((function(t,A){return A.name.slice(0,e.length)===e})),i=0;i<A.length;i++)delete this.files[A[i].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,A={};try{if((A=r.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:n.utf8encode})).type=A.type.toLowerCase(),A.compression=A.compression.toUpperCase(),"binarystring"===A.type&&(A.type="string"),!A.type)throw new Error("No output type specified.");r.checkSupport(A.type),"darwin"!==A.platform&&"freebsd"!==A.platform&&"linux"!==A.platform&&"sunos"!==A.platform||(A.platform="UNIX"),"win32"===A.platform&&(A.platform="DOS");var i=A.comment||this.comment||"";t=d.generateWorker(this,A,i)}catch(e){(t=new o("error")).error(e)}return new s(t,A.type||"string",A.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=B},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,A){"use strict";t.exports=e("stream")},{stream:void 0}],17:[function(e,t,A){"use strict";var i=e("./DataReader");function n(e){i.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(n,i),n.prototype.byteAt=function(e){return this.data[this.zero+e]},n.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),A=e.charCodeAt(1),i=e.charCodeAt(2),n=e.charCodeAt(3),r=this.length-4;0<=r;--r)if(this.data[r]===t&&this.data[r+1]===A&&this.data[r+2]===i&&this.data[r+3]===n)return r-this.zero;return-1},n.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),A=e.charCodeAt(1),i=e.charCodeAt(2),n=e.charCodeAt(3),r=this.readData(4);return t===r[0]&&A===r[1]&&i===r[2]&&n===r[3]},n.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=n},{"../utils":32,"./DataReader":18}],18:[function(e,t,A){"use strict";var i=e("../utils");function n(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}n.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,A=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)A=(A<<8)+this.byteAt(t);return this.index+=e,A},readString:function(e){return i.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=n},{"../utils":32}],19:[function(e,t,A){"use strict";var i=e("./Uint8ArrayReader");function n(e){i.call(this,e)}e("../utils").inherits(n,i),n.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=n},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,A){"use strict";var i=e("./DataReader");function n(e){i.call(this,e)}e("../utils").inherits(n,i),n.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},n.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},n.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},n.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=n},{"../utils":32,"./DataReader":18}],21:[function(e,t,A){"use strict";var i=e("./ArrayReader");function n(e){i.call(this,e)}e("../utils").inherits(n,i),n.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=n},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,A){"use strict";var i=e("../utils"),n=e("../support"),r=e("./ArrayReader"),o=e("./StringReader"),s=e("./NodeBufferReader"),a=e("./Uint8ArrayReader");t.exports=function(e){var t=i.getTypeOf(e);return i.checkSupport(t),"string"!==t||n.uint8array?"nodebuffer"===t?new s(e):n.uint8array?new a(i.transformTo("uint8array",e)):new r(i.transformTo("array",e)):new o(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,A){"use strict";A.LOCAL_FILE_HEADER="PK",A.CENTRAL_FILE_HEADER="PK",A.CENTRAL_DIRECTORY_END="PK",A.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",A.ZIP64_CENTRAL_DIRECTORY_END="PK",A.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,t,A){"use strict";var i=e("./GenericWorker"),n=e("../utils");function r(e){i.call(this,"ConvertWorker to "+e),this.destType=e}n.inherits(r,i),r.prototype.processChunk=function(e){this.push({data:n.transformTo(this.destType,e.data),meta:e.meta})},t.exports=r},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,A){"use strict";var i=e("./GenericWorker"),n=e("../crc32");function r(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(r,i),r.prototype.processChunk=function(e){this.streamInfo.crc32=n(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=r},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,A){"use strict";var i=e("../utils"),n=e("./GenericWorker");function r(e){n.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}i.inherits(r,n),r.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}n.prototype.processChunk.call(this,e)},t.exports=r},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,A){"use strict";var i=e("../utils"),n=e("./GenericWorker");function r(e){n.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=i.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}i.inherits(r,n),r.prototype.cleanUp=function(){n.prototype.cleanUp.call(this),this.data=null},r.prototype.resume=function(){return!!n.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},r.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},r.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=r},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,A){"use strict";function i(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var A=0;A<this._listeners[e].length;A++)this._listeners[e][A].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.end()})),e.on("error",(function(e){t.error(e)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=i},{}],29:[function(e,t,A){"use strict";var i=e("../utils"),n=e("./ConvertWorker"),r=e("./GenericWorker"),o=e("../base64"),s=e("../support"),a=e("../external"),l=null;if(s.nodestream)try{l=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function c(e,t){return new a.Promise((function(A,n){var r=[],s=e._internalType,a=e._outputType,l=e._mimeType;e.on("data",(function(e,A){r.push(e),t&&t(A)})).on("error",(function(e){r=[],n(e)})).on("end",(function(){try{var e=function(e,t,A){switch(e){case"blob":return i.newBlob(i.transformTo("arraybuffer",t),A);case"base64":return o.encode(t);default:return i.transformTo(e,t)}}(a,function(e,t){var A,i=0,n=null,r=0;for(A=0;A<t.length;A++)r+=t[A].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(n=new Uint8Array(r),A=0;A<t.length;A++)n.set(t[A],i),i+=t[A].length;return n;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(s,r),l);A(e)}catch(e){n(e)}r=[]})).resume()}))}function d(e,t,A){var o=t;switch(t){case"blob":case"arraybuffer":o="uint8array";break;case"base64":o="string"}try{this._internalType=o,this._outputType=t,this._mimeType=A,i.checkSupport(o),this._worker=e.pipe(new n(o)),e.lock()}catch(e){this._worker=new r("error"),this._worker.error(e)}}d.prototype={accumulate:function(e){return c(this,e)},on:function(e,t){var A=this;return"data"===e?this._worker.on(e,(function(e){t.call(A,e.data,e.meta)})):this._worker.on(e,(function(){i.delay(t,arguments,A)})),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(i.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new l(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=d},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,A){"use strict";if(A.base64=!0,A.array=!0,A.string=!0,A.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,A.nodebuffer="undefined"!=typeof Buffer,A.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)A.blob=!1;else{var i=new ArrayBuffer(0);try{A.blob=0===new Blob([i],{type:"application/zip"}).size}catch(e){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);n.append(i),A.blob=0===n.getBlob("application/zip").size}catch(e){A.blob=!1}}}try{A.nodestream=!!e("readable-stream").Readable}catch(e){A.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,A){"use strict";for(var i=e("./utils"),n=e("./support"),r=e("./nodejsUtils"),o=e("./stream/GenericWorker"),s=new Array(256),a=0;a<256;a++)s[a]=252<=a?6:248<=a?5:240<=a?4:224<=a?3:192<=a?2:1;function l(){o.call(this,"utf-8 decode"),this.leftOver=null}function c(){o.call(this,"utf-8 encode")}s[254]=s[254]=1,A.utf8encode=function(e){return n.nodebuffer?r.newBufferFrom(e,"utf-8"):function(e){var t,A,i,r,o,s=e.length,a=0;for(r=0;r<s;r++)55296==(64512&(A=e.charCodeAt(r)))&&r+1<s&&56320==(64512&(i=e.charCodeAt(r+1)))&&(A=65536+(A-55296<<10)+(i-56320),r++),a+=A<128?1:A<2048?2:A<65536?3:4;for(t=n.uint8array?new Uint8Array(a):new Array(a),r=o=0;o<a;r++)55296==(64512&(A=e.charCodeAt(r)))&&r+1<s&&56320==(64512&(i=e.charCodeAt(r+1)))&&(A=65536+(A-55296<<10)+(i-56320),r++),A<128?t[o++]=A:(A<2048?t[o++]=192|A>>>6:(A<65536?t[o++]=224|A>>>12:(t[o++]=240|A>>>18,t[o++]=128|A>>>12&63),t[o++]=128|A>>>6&63),t[o++]=128|63&A);return t}(e)},A.utf8decode=function(e){return n.nodebuffer?i.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,A,n,r,o=e.length,a=new Array(2*o);for(t=A=0;t<o;)if((n=e[t++])<128)a[A++]=n;else if(4<(r=s[n]))a[A++]=65533,t+=r-1;else{for(n&=2===r?31:3===r?15:7;1<r&&t<o;)n=n<<6|63&e[t++],r--;1<r?a[A++]=65533:n<65536?a[A++]=n:(n-=65536,a[A++]=55296|n>>10&1023,a[A++]=56320|1023&n)}return a.length!==A&&(a.subarray?a=a.subarray(0,A):a.length=A),i.applyFromCharCode(a)}(e=i.transformTo(n.uint8array?"uint8array":"array",e))},i.inherits(l,o),l.prototype.processChunk=function(e){var t=i.transformTo(n.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(n.uint8array){var r=t;(t=new Uint8Array(r.length+this.leftOver.length)).set(this.leftOver,0),t.set(r,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var o=function(e,t){var A;for((t=t||e.length)>e.length&&(t=e.length),A=t-1;0<=A&&128==(192&e[A]);)A--;return A<0||0===A?t:A+s[e[A]]>t?A:t}(t),a=t;o!==t.length&&(n.uint8array?(a=t.subarray(0,o),this.leftOver=t.subarray(o,t.length)):(a=t.slice(0,o),this.leftOver=t.slice(o,t.length))),this.push({data:A.utf8decode(a),meta:e.meta})},l.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:A.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},A.Utf8DecodeWorker=l,i.inherits(c,o),c.prototype.processChunk=function(e){this.push({data:A.utf8encode(e.data),meta:e.meta})},A.Utf8EncodeWorker=c},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,A){"use strict";var i=e("./support"),n=e("./base64"),r=e("./nodejsUtils"),o=e("./external");function s(e){return e}function a(e,t){for(var A=0;A<e.length;++A)t[A]=255&e.charCodeAt(A);return t}e("setimmediate"),A.newBlob=function(t,i){A.checkSupport("blob");try{return new Blob([t],{type:i})}catch(e){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return n.append(t),n.getBlob(i)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var l={stringifyByChunk:function(e,t,A){var i=[],n=0,r=e.length;if(r<=A)return String.fromCharCode.apply(null,e);for(;n<r;)"array"===t||"nodebuffer"===t?i.push(String.fromCharCode.apply(null,e.slice(n,Math.min(n+A,r)))):i.push(String.fromCharCode.apply(null,e.subarray(n,Math.min(n+A,r)))),n+=A;return i.join("")},stringifyByChar:function(e){for(var t="",A=0;A<e.length;A++)t+=String.fromCharCode(e[A]);return t},applyCanBeUsed:{uint8array:function(){try{return i.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return i.nodebuffer&&1===String.fromCharCode.apply(null,r.allocBuffer(1)).length}catch(e){return!1}}()}};function c(e){var t=65536,i=A.getTypeOf(e),n=!0;if("uint8array"===i?n=l.applyCanBeUsed.uint8array:"nodebuffer"===i&&(n=l.applyCanBeUsed.nodebuffer),n)for(;1<t;)try{return l.stringifyByChunk(e,i,t)}catch(e){t=Math.floor(t/2)}return l.stringifyByChar(e)}function d(e,t){for(var A=0;A<e.length;A++)t[A]=e[A];return t}A.applyFromCharCode=c;var u={};u.string={string:s,array:function(e){return a(e,new Array(e.length))},arraybuffer:function(e){return u.string.uint8array(e).buffer},uint8array:function(e){return a(e,new Uint8Array(e.length))},nodebuffer:function(e){return a(e,r.allocBuffer(e.length))}},u.array={string:c,array:s,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return r.newBufferFrom(e)}},u.arraybuffer={string:function(e){return c(new Uint8Array(e))},array:function(e){return d(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:s,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return r.newBufferFrom(new Uint8Array(e))}},u.uint8array={string:c,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:s,nodebuffer:function(e){return r.newBufferFrom(e)}},u.nodebuffer={string:c,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return u.nodebuffer.uint8array(e).buffer},uint8array:function(e){return d(e,new Uint8Array(e.length))},nodebuffer:s},A.transformTo=function(e,t){if(t=t||"",!e)return t;A.checkSupport(e);var i=A.getTypeOf(t);return u[i][e](t)},A.resolve=function(e){for(var t=e.split("/"),A=[],i=0;i<t.length;i++){var n=t[i];"."===n||""===n&&0!==i&&i!==t.length-1||(".."===n?A.pop():A.push(n))}return A.join("/")},A.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":i.nodebuffer&&r.isBuffer(e)?"nodebuffer":i.uint8array&&e instanceof Uint8Array?"uint8array":i.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},A.checkSupport=function(e){if(!i[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},A.MAX_VALUE_16BITS=65535,A.MAX_VALUE_32BITS=-1,A.pretty=function(e){var t,A,i="";for(A=0;A<(e||"").length;A++)i+="\\x"+((t=e.charCodeAt(A))<16?"0":"")+t.toString(16).toUpperCase();return i},A.delay=function(e,t,A){setImmediate((function(){e.apply(A||null,t||[])}))},A.inherits=function(e,t){function A(){}A.prototype=t.prototype,e.prototype=new A},A.extend=function(){var e,t,A={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===A[t]&&(A[t]=arguments[e][t]);return A},A.prepareContent=function(e,t,r,s,l){return o.Promise.resolve(t).then((function(e){return i.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new o.Promise((function(t,A){var i=new FileReader;i.onload=function(e){t(e.target.result)},i.onerror=function(e){A(e.target.error)},i.readAsArrayBuffer(e)})):e})).then((function(t){var c=A.getTypeOf(t);return c?("arraybuffer"===c?t=A.transformTo("uint8array",t):"string"===c&&(l?t=n.decode(t):r&&!0!==s&&(t=function(e){return a(e,i.uint8array?new Uint8Array(e.length):new Array(e.length))}(t))),t):o.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,A){"use strict";var i=e("./reader/readerFor"),n=e("./utils"),r=e("./signature"),o=e("./zipEntry"),s=e("./support");function a(e){this.files=[],this.loadOptions=e}a.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+n.pretty(t)+", expected "+n.pretty(e)+")")}},isSignature:function(e,t){var A=this.reader.index;this.reader.setIndex(e);var i=this.reader.readString(4)===t;return this.reader.setIndex(A),i},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?"uint8array":"array",A=n.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(A)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,A,i=this.zip64EndOfCentralSize-44;0<i;)e=this.reader.readInt(2),t=this.reader.readInt(4),A=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:A}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(r.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(r.CENTRAL_FILE_HEADER);)(e=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(r.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,r.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(r.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===n.MAX_VALUE_16BITS||this.diskWithCentralDirStart===n.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===n.MAX_VALUE_16BITS||this.centralDirRecords===n.MAX_VALUE_16BITS||this.centralDirSize===n.MAX_VALUE_32BITS||this.centralDirOffset===n.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(r.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(r.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,r.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(r.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(r.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var A=this.centralDirOffset+this.centralDirSize;this.zip64&&(A+=20,A+=12+this.zip64EndOfCentralSize);var i=t-A;if(0<i)this.isSignature(t,r.CENTRAL_FILE_HEADER)||(this.reader.zero=i);else if(i<0)throw new Error("Corrupted zip: missing "+Math.abs(i)+" bytes.")},prepareReader:function(e){this.reader=i(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=a},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,A){"use strict";var i=e("./reader/readerFor"),n=e("./utils"),r=e("./compressedObject"),o=e("./crc32"),s=e("./utf8"),a=e("./compressions"),l=e("./support");function c(e,t){this.options=e,this.loadOptions=t}c.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,A;if(e.skip(22),this.fileNameLength=e.readInt(2),A=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(A),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in a)if(Object.prototype.hasOwnProperty.call(a,t)&&a[t].magic===e)return a[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+n.pretty(this.compressionMethod)+" unknown (inner file : "+n.transformTo("string",this.fileName)+")");this.decompressed=new r(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=i(this.extraFields[1].value);this.uncompressedSize===n.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===n.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===n.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===n.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,A,i,n=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<n;)t=e.readInt(2),A=e.readInt(2),i=e.readData(A),this.extraFields[t]={id:t,length:A,value:i};e.setIndex(n)},handleUTF8:function(){var e=l.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var A=n.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(A)}var i=this.findExtraFieldUnicodeComment();if(null!==i)this.fileCommentStr=i;else{var r=n.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(r)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=i(e.value);return 1!==t.readInt(1)||o(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=i(e.value);return 1!==t.readInt(1)||o(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null}},t.exports=c},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,A){"use strict";function i(e,t,A){this.name=e,this.dir=A.dir,this.date=A.date,this.comment=A.comment,this.unixPermissions=A.unixPermissions,this.dosPermissions=A.dosPermissions,this._data=t,this._dataBinary=A.binary,this.options={compression:A.compression,compressionOptions:A.compressionOptions}}var n=e("./stream/StreamHelper"),r=e("./stream/DataWorker"),o=e("./utf8"),s=e("./compressedObject"),a=e("./stream/GenericWorker");i.prototype={internalStream:function(e){var t=null,A="string";try{if(!e)throw new Error("No output type specified.");var i="string"===(A=e.toLowerCase())||"text"===A;"binarystring"!==A&&"text"!==A||(A="string"),t=this._decompressWorker();var r=!this._dataBinary;r&&!i&&(t=t.pipe(new o.Utf8EncodeWorker)),!r&&i&&(t=t.pipe(new o.Utf8DecodeWorker))}catch(e){(t=new a("error")).error(e)}return new n(t,A,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var A=this._decompressWorker();return this._dataBinary||(A=A.pipe(new o.Utf8EncodeWorker)),s.createWorkerFrom(A,e,t)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof a?this._data:new r(this._data)}};for(var l=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],c=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<l.length;d++)i.prototype[l[d]]=c;t.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,i){(function(e){"use strict";var A,i,n=e.MutationObserver||e.WebKitMutationObserver;if(n){var r=0,o=new n(c),s=e.document.createTextNode("");o.observe(s,{characterData:!0}),A=function(){s.data=r=++r%2}}else if(e.setImmediate||void 0===e.MessageChannel)A="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){c(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(c,0)};else{var a=new e.MessageChannel;a.port1.onmessage=c,A=function(){a.port2.postMessage(0)}}var l=[];function c(){var e,t;i=!0;for(var A=l.length;A;){for(t=l,l=[],e=-1;++e<A;)t[e]();A=l.length}i=!1}t.exports=function(e){1!==l.push(e)||i||A()}}).call(this,"undefined"!=typeof A.g?A.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,A){"use strict";var i=e("immediate");function n(){}var r={},o=["REJECTED"],s=["FULFILLED"],a=["PENDING"];function l(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=a,this.queue=[],this.outcome=void 0,e!==n&&h(this,e)}function c(e,t,A){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof A&&(this.onRejected=A,this.callRejected=this.otherCallRejected)}function d(e,t,A){i((function(){var i;try{i=t(A)}catch(i){return r.reject(e,i)}i===e?r.reject(e,new TypeError("Cannot resolve promise with itself")):r.resolve(e,i)}))}function u(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function h(e,t){var A=!1;function i(t){A||(A=!0,r.reject(e,t))}function n(t){A||(A=!0,r.resolve(e,t))}var o=g((function(){t(n,i)}));"error"===o.status&&i(o.value)}function g(e,t){var A={};try{A.value=e(t),A.status="success"}catch(e){A.status="error",A.value=e}return A}(t.exports=l).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then((function(A){return t.resolve(e()).then((function(){return A}))}),(function(A){return t.resolve(e()).then((function(){throw A}))}))},l.prototype.catch=function(e){return this.then(null,e)},l.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===o)return this;var A=new this.constructor(n);return this.state!==a?d(A,this.state===s?e:t,this.outcome):this.queue.push(new c(A,e,t)),A},c.prototype.callFulfilled=function(e){r.resolve(this.promise,e)},c.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},c.prototype.callRejected=function(e){r.reject(this.promise,e)},c.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},r.resolve=function(e,t){var A=g(u,t);if("error"===A.status)return r.reject(e,A.value);var i=A.value;if(i)h(e,i);else{e.state=s,e.outcome=t;for(var n=-1,o=e.queue.length;++n<o;)e.queue[n].callFulfilled(t)}return e},r.reject=function(e,t){e.state=o,e.outcome=t;for(var A=-1,i=e.queue.length;++A<i;)e.queue[A].callRejected(t);return e},l.resolve=function(e){return e instanceof this?e:r.resolve(new this(n),e)},l.reject=function(e){var t=new this(n);return r.reject(t,e)},l.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var A=e.length,i=!1;if(!A)return this.resolve([]);for(var o=new Array(A),s=0,a=-1,l=new this(n);++a<A;)c(e[a],a);return l;function c(e,n){t.resolve(e).then((function(e){o[n]=e,++s!==A||i||(i=!0,r.resolve(l,o))}),(function(e){i||(i=!0,r.reject(l,e))}))}},l.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var A=e.length,i=!1;if(!A)return this.resolve([]);for(var o,s=-1,a=new this(n);++s<A;)o=e[s],t.resolve(o).then((function(e){i||(i=!0,r.resolve(a,e))}),(function(e){i||(i=!0,r.reject(a,e))}));return a}},{immediate:36}],38:[function(e,t,A){"use strict";var i={};(0,e("./lib/utils/common").assign)(i,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,A){"use strict";var i=e("./zlib/deflate"),n=e("./utils/common"),r=e("./utils/strings"),o=e("./zlib/messages"),s=e("./zlib/zstream"),a=Object.prototype.toString,l=0,c=-1,d=0,u=8;function h(e){if(!(this instanceof h))return new h(e);this.options=n.assign({level:c,method:u,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var A=i.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(A!==l)throw new Error(o[A]);if(t.header&&i.deflateSetHeader(this.strm,t.header),t.dictionary){var g;if(g="string"==typeof t.dictionary?r.string2buf(t.dictionary):"[object ArrayBuffer]"===a.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(A=i.deflateSetDictionary(this.strm,g))!==l)throw new Error(o[A]);this._dict_set=!0}}function g(e,t){var A=new h(t);if(A.push(e,!0),A.err)throw A.msg||o[A.err];return A.result}h.prototype.push=function(e,t){var A,o,s=this.strm,c=this.options.chunkSize;if(this.ended)return!1;o=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=r.string2buf(e):"[object ArrayBuffer]"===a.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new n.Buf8(c),s.next_out=0,s.avail_out=c),1!==(A=i.deflate(s,o))&&A!==l)return this.onEnd(A),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==o&&2!==o)||("string"===this.options.to?this.onData(r.buf2binstring(n.shrinkBuf(s.output,s.next_out))):this.onData(n.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==A);return 4===o?(A=i.deflateEnd(this.strm),this.onEnd(A),this.ended=!0,A===l):2!==o||(this.onEnd(l),!(s.avail_out=0))},h.prototype.onData=function(e){this.chunks.push(e)},h.prototype.onEnd=function(e){e===l&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=n.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},A.Deflate=h,A.deflate=g,A.deflateRaw=function(e,t){return(t=t||{}).raw=!0,g(e,t)},A.gzip=function(e,t){return(t=t||{}).gzip=!0,g(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,A){"use strict";var i=e("./zlib/inflate"),n=e("./utils/common"),r=e("./utils/strings"),o=e("./zlib/constants"),s=e("./zlib/messages"),a=e("./zlib/zstream"),l=e("./zlib/gzheader"),c=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=n.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var A=i.inflateInit2(this.strm,t.windowBits);if(A!==o.Z_OK)throw new Error(s[A]);this.header=new l,i.inflateGetHeader(this.strm,this.header)}function u(e,t){var A=new d(t);if(A.push(e,!0),A.err)throw A.msg||s[A.err];return A.result}d.prototype.push=function(e,t){var A,s,a,l,d,u,h=this.strm,g=this.options.chunkSize,p=this.options.dictionary,f=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,"string"==typeof e?h.input=r.binstring2buf(e):"[object ArrayBuffer]"===c.call(e)?h.input=new Uint8Array(e):h.input=e,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new n.Buf8(g),h.next_out=0,h.avail_out=g),(A=i.inflate(h,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&p&&(u="string"==typeof p?r.string2buf(p):"[object ArrayBuffer]"===c.call(p)?new Uint8Array(p):p,A=i.inflateSetDictionary(this.strm,u)),A===o.Z_BUF_ERROR&&!0===f&&(A=o.Z_OK,f=!1),A!==o.Z_STREAM_END&&A!==o.Z_OK)return this.onEnd(A),!(this.ended=!0);h.next_out&&(0!==h.avail_out&&A!==o.Z_STREAM_END&&(0!==h.avail_in||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(a=r.utf8border(h.output,h.next_out),l=h.next_out-a,d=r.buf2string(h.output,a),h.next_out=l,h.avail_out=g-l,l&&n.arraySet(h.output,h.output,a,l,0),this.onData(d)):this.onData(n.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(f=!0)}while((0<h.avail_in||0===h.avail_out)&&A!==o.Z_STREAM_END);return A===o.Z_STREAM_END&&(s=o.Z_FINISH),s===o.Z_FINISH?(A=i.inflateEnd(this.strm),this.onEnd(A),this.ended=!0,A===o.Z_OK):s!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),!(h.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=n.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},A.Inflate=d,A.inflate=u,A.inflateRaw=function(e,t){return(t=t||{}).raw=!0,u(e,t)},A.ungzip=u},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,A){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;A.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var A=t.shift();if(A){if("object"!=typeof A)throw new TypeError(A+"must be non-object");for(var i in A)A.hasOwnProperty(i)&&(e[i]=A[i])}}return e},A.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var n={arraySet:function(e,t,A,i,n){if(t.subarray&&e.subarray)e.set(t.subarray(A,A+i),n);else for(var r=0;r<i;r++)e[n+r]=t[A+r]},flattenChunks:function(e){var t,A,i,n,r,o;for(t=i=0,A=e.length;t<A;t++)i+=e[t].length;for(o=new Uint8Array(i),t=n=0,A=e.length;t<A;t++)r=e[t],o.set(r,n),n+=r.length;return o}},r={arraySet:function(e,t,A,i,n){for(var r=0;r<i;r++)e[n+r]=t[A+r]},flattenChunks:function(e){return[].concat.apply([],e)}};A.setTyped=function(e){e?(A.Buf8=Uint8Array,A.Buf16=Uint16Array,A.Buf32=Int32Array,A.assign(A,n)):(A.Buf8=Array,A.Buf16=Array,A.Buf32=Array,A.assign(A,r))},A.setTyped(i)},{}],42:[function(e,t,A){"use strict";var i=e("./common"),n=!0,r=!0;try{String.fromCharCode.apply(null,[0])}catch(e){n=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){r=!1}for(var o=new i.Buf8(256),s=0;s<256;s++)o[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function a(e,t){if(t<65537&&(e.subarray&&r||!e.subarray&&n))return String.fromCharCode.apply(null,i.shrinkBuf(e,t));for(var A="",o=0;o<t;o++)A+=String.fromCharCode(e[o]);return A}o[254]=o[254]=1,A.string2buf=function(e){var t,A,n,r,o,s=e.length,a=0;for(r=0;r<s;r++)55296==(64512&(A=e.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=e.charCodeAt(r+1)))&&(A=65536+(A-55296<<10)+(n-56320),r++),a+=A<128?1:A<2048?2:A<65536?3:4;for(t=new i.Buf8(a),r=o=0;o<a;r++)55296==(64512&(A=e.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=e.charCodeAt(r+1)))&&(A=65536+(A-55296<<10)+(n-56320),r++),A<128?t[o++]=A:(A<2048?t[o++]=192|A>>>6:(A<65536?t[o++]=224|A>>>12:(t[o++]=240|A>>>18,t[o++]=128|A>>>12&63),t[o++]=128|A>>>6&63),t[o++]=128|63&A);return t},A.buf2binstring=function(e){return a(e,e.length)},A.binstring2buf=function(e){for(var t=new i.Buf8(e.length),A=0,n=t.length;A<n;A++)t[A]=e.charCodeAt(A);return t},A.buf2string=function(e,t){var A,i,n,r,s=t||e.length,l=new Array(2*s);for(A=i=0;A<s;)if((n=e[A++])<128)l[i++]=n;else if(4<(r=o[n]))l[i++]=65533,A+=r-1;else{for(n&=2===r?31:3===r?15:7;1<r&&A<s;)n=n<<6|63&e[A++],r--;1<r?l[i++]=65533:n<65536?l[i++]=n:(n-=65536,l[i++]=55296|n>>10&1023,l[i++]=56320|1023&n)}return a(l,i)},A.utf8border=function(e,t){var A;for((t=t||e.length)>e.length&&(t=e.length),A=t-1;0<=A&&128==(192&e[A]);)A--;return A<0||0===A?t:A+o[e[A]]>t?A:t}},{"./common":41}],43:[function(e,t,A){"use strict";t.exports=function(e,t,A,i){for(var n=65535&e|0,r=e>>>16&65535|0,o=0;0!==A;){for(A-=o=2e3<A?2e3:A;r=r+(n=n+t[i++]|0)|0,--o;);n%=65521,r%=65521}return n|r<<16|0}},{}],44:[function(e,t,A){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,A){"use strict";var i=function(){for(var e,t=[],A=0;A<256;A++){e=A;for(var i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;t[A]=e}return t}();t.exports=function(e,t,A,n){var r=i,o=n+A;e^=-1;for(var s=n;s<o;s++)e=e>>>8^r[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,A){"use strict";var i,n=e("../utils/common"),r=e("./trees"),o=e("./adler32"),s=e("./crc32"),a=e("./messages"),l=0,c=4,d=0,u=-2,h=-1,g=4,p=2,f=8,m=9,B=286,w=30,v=19,y=2*B+1,C=15,b=3,_=258,Q=_+b+1,U=42,F=113,x=1,E=2,k=3,I=4;function D(e,t){return e.msg=a[t],t}function S(e){return(e<<1)-(4<e?9:0)}function H(e){for(var t=e.length;0<=--t;)e[t]=0}function L(e){var t=e.state,A=t.pending;A>e.avail_out&&(A=e.avail_out),0!==A&&(n.arraySet(e.output,t.pending_buf,t.pending_out,A,e.next_out),e.next_out+=A,t.pending_out+=A,e.total_out+=A,e.avail_out-=A,t.pending-=A,0===t.pending&&(t.pending_out=0))}function O(e,t){r._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,L(e.strm)}function M(e,t){e.pending_buf[e.pending++]=t}function T(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function N(e,t){var A,i,n=e.max_chain_length,r=e.strstart,o=e.prev_length,s=e.nice_match,a=e.strstart>e.w_size-Q?e.strstart-(e.w_size-Q):0,l=e.window,c=e.w_mask,d=e.prev,u=e.strstart+_,h=l[r+o-1],g=l[r+o];e.prev_length>=e.good_match&&(n>>=2),s>e.lookahead&&(s=e.lookahead);do{if(l[(A=t)+o]===g&&l[A+o-1]===h&&l[A]===l[r]&&l[++A]===l[r+1]){r+=2,A++;do{}while(l[++r]===l[++A]&&l[++r]===l[++A]&&l[++r]===l[++A]&&l[++r]===l[++A]&&l[++r]===l[++A]&&l[++r]===l[++A]&&l[++r]===l[++A]&&l[++r]===l[++A]&&r<u);if(i=_-(u-r),r=u-_,o<i){if(e.match_start=t,s<=(o=i))break;h=l[r+o-1],g=l[r+o]}}}while((t=d[t&c])>a&&0!=--n);return o<=e.lookahead?o:e.lookahead}function K(e){var t,A,i,r,a,l,c,d,u,h,g=e.w_size;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=g+(g-Q)){for(n.arraySet(e.window,e.window,g,g,0),e.match_start-=g,e.strstart-=g,e.block_start-=g,t=A=e.hash_size;i=e.head[--t],e.head[t]=g<=i?i-g:0,--A;);for(t=A=g;i=e.prev[--t],e.prev[t]=g<=i?i-g:0,--A;);r+=g}if(0===e.strm.avail_in)break;if(l=e.strm,c=e.window,d=e.strstart+e.lookahead,u=r,h=void 0,h=l.avail_in,u<h&&(h=u),A=0===h?0:(l.avail_in-=h,n.arraySet(c,l.input,l.next_in,h,d),1===l.state.wrap?l.adler=o(l.adler,c,h,d):2===l.state.wrap&&(l.adler=s(l.adler,c,h,d)),l.next_in+=h,l.total_in+=h,h),e.lookahead+=A,e.lookahead+e.insert>=b)for(a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+b-1])&e.hash_mask,e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,e.insert--,!(e.lookahead+e.insert<b)););}while(e.lookahead<Q&&0!==e.strm.avail_in)}function P(e,t){for(var A,i;;){if(e.lookahead<Q){if(K(e),e.lookahead<Q&&t===l)return x;if(0===e.lookahead)break}if(A=0,e.lookahead>=b&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+b-1])&e.hash_mask,A=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==A&&e.strstart-A<=e.w_size-Q&&(e.match_length=N(e,A)),e.match_length>=b)if(i=r._tr_tally(e,e.strstart-e.match_start,e.match_length-b),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=b){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+b-1])&e.hash_mask,A=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=r._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(O(e,!1),0===e.strm.avail_out))return x}return e.insert=e.strstart<b-1?e.strstart:b-1,t===c?(O(e,!0),0===e.strm.avail_out?k:I):e.last_lit&&(O(e,!1),0===e.strm.avail_out)?x:E}function R(e,t){for(var A,i,n;;){if(e.lookahead<Q){if(K(e),e.lookahead<Q&&t===l)return x;if(0===e.lookahead)break}if(A=0,e.lookahead>=b&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+b-1])&e.hash_mask,A=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=b-1,0!==A&&e.prev_length<e.max_lazy_match&&e.strstart-A<=e.w_size-Q&&(e.match_length=N(e,A),e.match_length<=5&&(1===e.strategy||e.match_length===b&&4096<e.strstart-e.match_start)&&(e.match_length=b-1)),e.prev_length>=b&&e.match_length<=e.prev_length){for(n=e.strstart+e.lookahead-b,i=r._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-b),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=n&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+b-1])&e.hash_mask,A=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=b-1,e.strstart++,i&&(O(e,!1),0===e.strm.avail_out))return x}else if(e.match_available){if((i=r._tr_tally(e,0,e.window[e.strstart-1]))&&O(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return x}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=r._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<b-1?e.strstart:b-1,t===c?(O(e,!0),0===e.strm.avail_out?k:I):e.last_lit&&(O(e,!1),0===e.strm.avail_out)?x:E}function V(e,t,A,i,n){this.good_length=e,this.max_lazy=t,this.nice_length=A,this.max_chain=i,this.func=n}function G(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=f,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new n.Buf16(2*y),this.dyn_dtree=new n.Buf16(2*(2*w+1)),this.bl_tree=new n.Buf16(2*(2*v+1)),H(this.dyn_ltree),H(this.dyn_dtree),H(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new n.Buf16(C+1),this.heap=new n.Buf16(2*B+1),H(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new n.Buf16(2*B+1),H(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function z(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=p,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?U:F,e.adler=2===t.wrap?0:1,t.last_flush=l,r._tr_init(t),d):D(e,u)}function j(e){var t=z(e);return t===d&&function(e){e.window_size=2*e.w_size,H(e.head),e.max_lazy_match=i[e.level].max_lazy,e.good_match=i[e.level].good_length,e.nice_match=i[e.level].nice_length,e.max_chain_length=i[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=b-1,e.match_available=0,e.ins_h=0}(e.state),t}function Z(e,t,A,i,r,o){if(!e)return u;var s=1;if(t===h&&(t=6),i<0?(s=0,i=-i):15<i&&(s=2,i-=16),r<1||m<r||A!==f||i<8||15<i||t<0||9<t||o<0||g<o)return D(e,u);8===i&&(i=9);var a=new G;return(e.state=a).strm=e,a.wrap=s,a.gzhead=null,a.w_bits=i,a.w_size=1<<a.w_bits,a.w_mask=a.w_size-1,a.hash_bits=r+7,a.hash_size=1<<a.hash_bits,a.hash_mask=a.hash_size-1,a.hash_shift=~~((a.hash_bits+b-1)/b),a.window=new n.Buf8(2*a.w_size),a.head=new n.Buf16(a.hash_size),a.prev=new n.Buf16(a.w_size),a.lit_bufsize=1<<r+6,a.pending_buf_size=4*a.lit_bufsize,a.pending_buf=new n.Buf8(a.pending_buf_size),a.d_buf=1*a.lit_bufsize,a.l_buf=3*a.lit_bufsize,a.level=t,a.strategy=o,a.method=A,j(e)}i=[new V(0,0,0,0,(function(e,t){var A=65535;for(A>e.pending_buf_size-5&&(A=e.pending_buf_size-5);;){if(e.lookahead<=1){if(K(e),0===e.lookahead&&t===l)return x;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+A;if((0===e.strstart||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,O(e,!1),0===e.strm.avail_out))return x;if(e.strstart-e.block_start>=e.w_size-Q&&(O(e,!1),0===e.strm.avail_out))return x}return e.insert=0,t===c?(O(e,!0),0===e.strm.avail_out?k:I):(e.strstart>e.block_start&&(O(e,!1),e.strm.avail_out),x)})),new V(4,4,8,4,P),new V(4,5,16,8,P),new V(4,6,32,32,P),new V(4,4,16,16,R),new V(8,16,32,32,R),new V(8,16,128,128,R),new V(8,32,128,256,R),new V(32,128,258,1024,R),new V(32,258,258,4096,R)],A.deflateInit=function(e,t){return Z(e,t,f,15,8,0)},A.deflateInit2=Z,A.deflateReset=j,A.deflateResetKeep=z,A.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?u:(e.state.gzhead=t,d):u},A.deflate=function(e,t){var A,n,o,a;if(!e||!e.state||5<t||t<0)return e?D(e,u):u;if(n=e.state,!e.output||!e.input&&0!==e.avail_in||666===n.status&&t!==c)return D(e,0===e.avail_out?-5:u);if(n.strm=e,A=n.last_flush,n.last_flush=t,n.status===U)if(2===n.wrap)e.adler=0,M(n,31),M(n,139),M(n,8),n.gzhead?(M(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),M(n,255&n.gzhead.time),M(n,n.gzhead.time>>8&255),M(n,n.gzhead.time>>16&255),M(n,n.gzhead.time>>24&255),M(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),M(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(M(n,255&n.gzhead.extra.length),M(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=s(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(M(n,0),M(n,0),M(n,0),M(n,0),M(n,0),M(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),M(n,3),n.status=F);else{var h=f+(n.w_bits-8<<4)<<8;h|=(2<=n.strategy||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(h|=32),h+=31-h%31,n.status=F,T(n,h),0!==n.strstart&&(T(n,e.adler>>>16),T(n,65535&e.adler)),e.adler=1}if(69===n.status)if(n.gzhead.extra){for(o=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>o&&(e.adler=s(e.adler,n.pending_buf,n.pending-o,o)),L(e),o=n.pending,n.pending!==n.pending_buf_size));)M(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>o&&(e.adler=s(e.adler,n.pending_buf,n.pending-o,o)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){o=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>o&&(e.adler=s(e.adler,n.pending_buf,n.pending-o,o)),L(e),o=n.pending,n.pending===n.pending_buf_size)){a=1;break}a=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,M(n,a)}while(0!==a);n.gzhead.hcrc&&n.pending>o&&(e.adler=s(e.adler,n.pending_buf,n.pending-o,o)),0===a&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){o=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>o&&(e.adler=s(e.adler,n.pending_buf,n.pending-o,o)),L(e),o=n.pending,n.pending===n.pending_buf_size)){a=1;break}a=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,M(n,a)}while(0!==a);n.gzhead.hcrc&&n.pending>o&&(e.adler=s(e.adler,n.pending_buf,n.pending-o,o)),0===a&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&L(e),n.pending+2<=n.pending_buf_size&&(M(n,255&e.adler),M(n,e.adler>>8&255),e.adler=0,n.status=F)):n.status=F),0!==n.pending){if(L(e),0===e.avail_out)return n.last_flush=-1,d}else if(0===e.avail_in&&S(t)<=S(A)&&t!==c)return D(e,-5);if(666===n.status&&0!==e.avail_in)return D(e,-5);if(0!==e.avail_in||0!==n.lookahead||t!==l&&666!==n.status){var g=2===n.strategy?function(e,t){for(var A;;){if(0===e.lookahead&&(K(e),0===e.lookahead)){if(t===l)return x;break}if(e.match_length=0,A=r._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,A&&(O(e,!1),0===e.strm.avail_out))return x}return e.insert=0,t===c?(O(e,!0),0===e.strm.avail_out?k:I):e.last_lit&&(O(e,!1),0===e.strm.avail_out)?x:E}(n,t):3===n.strategy?function(e,t){for(var A,i,n,o,s=e.window;;){if(e.lookahead<=_){if(K(e),e.lookahead<=_&&t===l)return x;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=b&&0<e.strstart&&(i=s[n=e.strstart-1])===s[++n]&&i===s[++n]&&i===s[++n]){o=e.strstart+_;do{}while(i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&n<o);e.match_length=_-(o-n),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=b?(A=r._tr_tally(e,1,e.match_length-b),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(A=r._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),A&&(O(e,!1),0===e.strm.avail_out))return x}return e.insert=0,t===c?(O(e,!0),0===e.strm.avail_out?k:I):e.last_lit&&(O(e,!1),0===e.strm.avail_out)?x:E}(n,t):i[n.level].func(n,t);if(g!==k&&g!==I||(n.status=666),g===x||g===k)return 0===e.avail_out&&(n.last_flush=-1),d;if(g===E&&(1===t?r._tr_align(n):5!==t&&(r._tr_stored_block(n,0,0,!1),3===t&&(H(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),L(e),0===e.avail_out))return n.last_flush=-1,d}return t!==c?d:n.wrap<=0?1:(2===n.wrap?(M(n,255&e.adler),M(n,e.adler>>8&255),M(n,e.adler>>16&255),M(n,e.adler>>24&255),M(n,255&e.total_in),M(n,e.total_in>>8&255),M(n,e.total_in>>16&255),M(n,e.total_in>>24&255)):(T(n,e.adler>>>16),T(n,65535&e.adler)),L(e),0<n.wrap&&(n.wrap=-n.wrap),0!==n.pending?d:1)},A.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==U&&69!==t&&73!==t&&91!==t&&103!==t&&t!==F&&666!==t?D(e,u):(e.state=null,t===F?D(e,-3):d):u},A.deflateSetDictionary=function(e,t){var A,i,r,s,a,l,c,h,g=t.length;if(!e||!e.state)return u;if(2===(s=(A=e.state).wrap)||1===s&&A.status!==U||A.lookahead)return u;for(1===s&&(e.adler=o(e.adler,t,g,0)),A.wrap=0,g>=A.w_size&&(0===s&&(H(A.head),A.strstart=0,A.block_start=0,A.insert=0),h=new n.Buf8(A.w_size),n.arraySet(h,t,g-A.w_size,A.w_size,0),t=h,g=A.w_size),a=e.avail_in,l=e.next_in,c=e.input,e.avail_in=g,e.next_in=0,e.input=t,K(A);A.lookahead>=b;){for(i=A.strstart,r=A.lookahead-(b-1);A.ins_h=(A.ins_h<<A.hash_shift^A.window[i+b-1])&A.hash_mask,A.prev[i&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=i,i++,--r;);A.strstart=i,A.lookahead=b-1,K(A)}return A.strstart+=A.lookahead,A.block_start=A.strstart,A.insert=A.lookahead,A.lookahead=0,A.match_length=A.prev_length=b-1,A.match_available=0,e.next_in=l,e.input=c,e.avail_in=a,A.wrap=s,d},A.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,A){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,t,A){"use strict";t.exports=function(e,t){var A,i,n,r,o,s,a,l,c,d,u,h,g,p,f,m,B,w,v,y,C,b,_,Q,U;A=e.state,i=e.next_in,Q=e.input,n=i+(e.avail_in-5),r=e.next_out,U=e.output,o=r-(t-e.avail_out),s=r+(e.avail_out-257),a=A.dmax,l=A.wsize,c=A.whave,d=A.wnext,u=A.window,h=A.hold,g=A.bits,p=A.lencode,f=A.distcode,m=(1<<A.lenbits)-1,B=(1<<A.distbits)-1;e:do{g<15&&(h+=Q[i++]<<g,g+=8,h+=Q[i++]<<g,g+=8),w=p[h&m];t:for(;;){if(h>>>=v=w>>>24,g-=v,0===(v=w>>>16&255))U[r++]=65535&w;else{if(!(16&v)){if(0==(64&v)){w=p[(65535&w)+(h&(1<<v)-1)];continue t}if(32&v){A.mode=12;break e}e.msg="invalid literal/length code",A.mode=30;break e}y=65535&w,(v&=15)&&(g<v&&(h+=Q[i++]<<g,g+=8),y+=h&(1<<v)-1,h>>>=v,g-=v),g<15&&(h+=Q[i++]<<g,g+=8,h+=Q[i++]<<g,g+=8),w=f[h&B];A:for(;;){if(h>>>=v=w>>>24,g-=v,!(16&(v=w>>>16&255))){if(0==(64&v)){w=f[(65535&w)+(h&(1<<v)-1)];continue A}e.msg="invalid distance code",A.mode=30;break e}if(C=65535&w,g<(v&=15)&&(h+=Q[i++]<<g,(g+=8)<v&&(h+=Q[i++]<<g,g+=8)),a<(C+=h&(1<<v)-1)){e.msg="invalid distance too far back",A.mode=30;break e}if(h>>>=v,g-=v,(v=r-o)<C){if(c<(v=C-v)&&A.sane){e.msg="invalid distance too far back",A.mode=30;break e}if(_=u,(b=0)===d){if(b+=l-v,v<y){for(y-=v;U[r++]=u[b++],--v;);b=r-C,_=U}}else if(d<v){if(b+=l+d-v,(v-=d)<y){for(y-=v;U[r++]=u[b++],--v;);if(b=0,d<y){for(y-=v=d;U[r++]=u[b++],--v;);b=r-C,_=U}}}else if(b+=d-v,v<y){for(y-=v;U[r++]=u[b++],--v;);b=r-C,_=U}for(;2<y;)U[r++]=_[b++],U[r++]=_[b++],U[r++]=_[b++],y-=3;y&&(U[r++]=_[b++],1<y&&(U[r++]=_[b++]))}else{for(b=r-C;U[r++]=U[b++],U[r++]=U[b++],U[r++]=U[b++],2<(y-=3););y&&(U[r++]=U[b++],1<y&&(U[r++]=U[b++]))}break}}break}}while(i<n&&r<s);i-=y=g>>3,h&=(1<<(g-=y<<3))-1,e.next_in=i,e.next_out=r,e.avail_in=i<n?n-i+5:5-(i-n),e.avail_out=r<s?s-r+257:257-(r-s),A.hold=h,A.bits=g}},{}],49:[function(e,t,A){"use strict";var i=e("../utils/common"),n=e("./adler32"),r=e("./crc32"),o=e("./inffast"),s=e("./inftrees"),a=1,l=2,c=0,d=-2,u=1,h=852,g=592;function p(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function f(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function m(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=u,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new i.Buf32(h),t.distcode=t.distdyn=new i.Buf32(g),t.sane=1,t.back=-1,c):d}function B(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,m(e)):d}function w(e,t){var A,i;return e&&e.state?(i=e.state,t<0?(A=0,t=-t):(A=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?d:(null!==i.window&&i.wbits!==t&&(i.window=null),i.wrap=A,i.wbits=t,B(e))):d}function v(e,t){var A,i;return e?(i=new f,(e.state=i).window=null,(A=w(e,t))!==c&&(e.state=null),A):d}var y,C,b=!0;function _(e){if(b){var t;for(y=new i.Buf32(512),C=new i.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(a,e.lens,0,288,y,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(l,e.lens,0,32,C,0,e.work,{bits:5}),b=!1}e.lencode=y,e.lenbits=9,e.distcode=C,e.distbits=5}function Q(e,t,A,n){var r,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new i.Buf8(o.wsize)),n>=o.wsize?(i.arraySet(o.window,t,A-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(n<(r=o.wsize-o.wnext)&&(r=n),i.arraySet(o.window,t,A-n,r,o.wnext),(n-=r)?(i.arraySet(o.window,t,A-n,n,0),o.wnext=n,o.whave=o.wsize):(o.wnext+=r,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=r))),0}A.inflateReset=B,A.inflateReset2=w,A.inflateResetKeep=m,A.inflateInit=function(e){return v(e,15)},A.inflateInit2=v,A.inflate=function(e,t){var A,h,g,f,m,B,w,v,y,C,b,U,F,x,E,k,I,D,S,H,L,O,M,T,N=0,K=new i.Buf8(4),P=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return d;12===(A=e.state).mode&&(A.mode=13),m=e.next_out,g=e.output,w=e.avail_out,f=e.next_in,h=e.input,B=e.avail_in,v=A.hold,y=A.bits,C=B,b=w,O=c;e:for(;;)switch(A.mode){case u:if(0===A.wrap){A.mode=13;break}for(;y<16;){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}if(2&A.wrap&&35615===v){K[A.check=0]=255&v,K[1]=v>>>8&255,A.check=r(A.check,K,2,0),y=v=0,A.mode=2;break}if(A.flags=0,A.head&&(A.head.done=!1),!(1&A.wrap)||(((255&v)<<8)+(v>>8))%31){e.msg="incorrect header check",A.mode=30;break}if(8!=(15&v)){e.msg="unknown compression method",A.mode=30;break}if(y-=4,L=8+(15&(v>>>=4)),0===A.wbits)A.wbits=L;else if(L>A.wbits){e.msg="invalid window size",A.mode=30;break}A.dmax=1<<L,e.adler=A.check=1,A.mode=512&v?10:12,y=v=0;break;case 2:for(;y<16;){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}if(A.flags=v,8!=(255&A.flags)){e.msg="unknown compression method",A.mode=30;break}if(57344&A.flags){e.msg="unknown header flags set",A.mode=30;break}A.head&&(A.head.text=v>>8&1),512&A.flags&&(K[0]=255&v,K[1]=v>>>8&255,A.check=r(A.check,K,2,0)),y=v=0,A.mode=3;case 3:for(;y<32;){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}A.head&&(A.head.time=v),512&A.flags&&(K[0]=255&v,K[1]=v>>>8&255,K[2]=v>>>16&255,K[3]=v>>>24&255,A.check=r(A.check,K,4,0)),y=v=0,A.mode=4;case 4:for(;y<16;){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}A.head&&(A.head.xflags=255&v,A.head.os=v>>8),512&A.flags&&(K[0]=255&v,K[1]=v>>>8&255,A.check=r(A.check,K,2,0)),y=v=0,A.mode=5;case 5:if(1024&A.flags){for(;y<16;){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}A.length=v,A.head&&(A.head.extra_len=v),512&A.flags&&(K[0]=255&v,K[1]=v>>>8&255,A.check=r(A.check,K,2,0)),y=v=0}else A.head&&(A.head.extra=null);A.mode=6;case 6:if(1024&A.flags&&(B<(U=A.length)&&(U=B),U&&(A.head&&(L=A.head.extra_len-A.length,A.head.extra||(A.head.extra=new Array(A.head.extra_len)),i.arraySet(A.head.extra,h,f,U,L)),512&A.flags&&(A.check=r(A.check,h,U,f)),B-=U,f+=U,A.length-=U),A.length))break e;A.length=0,A.mode=7;case 7:if(2048&A.flags){if(0===B)break e;for(U=0;L=h[f+U++],A.head&&L&&A.length<65536&&(A.head.name+=String.fromCharCode(L)),L&&U<B;);if(512&A.flags&&(A.check=r(A.check,h,U,f)),B-=U,f+=U,L)break e}else A.head&&(A.head.name=null);A.length=0,A.mode=8;case 8:if(4096&A.flags){if(0===B)break e;for(U=0;L=h[f+U++],A.head&&L&&A.length<65536&&(A.head.comment+=String.fromCharCode(L)),L&&U<B;);if(512&A.flags&&(A.check=r(A.check,h,U,f)),B-=U,f+=U,L)break e}else A.head&&(A.head.comment=null);A.mode=9;case 9:if(512&A.flags){for(;y<16;){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}if(v!==(65535&A.check)){e.msg="header crc mismatch",A.mode=30;break}y=v=0}A.head&&(A.head.hcrc=A.flags>>9&1,A.head.done=!0),e.adler=A.check=0,A.mode=12;break;case 10:for(;y<32;){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}e.adler=A.check=p(v),y=v=0,A.mode=11;case 11:if(0===A.havedict)return e.next_out=m,e.avail_out=w,e.next_in=f,e.avail_in=B,A.hold=v,A.bits=y,2;e.adler=A.check=1,A.mode=12;case 12:if(5===t||6===t)break e;case 13:if(A.last){v>>>=7&y,y-=7&y,A.mode=27;break}for(;y<3;){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}switch(A.last=1&v,y-=1,3&(v>>>=1)){case 0:A.mode=14;break;case 1:if(_(A),A.mode=20,6!==t)break;v>>>=2,y-=2;break e;case 2:A.mode=17;break;case 3:e.msg="invalid block type",A.mode=30}v>>>=2,y-=2;break;case 14:for(v>>>=7&y,y-=7&y;y<32;){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}if((65535&v)!=(v>>>16^65535)){e.msg="invalid stored block lengths",A.mode=30;break}if(A.length=65535&v,y=v=0,A.mode=15,6===t)break e;case 15:A.mode=16;case 16:if(U=A.length){if(B<U&&(U=B),w<U&&(U=w),0===U)break e;i.arraySet(g,h,f,U,m),B-=U,f+=U,w-=U,m+=U,A.length-=U;break}A.mode=12;break;case 17:for(;y<14;){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}if(A.nlen=257+(31&v),v>>>=5,y-=5,A.ndist=1+(31&v),v>>>=5,y-=5,A.ncode=4+(15&v),v>>>=4,y-=4,286<A.nlen||30<A.ndist){e.msg="too many length or distance symbols",A.mode=30;break}A.have=0,A.mode=18;case 18:for(;A.have<A.ncode;){for(;y<3;){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}A.lens[P[A.have++]]=7&v,v>>>=3,y-=3}for(;A.have<19;)A.lens[P[A.have++]]=0;if(A.lencode=A.lendyn,A.lenbits=7,M={bits:A.lenbits},O=s(0,A.lens,0,19,A.lencode,0,A.work,M),A.lenbits=M.bits,O){e.msg="invalid code lengths set",A.mode=30;break}A.have=0,A.mode=19;case 19:for(;A.have<A.nlen+A.ndist;){for(;k=(N=A.lencode[v&(1<<A.lenbits)-1])>>>16&255,I=65535&N,!((E=N>>>24)<=y);){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}if(I<16)v>>>=E,y-=E,A.lens[A.have++]=I;else{if(16===I){for(T=E+2;y<T;){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}if(v>>>=E,y-=E,0===A.have){e.msg="invalid bit length repeat",A.mode=30;break}L=A.lens[A.have-1],U=3+(3&v),v>>>=2,y-=2}else if(17===I){for(T=E+3;y<T;){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}y-=E,L=0,U=3+(7&(v>>>=E)),v>>>=3,y-=3}else{for(T=E+7;y<T;){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}y-=E,L=0,U=11+(127&(v>>>=E)),v>>>=7,y-=7}if(A.have+U>A.nlen+A.ndist){e.msg="invalid bit length repeat",A.mode=30;break}for(;U--;)A.lens[A.have++]=L}}if(30===A.mode)break;if(0===A.lens[256]){e.msg="invalid code -- missing end-of-block",A.mode=30;break}if(A.lenbits=9,M={bits:A.lenbits},O=s(a,A.lens,0,A.nlen,A.lencode,0,A.work,M),A.lenbits=M.bits,O){e.msg="invalid literal/lengths set",A.mode=30;break}if(A.distbits=6,A.distcode=A.distdyn,M={bits:A.distbits},O=s(l,A.lens,A.nlen,A.ndist,A.distcode,0,A.work,M),A.distbits=M.bits,O){e.msg="invalid distances set",A.mode=30;break}if(A.mode=20,6===t)break e;case 20:A.mode=21;case 21:if(6<=B&&258<=w){e.next_out=m,e.avail_out=w,e.next_in=f,e.avail_in=B,A.hold=v,A.bits=y,o(e,b),m=e.next_out,g=e.output,w=e.avail_out,f=e.next_in,h=e.input,B=e.avail_in,v=A.hold,y=A.bits,12===A.mode&&(A.back=-1);break}for(A.back=0;k=(N=A.lencode[v&(1<<A.lenbits)-1])>>>16&255,I=65535&N,!((E=N>>>24)<=y);){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}if(k&&0==(240&k)){for(D=E,S=k,H=I;k=(N=A.lencode[H+((v&(1<<D+S)-1)>>D)])>>>16&255,I=65535&N,!(D+(E=N>>>24)<=y);){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}v>>>=D,y-=D,A.back+=D}if(v>>>=E,y-=E,A.back+=E,A.length=I,0===k){A.mode=26;break}if(32&k){A.back=-1,A.mode=12;break}if(64&k){e.msg="invalid literal/length code",A.mode=30;break}A.extra=15&k,A.mode=22;case 22:if(A.extra){for(T=A.extra;y<T;){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}A.length+=v&(1<<A.extra)-1,v>>>=A.extra,y-=A.extra,A.back+=A.extra}A.was=A.length,A.mode=23;case 23:for(;k=(N=A.distcode[v&(1<<A.distbits)-1])>>>16&255,I=65535&N,!((E=N>>>24)<=y);){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}if(0==(240&k)){for(D=E,S=k,H=I;k=(N=A.distcode[H+((v&(1<<D+S)-1)>>D)])>>>16&255,I=65535&N,!(D+(E=N>>>24)<=y);){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}v>>>=D,y-=D,A.back+=D}if(v>>>=E,y-=E,A.back+=E,64&k){e.msg="invalid distance code",A.mode=30;break}A.offset=I,A.extra=15&k,A.mode=24;case 24:if(A.extra){for(T=A.extra;y<T;){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}A.offset+=v&(1<<A.extra)-1,v>>>=A.extra,y-=A.extra,A.back+=A.extra}if(A.offset>A.dmax){e.msg="invalid distance too far back",A.mode=30;break}A.mode=25;case 25:if(0===w)break e;if(U=b-w,A.offset>U){if((U=A.offset-U)>A.whave&&A.sane){e.msg="invalid distance too far back",A.mode=30;break}F=U>A.wnext?(U-=A.wnext,A.wsize-U):A.wnext-U,U>A.length&&(U=A.length),x=A.window}else x=g,F=m-A.offset,U=A.length;for(w<U&&(U=w),w-=U,A.length-=U;g[m++]=x[F++],--U;);0===A.length&&(A.mode=21);break;case 26:if(0===w)break e;g[m++]=A.length,w--,A.mode=21;break;case 27:if(A.wrap){for(;y<32;){if(0===B)break e;B--,v|=h[f++]<<y,y+=8}if(b-=w,e.total_out+=b,A.total+=b,b&&(e.adler=A.check=A.flags?r(A.check,g,b,m-b):n(A.check,g,b,m-b)),b=w,(A.flags?v:p(v))!==A.check){e.msg="incorrect data check",A.mode=30;break}y=v=0}A.mode=28;case 28:if(A.wrap&&A.flags){for(;y<32;){if(0===B)break e;B--,v+=h[f++]<<y,y+=8}if(v!==(4294967295&A.total)){e.msg="incorrect length check",A.mode=30;break}y=v=0}A.mode=29;case 29:O=1;break e;case 30:O=-3;break e;case 31:return-4;case 32:default:return d}return e.next_out=m,e.avail_out=w,e.next_in=f,e.avail_in=B,A.hold=v,A.bits=y,(A.wsize||b!==e.avail_out&&A.mode<30&&(A.mode<27||4!==t))&&Q(e,e.output,e.next_out,b-e.avail_out)?(A.mode=31,-4):(C-=e.avail_in,b-=e.avail_out,e.total_in+=C,e.total_out+=b,A.total+=b,A.wrap&&b&&(e.adler=A.check=A.flags?r(A.check,g,b,e.next_out-b):n(A.check,g,b,e.next_out-b)),e.data_type=A.bits+(A.last?64:0)+(12===A.mode?128:0)+(20===A.mode||15===A.mode?256:0),(0==C&&0===b||4===t)&&O===c&&(O=-5),O)},A.inflateEnd=function(e){if(!e||!e.state)return d;var t=e.state;return t.window&&(t.window=null),e.state=null,c},A.inflateGetHeader=function(e,t){var A;return e&&e.state?0==(2&(A=e.state).wrap)?d:((A.head=t).done=!1,c):d},A.inflateSetDictionary=function(e,t){var A,i=t.length;return e&&e.state?0!==(A=e.state).wrap&&11!==A.mode?d:11===A.mode&&n(1,t,i,0)!==A.check?-3:Q(e,t,i,i)?(A.mode=31,-4):(A.havedict=1,c):d},A.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,A){"use strict";var i=e("../utils/common"),n=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],r=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,A,a,l,c,d,u){var h,g,p,f,m,B,w,v,y,C=u.bits,b=0,_=0,Q=0,U=0,F=0,x=0,E=0,k=0,I=0,D=0,S=null,H=0,L=new i.Buf16(16),O=new i.Buf16(16),M=null,T=0;for(b=0;b<=15;b++)L[b]=0;for(_=0;_<a;_++)L[t[A+_]]++;for(F=C,U=15;1<=U&&0===L[U];U--);if(U<F&&(F=U),0===U)return l[c++]=20971520,l[c++]=20971520,u.bits=1,0;for(Q=1;Q<U&&0===L[Q];Q++);for(F<Q&&(F=Q),b=k=1;b<=15;b++)if(k<<=1,(k-=L[b])<0)return-1;if(0<k&&(0===e||1!==U))return-1;for(O[1]=0,b=1;b<15;b++)O[b+1]=O[b]+L[b];for(_=0;_<a;_++)0!==t[A+_]&&(d[O[t[A+_]]++]=_);if(B=0===e?(S=M=d,19):1===e?(S=n,H-=257,M=r,T-=257,256):(S=o,M=s,-1),b=Q,m=c,E=_=D=0,p=-1,f=(I=1<<(x=F))-1,1===e&&852<I||2===e&&592<I)return 1;for(;;){for(w=b-E,y=d[_]<B?(v=0,d[_]):d[_]>B?(v=M[T+d[_]],S[H+d[_]]):(v=96,0),h=1<<b-E,Q=g=1<<x;l[m+(D>>E)+(g-=h)]=w<<24|v<<16|y|0,0!==g;);for(h=1<<b-1;D&h;)h>>=1;if(0!==h?(D&=h-1,D+=h):D=0,_++,0==--L[b]){if(b===U)break;b=t[A+d[_]]}if(F<b&&(D&f)!==p){for(0===E&&(E=F),m+=Q,k=1<<(x=b-E);x+E<U&&!((k-=L[x+E])<=0);)x++,k<<=1;if(I+=1<<x,1===e&&852<I||2===e&&592<I)return 1;l[p=D&f]=F<<24|x<<16|m-c|0}}return 0!==D&&(l[m+D]=b-E<<24|64<<16|0),u.bits=F,0}},{"../utils/common":41}],51:[function(e,t,A){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,t,A){"use strict";var i=e("../utils/common"),n=0,r=1;function o(e){for(var t=e.length;0<=--t;)e[t]=0}var s=0,a=29,l=256,c=l+1+a,d=30,u=19,h=2*c+1,g=15,p=16,f=7,m=256,B=16,w=17,v=18,y=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],C=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],b=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],_=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Q=new Array(2*(c+2));o(Q);var U=new Array(2*d);o(U);var F=new Array(512);o(F);var x=new Array(256);o(x);var E=new Array(a);o(E);var k,I,D,S=new Array(d);function H(e,t,A,i,n){this.static_tree=e,this.extra_bits=t,this.extra_base=A,this.elems=i,this.max_length=n,this.has_stree=e&&e.length}function L(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function O(e){return e<256?F[e]:F[256+(e>>>7)]}function M(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function T(e,t,A){e.bi_valid>p-A?(e.bi_buf|=t<<e.bi_valid&65535,M(e,e.bi_buf),e.bi_buf=t>>p-e.bi_valid,e.bi_valid+=A-p):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=A)}function N(e,t,A){T(e,A[2*t],A[2*t+1])}function K(e,t){for(var A=0;A|=1&e,e>>>=1,A<<=1,0<--t;);return A>>>1}function P(e,t,A){var i,n,r=new Array(g+1),o=0;for(i=1;i<=g;i++)r[i]=o=o+A[i-1]<<1;for(n=0;n<=t;n++){var s=e[2*n+1];0!==s&&(e[2*n]=K(r[s]++,s))}}function R(e){var t;for(t=0;t<c;t++)e.dyn_ltree[2*t]=0;for(t=0;t<d;t++)e.dyn_dtree[2*t]=0;for(t=0;t<u;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*m]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function V(e){8<e.bi_valid?M(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function G(e,t,A,i){var n=2*t,r=2*A;return e[n]<e[r]||e[n]===e[r]&&i[t]<=i[A]}function z(e,t,A){for(var i=e.heap[A],n=A<<1;n<=e.heap_len&&(n<e.heap_len&&G(t,e.heap[n+1],e.heap[n],e.depth)&&n++,!G(t,i,e.heap[n],e.depth));)e.heap[A]=e.heap[n],A=n,n<<=1;e.heap[A]=i}function j(e,t,A){var i,n,r,o,s=0;if(0!==e.last_lit)for(;i=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],n=e.pending_buf[e.l_buf+s],s++,0===i?N(e,n,t):(N(e,(r=x[n])+l+1,t),0!==(o=y[r])&&T(e,n-=E[r],o),N(e,r=O(--i),A),0!==(o=C[r])&&T(e,i-=S[r],o)),s<e.last_lit;);N(e,m,t)}function Z(e,t){var A,i,n,r=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,a=t.stat_desc.elems,l=-1;for(e.heap_len=0,e.heap_max=h,A=0;A<a;A++)0!==r[2*A]?(e.heap[++e.heap_len]=l=A,e.depth[A]=0):r[2*A+1]=0;for(;e.heap_len<2;)r[2*(n=e.heap[++e.heap_len]=l<2?++l:0)]=1,e.depth[n]=0,e.opt_len--,s&&(e.static_len-=o[2*n+1]);for(t.max_code=l,A=e.heap_len>>1;1<=A;A--)z(e,r,A);for(n=a;A=e.heap[1],e.heap[1]=e.heap[e.heap_len--],z(e,r,1),i=e.heap[1],e.heap[--e.heap_max]=A,e.heap[--e.heap_max]=i,r[2*n]=r[2*A]+r[2*i],e.depth[n]=(e.depth[A]>=e.depth[i]?e.depth[A]:e.depth[i])+1,r[2*A+1]=r[2*i+1]=n,e.heap[1]=n++,z(e,r,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var A,i,n,r,o,s,a=t.dyn_tree,l=t.max_code,c=t.stat_desc.static_tree,d=t.stat_desc.has_stree,u=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,f=t.stat_desc.max_length,m=0;for(r=0;r<=g;r++)e.bl_count[r]=0;for(a[2*e.heap[e.heap_max]+1]=0,A=e.heap_max+1;A<h;A++)f<(r=a[2*a[2*(i=e.heap[A])+1]+1]+1)&&(r=f,m++),a[2*i+1]=r,l<i||(e.bl_count[r]++,o=0,p<=i&&(o=u[i-p]),s=a[2*i],e.opt_len+=s*(r+o),d&&(e.static_len+=s*(c[2*i+1]+o)));if(0!==m){do{for(r=f-1;0===e.bl_count[r];)r--;e.bl_count[r]--,e.bl_count[r+1]+=2,e.bl_count[f]--,m-=2}while(0<m);for(r=f;0!==r;r--)for(i=e.bl_count[r];0!==i;)l<(n=e.heap[--A])||(a[2*n+1]!==r&&(e.opt_len+=(r-a[2*n+1])*a[2*n],a[2*n+1]=r),i--)}}(e,t),P(r,l,e.bl_count)}function W(e,t,A){var i,n,r=-1,o=t[1],s=0,a=7,l=4;for(0===o&&(a=138,l=3),t[2*(A+1)+1]=65535,i=0;i<=A;i++)n=o,o=t[2*(i+1)+1],++s<a&&n===o||(s<l?e.bl_tree[2*n]+=s:0!==n?(n!==r&&e.bl_tree[2*n]++,e.bl_tree[2*B]++):s<=10?e.bl_tree[2*w]++:e.bl_tree[2*v]++,r=n,l=(s=0)===o?(a=138,3):n===o?(a=6,3):(a=7,4))}function Y(e,t,A){var i,n,r=-1,o=t[1],s=0,a=7,l=4;for(0===o&&(a=138,l=3),i=0;i<=A;i++)if(n=o,o=t[2*(i+1)+1],!(++s<a&&n===o)){if(s<l)for(;N(e,n,e.bl_tree),0!=--s;);else 0!==n?(n!==r&&(N(e,n,e.bl_tree),s--),N(e,B,e.bl_tree),T(e,s-3,2)):s<=10?(N(e,w,e.bl_tree),T(e,s-3,3)):(N(e,v,e.bl_tree),T(e,s-11,7));r=n,l=(s=0)===o?(a=138,3):n===o?(a=6,3):(a=7,4)}}o(S);var X=!1;function J(e,t,A,n){T(e,(s<<1)+(n?1:0),3),function(e,t,A,n){V(e),n&&(M(e,A),M(e,~A)),i.arraySet(e.pending_buf,e.window,t,A,e.pending),e.pending+=A}(e,t,A,!0)}A._tr_init=function(e){X||(function(){var e,t,A,i,n,r=new Array(g+1);for(i=A=0;i<a-1;i++)for(E[i]=A,e=0;e<1<<y[i];e++)x[A++]=i;for(x[A-1]=i,i=n=0;i<16;i++)for(S[i]=n,e=0;e<1<<C[i];e++)F[n++]=i;for(n>>=7;i<d;i++)for(S[i]=n<<7,e=0;e<1<<C[i]-7;e++)F[256+n++]=i;for(t=0;t<=g;t++)r[t]=0;for(e=0;e<=143;)Q[2*e+1]=8,e++,r[8]++;for(;e<=255;)Q[2*e+1]=9,e++,r[9]++;for(;e<=279;)Q[2*e+1]=7,e++,r[7]++;for(;e<=287;)Q[2*e+1]=8,e++,r[8]++;for(P(Q,c+1,r),e=0;e<d;e++)U[2*e+1]=5,U[2*e]=K(e,5);k=new H(Q,y,l+1,c,g),I=new H(U,C,0,d,g),D=new H(new Array(0),b,0,u,f)}(),X=!0),e.l_desc=new L(e.dyn_ltree,k),e.d_desc=new L(e.dyn_dtree,I),e.bl_desc=new L(e.bl_tree,D),e.bi_buf=0,e.bi_valid=0,R(e)},A._tr_stored_block=J,A._tr_flush_block=function(e,t,A,i){var o,s,a=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,A=4093624447;for(t=0;t<=31;t++,A>>>=1)if(1&A&&0!==e.dyn_ltree[2*t])return n;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return r;for(t=32;t<l;t++)if(0!==e.dyn_ltree[2*t])return r;return n}(e)),Z(e,e.l_desc),Z(e,e.d_desc),a=function(e){var t;for(W(e,e.dyn_ltree,e.l_desc.max_code),W(e,e.dyn_dtree,e.d_desc.max_code),Z(e,e.bl_desc),t=u-1;3<=t&&0===e.bl_tree[2*_[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),o=e.opt_len+3+7>>>3,(s=e.static_len+3+7>>>3)<=o&&(o=s)):o=s=A+5,A+4<=o&&-1!==t?J(e,t,A,i):4===e.strategy||s===o?(T(e,2+(i?1:0),3),j(e,Q,U)):(T(e,4+(i?1:0),3),function(e,t,A,i){var n;for(T(e,t-257,5),T(e,A-1,5),T(e,i-4,4),n=0;n<i;n++)T(e,e.bl_tree[2*_[n]+1],3);Y(e,e.dyn_ltree,t-1),Y(e,e.dyn_dtree,A-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),j(e,e.dyn_ltree,e.dyn_dtree)),R(e),i&&V(e)},A._tr_tally=function(e,t,A){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&A,e.last_lit++,0===t?e.dyn_ltree[2*A]++:(e.matches++,t--,e.dyn_ltree[2*(x[A]+l+1)]++,e.dyn_dtree[2*O(t)]++),e.last_lit===e.lit_bufsize-1},A._tr_align=function(e){T(e,2,3),N(e,m,Q),function(e){16===e.bi_valid?(M(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,A){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,i){(function(e){!function(e,t){"use strict";if(!e.setImmediate){var A,i,n,r,o=1,s={},a=!1,l=e.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(e);c=c&&c.setTimeout?c:e,A="[object process]"==={}.toString.call(e.process)?function(e){process.nextTick((function(){u(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,A=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=A,t}}()?(r="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",h,!1):e.attachEvent("onmessage",h),function(t){e.postMessage(r+t,"*")}):e.MessageChannel?((n=new MessageChannel).port1.onmessage=function(e){u(e.data)},function(e){n.port2.postMessage(e)}):l&&"onreadystatechange"in l.createElement("script")?(i=l.documentElement,function(e){var t=l.createElement("script");t.onreadystatechange=function(){u(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):function(e){setTimeout(u,0,e)},c.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),i=0;i<t.length;i++)t[i]=arguments[i+1];var n={callback:e,args:t};return s[o]=n,A(o),o++},c.clearImmediate=d}function d(e){delete s[e]}function u(e){if(a)setTimeout(u,0,e);else{var A=s[e];if(A){a=!0;try{!function(e){var A=e.callback,i=e.args;switch(i.length){case 0:A();break;case 1:A(i[0]);break;case 2:A(i[0],i[1]);break;case 3:A(i[0],i[1],i[2]);break;default:A.apply(t,i)}}(A)}finally{d(e),a=!1}}}}function h(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(r)&&u(+t.data.slice(r.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,"undefined"!=typeof A.g?A.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)}))},6243:function(e){if(!t)var t={map:function(e,t){var A={};return t?e.map((function(e,i){return A.index=i,t.call(A,e)})):e.slice()},naturalOrder:function(e,t){return e<t?-1:e>t?1:0},sum:function(e,t){var A={};return e.reduce(t?function(e,i,n){return A.index=n,e+t.call(A,i)}:function(e,t){return e+t},0)},max:function(e,A){return Math.max.apply(null,A?t.map(e,A):e)}};var A=function(){var e=5,A=8-e,i=1e3,n=.75;function r(t,A,i){return(t<<2*e)+(A<<e)+i}function o(e){var t=[],A=!1;function i(){t.sort(e),A=!0}return{push:function(e){t.push(e),A=!1},peek:function(e){return A||i(),void 0===e&&(e=t.length-1),t[e]},pop:function(){return A||i(),t.pop()},size:function(){return t.length},map:function(e){return t.map(e)},debug:function(){return A||i(),t}}}function s(e,t,A,i,n,r,o){var s=this;s.r1=e,s.r2=t,s.g1=A,s.g2=i,s.b1=n,s.b2=r,s.histo=o}function a(){this.vboxes=new o((function(e,A){return t.naturalOrder(e.vbox.count()*e.vbox.volume(),A.vbox.count()*A.vbox.volume())}))}function l(t){var i,n,o,s,a=1<<3*e,l=new Array(a);return t.forEach((function(e){n=e[0]>>A,o=e[1]>>A,s=e[2]>>A,i=r(n,o,s),l[i]=(l[i]||0)+1})),l}function c(e,t){var i,n,r,o=1e6,a=0,l=1e6,c=0,d=1e6,u=0;return e.forEach((function(e){i=e[0]>>A,n=e[1]>>A,r=e[2]>>A,i<o?o=i:i>a&&(a=i),n<l?l=n:n>c&&(c=n),r<d?d=r:r>u&&(u=r)})),new s(o,a,l,c,d,u,t)}function d(e,A){if(A.count()){var i=A.r2-A.r1+1,n=A.g2-A.g1+1,o=A.b2-A.b1+1,s=t.max([i,n,o]);if(1==A.count())return[A.copy()];var a,l,c,d,u,h=0,g=[],p=[];if(s==i)for(a=A.r1;a<=A.r2;a++){for(d=0,l=A.g1;l<=A.g2;l++)for(c=A.b1;c<=A.b2;c++)u=r(a,l,c),d+=e[u]||0;h+=d,g[a]=h}else if(s==n)for(a=A.g1;a<=A.g2;a++){for(d=0,l=A.r1;l<=A.r2;l++)for(c=A.b1;c<=A.b2;c++)u=r(l,a,c),d+=e[u]||0;h+=d,g[a]=h}else for(a=A.b1;a<=A.b2;a++){for(d=0,l=A.r1;l<=A.r2;l++)for(c=A.g1;c<=A.g2;c++)u=r(l,c,a),d+=e[u]||0;h+=d,g[a]=h}return g.forEach((function(e,t){p[t]=h-e})),f(s==i?"r":s==n?"g":"b")}function f(e){var t,i,n,r,o,s=e+"1",l=e+"2",c=0;for(a=A[s];a<=A[l];a++)if(g[a]>h/2){n=A.copy(),r=A.copy(),t=a-A[s],i=A[l]-a,o=t<=i?Math.min(A[l]-1,~~(a+i/2)):Math.max(A[s],~~(a-1-t/2));while(!g[o])o++;c=p[o];while(!c&&g[o-1])c=p[--o];return n[l]=o,r[s]=n[l]+1,[n,r]}}}function u(e,A){if(!e.length||A<2||A>256)return!1;var r=l(e);r.forEach((function(){0}));var s=c(e,r),u=new o((function(e,A){return t.naturalOrder(e.count(),A.count())}));function h(e,t){var A,n=1,o=0;while(o<i)if(A=e.pop(),A.count()){var s=d(r,A),a=s[0],l=s[1];if(!a)return;if(e.push(a),l&&(e.push(l),n++),n>=t)return;if(o++>i)return}else e.push(A),o++}u.push(s),h(u,n*A);var g=new o((function(e,A){return t.naturalOrder(e.count()*e.volume(),A.count()*A.volume())}));while(u.size())g.push(u.pop());h(g,A-g.size());var p=new a;while(g.size())p.push(g.pop());return p}return s.prototype={volume:function(e){var t=this;return t._volume&&!e||(t._volume=(t.r2-t.r1+1)*(t.g2-t.g1+1)*(t.b2-t.b1+1)),t._volume},count:function(e){var t=this,A=t.histo;if(!t._count_set||e){var i,n,o,s,a=0;for(i=t.r1;i<=t.r2;i++)for(n=t.g1;n<=t.g2;n++)for(o=t.b1;o<=t.b2;o++)s=r(i,n,o),a+=A[s]||0;t._count=a,t._count_set=!0}return t._count},copy:function(){var e=this;return new s(e.r1,e.r2,e.g1,e.g2,e.b1,e.b2,e.histo)},avg:function(t){var A=this,i=A.histo;if(!A._avg||t){var n,o,s,a,l,c=0,d=1<<8-e,u=0,h=0,g=0;for(o=A.r1;o<=A.r2;o++)for(s=A.g1;s<=A.g2;s++)for(a=A.b1;a<=A.b2;a++)l=r(o,s,a),n=i[l]||0,c+=n,u+=n*(o+.5)*d,h+=n*(s+.5)*d,g+=n*(a+.5)*d;A._avg=c?[~~(u/c),~~(h/c),~~(g/c)]:[~~(d*(A.r1+A.r2+1)/2),~~(d*(A.g1+A.g2+1)/2),~~(d*(A.b1+A.b2+1)/2)]}return A._avg},contains:function(e){var t=this,i=e[0]>>A;return gval=e[1]>>A,bval=e[2]>>A,i>=t.r1&&i<=t.r2&&gval>=t.g1&&gval<=t.g2&&bval>=t.b1&&bval<=t.b2}},a.prototype={push:function(e){this.vboxes.push({vbox:e,color:e.avg()})},palette:function(){return this.vboxes.map((function(e){return e.color}))},size:function(){return this.vboxes.size()},map:function(e){for(var t=this.vboxes,A=0;A<t.size();A++)if(t.peek(A).vbox.contains(e))return t.peek(A).color;return this.nearest(e)},nearest:function(e){for(var t,A,i,n=this.vboxes,r=0;r<n.size();r++)A=Math.sqrt(Math.pow(e[0]-n.peek(r).color[0],2)+Math.pow(e[1]-n.peek(r).color[1],2)+Math.pow(e[2]-n.peek(r).color[2],2)),(A<t||void 0===t)&&(t=A,i=n.peek(r).color);return i},forcebw:function(){var e=this.vboxes;e.sort((function(e,A){return t.naturalOrder(t.sum(e.color),t.sum(A.color))}));var A=e[0].color;A[0]<5&&A[1]<5&&A[2]<5&&(e[0].color=[0,0,0]);var i=e.length-1,n=e[i].color;n[0]>251&&n[1]>251&&n[2]>251&&(e[i].color=[255,255,255])}},{quantize:u}}();e.exports=A.quantize},4652:function(e,t,A){"use strict";A.r(t),A.d(t,{default:function(){return tg}});var n=A(6252),r=A(3577),o=A(9963);const s=e=>((0,n.dD)("data-v-69379339"),e=e(),(0,n.Cn)(),e),a={class:"home_page .Guide_1_16"},l={class:"page_content"},c={class:"page_content_body"},d={class:"home_page_body"},u={class:"home_page_left"},h={class:"home_page_left_content"},g={class:"home_left_null"},p={class:"is_finish_loading"},f={class:"home_left_info"},m={class:"left_info_top"},B={class:"left_info_content scroll_style"},w={class:"left_info_content_body",ref:"collection_canvas"},v={class:"home_page_right"},y={class:"right_top"},C={class:"right_top_left"},b={class:"right_content_block"},_={class:"right_content_header"},Q={class:"content_header_left"},U=s((()=>(0,n._)("i",{class:"fi fi-rs-comments"},null,-1))),F={class:"content_header_des"},x={class:"right_content_body"},E={class:"right_content_img_item"},k=["onClick"],I={class:"content_img_flex"},D=["src"],S=["onClick"],H={class:"right_content_header"},L={class:"content_header_left"},O=s((()=>(0,n._)("i",{class:"fi fi-rs-comments"},null,-1))),M={class:"content_header_des"},T={class:"right_content_export"},N={class:"right_content_body"},K={class:"right_content_img_item",id:"right_content_img_block"},P=["onClick","onDragstart","onDrop"],R={class:"content_img_flex"},V=["src"],G=["onClick"],z={class:"mark_loading"},j={class:"progress_mark"},Z={class:"mark_content"};function W(e,t,A,i,s,W){const Y=(0,n.up)("HeaderComponent"),X=(0,n.up)("a-spin"),J=(0,n.up)("NewCollectionReview"),$=(0,n.up)("a-checkbox"),q=(0,n.up)("CollectionModal"),ee=(0,n.up)("DesignDetail"),te=(0,n.up)("ExportNewCoolection"),Ae=(0,n.up)("a-progress"),ie=(0,n.up)("RobotAssist"),ne=(0,n.Q2)("mousewheel");return(0,n.wg)(),(0,n.iD)("div",a,[(0,n.Wm)(Y),(0,n._)("div",l,[(0,n._)("div",c,[(0,n._)("div",d,[(0,n._)("div",u,[(0,n._)("div",h,[(0,n.wy)((0,n._)("div",g,[(0,n._)("div",null,[(0,n._)("div",{id:"Guide_1_1",class:"new_collection_button",onClick:t[0]||(t[0]=t=>e.startNewCollection())},(0,r.zw)(e.$t("HomeView.GetStarted")),1)]),(0,n.wy)((0,n._)("div",p,[(0,n.Wm)(X,{size:"large"})],512),[[o.F8,e.isFinishLoading]])],512),[[o.F8,!e.isHaveReviewCollection]]),(0,n.wy)((0,n._)("div",f,[(0,n._)("div",m,[(0,n._)("div",{class:"button_second",onClick:t[1]||(t[1]=t=>e.startNewCollection())},(0,r.zw)(e.$t("HomeView.Start")),1),(0,n._)("div",{class:"button_first button_margin",onClick:t[2]||(t[2]=t=>e.recollection())},(0,r.zw)(e.$t("HomeView.Edit")),1)]),(0,n._)("div",B,[(0,n._)("div",w,[(0,n.Wm)(J,{id:"collectionReview"})],512)])],512),[[o.F8,e.isHaveReviewCollection]])])]),(0,n._)("div",v,[(0,n._)("div",y,[(0,n._)("div",C,[(0,n._)("div",{class:"button_second Guide_1_15",onClick:t[3]||(t[3]=t=>e.designNewCollection())},(0,r.zw)(e.$t("HomeView.Design")),1),(0,n.wy)((0,n._)("div",{class:"button_first button_margin_14",onClick:t[4]||(t[4]=t=>e.resDesignCollection())},(0,r.zw)(e.$t("HomeView.Redesign")),513),[[o.F8,e.designCollectionId]])])]),(0,n._)("div",b,[(0,n._)("div",_,[(0,n._)("div",Q,[U,(0,n._)("span",F,(0,r.zw)(e.$t("HomeView.GeneratedDesign")),1)])]),(0,n._)("div",x,[(0,n.wy)(((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)(["right_content_img_block scroll_style Guide_1_17",{active:0!=e.designCollectionList.length}])},[(0,n._)("div",E,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.designCollectionList,((t,A)=>((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)(["content_img_block",[e.driver__.driver?"hideEvents":""]]),key:t?.designItemId,onClick:i=>e.designDetail(t,A,e.designCollectionList,"dislike")},[(0,n._)("div",I,[(0,n._)("img",{class:"content_img",src:t.designOutfitUrl},null,8,D)]),(0,n._)("div",{class:"icon iconfont icon-jushoucang icon_like",onClick:(0,o.iM)((i=>e.likeDesignCollection(t,A)),["stop"])},null,8,S)],10,k)))),128))])],2)),[[ne]])]),(0,n._)("div",H,[(0,n._)("div",L,[O,(0,n._)("span",M,(0,r.zw)(e.$t("HomeView.SelectedDesign")),1)]),(0,n.wy)((0,n._)("div",T,[(0,n._)("div",{class:"button_second",onClick:t[5]||(t[5]=t=>e.exportCanvas())},(0,r.zw)(e.$t("HomeView.Export")),1),(0,n._)("div",{class:(0,r.C_)(["icon","iconfont","icon-xiala",e.isShowOperate?"icon_rotate":""]),onClick:t[6]||(t[6]=(0,o.iM)((t=>e.changeShowOperateContent()),["stop"]))},null,2),(0,n.wy)((0,n._)("div",{class:"export_nav",onClick:t[7]||(t[7]=(0,o.iM)((()=>{}),["stop"]))},[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.exportNav,(e=>((0,n.wg)(),(0,n.j4)($,{checked:e.change,"onUpdate:checked":t=>e.change=t,disabled:e.noChange},{default:(0,n.w5)((()=>[(0,n.Uk)((0,r.zw)(e.name),1)])),_:2},1032,["checked","onUpdate:checked","disabled"])))),256))],512),[[o.F8,e.isShowOperate]])],512),[[o.F8,e.likeDesignCollectionList.length]])]),(0,n._)("div",N,[(0,n.wy)(((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)(["right_content_img_block scroll_style",{active:0!=e.likeDesignCollectionList.length}])},[(0,n._)("div",K,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.likeDesignCollectionList,((A,i)=>((0,n.wg)(),(0,n.iD)("div",{class:"content_img_block",draggable:"",key:A.id,onClick:t=>e.designDetail(A,i,e.likeDesignCollectionList,"like"),onDragstart:t=>e.dragstart(t,i),onDragover:t[8]||(t[8]=(0,o.iM)((()=>{}),["prevent"])),onDrop:t=>e.dragDrop(t,i)},[(0,n._)("div",R,[((0,n.wg)(),(0,n.iD)("img",{class:"content_img",src:A.designOutfitUrl,key:A.designOutfitUrl},null,8,V))]),(0,n._)("div",{class:"icon iconfont icon-jushoucanggift icon_like",onClick:(0,o.iM)((t=>e.dislikeDesignCollection(A,i)),["stop"])},null,8,G)],40,P)))),128))])],2)),[[ne]])])])])])])]),(0,n.Wm)(q,{ref:"collectionModal",onFinishCollection:t[9]||(t[9]=t=>e.finishCollection())},null,512),(0,n.Wm)(ee,{ref:"designDetail",onFinishRedesign:e.finishRedesign},null,8,["onFinishRedesign"]),(0,n.Wm)(te,{id:"exportNewCoolection"}),(0,n.wy)((0,n._)("div",z,[(0,n.Wm)(X,{size:"large"})],512),[[o.F8,e.isShowMark]]),(0,n.wy)((0,n._)("div",j,[(0,n._)("div",Z,[(0,n.Wm)(Ae,{type:"circle",percent:e.designProgress,strokeColor:"#341e57",width:200},null,8,["percent"]),(0,n._)("div",null,[(0,n.Wm)(X,{indicator:e.indicator},null,8,["indicator"])])])],512),[[o.F8,e.showDesignMark]]),(0,n.Wm)(ie)])}var Y=A(2262),X=A(8691);const J={key:0},$={class:"collection_title"},q={class:"collection_title_text"},ee={class:"collection_progress"},te={class:"collection_modal_body"},Ae={class:"mark_loading"};function ie(e,t,A,i,s,a){const l=(0,n.up)("a-progress"),c=(0,n.up)("MoodboardUpload"),d=(0,n.up)("PrintboardUpload"),u=(0,n.up)("ColorboardUpload"),h=(0,n.up)("SketchboardUpload"),g=(0,n.up)("a-spin"),p=(0,n.up)("a-modal");return e.showCollectionModal?((0,n.wg)(),(0,n.iD)("div",J,[(0,n.Wm)(p,{class:"modal_component collection_modal Guide_1_2",visible:e.showCollectionModal,"onUpdate:visible":t[4]||(t[4]=t=>e.showCollectionModal=t),footer:null,width:"65%",maskClosable:!1,centered:!0,closable:!1,wrapClassName:"#app"},{default:(0,n.w5)((()=>[(0,n._)("div",$,[(0,n._)("div",q,[(0,n.wy)((0,n._)("div",null,(0,r.zw)(e.$t("collectionModal.Moodboard")),513),[[o.F8,1===e.collectionStep]]),(0,n.wy)((0,n._)("div",null,(0,r.zw)(e.$t("collectionModal.Printboard")),513),[[o.F8,2===e.collectionStep]]),(0,n.wy)((0,n._)("div",null,(0,r.zw)(e.$t("collectionModal.Colorboard")),513),[[o.F8,3===e.collectionStep]]),(0,n.wy)((0,n._)("div",null,(0,r.zw)(e.$t("collectionModal.Sketchboard")),513),[[o.F8,4===e.collectionStep]]),(0,n.wy)((0,n._)("div",{class:"collection_title_text_intro"},(0,r.zw)(e.$t("collectionModal.MoodCollection")),513),[[o.F8,1===e.collectionStep]]),(0,n.wy)((0,n._)("div",{class:"collection_title_text_intro"},(0,r.zw)(e.$t("collectionModal.PrinCollection")),513),[[o.F8,2===e.collectionStep]]),(0,n.wy)((0,n._)("div",{class:"collection_title_text_intro"},(0,r.zw)(e.$t("collectionModal.ColorCollection")),513),[[o.F8,3===e.collectionStep]]),(0,n.wy)((0,n._)("div",{class:"collection_title_text_intro"},(0,r.zw)(e.$t("collectionModal.SketchCollection")),513),[[o.F8,4===e.collectionStep]])]),(0,n._)("div",ee,[(0,n.Wm)(l,{strokeWidth:13,strokeColor:"#341e57",type:"circle",percent:25*e.collectionStep,format:t=>`${e.collectionStep}/4`},null,8,["percent","format"])])]),(0,n._)("div",{class:(0,r.C_)(["collection_closeIcon",[e.driver__.driver?"hideEvents":""]])},[(0,n._)("i",{class:"fi fi-rr-cross-small",onClick:t[0]||(t[0]=(0,o.iM)((t=>e.cancelDsign()),["stop"]))})],2),(0,n._)("div",{class:(0,r.C_)(["collection_page",[e.driver__.driver?"hideEvents":""]])},[(0,n.wy)((0,n._)("i",{class:"fi fi-rr-arrow-small-left",onClick:t[1]||(t[1]=t=>e.lastStep())},null,512),[[o.F8,e.collectionStep>1]]),e.collectionStep<4?((0,n.wg)(),(0,n.iD)("i",{key:0,class:"fi fi-rr-arrow-small-right Guide_1_8",onClick:t[2]||(t[2]=(0,o.iM)((t=>e.nextStep()),["stop"]))})):((0,n.wg)(),(0,n.iD)("i",{key:1,class:"fi fi-rr-check Guide_1_14",onClick:t[3]||(t[3]=(0,o.iM)((t=>e.finishCollection()),["stop"]))}))],2),(0,n._)("div",te,[(0,n.wy)((0,n.Wm)(c,{ref:"MoodboardUpload"},null,512),[[o.F8,1===e.collectionStep]]),(0,n.wy)((0,n.Wm)(d,{ref:"PrintboardUpload"},null,512),[[o.F8,2===e.collectionStep]]),(0,n.wy)((0,n.Wm)(u,{ref:"ColorboardUpload"},null,512),[[o.F8,3===e.collectionStep]]),(0,n.wy)((0,n.Wm)(h,{ref:"SketchboardUpload"},null,512),[[o.F8,4===e.collectionStep]])]),(0,n.wy)((0,n._)("div",Ae,[(0,n.Wm)(g,{size:"large"})],512),[[o.F8,e.isShowMark]])])),_:1},8,["visible"])])):(0,n.kq)("",!0)}const ne={class:"generate Guide_1_6"},re={key:0,class:"generate_checkbox"},oe={key:0,class:"printModel"},se=["placeholder","maxlength"],ae={key:2,class:"generage_img"},le={class:"upload_item"},ce=["onClick"],de={class:"upload_file_item_content"},ue={class:"upload_file_item_content"},he=["src"],ge={key:0,class:"operate_file_block"},pe={class:"select_img_type"},fe=["onClick"],me={class:"category_list"},Be=["onClick"],we=["onClick"],ve=(0,n._)("span",{class:"icon iconfont icon-shanchu"},null,-1),ye=[ve],Ce={class:"upload_file_item upload_component"},be={class:"upload_tip_block"},_e=(0,n._)("i",{class:"fi fi-br-upload"},null,-1),Qe=[_e],Ue={key:3,class:"generage_img"},Fe=["onClick"],xe={alt:""},Ee={class:"delete_like_file_block"},ke=["onClick"],Ie=["onClick"],De={class:"delete_like_file_block left"},Se={class:"mark_loading"};function He(e,t,A,i,s,a){const l=(0,n.up)("a-spin"),c=(0,n.up)("a-upload"),d=(0,n.up)("scaleImage"),u=(0,n.Q2)("lazy");return(0,n.wg)(),(0,n.iD)("div",ne,["Sketchboard"==e.type_.type2||"Printboard"==e.type_.type2?((0,n.wg)(),(0,n.iD)("div",re,[(0,n._)("div",null,[(0,n._)("label",null,[(0,n.wy)((0,n._)("input",{type:"checkbox","onUpdate:modelValue":t[0]||(t[0]=t=>e.checkbox[0].type=t),onClick:t[1]||(t[1]=t=>e.setKeyword(0))},null,512),[[o.e8,e.checkbox[0].type]]),(0,n._)("span",null,(0,r.zw)(e.$t("Generate.ImageOnly")),1)])]),(0,n._)("div",null,[(0,n._)("label",null,[(0,n.wy)((0,n._)("input",{type:"checkbox","onUpdate:modelValue":t[2]||(t[2]=t=>e.checkbox[1].type=t),onClick:t[3]||(t[3]=t=>e.setKeyword(1))},null,512),[[o.e8,e.checkbox[1].type]]),(0,n._)("span",null,(0,r.zw)(e.$t("Generate.TextOnly")),1)])]),(0,n._)("div",null,[(0,n._)("label",null,[(0,n.wy)((0,n._)("input",{type:"checkbox","onUpdate:modelValue":t[4]||(t[4]=t=>e.checkbox[2].type=t),onClick:t[5]||(t[5]=t=>e.setKeyword(2))},null,512),[[o.e8,e.checkbox[2].type]]),(0,n._)("span",null,(0,r.zw)(e.$t("Generate.TextImage")),1)])]),"Printboard"==e.type_.type2?((0,n.wg)(),(0,n.iD)("div",oe,[(0,n._)("div",{onClick:t[6]||(t[6]=(0,o.iM)(((...t)=>e.PrintModel&&e.PrintModel(...t)),["stop"]))},(0,r.zw)(e.printModel.name),1),(0,n.wy)((0,n._)("ul",null,[(0,n._)("li",{class:"printModel_item",onClick:t[7]||(t[7]=t=>e.setprintModel(1))},(0,r.zw)(e.$t("Generate.Model1")),1),(0,n._)("li",{class:"printModel_item",onClick:t[8]||(t[8]=t=>e.setprintModel(2))},(0,r.zw)(e.$t("Generate.Model2")),1),(0,n.wy)((0,n._)("li",{class:"printModel_item",onClick:t[9]||(t[9]=t=>e.setprintModel(3))},(0,r.zw)(e.$t("Generate.Generate")),513),[[o.F8,e.printBoards.length>=1]])],512),[[o.F8,e.printModel.optype]])])):(0,n.kq)("",!0)])):((0,n.wg)(),(0,n.iD)("div",{key:1,class:(0,r.C_)(["input_box Guide_1_5",[e.inputShow?"active":""]])},[(0,n.wy)((0,n._)("input",{class:"search_input",onInput:t[10]||(t[10]=(...t)=>e.ifMaximumLength&&e.ifMaximumLength(...t)),placeholder:e.$t("Generate.inputContent1"),maxlength:e.inputShow?0:9999,"onUpdate:modelValue":t[11]||(t[11]=t=>e.searchPictureName=t),onKeydown:t[12]||(t[12]=(0,o.D2)((t=>e.getgenerate()),["enter"]))},null,40,se),[[o.nr,e.searchPictureName]]),(0,n._)("div",{class:"generage_btn started_btn",onClick:t[13]||(t[13]=(0,o.iM)(((...t)=>e.getgenerate&&e.getgenerate(...t)),["stop"]))},(0,r.zw)(e.$t("Generate.Generate")),1),(0,n._)("span",null,(0,r.zw)(e.$t("Generate.maximumLength")),1)],2)),"Sketchboard"==e.type_.type2||"Printboard"==e.type_.type2?((0,n.wg)(),(0,n.iD)("div",ae,[(0,n._)("div",le,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.sketchboardList,((t,A)=>((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)(["upload_file_item",[t?.checked?"active":"",e.checkboxImage?"forbidden":""]]),key:t,onClick:(0,o.iM)((A=>e.setSketchboardItem(t)),["stop"])},[(0,n.wy)((0,n._)("div",de,[(0,n.Wm)(l,{indicator:e.indicator,tip:"Uploading..."},null,8,["indicator"])],512),[[o.F8,"uploading"===t?.status]]),(0,n.wy)((0,n._)("div",ue,[(0,n._)("img",{src:t?.imgUrl,class:"upload_img"},null,8,he),"Sketchboard"==e.type_.type2?((0,n.wg)(),(0,n.iD)("div",ge,[(0,n._)("div",pe,[(0,n._)("div",{class:"select_category",onClick:(0,o.iM)((A=>e.showFileCategory(t)),["stop"])},[(0,n.Uk)((0,r.zw)(t.categoryValue)+" ",1),(0,n._)("div",{class:(0,r.C_)(["icon","iconfont","icon-xiala",t.categoryShow?"icon_rotate":""])},null,2)],8,fe),(0,n.wy)((0,n._)("div",me,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.sketchCatecoryList,((A,i)=>((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)(["category_item",t.category==A.name?"select_category_item":""]),key:i,onClick:(0,o.iM)((i=>e.selectFileCategory(t,A)),["stop"])},(0,r.zw)(A.value),11,Be)))),128))],512),[[o.F8,t.categoryShow]])])])):(0,n.kq)("",!0),(0,n._)("div",{class:"delete_file_block",onClick:t=>e.deleteFile(A)},ye,8,we)],512),[[o.F8,"done"===t?.status]])],10,ce)))),128)),(0,n.wy)((0,n._)("div",Ce,[(0,n.Wm)(c,{action:e.uploadUrl+"/api/element/upload","list-type":"picture-card",data:{...e.upload},disabled:e.checkbox[1].type,headers:{Authorization:e.token},"file-list":e.sketchboardList,"onUpdate:file-list":t[14]||(t[14]=t=>e.sketchboardList=t),"before-upload":e.beforeUpload,multiple:"",maxCount:8-e.sketchboardList.length,accept:".jpg,.png,.jpeg,.bmp",onChange:t[15]||(t[15]=t=>e.fileUploadChange(t))},{default:(0,n.w5)((()=>[(0,n.wy)((0,n._)("div",be,Qe,512),[[o.F8,8!=e.sketchboardList.length]])])),_:1},8,["action","data","disabled","headers","file-list","before-upload","maxCount"])],512),[[o.F8,8!=e.sketchboardList.length]])])])):((0,n.wg)(),(0,n.iD)("div",Ue,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.fileList,((A,i)=>((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)(["generage_img_item",[A?.checked?"active":"",e.driver__.driver?"hideEvents":""]]),key:A.imgUrl,onClick:t=>e.generageAdd(A)},[(0,n.wy)((0,n._)("img",xe,null,512),[[u,A.imgUrl]]),(0,n._)("div",Ee,[A.like?((0,n.wg)(),(0,n.iD)("i",{key:1,class:"fi fi-sr-heart",onClick:(0,o.iM)((t=>e.likeFile(A,"noLike")),["stop"])},null,8,Ie)):((0,n.wg)(),(0,n.iD)("i",{key:0,class:"fi fi-rr-heart",onClick:(0,o.iM)((t=>e.likeFile(A,"like")),["stop"])},null,8,ke))]),(0,n._)("div",De,[(0,n._)("i",{class:"fi fi-bs-expand-arrows-alt",onClick:t[16]||(t[16]=(0,o.iM)((t=>e.scaleImage()),["stop"]))})])],10,Fe)))),128))])),(0,n.Wm)(d,{ref:"scaleImage"},null,512),(0,n.wy)((0,n._)("div",Se,[(0,n.Wm)(l,{size:"large"})],512),[[o.F8,e.loadingShow]])])}var Le=A(320),Oe=A(1446),Me=A(4873),Te=A(6214),Ne=A(3907),Ke={id:1,testUrl:"http://192.168.1.5:10086",zIndex:2,setColor:(e,t,A)=>new Promise((i=>{var n=void 0==A?.min?5:A.min,r=void 0==A?.max?5:A.max,o=new Image;o.src=t;o.onload=()=>{const t=o.width,A=o.height,s=document.createElement("canvas");s.width=t,s.height=A;var a=s.getContext("2d");a.drawImage(o,0,0);var l=a.getImageData(0,0,t,A),c=[];for(let i=0;i<e.length;i++){var d=0;for(let t=0;t<l.data.length;t+=4){var u=l.data[t],h=l.data[t+1],g=l.data[t+2];l.data[t+3];u-n<e[i][0]&&u+r>e[i][0]&&h-n<e[i][1]&&h+r>e[i][1]&&g-n<e[i][2]&&g+r>e[i][2]&&d++}let o={rgb:e[i],ratio:parseInt(String((d/(t*A)*100).toFixed(6)))};c.push(o)}i({width:t,height:A,ratio:c})}}))},Pe=A(2339),Re=A(7332);const Ve={class:"scaleImage_btn"},Ge=(0,n._)("i",{class:"fi fi-rr-cross-small"},null,-1),ze=[Ge],je=(0,n._)("i",{class:"fi fi-rr-down-to-line"},null,-1),Ze=[je],We={class:"scaleImage_content"},Ye=["src"],Xe={class:"scaleImage_nav"},Je={class:"nav_left"},$e={class:"nav_list"},qe=["onClick","src"],et={class:"nav_right"};function tt(e,t,A,i,s,a){const l=(0,n.up)("a-modal");return(0,n.wg)(),(0,n.j4)(l,{class:"scaleImage_modal",visible:e.scaleImage,"onUpdate:visible":t[4]||(t[4]=t=>e.scaleImage=t),footer:null,width:"65%",maskClosable:!1,centered:!0,closable:!1,mask:!1,destroyOnClose:!0},{default:(0,n.w5)((()=>[(0,n._)("div",Ve,[(0,n._)("div",{class:"collection_closeIcon left",onClick:t[0]||(t[0]=(0,o.iM)((t=>e.cancelDsign()),["stop"]))},ze),(0,n._)("div",{class:"collection_closeIcon",onClick:t[1]||(t[1]=(0,o.iM)((t=>e.download()),["stop"]))},Ze)]),(0,n._)("div",We,[(0,n._)("img",{src:e.scaleImageList[e.scaleImageIndex]?.imgUrl},null,8,Ye)]),(0,n._)("div",Xe,[(0,n._)("div",Je,[(0,n._)("i",{class:"fi fi-rr-arrow-small-left",onClick:t[2]||(t[2]=t=>e.lastStep())})]),(0,n._)("div",$e,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.scaleImageList,((t,A)=>((0,n.wg)(),(0,n.iD)("img",{onClick:t=>e.setScaleImageIndex(A),class:(0,r.C_)({active:A==e.scaleImageIndex}),src:t?.imgUrl,key:t.id},null,10,qe)))),128))]),(0,n._)("div",et,[(0,n._)("i",{class:"fi fi-rr-arrow-small-right",onClick:t[3]||(t[3]=(0,o.iM)((t=>e.nextStep()),["stop"]))})])])])),_:1},8,["visible"])}var At=(0,n.aZ)({setup(){let e=(0,Y.iH)(!1),t=(0,Y.iH)(!1);const A=(0,Y.iH)(!1),i=e=>{A.value=e};let n=(0,Y.iH)([]),r=(0,Y.iH)(0);return{scaleImage:e,loadingShow:t,visible:A,setVisible:i,scaleImageList:n,scaleImageIndex:r}},data(){return{}},mounted(){},methods:{init(e){this.scaleImage=!0,this.scaleImageList=e},cancelDsign(){this.scaleImage=!1,this.scaleImageList=[],this.scaleImageIndex=0},lastStep(){this.scaleImageIndex<=0||(this.scaleImageIndex-=1)},nextStep(){this.scaleImageIndex>=this.scaleImageList.length-1||(this.scaleImageIndex+=1)},download(){(0,Re.W$)(this.scaleImageList[this.scaleImageIndex].imgUrl)},setScaleImageIndex(e){this.scaleImageIndex=e}}}),it=A(3744);const nt=(0,it.Z)(At,[["render",tt]]);var rt=nt;let ot={};function st(e={}){ot={animate:!0,allowClose:!0,overlayOpacity:.7,smoothScroll:!1,disableActiveInteraction:!1,showProgress:!1,stagePadding:10,stageRadius:5,popoverOffset:10,showButtons:["next","previous","close"],disableButtons:[],overlayColor:"#000",...e}}function at(e){return e?ot[e]:ot}function lt(e,t,A,i){return(e/=i/2)<1?A/2*e*e+t:-A/2*(--e*(e-2)-1)+t}function ct(e){const t='a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])';return e.flatMap((e=>{const A=e.matches(t),i=Array.from(e.querySelectorAll(t));return[...A?[e]:[],...i]})).filter((e=>"none"!==getComputedStyle(e).pointerEvents&>(e)))}function dt(e){if(!e||ht(e))return;const t=at("smoothScroll");e.scrollIntoView({behavior:!t||ut(e)?"auto":"smooth",inline:"center",block:"center"})}function ut(e){if(!e||!e.parentElement)return;const t=e.parentElement;return t.scrollHeight>t.clientHeight}function ht(e){const t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}function gt(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}let pt={};function ft(e,t){pt[e]=t}function mt(e){return e?pt[e]:pt}function Bt(){pt={}}let wt={};function vt(e,t){wt[e]=t}function yt(e){var t;null==(t=wt[e])||t.call(wt)}function Ct(){wt={}}function bt(e,t,A,i){let n=mt("__activeStagePosition");const r=n||A.getBoundingClientRect(),o=i.getBoundingClientRect(),s=lt(e,r.x,o.x-r.x,t),a=lt(e,r.y,o.y-r.y,t),l=lt(e,r.width,o.width-r.width,t),c=lt(e,r.height,o.height-r.height,t);n={x:s,y:a,width:l,height:c},Ft(n),ft("__activeStagePosition",n)}function _t(e){if(!e)return;const t=e.getBoundingClientRect(),A={x:t.x,y:t.y,width:t.width,height:t.height};ft("__activeStagePosition",A),Ft(A)}function Qt(){const e=mt("__activeStagePosition"),t=mt("__overlaySvg");if(!e)return;if(!t)return void console.warn("No stage svg found.");const A=window.innerWidth,i=window.innerHeight;t.setAttribute("viewBox",`0 0 ${A} ${i}`)}function Ut(e){const t=xt(e);document.body.appendChild(t),Nt(t,(e=>{"path"===e.target.tagName&&yt("overlayClick")})),ft("__overlaySvg",t)}function Ft(e){const t=mt("__overlaySvg");if(!t)return void Ut(e);const A=t.firstElementChild;if("path"!==(null==A?void 0:A.tagName))throw new Error("no path element found in stage svg");A.setAttribute("d",Et(e))}function xt(e){const t=window.innerWidth,A=window.innerHeight,i=document.createElementNS("http://www.w3.org/2000/svg","svg");i.classList.add("driver-overlay","driver-overlay-animated"),i.setAttribute("viewBox",`0 0 ${t} ${A}`),i.setAttribute("xmlSpace","preserve"),i.setAttribute("xmlnsXlink","http://www.w3.org/1999/xlink"),i.setAttribute("version","1.1"),i.setAttribute("preserveAspectRatio","xMinYMin slice"),i.style.fillRule="evenodd",i.style.clipRule="evenodd",i.style.strokeLinejoin="round",i.style.strokeMiterlimit="2",i.style.zIndex="10000",i.style.position="fixed",i.style.top="0",i.style.left="0",i.style.width="100%",i.style.height="100%";const n=document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttribute("d",Et(e)),n.style.fill=at("overlayColor")||"rgb(0,0,0)",n.style.opacity=`${at("overlayOpacity")}`,n.style.pointerEvents="auto",n.style.cursor="auto",i.appendChild(n),i}function Et(e){const t=window.innerWidth,A=window.innerHeight,i=at("stagePadding")||0,n=at("stageRadius")||0,r=e.width+2*i,o=e.height+2*i,s=Math.min(n,r/2,o/2),a=Math.floor(Math.max(s,0)),l=e.x-i+a,c=e.y-i,d=r-2*a,u=o-2*a;return`M${t},0L0,0L0,${A}L${t},${A}L${t},0Z\n M${l},${c} h${d} a${a},${a} 0 0 1 ${a},${a} v${u} a${a},${a} 0 0 1 -${a},${a} h-${d} a${a},${a} 0 0 1 -${a},-${a} v-${u} a${a},${a} 0 0 1 ${a},-${a} z`}function kt(){const e=mt("__overlaySvg");e&&e.remove()}function It(){const e=document.getElementById("driver-dummy-element");if(e)return e;let t=document.createElement("div");return t.id="driver-dummy-element",t.style.width="0",t.style.height="0",t.style.pointerEvents="none",t.style.opacity="0",t.style.position="fixed",t.style.top="50%",t.style.left="50%",document.body.appendChild(t),t}function Dt(e){const{element:t}=e;let A="string"==typeof t?document.querySelector(t):t;A||(A=It()),Ht(A,e)}function St(){const e=mt("__activeElement"),t=mt("__activeStep");e&&(_t(e),Qt(),Zt(e,t))}function Ht(e,t){const A=Date.now(),i=mt("__activeStep"),n=mt("__activeElement")||e,r=!n||n===e,o="driver-dummy-element"===e.id,s="driver-dummy-element"===n.id,a=at("animate"),l=t.onHighlightStarted||at("onHighlightStarted"),c=(null==t?void 0:t.onHighlighted)||at("onHighlighted"),d=(null==i?void 0:i.onDeselected)||at("onDeselected"),u=at(),h=mt();!r&&d&&d(s?void 0:n,i,{config:u,state:h}),l&&l(o?void 0:e,t,{config:u,state:h});const g=!r&&a;let p=!1;Rt(),ft("previousStep",i),ft("previousElement",n),ft("activeStep",t),ft("activeElement",e);const f=()=>{if(mt("__transitionCallback")!==f)return;const r=Date.now()-A,s=400-r<=200;t.popover&&s&&!p&&g&&(Vt(e,t),p=!0),at("animate")&&r<400?bt(r,400,n,e):(_t(e),c&&c(o?void 0:e,t,{config:at(),state:mt()}),ft("__transitionCallback",void 0),ft("__previousStep",i),ft("__previousElement",n),ft("__activeStep",t),ft("__activeElement",e)),window.requestAnimationFrame(f)};ft("__transitionCallback",f),window.requestAnimationFrame(f),dt(e),!g&&t.popover&&Vt(e,t),n.classList.remove("driver-active-element","driver-no-interaction"),n.removeAttribute("aria-haspopup"),n.removeAttribute("aria-expanded"),n.removeAttribute("aria-controls"),at("disableActiveInteraction")&&e.classList.add("driver-no-interaction"),e.classList.add("driver-active-element"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded","true"),e.setAttribute("aria-controls","driver-popover-content")}function Lt(){var e;null==(e=document.getElementById("driver-dummy-element"))||e.remove(),document.querySelectorAll(".driver-active-element").forEach((e=>{e.classList.remove("driver-active-element","driver-no-interaction"),e.removeAttribute("aria-haspopup"),e.removeAttribute("aria-expanded"),e.removeAttribute("aria-controls")}))}function Ot(){const e=mt("__resizeTimeout");e&&window.cancelAnimationFrame(e),ft("__resizeTimeout",window.requestAnimationFrame(St))}function Mt(e){var t;if(!mt("isInitialized")||"Tab"!==e.key&&9!==e.keyCode)return;const A=mt("__activeElement"),i=null==(t=mt("popover"))?void 0:t.wrapper,n=ct([...i?[i]:[],...A?[A]:[]]),r=n[0],o=n[n.length-1];if(e.preventDefault(),e.shiftKey){const e=n[n.indexOf(document.activeElement)-1]||o;null==e||e.focus()}else{const e=n[n.indexOf(document.activeElement)+1]||r;null==e||e.focus()}}function Tt(e){var t;(null==(t=at("allowKeyboardControl"))||t)&&("Escape"===e.key?yt("escapePress"):"ArrowRight"===e.key?yt("arrowRightPress"):"ArrowLeft"===e.key&&yt("arrowLeftPress"))}function Nt(e,t,A){const i=(t,i)=>{const n=t.target;e.contains(n)&&((!A||A(n))&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()),null==i||i(t))};document.addEventListener("pointerdown",i,!0),document.addEventListener("mousedown",i,!0),document.addEventListener("pointerup",i,!0),document.addEventListener("mouseup",i,!0),document.addEventListener("click",(e=>{i(e,t)}),!0)}function Kt(){window.addEventListener("keyup",Tt,!1),window.addEventListener("keydown",Mt,!1),window.addEventListener("resize",Ot),window.addEventListener("scroll",Ot)}function Pt(){window.removeEventListener("keyup",Tt),window.removeEventListener("resize",Ot),window.removeEventListener("scroll",Ot)}function Rt(){const e=mt("popover");e&&(e.wrapper.style.display="none")}function Vt(e,t){var A,i;let n=mt("popover");n&&document.body.removeChild(n.wrapper),n=Yt(),document.body.appendChild(n.wrapper);const{title:r,description:o,showButtons:s,disableButtons:a,showProgress:l,nextBtnText:c=at("nextBtnText")||"Next →",prevBtnText:d=at("prevBtnText")||"← Previous",progressText:u=at("progressText")||"{current} of {total}"}=t.popover||{};n.nextButton.innerHTML=c,n.previousButton.innerHTML=d,n.progress.innerHTML=u,r?(n.title.innerHTML=r,n.title.style.display="block"):n.title.style.display="none",o?(n.description.innerHTML=o,n.description.style.display="block"):n.description.style.display="none";const h=s||at("showButtons"),g=l||at("showProgress")||!1,p=(null==h?void 0:h.includes("next"))||(null==h?void 0:h.includes("previous"))||g;n.closeButton.style.display=h.includes("close")?"block":"none",p?(n.footer.style.display="flex",n.progress.style.display=g?"block":"none",n.nextButton.style.display=h.includes("next")?"block":"none",n.previousButton.style.display=h.includes("previous")?"block":"none"):n.footer.style.display="none";const f=a||at("disableButtons")||[];null!=f&&f.includes("next")&&(n.nextButton.disabled=!0,n.nextButton.classList.add("driver-popover-btn-disabled")),null!=f&&f.includes("previous")&&(n.previousButton.disabled=!0,n.previousButton.classList.add("driver-popover-btn-disabled")),null!=f&&f.includes("close")&&(n.closeButton.disabled=!0,n.closeButton.classList.add("driver-popover-btn-disabled"));const m=n.wrapper;m.style.display="block",m.style.left="",m.style.top="",m.style.bottom="",m.style.right="",m.id="driver-popover-content",m.setAttribute("role","dialog"),m.setAttribute("aria-labelledby","driver-popover-title"),m.setAttribute("aria-describedby","driver-popover-description");const B=n.arrow;B.className="driver-popover-arrow";const w=(null==(A=t.popover)?void 0:A.popoverClass)||at("popoverClass")||"";m.className=`driver-popover ${w}`.trim(),Nt(n.wrapper,(A=>{var i,n,r;const o=A.target,s=(null==(i=t.popover)?void 0:i.onNextClick)||at("onNextClick"),a=(null==(n=t.popover)?void 0:n.onPrevClick)||at("onPrevClick"),l=(null==(r=t.popover)?void 0:r.onCloseClick)||at("onCloseClick");return o.classList.contains("driver-popover-next-btn")?s?s(e,t,{config:at(),state:mt()}):yt("nextClick"):o.classList.contains("driver-popover-prev-btn")?a?a(e,t,{config:at(),state:mt()}):yt("prevClick"):o.classList.contains("driver-popover-close-btn")?l?l(e,t,{config:at(),state:mt()}):yt("closeClick"):void 0}),(e=>!(null!=n&&n.description.contains(e))&&!(null!=n&&n.title.contains(e))&&"string"==typeof e.className&&e.className.includes("driver-popover"))),ft("popover",n);const v=(null==(i=t.popover)?void 0:i.onPopoverRender)||at("onPopoverRender");v&&v(n,{config:at(),state:mt()}),Zt(e,t),dt(m);const y=e.classList.contains("driver-dummy-element"),C=ct([m,...y?[]:[e]]);C.length>0&&C[0].focus()}function Gt(){const e=mt("popover");if(null==e||!e.wrapper)return;const t=e.wrapper.getBoundingClientRect(),A=at("stagePadding")||0,i=at("popoverOffset")||0;return{width:t.width+A+i,height:t.height+A+i,realWidth:t.width,realHeight:t.height}}function zt(e,t){const{elementDimensions:A,popoverDimensions:i,popoverPadding:n,popoverArrowDimensions:r}=t;return"start"===e?Math.max(Math.min(A.top-n,window.innerHeight-i.realHeight-r.width),r.width):"end"===e?Math.max(Math.min(A.top-(null==i?void 0:i.realHeight)+A.height+n,window.innerHeight-(null==i?void 0:i.realHeight)-r.width),r.width):"center"===e?Math.max(Math.min(A.top+A.height/2-(null==i?void 0:i.realHeight)/2,window.innerHeight-(null==i?void 0:i.realHeight)-r.width),r.width):0}function jt(e,t){const{elementDimensions:A,popoverDimensions:i,popoverPadding:n,popoverArrowDimensions:r}=t;return"start"===e?Math.max(Math.min(A.left-n,window.innerWidth-i.realWidth-r.width),r.width):"end"===e?Math.max(Math.min(A.left-(null==i?void 0:i.realWidth)+A.width+n,window.innerWidth-(null==i?void 0:i.realWidth)-r.width),r.width):"center"===e?Math.max(Math.min(A.left+A.width/2-(null==i?void 0:i.realWidth)/2,window.innerWidth-(null==i?void 0:i.realWidth)-r.width),r.width):0}function Zt(e,t){const A=mt("popover");if(!A)return;const{align:i="start",side:n="left"}=(null==t?void 0:t.popover)||{},r=i,o="driver-dummy-element"===e.id?"over":n,s=at("stagePadding")||0,a=Gt(),l=A.arrow.getBoundingClientRect(),c=e.getBoundingClientRect(),d=c.top-a.height;let u=d>=0;const h=window.innerHeight-(c.bottom+a.height);let g=h>=0;const p=c.left-a.width;let f=p>=0;const m=window.innerWidth-(c.right+a.width);let B=m>=0;const w=!u&&!g&&!f&&!B;let v=o;if("top"===o&&u?B=f=g=!1:"bottom"===o&&g?B=f=u=!1:"left"===o&&f?B=u=g=!1:"right"===o&&B&&(f=u=g=!1),"over"===o){const e=window.innerWidth/2-a.realWidth/2,t=window.innerHeight/2-a.realHeight/2;A.wrapper.style.left=`${e}px`,A.wrapper.style.right="auto",A.wrapper.style.top=`${t}px`,A.wrapper.style.bottom="auto"}else if(w){const e=window.innerWidth/2-(null==a?void 0:a.realWidth)/2,t=10;A.wrapper.style.left=`${e}px`,A.wrapper.style.right="auto",A.wrapper.style.bottom=`${t}px`,A.wrapper.style.top="auto"}else if(f){const e=Math.min(p,window.innerWidth-(null==a?void 0:a.realWidth)-l.width),t=zt(r,{elementDimensions:c,popoverDimensions:a,popoverPadding:s,popoverArrowDimensions:l});A.wrapper.style.left=`${e}px`,A.wrapper.style.top=`${t}px`,A.wrapper.style.bottom="auto",A.wrapper.style.right="auto",v="left"}else if(B){const e=Math.min(m,window.innerWidth-(null==a?void 0:a.realWidth)-l.width),t=zt(r,{elementDimensions:c,popoverDimensions:a,popoverPadding:s,popoverArrowDimensions:l});A.wrapper.style.right=`${e}px`,A.wrapper.style.top=`${t}px`,A.wrapper.style.bottom="auto",A.wrapper.style.left="auto",v="right"}else if(u){const e=Math.min(d,window.innerHeight-a.realHeight-l.width);let t=jt(r,{elementDimensions:c,popoverDimensions:a,popoverPadding:s,popoverArrowDimensions:l});A.wrapper.style.top=`${e}px`,A.wrapper.style.left=`${t}px`,A.wrapper.style.bottom="auto",A.wrapper.style.right="auto",v="top"}else if(g){const e=Math.min(h,window.innerHeight-(null==a?void 0:a.realHeight)-l.width);let t=jt(r,{elementDimensions:c,popoverDimensions:a,popoverPadding:s,popoverArrowDimensions:l});A.wrapper.style.left=`${t}px`,A.wrapper.style.bottom=`${e}px`,A.wrapper.style.top="auto",A.wrapper.style.right="auto",v="bottom"}w?A.arrow.classList.add("driver-popover-arrow-none"):Wt(r,v,e)}function Wt(e,t,A){const i=mt("popover");if(!i)return;const n=A.getBoundingClientRect(),r=Gt(),o=i.arrow,s=r.width,a=window.innerWidth,l=n.width,c=n.left,d=r.height,u=window.innerHeight,h=n.top,g=n.height;o.className="driver-popover-arrow";let p=t,f=e;"top"===t?(c+l<=0?(p="right",f="end"):c+l-s<=0&&(p="top",f="start"),c>=a?(p="left",f="end"):c+s>=a&&(p="top",f="end")):"bottom"===t?(c+l<=0?(p="right",f="start"):c+l-s<=0&&(p="bottom",f="start"),c>=a?(p="left",f="start"):c+s>=a&&(p="bottom",f="end")):"left"===t?(h+g<=0?(p="bottom",f="end"):h+g-d<=0&&(p="left",f="start"),h>=u?(p="top",f="end"):h+d>=u&&(p="left",f="end")):"right"===t&&(h+g<=0?(p="bottom",f="start"):h+g-d<=0&&(p="right",f="start"),h>=u?(p="top",f="start"):h+d>=u&&(p="right",f="end")),p?(o.classList.add(`driver-popover-arrow-side-${p}`),o.classList.add(`driver-popover-arrow-align-${f}`)):o.classList.add("driver-popover-arrow-none")}function Yt(){const e=document.createElement("div");e.classList.add("driver-popover");const t=document.createElement("div");t.classList.add("driver-popover-arrow");const A=document.createElement("header");A.id="driver-popover-title",A.classList.add("driver-popover-title"),A.style.display="none",A.innerText="Popover Title";const i=document.createElement("div");i.id="driver-popover-description",i.classList.add("driver-popover-description"),i.style.display="none",i.innerText="Popover description is here";const n=document.createElement("button");n.type="button",n.classList.add("driver-popover-close-btn"),n.setAttribute("aria-label","Close"),n.innerHTML="×";const r=document.createElement("footer");r.classList.add("driver-popover-footer");const o=document.createElement("span");o.classList.add("driver-popover-progress-text"),o.innerText="";const s=document.createElement("span");s.classList.add("driver-popover-navigation-btns");const a=document.createElement("button");a.type="button",a.classList.add("driver-popover-prev-btn"),a.innerHTML="← Previous";const l=document.createElement("button");return l.type="button",l.classList.add("driver-popover-next-btn"),l.innerHTML="Next →",s.appendChild(a),s.appendChild(l),r.appendChild(o),r.appendChild(s),e.appendChild(n),e.appendChild(t),e.appendChild(A),e.appendChild(i),e.appendChild(r),{wrapper:e,arrow:t,title:A,description:i,footer:r,previousButton:a,nextButton:l,closeButton:n,footerButtons:s,progress:o}}function Xt(){var e;const t=mt("popover");t&&(null==(e=t.wrapper.parentElement)||e.removeChild(t.wrapper))}function Jt(e={}){function t(){at("allowClose")&&l()}function A(){const e=mt("activeIndex"),t=at("steps")||[];if("undefined"==typeof e)return;const A=e+1;t[A]?a(A):l()}function i(){const e=mt("activeIndex"),t=at("steps")||[];if("undefined"==typeof e)return;const A=e-1;t[A]?a(A):l()}function n(e){(at("steps")||[])[e]?a(e):l()}function r(){var e;if(mt("__transitionCallback"))return;const t=mt("activeIndex"),A=mt("__activeStep"),n=mt("__activeElement");if("undefined"==typeof t||"undefined"==typeof A||"undefined"==typeof mt("activeIndex"))return;const r=(null==(e=A.popover)?void 0:e.onPrevClick)||at("onPrevClick");if(r)return r(n,A,{config:at(),state:mt()});i()}function o(){var e;if(mt("__transitionCallback"))return;const t=mt("activeIndex"),i=mt("__activeStep"),n=mt("__activeElement");if("undefined"==typeof t||"undefined"==typeof i)return;const r=(null==(e=i.popover)?void 0:e.onNextClick)||at("onNextClick");if(r)return r(n,i,{config:at(),state:mt()});A()}function s(){mt("isInitialized")||(ft("isInitialized",!0),document.body.classList.add("driver-active",at("animate")?"driver-fade":"driver-simple"),Kt(),vt("overlayClick",t),vt("escapePress",t),vt("arrowLeftPress",r),vt("arrowRightPress",o))}function a(e=0){var t,A,i,n,r,o,s,c;const d=at("steps");if(!d)return console.error("No steps to drive through"),void l();if(!d[e])return void l();ft("__activeOnDestroyed",document.activeElement),ft("activeIndex",e);const u=d[e],h=d[e+1],g=d[e-1],p=(null==(t=u.popover)?void 0:t.doneBtnText)||at("doneBtnText")||"Done",f=at("allowClose"),m="undefined"!=typeof(null==(A=u.popover)?void 0:A.showProgress)?null==(i=u.popover)?void 0:i.showProgress:at("showProgress"),B=((null==(n=u.popover)?void 0:n.progressText)||at("progressText")||"{{current}} of {{total}}").replace("{{current}}",`${e+1}`).replace("{{total}}",`${d.length}`),w=(null==(r=u.popover)?void 0:r.showButtons)||at("showButtons"),v=["next","previous",...f?["close"]:[]].filter((e=>!(null!=w&&w.length)||w.includes(e))),y=(null==(o=u.popover)?void 0:o.onNextClick)||at("onNextClick"),C=(null==(s=u.popover)?void 0:s.onPrevClick)||at("onPrevClick"),b=(null==(c=u.popover)?void 0:c.onCloseClick)||at("onCloseClick");Dt({...u,popover:{showButtons:v,nextBtnText:h?void 0:p,disableButtons:[...g?[]:["previous"]],showProgress:m,progressText:B,onNextClick:y||(()=>{h?a(e+1):l()}),onPrevClick:C||(()=>{a(e-1)}),onCloseClick:b||(()=>{l()}),...(null==u?void 0:u.popover)||{}}})}function l(e=!0){const t=mt("__activeElement"),A=mt("__activeStep"),i=mt("__activeOnDestroyed"),n=at("onDestroyStarted");if(e&&n){const e=!t||"driver-dummy-element"===(null==t?void 0:t.id);return void n(e?void 0:t,A,{config:at(),state:mt()})}const r=(null==A?void 0:A.onDeselected)||at("onDeselected"),o=at("onDestroyed");if(document.body.classList.remove("driver-active","driver-fade","driver-simple"),Pt(),Xt(),Lt(),kt(),Ct(),Bt(),t&&A){const e="driver-dummy-element"===t.id;r&&r(e?void 0:t,A,{config:at(),state:mt()}),o&&o(e?void 0:t,A,{config:at(),state:mt()})}i&&i.focus()}return st(e),{isActive:()=>mt("isInitialized")||!1,refresh:Ot,drive:(e=0)=>{s(),a(e)},setConfig:st,setSteps:e=>{Bt(),st({...at(),steps:e})},getConfig:at,getState:mt,getActiveIndex:()=>mt("activeIndex"),isFirstStep:()=>0===mt("activeIndex"),isLastStep:()=>{const e=at("steps")||[],t=mt("activeIndex");return void 0!==t&&t===e.length-1},getActiveStep:()=>mt("activeStep"),getActiveElement:()=>mt("activeElement"),getPreviousElement:()=>mt("previousElement"),getPreviousStep:()=>mt("previousStep"),moveNext:A,movePrevious:i,moveTo:n,hasNextStep:()=>{const e=at("steps")||[],t=mt("activeIndex");return void 0!==t&&e[t+1]},hasPreviousStep:()=>{const e=at("steps")||[],t=mt("activeIndex");return void 0!==t&&e[t-1]},highlight:e=>{s(),Dt({...e,popover:e.popover?{showButtons:[],showProgress:!1,progressText:"",...e.popover}:void 0})},destroy:()=>{l(!1)}}}let $t,qt,eA=0,tA={index:eA,driver:!0};const AA=Jt({steps:[{element:"#Guide_1_1",popover:{title:"Title",description:"Description"}},{element:".Guide_1_2",popover:{title:"Title",description:"Description"}},{element:".Guide_1_2",popover:{title:"Title",description:"Description"}},{element:".Guide_1_4",popover:{title:"Title",description:"Description"}},{element:".Guide_1_5",popover:{title:"Title",description:"Description"}},{element:".Guide_1_6",popover:{title:"Title",description:"Description"}},{element:".Guide_1_7",popover:{title:"Title",description:"Description"}},{element:".Guide_1_8",popover:{title:"Title",description:"Description"}},{element:".Guide_1_2",popover:{title:"Title",description:"Description"}},{element:".Guide_1_8",popover:{title:"Title",description:"Description"}},{element:".Guide_1_10",popover:{title:"Title",description:"Description"}},{element:".Guide_1_11",popover:{title:"Title",description:"Description"}},{element:".Guide_1_8",popover:{title:"Title",description:"Description"}},{element:".Guide_1_2",popover:{title:"Title",description:"Description"}},{element:".Guide_1_14",popover:{title:"Title",description:"Description"}},{element:".Guide_1_15",popover:{title:"Title",description:"Description"}},{element:".Guide_1_16",popover:{title:"Title",description:"Description"}},{element:".Guide_1_17",popover:{title:"Title",description:"Description"}},{element:".Guide_1_18",popover:{title:"Title",description:"Description"}},{element:".Guide_1_19",popover:{title:"Title",description:"Description"}}],allowClose:!1,showButtons:!1,stagePadding:10,stageRadius:5,allowKeyboardControl:!0,disableActiveInteraction:!1,overlayOpacity:.4,overlay:!0,onPopoverRender:(e,t)=>{console.log(e,t),qt&&qt.classList.remove("Guide_"),e.previousButton.style.display="none",t.state.activeIndex>=1&&t.state.activeIndex<=2||t.state.activeIndex>=18&&t.state.activeIndex<=19?(e.footer.style.display="block",iA(t.state.activeElement)):(e.footer.style.display="none",nA(t.state.activeElement)),eA=AA.getState().activeIndex,tA.index=eA,$t?.commit("setGuide",tA),qt=t.state.activeElement,qt.classList.add("Guide_")},onDestroyStarted:()=>{$t?.commit("setGuide",tA),AA.destroy()},onDestroyed:()=>{}});function iA(e){e.style.posiiton="relative";const t=document.getElementsByClassName("driver-mask__")?.[0];if(t);else{const t=document.createElement("div");t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.width="100%",t.style.height="100%",t.style.backgroundColor="rgba(0, 0, 0, 0)",t.style.zIndex="9999",t.classList.add("driver-mask__"),e.appendChild(t)}}function nA(e){const t=document.getElementsByClassName("driver-mask__")?.[0];t&&t.remove()}const rA=()=>{$t=(0,Ne.oR)();let e={index:eA};$t?.commit("setGuide",e)};var oA=A(8552),sA=(0,n.aZ)({components:{scaleImage:rt},props:["msg","sketchCatecoryList"],setup(){let e=(0,Y.iH)([{name:"image",type:!1},{name:"text",type:!0},{name:"text-image",type:!1}]),t=(0,Y.iH)(),A=(0,Y.iH)([]),i=(0,Y.iH)([]),r=(0,Y.iH)([]),o=(0,Y.iH)(!1),s=(0,Y.iH)(""),a=(0,Y.iH)(1),l=(0,Y.iH)(""),c=(0,Y.iH)(20),d=(0,Y.iH)(0),u=(0,Y.iH)(""),h=(0,Y.iH)(null),g=(0,Ne.oR)(),p=(0,Y.iH)([]),f=(0,Y.iH)([]),m=(0,Y.iH)(),B=(0,Y.iH)(""),w=(0,Y.iH)({num:"",optype:!1,name:(0,oA.QT)().t("Generate.Model")+"1"}),v=(0,n.Fl)((()=>g.state.UploadFilesModule.printboard)),y=(0,Y.iH)({}),C=(0,Y.iH)(!1),b=(0,Y.iH)(!1),_=(0,Y.iH)(),Q=(0,n.f3)("driver__"),{t:U}=(0,oA.QT)(),F=(0,Y.iH)();return{imgList:A,selectImgList:i,selectImgListIds:r,isShowLoading:o,selectCode:s,currentPage:a,searchPictureName:l,pageSize:c,total:d,searcMaterialhName:u,designType:h,checkbox:e,store:g,fileList:p,sketchboardList:f,collectionElementid:m,level2Type:B,checkboxImage:t,printModel:w,loadingShow:C,printBoards:v,workspace:y,inputShow:b,inputTime:_,driver__:Q,t:U,isTest:F}},data(e){return{indicator:(0,n.h)(Le.Z,{style:{fontSize:"2.4rem"},spin:!0}),upload:{isPin:0,level1Type:e.msg,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},token:"",uploadUrl:"",moodboarList:(0,n.Fl)((()=>(0,Ne.oR)().state.UploadFilesModule.moodboard)),type_:{type1:"generate",type2:e.msg}}},mounted(){this.token=(0,Pe.ej)("token")||"";let e=(0,Pe.ej)("isTest");this.isTest=JSON.parse(e)||"",this.uploadUrl=(0,Re.M$)(),this.workspace=this.store.state.Workspace.workspace},computed:{getSketchLabel(e){return e=>{let t="";for(let A of this.sketchCatecoryList)if(A.value===e){t=A.label;break}return t}}},methods:{generageAdd(e){e.type_=this.type_,e.resData=JSON.parse(JSON.stringify(e)),this.store.commit("addGenerateMaterialFils",e),console.log(this.fileList);let t=this.store.state.UploadFilesModule.moodboard;t.length>=2&&this.driver__.driver&&AA.moveNext()},beforeUpload(e){const t="image/jpeg"===e.type||"image/png"===e.type||"image/jpg"===e.type||"image/bmp"===e.type;t||Oe.ZP.info(this.t("Generate.jsContent1"));const A=e.size/1024/1024<2;return A||Oe.ZP.info(this.t("Generate.jsContent2")),t&&A||Me.Z.LIST_IGNORE},setKeyword(e){this.checkbox.forEach((e=>{e.type=!1})),(0,n.Y3)().then((()=>{this.checkbox[e].type=!0,this.$emit("generateCheckbox",this.checkbox[0].type),this.checkboxImage=this.checkbox[1].type,this.checkboxImage&&this.sketchboardList.forEach((e=>{e.checked=!1}))}))},PrintModel(){this.printModel.optype||document.addEventListener("click",this.removePrintModel),this.printModel.optype=!this.printModel.optype},removePrintModel(){this.printModel.optype=!1,document.removeEventListener("click",this.removePrintModel)},setprintModel(e){this.printModel=3==e?{num:"Generate",optype:!1,name:this.t("Generate.Generate")}:{num:e,optype:!1,name:this.t("Generate.Model")+e}},getgenerate(){if(this.isTest)return void Oe.ZP.info(this.t("isTest.available"));if(!this.searchPictureName)return void Oe.ZP.info(this.t("Generate.jsContent5"));{let e=this.searchPictureName.split(/\s+/).length;if(e>75)return void Oe.ZP.info(this.t("Generate.jsContent4"))}let e={generateType:"text",designType:"",collectionElementId:"",level1Type:this.upload.level1Type,level2Type:"",text:this.searchPictureName,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,version:1,gender:""};this.loadingShow=!0,Te.V.axiosPost(Te.V.httpUrls.sketchAndPrintGenerate,e).then((e=>{if(e){let t;this.fileList=[],e.generatedCollectionItems.forEach(((A,i)=>{t={id:e.generatedCollectionItems[i].generateItemId,imgUrl:e.generatedCollectionItems[i].generateItemUrl,like:e.generatedCollectionItems[i].isLiked},this.fileList.push(t),this.loadingShow=!1})),this.driver__.driver&&AA.moveTo(5)}})).catch((e=>{this.loadingShow=!1}))},ifMaximumLength(){clearTimeout(this.inputTime);let e=document.getElementsByClassName("generate")[0].getElementsByClassName("input_box")[0];e.getElementsByClassName("search_input")[0];this.inputTime=setTimeout((()=>{this.searchPictureName?.split(/\s+/).length>75?this.inputShow=!0:this.inputShow=!1}),500)},fileUploadChange(e){let t=e.file;if("done"===t.status){let e=JSON.parse(t.xhr.response);t.id=e.data.id,t.imgUrl=e.data.url,t.resData=e.data,t.type_="upload",t.id_=Ke.id++,t.category=this.sketchCatecoryList?.[0]?.name,t.categoryValue=this.sketchCatecoryList?.[0]?.value;let A=this.sketchboardList.filter((e=>"done"===e.status)),i=this.store.state.UploadFilesModule.sketchboard;i.length>=8?Oe.ZP.info(this.t("Generate.jsContent6")):this.sketchboardList=A}else if("error"===t.status){let e=-1;this.sketchboardList.forEach(((A,i)=>{t.uid===A.uid&&(e=i)})),e>-1&&this.sketchboardList.splice(e,1),Oe.ZP.warning(t.name+this.t("Generate.jsContent7"))}},showFileCategory(e){e.categoryShow=!0,document.addEventListener("click",this.hiddenFileCategory)},selectFileCategory(e,t){e.category=t.name,e.categoryShow=!1},hiddenFileCategory(){for(let e of this.sketchboardList)e.categoryShow=!1;document.removeEventListener("click",this.hiddenFileCategory)},setSketchboardItem(e){this.checkboxImage||(e.checked?e.checked=!1:(this.sketchboardList.forEach((e=>{e.checked&&(e.checked=!1)})),e.checked=!0),this.collectionElementid=e.id,this.level2Type=e.category)},deleteFile(e){if("generate"==e.type_||"material"==e.type_)this.store.commit("addGenerateMaterialFils",e);else{let t;this.sketchboardList=this.store.state.UploadFilesModule.moodboardFiles,this.store.state.UploadFilesModule.moodboardFiles.forEach(((A,i)=>{A.id_==e.id_&&(t=i)})),this.sketchboardList.splice(t,1),this.store.commit("setSketchboardFile",this.sketchboardList)}},likeFile(e,t){if("like"==t){let t={generateDetailId:e.id,level1Type:"Moodboard",level2Type:"",timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone};Te.V.axiosPost(Te.V.httpUrls.generateLike,t).then((t=>{e.like=!0})).catch((e=>{}))}else{let t={generateDetailId:e.id,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone};Te.V.axiosGet(Te.V.httpUrls.generateDislike,{params:t}).then((t=>{e.like=!1})).catch((e=>{}))}},scaleImage(){let e=this.$refs.scaleImage;e.init(this.fileList)},closeModal(){this.searchPictureName="",this.designType=null,this.selectImgList=[],this.selectImgListIds=[],this.imgList=[],this.currentPage=1,this.total=0}}});const aA=(0,it.Z)(sA,[["render",He]]);var lA=aA;const cA=e=>((0,n.dD)("data-v-31c30620"),e=e(),(0,n.Cn)(),e),dA={class:"collection_modal_item"},uA={class:"modal_left"},hA={class:"switch_type_list"},gA={class:"moodboard_body"},pA={class:"upload_img_body scroll_style"},fA={class:"upload_item"},mA={class:"upload_file_item_content"},BA={class:"upload_file_item_content"},wA=["src"],vA=["onClick"],yA={class:"upload_file_item upload_component"},CA={class:"upload_tip_block"},bA=cA((()=>(0,n._)("i",{class:"fi fi-br-upload"},null,-1))),_A=[bA],QA={class:"upload_max_tip"},UA=cA((()=>(0,n._)("span",{class:"icon iconfont icon-zhuyi"},null,-1))),FA={class:"modal_right"},xA={class:"modal_layout Guide_1_7"},EA={class:"modal_text"},kA=["onClick"],IA=cA((()=>(0,n._)("div",{class:"checked"},[(0,n._)("i",{class:"fi fi-rr-trash"})],-1))),DA={class:"modal_accomplish"},SA={class:"modal_text"},HA=cA((()=>(0,n._)("div",null,"Layout of selected moodboard",-1))),LA={class:"modal_img_max"},OA=["src"],MA={key:1,class:"modal_img"},TA=["src"],NA={class:"mark_loading"};function KA(e,t,A,i,s,a){const l=(0,n.up)("a-spin"),c=(0,n.up)("a-upload"),d=(0,n.up)("Material"),u=(0,n.up)("Generate"),h=(0,n.up)("layout"),g=(0,n.up)("layoutMobile"),p=(0,n.Q2)("lazy"),f=(0,n.Q2)("modelImg");return(0,n.wg)(),(0,n.iD)("div",dA,[(0,n._)("div",uA,[(0,n._)("div",hA,[(0,n._)("div",{onClick:t[0]||(t[0]=(0,o.iM)((t=>e.open(1)),["stop"])),class:(0,r.C_)(["switch_type_item",[1==e.openClick?"select_swtich":""]])},[(0,n._)("span",null,(0,r.zw)(e.$t("MoodboardUpload.Upload")),1)],2),(0,n._)("div",{onClick:t[1]||(t[1]=(0,o.iM)((t=>e.open(2)),["stop"])),class:(0,r.C_)(["switch_type_item",[2==e.openClick?"select_swtich":""]])},[(0,n._)("span",null,(0,r.zw)(e.$t("MoodboardUpload.Library")),1)],2),(0,n._)("div",{onClick:t[2]||(t[2]=(0,o.iM)((t=>e.open(3)),["stop"])),class:(0,r.C_)(["switch_type_item Guide_1_4",[3==e.openClick?"select_swtich":""]])},[(0,n._)("span",null,(0,r.zw)(e.$t("MoodboardUpload.Generate")),1)],2)]),(0,n.wy)((0,n._)("div",gA,[(0,n._)("div",pA,[(0,n._)("div",fA,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.fileList,((t,A)=>((0,n.wg)(),(0,n.iD)("div",{class:"upload_file_item",key:t},[(0,n.wy)((0,n._)("div",mA,[(0,n.Wm)(l,{indicator:e.indicator,tip:"Uploading..."},null,8,["indicator"])],512),[[o.F8,"uploading"===t?.status]]),(0,n.wy)((0,n._)("div",BA,[(0,n._)("img",{src:t?.imgUrl,class:"upload_img"},null,8,wA),(0,n._)("div",{class:"delete_file_block",onClick:A=>e.deleteFile(t)},(0,r.zw)(e.$t("MoodboardUpload.Delete")),9,vA)],512),[[o.F8,"done"===t?.status]])])))),128)),(0,n.wy)((0,n._)("div",yA,[(0,n.Wm)(c,{action:e.uploadUrl+"/api/element/upload","list-type":"picture-card",data:{...e.upload},headers:{Authorization:e.token},"before-upload":e.beforeUpload,"file-list":e.fileList,"onUpdate:file-list":t[3]||(t[3]=t=>e.fileList=t),multiple:"",maxCount:8-e.moodboarList.length+e.fileList.length,accept:".jpg,.png,.jpeg,.bmp",onChange:t[4]||(t[4]=t=>e.fileUploadChange(t))},{default:(0,n.w5)((()=>[(0,n.wy)((0,n._)("div",CA,_A,512),[[o.F8,e.moodboarList.length<8]])])),_:1},8,["action","data","headers","before-upload","file-list","maxCount"])],512),[[o.F8,e.moodboarList.length<8]])])]),(0,n._)("div",QA,[UA,(0,n._)("span",null,(0,r.zw)(e.$t("MoodboardUpload.Maximum")),1)])],512),[[o.F8,1==e.openClick]]),(0,n.wy)((0,n.Wm)(d,{ref:"Material",msg:"Moodboard"},null,512),[[o.F8,2==e.openClick]]),(0,n.wy)((0,n.Wm)(u,{ref:"Generate",msg:"Moodboard"},null,512),[[o.F8,3==e.openClick]])]),(0,n.wy)((0,n._)("div",FA,[(0,n._)("div",xA,[(0,n._)("div",EA,[(0,n._)("div",null,(0,r.zw)(e.$t("MoodboardUpload.Thumbnail")),1),(0,n._)("div",{class:"modal_btn started_btn",onClick:t[5]||(t[5]=t=>e.layout())},(0,r.zw)(e.$t("MoodboardUpload.layout")),1)]),(0,n._)("div",{class:(0,r.C_)(["modal_img",[e.driver__.driver?"hideEvents":""]])},[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.moodboarList,((t,A)=>((0,n.wg)(),(0,n.iD)("div",{class:"modal_img_item",key:t,onClick:A=>e.deleteFile(t)},[(0,n.wy)((0,n._)("img",null,null,512),[[p,t.imgUrl]]),IA],8,kA)))),128))],2)]),(0,n.wy)((0,n._)("div",DA,[(0,n._)("div",SA,[HA,(0,n._)("div",{class:"modal_btn started_btn",onClick:t[6]||(t[6]=(0,o.iM)((t=>e.changeTemplateModal()),["stop"]))},"Edit")]),(0,n._)("div",LA,[e.modalImg[0]?.id?((0,n.wg)(),(0,n.iD)("div",MA,[(0,n._)("img",{src:e.modalImg[0].imgUrl},null,8,TA)])):((0,n.wg)(),(0,n.iD)("div",{key:0,class:(0,r.C_)(["modal_img",{active:e.flex_direction}]),id:"modal_img"},[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.layoutList,((t,A)=>((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)([[e.moodb_className[A]],"modal_imgItem"])},[(0,n.wy)((0,n._)("img",{src:t.imgUrl},null,8,OA),[[f]])],2)))),256))],2)),(0,n.wy)((0,n._)("div",NA,[(0,n.Wm)(l,{size:"large"})],512),[[o.F8,e.loadingShow]])])],512),[[o.F8,e.moodboarList.length>1||e.edieShow]])],512),[[o.F8,e.moodboarList.length]]),(0,n.Wm)(h,{ref:"layout",moodb_className:e.moodb_className,flex_direction:e.flex_direction,onSetmoodbClass:e.setmoodbClass},null,8,["moodb_className","flex_direction","onSetmoodbClass"]),(0,n.Wm)(g,{ref:"layoutMobile",moodb_className:e.moodb_className,flex_direction:e.flex_direction,onSetmoodbClass:e.setmoodbClass},null,8,["moodb_className","flex_direction","onSetmoodbClass"])])}var PA=A(5929);const RA={class:"my_material_modal"},VA={class:"my_material_header"},GA={class:"my_material_header_right"},zA={class:"content_search_block"},jA=["placeholder"],ZA=(0,n._)("span",{class:"icon iconfont icon-sousuo"},null,-1),WA=[ZA],YA={class:"my_material_content"},XA={class:"material_content_body scroll_style"},JA=["src","onClick"],$A={key:0,class:"operate_file_block"},qA={class:"select_img_type"},ei=["onClick"],ti={class:"category_list"},Ai=["onClick"],ii={key:1,class:"pin_block"},ni={class:"material_content_list_loding"},ri=(0,n._)("img",{src:PA,alt:""},null,-1),oi=[ri],si={class:"no_data_block loading_block"};function ai(e,t,A,i,s,a){const l=(0,n.up)("a-checkbox"),c=(0,n.up)("a-spin"),d=(0,n.Q2)("observe");return(0,n.wg)(),(0,n.iD)("div",RA,[(0,n._)("div",VA,[(0,n._)("div",GA,[(0,n._)("div",zA,[(0,n.wy)((0,n._)("input",{class:"search_input",placeholder:e.$t("Material.inputContent1"),"onUpdate:modelValue":t[0]||(t[0]=t=>e.searchPictureName=t),onKeydown:t[1]||(t[1]=(0,o.D2)((t=>e.getLibraryList("")),["enter"]))},null,40,jA),[[o.nr,e.searchPictureName]]),(0,n._)("div",{class:"search_icon_block",onClick:t[2]||(t[2]=(0,o.iM)((t=>e.getLibraryList("")),["stop"]))},WA)])])]),(0,n._)("div",YA,[(0,n._)("div",XA,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.imgList,((t,A)=>((0,n.wg)(),(0,n.iD)("div",{key:t,class:(0,r.C_)(["content_img_item",[t?.checked?"active":"","Moodboard"==e.selectCode?"moodb":""]])},[(0,n._)("img",{src:t?.imgUrl,onClick:(0,o.iM)((A=>e.selectImgItem(t)),["stop"])},null,8,JA),"Sketchboard"==e.selectCode?((0,n.wg)(),(0,n.iD)("div",$A,[(0,n._)("div",qA,[(0,n._)("div",{class:"select_category",onClick:(0,o.iM)((A=>e.showFileCategory(t)),["stop"])},[(0,n.Uk)((0,r.zw)(t?.categoryValue)+" ",1),(0,n._)("div",{class:(0,r.C_)(["icon","iconfont","icon-xiala",t?.categoryShow?"icon_rotate":""])},null,2)],8,ei),(0,n.wy)((0,n._)("div",ti,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.disignTypeList,((A,i)=>((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)(["category_item",t?.category==A.name?"select_category_item":""]),key:i,onClick:(0,o.iM)((i=>e.selectFileCategory(t,A)),["stop"])},(0,r.zw)(A.value),11,Ai)))),128))],512),[[o.F8,t?.categoryShow]])])])):(0,n.kq)("",!0),"Sketchboard"==e.selectCode||"Printboard"==e.selectCode?((0,n.wg)(),(0,n.iD)("div",ii,[(0,n.Wm)(l,{checked:t.pin,"onUpdate:checked":e=>t.pin=e},{default:(0,n.w5)((()=>[(0,n.Uk)((0,r.zw)(e.$t("Material.PIN")),1)])),_:2},1032,["checked","onUpdate:checked"])])):(0,n.kq)("",!0)],2)))),128)),(0,n.wy)(((0,n.wg)(),(0,n.iD)("div",ni,oi)),[[o.F8,e.total>e.imgList?.length],[d]])]),(0,n.wy)((0,n._)("div",si,[(0,n.Wm)(c,{size:"large"})],512),[[o.F8,e.isShowLoading]])])])}var li=(0,n.aZ)({props:["msg","disignTypeList"],setup(e){let t=(0,Y.iH)(!1),A=(0,Y.iH)([]),i=(0,Y.iH)(!1),n=(0,Y.iH)(""),r=(0,Y.iH)(1),o=(0,Y.iH)(""),s=(0,Y.iH)(12),a=(0,Y.iH)(0),l=(0,Y.iH)(""),c=(0,Y.iH)(null),d=(0,Y.iH)({}),{t:u}=(0,oA.QT)();return{myMaterialModalShow:t,imgList:A,isShowLoading:i,selectCode:n,currentPage:r,searchPictureName:o,pageSize:s,total:a,searcMaterialhName:l,designType:c,workspace:d,t:u}},data(e){return{type_:{type1:"material",type2:e.msg},store:(0,Ne.oR)()}},directives:{observe:{mounted(e,t){const A=new IntersectionObserver(n,{root:null,threshold:[.1]});A.observe(e);let i=t.instance;function n(e,t){e.forEach((e=>{e.isIntersecting&&i.getLibraryList("di")}))}}}},computed:{getSketchLabel(e){return e=>{let t="";for(let A of this.disignTypeList)if(A.value===e){t=A.label;break}return t}},sketchboardList(){return this.store.state.UploadFilesModule.sketchMaterialFiles},moodboardList(){return this.store.state.UploadFilesModule.moodboardMaterialFiles},printboardList(){return this.store.state.UploadFilesModule.printMaterialFiles}},mounted(){},watch:{sketchboardList:{handler(e,t){t.forEach((t=>{-1==e.findIndex((e=>e.id==t.id))&&this.imgList.forEach((e=>{e.id==t.id&&(e.checked=!1)}))}))}},moodboardList:{handler(e,t){t.forEach((t=>{-1==e.findIndex((e=>e.id==t.id))&&this.imgList.forEach((e=>{e.id==t.id&&(e.checked=!1)}))}))}},printboardList:{handler(e,t){t.forEach((t=>{-1==e.findIndex((e=>e.id==t.id))&&this.imgList.forEach((e=>{e.id==t.id&&(e.checked=!1)}))}))}}},methods:{init(e){this.selectCode=e,this.getLibraryList("")},selectImgItem(e){e.type_=this.type_,e.resData=JSON.parse(JSON.stringify(e)),this.imgList.forEach((e=>{e.categoryShow=!1})),e.jsContent1=this.t("uploadFile.jsContent1"),this.store.commit("addGenerateMaterialFils",e)},changePage(e,t){this.currentPage=e,this.pageSize=t,this.getLibraryList("")},handleChange(){this.getLibraryList("")},getLibraryList(e){let t=this.store.state.Workspace.workspace;"di"==e&&(this.currentPage=void 0!=this.imgList?.[0]?.id?this.imgList?.length/this.pageSize+1:1);let A={level1Type:this.selectCode,modelSex:t?.sex,page:this.currentPage,pictureName:this.searchPictureName,size:this.pageSize};this.isShowLoading=!0,Te.V.axiosPost(Te.V.httpUrls.queryLibraryPage,A).then((e=>{let t=[];e.content.forEach(((e,A)=>{let i;"Sketchboard"==this.type_.type2?(i=this.store.state.UploadFilesModule.sketchMaterialFiles,e.categoryValue=e.level2TypeEnum.value,e.category=e.level2Type,e.categoryShow=!1):"Moodboard"==this.type_.type2?i=this.store.state.UploadFilesModule.moodboardMaterialFiles:"Printboard"==this.type_.type2&&(i=this.store.state.UploadFilesModule.printMaterialFiles),e.imgUrl=e.url,e.id_||(e.id_=Ke.id++,i.forEach((t=>{e.id==t.id&&(e.id_=t.id_?t.id_:Ke.id++,e.checked=!0,e.pin=t.pin)}))),t.push(e)})),t[t.length-1].id==this.imgList[this.imgList.length-1]?.id||this.imgList.push(...t),this.total=e.total,this.isShowLoading=!1})).catch((e=>{this.isShowLoading=!1}))},closeModal(){this.myMaterialModalShow=!1,this.searchPictureName="",this.designType=null,this.imgList=[],this.currentPage=1,this.pageSize=10,this.total=0},showFileCategory(e){e.categoryShow=!0,document.addEventListener("click",this.hiddenFileCategory)},selectFileCategory(e,t){e.categoryValue=t.value,e.category=t.name;for(let A of this.imgList)A.categoryShow=!1;this.setSketchLibrary(e)},hiddenFileCategory(){for(let e of this.imgList)e.categoryShow=!1;document.removeEventListener("click",this.hiddenFileCategory)},setSketchLibrary(e){let t={libraryId:e.id,level2Type:e.category};Te.V.axiosPost(Te.V.httpUrls.setSketchLibrary,t).then((e=>{})).catch((e=>{}))}}});const ci=(0,it.Z)(li,[["render",ai]]);var di=ci;const ui={class:"mood_template_component"},hi={class:"mood_template_item template_three"},gi={class:"mood_template_item template_four"},pi={class:"mood_template_item template_five"},fi={class:"mood_template_item template_six"},mi={class:"mood_template_item template_seven"},Bi={class:"mood_template_item template_eight"},wi={class:"mood_template_item template_nine"},vi={class:"mood_template_item template_ten"};function yi(e,t,A,i,s,a){return(0,n.wg)(),(0,n.iD)("div",ui,[(0,n.wy)((0,n._)("div",hi,[(0,n._)("div",{class:"img_template three_1",style:(0,r.j5)({backgroundImage:`url(${e.fileList[0]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template three_2",style:(0,r.j5)({backgroundImage:`url(${e.fileList[1]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template three_1",style:(0,r.j5)({backgroundImage:`url(${e.fileList[2]?.imgUrl})`})},null,4)],512),[[o.F8,3==e.moodTemplateId]]),(0,n.wy)((0,n._)("div",gi,[(0,n._)("div",{class:"img_template four_1",style:(0,r.j5)({backgroundImage:`url(${e.fileList[0]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template four_2",style:(0,r.j5)({backgroundImage:`url(${e.fileList[1]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template four_3",style:(0,r.j5)({backgroundImage:`url(${e.fileList[2]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template four_4",style:(0,r.j5)({backgroundImage:`url(${e.fileList[3]?.imgUrl})`})},null,4)],512),[[o.F8,4==e.moodTemplateId]]),(0,n.wy)((0,n._)("div",pi,[(0,n._)("div",{class:"img_template five_1",style:(0,r.j5)({backgroundImage:`url(${e.fileList[0]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template five_2",style:(0,r.j5)({backgroundImage:`url(${e.fileList[1]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template five_3",style:(0,r.j5)({backgroundImage:`url(${e.fileList[2]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template five_4",style:(0,r.j5)({backgroundImage:`url(${e.fileList[3]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template five_5",style:(0,r.j5)({backgroundImage:`url(${e.fileList[4]?.imgUrl})`})},null,4)],512),[[o.F8,5==e.moodTemplateId]]),(0,n.wy)((0,n._)("div",fi,[(0,n._)("div",{class:"img_template six_1",style:(0,r.j5)({backgroundImage:`url(${e.fileList[0]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template six_2",style:(0,r.j5)({backgroundImage:`url(${e.fileList[1]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template six_3",style:(0,r.j5)({backgroundImage:`url(${e.fileList[2]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template six_4",style:(0,r.j5)({backgroundImage:`url(${e.fileList[3]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template six_5",style:(0,r.j5)({backgroundImage:`url(${e.fileList[4]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template six_6",style:(0,r.j5)({backgroundImage:`url(${e.fileList[5]?.imgUrl})`})},null,4)],512),[[o.F8,6==e.moodTemplateId]]),(0,n.wy)((0,n._)("div",mi,[(0,n._)("div",{class:"img_template seven_1",style:(0,r.j5)({backgroundImage:`url(${e.fileList[0]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template seven_2",style:(0,r.j5)({backgroundImage:`url(${e.fileList[1]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template seven_3",style:(0,r.j5)({backgroundImage:`url(${e.fileList[2]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template seven_4",style:(0,r.j5)({backgroundImage:`url(${e.fileList[3]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template seven_5",style:(0,r.j5)({backgroundImage:`url(${e.fileList[4]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template seven_6",style:(0,r.j5)({backgroundImage:`url(${e.fileList[5]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template seven_7",style:(0,r.j5)({backgroundImage:`url(${e.fileList[6]?.imgUrl})`})},null,4)],512),[[o.F8,7==e.moodTemplateId]]),(0,n.wy)((0,n._)("div",Bi,[(0,n._)("div",{class:"img_template eight_1",style:(0,r.j5)({backgroundImage:`url(${e.fileList[0]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template eight_2",style:(0,r.j5)({backgroundImage:`url(${e.fileList[1]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template eight_3",style:(0,r.j5)({backgroundImage:`url(${e.fileList[2]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template eight_4",style:(0,r.j5)({backgroundImage:`url(${e.fileList[3]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template eight_5",style:(0,r.j5)({backgroundImage:`url(${e.fileList[4]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template eight_6",style:(0,r.j5)({backgroundImage:`url(${e.fileList[5]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template eight_7",style:(0,r.j5)({backgroundImage:`url(${e.fileList[6]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template eight_8",style:(0,r.j5)({backgroundImage:`url(${e.fileList[7]?.imgUrl})`})},null,4)],512),[[o.F8,8==e.moodTemplateId]]),(0,n.wy)((0,n._)("div",wi,[(0,n._)("div",{class:"img_template nine_1",style:(0,r.j5)({backgroundImage:`url(${e.fileList[0]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template nine_2",style:(0,r.j5)({backgroundImage:`url(${e.fileList[1]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template nine_3",style:(0,r.j5)({backgroundImage:`url(${e.fileList[2]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template nine_4",style:(0,r.j5)({backgroundImage:`url(${e.fileList[3]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template nine_5",style:(0,r.j5)({backgroundImage:`url(${e.fileList[4]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template nine_6",style:(0,r.j5)({backgroundImage:`url(${e.fileList[5]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template nine_7",style:(0,r.j5)({backgroundImage:`url(${e.fileList[6]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template nine_8",style:(0,r.j5)({backgroundImage:`url(${e.fileList[7]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template nine_9",style:(0,r.j5)({backgroundImage:`url(${e.fileList[8]?.imgUrl})`})},null,4)],512),[[o.F8,9==e.moodTemplateId]]),(0,n.wy)((0,n._)("div",vi,[(0,n._)("div",{class:"img_template ten_1",style:(0,r.j5)({backgroundImage:`url(${e.fileList[0]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template ten_2",style:(0,r.j5)({backgroundImage:`url(${e.fileList[1]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template ten_3",style:(0,r.j5)({backgroundImage:`url(${e.fileList[2]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template ten_4",style:(0,r.j5)({backgroundImage:`url(${e.fileList[3]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template ten_5",style:(0,r.j5)({backgroundImage:`url(${e.fileList[4]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template ten_6",style:(0,r.j5)({backgroundImage:`url(${e.fileList[5]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template ten_7",style:(0,r.j5)({backgroundImage:`url(${e.fileList[6]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template ten_8",style:(0,r.j5)({backgroundImage:`url(${e.fileList[7]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template ten_9",style:(0,r.j5)({backgroundImage:`url(${e.fileList[8]?.imgUrl})`})},null,4),(0,n._)("div",{class:"img_template ten_10",style:(0,r.j5)({backgroundImage:`url(${e.fileList[9]?.imgUrl})`})},null,4)],512),[[o.F8,10==e.moodTemplateId]])])}var Ci=(0,n.aZ)({props:["fileList","moodTemplateId"],setup(){}});const bi=(0,it.Z)(Ci,[["render",yi],["__scopeId","data-v-3174c5e2"]]);var _i=bi;const Qi={class:"layout_content"},Ui={class:"collection_title"},Fi={class:"collection_title_text"},xi={class:"layout_title"},Ei=(0,n._)("i",{class:"fi fi-rr-cross-small"},null,-1),ki=[Ei],Ii={class:"layout_nav"},Di=["onClick"],Si=["src"],Hi=["onClick"],Li=["src"],Oi={class:"layout_btn"},Mi={class:"layout_btn_top"},Ti={class:"layout_btn_bottom"},Ni={class:"layout_btn_left"},Ki={class:"layout_btn_right"},Pi={class:"layout_rotote"},Ri={class:"layout_translate"},Vi={class:"layout_angle_tr"},Gi={class:"layout_angle_tl"},zi={class:"layout_angle_br"},ji={class:"layout_angle_bl"},Zi={class:"layout_left"},Wi={class:"layout_left_text"},Yi=["onClick"],Xi={class:"mark_loading"};function Ji(e,t,A,i,s,a){const l=(0,n.up)("a-spin"),c=(0,n.up)("a-upload"),d=(0,n.up)("a-modal"),u=(0,n.Q2)("modelImg"),h=(0,n.Q2)("compile"),g=(0,n.Q2)("rotote"),p=(0,n.Q2)("translate"),f=(0,n.Q2)("angle"),m=(0,n.Q2)("layout");return(0,n.wg)(),(0,n.iD)("div",null,[(0,n.Wm)(d,{class:"layout_modal",visible:e.layout,"onUpdate:visible":t[2]||(t[2]=t=>e.layout=t),footer:null,width:"65%",maskClosable:!1,centered:!0,closable:!1,mask:!1,destroyOnClose:!0},{default:(0,n.w5)((()=>[(0,n._)("div",Qi,[(0,n._)("div",Ui,[(0,n._)("div",Fi,[(0,n._)("div",xi,(0,r.zw)(e.$t("layout.MoodBoardDesign")),1)])]),(0,n._)("div",{class:"collection_closeIcon",onClick:t[0]||(t[0]=(0,o.iM)((t=>e.cancelDsign()),["stop"]))},ki),(0,n._)("div",Ii,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.layoutList,((t,A)=>((0,n.wg)(),(0,n.iD)("div",{key:t,class:(0,r.C_)({active:t.setPitch}),onClick:i=>e.setpitch(t,A)},[(0,n._)("img",{src:t.imgUrl},null,8,Si)],10,Di)))),128))]),(0,n._)("div",{class:(0,r.C_)(["layout_centent",{active:e.flex_direction}]),id:"layoutCentent"},[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.layoutList,((t,A)=>(0,n.wy)(((0,n.wg)(),(0,n.iD)("div",{key:t,class:(0,r.C_)([e.moodbClassName[A],"modal_imgItem"]),onClick:i=>e.setpitch(t,A),ref_for:!0,ref:"content"},[(0,n.wy)((0,n._)("img",{crossOrigin:"anonymous",src:t.imgUrl,draggable:"false"},null,8,Li),[[u]]),(0,n.wy)((0,n._)("ul",Oi,[(0,n.wy)((0,n._)("li",Mi,null,512),[[h,"top",void 0,{stop:!0}]]),(0,n.wy)((0,n._)("li",Ti,null,512),[[h,"bottom",void 0,{stop:!0}]]),(0,n.wy)((0,n._)("li",Ni,null,512),[[h,"left",void 0,{stop:!0}]]),(0,n.wy)((0,n._)("li",Ki,null,512),[[h,"right",void 0,{stop:!0}]]),(0,n.wy)((0,n._)("li",Pi,null,512),[[g,void 0,void 0,{stop:!0}]]),(0,n.wy)((0,n._)("li",Ri,null,512),[[p,void 0,void 0,{stop:!0}]]),(0,n.wy)((0,n._)("li",Vi,null,512),[[f,"top",void 0,{stop:!0}]]),(0,n.wy)((0,n._)("li",Gi,null,512),[[f,"right",void 0,{stop:!0}]]),(0,n.wy)((0,n._)("li",zi,null,512),[[f,"bottom",void 0,{stop:!0}]]),(0,n.wy)((0,n._)("li",ji,null,512),[[f,"left",void 0,{stop:!0}]])],512),[[o.F8,t.setPitch]])],10,Hi)),[[m,A]]))),128))],2),(0,n._)("div",Zi,[(0,n._)("div",Wi,(0,r.zw)(e.$t("layout.LayerOptions")),1),((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.moodbList,((t,A)=>((0,n.wg)(),(0,n.iD)("div",{class:"layout_left_items",onClick:A=>e.setmoodb(t)},[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(t,((e,t)=>((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)([e,"layout_left_item"])},null,2)))),256))],8,Yi)))),256))]),(0,n._)("div",{class:"button_second submit_button",onClick:t[1]||(t[1]=t=>e.submitTemplate())},(0,r.zw)(e.$t("layout.Submit")),1)]),(0,n.wy)((0,n._)("div",Xi,[(0,n.Wm)(l,{size:"large"})],512),[[o.F8,e.loadingShow]]),(0,n.Wm)(c,{action:e.uploadUrl+"/api/element/upload","list-type":"picture-card",data:{...e.upload},headers:{Authorization:e.token},"before-upload":e.beforeUpload,multiple:"",accept:".jpg,.png,.jpeg,.bmp"},null,8,["action","data","headers","before-upload"])])),_:1},8,["visible"])])}var $i={moodb_:[[["wh4"]],[["wh4","wh4"],["wh8","wh8"]],[["wh4","w1h2","w1h2"],["w1h2","w1h2","wh4"],["w2h1","w2h1","wh4"],["wh4","w2h1","w2h1"]],[["wh1","wh1","w1h2","wh4"],["w1h2","wh1","wh1","wh4"],["wh4","wh1","wh1","w1h2"],["w1h2","w1h2","w1h2","w1h2"]],[["wh1","wh1","wh1","wh1","wh4"],["wh1","wh1","wh4","wh1","wh1"],["wh4","wh1","wh1","wh1","wh1"],["w1h2","w1h2","w1h2","wh1","wh1"],["wh1","wh1","w1h2","w1h2","w1h2"],["w1h2","w1h2","wh1","wh1","w1h2"],["w1h2","wh1","wh1","w1h2","w1h2"]],[["wh1","wh1","wh1","wh1","w1h2","w1h2"],["wh1","wh1","w1h2","wh1","wh1","w1h2"],["w1h2","w1h2","wh1","wh1","wh1","wh1"],["wh1","wh1","wh1","wh1","w2h1","w2h1"],["wh1","wh1","w2h1","w2h1","wh1","wh1"],["w2h1","w2h1","wh1","wh1","wh1","wh1"]],[["wh1","wh1","wh1","wh1","wh1","wh1","w1h2"],["wh1","wh1","wh1","wh1","w1h2","wh1","wh1"],["wh1","wh1","w1h2","wh1","wh1","wh1","wh1"],["w1h2","wh1","wh1","wh1","wh1","wh1","wh1"],["wh1","wh1","wh1","wh1","wh1","wh1","w2h1"]],[["wh1","wh1","wh1","wh1","wh1","wh1","wh1","wh1"]]]},qi=A(9980),en=A.n(qi),tn=(A(2801),A(8675),A(7380),A(1118),A(1120)),An=A.n(tn);const nn=e=>new Promise((t=>{An()(e,{useCORS:!0}).then((e=>{let A,i,n,r=e.toDataURL("image/jpeg",.9),o=.9,s=new Image;s.src=r,s.setAttribute("crossOrigin","Anonymous"),s.onload=function(){n=1*this.width,A=this.width,i=this.height;let e=document.createElement("canvas"),r=e.getContext("2d");Math.max(A,i)>n?A>i?(e.width=n,e.height=n*(i/A)):(e.height=n,e.width=n*(A/i)):(e.width=A,e.height=i,o=.6),r.clearRect(0,0,e.width,e.height),r.drawImage(this,0,0,e.width,e.height);let s=e.toDataURL("image/jpeg",o),a=rn(s),l=new File([a],new Date+".jpg");t(l)}}))}));function rn(e,t){let A=atob(e.split(",")[1]),i=[];for(let n=0;n<A.length;n++)i.push(A.charCodeAt(n));return new Blob([new Uint8Array(i)],{type:"image/jpeg"})}var on=nn,sn=(0,n.aZ)({props:["moodb_className","flex_direction"],components:{draggable:en()},setup(e){let t=(0,Y.iH)(!1),A=(0,Y.iH)([]),i=(0,Y.iH)(1),n=!1,r=(0,Y.iH)([]);const o=(0,Y.iH)(null);let s=(0,Y.iH)(!1);return{layout:t,templateFileList:A,openClick:i,drag:n,layoutList:r,content:o,loadingShow:s}},data(){return{store:(0,Ne.oR)(),moodb:$i.moodb_,moodbList:{},moodbClassName:[],setabsolute:!1,token:"",uploadUrl:"",upload:{isPin:0,level1Type:"Moodboard",timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone}}},mounted(){this.token=(0,Pe.ej)("token")||"",this.uploadUrl=(0,Re.M$)()},directives:{layout:{mounted(e,t,A){e.addEventListener("mousedown",(t=>{t.stopPropagation(),e.parentElement.children.forEach((e=>{e.style.left=e.offsetLeft+"px",e.style.top=e.offsetTop+"px"})),e.parentElement.children.forEach((e=>{e.classList.add("active")})),e.style.zIndex=Ke.zIndex++;let A=e.style.left?e.style.left.replace(/px/g,""):0,i=e.style.top?e.style.top.replace(/px/g,""):0,n=t.offsetX,r=t.offsetY,o=t.clientX-t.offsetX-Number(A),s=t.clientY-t.offsetY-Number(i),a=!0;document.onmousemove=function(t){a&&(e.style.left=t.x-n-o+"px",e.style.top=t.y-r-s+"px",e.offsetLeft<=0&&(e.style.left="0px"),e.offsetTop<=0&&(e.style.top="0px"),e.offsetLeft+e.offsetWidth>=e.parentNode.offsetWidth&&(e.style.left=e.parentNode.offsetWidth-e.offsetWidth+"px"),e.offsetTop+e.offsetHeight>=e.parentNode.offsetHeight&&(e.style.top=e.parentNode.offsetHeight-e.offsetHeight+"px"))},document.onmouseup=function(){a=!1}}))},updated(e,t){}},compile:{mounted(e,t){e.addEventListener("mousedown",(A=>{A.stopPropagation();let i,n,r=e.parentNode.parentNode;e.parentElement.parentNode.parentNode.children.forEach((e=>{e.style.left=e.offsetLeft+"px",e.style.top=e.offsetTop+"px"})),e.parentElement.parentNode.parentNode.children.forEach((e=>{e.classList.add("active")})),"right"==t.value||("left"==t.value?(r.style.right=r.parentNode.offsetWidth-r.offsetWidth-r.offsetLeft+"px",r.style.left="auto"):"top"==t.value?(r.style.bottom=r.parentNode.offsetHeight-r.offsetHeight-r.offsetTop+"px",r.style.top="auto"):t.value),"left"==t.value||"right"==t.value?(i=A.x,n=r.offsetWidth):(n=r.offsetHeight,i=A.y);let o=!0;document.onmousemove=function(e){o&&("left"==t.value?r.style.width=n+i-e.x+"px":"right"==t.value?r.style.width=n+e.x-i+"px":"top"==t.value?r.style.height=n+i-e.y+"px":"bottom"==t.value&&(r.style.height=n+e.y-i+"px"),r.parentNode.offsetWidth<=r.offsetWidth+Number(r.style.right.replace(/px/g,""))&&(r.style.width=r.parentNode.offsetWidth-Number(r.style.right.replace(/px/g,""))+"px"),r.offsetLeft+r.offsetWidth>=r.parentNode.offsetWidth&&(r.style.width=r.parentNode.offsetWidth-r.offsetLeft+"px"),r.parentNode.offsetHeight<=r.offsetHeight+Number(r.style.bottom.replace(/px/g,""))&&(r.style.height=r.parentNode.offsetHeight-Number(r.style.bottom.replace(/px/g,""))+"px"),r.offsetTop+r.offsetHeight>=r.parentNode.offsetHeight&&(r.style.height=r.parentNode.offsetHeight-r.offsetTop+"px"))},document.onmouseup=function(){o=!1}}))}},rotote:{mounted(e){let t,A=!0,i=0,n=e.parentNode.parentNode;if(document.defaultView){let e=document.defaultView.getComputedStyle(n.firstElementChild,null).transform.split("(")[1].split(",");t=Number(e[3])}e.addEventListener("mousedown",(r=>{r.stopPropagation(),A=!0;var o=e.getBoundingClientRect();let s=o.x+o.width/2,a=o.y+o.height/2;document.addEventListener("mousemove",(r=>{if(A){let A=s,o=a,l=r.clientX-A,c=o-r.clientY;i=Math.atan2(l,c)*(180/Math.PI),n.firstElementChild.style.transform="translate(-50%,-50%) scale("+t+") rotateZ("+i+"deg)",e.style.transform="translate(-50%,-50%) rotateZ("+i+"deg)"}})),document.addEventListener("mouseup",(()=>{A=!1}))}));let r=!0;e.parentNode.addEventListener("mousemove",(A=>{e.parentNode.addEventListener("mousewheel",(e=>{r&&(r=!1,e.deltaY>0?t-=t<=1?.05:.1:t+=t<=1?.05:.1,t>=3?t=3:t<.2&&(t=.2),setTimeout((()=>{r=!0}),100),n.firstElementChild.style.transform="translate(-50%,-50%) scale("+t+") rotateZ("+i+"deg)")}))}))}},angle:{mounted(e,t){let A=!1;e.addEventListener("mousedown",(i=>{i.stopPropagation(),e.parentNode.children.forEach((e=>{e.classList.add("eventNode")})),A=!0;let n,r,o=e.parentNode.parentNode,s=Math.sqrt(o.offsetWidth/2*o.offsetWidth/2+o.offsetHeight/2*o.offsetHeight/2),a=i=>{if(A){"right"==t.value?(n=o.offsetWidth-i.offsetX,r=o.offsetHeight-i.offsetY):"top"==t.value?(n=o.offsetWidth-i.offsetX-o.offsetWidth,r=o.offsetHeight-i.offsetY):"left"==t.value?(n=o.offsetWidth-i.offsetX,r=o.offsetHeight-i.offsetY-o.offsetHeight):"bottom"==t.value&&(n=o.offsetWidth-i.offsetX-o.offsetWidth,r=o.offsetHeight-i.offsetY-o.offsetHeight);let A=Math.sqrt(n*n+r*+r)/2;if(100-100*A/s<=50){let i=(100-100*A/s)/3.33-1;i<=0&&(i=0),"right"==t.value?(e.parentNode.style.borderTopLeftRadius=100-100*A/s+"%",o.style.borderTopLeftRadius=100-100*A/s+"%",e.style.left=i+"%",e.style.top=i+"%"):"top"==t.value?(e.parentNode.style.borderTopRightRadius=100-100*A/s+"%",o.style.borderTopRightRadius=100-100*A/s+"%",e.style.right=i+"%",e.style.left="auto",e.style.top=i+"%"):"bottom"==t.value?(e.parentNode.style.borderBottomRightRadius=100-100*A/s+"%",o.style.borderBottomRightRadius=100-100*A/s+"%",e.style.right=i+"%",e.style.top="auto",e.style.left="auto",e.style.bottom=i+"%"):"left"==t.value&&(e.parentNode.style.borderBottomLeftRadius=100-100*A/s+"%",o.style.borderBottomLeftRadius=100-100*A/s+"%",e.style.left=i+"%",e.style.top="auto",e.style.bottom=i+"%")}else"right"==t.value?(e.parentNode.style.borderTopLeftRadius="50%",o.style.borderTopLeftRadius="50%"):"top"==t.value?(e.parentNode.style.borderTopRightRadius="50%",o.style.borderTopRightRadius="50%"):"bottom"==t.value?(e.parentNode.style.borderBottomRightRadius="50%",o.style.borderBottomRightRadius="50%"):"left"==t.value&&(e.parentNode.style.borderBottomLeftRadius="50%",o.style.borderBottomLeftRadius="50%")}document.addEventListener("mouseup",(()=>{A=!1,e.removeEventListener("mousemove",a),e.parentNode.children.forEach((e=>{e.classList.remove("eventNode")}))}))};e.parentNode.addEventListener("mousemove",a)}))}},translate:{mounted(e,t,A){e.addEventListener("mousedown",(t=>{t.stopPropagation();let A=e.parentNode.parentNode;e.style.left=(e.offsetLeft+2)/A.offsetWidth*100+"%",e.style.top=(e.offsetTop+2)/A.offsetHeight*100+"%";e.style.left&&e.style.left.replace(/%/g,""),e.style.top&&e.style.top.replace(/%/g,"");let i=t.offsetX,n=t.offsetY,r=t.clientX-t.offsetX-e.offsetLeft,o=t.clientY-t.offsetY-e.offsetTop,s=!0;document.onmousemove=function(t){if(s){let s=(t.x-i+2-r)/A.offsetWidth*100+"%",a=(t.y-n+2-o)/A.offsetHeight*100+"%";e.style.left=s,e.style.top=a,e.previousSibling.style.top=a,e.previousSibling.style.left=s,A.firstChild.style.top=a,A.firstChild.style.left=s,e.offsetLeft<=0&&(e.style.left="0%",e.previousSibling.style.left="0%",A.firstChild.style.left="0%"),e.offsetTop<=0&&(e.style.top="0%",e.previousSibling.style.top="0%",A.firstChild.style.top="0%"),e.style.left.replace(/%/g,"")>=100&&(e.style.left="100%",e.previousSibling.style.left="100%",A.firstChild.style.left="100%"),e.style.top.replace(/%/g,"")>=100&&(e.style.top="100%",e.previousSibling.style.top="100%",A.firstChild.style.top="100%")}},document.onmouseup=function(){s=!1}}))}},modelImg:{mounted(e){let t=e.parentNode;t.offsetHeight>t.offsetWidth?(e.style.height="100%",e.style.width="auto"):(e.style.width="100%",e.style.height="auto")},updated(e){let t=e.parentNode;t.offsetHeight>t.offsetWidth?(e.style.height="100%",e.style.width="auto"):(e.style.width="100%",e.style.height="auto")}}},methods:{init(){let e=this.$parent;e=e.layoutList,this.layout=!0,this.layoutList.forEach((e=>{e.setPitch=!1})),this.layoutList=e,this.moodbList=this.moodb[e.length-1],this.moodbClassName=this.moodb_className},cancelDsign(){this.layout=!1},setpitch(e,t){this.layoutList.forEach((e=>{e.setPitch=!1})),e.setPitch=!0,this.content&&(this.content[t].style.zIndex=Ke.zIndex++)},setmoodb(e){if(this.moodbClassName=e,this.$emit("setmoodbClass",this.moodbClassName),this.content)for(e of this.content)e.classList.remove("active"),e.style.top="",e.style.left="",e.style.right="",e.style.bottom="",e.style.width="",e.style.height=""},changeTemplateModal(){this.layout=!this.layout},submitTemplate(){this.loadingShow=!0,this.layoutList.forEach((e=>{e.setPitch=!1})),(0,n.Y3)().then((async()=>{let e=document.getElementById("layoutCentent"),t=await on(e),A=new FormData;A.append("inPin","0"),A.append("level1Type","Moodboard"),A.append("timeZone",Intl.DateTimeFormat().resolvedOptions().timeZone),A.append("file",t);let i={headers:{"Content-Type":"multipart/form-data",Accept:"*/*"}};Te.V.axiosPost(Te.V.httpUrls.elementUpload,A,i).then((e=>{e.imgUrl=e.url,this.layout=!1,this.loadingShow=!1,this.store.commit("setDisposeMoodboard",e)})).catch((e=>{this.loadingShow=!1}))}))},beforeUpload(){}}});const an=(0,it.Z)(sn,[["render",Ji]]);var ln=an;const cn={class:"layout_content"},dn={class:"collection_title"},un={class:"collection_title_text"},hn={class:"layout_title"},gn=(0,n._)("i",{class:"fi fi-rr-cross-small"},null,-1),pn=[gn],fn={class:"layout_nav"},mn=["onClick"],Bn=["src"],wn=["onClick"],vn=["src"],yn={class:"layout_btn"},Cn={class:"layout_btn_top"},bn={class:"layout_btn_bottom"},_n={class:"layout_btn_left"},Qn={class:"layout_btn_right"},Un={class:"layout_rotote"},Fn={class:"layout_translate"},xn={class:"layout_angle_tr"},En={class:"layout_angle_tl"},kn={class:"layout_angle_br"},In={class:"layout_angle_bl"},Dn={class:"layout_left"},Sn={class:"layout_left_text"},Hn=["onClick"],Ln={class:"mark_loading"};function On(e,t,A,i,s,a){const l=(0,n.up)("a-spin"),c=(0,n.up)("a-upload"),d=(0,n.up)("a-modal"),u=(0,n.Q2)("modelImg"),h=(0,n.Q2)("compile"),g=(0,n.Q2)("rotote"),p=(0,n.Q2)("translate"),f=(0,n.Q2)("angle"),m=(0,n.Q2)("layout");return(0,n.wg)(),(0,n.iD)("div",null,[(0,n.Wm)(d,{class:"layout_modal",visible:e.layout,"onUpdate:visible":t[2]||(t[2]=t=>e.layout=t),footer:null,width:"65%",maskClosable:!1,centered:!0,closable:!1,mask:!1,destroyOnClose:!0},{default:(0,n.w5)((()=>[(0,n._)("div",cn,[(0,n._)("div",dn,[(0,n._)("div",un,[(0,n._)("div",hn,(0,r.zw)(e.$t("layout.MoodBoardDesign")),1)])]),(0,n._)("div",{class:"collection_closeIcon",onClick:t[0]||(t[0]=(0,o.iM)((t=>e.cancelDsign()),["stop"]))},pn),(0,n._)("div",fn,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.layoutList,((t,A)=>((0,n.wg)(),(0,n.iD)("div",{key:t,class:(0,r.C_)({active:t.setPitch}),onClick:i=>e.setpitch(t,A)},[(0,n._)("img",{src:t.imgUrl},null,8,Bn)],10,mn)))),128))]),(0,n._)("div",{class:(0,r.C_)(["layout_centent",{active:e.flex_direction}]),id:"layoutCentent"},[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.layoutList,((t,A)=>(0,n.wy)(((0,n.wg)(),(0,n.iD)("div",{key:t,class:(0,r.C_)([e.moodbClassName[A],"modal_imgItem"]),onClick:i=>e.setpitch(t,A),ref_for:!0,ref:"content"},[(0,n.wy)((0,n._)("img",{crossOrigin:"anonymous",src:t.imgUrl,draggable:"false"},null,8,vn),[[u]]),(0,n.wy)((0,n._)("ul",yn,[(0,n.wy)((0,n._)("li",Cn,null,512),[[h,"top",void 0,{stop:!0}]]),(0,n.wy)((0,n._)("li",bn,null,512),[[h,"bottom",void 0,{stop:!0}]]),(0,n.wy)((0,n._)("li",_n,null,512),[[h,"left",void 0,{stop:!0}]]),(0,n.wy)((0,n._)("li",Qn,null,512),[[h,"right",void 0,{stop:!0}]]),(0,n.wy)((0,n._)("li",Un,null,512),[[g,void 0,void 0,{stop:!0}]]),(0,n.wy)((0,n._)("li",Fn,null,512),[[p,void 0,void 0,{stop:!0}]]),(0,n.wy)((0,n._)("li",xn,null,512),[[f,"top",void 0,{stop:!0}]]),(0,n.wy)((0,n._)("li",En,null,512),[[f,"right",void 0,{stop:!0}]]),(0,n.wy)((0,n._)("li",kn,null,512),[[f,"bottom",void 0,{stop:!0}]]),(0,n.wy)((0,n._)("li",In,null,512),[[f,"left",void 0,{stop:!0}]])],512),[[o.F8,t.setPitch]])],10,wn)),[[m,A]]))),128))],2),(0,n._)("div",Dn,[(0,n._)("div",Sn,(0,r.zw)(e.$t("layout.LayerOptions")),1),((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.moodbList,((t,A)=>((0,n.wg)(),(0,n.iD)("div",{class:"layout_left_items",onClick:A=>e.setmoodb(t)},[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(t,((e,t)=>((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)([e,"layout_left_item"])},null,2)))),256))],8,Hn)))),256))]),(0,n._)("div",{class:"button_second submit_button",onClick:t[1]||(t[1]=t=>e.submitTemplate())},(0,r.zw)(e.$t("layout.Submit")),1)]),(0,n.wy)((0,n._)("div",Ln,[(0,n.Wm)(l,{size:"large"})],512),[[o.F8,e.loadingShow]]),(0,n.Wm)(c,{action:e.uploadUrl+"/api/element/upload","list-type":"picture-card",data:{...e.upload},headers:{Authorization:e.token},"before-upload":e.beforeUpload,multiple:"",accept:".jpg,.png,.jpeg,.bmp"},null,8,["action","data","headers","before-upload"])])),_:1},8,["visible"])])}var Mn=(0,n.aZ)({props:["moodb_className","flex_direction"],components:{draggable:en()},setup(e){let t=(0,Y.iH)(!1),A=(0,Y.iH)([]),i=(0,Y.iH)(1),n=!1,r=(0,Y.iH)([]);const o=(0,Y.iH)(null);let s=(0,Y.iH)(!1);return{layout:t,templateFileList:A,openClick:i,drag:n,layoutList:r,content:o,loadingShow:s}},data(){return{store:(0,Ne.oR)(),moodb:$i.moodb_,moodbList:{},moodbClassName:[],setabsolute:!1,token:"",uploadUrl:"",upload:{isPin:0,level1Type:"Moodboard",timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone}}},mounted(){this.token=(0,Pe.ej)("token")||"",this.uploadUrl=(0,Re.M$)()},directives:{layout:{mounted(e,t,A){e.addEventListener("touchstart",(t=>{t.stopPropagation(),e.parentElement.children.forEach((e=>{e.style.left=e.offsetLeft+"px",e.style.top=e.offsetTop+"px"})),e.parentElement.children.forEach((e=>{e.classList.add("active")})),e.style.zIndex=Ke.zIndex++;let A=e.style.left?e.style.left.replace(/px/g,""):0,i=e.style.top?e.style.top.replace(/px/g,""):0,n=t.changedTouches[0].pageX-e.getBoundingClientRect().left,r=t.changedTouches[0].pageY-e.getBoundingClientRect().top,o=t.targetTouches[0].clientX-n-Number(A),s=t.targetTouches[0].clientY-r-Number(i),a=!0,l=function(t){a&&(e.style.left=t.targetTouches[0].pageX-n-o+"px",e.style.top=t.targetTouches[0].pageY-r-s+"px",e.offsetLeft<=0&&(e.style.left="0px"),e.offsetTop<=0&&(e.style.top="0px"),e.offsetLeft+e.offsetWidth>=e.parentNode.offsetWidth&&(e.style.left=e.parentNode.offsetWidth-e.offsetWidth+"px"),e.offsetTop+e.offsetHeight>=e.parentNode.offsetHeight&&(e.style.top=e.parentNode.offsetHeight-e.offsetHeight+"px"))},c=function(){a=!1,document.removeEventListener("touchmove",l),document.removeEventListener("touchmove",l)};document.addEventListener("touchmove",l),document.addEventListener("touchend",c)}))},updated(e,t){}},compile:{mounted(e,t){e.addEventListener("touchstart",(A=>{console.log(A),A.stopPropagation();let i,n,r=e.parentNode.parentNode;e.parentElement.parentNode.parentNode.children.forEach((e=>{e.style.left=e.offsetLeft+"px",e.style.top=e.offsetTop+"px"})),e.parentElement.parentNode.parentNode.children.forEach((e=>{e.classList.add("active")})),"right"==t.value||("left"==t.value?(r.style.right=r.parentNode.offsetWidth-r.offsetWidth-r.offsetLeft+"px",r.style.left="auto"):"top"==t.value?(r.style.bottom=r.parentNode.offsetHeight-r.offsetHeight-r.offsetTop+"px",r.style.top="auto"):t.value),"left"==t.value||"right"==t.value?(i=A.targetTouches[0].clientX,n=r.offsetWidth):(n=r.offsetHeight,i=A.targetTouches[0].clientY);let o=!0,s=function(e){console.log(123),o&&("left"==t.value?r.style.width=n+i-e.targetTouches[0].clientX+"px":"right"==t.value?r.style.width=n+e.targetTouches[0].clientX-i+"px":"top"==t.value?r.style.height=n+i-e.targetTouches[0].clientY+"px":"bottom"==t.value&&(r.style.height=n+e.targetTouches[0].clientY-i+"px"),r.parentNode.offsetWidth<=r.offsetWidth+Number(r.style.right.replace(/px/g,""))&&(r.style.width=r.parentNode.offsetWidth-Number(r.style.right.replace(/px/g,""))+"px"),r.offsetLeft+r.offsetWidth>=r.parentNode.offsetWidth&&(r.style.width=r.parentNode.offsetWidth-r.offsetLeft+"px"),r.parentNode.offsetHeight<=r.offsetHeight+Number(r.style.bottom.replace(/px/g,""))&&(r.style.height=r.parentNode.offsetHeight-Number(r.style.bottom.replace(/px/g,""))+"px"),r.offsetTop+r.offsetHeight>=r.parentNode.offsetHeight&&(r.style.height=r.parentNode.offsetHeight-r.offsetTop+"px"))},a=function(){o=!1,e.parentNode.removeEventListener("touchmove",s),document.removeEventListener("touchmove",s),e.parentNode.children.forEach((e=>{e.classList.remove("eventNode")}))};e.parentNode.addEventListener("touchmove",s),document.addEventListener("touchend",a)}))}},rotote:{mounted(e){let t,A=!0,i=0,n=e.parentNode.parentNode;if(document.defaultView){let e=document.defaultView.getComputedStyle(n.firstElementChild,null).transform.split("(")[1].split(",");t=Number(e[3])}e.addEventListener("touchstart",(r=>{r.stopPropagation(),A=!0;var o=e.getBoundingClientRect();let s=o.x+o.width/2,a=o.y+o.height/2;document.addEventListener("touchmove",(r=>{if(A){let A=s,o=a,l=r.targetTouches[0].clientX-A,c=o-r.targetTouches[0].clientY;i=Math.atan2(l,c)*(180/Math.PI),n.firstElementChild.style.transform="translate(-50%,-50%) scale("+t+") rotateZ("+i+"deg)",e.style.transform="translate(-50%,-50%) rotateZ("+i+"deg)"}})),document.addEventListener("touchend",(()=>{A=!1}))}));let r=!0;e.parentNode.addEventListener("mousemove",(A=>{e.parentNode.addEventListener("mousewheel",(e=>{r&&(r=!1,e.deltaY>0?t-=t<=1?.05:.1:t+=t<=1?.05:.1,t>=3?t=3:t<.2&&(t=.2),setTimeout((()=>{r=!0}),100),n.firstElementChild.style.transform="translate(-50%,-50%) scale("+t+") rotateZ("+i+"deg)")}))}))}},angle:{mounted(e,t){let A=!1;e.addEventListener("touchstart",(i=>{i.stopPropagation(),e.parentNode.children.forEach((e=>{e.classList.add("eventNode")})),A=!0;let n,r,o=e.parentNode.parentNode,s=Math.sqrt(o.offsetWidth/2*o.offsetWidth/2+o.offsetHeight/2*o.offsetHeight/2),a=i=>{if(A){let A=i.changedTouches[0].pageX-e.parentNode.getBoundingClientRect().left,a=i.changedTouches[0].pageY-e.parentNode.getBoundingClientRect().top;"right"==t.value?(n=o.offsetWidth-A,r=o.offsetHeight-a):"top"==t.value?(n=o.offsetWidth-A-o.offsetWidth,r=o.offsetHeight-a):"left"==t.value?(n=o.offsetWidth-A,r=o.offsetHeight-o.offsetHeight-a):"bottom"==t.value&&(n=o.offsetWidth-A-o.offsetWidth,r=o.offsetHeight-a-o.offsetHeight);let l=Math.sqrt(n*n+r*r)/2;if(100-100*l/s<=50){let A=(100-100*l/s)/3.33-1;A<=0&&(A=0),"right"==t.value?(e.parentNode.style.borderTopLeftRadius=100-100*l/s+"%",o.style.borderTopLeftRadius=100-100*l/s+"%",e.style.left=A+"%",e.style.top=A+"%"):"top"==t.value?(e.parentNode.style.borderTopRightRadius=100-100*l/s+"%",o.style.borderTopRightRadius=100-100*l/s+"%",e.style.right=A+"%",e.style.left="auto",e.style.top=A+"%"):"bottom"==t.value?(e.parentNode.style.borderBottomRightRadius=100-100*l/s+"%",o.style.borderBottomRightRadius=100-100*l/s+"%",e.style.right=A+"%",e.style.top="auto",e.style.left="auto",e.style.bottom=A+"%"):"left"==t.value&&(e.parentNode.style.borderBottomLeftRadius=100-100*l/s+"%",o.style.borderBottomLeftRadius=100-100*l/s+"%",e.style.left=A+"%",e.style.top="auto",e.style.bottom=A+"%")}else"right"==t.value?(e.parentNode.style.borderTopLeftRadius="50%",o.style.borderTopLeftRadius="50%"):"top"==t.value?(e.parentNode.style.borderTopRightRadius="50%",o.style.borderTopRightRadius="50%"):"bottom"==t.value?(e.parentNode.style.borderBottomRightRadius="50%",o.style.borderBottomRightRadius="50%"):"left"==t.value&&(e.parentNode.style.borderBottomLeftRadius="50%",o.style.borderBottomLeftRadius="50%")}document.addEventListener("touchend",(()=>{A=!1,e.parentNode.removeEventListener("touchmove",a),e.parentNode.children.forEach((e=>{e.classList.remove("eventNode")}))}))};e.parentNode.addEventListener("touchmove",a,!1)}))}},translate:{mounted(e,t,A){e.addEventListener("mousedown",(t=>{t.stopPropagation();let A=e.parentNode.parentNode;e.style.left=(e.offsetLeft+2)/A.offsetWidth*100+"%",e.style.top=(e.offsetTop+2)/A.offsetHeight*100+"%";e.style.left&&e.style.left.replace(/%/g,""),e.style.top&&e.style.top.replace(/%/g,"");let i=t.offsetX,n=t.offsetY,r=t.clientX-t.offsetX-e.offsetLeft,o=t.clientY-t.offsetY-e.offsetTop,s=!0;document.onmousemove=function(t){if(s){let s=(t.x-i+2-r)/A.offsetWidth*100+"%",a=(t.y-n+2-o)/A.offsetHeight*100+"%";e.style.left=s,e.style.top=a,e.previousSibling.style.top=a,e.previousSibling.style.left=s,A.firstChild.style.top=a,A.firstChild.style.left=s,e.offsetLeft<=0&&(e.style.left="0%",e.previousSibling.style.left="0%",A.firstChild.style.left="0%"),e.offsetTop<=0&&(e.style.top="0%",e.previousSibling.style.top="0%",A.firstChild.style.top="0%"),e.style.left.replace(/%/g,"")>=100&&(e.style.left="100%",e.previousSibling.style.left="100%",A.firstChild.style.left="100%"),e.style.top.replace(/%/g,"")>=100&&(e.style.top="100%",e.previousSibling.style.top="100%",A.firstChild.style.top="100%")}},document.onmouseup=function(){s=!1}}))}},modelImg:{mounted(e){let t=e.parentNode;t.offsetHeight>t.offsetWidth?(e.style.height="100%",e.style.width="auto"):(e.style.width="100%",e.style.height="auto")},updated(e){let t=e.parentNode;t.offsetHeight>t.offsetWidth?(e.style.height="100%",e.style.width="auto"):(e.style.width="100%",e.style.height="auto")}}},methods:{init(){let e=this.$parent;e=e.layoutList,this.layout=!0,this.layoutList.forEach((e=>{e.setPitch=!1})),this.layoutList=e,this.moodbList=this.moodb[e.length-1],this.moodbClassName=this.moodb_className},cancelDsign(){this.layout=!1},setpitch(e,t){this.layoutList.forEach((e=>{e.setPitch=!1})),e.setPitch=!0,this.content&&(this.content[t].style.zIndex=Ke.zIndex++)},setmoodb(e){if(this.moodbClassName=e,this.$emit("setmoodbClass",this.moodbClassName),this.content)for(e of this.content)e.classList.remove("active"),e.style.top="",e.style.left="",e.style.right="",e.style.bottom="",e.style.width="",e.style.height=""},changeTemplateModal(){this.layout=!this.layout},submitTemplate(){this.loadingShow=!0,this.layoutList.forEach((e=>{e.setPitch=!1})),(0,n.Y3)().then((async()=>{let e=document.getElementById("layoutCentent"),t=await on(e),A=new FormData;A.append("inPin","0"),A.append("level1Type","Moodboard"),A.append("timeZone",Intl.DateTimeFormat().resolvedOptions().timeZone),A.append("file",t);let i={headers:{"Content-Type":"multipart/form-data",Accept:"*/*"}};Te.V.axiosPost(Te.V.httpUrls.elementUpload,A,i).then((e=>{e.imgUrl=e.url,this.layout=!1,this.loadingShow=!1,this.store.commit("setDisposeMoodboard",e)})).catch((e=>{this.loadingShow=!1}))}))},beforeUpload(){}}});const Tn=(0,it.Z)(Mn,[["render",On]]);var Nn=Tn,Kn=(0,n.aZ)({components:{Material:di,MoodTemplate:_i,Generate:lA,layout:ln,layoutMobile:Nn},setup(){const e=(0,Ne.oR)();let t=(0,Y.iH)([]),A=(0,Y.iH)([]),i=(0,Y.iH)([]),r=(0,Y.iH)(!1),o=(0,Y.iH)([]),s=(0,Y.iH)(1),a=(0,Y.iH)([]),l=(0,Y.iH)(!1),c=[],d=(0,Y.iH)(!1),u=(0,Y.iH)(!1),h=(0,n.Fl)((()=>e.state.UploadFilesModule.disposeMoodboard)),g=(0,n.f3)("driver__"),p=(0,Y.iH)([]),f=(0,Y.iH)(),{t:m}=(0,oA.QT)();return{fileList:A,showFileList:i,lessenList:t,templateModal:r,templateFileList:o,openClick:s,moodb_className:a,flex_direction:l,layoutList:c,layoutOpen:d,loadingShow:u,modalImg:h,driver__:g,uploading:p,edieShow:f,t:m}},data(){return{indicator:(0,n.h)(Le.Z,{style:{fontSize:"2.4rem"},spin:!0}),upload:{isPin:0,level1Type:"Moodboard",timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},token:"",uploadUrl:"",moodTemplateId:"",store:(0,Ne.oR)(),moodb_:$i.moodb_,moodboarList:(0,n.Fl)((()=>(0,Ne.oR)().state.UploadFilesModule.moodboard))}},mounted(){this.token=(0,Pe.ej)("token")||"",this.uploadUrl=(0,Re.M$)()},watch:{fileList:{handler(e,t){}},driver__:{handler(e,t){e.index>=1&&e.index<=2&&this.open(e.index)}}},directives:{modelImg:{mounted(e){let t=e.parentNode;t.offsetHeight>t.offsetWidth?(e.style.height="100%",e.style.width="auto"):(e.style.width="100%",e.style.height="auto")},updated(e){let t=e.parentNode;t.offsetHeight>t.offsetWidth?(e.style.height="100%",e.style.width="auto"):(e.style.width="100%",e.style.height="auto")}}},methods:{open(e){if(this.openClick=e,2==e){let e=this.$refs.Material;e.init("Moodboard")}else 3==e&&this.driver__.driver&&AA.moveNext()},fileUploadChange(e){let t=e.file;if("done"===t.status){let e=JSON.parse(t.xhr.response);t.imgUrl=e.data.url,t.resData=e.data,t.type_={type1:"upload",type2:"Moodboard"},t.id_=Ke.id++;let A=this.fileList.filter((e=>"done"===e.status)),i=this.store.state.UploadFilesModule.moodboard;i.length>=8?Oe.ZP.info(this.t("MoodboardUpload.jsContent1")):this.store.commit("setMoodboardFile",A)}else if("error"===t.status){let e=-1;this.fileList.forEach(((A,i)=>{t.uid===A.uid&&(e=i)})),e>-1&&this.fileList.splice(e,1),Oe.ZP.warning(t.name+this.t("MoodboardUpload.jsContent2"))}},beforeUpload(e){const t="image/jpeg"===e.type||"image/png"===e.type||"image/jpg"===e.type||"image/bmp"===e.type;t||Oe.ZP.info(this.t("MoodboardUpload.jsContent3"));const A=e.size/1024/1024<2;return A||Oe.ZP.info(this.t("MoodboardUpload.jsContent4")),t&&A||Me.Z.LIST_IGNORE},deleteFile(e){if("generate"==e.type_.type1||"material"==e.type_.type1)this.store.commit("addGenerateMaterialFils",e);else{let t;this.fileList=this.store.state.UploadFilesModule.moodboardFiles,this.store.state.UploadFilesModule.moodboardFiles.forEach(((A,i)=>{A.id_==e.id_&&(t=i)})),this.fileList.splice(t,1),this.store.commit("setMoodboardFile",this.fileList)}0==this.store.state.UploadFilesModule.moodboard.length&&(this.store.commit("clearMoodTemplateId"),this.layoutList=[],this.edieShow=!1)},recollection(){let e=JSON.parse(JSON.stringify(this.store.state.UploadFilesModule.allBoardData.moodboardFiles)),t=JSON.parse(JSON.stringify(this.store.state.UploadFilesModule.allBoardData.disposeMoodboard)),A={generate:[],material:[],moodboard:[]};e.forEach((e=>{"generate"==e.type_.type1?A.generate.push(e):"material"==e.type_.type1?A.material.push(e):A.moodboard.push(e)})),this.store.commit("setMoodboardGenerateFiles",A.generate),this.store.commit("setMoodboardMaterialFiles",A.material),this.store.commit("setMoodboardFile",A.moodboard),this.store.commit("setDisposeMoodboard",t[0]),this.fileList=A.moodboard},async changeTemplateModal(){if(this.modalImg[0]?.id){let e=(0,Re.S0)()?this.$refs.layoutMobile:this.$refs.layout;this.layoutList.length<=0&&await this.layout(),e.init()}else Oe.ZP.info(this.t("MoodboardUpload.jsContent5"))},layout(){this.loadingShow=!0,this.edieShow=!0,this.store.commit("setDisposeMoodboard",[]);let e=JSON.parse(JSON.stringify(this.store.state.UploadFilesModule.moodboard));this.layoutList=e;var t=Math.round(Math.random()*(this.moodb_[e.length-1].length-1));let A=this.moodb_[e.length-1][t];0!=A.filter(((e,t)=>"w2h1"==e)).length&&e.length>4?this.flex_direction=!0:this.flex_direction=!1,1==this.moodb_[e.length-1].length||JSON.stringify(this.moodb_className)!=JSON.stringify(this.moodb_[e.length-1][t])?(2==this.moodb_[e.length-1].length?this.moodb_className=this.moodb_[e.length-1][0]:this.moodb_className=this.moodb_[e.length-1][t],this.layoutOpen=!0,this.layoutList.forEach((e=>{e.setPitch=!1})),(0,n.Y3)().then((async()=>{let e=document.getElementById("modal_img"),t=await on(e),A=new FormData;A.append("inPin","0"),A.append("level1Type","Moodboard"),A.append("timeZone",Intl.DateTimeFormat().resolvedOptions().timeZone),A.append("file",t);let i={headers:{"Content-Type":"multipart/form-data",Accept:"*/*"}};Te.V.axiosPost(Te.V.httpUrls.elementUpload,A,i).then((e=>{let t=e;t.imgUrl=e.url,t.resData=JSON.parse(JSON.stringify(t)),this.store.commit("setDisposeMoodboard",t),this.loadingShow=!1})).catch((e=>{this.loadingShow=!1})),this.driver__.driver&&AA.moveNext()}))):this.layout()},setmoodbClass(e){this.moodb_className=e}}});const Pn=(0,it.Z)(Kn,[["render",KA],["__scopeId","data-v-31c30620"]]);var Rn=Pn;const Vn=e=>((0,n.dD)("data-v-11292f2b"),e=e(),(0,n.Cn)(),e),Gn={class:"printboard_upload_modal"},zn={class:"printboard_left_upload"},jn={class:"left_upload_header"},Zn={class:"upload_header_item"},Wn={class:"switch_type_list"},Yn={class:"printboard_body"},Xn={class:"upload_img_body"},Jn={class:"upload_item"},$n={class:"upload_file_img_block"},qn={class:"upload_file_item_content"},er={class:"upload_file_item_content"},tr=["onClick"],Ar=Vn((()=>(0,n._)("span",{class:"icon iconfont icon-shanchu"},null,-1))),ir=[Ar],nr={class:"pin_block"},rr={class:"upload_file_item upload_component"},or={class:"upload_tip_block"},sr=Vn((()=>(0,n._)("i",{class:"fi fi-br-upload"},null,-1))),ar=[sr],lr={class:"upload_max_tip"},cr=Vn((()=>(0,n._)("span",{class:"icon iconfont icon-zhuyi"},null,-1))),dr={class:"modal_right"},ur={class:"modal_layout"},hr={class:"modal_text"},gr={class:"modal_img"},pr=["onClick"],fr=Vn((()=>(0,n._)("div",{class:"checked"},[(0,n._)("i",{class:"fi fi-rr-trash"})],-1))),mr={class:"modal_accomplish"},Br=["maxlength","readonly","placeholder"],wr={class:"modal_img"},vr=["src","onClick"],yr={class:"delete_like_file_block"},Cr=["onClick"],br=["onClick"],_r={class:"pin_block"},Qr={class:"mark_loading"};function Ur(e,t,A,i,s,a){const l=(0,n.up)("a-spin"),c=(0,n.up)("a-checkbox"),d=(0,n.up)("a-upload"),u=(0,n.up)("Material"),h=(0,n.up)("Generate"),g=(0,n.up)("Cropper"),p=(0,n.Q2)("lazy");return(0,n.wg)(),(0,n.iD)("div",Gn,[(0,n._)("div",zn,[(0,n._)("div",jn,[(0,n._)("div",Zn,[(0,n._)("div",Wn,[(0,n._)("div",{onClick:t[0]||(t[0]=(0,o.iM)((t=>e.open(1)),["stop"])),class:(0,r.C_)(["switch_type_item",[1==e.openClick?"select_swtich":""]])},[(0,n._)("span",null,(0,r.zw)(e.$t("PrintboardUpload.Upload")),1)],2),(0,n._)("div",{onClick:t[1]||(t[1]=(0,o.iM)((t=>e.open(2)),["stop"])),class:(0,r.C_)(["switch_type_item",[2==e.openClick?"select_swtich":""]])},[(0,n._)("span",null,(0,r.zw)(e.$t("PrintboardUpload.Library")),1)],2),(0,n._)("div",{onClick:t[2]||(t[2]=(0,o.iM)((t=>e.open(3)),["stop"])),class:(0,r.C_)(["switch_type_item",[3==e.openClick?"select_swtich":""]])},[(0,n._)("span",null,(0,r.zw)(e.$t("PrintboardUpload.Generate")),1)],2)])])]),(0,n.wy)((0,n._)("div",Yn,[(0,n._)("div",Xn,[(0,n._)("div",Jn,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.fileList,((t,A)=>((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)(["upload_file_item"]),key:t},[(0,n._)("div",$n,[(0,n.wy)((0,n._)("div",qn,[(0,n.Wm)(l,{indicator:e.indicator,tip:"Uploading..."},null,8,["indicator"])],512),[[o.F8,"uploading"===t?.status]]),(0,n.wy)((0,n._)("div",er,[(0,n.wy)(((0,n.wg)(),(0,n.iD)("img",{class:"upload_img",key:t.imgUrl})),[[p,t.imgUrl]]),(0,n._)("div",{class:"delete_like_file_block",onClick:(0,o.iM)((A=>e.deleteFile(t)),["stop"])},ir,8,tr)],512),[[o.F8,"done"===t?.status]])]),(0,n.wy)((0,n._)("div",nr,[(0,n.Wm)(c,{checked:t.pin,"onUpdate:checked":e=>t.pin=e},{default:(0,n.w5)((()=>[(0,n.Uk)((0,r.zw)(e.$t("PrintboardUpload.PIN")),1)])),_:2},1032,["checked","onUpdate:checked"])],512),[[o.F8,"done"===t?.status]])])))),128)),(0,n.wy)((0,n._)("div",rr,[(0,n.Wm)(d,{action:e.uploadUrl+"/api/element/upload","list-type":"picture-card","before-upload":e.beforeUpload,data:{...e.upload},headers:{Authorization:e.token},"file-list":e.fileList,"onUpdate:file-list":t[3]||(t[3]=t=>e.fileList=t),customRequest:function(){},multiple:"",maxCount:8-e.printboardList.length+e.fileList.length,accept:".jpg,.png,.jpeg,.bmp",onChange:e.fileUploadChange},{default:(0,n.w5)((()=>[(0,n.wy)((0,n._)("div",or,ar,512),[[o.F8,e.printboardList.length<8]])])),_:1},8,["action","before-upload","data","headers","file-list","customRequest","maxCount","onChange"])],512),[[o.F8,e.printboardList.length<8]])])]),(0,n._)("div",lr,[cr,(0,n._)("span",null,(0,r.zw)(e.$t("PrintboardUpload.Maximum")),1)])],512),[[o.F8,1==e.openClick]]),(0,n.wy)((0,n.Wm)(u,{ref:"Material",msg:"Printboard",onConfirmSelect:e.confirmSelect},null,8,["onConfirmSelect"]),[[o.F8,2==e.openClick]]),(0,n.wy)((0,n.Wm)(h,{ref:"Generate",msg:"Printboard",onGenerateCheckbox:e.getgenerateCheckbox},null,8,["onGenerateCheckbox"]),[[o.F8,3==e.openClick]])]),(0,n._)("div",dr,[(0,n._)("div",ur,[(0,n._)("div",hr,[(0,n._)("div",null,(0,r.zw)(e.$t("PrintboardUpload.Thumbnail")),1)]),(0,n._)("div",gr,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.printboardList,((t,A)=>((0,n.wg)(),(0,n.iD)("div",{class:"modal_img_item",key:t,onClick:(0,o.iM)((A=>e.deleteFile(t)),["stop"])},[(0,n.wy)((0,n._)("img",null,null,512),[[p,t.imgUrl]]),fr],8,pr)))),128))])]),(0,n.wy)((0,n._)("div",mr,[(0,n._)("div",{class:(0,r.C_)(["input_box",{active:e.inputShow}])},[(0,n.wy)((0,n._)("input",{class:(0,r.C_)(["search_input",{forbidden:e.generateCheckbox}]),onInput:t[4]||(t[4]=(...t)=>e.ifMaximumLength&&e.ifMaximumLength(...t)),onKeydown:t[5]||(t[5]=(0,o.D2)(((...t)=>e.getgenerate&&e.getgenerate(...t)),["enter"])),maxlength:e.inputShow?0:9999,readonly:e.generateCheckbox,placeholder:e.$t("PrintboardUpload.inputContent1"),"onUpdate:modelValue":t[6]||(t[6]=t=>e.captionGeneration=t)},null,42,Br),[[o.nr,e.captionGeneration]]),(0,n._)("div",{class:"generage_btn started_btn",onClick:t[7]||(t[7]=(0,o.iM)(((...t)=>e.getgenerate&&e.getgenerate(...t)),["stop"]))},(0,r.zw)(e.$t("PrintboardUpload.Generate")),1),(0,n._)("span",null,(0,r.zw)(e.$t("PrintboardUpload.maximumLength")),1)],2),(0,n._)("div",wr,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.generateList,((t,A)=>((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)(["modal_imgItem",{active:t?.checked}])},[(0,n._)("img",{src:t.imgUrl,onClick:(0,o.iM)((A=>e.generageAdd(t)),["stop"])},null,8,vr),(0,n._)("div",yr,[t.like?((0,n.wg)(),(0,n.iD)("i",{key:1,class:"fi fi-sr-heart",onClick:(0,o.iM)((A=>e.likeFile(t,"noLike")),["stop"])},null,8,br)):((0,n.wg)(),(0,n.iD)("i",{key:0,class:"fi fi-rr-heart",onClick:(0,o.iM)((A=>e.likeFile(t,"like")),["stop"])},null,8,Cr))]),(0,n._)("div",_r,[(0,n.Wm)(c,{checked:t.pin,"onUpdate:checked":e=>t.pin=e},{default:(0,n.w5)((()=>[(0,n.Uk)((0,r.zw)(e.$t("PrintboardUpload.PIN")),1)])),_:2},1032,["checked","onUpdate:checked"])])],2)))),256))]),(0,n.wy)((0,n._)("div",Qr,[(0,n.Wm)(l,{size:"large"})],512),[[o.F8,e.loadingShow]])],512),[[o.F8,3==e.openClick]])]),(0,n.Wm)(g,{ref:"Cropper",onHandleCropperSuccess:e.handleCropperSuccess,onCloseCropper:t[8]||(t[8]=t=>e.deletUploadFile()),cropperFileData:e.cropperFileData,isUpload:e.isUpload},null,8,["onHandleCropperSuccess","cropperFileData","isUpload"])])}const Fr=e=>((0,n.dD)("data-v-02813881"),e=e(),(0,n.Cn)(),e),xr={class:"collection_title"},Er={class:"collection_title_text"},kr={class:"collection_modal_body"},Ir={class:"cut_picture_left"},Dr={class:"cut_picture_body"},Sr={class:"cur_picture_opterate"},Hr=Fr((()=>(0,n._)("span",{class:"icon iconfont icon-chexiao operate_icon"},null,-1))),Lr=[Hr],Or=Fr((()=>(0,n._)("span",{class:"icon iconfont icon-chexiao operate_icon icon_chexiao_sec"},null,-1))),Mr=[Or],Tr=Fr((()=>(0,n._)("span",{class:"operate_icon icon_font"},"-",-1))),Nr=[Tr],Kr=Fr((()=>(0,n._)("span",{class:"operate_icon icon_font"},"+",-1))),Pr=[Kr],Rr=Fr((()=>(0,n._)("span",{class:"icon iconfont icon-shuaxin operate_icon"},null,-1))),Vr=[Rr],Gr={class:"cut_picture_right"},zr={class:"cur_picture_right_header"},jr=Fr((()=>(0,n._)("div",{class:"review_logo icon iconfont icon-yulan"},null,-1))),Zr={class:"cut_picture_review_block"},Wr={class:"cut_picture_review_item"},Yr=["src"];function Xr(e,t,A,i,s,a){const l=(0,n.up)("VueCropper"),c=(0,n.up)("a-modal");return(0,n.wg)(),(0,n.j4)(c,{class:"modal_component cut_pricture_modal",visible:e.cutPicuterModal,"onUpdate:visible":t[8]||(t[8]=t=>e.cutPicuterModal=t),footer:null,width:"65%",maskClosable:!1,centered:!0,closable:!1,zIndex:999999,mask:!1},{default:(0,n.w5)((()=>[(0,n._)("div",xr,[(0,n._)("div",Er,[(0,n._)("div",null,(0,r.zw)(e.$t("Cropper.Cutpicture")),1)]),(0,n._)("div",{class:"header_right_block",onClick:t[2]||(t[2]=(0,o.iM)((()=>{}),["stop"]))},[(0,n._)("div",{class:"next_step_button",onClick:t[0]||(t[0]=(0,o.iM)((t=>e.finishCropper()),["stop"]))},(0,r.zw)(e.$t("Cropper.Finish")),1),(0,n._)("div",{class:"header_cancel_button",onClick:t[1]||(t[1]=(0,o.iM)((t=>e.cancleCropper()),["stop"]))},(0,r.zw)(e.$t("Cropper.Cancel")),1)])]),(0,n._)("div",kr,[(0,n._)("div",Ir,[(0,n._)("div",Dr,[(0,n.Wm)(l,{ref:"cropper",original:e.option.original,img:e.option.img,outputSize:e.option.size,outputType:e.option.outputType,"auto-crop":e.option.autoCrop,"auto-crop-width":e.option.autoCropWidth,"auto-crop-height":e.option.autoCropHeight,"center-box":e.option.centerBox,"can-move":e.option.canMove,"can-move-box":e.option.canMoveBox,onRealTime:e.realTime},null,8,["original","img","outputSize","outputType","auto-crop","auto-crop-width","auto-crop-height","center-box","can-move","can-move-box","onRealTime"])]),(0,n._)("div",Sr,[(0,n._)("div",{class:"cur_picture_opterate_item",onClick:t[3]||(t[3]=t=>e.rotateLeft())},Lr),(0,n._)("div",{class:"cur_picture_opterate_item",onClick:t[4]||(t[4]=t=>e.rotateRight())},Mr),(0,n._)("div",{class:"cur_picture_opterate_item",onClick:t[5]||(t[5]=t=>e.changeScale(-1))},Nr),(0,n._)("div",{class:"cur_picture_opterate_item",onClick:t[6]||(t[6]=t=>e.changeScale(1))},Pr),(0,n._)("div",{class:"cur_picture_opterate_item",onClick:t[7]||(t[7]=t=>e.refreshCrop())},Vr)])]),(0,n._)("div",Gr,[(0,n._)("div",zr,[jr,(0,n._)("div",null,(0,r.zw)(e.$t("Cropper.CropPreview")),1)]),(0,n._)("div",Zr,[(0,n._)("div",Wr,[(0,n._)("div",{class:"cut_picture_review_content",style:(0,r.j5)({width:e.previews.w+"px",height:e.previews.h+"px",overflow:"hidden"})},[(0,n._)("div",{style:(0,r.j5)(e.previews.div)},[(0,n._)("img",{class:"previews_image",style:(0,r.j5)(e.previews.img),src:e.previews.url},null,12,Yr)],4)],4)])])])])])),_:1},8,["visible"])}var Jr=A(2323),$r=(0,n.aZ)({props:["cropperFileData","isUpload"],components:{VueCropper:Jr.AK},data(){return{cutPicuterModal:!1,option:{original:!1,img:"",size:1,full:!1,outputType:"png",autoCrop:!0,autoCropWidth:360,autoCropHeight:360,max:99999,centerBox:!0,canMove:!0,canMoveBox:!0},previews:{}}},methods:{rotateLeft(){let e=this.$refs.cropper;e.rotateLeft()},rotateRight(){let e=this.$refs.cropper;e.rotateRight()},refreshCrop(){let e=this.$refs.cropper;e.refresh()},changeScale(e){e=e||1;let t=this.$refs.cropper;t.changeScale(e)},realTime(e){this.previews=e},getOptionImg(e){this.option.img=e},changeShowModal(e){this.cutPicuterModal=e},finishCropper(){let e=this.$refs.cropper;e.getCropData((e=>{let t=(0,Re._x)(e,this.cropperFileData.name);this.$emit("handleCropperSuccess",{file:t,fileData:this.cropperFileData})}))},closeCropper(){this.cutPicuterModal=!1,this.option.img=""},cancleCropper(){this.cutPicuterModal=!1,this.option.img="",this.$emit("closeCropper")}}});const qr=(0,it.Z)($r,[["render",Xr],["__scopeId","data-v-02813881"]]);var eo=qr,to=(0,n.aZ)({components:{Cropper:eo,Material:di,Generate:lA},setup(){let e=(0,Ne.oR)(),t=(0,Y.iH)([]),A=(0,Y.iH)([]),i=(0,n.Fl)((()=>e.state.UploadFilesModule.moodboard)),r=(0,n.Fl)((()=>e.state.UploadFilesModule.printboard)),o=(0,Y.iH)(1),s=(0,Y.iH)(),a=(0,Y.iH)([]),l=(0,Y.iH)(!1),c=(0,Y.iH)(!1),d=(0,Y.iH)(),u=(0,n.f3)("driver__"),{t:h}=(0,oA.QT)(),g=(0,Y.iH)();return{fileList:t,printImgList:A,moodBoards:i,printBoards:r,openClick:o,generateCheckbox:s,generateList:a,loadingShow:l,inputShow:c,inputTime:d,driver__:u,t:h,isTest:g}},computed:{getPinLength(){let e=0;for(let t of this.printBoards)t.pin&&e++;return e}},watch:{printBoards:{handler(e,t){e.length>=2&&this.driver__.driver&&AA.moveTo(9)}}},data(){return{swtich_type:"upload",indicator:(0,n.h)(Le.Z,{style:{fontSize:"2.4rem"},spin:!0}),upload:{isPin:0,level1Type:"Printboard",timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},token:"",uploadUrl:"",store:(0,Ne.oR)(),cropperFileData:{name:"",uid:""},currentFileNum:0,isUpload:!1,captionGeneration:"",printboardList:(0,n.Fl)((()=>(0,Ne.oR)().state.UploadFilesModule.printboard))}},mounted(){this.token=(0,Pe.ej)("token")||"";let e=(0,Pe.ej)("isTest");this.isTest=JSON.parse(e)||"",this.uploadUrl=(0,Re.M$)()},methods:{open(e){this.openClick=e;let t=this.$refs.Material;2==e&&t.init("Printboard")},fileUploadChange(e){let t=e.file;t.id_=Ke.id++,t.type_={type1:"upload",type2:"Printboard"},t.pin=!1;let A=this.$refs.Cropper;if(1===this.currentFileNum){var i=new FileReader;i.onload=e=>{let t;t="object"===typeof e.target.result?window.URL.createObjectURL(new Blob([e.target.result])):e.target.result,A.getOptionImg(t)},i.readAsArrayBuffer(t.originFileObj),this.cropperFileData=t,A.changeShowModal(!0)}else this.customRequest(t)},beforeUpload(e,t){const A="image/jpeg"===e.type||"image/png"===e.type||"image/jpg"===e.type||"image/bmp"===e.type;A||Oe.ZP.info(this.t("PrintboardUpload.jsContent1"));const i=e.size/1024/1024<2;if(i||Oe.ZP.info(this.t("PrintboardUpload.jsContent2")),!A||!i)return A&&i||Me.Z.LIST_IGNORE;this.currentFileNum=t.length},deleteFile(e){if("generate"==e.type_.type1||"material"==e.type_.type1)this.store.commit("addGenerateMaterialFils",e);else{let t;this.fileList=this.store.state.UploadFilesModule.printboardFiles,this.store.state.UploadFilesModule.printboardFiles.forEach(((A,i)=>{A.id_==e.id_&&(t=i)})),this.fileList.splice(t,1),this.store.commit("setPrintboardFile",this.fileList)}},likeFile(e,t){if("like"==t){let t={generateDetailId:e.id,level1Type:"Printboard",level2Type:"",timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone};Te.V.axiosPost(Te.V.httpUrls.generateLike,t).then((t=>{e.like=!0})).catch((e=>{}))}else{let t={generateDetailId:e.id,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone};Te.V.axiosGet(Te.V.httpUrls.generateDislike,{params:t}).then((t=>{e.like=!1})).catch((e=>{}))}},customRequest(e){let t={...this.upload,file:e.originFileObj},A=e.uid;Te.V.axiosPost("/api/element/upload",t,{headers:{"Content-Type":"multipart/form-data"}}).then((e=>{if(e){for(let i of this.fileList)A===i.uid&&(i.status="done",i.imgUrl=e.url,i.pin=!1,i.id=e.id,i.resData=e);let t=this.fileList.filter((e=>"done"===e.status));this.store.commit("setPrintboardFile",t)}})).catch((e=>{let t=-1;this.fileList.forEach(((e,i)=>{A===e.uid&&(t=i)})),t>-1&&this.fileList.splice(t,1)}))},closeCropper(e){if(this.isUpload)return;if("error"==e){let e=-1;this.fileList.forEach(((t,A)=>{this.cropperFileData.uid===t.uid&&(e=A)})),e>-1&&this.fileList.splice(e,1)}let t=this.$refs.Cropper;t.closeCropper()},deletUploadFile(){let e=-1;this.fileList.forEach(((t,A)=>{this.cropperFileData.uid===t.uid&&(e=A)})),e>-1&&this.fileList.splice(e,1)},handleCropperSuccess(e){let{file:t,fileData:A}=e,i={...this.upload,file:t};if(this.isUpload)return;this.isUpload=!0;const n=Oe.ZP.loading("loading",0);Te.V.axiosPost("/api/element/upload",i,{headers:{"Content-Type":"multipart/form-data"}}).then((e=>{for(let i of this.fileList)A.uid===i.uid&&(i.status="done",i.imgUrl=e.url,i.id=e.id,i.resData=e);let t=this.fileList.filter((e=>"done"===e.status));this.isUpload=!1,this.closeCropper("success"),this.cropperFileData={name:"",uid:""},this.store.commit("setPrintboardFile",t),n()})).catch((e=>{let t=-1;this.fileList.forEach(((e,i)=>{A.uid===e.uid&&(t=i)})),t>-1&&this.fileList.splice(t,1),this.cropperFileData={name:"",uid:""},this.isUpload=!1,this.closeCropper("error"),n()}))},recollection(){let e=JSON.parse(JSON.stringify(this.store.state.UploadFilesModule.allBoardData.printboardFiles)),t={generate:[],material:[],moodboard:[]};e.forEach((e=>{"generate"==e.type_.type1?t.generate.push(e):"material"==e.type_.type1?t.material.push(e):t.moodboard.push(e)})),this.store.commit("setPrintboardGenerateFiles",t.generate),this.store.commit("setPrintboardMaterialFiles",t.material),this.store.commit("setPrintboardFile",t.moodboard),this.fileList=t.moodboard,this.store.commit("setPrintboardFile",this.fileList)},confirmSelect(e){for(let t of e){let e={imgUrl:t.url,resData:t,pin:!1,id:t.id,status:"done"};if(15==this.fileList.length){Oe.ZP.warning(this.t("PrintboardUpload.jsContent3"));break}this.fileList.push(e)}this.store.commit("setPrintboardFile",this.fileList)},getgenerateCheckbox(e){this.generateCheckbox=e},ifMaximumLength(){clearTimeout(this.inputTime),this.inputTime=setTimeout((()=>{this.captionGeneration?.split(/\s+/).length>75?this.inputShow=!0:this.inputShow=!1}),500)},getgenerate(){if(this.isTest)return void Oe.ZP.warning(this.t("isTest.available"));let e=this.$refs.Generate,t=e.checkbox.filter((e=>e.type))[0].name;if("Generate"==e.printModel.num)return void this.generatePrint();let A={generateType:t,designType:"",collectionElementId:e?.collectionElementid,level1Type:e.upload.level1Type,level2Type:"",text:this.captionGeneration,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,version:e.printModel.num,gender:""};if("image"==t||"text-image"==t){if(!e?.collectionElementid)return void Oe.ZP.info(this.t("PrintboardUpload.jsContent4"))}else if("text"==t){if(A.collectionElementId="",A.level2Type="",!this.captionGeneration)return void Oe.ZP.info(this.t("PrintboardUpload.jsContent6"));{let e=this.captionGeneration.split(/\s+/).length;if(e>75)return void Oe.ZP.info(this.t("PrintboardUpload.jsContent5"))}}this.loadingShow=!0,Te.V.axiosPost(Te.V.httpUrls.sketchAndPrintGenerate,A).then((e=>{if(e){let t;this.generateList=[],e.generatedCollectionItems.forEach(((A,i)=>{t={id:A.generateItemId,imgUrl:A.generateItemUrl,id_:Ke.id++,like:e.generatedCollectionItems[i].isLiked},this.generateList.push(t),this.loadingShow=!1}))}})).catch((e=>{this.loadingShow=!1}))},randomRange(e,t,A){let i=Math.floor(Math.random()*(t-e))+e;while(i===A)i=Math.floor(Math.random()*(t-e))+e;return i},generatePrint(){let e={};if(this.moodBoards.length){let t=this.randomRange(0,this.moodBoards.length,-1),A=-2;if(this.getPinLength)if(1===this.getPinLength)this.printBoards.forEach(((e,t)=>{e.pin&&(A=t)}));else{let e=[];this.printBoards.forEach(((t,A)=>{t.pin&&e.push(A)})),A=this.randomRange(0,e.length,-1)}else A=this.randomRange(0,this.printBoards.length,-1);e={select1Id:this.moodBoards[t].resData.id,select2Id:this.printBoards[A].id}}else{let t=-1,A=-2;if(this.getPinLength)if(1===this.getPinLength)this.printBoards.forEach(((e,A)=>{e.pin&&(t=A)})),A=this.randomRange(0,this.printBoards.length,t);else{let e=[];this.printBoards.forEach(((t,A)=>{t.pin&&e.push(A)})),t=this.randomRange(0,e.length,-1),A=this.randomRange(0,this.printBoards.length,e[t])}else t=this.randomRange(0,this.printBoards.length,-1),A=this.randomRange(0,this.printBoards.length,t);e={select1Id:this.printBoards[t].id,select2Id:this.printBoards[A].id}}e.timeZone=Intl.DateTimeFormat().resolvedOptions().timeZone,this.loadingShow=!0,Te.V.axiosPost(Te.V.httpUrls.elementGeneratePrint,e).then((e=>{if(e){this.generateList=[];let t={id:e.generateItemId,imgUrl:e.generateItemUrl,id_:Ke.id++,like:e.isLiked};this.generateList.push(t),this.loadingShow=!1}})).catch((e=>{this.loadingShow=!1}))},generageAdd(e){e.type_={type1:"generate",type2:"Printboard"},e.resData=JSON.parse(JSON.stringify(e)),this.store.commit("addGenerateMaterialFils",e)}}});const Ao=(0,it.Z)(to,[["render",Ur],["__scopeId","data-v-11292f2b"]]);var io=Ao;const no={class:"colorboard_upload_modal"},ro={class:"modal_layout"},oo={class:"modal_text"},so={class:"modal_img"},ao=["onClick"],lo={class:"colorboard_upload_right"},co={class:"upload_right_content"},uo={class:"right_content_line"},ho={class:"upload_right_header"},go=(0,n._)("i",{class:"color_edit fi fi-bs-comments"},null,-1),po={class:"color_setting_block"},fo={class:"right_content_line right_content_line_upload"},mo={class:"upload_right_header"},Bo=(0,n._)("i",{class:"color_edit fi fi-bs-comments"},null,-1),wo={class:"upload_centetn"},vo={class:"upload_item Guide_1_10"},yo={class:"upload_file_item_content"},Co={class:"upload_file_item_content"},bo=["src"],_o=(0,n._)("div",{class:"upload_tip_block"},[(0,n._)("i",{class:"fi fi-rr-picture"})],-1),Qo={class:"upload_color Guide_1_11"},Uo=["onClick"],Fo=["title"],xo={class:"right_content_line"},Eo={class:"upload_right_header"},ko=(0,n._)("i",{class:"color_edit fi fi-bs-comments"},null,-1),Io={class:"get_color_block"},Do=(0,n._)("span",{class:"icon iconfont icon-huoquduixiang"},null,-1),So={class:"get_color_des"},Ho=["title"];function Lo(e,t,A,i,s,a){const l=(0,n.up)("Chrome"),c=(0,n.up)("a-spin"),d=(0,n.up)("a-upload");return(0,n.wg)(),(0,n.iD)("div",no,[(0,n._)("div",ro,[(0,n._)("div",oo,[(0,n._)("div",null,(0,r.zw)(e.$t("ColorboardUpload.Thumbnail")),1)]),(0,n._)("div",so,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.colorList,((t,A)=>((0,n.wg)(),(0,n.iD)("div",{class:"modal_img_item",key:t},[(0,n._)("div",{onClick:i=>e.selectColorItem(A,t),class:(0,r.C_)(["upload_color",e.selectIndex===A?"select_upload_color":""]),style:(0,r.j5)({background:`rgba(${t?.r},${t?.g},${t?.b},${t?.a})`})},null,14,ao)])))),128)),(0,n._)("div",null,[(0,n._)("span",{class:"started_btn",onClick:t[0]||(t[0]=(...t)=>e.clearCurrentColor&&e.clearCurrentColor(...t))},(0,r.zw)(e.$t("ColorboardUpload.Clear")),1)])])]),(0,n._)("div",lo,[(0,n._)("div",co,[(0,n._)("div",uo,[(0,n._)("div",ho,[go,(0,n._)("span",null,(0,r.zw)(e.$t("ColorboardUpload.Palette")),1)]),(0,n._)("div",po,[(0,n.Wm)(l,{class:"chrome_color",modelValue:e.selectColor,"onUpdate:modelValue":t[1]||(t[1]=t=>e.selectColor=t)},null,8,["modelValue"])])]),(0,n._)("div",fo,[(0,n._)("div",mo,[Bo,(0,n._)("span",null,(0,r.zw)(e.$t("ColorboardUpload.UploadImage")),1)]),(0,n._)("div",wo,[(0,n._)("div",vo,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.fileList,(A=>((0,n.wg)(),(0,n.iD)("div",{class:"upload_file_item",key:A},[(0,n.wy)((0,n._)("div",yo,[(0,n.Wm)(c,{indicator:e.indicator,tip:"Uploading..."},null,8,["indicator"])],512),[[o.F8,"done"!==A.status]]),(0,n.wy)((0,n._)("div",Co,[(0,n._)("img",{src:A?.imgUrl,class:"upload_img",ref_for:!0,ref:"colorImage"},null,8,bo),(0,n._)("div",{class:"delete_file_block",onClick:t[2]||(t[2]=t=>e.deleteFile(e.index))},"Delete")],512),[[o.F8,"done"===A.status]])])))),128)),(0,n.wy)((0,n.Wm)(d,{"list-type":"picture-card",customRequest:function(){},onChange:e.fileUploadChange,"before-upload":e.beforeUpload,accept:".jpg,.png,.jpeg,.bmp"},{default:(0,n.w5)((()=>[_o])),_:1},8,["customRequest","onChange","before-upload"]),[[o.F8,e.fileList.length<1]])]),(0,n._)("div",Qo,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.selectColorList,((t,A)=>((0,n.wg)(),(0,n.iD)("div",{key:t,onClick:A=>e.setUplpadColor(t),class:"upload_color_item"},[(0,n._)("div",{class:"upload_color_item_bg",style:(0,r.j5)({"background-color":`rgba(${t.rgba.r},${t.rgba.g},${t.rgba.b},${t.rgba.a})`})},null,4),(0,n._)("img",{src:"#",title:e.pantongNameList[A]},null,8,Fo)],8,Uo)))),128))])])]),(0,n._)("div",xo,[(0,n._)("div",Eo,[ko,(0,n._)("span",null,(0,r.zw)(e.$t("ColorboardUpload.ColorCode")),1)]),(0,n._)("div",Io,[(0,n.wy)((0,n._)("input",{class:"get_color_input",placeholder:"tcx value (e.g.: 19-4052)","onUpdate:modelValue":t[3]||(t[3]=t=>e.tcxColor=t),onKeydown:t[4]||(t[4]=(0,o.D2)((t=>e.getTcxColor()),["enter"]))},null,544),[[o.nr,e.tcxColor]]),(0,n._)("div",{class:"get_color_button",onClick:t[5]||(t[5]=t=>e.getTcxColor())},[Do,(0,n._)("span",So,(0,r.zw)(e.$t("ColorboardUpload.ExtractColor")),1)]),(0,n.wy)((0,n._)("div",{class:"get_color_bg",onClick:t[6]||(t[6]=t=>e.setUplpadColor(e.reviewColor)),style:(0,r.j5)({"background-color":`rgba(${e.getSelectRGB(e.reviewColor).r},${e.getSelectRGB(e.reviewColor).g},${e.getSelectRGB(e.reviewColor).b},${e.getSelectRGB(e.reviewColor).a})`})},[(0,n._)("img",{src:"#",title:e.pantongName},null,8,Ho)],4),[[o.F8,e.getColorBg]])])])])])])}var Oo=A(1125),Mo=A(6243),To=A.n(Mo);A(1703);function No(e,t,A){const i=e,n=[];for(let r,o,s,a,l,c=0;c<t;c+=A)r=4*c,o=i[r+0],s=i[r+1],a=i[r+2],l=i[r+3],("undefined"===typeof l||l>=125)&&(o>250&&s>250&&a>250||n.push([o,s,a]));return n}function Ko(e){let{colorCount:t,quality:A}=e;if("undefined"!==typeof t&&Number.isInteger(t)){if(1===t)throw new Error("colorCount should be between 2 and 20. To get one color, call getColor() instead of getPalette()");t=Math.max(t,2),t=Math.min(t,20)}else t=10;return("undefined"===typeof A||!Number.isInteger(A)||A<1)&&(A=10),{colorCount:t,quality:A}}var Po={createPixelArray:No,validateOptions:Ko};
|
||
/*
|
||
* Color Thief v2.3.2
|
||
* by Lokesh Dhakar - http://www.lokeshdhakar.com
|
||
*
|
||
* Thanks
|
||
* ------
|
||
* Nick Rabinowitz - For creating quantize.js.
|
||
* John Schulz - For clean up and optimization. @JFSIII
|
||
* Nathan Spady - For adding drag and drop support to the demo page.
|
||
*
|
||
* License
|
||
* -------
|
||
* Copyright Lokesh Dhakar
|
||
* Released under the MIT license
|
||
* https://raw.githubusercontent.com/lokesh/color-thief/master/LICENSE
|
||
*
|
||
* @license
|
||
*/
|
||
const Ro=function(e){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.width=this.canvas.width=e.naturalWidth,this.height=this.canvas.height=e.naturalHeight,this.context.drawImage(e,0,0,this.width,this.height)};Ro.prototype.getImageData=function(){return this.context.getImageData(0,0,this.width,this.height)};var Vo=function(){};Vo.prototype.getColor=function(e,t=10){const A=this.getPalette(e,5,t),i=A[0];return i},Vo.prototype.getPalette=function(e,t,A){const i=Po.validateOptions({colorCount:t,quality:A}),n=new Ro(e),r=n.getImageData(),o=n.width*n.height,s=Po.createPixelArray(r.data,o,i.quality),a=To()(s,i.colorCount),l=a?a.palette():null;return l},Vo.prototype.getColorFromUrl=function(e,t,A){const i=document.createElement("img");i.addEventListener("load",(()=>{const n=this.getPalette(i,5,A),r=n[0];t(r,e)})),i.src=e},Vo.prototype.getImageData=function(e,t){let A=new XMLHttpRequest;A.open("GET",e,!0),A.responseType="arraybuffer",A.onload=function(){if(200==this.status){let e=new Uint8Array(this.response);i=e.length;let A=new Array(i);for(let t=0;t<e.length;t++)A[t]=String.fromCharCode(e[t]);let n=A.join(""),r=window.btoa(n);t("data:image/png;base64,"+r)}},A.send()},Vo.prototype.getColorAsync=function(e,t,A){const i=this;this.getImageData(e,(function(e){const n=document.createElement("img");n.addEventListener("load",(function(){const e=i.getPalette(n,5,A),r=e[0];t(r,this)})),n.src=e}))};var Go=Vo,zo=(0,n.aZ)({components:{Chrome:Oo.Chrome,Slider:Oo.Slider,Sketch:Oo.Sketch},setup(){let e=(0,Y.iH)([]),t=[{},{},{},{},{},{},{},{}],A=(0,Y.iH)({rgba:{}}),i=(0,Y.iH)({}),r=(0,n.f3)("driver__"),{t:o}=(0,oA.QT)();return{fileList:e,colorList:t,selectColor:A,selectColorList:i,driver__:r,t:o}},watch:{selectColor(e,t){this.colorList[this.selectIndex]=e.rgba;let A=this.colorList.filter((e=>e&&Object.keys(e).length));this.setColorboardList(A),this.clearSelectColor()}},computed:{getSelectRGB(e){return e=>{let t=e.rgba,A={r:t?.r,g:t?.g,b:t?.b,a:t?.a,hex:void 0==e.hex?"#FFFFFF":e.hex};return 1==A.a&&0==A.a||(A.hex=e.hex8?e.hex8:e.hex),A}}},data(){return{reviewColor:{},selectIndex:0,tcxColor:"",pantongName:"",pantongNameList:[],indicator:(0,n.h)(Le.Z,{style:{fontSize:"2.4rem"},spin:!0}),upload:{isPin:0,level1Type:"Moodboard",timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},token:"",uploadUrl:"",store:(0,Ne.oR)(),colorPickerVisible:!0,colorBlockHex:!0,getColorBg:!1}},mounted(){this.token=(0,Pe.ej)("token")||"",this.uploadUrl=(0,Re.M$)();const e=document.createElement("div");e.classList.add("vc-sketch-color-wrap");let t=document.getElementsByClassName("colorboard_upload_modal")[0].getElementsByClassName("vc-chrome-fields-wrap")[0];t.appendChild(e),e.addEventListener("click",(async()=>{try{const e=new EyeDropper,t=await e.open();let A=t.sRGBHex.replace("#","");const i=parseInt(A.substring(0,2),16),n=parseInt(A.substring(2,4),16),r=parseInt(A.substring(4,6),16);this.selectColor={rgba:{r:i,g:n,b:r,a:1},hex:t.sRGBHex}}catch(e){Oe.ZP.info(this.t("ColorboardUpload.jsContent1"))}}),!1),this.clearSelectColor(),"EyeDropper"in window?console.log(!0):console.log(!1)},methods:{clearSelectColor(){},selectColorItem(e,t){let A;A=t?.r?this.rgbaToHex([t.r,t.g,t.b,t.a?t.a:1]):"#FFFFFF",this.selectIndex=e,this.tcxColor="",this.pantongName="",this.pantongNameList=[],this.reviewColor={},this.getColorBg=!1},getTcxColor(){if(!this.tcxColor)return;let e=/^\d{2}-\d{4}$/;e.test(this.tcxColor)?Te.V.axiosGet(Te.V.httpUrls.getRgbByTcx+"?tcx="+this.tcxColor).then((e=>{if(e&&e.name){let t=this.rgbaToHex([e.r,e.g,e.b,e.a?e.a:1]);this.reviewColor=e?.r+""?{rgba:{r:e.r,g:e.g,b:e.b,a:1},hex:t}:{hex:""},this.selectColor=this.reviewColor,this.colorList[this.selectIndex]={r:e.r,g:e.g,b:e.b},this.pantongName=e.name;let A=this.colorList.filter((e=>Object.keys(e).length));this.setColorboardList(A),this.getColorBg=!0}else Oe.ZP.info(this.t("ColorboardUpload.jsContent2"))})):Oe.ZP.info(this.t("ColorboardUpload.jsContent5"))},clearCurrentColor(){this.selectColor={},this.reviewColor={},this.pantongName="",this.tcxColor=""},fileUploadChange(e){let t=e.file,A=t.originFileObj;var i=new FileReader;i.onload=e=>{let A;A="object"===typeof e.target.result?window.URL.createObjectURL(new Blob([e.target.result])):e.target.result,t.imgUrl=A,t.status="done",this.fileList.push(t),setTimeout((async()=>{const e=new Image;let A=this.$refs.colorImage;e.src=A[0].src;const i=new Go;e.onload=async()=>{A[0];let n,r=[],o=i.getPalette(e,9),s={max:5,min:5};await Ke.setColor(o,t.imgUrl,s).then((e=>{e&&(n=e.ratio)})),n.sort(((e,t)=>{var A=e.ratio,i=t.ratio;return i-A})),o=[],n.forEach((e=>{o.push(e.rgb)})),o=o.join("&"),o=o.split("&");let a=o[0].split(","),l=this.rgbaToHex(a),c=[];new Set(o).forEach((e=>{c.push(e.split(","))})),c.forEach((e=>{let t=this.rgbaToHex(e);r.push({rgba:{r:e[0],g:e[1],b:e[2],a:1},hex:t})})),this.selectColorList=r,this.getHsvColor(r),this.selectColor={rgba:{r:a[0],g:a[1],b:a[2],a:1},hex:l},this.driver__.driver&&AA.moveNext()}}),100)},i.readAsDataURL(A)},rgbaToHex(e){let t="#";return e.forEach(((e,A)=>{t+=3==A?Math.round(255*e).toString(16):Number(e).toString(16).padStart(2,"0")})),t},setUplpadColor(e){this.selectColor=e,this.driver__.driver&&AA.moveTo(12)},beforeUpload(e){const t="image/jpeg"===e.type||"image/png"===e.type||"image/jpg"===e.type||"image/bmp"===e.type;t||Oe.ZP.info(this.t("ColorboardUpload.jsContent3"));const A=e.size/1024/1024<5;return A||Oe.ZP.info(this.t("ColorboardUpload.jsContent4")),t&&A||Me.Z.LIST_IGNORE},deleteFile(e){this.fileList.splice(e,1),this.selectColorList=[]},getHsvColor(e){this.pantongName="";let t=[];e.forEach(((e,A)=>{let i=[e.rgba.r,e.rgba.g,e.rgba.b,e.rgba.a];t.push(i)}));let A=[];t.forEach((e=>{let t=(0,Re.py)(e);0==A.length||A[0].h;let i={h:Number(t[0]),s:Number(t[1]),v:Number(t[2])};A.push(i)})),Te.V.axiosPost(Te.V.httpUrls.getRgbByHsvBatch,A).then((e=>{e&&e.forEach((e=>{this.pantongNameList.push(e.name)}))})).catch((e=>{}))},setColorboardList(e){let t=e.map((e=>{let t={id:"",name:"",rgbValue:e};return t}));this.store.commit("setColorboardList",t)},recollection(){let e,t=this.store.state.UploadFilesModule.allBoardData.colorBoards;t.forEach(((t,A)=>{e=this.rgbaToHex([t.rgbValue.r,t.rgbValue.g,t.rgbValue.b,t.rgbValue.a?t.rgbValue.a:1]),this.colorList[A]=t.rgbValue})),this.selectColor={rgba:this.colorList[0],hex:e},this.store.commit("setColorboardList",t)}}});const jo=(0,it.Z)(zo,[["render",Lo]]);var Zo=jo;const Wo=e=>((0,n.dD)("data-v-5faab940"),e=e(),(0,n.Cn)(),e),Yo={class:"sketchboard_upload_modal"},Xo={class:"modal_left"},Jo={class:"switch_type_list"},$o={class:"sketchboard_body"},qo={class:"upload_img_body scroll_style"},es={class:"upload_item"},ts={class:"upload_file_item_content"},As={class:"upload_file_item_content"},is=["src"],ns={class:"operate_file_block"},rs={class:"select_img_type"},os=["onClick"],ss={class:"category_list"},as=["onClick"],ls=["onClick"],cs=Wo((()=>(0,n._)("span",{class:"icon iconfont icon-shanchu"},null,-1))),ds=[cs],us={class:"pin_block"},hs={class:"upload_file_item upload_component"},gs={class:"upload_tip_block"},ps=Wo((()=>(0,n._)("i",{class:"fi fi-br-upload"},null,-1))),fs=[ps],ms={class:"upload_max_tip"},Bs=Wo((()=>(0,n._)("span",{class:"icon iconfont icon-zhuyi"},null,-1))),ws={class:"modal_right"},vs={class:"modal_layout"},ys={class:"modal_text"},Cs={class:"modal_img"},bs=["onClick"],_s=Wo((()=>(0,n._)("div",{class:"checked"},[(0,n._)("i",{class:"fi fi-rr-trash"})],-1))),Qs={class:"modal_accomplish"},Us=["maxlength","readonly","placeholder"],Fs={class:"modal_img"},xs=["src","onClick"],Es={class:"operate_file_block"},ks={class:"select_img_type"},Is=["onClick"],Ds={class:"category_list"},Ss=["onClick"],Hs={class:"delete_like_file_block"},Ls=["onClick"],Os=["onClick"],Ms={class:"pin_block"},Ts={class:"mark_loading"};function Ns(e,t,A,i,s,a){const l=(0,n.up)("a-spin"),c=(0,n.up)("a-checkbox"),d=(0,n.up)("a-upload"),u=(0,n.up)("Material"),h=(0,n.up)("Generate"),g=(0,n.Q2)("lazy");return(0,n.wg)(),(0,n.iD)("div",Yo,[(0,n._)("div",Xo,[(0,n._)("div",Jo,[(0,n._)("div",{onClick:t[0]||(t[0]=(0,o.iM)((t=>e.open(1)),["stop"])),class:(0,r.C_)(["switch_type_item",[1==e.openClick?"select_swtich":""]])},[(0,n._)("span",null,(0,r.zw)(e.$t("SketchboardUpload.Upload")),1)],2),(0,n._)("div",{onClick:t[1]||(t[1]=(0,o.iM)((t=>e.open(2)),["stop"])),class:(0,r.C_)(["switch_type_item",[2==e.openClick?"select_swtich":""]])},[(0,n._)("span",null,(0,r.zw)(e.$t("SketchboardUpload.Library")),1)],2),(0,n._)("div",{onClick:t[2]||(t[2]=(0,o.iM)((t=>e.open(3)),["stop"])),class:(0,r.C_)(["switch_type_item",[3==e.openClick?"select_swtich":""]])},[(0,n._)("span",null,(0,r.zw)(e.$t("SketchboardUpload.Generate")),1)],2)]),(0,n.wy)((0,n._)("div",$o,[(0,n._)("div",qo,[(0,n._)("div",es,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.fileList,((t,A)=>((0,n.wg)(),(0,n.iD)("div",{class:"upload_file_item",key:t},[(0,n.wy)((0,n._)("div",ts,[(0,n.Wm)(l,{indicator:e.indicator,tip:"Uploading..."},null,8,["indicator"])],512),[[o.F8,"uploading"===t?.status]]),(0,n.wy)((0,n._)("div",As,[(0,n._)("img",{src:t?.imgUrl,class:"upload_img"},null,8,is),(0,n._)("div",ns,[(0,n._)("div",rs,[(0,n._)("div",{class:"select_category",onClick:(0,o.iM)((A=>e.showFileCategory(t)),["stop"])},[(0,n.Uk)((0,r.zw)(t.categoryValue)+" ",1),(0,n._)("div",{class:(0,r.C_)(["icon","iconfont","icon-xiala",t.categoryShow?"icon_rotate":""])},null,2)],8,os),(0,n.wy)((0,n._)("div",ss,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.sketchCatecoryList,((A,i)=>((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)(["category_item",t.category==A.value?"select_category_item":""]),key:i,onClick:i=>e.selectFileCategory(t,A)},(0,r.zw)(A.value),11,as)))),128))],512),[[o.F8,t.categoryShow]])])]),(0,n._)("div",{class:"delete_like_file_block",onClick:(0,o.iM)((A=>e.deleteFile(t)),["stop"])},ds,8,ls)],512),[[o.F8,"done"===t?.status]]),(0,n.wy)((0,n._)("div",us,[(0,n.Wm)(c,{checked:t.pin,"onUpdate:checked":e=>t.pin=e},{default:(0,n.w5)((()=>[(0,n.Uk)((0,r.zw)(e.$t("SketchboardUpload.PIN")),1)])),_:2},1032,["checked","onUpdate:checked"])],512),[[o.F8,"done"===t?.status]])])))),128)),(0,n.wy)((0,n._)("div",hs,[(0,n.Wm)(d,{action:e.uploadUrl+"/api/element/upload","list-type":"picture-card",data:{...e.upload},"before-upload":e.beforeUpload,headers:{Authorization:e.token},"file-list":e.fileList,"onUpdate:file-list":t[3]||(t[3]=t=>e.fileList=t),multiple:"",maxCount:8-e.sketchboardList.length+e.fileList.length,accept:".jpg,.png,.jpeg,.bmp",onChange:t[4]||(t[4]=t=>e.fileUploadChange(t))},{default:(0,n.w5)((()=>[(0,n.wy)((0,n._)("div",gs,fs,512),[[o.F8,e.sketchboardList.length<8]])])),_:1},8,["action","data","before-upload","headers","file-list","maxCount"])],512),[[o.F8,e.sketchboardList.length<8]])])]),(0,n._)("div",ms,[Bs,(0,n._)("span",null,(0,r.zw)(e.$t("SketchboardUpload.Maximum")),1)])],512),[[o.F8,1==e.openClick]]),(0,n.wy)((0,n.Wm)(u,{ref:"Material",msg:"Sketchboard",onConfirmSelect:e.confirmSelect,disignTypeList:e.sketchCatecoryList},null,8,["onConfirmSelect","disignTypeList"]),[[o.F8,2==e.openClick]]),(0,n.wy)((0,n.Wm)(h,{ref:"Generate",msg:"Sketchboard",sketchCatecoryList:e.sketchCatecoryList,onGenerateCheckbox:e.getgenerateCheckbox},null,8,["sketchCatecoryList","onGenerateCheckbox"]),[[o.F8,3==e.openClick]])]),(0,n._)("div",ws,[(0,n._)("div",vs,[(0,n._)("div",ys,[(0,n._)("div",null,(0,r.zw)(e.$t("SketchboardUpload.Thumbnail")),1)]),(0,n._)("div",Cs,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.sketchboardList,((t,A)=>((0,n.wg)(),(0,n.iD)("div",{class:"modal_img_item",key:t,onClick:A=>e.deleteFile(t)},[(0,n.wy)((0,n._)("img",null,null,512),[[g,t.imgUrl]]),_s],8,bs)))),128))])]),(0,n.wy)((0,n._)("div",Qs,[(0,n._)("div",{class:(0,r.C_)(["input_box",{active:e.inputShow}])},[(0,n.wy)((0,n._)("input",{class:(0,r.C_)(["search_input",{forbidden:e.generateCheckbox}]),onInput:t[5]||(t[5]=(...t)=>e.ifMaximumLength&&e.ifMaximumLength(...t)),onKeydown:t[6]||(t[6]=(0,o.D2)((t=>e.getgenerate()),["enter"])),maxlength:e.inputShow?0:9999,readonly:e.generateCheckbox,placeholder:e.$t("SketchboardUpload.inputContent1"),"onUpdate:modelValue":t[7]||(t[7]=t=>e.captionGeneration=t)},null,42,Us),[[o.nr,e.captionGeneration]]),(0,n._)("div",{class:"generage_btn started_btn",onClick:t[8]||(t[8]=(0,o.iM)(((...t)=>e.getgenerate&&e.getgenerate(...t)),["stop"]))},"Generate"),(0,n._)("span",null,(0,r.zw)(e.$t("SketchboardUpload.maximumLength")),1)],2),(0,n._)("div",Fs,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.generateList,((t,A)=>((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)(["modal_imgItem",{active:t?.checked}])},[(0,n._)("img",{src:t.imgUrl,onClick:A=>e.generageAdd(t)},null,8,xs),(0,n._)("div",Es,[(0,n._)("div",ks,[(0,n._)("div",{class:"select_category",onClick:(0,o.iM)((A=>e.showFileCategory(t)),["stop"])},[(0,n.Uk)((0,r.zw)(t.categoryValue)+" ",1),(0,n._)("div",{class:(0,r.C_)(["icon","iconfont","icon-xiala",t.categoryShow?"icon_rotate":""])},null,2)],8,Is),(0,n.wy)((0,n._)("div",Ds,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.sketchCatecoryList,((A,i)=>((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)(["category_item",t.category==A.name?"select_category_item":""]),key:i,onClick:(0,o.iM)((i=>e.selectFileCategory(t,A)),["stop"])},(0,r.zw)(A.value),11,Ss)))),128))],512),[[o.F8,t.categoryShow]])])]),(0,n._)("div",Hs,[t.like?((0,n.wg)(),(0,n.iD)("i",{key:1,class:"fi fi-sr-heart",onClick:(0,o.iM)((A=>e.likeFile(t,"noLike")),["stop"])},null,8,Os)):((0,n.wg)(),(0,n.iD)("i",{key:0,class:"fi fi-rr-heart",onClick:(0,o.iM)((A=>e.likeFile(t,"like")),["stop"])},null,8,Ls))]),(0,n._)("div",Ms,[(0,n.Wm)(c,{checked:t.pin,"onUpdate:checked":e=>t.pin=e},{default:(0,n.w5)((()=>[(0,n.Uk)((0,r.zw)(e.$t("SketchboardUpload.PIN")),1)])),_:2},1032,["checked","onUpdate:checked"])])],2)))),256))]),(0,n.wy)((0,n._)("div",Ts,[(0,n.Wm)(l,{size:"large"})],512),[[o.F8,e.loadingShow]])],512),[[o.F8,3==e.openClick]])])])}var Ks=(0,n.aZ)({components:{Material:di,Generate:lA},setup(){let e=(0,Y.iH)([]),t=(0,Y.iH)(1),A=(0,Y.iH)([]),i=(0,Ne.oR)(),r=(0,Y.iH)(),o=(0,Y.iH)(!1),s=(0,Y.iH)({}),a=(0,Y.iH)({}),l=(0,Y.iH)(!1),c=(0,Y.iH)(),d=(0,n.Fl)((()=>i.state.UploadFilesModule.sketchboard)),{t:u}=(0,oA.QT)(),h=(0,n.f3)("driver__"),g=(0,Y.iH)();return{fileList:e,openClick:t,generateList:A,store:i,generateCheckbox:r,loadingShow:o,sketchCatecoryList:s,workspace:a,inputShow:l,inputTime:c,sketchboardList:d,t:u,driver__:h,isTest:g}},data(){return{swtich_type:"upload",indicator:(0,n.h)(Le.Z,{style:{fontSize:"2.4rem"},spin:!0}),upload:{isPin:0,level1Type:"Sketchboard",timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},token:"",uploadUrl:"",captionGeneration:"",workspaceCom:{}}},computed:{getSketchLabel(e){return e=>{let t="";for(let A of this.sketchCatecoryList)if(A.value===e){t=A.label;break}return t}}},watch:{workspaceCom(e,t){this.workspace=e,this.getPosition()},sketchboardList:{handler(e,t){e.length>=2&&this.driver__.driver&&AA.moveTo(14)}}},mounted(){this.token=(0,Pe.ej)("token")||"";let e=(0,Pe.ej)("isTest");this.isTest=JSON.parse(e),this.uploadUrl=(0,Re.M$)(),this.workspaceCom=(0,n.Fl)((()=>this.store?.state?.Workspace?.workspace))},methods:{open(e){if(this.openClick=e,2==e){let e=this.$refs.Material;e.init("Sketchboard")}},getPosition(){let e;e="Female"==this.workspace.sexEnum.name?"FemalePosition":"MalePosition",Te.V.axiosGet(Te.V.httpUrls.workspaceenumValues,{params:{enumName:e}}).then((e=>{e&&(this.sketchCatecoryList=e)}))},getgenerateCheckbox(e){this.generateCheckbox=e},fileUploadChange(e){let t=e.file;if("done"===t.status){let e=JSON.parse(t.xhr.response);t.imgUrl=e.data.url,t.resData=e.data,t.pin=!1,t.categoryValue=this.sketchCatecoryList?.[0]?.value,t.category=this.sketchCatecoryList?.[0]?.name,t.categoryShow=!1,t.id_=Ke.id++,t.type_={type1:"upload",type2:"Sketchboard"};let A=this.fileList.filter((e=>"done"===e.status));this.store.commit("setSketchboardFile",A)}else if("error"===t.status){let e=-1;this.fileList.forEach(((A,i)=>{t.uid===A.uid&&(e=i)})),e>-1&&this.fileList.splice(e,1),Oe.ZP.warning(t.name+this.t("SketchboardUpload.jsContent1"))}},beforeUpload(e){const t="image/jpeg"===e.type||"image/png"===e.type||"image/jpg"===e.type||"image/bmp"===e.type;t||Oe.ZP.info(this.t("SketchboardUpload.jsContent2"));const A=e.size/1024/1024<2;return A||Oe.ZP.info(this.t("SketchboardUpload.jsContent3")),t&&A||Me.Z.LIST_IGNORE},showFileCategory(e){e.categoryShow=!0,document.addEventListener("click",this.hiddenFileCategory)},selectFileCategory(e,t){if(3==this.openClick){for(let e of this.generateList)e.categoryShow=!1;e.categoryValue=t.value,e.category=t.name}else{for(let e of this.fileList)e.categoryShow=!1;e.categoryValue=t.value,e.category=t.name,this.store.commit("setSketchboardFile",this.fileList)}},hiddenFileCategory(){if(3==this.openClick)for(let e of this.generateList)e.categoryShow=!1;else for(let e of this.fileList)e.categoryShow=!1;document.removeEventListener("click",this.hiddenFileCategory)},ifMaximumLength(){clearTimeout(this.inputTime);let e=document.getElementsByClassName("sketchboard_upload_modal")[0].getElementsByClassName("input_box")[0];e.getElementsByClassName("search_input")[0];this.inputTime=setTimeout((()=>{this.captionGeneration?.split(/\s+/).length>75?this.inputShow=!0:this.inputShow=!1}),500)},deleteFile(e){if("generate"==e.type_.type1||"material"==e.type_.type1)this.store.commit("addGenerateMaterialFils",e);else{let t;this.fileList=this.store.state.UploadFilesModule.sketchboardFiles,this.store.state.UploadFilesModule.sketchboardFiles.forEach(((A,i)=>{A.id_==e.id_&&(t=i)})),this.fileList.splice(t,1),this.store.commit("setSketchboardFile",this.fileList)}},likeFile(e,t){if("like"==t){let t={generateDetailId:e.id,level1Type:"Sketchboard",level2Type:e.category,gender:this.workspace.sex,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone};Te.V.axiosPost(Te.V.httpUrls.generateLike,t).then((t=>{e.like=!0})).catch((e=>{}))}else{let t={generateDetailId:e.id,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone};Te.V.axiosGet(Te.V.httpUrls.generateDislike,{params:t}).then((t=>{e.like=!1})).catch((e=>{}))}},recollection(){let e=JSON.parse(JSON.stringify(this.store.state.UploadFilesModule.allBoardData.sketchboardFiles)),t={generate:[],material:[],moodboard:[]};e.forEach((e=>{"generate"==e.type_.type1?t.generate.push(e):"material"==e.type_.type1?t.material.push(e):t.moodboard.push(e)})),this.store.commit("setSketchboardGenerateFiles",t.generate),this.store.commit("setSketchboardMaterialFiles",t.material),this.store.commit("setSketchboardFile",t.moodboard),this.fileList=t.moodboard},confirmSelect(e){for(let t of e){let e={imgUrl:t.url,resData:t,pin:!1,status:"done",category:t.level2Type||"Outwear",categoryShow:!1};if(15==this.fileList.length){Oe.ZP.warning(this.t("SketchboardUpload.jsContent4"));break}this.fileList.push(e)}this.store.commit("setSketchboardFile",this.fileList)},getgenerate(){if(this.isTest)return void Oe.ZP.warning(this.t("isTest.available"));let e=this.$refs.Generate,t=e.checkbox.filter((e=>e.type))[0].name,A={generateType:t,designType:"",collectionElementId:e?.collectionElementid,level1Type:e.upload.level1Type,level2Type:e.level2Type,text:this.captionGeneration,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,version:1,gender:this.workspace.sex};if("image"==t||"text-image"==t){if(!e?.collectionElementid)return void Oe.ZP.info(this.t("SketchboardUpload.jsContent5"))}else if("text"==t){if(A.collectionElementId="",A.level2Type="",!this.captionGeneration)return void Oe.ZP.info(this.t("SketchboardUpload.jsContent7"));{let e=this.captionGeneration.split(/\s+/).length;if(e>75)return void Oe.ZP.info(this.t("SketchboardUpload.jsContent6"))}}this.loadingShow=!0,Te.V.axiosPost(Te.V.httpUrls.sketchAndPrintGenerate,A).then((t=>{if(t){let A;this.generateList=[],t.generatedCollectionItems.forEach(((i,n)=>{A={id:i.generateItemId,imgUrl:i.generateItemUrl,category:e.level2Type?e.level2Type:this.sketchCatecoryList[0].name,categoryValue:e.level2Type?e.level2Type:this.sketchCatecoryList[0].value,id_:Ke.id++,like:t.generatedCollectionItems[n].isLiked},this.generateList.push(A),this.loadingShow=!1}))}})).catch((e=>{this.loadingShow=!1}))},generageAdd(e){e.type_={type1:"generate",type2:"Sketchboard"},e.resData=JSON.parse(JSON.stringify(e)),this.store.commit("addGenerateMaterialFils",e)}}});const Ps=(0,it.Z)(Ks,[["render",Ns],["__scopeId","data-v-5faab940"]]);var Rs=Ps,Vs="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAuCAYAAABXuSs3AAAAAXNSR0IArs4c6QAACT5JREFUaEPVmXuMXFUdx7/n3Nfcee62u91S0fJKl3YhGiEptIo0BamaCH/UiESrCTEhGBuBFioRrUYlQKtGDfIo0bBtSIsKfwgFq0BLC7S6aNudPre7LfQB7HZ3Z2d2Zu7ce8/P/O7swOx0dna6Sx+eZDc7c8/jc3/ne36PswL/p02ca+7LHsx+zTLEcgBzANgjPLKMSwEgADmAXoPQf5S8x9x5TsGvfdS57fiAvy5qVcMQPkBadcPKtprgLx4ka8DB9SSwkAitAmgWwFQC9MnslKUDeQ+Zx7Y4rUcHlFUJLkl8P2dZT5uF7EMC8o5RawkBQbSlKviGJE1xJZbCx+0EXDgZyGpjG8PArmMKT7zuKEsXUisXBqBCmVCsY6XItj48NN+Q5lYKlFJsJCWE7/ungK/bRTeTxBoiNIkzJKSmKPBWt0o/uc3REyFhV6xDQtDMznvC7855xLlZCPV8tZcfhda+ix4QEj/7uC1cOd/UCLDjsBpes80RUUuEZYWBhBKXdd4bOtT2SO42CKwrjudOH1r+I4u376dbRAHPBc/PcBsBz6zZ5lhRC0JI7cdE2At4EKSTPWxuYqnM/vXwBfAxl4+U7jsgqd1IUrsTRCrAfHonRaSGAQDGGWYOpi8Dj8YssXnPcvv6etdtW+14IKUF4M8kaaWr8JPKLRtrMh5kaAAfKk8Brl/vssV+ZeB21JL9QtI34PtJKM00CTITCZ3oWiqcq1ZS2I3kWzwfvi+Up+nGIkFqDUtGjLi8PgVEx1OJIiBmAWETGMgCObf4d0MYyOSB4QJQz8uXgcsyjTsoulnSCLN2Lbd7Rg7ncwA4CCmAjKLW4Ys/7qEbDR9/H0/bDD0tBvRlgI1JF929CgUfCBnArBaJRXMMRK3i8wr3dsp2NEWAt3pUes02R4+f6lWY8KK9y+wjbauyiwHxbFWv0t5JvxLAXbU2m6Gbo0BXL+HRzQ6OpxRilgjkwvCZPOHSZg3fW2CiJSbQP1zb8lMiwNvvqMEnXnfMyKlexXfM0JSupWJo9ir3OglvczmbgACBlFi7m16GwBdrgbNVfQU8+JKDI/0KFzYI8MuUnBTv1jsnFa6aqeMHC03kCkXtj9V4vnQe2dWb8jTkUCQeEqCPYgwUiRv3Lg/9Y85q94eCvF9WmeeAWNtJbwC4thY4S+SF3T7atzuY0SBHLVIaxwv3Zgh3XGdh/qUykEyt1hyF+ut/vfSf3ixEW2JCi1hsyw89dRagDhA+Dw7xLGoCHJdg6QK6VF8V6zppPwGzxlqED1s8BDy+tYDt3T6mxXirTm0c/d5LEW5q0/GtuQZOZsrCRUV3Hm9pgKnDfSnpDb3e5Vlph6AUtJEoWsoSuatDBLJ0Qc0x0d83TPd33We3s8V7AFw0JrgEwgbwh80F7DzmY2qkuu/hb99PExbM0vGdeUbgdcq3v3J+lhpLJhGCfzwF59igKng+NAi28UeNyZUCwhbUjAa5b8kVYm4g0bWddAjAJTW3NQas3e7ihd0ePlGm71GHRgAnUoRbrzZwy6d1vJ+uLRV+ylAMaRvFH8HJVpXt5DfhM5Mv4N3Fl4tP1Q3O2dze9wirN+XBWmRLlVuTJx7KEwwJ3HtTKPAsGfbKH3/r/uYV4tK6wRlsShhY3+FhQ0cBzVEBzqH5e36BVI6Cn+9+zsJNbRo+SI+EiXMNznBsZdsEXtzt4ZX9HgayFLhIXeMQLvDlKwwsbNUwmANcdZ6As+H4MHHl0mADRweBA+/7gTwawgKXt2iYHgf6s8W8pZ6wP8HNOD2pfOirRw4T5ycRqwjIVh92gKxb7DVevjNB4NKwiYFPctFxh/NLm3ox13G8oiepMMT5Bc4yZAlaOgofpEGOB9kUhRs2ET45PEp+5wc4H3r2TC1xUHcvDW7a63EuZDoe6dOiMvvZmRoWzNJsx0MolQt24tyDs5VNLYD23+xWqae2FYzejIo1hjkXAdIOy4XcG1qNoW/PM0K6RKQvg54lV4ogWNYVOccV52l2YGg+4I1hFDZ2+qn2HYWYoSHUaJdlnSMH/0RKoW2GlrrzC2aiJS6O3PBJEaQnZx2cvRBXTLaB7DP/8nLP73TjjTYMjsilVLlkh+BgBsmbwvSExO3zzZ13XaN95qyDMxjfqXg+Mk9udZ2th9yG5qjUOD5UQpdvIrtdDni2IfYdXGHPnhR4qTxjC9bTGOyCBDjdHfzdaw6Sx/2GGQkJKWtnkaW5Gd7xcPjAffbFpwUeJG1cLIcCffq5QmAkETGDIlkfyhc9RGUAKnkOhu7qpYHfv1qQJ1J+gre+Vto7hjG6k8vs+pOsUu7cGIbf00eZHYd9OjqgNALkBQnhzLtE1y5uErG+NGQQNEboGYwDyrQYvB2HVeqxLU4oW0CEi5Fa0qixg6PADwOYWa1zycpTo4ElhzcmvdzGTs/qG1YxLqGYL+sSmqNy6OtXG4UbLtei7HOzheJsnBZoAtmNST+7bkchYkjYjRERpAkTbIeTy0akMlbpVkqqWmJQB3sptf7fLnUc8RIJW2jRsuKWtTeYI06uCgta9cw1F2t8V8KlFw1lKbf5oCfe6PGjERM6p8ITtHTpPQ8kl9mtJY1vBTC/3AI8OV/aaBLZTXu93HP/ca2hPKLT4iJIrCq1yd9xVsgnP2zCSdgCJECDwyTzLswpkWJQmSQ0H7E39yyz5xXBk/QsCIv5QymaTYuBjvTTIFt5e48fT4Sh8z1KPQuzxj0uyVG8d2HgasX1hKRCeDm53F5UAn8QCitYdlyiWTqyr+z3s39527X6syrWEqvfZU0Ipt5BfKA88ZvkfaHg8kq076av6Br+1hIDHRukwQ0drtp2yI/HQjD4oqYeK9e79mT68aWI5xmL9q0wXg7AX+2hkCvx3pYuP/7nDjf9QZriLXER5MQT8LOTYRtvbMYxQ018ixuA869bn3F+8c99/v1cVzaUJTrjzXS2ngsieLr20313WStLawbgTQ9RrFnmT2oSxnlm5RJnQaPQlF3LxfAocP7QtspZDPjPnvGq8bS3ieOz8aXk3cZL5UNHpRZXrs7erUisPu25z+yAB5LL7J9XLnFKUc7/6SKBRwWQOLM8NWYvZmb9QtCdnfeE11frWfU2Yc7DmelCyhWAXAJQ49l7gSBwHSUhnxLC/G3ybtE/1tr/A0bYMTlfaNGhAAAAAElFTkSuQmCC";const Gs=e=>((0,n.dD)("data-v-2119dc4e"),e=e(),(0,n.Cn)(),e),zs={class:"collection_modal_item"},js={class:"switch_type_list"},Zs={class:"switch_type_item select_swtich"},Ws={class:"marketingUpload_body"},Ys={class:"upload_img_body scroll_style"},Xs={class:"upload_item"},Js={class:"upload_file_item_content"},$s={class:"upload_file_item_content"},qs=["src"],ea=["onClick"],ta={class:"upload_file_item upload_component"},Aa={class:"upload_tip_block"},ia=Gs((()=>(0,n._)("img",{class:"upload_img_icon",src:Vs},null,-1))),na=[ia],ra={class:"upload_max_tip"},oa=Gs((()=>(0,n._)("span",{class:"icon iconfont icon-zhuyi"},null,-1)));function sa(e,t,A,i,s,a){const l=(0,n.up)("a-spin"),c=(0,n.up)("a-upload"),d=(0,n.up)("Material");return(0,n.wg)(),(0,n.iD)("div",zs,[(0,n._)("div",js,[(0,n._)("div",Zs,[(0,n._)("span",null,(0,r.zw)(e.$t("MarketingSketchUpload.Upload")),1)]),(0,n._)("div",{onClick:t[0]||(t[0]=t=>e.openLibrary()),class:"switch_type_item"},[(0,n._)("span",null,(0,r.zw)(e.$t("MarketingSketchUpload.MyLibrary")),1)])]),(0,n.wy)((0,n._)("div",Ws,[(0,n._)("div",Ys,[(0,n._)("div",Xs,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.fileList,((t,A)=>((0,n.wg)(),(0,n.iD)("div",{class:"upload_file_item",key:t},[(0,n.wy)((0,n._)("div",Js,[(0,n.Wm)(l,{indicator:e.indicator,tip:"Uploading..."},null,8,["indicator"])],512),[[o.F8,"uploading"===t?.status]]),(0,n.wy)((0,n._)("div",$s,[(0,n._)("img",{src:t?.imgUrl,class:"upload_img"},null,8,qs),(0,n._)("div",{class:"delete_file_block",onClick:t=>e.deleteFile(A)},"Delete",8,ea)],512),[[o.F8,"done"===t?.status]])])))),128)),(0,n.wy)((0,n._)("div",ta,[(0,n.Wm)(c,{action:e.uploadUrl+"/api/element/upload","list-type":"picture-card",data:{...e.upload},"before-upload":e.beforeUpload,headers:{Authorization:e.token},"file-list":e.fileList,"onUpdate:file-list":t[1]||(t[1]=t=>e.fileList=t),multiple:"",maxCount:15,accept:".jpg,.png,.jpeg,.bmp",onChange:t[2]||(t[2]=t=>e.fileUploadChange(t))},{default:(0,n.w5)((()=>[(0,n.wy)((0,n._)("div",Aa,na,512),[[o.F8,e.fileList.length<15]])])),_:1},8,["action","data","before-upload","headers","file-list"])],512),[[o.F8,e.fileList.length<15]])])]),(0,n._)("div",ra,[oa,(0,n._)("span",null,(0,r.zw)(e.$t("MarketingSketchUpload.maximumLength")),1)])],512),[[o.F8,"upload"===e.swtich_type]]),(0,n.Wm)(d,{ref:"Material",onConfirmSelect:e.confirmSelect},null,8,["onConfirmSelect"])])}var aa=(0,n.aZ)({components:{Material:di},setup(){let e=(0,Y.iH)([]),{t:t}=(0,oA.QT)();return{fileList:e,t:t}},data(){return{swtich_type:"upload",indicator:(0,n.h)(Le.Z,{style:{fontSize:"2.4rem"},spin:!0}),upload:{isPin:0,level1Type:"MarketingSketch",timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},token:"",uploadUrl:"",store:(0,Ne.oR)()}},mounted(){this.token=(0,Pe.ej)("token")||"",this.uploadUrl=(0,Re.M$)()},methods:{openLibrary(){let e=this.$refs.Material;e.init("MarketingSketch")},fileUploadChange(e){let t=e.file;if("done"===t.status){let e=JSON.parse(t.xhr.response);t.imgUrl=e.data.url,t.resData=e.data;let A=this.fileList.filter((e=>"done"===e.status));this.store.commit("setMarketingSketchFile",A)}else if("error"===t.status){let e=-1;this.fileList.forEach(((A,i)=>{t.uid===A.uid&&(e=i)})),e>-1&&this.fileList.splice(e,1),Oe.ZP.error(t.name+this.t("MarketingSketchUpload.jsContent1"))}},beforeUpload(e){const t="image/jpeg"===e.type||"image/png"===e.type||"image/jpg"===e.type||"image/bmp"===e.type;t||Oe.ZP.warning(this.t("MarketingSketchUpload.jsContent2"));const A=e.size/1024/1024<2;return A||Oe.ZP.warning(this.t("MarketingSketchUpload.jsContent3")),t&&A||Me.Z.LIST_IGNORE},deleteFile(e){this.fileList.splice(e,1),this.store.commit("setMarketingSketchFile",this.fileList)},recollection(){this.fileList=JSON.parse(JSON.stringify(this.store.state.UploadFilesModule.allBoardData.marketingSketchFiles)),this.store.commit("setMarketingSketchFile",this.fileList)},confirmSelect(e){for(let t of e){let e={imgUrl:t.url,resData:t,status:"done"};if(15==this.fileList.length){Oe.ZP.warning(this.t("MarketingSketchUpload.jsContent5"));break}this.fileList.push(e)}this.store.commit("setMarketingSketchFile",this.fileList)}}});const la=(0,it.Z)(aa,[["render",sa],["__scopeId","data-v-2119dc4e"]]);var ca=la,da=A(8302),ua=A(327),ha=(0,n.aZ)({components:{Generate:lA,MoodboardUpload:Rn,PrintboardUpload:io,ColorboardUpload:Zo,SketchboardUpload:Rs,MarketingSketchUpload:ca},setup(){const e=(0,Ne.oR)();let{t:t}=(0,oA.QT)(),A=(0,n.Fl)((()=>e.state.Guide.guide));(0,n.JJ)("driver__",A);let i=(0,Y.iH)(!1);return{driver__:A,t:t,isShowMark:i}},data(){return{showCollectionModal:!1,collectionStep:1,store:(0,Ne.oR)()}},methods:{nextStep(){let e=this.store.state.UploadFilesModule.colorBoards;if(1==this.collectionStep){let e=this.store.state.UploadFilesModule.disposeMoodboard,t=this.store.state.UploadFilesModule.moodboard;if(t.length>1&&(!e||0==e.length))return void Oe.ZP.info(this.$t("collectionModal.jsContent1"))}3!=this.collectionStep||e.length>=1?(this.driver__.driver&&AA.moveNext(),this.collectionStep=this.collectionStep+1):Oe.ZP.info(this.$t("collectionModal.jsContent3"))},lastStep(){this.collectionStep=this.collectionStep-1},changeCollectionModal(e){this.showCollectionModal=e},recollection(){setTimeout((()=>{let e=["MoodboardUpload","PrintboardUpload","ColorboardUpload","SketchboardUpload"];for(let t of e){let e=this.$refs[t];e.recollection()}}),200)},cancelDsign(){let e=this;ua.Z.confirm({title:this.$t("collectionModal.jsContent2"),icon:(0,n.Wm)(da.Z),okText:"Yes",cancelText:"No",mask:!1,centered:!0,onOk(){Ke.id=0,e.showCollectionModal=!1,e.store.commit("clearAllData"),e.collectionStep=1}})},finishCollection(){this.isShowMark=!0;let e=this.store.state.UploadFilesModule.sketchboard,t=[];e.forEach((e=>{let A={designType:e.resData.designType,isPin:e.pin,level2Type:e.category,sketchBoardId:e.id};t.push(A)}));let A={sketchBoards:t};this.store.commit("clearAllId"),Ke.id=0,this.showCollectionModal=!1,this.collectionStep=1,this.$emit("finishCollection"),this.driver__.driver&&AA.moveNext();let i=document.querySelectorAll(".img_block_item_sketch img");Te.V.axiosPost(Te.V.httpUrls.sketchBoardsBoundingBox,A).then((e=>{i.forEach((e=>{e.src=e.src})),this.isShowMark=!1,this.store.commit("clearAllId"),Ke.id=0,this.showCollectionModal=!1,this.collectionStep=1,this.$emit("finishCollection"),this.driver__.driver&&AA.moveNext()})).catch((e=>{this.isShowMark=!1}))}}});const ga=(0,it.Z)(ha,[["render",ie],["__scopeId","data-v-ea71ebd8"]]);var pa=ga;const fa=e=>((0,n.dD)("data-v-5ed111da"),e=e(),(0,n.Cn)(),e),ma={class:"collection_review"},Ba=fa((()=>(0,n._)("div",{class:"collection_review_mark"},null,-1))),wa={key:0,class:"img_block_item"},va={class:"all_img_item_block"},ya=["src"],Ca={key:1,class:"img_block_item"},ba={class:"all_img_item_block"},_a=["src"],Qa={class:"img_block_item"},Ua={class:"all_img_item_block"},Fa=["src"],xa={class:"all_img_item_block"},Ea=["src"],ka={class:"img_block_item"},Ia={class:"color_content_body"},Da={class:"color_des"},Sa={class:"color_des"},Ha={class:"img_block_item img_block_item_sketch"},La=["src"],Oa={class:"img_block_item"},Ma={class:"all_img_item_block"},Ta=["src"];function Na(e,t,A,i,s,a){return(0,n.wg)(),(0,n.iD)("div",ma,[Ba,0!=e.allBoardData?.disposeMoodboard?.length&&null!=e.allBoardData?.disposeMoodboard?.[0]?((0,n.wg)(),(0,n.iD)("div",wa,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.allBoardData?.disposeMoodboard,(e=>(0,n.wy)(((0,n.wg)(),(0,n.iD)("div",{key:e,class:"lager_img_item lager_img_disposeMoodboard"},[(0,n._)("div",va,[(0,n._)("img",{class:"all_img_content cover_img",src:e?.imgUrl},null,8,ya)])])),[[o.F8,""!=e?.imgUrl]]))),128))])):((0,n.wg)(),(0,n.iD)("div",Ca,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.allBoardData?.moodboardFiles,(e=>(0,n.wy)(((0,n.wg)(),(0,n.iD)("div",{key:e,class:"lager_img_item lager_img_moodboard"},[(0,n._)("div",ba,[(0,n._)("img",{class:"all_img_content cover_img",src:e?.imgUrl},null,8,_a)])])),[[o.F8,""!=e?.imgUrl]]))),128))])),(0,n._)("div",Qa,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.allBoardData?.printboardFiles,(e=>((0,n.wg)(),(0,n.iD)("div",{class:"small_img_item",key:e},[(0,n._)("div",Ua,[(0,n._)("img",{class:"all_img_content cover_img",src:e?.imgUrl},null,8,Fa)])])))),128)),((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.allBoardData?.generatePrintFiles,(e=>((0,n.wg)(),(0,n.iD)("div",{class:"small_img_item",key:e},[(0,n._)("div",xa,[(0,n._)("img",{class:"all_img_content cover_img",src:e.imgUrl},null,8,Ea)])])))),128))]),(0,n._)("div",ka,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.allBoardData?.colorBoards,(e=>((0,n.wg)(),(0,n.iD)("div",{class:"color_item",key:e},[(0,n._)("div",{class:"color_content",style:(0,r.j5)({background:`rgb(${e?.rgbValue?.r},${e?.rgbValue?.g},${e?.rgbValue?.b},${e?.rgbValue?.a})`})},null,4),(0,n._)("div",Ia,[(0,n._)("div",Da,(0,r.zw)(e.tcx),1),(0,n._)("div",Sa,(0,r.zw)(e.name),1)])])))),128))]),(0,n._)("div",Ha,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.sketch,((t,A)=>((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)(["lager_img_item","lager_img_item"+A]),key:t},[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(t,(t=>((0,n.wg)(),(0,n.iD)("div",{class:"all_img_item_block",key:e.sketch},[(0,n._)("img",{class:"all_img_content",src:t?.imgUrl},null,8,La)])))),128))],2)))),128))]),(0,n._)("div",Oa,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.allBoardData.marketingSketchFiles,(e=>((0,n.wg)(),(0,n.iD)("div",{class:"lager_img_item",key:e},[(0,n._)("div",Ma,[(0,n._)("img",{class:"all_img_content",src:e.imgUrl},null,8,Ta)])])))),128))])])}var Ka=(0,n.aZ)({components:{MoodTemplate:_i},setup(){const e=(0,Ne.oR)();let t=(0,Y.iH)([[],[],[]]),A=(0,Y.iH)([]),i=(0,n.Fl)((()=>e.state.UploadFilesModule.allBoardData));return{store:e,allBoardData:i,sketch:t,sketchList:A}},data(){return{asda:{}}},watch:{allBoardData:{handler(e,t){this.sketchList=[],this.sketchList=this.allBoardData.sketchboardFiles,this.setSketch()},immediate:!0}},mounted(){},methods:{setSketch(){this.sketch=[[],[],[]],(0,n.Y3)().then((async()=>{let e=document.getElementsByClassName("collection_review")[0]?.getElementsByClassName("lager_img_item0")[0]?.getBoundingClientRect(),t=document.getElementsByClassName("collection_review")[0]?.getElementsByClassName("lager_img_item1")[0]?.getBoundingClientRect(),A=document.getElementsByClassName("collection_review")[0]?.getElementsByClassName("lager_img_item2")[0]?.getBoundingClientRect();if(e.num=0,t.num=1,A.num=2,this.sketchList)for(let i=0;i<this.sketchList.length;i++){let r=[e,t,A];r.sort(((e,t)=>{var A=e["height"],i=t["height"];return A-i})),this.sketch[r[0].num]?.push(this.sketchList[i]),await new Promise((i=>{(0,n.Y3)().then((()=>{e=document.getElementsByClassName("collection_review")[0]?.getElementsByClassName("lager_img_item0")[0]?.getBoundingClientRect(),t=document.getElementsByClassName("collection_review")[0]?.getElementsByClassName("lager_img_item1")[0]?.getBoundingClientRect(),A=document.getElementsByClassName("collection_review")[0]?.getElementsByClassName("lager_img_item2")[0]?.getBoundingClientRect(),e.num=0,t.num=1,A.num=2,i()}))}))}}))}}});const Pa=(0,it.Z)(Ka,[["render",Na],["__scopeId","data-v-5ed111da"]]);var Ra=Pa;const Va={class:"export_new_collection_review"},Ga={key:0,class:"img_block_item"},za={class:"all_img_item_block"},ja=["src"],Za={key:1,class:"img_block_item"},Wa={class:"all_img_item_block"},Ya=["src"],Xa={class:"img_block_item"},Ja={class:"all_img_item_block"},$a=["src"],qa={class:"all_img_item_block"},el=["src"],tl={class:"img_block_item"},Al={class:"color_content_body"},il={class:"color_des"},nl={class:"color_des"},rl={class:"img_block_item img_block_item_sketch"},ol=["src"],sl={class:"img_block_item"},al={class:"all_img_item_block"},ll=["src"],cl={class:"img_block_item img_block_item_sketch_like h50"},dl={class:"all_img_item_block"},ul=["src"];function hl(e,t,A,i,s,a){return(0,n.wg)(),(0,n.iD)("div",Va,[0!=e.allBoardData?.disposeMoodboard?.length&&null!=e.allBoardData?.disposeMoodboard?.[0]?(0,n.wy)(((0,n.wg)(),(0,n.iD)("div",Ga,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.allBoardData?.disposeMoodboard,(e=>(0,n.wy)(((0,n.wg)(),(0,n.iD)("div",{key:e,class:"lager_img_item lager_img_disposeMoodboard"},[(0,n._)("div",za,[(0,n._)("img",{class:"all_img_content cover_img",src:e?.imgUrl},null,8,ja)])])),[[o.F8,""!=e?.imgUrl]]))),128))],512)),[[o.F8,e.exportNav[0].change]]):(0,n.wy)(((0,n.wg)(),(0,n.iD)("div",Za,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.allBoardData?.moodboardFiles,(e=>(0,n.wy)(((0,n.wg)(),(0,n.iD)("div",{key:e,class:"lager_img_item lager_img_moodboard"},[(0,n._)("div",Wa,[(0,n._)("img",{class:"all_img_content cover_img",src:e?.imgUrl},null,8,Ya)])])),[[o.F8,""!=e?.imgUrl]]))),128))],512)),[[o.F8,e.exportNav[0].change]]),(0,n.wy)((0,n._)("div",Xa,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.allBoardData.printboardFiles,(e=>((0,n.wg)(),(0,n.iD)("div",{class:"small_img_item",key:e},[(0,n._)("div",Ja,[(0,n._)("img",{class:"all_img_content cover_img",src:e.imgUrl},null,8,$a)])])))),128)),((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.allBoardData.generatePrintFiles,(e=>((0,n.wg)(),(0,n.iD)("div",{class:"small_img_item",key:e},[(0,n._)("div",qa,[(0,n._)("img",{class:"all_img_content cover_img",src:e.imgUrl},null,8,el)])])))),128))],512),[[o.F8,e.exportNav[1].change]]),(0,n.wy)((0,n._)("div",tl,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.allBoardData.colorBoards,(e=>((0,n.wg)(),(0,n.iD)("div",{class:"color_item",key:e},[(0,n._)("div",{class:"color_content",style:(0,r.j5)({background:`rgb(${e?.rgbValue?.r},${e?.rgbValue?.g},${e?.rgbValue?.b})`})},null,4),(0,n._)("div",Al,[(0,n._)("div",il,(0,r.zw)(e.tcx),1),(0,n._)("div",nl,(0,r.zw)(e.name),1)])])))),128))],512),[[o.F8,e.exportNav[2].change]]),(0,n.wy)((0,n._)("div",rl,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.sketch,((t,A)=>((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)(["lager_img_item","lager_img_item"+A]),key:t},[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(t,(t=>((0,n.wg)(),(0,n.iD)("div",{class:"all_img_item_block",key:e.sketch},[(0,n._)("img",{class:"all_img_content",src:t?.imgUrl},null,8,ol)])))),128))],2)))),128))],512),[[o.F8,e.exportNav[3].change]]),(0,n._)("div",sl,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.allBoardData.marketingSketchFiles,(e=>((0,n.wg)(),(0,n.iD)("div",{class:"lager_img_item",key:e},[(0,n._)("div",al,[(0,n._)("img",{class:"all_img_content",src:e.imgUrl},null,8,ll)])])))),128))]),(0,n.wy)((0,n._)("div",cl,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.likeDesignCollectionList,(e=>((0,n.wg)(),(0,n.iD)("div",{class:"lager_img_item",key:e.designItemUrl},[(0,n._)("div",dl,[(0,n._)("img",{class:"all_img_content",src:e.designOutfitUrl},null,8,ul)])])))),128))],512),[[o.F8,e.exportNav[4].change]])])}var gl=(0,n.aZ)({components:{MoodTemplate:_i},setup(){let e=(0,Y.iH)([[],[],[]]),t=(0,Y.iH)([]);const A=(0,Ne.oR)();let i=(0,n.Fl)((()=>A.state.UploadFilesModule.allBoardData)),r=(0,n.Fl)((()=>A.state.HomeStoreModule.likeDesignCollectionList)),o=(0,n.f3)("exportNav");return{allBoardData:i,likeDesignCollectionList:r,sketch:e,sketchList:t,exportNav:o}},watch:{allBoardData:{handler(e,t){this.sketchList=[],this.sketchList=this.allBoardData.sketchboardFiles,this.setSketch()},immediate:!0}},methods:{setSketch(){this.sketch=[[],[],[]],(0,n.Y3)().then((async()=>{let e=document.getElementsByClassName("collection_review")[0]?.getElementsByClassName("lager_img_item0")[0]?.getBoundingClientRect(),t=document.getElementsByClassName("collection_review")[0]?.getElementsByClassName("lager_img_item1")[0]?.getBoundingClientRect(),A=document.getElementsByClassName("collection_review")[0]?.getElementsByClassName("lager_img_item2")[0]?.getBoundingClientRect();if(e=e||{},t=t||{},A=A||{},e.num=0,t.num=1,A.num=2,this.sketchList)for(let i=0;i<this.sketchList.length;i++){let r=[e,t,A];r.sort(((e,t)=>{var A=e["height"],i=t["height"];return A-i})),this.sketch[r[0].num]?.push(this.sketchList[i]),await new Promise((i=>{(0,n.Y3)().then((()=>{e=document.getElementsByClassName("collection_review")[0]?.getElementsByClassName("lager_img_item0")[0]?.getBoundingClientRect(),t=document.getElementsByClassName("collection_review")[0]?.getElementsByClassName("lager_img_item1")[0]?.getBoundingClientRect(),A=document.getElementsByClassName("collection_review")[0]?.getElementsByClassName("lager_img_item2")[0]?.getBoundingClientRect(),e.num=0,t.num=1,A.num=2,i()}))}))}}))}}});const pl=(0,it.Z)(gl,[["render",hl],["__scopeId","data-v-dc52be82"]]);var fl=pl;const ml={class:"design_title_text"},Bl={class:"design_title_text_intro"},wl=(0,n._)("i",{class:"fi fi-rr-cross-small"},null,-1),vl=[wl],yl=(0,n._)("span",{class:"icon iconfont icon_turn icon-shangyibu"},null,-1),Cl=[yl],bl=(0,n._)("span",{class:"icon iconfont icon_turn icon-xiayibu"},null,-1),_l=[bl],Ql={class:"design_detail_modal_body"},Ul={class:"detail_modal_body_img"},Fl={class:"detail_modal_body"},xl={class:"detail_modal_body_nav"},El=["onClick"],kl=["src"],Il={class:"detail_modal_model_content"},Dl=["src"],Sl=["src"],Hl=["onClick"],Ll=["src"],Ol=["src"],Ml={class:"detail_btn"},Tl={class:"detail_modal_right_top scroll_style"},Nl={class:"clothes_detail_item clothes_detail_item_apparel"},Kl={class:"clothes_item_header"},Pl=(0,n._)("i",{class:"fi fi-rs-comments"},null,-1),Rl=["src"],Vl={class:"clothes_detail_item clothes_detail_item_print"},Gl={class:"clothes_item_header"},zl=(0,n._)("i",{class:"fi fi-rs-comments"},null,-1),jl=["src"],Zl={class:"clothes_detail_item clothes_detail_item_color"},Wl={class:"clothes_item_header"},Yl=(0,n._)("i",{class:"fi fi-rs-comments"},null,-1),Xl={class:"color_item"},Jl={class:"color_content_body"},$l={class:"color_des"},ql={class:"color_des"},ec={class:"design_detail_perview"},tc={class:"design_detail_perview_content"},Ac={class:"design_detail_perview"},ic={class:"design_detail_perview_content"},nc={class:"mark_loading"};function rc(e,t,A,i,s,a){const l=(0,n.up)("DesignDetailAlter"),c=(0,n.up)("magnifyingGlass"),d=(0,n.up)("setDesignItem"),u=(0,n.up)("setDesignItemMobile"),h=(0,n.up)("a-modal"),g=(0,n.up)("a-spin");return(0,n.wg)(),(0,n.iD)("div",null,[(0,n.Wm)(h,{class:"design_detail_modal_component Guide_1_18",visible:e.designDetailShow,"onUpdate:visible":t[19]||(t[19]=t=>e.designDetailShow=t),footer:null,width:"65%",maskClosable:!1,centered:!0,closable:!1},{default:(0,n.w5)((()=>[(0,n._)("div",ml,[(0,n._)("div",null,(0,r.zw)(e.$t("DesignDetail.Details")),1),(0,n._)("div",Bl,(0,r.zw)(e.$t("DesignDetail.EditDetails")),1)]),(0,n._)("div",{class:"design_closeIcon",onClick:t[0]||(t[0]=(0,o.iM)((t=>e.closeModal()),["stop"]))},vl),(0,n.wy)((0,n._)("div",{class:"turn_button turn_left_button",onClick:t[1]||(t[1]=t=>e.changeDesignItem("last"))},Cl,512),[[o.F8,1==e.designShowPrview]]),(0,n.wy)((0,n._)("div",{class:"turn_button turn_right_button",onClick:t[2]||(t[2]=t=>e.changeDesignItem("next"))},_l,512),[[o.F8,1==e.designShowPrview]]),(0,n.wy)((0,n._)("div",Ql,[(0,n._)("div",Ul,[(0,n.wy)((0,n._)("div",Fl,[(0,n._)("div",xl,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.designItemDetail?.clothes,((t,A)=>((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)({active:t.clothesOpen}),onClick:t=>e.clothesOpen(A)},[(0,n._)("img",{src:t?.path,alt:""},null,8,kl)],10,El)))),256))]),(0,n._)("div",Il,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.frontBack.back,((t,A)=>((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)(["detail_modal_item_back",{active:e.body}]),style:(0,r.j5)(t.style)},[(0,n._)("img",{src:t.imageUrl,alt:""},null,8,Dl)],6)))),256)),(0,n._)("img",{class:"detail_modal_model",src:e.frontBack.body?.layersObject[0]?.imageUrl,alt:""},null,8,Sl),((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.frontBack.front,((t,A)=>((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)(["detail_modal_item_front Guide_1_19",{active:e.body}]),style:(0,r.j5)(t.style),onClick:(0,o.iM)((i=>e.clothesDetail(t,A)),["stop"])},[(0,n._)("img",{src:t.imageUrl,alt:""},null,8,Ll)],14,Hl)))),256))])],512),[[o.F8,e.imgDesignImg]]),(0,n.wy)((0,n._)("img",{class:"detial_img",src:e.designItemDetail.designItemUrl},null,8,Ol),[[o.F8,!e.imgDesignImg]]),(0,n._)("div",Ml,[(0,n._)("i",{class:"fi fi-bs-expand-arrows-alt",onClick:t[3]||(t[3]=t=>e.showDesignImgDetail(2))}),(0,n.wy)((0,n._)("i",{class:"fi fi-rr-edit",onClick:t[4]||(t[4]=t=>e.showDesignImgDetail(3))},null,512),[[o.F8,!e.body]]),(0,n._)("i",{class:"fi fi-rr-copy",onMousedown:t[5]||(t[5]=(...t)=>e.mousedownDesignImg&&e.mousedownDesignImg(...t)),onMouseup:t[6]||(t[6]=(...t)=>e.mouseupDesignImg&&e.mouseupDesignImg(...t)),onTouchstart:t[7]||(t[7]=(...t)=>e.mousedownDesignImg&&e.mousedownDesignImg(...t)),onTouchend:t[8]||(t[8]=(...t)=>e.mouseupDesignImg&&e.mouseupDesignImg(...t))},null,32),(0,n.wy)((0,n._)("i",{class:"icon iconfont icon-chehui",onClick:t[9]||(t[9]=(...t)=>e.revocation&&e.revocation(...t))},null,512),[[o.F8,e.revocationShow>1]]),(0,n.wy)((0,n._)("i",{class:"icon iconfont icon-fanchehui",onClick:t[10]||(t[10]=(...t)=>e.oppositeRevocation&&e.oppositeRevocation(...t))},null,512),[[o.F8,e.oppositeRevocationShow>=1]])]),(0,n.wy)((0,n._)("div",{class:"subitOkPreviewBtn",onClick:t[11]||(t[11]=(...t)=>e.submit&&e.submit(...t))},(0,r.zw)(e.$t("DesignDetail.Submit")),513),[[o.F8,e.ifSubmit]])]),(0,n._)("div",{class:(0,r.C_)(["detail_modal_body_category Guide_1_20",[e.driver__.driver?"hideEvents":""]])},[(0,n.wy)((0,n._)("div",Tl,[(0,n._)("div",Nl,[(0,n._)("div",Kl,[Pl,(0,n._)("div",null,(0,r.zw)(e.$t("DesignDetail.CurrentApparel")),1),(0,n._)("i",{class:"fi fi-rr-edit",onClick:t[12]||(t[12]=(0,o.iM)((t=>e.openCurrent(1)),["stop"]))})]),(0,n._)("img",{src:e.designItemDetail?.clothes?.[e.currentIndex]?.path,alt:"",class:"centent",onClick:t[13]||(t[13]=t=>e.openCurrent(1))},null,8,Rl)]),(0,n._)("div",Vl,[(0,n._)("div",Gl,[zl,(0,n._)("div",null,(0,r.zw)(e.$t("DesignDetail.CurrentPrint")),1),(0,n._)("i",{class:"fi fi-rr-edit",onClick:t[14]||(t[14]=(0,o.iM)((t=>e.openCurrent(2)),["stop"]))})]),e.designItemDetail?.clothes?.[e.currentIndex]?.printObject?.prints[0]?.path?((0,n.wg)(),(0,n.iD)("div",{key:0,class:"centent_div",onClick:t[15]||(t[15]=t=>e.openCurrent(2))},[(0,n._)("img",{src:e.designItemDetail?.clothes?.[e.currentIndex]?.printObject?.prints[0]?.path,alt:""},null,8,jl)])):((0,n.wg)(),(0,n.iD)("i",{key:1,class:"fi fi-rr-picture centent",onClick:t[16]||(t[16]=t=>e.openCurrent(2))}))]),(0,n._)("div",Zl,[(0,n._)("div",Wl,[Yl,(0,n._)("div",null,(0,r.zw)(e.$t("DesignDetail.CurrentColor")),1),(0,n._)("i",{class:"fi fi-rr-edit",onClick:t[17]||(t[17]=(0,o.iM)((t=>e.openCurrent(3)),["stop"]))})]),(0,n._)("div",{class:"img_block_item centent",onClick:t[18]||(t[18]=(0,o.iM)((t=>e.openCurrent(3)),["stop"]))},[(0,n._)("div",Xl,[(0,n._)("div",{class:"color_content",style:(0,r.j5)({background:`rgba(${e.designItemDetail?.clothes?.[e.currentIndex].color?.r},${e.designItemDetail?.clothes?.[e.currentIndex].color?.g},${e.designItemDetail?.clothes?.[e.currentIndex].color?.b},${e.designItemDetail?.clothes?.[e.currentIndex].color?.a?e.designItemDetail?.clothes?.[e.currentIndex].color.a:1})`})},null,4),(0,n._)("div",Jl,[(0,n._)("div",$l,(0,r.zw)(e.designItemDetail?.clothes?.[e.currentIndex]?.color?.tcx),1),(0,n._)("div",ql,(0,r.zw)(e.designItemDetail?.clothes?.[e.currentIndex]?.color?.name),1)])])])])],512),[[o.F8,e.designOrder]])],2),(0,n.Wm)(l,{ref:"DesignDetailAlter"},null,512)],512),[[o.F8,1==e.designShowPrview]]),(0,n.wy)((0,n._)("div",ec,[(0,n._)("div",tc,[(0,n.Wm)(c,{ref:"magnifyingGlass",designItemDetailUrl:e.designItemDetailUrl},null,8,["designItemDetailUrl"])])],512),[[o.F8,2==e.designShowPrview]]),(0,n.wy)((0,n._)("div",Ac,[(0,n._)("div",ic,[e.moible?((0,n.wg)(),(0,n.j4)(u,{key:1,ref:"setDesignItemMobile",onSetDesignCoverage:e.setDesignCoverage,onSetSubmit:e.setSubmit},null,8,["onSetDesignCoverage","onSetSubmit"])):((0,n.wg)(),(0,n.j4)(d,{key:0,ref:"setDesignItem",onSetDesignCoverage:e.setDesignCoverage,onSetSubmit:e.setSubmit},null,8,["onSetDesignCoverage","onSetSubmit"]))])],512),[[o.F8,3==e.designShowPrview]])])),_:1},8,["visible"]),(0,n.wy)((0,n._)("div",nc,[(0,n.Wm)(g,{size:"large"})],512),[[o.F8,e.loadingShow]])])}const oc={class:"detail_modal_body_select"},sc={class:"detail_uploadLibrary"},ac={class:"switch_type_list"},lc={class:"detail_Library"},cc={class:"content_search_block"},dc=["placeholder"],uc=(0,n._)("span",{class:"icon iconfont icon-sousuo"},null,-1),hc=[uc],gc={class:"detail_Upload_item"},pc={class:"moodboard_body"},fc={class:"upload_img_body scroll_style"},mc={class:"upload_item"},Bc=["onClick"],wc={class:"upload_file_item_content"},vc={class:"upload_file_item_content"},yc=["src"],Cc={class:"operate_file_block"},bc={class:"select_img_type"},_c=["onClick"],Qc=["onClick"],Uc=(0,n._)("span",{class:"icon iconfont icon-shanchu"},null,-1),Fc=[Uc],xc={class:"upload_file_item upload_component"},Ec={class:"upload_tip_block"},kc=(0,n._)("i",{class:"fi fi-br-upload"},null,-1),Ic=[kc],Dc={class:"detail_Library_item"},Sc={class:"material_content_body scroll_style"},Hc=["alt","onClick"],Lc={key:0,class:"operate_file_block"},Oc={class:"select_img_type"},Mc=["onClick"],Tc={class:"category_list"},Nc=["onClick"],Kc={class:"material_content_list_loding"},Pc=(0,n._)("img",{src:PA,alt:""},null,-1),Rc=[Pc],Vc={class:"no_data_block loading_block"},Gc={class:"detail_color"},zc={class:"right_content_line"},jc={class:"upload_right_header"},Zc=(0,n._)("i",{class:"color_edit fi fi-bs-comments"},null,-1),Wc={class:"color_setting_block"},Yc={class:"right_content_line right_content_line_upload"},Xc={class:"upload_right_header"},Jc=(0,n._)("i",{class:"color_edit fi fi-bs-comments"},null,-1),$c={class:"upload_centetn"},qc={class:"upload_item"},ed={class:"upload_file_item_content"},td={class:"upload_file_item_content"},Ad=["src"],id=(0,n._)("div",{class:"upload_tip_block"},[(0,n._)("i",{class:"fi fi-rr-picture"})],-1),nd={class:"upload_color"},rd=["onClick"],od=["title"],sd={class:"right_content_line"},ad={class:"upload_right_header"},ld=(0,n._)("i",{class:"color_edit fi fi-bs-comments"},null,-1),cd={class:"get_color_block"},dd=(0,n._)("span",{class:"icon iconfont icon-huoquduixiang"},null,-1),ud=(0,n._)("span",{class:"get_color_des"},null,-1),hd=[dd,ud];function gd(e,t,A,i,s,a){const l=(0,n.up)("a-spin"),c=(0,n.up)("a-upload"),d=(0,n.up)("Chrome"),u=(0,n.up)("DesignDetailEnd"),h=(0,n.Q2)("lazy"),g=(0,n.Q2)("observe");return(0,n.wg)(),(0,n.iD)(n.HY,null,[(0,n._)("div",oc,[(0,n.wy)((0,n._)("div",null,[(0,n._)("div",sc,[(0,n._)("div",ac,[(0,n._)("div",{onClick:t[0]||(t[0]=(0,o.iM)((t=>e.open(1)),["stop"])),class:(0,r.C_)(["switch_type_item",[1==e.openClick?"select_swtich":""]])},[(0,n._)("span",null,(0,r.zw)(e.$t("DesignDetailAlter.Upload")),1)],2),(0,n._)("div",{onClick:t[1]||(t[1]=(0,o.iM)((t=>e.open(2)),["stop"])),class:(0,r.C_)(["switch_type_item",[2==e.openClick?"select_swtich":""]])},[(0,n._)("span",null,(0,r.zw)(e.$t("DesignDetailAlter.Library")),1)],2)]),(0,n.wy)((0,n._)("div",lc,[(0,n._)("div",cc,[(0,n.wy)((0,n._)("input",{class:"search_input",placeholder:e.$t("DesignDetailAlter.inputContent1"),"onUpdate:modelValue":t[2]||(t[2]=t=>e.searchPictureName=t),onKeydown:t[3]||(t[3]=(0,o.D2)((t=>e.getLibraryList()),["enter"]))},null,40,dc),[[o.nr,e.searchPictureName]]),(0,n._)("div",{class:"search_icon_block",onClick:t[4]||(t[4]=(0,o.iM)((t=>e.getLibraryList()),["stop"]))},hc)])],512),[[o.F8,2==e.openClick]])]),(0,n.wy)((0,n._)("div",gc,[(0,n._)("div",pc,[(0,n._)("div",fc,[(0,n._)("div",mc,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.uploadList,((t,A)=>((0,n.wg)(),(0,n.iD)("div",{class:"upload_file_item",key:t,onClick:(0,o.iM)((A=>e.selectImgItem(t)),["stop"])},[(0,n.wy)((0,n._)("div",wc,[(0,n.Wm)(l,{indicator:e.indicator,tip:"Uploading..."},null,8,["indicator"])],512),[[o.F8,"uploading"===t?.status]]),(0,n.wy)((0,n._)("div",vc,[(0,n._)("img",{src:t?.url,class:"upload_img"},null,8,yc),(0,n.wy)((0,n._)("div",Cc,[(0,n._)("div",bc,[(0,n._)("div",{class:"select_category",onClick:(0,o.iM)((A=>e.showFileCategory(t)),["stop"])},(0,r.zw)(e.current.type),9,_c)])],512),[[o.F8,"Sketchboard"==e.selectCode]]),(0,n._)("div",{class:"delete_file_block",onClick:(0,o.iM)((t=>e.deleteFile(A)),["stop"])},Fc,8,Qc)],512),[[o.F8,"done"===t?.status]])],8,Bc)))),128)),(0,n.wy)((0,n._)("div",xc,[(0,n.Wm)(c,{action:e.uploadUrl+"/api/element/upload","list-type":"picture-card",data:{...e.upload},headers:{Authorization:e.token},"file-list":e.uploadList,"onUpdate:file-list":t[5]||(t[5]=t=>e.uploadList=t),"before-upload":e.beforeUpload,maxCount:8-e.uploadList.length,accept:".jpg,.png,.jpeg,.bmp",onChange:t[6]||(t[6]=t=>e.upFileUploadChange(t))},{default:(0,n.w5)((()=>[(0,n.wy)((0,n._)("div",Ec,Ic,512),[[o.F8,8!=e.uploadList.length]])])),_:1},8,["action","data","headers","file-list","before-upload","maxCount"])],512),[[o.F8,8!=e.uploadList.length]])])])])],512),[[o.F8,1==e.openClick]]),(0,n.wy)((0,n._)("div",Dc,[(0,n._)("div",Sc,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.clothesList,(t=>((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)(["content_img_item",{active:"Moodboard"!==e.selectCode}]),key:t.id},[(0,n._)("div",{class:(0,r.C_)(["content_img_item_block",{active:t?.checked}])},[(0,n.wy)(((0,n.wg)(),(0,n.iD)("img",{class:(0,r.C_)(["Printboard"==e.selectCode?"print_content_img":"content_img"]),key:t.url,alt:t.name,onClick:(0,o.iM)((A=>e.selectImgItem(t)),["stop"])},null,10,Hc)),[[h,t.url]]),"Sketchboard"==e.selectCode?((0,n.wg)(),(0,n.iD)("div",Lc,[(0,n._)("div",Oc,[(0,n._)("div",{class:"select_category",onClick:(0,o.iM)((A=>e.showFileCategory(t)),["stop"])},[(0,n.Uk)((0,r.zw)(t.level2Type)+" ",1),(0,n._)("div",{class:(0,r.C_)(["icon","iconfont","icon-xiala",t.categoryShow?"icon_rotate":""])},null,2)],8,Mc),(0,n.wy)((0,n._)("div",Tc,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.disignTypeList,((A,i)=>((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)(["category_item",t.level2Type==A.value?"select_category_item":""]),key:i,onClick:(0,o.iM)((i=>e.selectFileCategory(t,A)),["stop"])},(0,r.zw)(A.value),11,Nc)))),128))],512),[[o.F8,t.categoryShow]])])])):(0,n.kq)("",!0)],2)],2)))),128)),(0,n.wy)(((0,n.wg)(),(0,n.iD)("div",Kc,Rc)),[[o.F8,e.total>e.clothesList.length],[g]])]),(0,n.wy)((0,n._)("div",Vc,[(0,n.Wm)(l,{size:"large"})],512),[[o.F8,e.isShowLoading]])],512),[[o.F8,2==e.openClick]])],512),[[o.F8,(1==e.type_||2==e.type_)&&1==e.select]]),(0,n.wy)((0,n._)("div",null,[(0,n._)("div",Gc,[(0,n._)("div",zc,[(0,n._)("div",jc,[Zc,(0,n._)("span",null,(0,r.zw)(e.$t("DesignDetailAlter.Palette")),1)]),(0,n._)("div",Wc,[(0,n.Wm)(d,{class:"chrome_color",modelValue:e.selectColor,"onUpdate:modelValue":t[7]||(t[7]=t=>e.selectColor=t)},null,8,["modelValue"])])]),(0,n._)("div",Yc,[(0,n._)("div",Xc,[Jc,(0,n._)("span",null,(0,r.zw)(e.$t("DesignDetailAlter.UploadImage")),1)]),(0,n._)("div",$c,[(0,n._)("div",qc,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.colorFileList,(A=>((0,n.wg)(),(0,n.iD)("div",{class:"upload_file_item",key:A},[(0,n.wy)((0,n._)("div",ed,[(0,n.Wm)(l,{indicator:e.indicator,tip:"Uploading..."},null,8,["indicator"])],512),[[o.F8,"done"!==A.status]]),(0,n.wy)((0,n._)("div",td,[(0,n._)("img",{src:A?.imgUrl,class:"upload_img",ref_for:!0,ref:"colorImage"},null,8,Ad),(0,n._)("div",{class:"delete_file_block",onClick:t[8]||(t[8]=t=>e.colorDeleteFile(e.index))},(0,r.zw)(e.$t("DesignDetailAlter.Delete")),1)],512),[[o.F8,"done"===A.status]])])))),128)),(0,n.wy)((0,n.Wm)(c,{"list-type":"picture-card",customRequest:function(){},onChange:e.fileUploadChange,"before-upload":e.beforeUpload,accept:".jpg,.png,.jpeg,.bmp"},{default:(0,n.w5)((()=>[id])),_:1},8,["customRequest","onChange","before-upload"]),[[o.F8,e.colorFileList.length<1]])]),(0,n._)("div",nd,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.selectColorList,((t,A)=>((0,n.wg)(),(0,n.iD)("div",{key:t,onClick:A=>e.setUplpadColor(t),class:"upload_color_item"},[(0,n._)("div",{class:"upload_color_item_bg",style:(0,r.j5)({"background-color":`rgba(${t.rgba.r},${t.rgba.g},${t.rgba.b},${t.rgba.a})`})},null,4),(0,n._)("img",{src:"#",title:e.pantongNameList[A]},null,8,od)],8,rd)))),128))])])]),(0,n._)("div",sd,[(0,n._)("div",ad,[ld,(0,n._)("span",null,(0,r.zw)(e.$t("DesignDetailAlter.ColorCode")),1)]),(0,n._)("div",cd,[(0,n.wy)((0,n._)("input",{class:"get_color_input",placeholder:"tcx value (e.g.: 19-4052)","onUpdate:modelValue":t[9]||(t[9]=t=>e.tcxColor=t),onKeydown:t[10]||(t[10]=(0,o.D2)((t=>e.getTcxColor()),["enter"]))},null,544),[[o.nr,e.tcxColor]]),(0,n._)("div",{class:"get_color_button",onClick:t[11]||(t[11]=t=>e.getTcxColor())},hd)])])])],512),[[o.F8,3==e.type_&&1==e.select]])]),(0,n.Wm)(u,{ref:"DesignDetailEnd"},null,512)],64)}const pd=e=>((0,n.dD)("data-v-3bbb8624"),e=e(),(0,n.Cn)(),e),fd={class:"detail_modal_body_result"},md={class:"result_apparel_print"},Bd={class:"upload_title result_apparel"},wd=pd((()=>(0,n._)("i",{class:"color_edit fi fi-bs-comments"},null,-1))),vd={class:"result_print"},yd={class:"upload_title"},Cd=pd((()=>(0,n._)("i",{class:"color_edit fi fi-bs-comments"},null,-1))),bd={class:"print_left"},_d=["src"],Qd={key:1,src:"@/assets/images/homePage/null_img.png"},Ud=pd((()=>(0,n._)("span",{class:"icon iconfont icon-shanchu"},null,-1))),Fd=[Ud],xd={class:"upload_title"},Ed=pd((()=>(0,n._)("i",{class:"color_edit fi fi-bs-comments"},null,-1))),kd={class:"print_right"},Id={class:"habit_Overal_Single"},Dd={class:"result_apparel_print_img"},Sd=["src","title"],Hd=["title"],Ld=["src"],Od={class:"result_color upload_title"},Md=pd((()=>(0,n._)("i",{class:"color_edit fi fi-bs-comments"},null,-1))),Td={class:"modal_img"},Nd=["title","onClick","onDblclick"],Kd={class:"color_content_body"},Pd={class:"color_des"},Rd={class:"color_des"},Vd={class:"mark_loading"};function Gd(e,t,A,i,s,a){const l=(0,n.up)("a-switch"),c=(0,n.up)("DesignPrintOperation"),d=(0,n.up)("DesignPrintOperationMobile"),u=(0,n.up)("a-spin");return(0,n.wg)(),(0,n.iD)(n.HY,null,[(0,n._)("div",fd,[(0,n.wy)((0,n._)("div",md,[(0,n.wy)((0,n._)("div",Bd,[wd,(0,n._)("span",null,(0,r.zw)(e.$t("DesignDetailEnd.NewApparel")),1)],512),[[o.F8,1==e.type_]]),(0,n.wy)((0,n._)("div",vd,[(0,n._)("div",null,[(0,n._)("div",yd,[Cd,(0,n._)("span",null,(0,r.zw)(e.$t("DesignDetailEnd.NewPrint")),1)]),(0,n._)("div",bd,[e.current?.printObject?.prints?.[0]?.path?((0,n.wg)(),(0,n.iD)("img",{key:0,src:e.current?.printObject?.prints?.[0]?.path},null,8,_d)):((0,n.wg)(),(0,n.iD)("div",Qd)),(0,n.wy)((0,n._)("div",{class:"delete_file_block",onClick:t[0]||(t[0]=(...t)=>e.deleteFile&&e.deleteFile(...t))},Fd,512),[[o.F8,e.current?.printObject?.prints?.[0]?.path]])])]),(0,n._)("div",null,[(0,n._)("div",xd,[Ed,(0,n._)("span",null,(0,r.zw)(e.$t("DesignDetailEnd.Placement")),1)]),(0,n._)("div",kd,[(0,n._)("div",Id,[(0,n._)("div",{class:(0,r.C_)(["habit_Overal_Single_text",{active:!e.overallSingle}])},(0,r.zw)(e.$t("DesignDetailEnd.Overall")),3),(0,n.Wm)(l,{onClick:e.setOveralSingle,checked:e.overallSingle,"onUpdate:checked":t[1]||(t[1]=t=>e.overallSingle=t)},null,8,["onClick","checked"]),(0,n._)("div",{class:(0,r.C_)(["habit_Overal_Single_text",{active:e.overallSingle}])},(0,r.zw)(e.$t("DesignDetailEnd.Single")),3)])])])],512),[[o.F8,2==e.type_]]),(0,n._)("div",Dd,[(0,n.wy)((0,n._)("img",{class:"result_appare_img",src:e.sketchImg?.id_?e.sketchImg?.path:e.current?.path,title:e.current?.type},null,8,Sd),[[o.F8,1==e.type_]]),(0,n.wy)((0,n._)("div",{class:"result_print_img",onClick:t[2]||(t[2]=(...t)=>e.setPrint&&e.setPrint(...t)),title:e.current?.type},[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.current.layersObject,(e=>((0,n.wg)(),(0,n.iD)("img",{src:e.imageUrl,alt:""},null,8,Ld)))),256))],8,Hd),[[o.F8,2==e.type_]])])],512),[[o.F8,1==e.type_||2==e.type_]]),(0,n.wy)((0,n._)("div",null,[(0,n._)("div",Od,[Md,(0,n._)("span",null,(0,r.zw)(e.$t("DesignDetailEnd.NewColor")),1)]),(0,n._)("div",Td,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.colorList,((t,A)=>((0,n.wg)(),(0,n.iD)("div",{class:"modal_img_item",key:t},[(0,n._)("div",{title:t?.name?t?.name:"",onClick:i=>e.selectColorItem(A,t),onDblclick:A=>e.setSelectColorItem(t),class:(0,r.C_)(["upload_color",e.selectIndex===A?"select_upload_color":""]),style:(0,r.j5)({background:`rgba(${t?.r},${t?.g},${t?.b},${t?.a})`})},[(0,n._)("div",{class:"color_content",style:(0,r.j5)({"background-color":`rgba(${t.rgba?.r},${t.rgba?.g},${t.rgba?.b},${t.rgba?.a})`})},null,4),(0,n._)("div",Kd,[(0,n._)("div",Pd,(0,r.zw)(t.tcx),1),(0,n._)("div",Rd,(0,r.zw)(t.name),1)])],46,Nd)])))),128))])],512),[[o.F8,3==e.type_]]),(0,n.wy)((0,n._)("div",{onClick:t[3]||(t[3]=(0,o.iM)(((...t)=>e.setPreview&&e.setPreview(...t)),["stop"])),class:"subitOkPreviewBtn"},(0,r.zw)(e.$t("DesignDetailEnd.preview")),513),[[o.F8,1==e.type_||3==e.type_]]),2==e.type_&&null!=e.current?.printObject?.prints?.[0]?.path?((0,n.wg)(),(0,n.iD)("div",{key:0,onClick:t[4]||(t[4]=(0,o.iM)(((...t)=>e.setPrint&&e.setPrint(...t)),["stop"])),class:"subitOkPreviewBtn"},(0,r.zw)(e.$t("DesignDetailEnd.Layout")),1)):2==e.type_&&null==e.current?.printObject?.prints?.[0]?.path?((0,n.wg)(),(0,n.iD)("div",{key:1,onClick:t[5]||(t[5]=(0,o.iM)(((...t)=>e.setPreview&&e.setPreview(...t)),["stop"])),class:"subitOkPreviewBtn"},(0,r.zw)(e.$t("DesignDetailEnd.preview")),1)):(0,n.kq)("",!0),(0,n.Wm)(c,{ref:"DesignPrintOperation"},null,512),(0,n.Wm)(d,{ref:"DesignPrintOperationMobile"},null,512)]),(0,n.wy)((0,n._)("div",Vd,[(0,n.Wm)(u,{size:"large"})],512),[[o.F8,e.loadingShow]])],64)}const zd={class:"designOpenrtion_content"},jd={class:"design_title_text"},Zd=(0,n._)("i",{class:"fi fi-rr-cross-small"},null,-1),Wd=[Zd],Yd={class:"designOpenrtion_open"},Xd={class:"print_right"},Jd={class:"habit_Overal_Single"},$d={class:"habit_System_Designer"},qd={class:"print_input"},eu=["placeholder"],tu={class:"designOpenrtion_nav"},Au=["src","onClick"],iu={class:"designOpenrtion_overall"},nu=["src"],ru={class:"designOpenrtion_centent",id:"designOpenrtionCentent"},ou={class:"designOpenrtion_imgMask"},su={class:"designOpenrtion_print"},au=["onMousedown","onClick"],lu=["src"],cu=["src"],du=["src"],uu={class:"designOpenrtion_btn"},hu=["onMousedown"],gu={class:"designOpenrtion_rotote"},pu=["onMousedown"],fu=(0,n._)("i",{class:"fi fi-rr-arrows animtion1"},null,-1),mu=(0,n._)("i",{class:"fi fi-rr-arrows animtion2"},null,-1),Bu=[fu,mu],wu={class:"mark_loading"};function vu(e,t,A,i,s,a){const l=(0,n.up)("a-switch"),c=(0,n.up)("a-slider"),d=(0,n.up)("a-spin"),u=(0,n.up)("a-modal"),h=(0,n.Q2)("rotote");return(0,n.wg)(),(0,n.iD)("div",null,[(0,n.Wm)(u,{class:"designOpenrtion_modal",visible:e.designOpenrtion,"onUpdate:visible":t[12]||(t[12]=t=>e.designOpenrtion=t),footer:null,width:"65%",maskClosable:!1,centered:!0,closable:!1,mask:!0},{default:(0,n.w5)((()=>[(0,n._)("div",zd,[(0,n._)("div",jd,[(0,n._)("div",null,(0,r.zw)(e.$t("DesignPrintOperation.Placement")),1)]),(0,n._)("div",{class:"design_closeIcon",onClick:t[0]||(t[0]=(0,o.iM)((t=>e.closeModal()),["stop"]))},Wd),(0,n._)("div",Yd,[(0,n._)("div",Xd,[(0,n._)("div",Jd,[(0,n._)("div",{class:(0,r.C_)(["habit_Overal_Single_text",{active:!e.overallSingle}])},(0,r.zw)(e.$t("DesignPrintOperation.Overall")),3),(0,n.Wm)(l,{checked:e.overallSingle,"onUpdate:checked":t[1]||(t[1]=t=>e.overallSingle=t),onChange:e.setOveralSingle},null,8,["checked","onChange"]),(0,n._)("div",{class:(0,r.C_)(["habit_Overal_Single_text",{active:e.overallSingle}])},(0,r.zw)(e.$t("DesignPrintOperation.Single")),3)]),(0,n.wy)((0,n._)("div",$d,[(0,n.Wm)(c,{id:"system_silder",value:e.systemDesignerPercentage,"onUpdate:value":t[2]||(t[2]=t=>e.systemDesignerPercentage=t),onAfterChange:e.systemDesigner,"tip-formatter":e.formatter},null,8,["value","onAfterChange","tip-formatter"])],512),[[o.F8,!e.overallSingle]]),(0,n.wy)((0,n._)("div",{onClick:t[3]||(t[3]=(...t)=>e.random&&e.random(...t)),class:"button_second"},(0,r.zw)(e.$t("DesignPrintOperation.Random")),513),[[o.F8,e.overallSingle]]),(0,n.wy)((0,n._)("div",qd,[(0,n.wy)((0,n._)("input",{class:"search_input",placeholder:e.$t("DesignPrintOperation.inputContent"),type:"Number","onUpdate:modelValue":t[4]||(t[4]=t=>e.printAmount=t),onInput:t[5]||(t[5]=(...t)=>e.setprintAmount&&e.setprintAmount(...t))},null,40,eu),[[o.nr,e.printAmount]]),(0,n._)("i",{class:"fi fi-rr-trash",onClick:t[6]||(t[6]=(...t)=>e.deletePrint&&e.deletePrint(...t))})],512),[[o.F8,e.overallSingle]]),(0,n._)("div",tu,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.designOpenrtionList,((t,A)=>(0,n.wy)(((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)(["designOpenrtion_single",{active:!!e.printStyleList[A]?.designOpenrtionBtn&&e.printStyleList[A]?.designOpenrtionBtn}]),key:t},[(0,n._)("img",{src:t.path,onClick:i=>e.setpitch(t,A)},null,8,Au)],2)),[[o.F8,e.overallSingle]]))),128)),(0,n.wy)((0,n._)("div",iu,[(0,n._)("img",{src:e.designOpenrtionList[0].path},null,8,nu)],512),[[o.F8,!e.overallSingle]])]),(0,n._)("div",{class:"subitOkPreviewBtn",onClick:t[7]||(t[7]=(0,o.iM)(((...t)=>e.setPreview&&e.setPreview(...t)),["stop"]))},(0,r.zw)(e.$t("DesignPrintOperation.preview")),1)])]),(0,n._)("div",ru,[(0,n._)("div",ou,[(0,n.wy)((0,n._)("div",su,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.designOpenrtionList,((t,A)=>((0,n.wg)(),(0,n.iD)("div",{key:t,style:(0,r.j5)([e.printStyleList?.[A]?.style]),onMousedown:(0,o.iM)((t=>e.itemMoveMousedown(A,t)),["stop"]),class:"modal_imgItem",onClick:i=>e.setpitch(t,A),ref_for:!0,ref:"content"},[(0,n._)("img",{crossOrigin:"anonymous",src:t?.path,style:(0,r.j5)({transform:`rotateZ(${e.printStyleList[A]?.transform?.rotateZ}deg)`}),class:"designOpenrtion_imgItme",draggable:"false"},null,12,lu)],44,au)))),128))],512),[[o.F8,e.overallSingle]]),(0,n._)("img",{src:e.current?.path,alt:"",class:"designOpenrtion_sketch"},null,8,cu),(0,n.wy)((0,n._)("img",{src:e.current?.layersObject?.[1]?.maskUrl,alt:"",class:"designOpenrtion_sketch_mask"},null,8,du),[[o.F8,e.overallSingle]]),(0,n._)("div",uu,[e.overallSingle?((0,n.wg)(!0),(0,n.iD)(n.HY,{key:0},(0,n.Ko)(e.printStyleList,((A,i)=>((0,n.wg)(),(0,n.iD)("ul",{key:A,class:(0,r.C_)([{active:!!A?.designOpenrtionBtn&&A?.designOpenrtionBtn},"designOpenrtion_Mousingle"]),style:(0,r.j5)(A.style),onMousedown:(0,o.iM)((t=>e.itemMoveMousedown(i,t)),["stop"])},[(0,n._)("li",{class:"designOpenrtion_btn_top",onMousedown:t[8]||(t[8]=(0,o.iM)((t=>e.itemSizeMousedown("top",t)),["stop"]))},null,32),(0,n._)("li",{class:"designOpenrtion_btn_bottom",onMousedown:t[9]||(t[9]=(0,o.iM)((t=>e.itemSizeMousedown("bottom",t)),["stop"]))},null,32),(0,n._)("li",{class:"designOpenrtion_btn_left",onMousedown:t[10]||(t[10]=(0,o.iM)((t=>e.itemSizeMousedown("left",t)),["stop"]))},null,32),(0,n._)("li",{class:"designOpenrtion_btn_right",onMousedown:t[11]||(t[11]=(0,o.iM)((t=>e.itemSizeMousedown("right",t)),["stop"]))},null,32),(0,n.wy)((0,n._)("li",gu,null,512),[[h,[i,A.transform],void 0,{stop:!0}]])],46,hu)))),128)):(0,n.kq)("",!0),(0,n.wy)((0,n._)("div",null,null,512),[[o.F8,!e.overallSingle]]),e.overallSingle?(0,n.kq)("",!0):((0,n.wg)(!0),(0,n.iD)(n.HY,{key:1},(0,n.Ko)(e.printStyleList,((t,A)=>((0,n.wg)(),(0,n.iD)("ul",{key:t,class:(0,r.C_)([{active:!!t?.designOpenrtionBtn&&t?.designOpenrtionBtn},"designOpenrtion_Mouoverall"]),style:(0,r.j5)("left:"+t.style.left+";top:"+t.style.top),onMousedown:(0,o.iM)((t=>e.itemMoveMousedown(A,t)),["stop"])},Bu,46,pu)))),128))])])])]),(0,n.wy)((0,n._)("div",wu,[(0,n.Wm)(d,{size:"large"})],512),[[o.F8,e.loadingShow]])])),_:1},8,["visible"])])}var yu=(0,n.aZ)({setup(e){let t=(0,Y.iH)(!1),A=(0,Y.iH)([]),i=(0,n.f3)("current"),r=(0,n.f3)("setRevocation"),o=(0,Y.iH)(!1),s=(0,Y.iH)(0),a=(0,Y.iH)(1),l=(0,Y.iH)(2),c=(0,Y.iH)([{centers:{left:0,top:0},style:{left:"0px",top:"0px",right:"auto",bottom:"auto",width:"auto",height:"auto",zIndex:1},transform:{scale:1,rotateZ:0},designOpenrtionBtn:!1}]),d=(0,Y.iH)(""),u=(0,Y.iH)(),h=(0,Y.iH)(0),g=(0,Y.iH)({width:"",height:""}),p=(0,Y.iH)({width:"",height:""}),f=(0,Y.iH)(!1),{t:m}=(0,oA.QT)();return{designOpenrtion:t,designOpenrtionList:A,overallSingle:o,systemDesignerPercentage:s,current:i,printAmount:a,printZIndex:l,printStyleList:c,direction:d,imgDom:u,imgDomIndex:h,print:g,sketch:p,loadingShow:f,setRevocation:r,t:m}},data(){return{store:(0,Ne.oR)()}},directives:{rotote:{mounted(e,t){e.addEventListener("mousedown",(A=>{let i=document.getElementsByClassName("designOpenrtion_modal")[0].getElementsByClassName("modal_imgItem")[t.instance.imgDomIndex],n=!0,r=0,o=1;o=t.instance.printStyleList[t.instance.imgDomIndex].transform.scale,r=t.instance.printStyleList[t.instance.imgDomIndex].transform.rotateZ,e.style.transform="rotateZ("+r+"deg)",A.stopPropagation(),n=!0;var s=e.getBoundingClientRect();let a=s.x+s.width/2,l=s.y+s.height/2,c=t=>{if(n){let A=a,n=l,o=t.clientX-A,s=n-t.clientY;r=Math.atan2(o,s)*(180/Math.PI),i.firstElementChild.style.transform="rotateZ("+r+"deg)",e.style.transform="rotateZ("+r+"deg)"}};document.addEventListener("mousemove",c);let d=()=>{t.instance.printStyleList[t.instance.imgDomIndex].transform.rotateZ=r,n=!1,document.removeEventListener("mouseup",d),document.removeEventListener("mousemove",c)};document.addEventListener("mouseup",d)}))}}},methods:{init(){let e=this.$parent;this.designOpenrtion=!0,this.clearModal(),this.designOpenrtionList=[],this.designOpenrtionList.push(...this.current.printObject.prints),this.overallSingle=e.overallSingle,this.systemDesignerPercentage=e.systemDesignerPercentage;let t=new Image;t.src=this.current.path,t.onload=()=>{this.sketch.width=t.width/10+"rem",this.sketch.height=t.height/10+"rem"};let A=new Image;A.src=this.current.printObject.prints[0].path,A.onload=()=>{let e=document.getElementsByClassName("designOpenrtion_modal")[0]?.getElementsByClassName("designOpenrtion_sketch")[0];this.sketch.width.replace(/rem/g,""),e.offsetWidth;this.print.width=A.width+"px",this.print.height=A.height+"px",this.printStyleList[0].style.width=A.width+"px",this.printStyleList[0].style.height=A.height+"px",this.printStyleList[0].designOpenrtionBtn=!1,(0,n.Y3)().then((()=>{this.designOpenrtionList[0].scale?this.designOpenrtionList.forEach(((e,t)=>{this.setTemplate(e,t),this.printAmount=this.printStyleList.length,this.overallSingle||(this.printAmount=1,this.setprintAmount()),this.current.printObject.ifSingle!=this.overallSingle&&this.refetchTemplate(0)})):this.refetchTemplate(0)}))}},systemDesigner(e){let t=this.$parent;t.systemDesignerPercentage=e},formatter(e){return 3*e+"%"},setOveralSingle(){let e=this.$parent;e.overallSingle=this.overallSingle,this.overallSingle?this.random():(this.printAmount=1,this.setprintAmount())},setpitch(e,t){this.printStyleList.forEach((e=>{e.designOpenrtionBtn=!1})),this.imgDomIndex=t,this.printStyleList[t].designOpenrtionBtn=!0,this.printStyleList[t].style.zIndex=this.printZIndex++},itemMoveMousedown(e,t){this.imgDomIndex=e,this.printStyleList.forEach((e=>{e.designOpenrtionBtn=!1})),this.overallSingle?this.imgDom=document.getElementsByClassName("designOpenrtion_modal")[0].getElementsByClassName("modal_imgItem")[this.imgDomIndex]:this.imgDom=document.getElementsByClassName("designOpenrtion_modal")[0].getElementsByClassName("designOpenrtion_Mouoverall")[0];let A=Number(this.imgDom.children[0].style.transform?.split("scale(")[1]?.split(")")[0]),i=Number(this.imgDom.children[0].style.transform?.split("rotateZ(")[1]?.split("deg")[0]);this.printStyleList[e].designOpenrtionBtn=!0,this.printStyleList[e].style.zIndex=this.printZIndex++,this.printStyleList[e].transform={scale:A,rotateZ:i};let n=this.imgDom.getBoundingClientRect(),r=Number(this.printStyleList[e].style.left.replace(/px/g,"")),o=Number(this.printStyleList[e].style.top.replace(/px/g,""));this.printStyleList[e].centers.left=n.x+t.offsetX-r,this.printStyleList[e].centers.top=n.y+t.offsetY-o,document.addEventListener("mouseup",this.mouseup),document.addEventListener("mousemove",this.moveMousemove)},itemSizeMousedown(e,t){this.direction=e,this.imgDom=document.getElementsByClassName("designOpenrtion_modal")[0].getElementsByClassName("modal_imgItem")[this.imgDomIndex];let A=Number(this.imgDom.firstChild.style.transform?.split("scale(")[1]?.split(")")[0]),i=Number(this.imgDom.firstChild.style.transform?.split("rotateZ(")[1]?.split("deg")[0]);this.printStyleList[this.imgDomIndex].designOpenrtionBtn=!0,this.printStyleList[this.imgDomIndex].transform={scale:A,rotateZ:i};let n=this.imgDom.getBoundingClientRect(),r=document.getElementsByClassName("designOpenrtion_modal")[0].getElementsByClassName("designOpenrtion_btn_top")[0].offsetWidth/2;"right"==this.direction||"bottom"==this.direction?(this.printStyleList[this.imgDomIndex].centers.left=n.x+t.offsetX-r,this.printStyleList[this.imgDomIndex].centers.top=n.y+t.offsetY-r):(this.printStyleList[this.imgDomIndex].centers.left=n.x+t.offsetX+n.width-r,this.printStyleList[this.imgDomIndex].centers.top=n.y+t.offsetY+n.height-r),document.addEventListener("mouseup",this.sizeMouseup),document.addEventListener("mousemove",this.sizeMousemove)},moveMousemove(e){let t=this.imgDom.getBoundingClientRect(),A=document.getElementsByClassName("designOpenrtion_modal")[0].getElementsByClassName("designOpenrtion_imgMask")[0];A=A.getBoundingClientRect();let i=e.x-this.printStyleList[this.imgDomIndex].centers.left+"px",n=e.y-this.printStyleList[this.imgDomIndex].centers.top+"px";this.printStyleList[this.imgDomIndex].style.left=i,this.printStyleList[this.imgDomIndex].style.top=n,this.overallSingle||(i.replace(/px/g,"")>=A.width-t.width&&(this.printStyleList[this.imgDomIndex].style.left=A.width-t.width+"px"),i.replace(/px/g,"")<=0&&(this.printStyleList[this.imgDomIndex].style.left="0px"),n.replace(/px/g,"")>=A.height-t.height&&(this.printStyleList[this.imgDomIndex].style.top=A.height-t.height+"px"),n.replace(/px/g,"")<=0&&(this.printStyleList[this.imgDomIndex].style.top="0px"))},sizeMousemove(e){let t,A,i=this.imgDom.getBoundingClientRect(),n=this.imgDom.parentNode,r=i.width,o=i.height,s=r/o,a=o/r;"right"==this.direction?(t=e.x-this.printStyleList[this.imgDomIndex].centers.left,A=(e.x-this.printStyleList[this.imgDomIndex].centers.left)*s,r=t+"px",o=t*a+"px"):"top"==this.direction?(this.printStyleList[this.imgDomIndex].style.top="auto",this.printStyleList[this.imgDomIndex].style.bottom=n.offsetHeight-i.height-this.imgDom.offsetTop+"px",t=(e.x-this.printStyleList[this.imgDomIndex].centers.left)*s,A=this.printStyleList[this.imgDomIndex].centers.top-e.y,o=A+"px",r=A*s+"px"):"bottom"==this.direction?(A=e.y-this.printStyleList[this.imgDomIndex].centers.top,o=A+"px",r=A*s+"px"):"left"==this.direction&&(this.printStyleList[this.imgDomIndex].style.left="auto",this.printStyleList[this.imgDomIndex].style.right=n.offsetWidth-i.width-this.imgDom.offsetLeft+"px",t=this.printStyleList[this.imgDomIndex].centers.left-e.x,r=t+"px",o=t*a+"px"),this.printStyleList[this.imgDomIndex].style.width=r,this.printStyleList[this.imgDomIndex].style.height=o},sizeMouseup(e){this.printStyleList[this.imgDomIndex].style={right:"auto",left:this.imgDom.offsetLeft+"px",bottom:"auto",top:this.imgDom.offsetTop+"px",height:this.imgDom.offsetHeight+"px",width:this.imgDom.offsetWidth+"px",zIndex:this.printZIndex},document.removeEventListener("mouseup",this.sizeMouseup),document.removeEventListener("mousemove",this.sizeMousemove)},mouseup(e){document.removeEventListener("mouseup",this.mouseup),document.removeEventListener("mousemove",this.moveMousemove)},setprintAmount(){if(this.printAmount<1)return void(this.printAmount=1);if(this.printAmount>20)return void(this.printAmount=20);if(this.printAmount>this.printStyleList.length){let e=this.printAmount-this.printStyleList.length;for(let t=0;t<e;t++)this.printStyleList.push(JSON.parse(JSON.stringify(this.printStyleList[this.printStyleList.length-1]))),this.printStyleList[this.printStyleList.length-1].transform.rotateZ=0,this.refetchTemplate(this.printStyleList.length-1),this.designOpenrtionList.push(this.current.printObject.prints[this.current.printObject.prints.length-1])}else{let e=this.printStyleList.length-this.printAmount;this.designOpenrtionList.splice(this.printStyleList.length-e,e),this.printStyleList.splice(this.printStyleList.length-e,e)}this.printStyleList.forEach((e=>{e.designOpenrtionBtn=!1})),this.printStyleList[this.printStyleList.length-1].designOpenrtionBtn=!0,this.imgDomIndex=this.printStyleList.length-1},deletePrint(){this.designOpenrtionList.length<=1||(this.designOpenrtionList.splice(this.imgDomIndex,1),this.printStyleList.splice(this.imgDomIndex,1),this.printAmount=this.designOpenrtionList.length)},random(){this.designOpenrtionList.forEach(((e,t)=>{this.refetchTemplate(t)}))},refetchTemplate(e){Math.trunc(360*Math.random()),Math.trunc(360*Math.random());let t,A,i=document.getElementsByClassName("designOpenrtion_modal")[0]?.getElementsByClassName("designOpenrtion_sketch")[0];this.print.width>this.print.height?(t=Math.trunc(Math.random()*(i?.width-i?.width/2))+i?.width/3,A=t/this.print.width.replace(/px/g,"")):(t=Math.trunc(Math.random()*(i?.height-i?.height/2))+i?.height/3,A=t/this.print.height.replace(/px/g,""));let n=i?.width-this.print.width.replace(/px/g,"")*A,r=i?.height-this.print.height.replace(/px/g,"")*A;this.printStyleList[e]={centers:{left:0,top:0},style:{left:Math.trunc(Math.random()*n)+1+"px",top:Math.trunc(Math.random()*r)+1+"px",right:"auto",bottom:"auto",width:this.print.width.replace(/px/g,"")*A+"px",height:this.print.height.replace(/px/g,"")*A+"px",zIndex:this.printZIndex++},transform:{rotateZ:0!=this.printStyleList[e].transform.rotateZ?this.printStyleList[e].transform.rotateZ:0},designOpenrtionBtn:!1}},setTemplate(e,t){this.designOpenrtionList;let A,i=document.getElementsByClassName("designOpenrtion_modal")[0]?.getElementsByClassName("designOpenrtion_sketch")[0],n=10*this.sketch.width.replace(/rem/g,"")/i.offsetWidth;A=this.print.width.replace(/px/g,"")*n/this.print.width.replace(/px/g,"");let r=1,o=e.location[0]/n+"px",s=e.location[1]/n+"px";i.offsetWidth<e.location[0]/n&&(o=i.offsetWidth+"px"),i.offsetHeight<e.location[1]/n&&(s=i.offsetHeight+"px"),this.printStyleList[t]={centers:{left:0,top:0},style:{left:o,top:s,right:"auto",bottom:"auto",width:this.print.width.replace(/px/g,"")/n*e.scale+"px",height:this.print.height.replace(/px/g,"")/n*e.scale+"px",zIndex:r++},transform:{rotateZ:e.angle},designOpenrtionBtn:!1}},computeZindex(){let e=JSON.parse(JSON.stringify(this.printStyleList));e.sort(((e,t)=>{var A=e["style"].zIndex,i=t["style"].zIndex;return A-i}));let t=1;return e.forEach((e=>{e.style.zIndex=t++})),this.computeSize(e)},computeSize(e){let t,A,i=document.getElementsByClassName("designOpenrtion_sketch")[0],n=10*this.sketch.width.replace(/rem/g,"")/i.offsetWidth,r=[];return e.forEach(((i,o)=>{this.overallSingle?(t=e[o].style.width.replace(/px/g,"")*n/this.print.width.replace(/px/g,""),A=[e[o].style.left.replace(/px/g,"")*n,e[o].style.top.replace(/px/g,"")*n]):(t=3*this.systemDesignerPercentage/100,A=[e[o].style.left.replace(/px/g,"")*n,e[o].style.top.replace(/px/g,"")*n]);let s={angle:this.overallSingle?e[o].transform.rotateZ:0,location:A,priority:e[o].style.zIndex,scale:t,path:this.designOpenrtionList[o].path,minIOPath:this.designOpenrtionList[o].minIOPath};r.push(s)})),r},setPreview(){let e,t=JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail));this.printStyleList[0].style.width.replace(/px/g,""),this.print.width.replace(/px/g,"");t.clothes.forEach(((t,A)=>{t.id==this.current.id&&(e=A)}));t.clothes.map((e=>e.type));let A=this.store.state.DesignDetailModule.designPreviewData;A.designSingleItemDTOList[e].printObject={ifSingle:this.overallSingle,prints:this.computeZindex()},A.timeZone=Intl.DateTimeFormat().resolvedOptions().timeZone,this.loadingShow=!0,Te.V.axiosPost(Te.V.httpUrls.designSingle,A).then((i=>{t.currentFullBodyView=i.currentFullBodyView,t.clothes[e].printObject.ifSingle=this.overallSingle,t.clothes[e].layersObject=i.clothes[e].layersObject,t.clothes[e].printObject.prints=this.computeZindex(),t.ifSubmit=!0,t.clothes.forEach(((e,t)=>{let A;-1==e.layersObject[0].imageCategory.indexOf("back")&&(A=e.layersObject[0],e.layersObject[0]=e.layersObject[1],e.layersObject[1]=A),e.layersObject[0].id=this.store.state.DesignDetailModule.designItemDetail.clothes[t].layersObject[0].id,e.layersObject[1].id=this.store.state.DesignDetailModule.designItemDetail.clothes[t].layersObject[1].id})),this.store.commit("setDesignItemDetail",t),this.store.commit("setDesignPreviewData",A),this.setRevocation(t,A),this.loadingShow=!1,this.designOpenrtion=!1})).catch((e=>{this.loadingShow=!1}))},clearModal(){this.printAmount=1,this.designOpenrtion=!0,this.printZIndex=2,this.imgDomIndex=0,this.designOpenrtionList=[],this.printStyleList.splice(1,this.printStyleList.length-1),this.printStyleList[0]={centers:{left:0,top:0},style:{left:"0px",top:"0px",right:"auto",bottom:"auto",width:"auto",height:"auto",zIndex:1},transform:{scale:1,rotateZ:0},designOpenrtionBtn:!1}},closeModal(){JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail));let e=this;ua.Z.confirm({title:this.t("DesignPrintOperation.jsContent1"),icon:(0,n.Wm)(da.Z),okText:"Yes",cancelText:"No",mask:!1,centered:!0,onOk(){e.designOpenrtion=!1}})}}});const Cu=(0,it.Z)(yu,[["render",vu]]);var bu=Cu;const _u={class:"designOpenrtion_content"},Qu={class:"design_title_text"},Uu=(0,n._)("i",{class:"fi fi-rr-cross-small"},null,-1),Fu=[Uu],xu={class:"designOpenrtion_open"},Eu={class:"print_right"},ku={class:"habit_Overal_Single"},Iu={class:"habit_System_Designer"},Du={class:"print_input"},Su=["placeholder"],Hu={class:"designOpenrtion_nav"},Lu=["src","onClick"],Ou={class:"designOpenrtion_overall"},Mu=["src"],Tu={class:"designOpenrtion_centent",id:"designOpenrtionCentent"},Nu={class:"designOpenrtion_imgMask"},Ku={class:"designOpenrtion_print"},Pu=["onTouchstart","onClick"],Ru=["src"],Vu=["src"],Gu=["src"],zu={class:"designOpenrtion_btn"},ju=["onTouchstart"],Zu={class:"designOpenrtion_rotote"},Wu=["onTouchstart"],Yu=(0,n._)("i",{class:"fi fi-rr-arrows animtion1"},null,-1),Xu=(0,n._)("i",{class:"fi fi-rr-arrows animtion2"},null,-1),Ju=[Yu,Xu],$u={class:"mark_loading"};function qu(e,t,A,i,s,a){const l=(0,n.up)("a-switch"),c=(0,n.up)("a-slider"),d=(0,n.up)("a-spin"),u=(0,n.up)("a-modal"),h=(0,n.Q2)("rotote");return(0,n.wg)(),(0,n.iD)("div",null,[(0,n.Wm)(u,{class:"designOpenrtion_modal",visible:e.designOpenrtion,"onUpdate:visible":t[12]||(t[12]=t=>e.designOpenrtion=t),footer:null,width:"65%",maskClosable:!1,centered:!0,closable:!1,mask:!0},{default:(0,n.w5)((()=>[(0,n._)("div",_u,[(0,n._)("div",Qu,[(0,n._)("div",null,(0,r.zw)(e.$t("DesignPrintOperation.Placement")),1)]),(0,n._)("div",{class:"design_closeIcon",onClick:t[0]||(t[0]=(0,o.iM)((t=>e.closeModal()),["stop"]))},Fu),(0,n._)("div",xu,[(0,n._)("div",Eu,[(0,n._)("div",ku,[(0,n._)("div",{class:(0,r.C_)(["habit_Overal_Single_text",{active:!e.overallSingle}])},(0,r.zw)(e.$t("DesignPrintOperation.Overall")),3),(0,n.Wm)(l,{checked:e.overallSingle,"onUpdate:checked":t[1]||(t[1]=t=>e.overallSingle=t),onChange:e.setOveralSingle},null,8,["checked","onChange"]),(0,n._)("div",{class:(0,r.C_)(["habit_Overal_Single_text",{active:e.overallSingle}])},(0,r.zw)(e.$t("DesignPrintOperation.Single")),3)]),(0,n.wy)((0,n._)("div",Iu,[(0,n.Wm)(c,{id:"system_silder",value:e.systemDesignerPercentage,"onUpdate:value":t[2]||(t[2]=t=>e.systemDesignerPercentage=t),onAfterChange:e.systemDesigner,"tip-formatter":e.formatter},null,8,["value","onAfterChange","tip-formatter"])],512),[[o.F8,!e.overallSingle]]),(0,n.wy)((0,n._)("div",{onClick:t[3]||(t[3]=(...t)=>e.random&&e.random(...t)),class:"button_second"},(0,r.zw)(e.$t("DesignPrintOperation.Random")),513),[[o.F8,e.overallSingle]]),(0,n.wy)((0,n._)("div",Du,[(0,n.wy)((0,n._)("input",{class:"search_input",placeholder:e.$t("DesignPrintOperation.inputContent"),type:"Number","onUpdate:modelValue":t[4]||(t[4]=t=>e.printAmount=t),onInput:t[5]||(t[5]=(...t)=>e.setprintAmount&&e.setprintAmount(...t))},null,40,Su),[[o.nr,e.printAmount]]),(0,n._)("i",{class:"fi fi-rr-trash",onClick:t[6]||(t[6]=(...t)=>e.deletePrint&&e.deletePrint(...t))})],512),[[o.F8,e.overallSingle]]),(0,n._)("div",Hu,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.designOpenrtionList,((t,A)=>(0,n.wy)(((0,n.wg)(),(0,n.iD)("div",{class:(0,r.C_)(["designOpenrtion_single",{active:!!e.printStyleList[A]?.designOpenrtionBtn&&e.printStyleList[A]?.designOpenrtionBtn}]),key:t},[(0,n._)("img",{src:t.path,onClick:i=>e.setpitch(t,A)},null,8,Lu)],2)),[[o.F8,e.overallSingle]]))),128)),(0,n.wy)((0,n._)("div",Ou,[(0,n._)("img",{src:e.designOpenrtionList[0].path},null,8,Mu)],512),[[o.F8,!e.overallSingle]])]),(0,n._)("div",{class:"subitOkPreviewBtn",onClick:t[7]||(t[7]=(0,o.iM)(((...t)=>e.setPreview&&e.setPreview(...t)),["stop"]))},(0,r.zw)(e.$t("DesignPrintOperation.preview")),1)])]),(0,n._)("div",Tu,[(0,n._)("div",Nu,[(0,n.wy)((0,n._)("div",Ku,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.designOpenrtionList,((t,A)=>((0,n.wg)(),(0,n.iD)("div",{key:t,style:(0,r.j5)([e.printStyleList?.[A]?.style]),onTouchstart:(0,o.iM)((t=>e.itemMoveMousedown(A,t)),["stop"]),class:"modal_imgItem",onClick:i=>e.setpitch(t,A),ref_for:!0,ref:"content"},[(0,n._)("img",{crossOrigin:"anonymous",src:t?.path,style:(0,r.j5)({transform:`rotateZ(${e.printStyleList[A]?.transform?.rotateZ}deg)`}),class:"designOpenrtion_imgItme",draggable:"false"},null,12,Ru)],44,Pu)))),128))],512),[[o.F8,e.overallSingle]]),(0,n._)("img",{src:e.current?.path,alt:"",class:"designOpenrtion_sketch"},null,8,Vu),(0,n.wy)((0,n._)("img",{src:e.current?.layersObject?.[1]?.maskUrl,alt:"",class:"designOpenrtion_sketch_mask"},null,8,Gu),[[o.F8,e.overallSingle]]),(0,n._)("div",zu,[e.overallSingle?((0,n.wg)(!0),(0,n.iD)(n.HY,{key:0},(0,n.Ko)(e.printStyleList,((A,i)=>((0,n.wg)(),(0,n.iD)("ul",{key:A,class:(0,r.C_)([{active:!!A?.designOpenrtionBtn&&A?.designOpenrtionBtn},"designOpenrtion_Mousingle"]),style:(0,r.j5)(A.style),onTouchstart:(0,o.iM)((t=>e.itemMoveMousedown(i,t)),["stop"])},[(0,n._)("li",{class:"designOpenrtion_btn_top",onTouchstart:t[8]||(t[8]=(0,o.iM)((t=>e.itemSizeMousedown("top",t)),["stop"]))},null,32),(0,n._)("li",{class:"designOpenrtion_btn_bottom",onTouchstart:t[9]||(t[9]=(0,o.iM)((t=>e.itemSizeMousedown("bottom",t)),["stop"]))},null,32),(0,n._)("li",{class:"designOpenrtion_btn_left",onTouchstart:t[10]||(t[10]=(0,o.iM)((t=>e.itemSizeMousedown("left",t)),["stop"]))},null,32),(0,n._)("li",{class:"designOpenrtion_btn_right",onTouchstart:t[11]||(t[11]=(0,o.iM)((t=>e.itemSizeMousedown("right",t)),["stop"]))},null,32),(0,n.wy)((0,n._)("li",Zu,null,512),[[h,[i,A.transform],void 0,{stop:!0}]])],46,ju)))),128)):(0,n.kq)("",!0),(0,n.wy)((0,n._)("div",null,null,512),[[o.F8,!e.overallSingle]]),e.overallSingle?(0,n.kq)("",!0):((0,n.wg)(!0),(0,n.iD)(n.HY,{key:1},(0,n.Ko)(e.printStyleList,((t,A)=>((0,n.wg)(),(0,n.iD)("ul",{key:t,class:(0,r.C_)([{active:!!t?.designOpenrtionBtn&&t?.designOpenrtionBtn},"designOpenrtion_Mouoverall"]),style:(0,r.j5)("left:"+t.style.left+";top:"+t.style.top),onTouchstart:(0,o.iM)((t=>e.itemMoveMousedown(A,t)),["stop"])},Ju,46,Wu)))),128))])])])]),(0,n.wy)((0,n._)("div",$u,[(0,n.Wm)(d,{size:"large"})],512),[[o.F8,e.loadingShow]])])),_:1},8,["visible"])])}var eh=(0,n.aZ)({setup(e){let t=(0,Y.iH)(!1),A=(0,Y.iH)([]),i=(0,n.f3)("current"),r=(0,n.f3)("setRevocation"),o=(0,Y.iH)(!1),s=(0,Y.iH)(0),a=(0,Y.iH)(1),l=(0,Y.iH)(2),c=(0,Y.iH)([{centers:{left:0,top:0},style:{left:"0px",top:"0px",right:"auto",bottom:"auto",width:"auto",height:"auto",zIndex:1},transform:{scale:1,rotateZ:0},designOpenrtionBtn:!1}]),d=(0,Y.iH)(""),u=(0,Y.iH)(),h=(0,Y.iH)(0),g=(0,Y.iH)({width:"",height:""}),p=(0,Y.iH)({width:"",height:""}),f=(0,Y.iH)(!1),{t:m}=(0,oA.QT)();return{designOpenrtion:t,designOpenrtionList:A,overallSingle:o,systemDesignerPercentage:s,current:i,printAmount:a,printZIndex:l,printStyleList:c,direction:d,imgDom:u,imgDomIndex:h,print:g,sketch:p,loadingShow:f,setRevocation:r,t:m}},data(){return{store:(0,Ne.oR)()}},directives:{rotote:{mounted(e,t){e.addEventListener("touchstart",(A=>{let i=document.getElementsByClassName("designOpenrtion_modal")[0].getElementsByClassName("modal_imgItem")[t.instance.imgDomIndex],n=!0,r=0,o=1;o=t.instance.printStyleList[t.instance.imgDomIndex].transform.scale,r=t.instance.printStyleList[t.instance.imgDomIndex].transform.rotateZ,e.style.transform="rotateZ("+r+"deg)",A.stopPropagation(),n=!0;var s=e.getBoundingClientRect();let a=s.x+s.width/2,l=s.y+s.height/2,c=t=>{if(n){let A=a,n=l,o=t.targetTouches[0].clientX-A,s=n-t.targetTouches[0].clientY;r=Math.atan2(o,s)*(180/Math.PI),i.firstElementChild.style.transform="rotateZ("+r+"deg)",e.style.transform="rotateZ("+r+"deg)"}};document.addEventListener("touchmove",c);let d=()=>{t.instance.printStyleList[t.instance.imgDomIndex].transform.rotateZ=r,n=!1,document.removeEventListener("touchend",d),document.removeEventListener("touchmove",c)};document.addEventListener("touchend",d)}))}}},methods:{init(){let e=this.$parent;this.designOpenrtion=!0,this.clearModal(),this.designOpenrtionList=[],this.designOpenrtionList.push(...this.current.printObject.prints),this.overallSingle=e.overallSingle,this.systemDesignerPercentage=e.systemDesignerPercentage;let t=new Image;t.src=this.current.path,t.onload=()=>{this.sketch.width=t.width/10+"rem",this.sketch.height=t.height/10+"rem"};let A=new Image;A.src=this.current.printObject.prints[0].path,A.onload=()=>{let e=document.getElementsByClassName("designOpenrtion_modal")[0]?.getElementsByClassName("designOpenrtion_sketch")[0];this.sketch.width.replace(/rem/g,""),e.offsetWidth;this.print.width=A.width+"px",this.print.height=A.height+"px",this.printStyleList[0].style.width=A.width+"px",this.printStyleList[0].style.height=A.height+"px",this.printStyleList[0].designOpenrtionBtn=!1,(0,n.Y3)().then((()=>{this.designOpenrtionList[0].scale?this.designOpenrtionList.forEach(((e,t)=>{this.setTemplate(e,t),this.printAmount=this.printStyleList.length,this.overallSingle||(this.printAmount=1,this.setprintAmount()),this.current.printObject.ifSingle!=this.overallSingle&&this.refetchTemplate(0)})):this.refetchTemplate(0)}))}},systemDesigner(e){let t=this.$parent;t.systemDesignerPercentage=e},formatter(e){return 3*e+"%"},setOveralSingle(){let e=this.$parent;e.overallSingle=this.overallSingle,this.overallSingle?this.random():(this.printAmount=1,this.setprintAmount())},setpitch(e,t){this.printStyleList.forEach((e=>{e.designOpenrtionBtn=!1})),this.imgDomIndex=t,this.printStyleList[t].designOpenrtionBtn=!0,this.printStyleList[t].style.zIndex=this.printZIndex++},itemMoveMousedown(e,t){this.imgDomIndex=e,this.printStyleList.forEach((e=>{e.designOpenrtionBtn=!1})),this.overallSingle?this.imgDom=document.getElementsByClassName("designOpenrtion_modal")[0].getElementsByClassName("modal_imgItem")[this.imgDomIndex]:this.imgDom=document.getElementsByClassName("designOpenrtion_modal")[0].getElementsByClassName("designOpenrtion_Mouoverall")[0];let A=Number(this.imgDom.children[0].style.transform?.split("scale(")[1]?.split(")")[0]),i=Number(this.imgDom.children[0].style.transform?.split("rotateZ(")[1]?.split("deg")[0]);this.printStyleList[e].designOpenrtionBtn=!0,this.printStyleList[e].style.zIndex=this.printZIndex++,this.printStyleList[e].transform={scale:A,rotateZ:i};let n=this.imgDom.getBoundingClientRect(),r=Number(this.printStyleList[e].style.left.replace(/px/g,"")),o=Number(this.printStyleList[e].style.top.replace(/px/g,""));this.printStyleList[e].centers.left=n.x+t.changedTouches[0].pageX-this.imgDom.getBoundingClientRect().left-r,this.printStyleList[e].centers.top=n.y+t.changedTouches[0].pageY-this.imgDom.getBoundingClientRect().top-o,document.addEventListener("touchend",this.touchend),document.addEventListener("touchmove",this.moveMousemove)},itemSizeMousedown(e,t){this.direction=e,this.imgDom=document.getElementsByClassName("designOpenrtion_modal")[0].getElementsByClassName("modal_imgItem")[this.imgDomIndex];let A=Number(this.imgDom.firstChild.style.transform?.split("scale(")[1]?.split(")")[0]),i=Number(this.imgDom.firstChild.style.transform?.split("rotateZ(")[1]?.split("deg")[0]);this.printStyleList[this.imgDomIndex].designOpenrtionBtn=!0,this.printStyleList[this.imgDomIndex].transform={scale:A,rotateZ:i};let n=this.imgDom.getBoundingClientRect(),r=document.getElementsByClassName("designOpenrtion_modal")[0].getElementsByClassName("designOpenrtion_btn_top")[0].offsetWidth/2;"right"==this.direction||"bottom"==this.direction?(this.printStyleList[this.imgDomIndex].centers.left=n.x+t.changedTouches[0].pageX-this.imgDom.getBoundingClientRect().left-r,this.printStyleList[this.imgDomIndex].centers.top=n.y+t.changedTouches[0].pageY-this.imgDom.getBoundingClientRect().top-r):(this.printStyleList[this.imgDomIndex].centers.left=n.x+t.changedTouches[0].pageX-this.imgDom.getBoundingClientRect().left+n.width-r,this.printStyleList[this.imgDomIndex].centers.top=n.y+t.changedTouches[0].pageY-this.imgDom.getBoundingClientRect().top+n.height-r,this.printStyleList[this.imgDomIndex].centers.right=this.imgDom.parentNode.offsetWidth-n.width-this.imgDom.offsetLeft,this.printStyleList[this.imgDomIndex].centers.bottom=this.imgDom.parentNode.offsetHeight-n.height-this.imgDom.offsetTop),document.addEventListener("touchend",this.sizeMouseup),document.addEventListener("touchmove",this.sizeMousemove)},moveMousemove(e){let t=this.imgDom.getBoundingClientRect(),A=document.getElementsByClassName("designOpenrtion_modal")[0].getElementsByClassName("designOpenrtion_imgMask")[0];A=A.getBoundingClientRect();let i=e.changedTouches[0].pageX-this.printStyleList[this.imgDomIndex].centers.left+"px",n=e.changedTouches[0].pageY-this.printStyleList[this.imgDomIndex].centers.top+"px";this.printStyleList[this.imgDomIndex].style.left=i,this.printStyleList[this.imgDomIndex].style.top=n,this.overallSingle||(i.replace(/px/g,"")>=A.width-t.width&&(this.printStyleList[this.imgDomIndex].style.left=A.width-t.width+"px"),i.replace(/px/g,"")<=0&&(this.printStyleList[this.imgDomIndex].style.left="0px"),n.replace(/px/g,"")>=A.height-t.height&&(this.printStyleList[this.imgDomIndex].style.top=A.height-t.height+"px"),n.replace(/px/g,"")<=0&&(this.printStyleList[this.imgDomIndex].style.top="0px"))},sizeMousemove(e){let t,A,i=this.imgDom.getBoundingClientRect(),n=(this.imgDom.parentNode,i.width),r=i.height,o=n/r,s=r/n;"right"==this.direction?(t=e.changedTouches[0].pageX-this.printStyleList[this.imgDomIndex].centers.left,A=(e.changedTouches[0].pageX-this.printStyleList[this.imgDomIndex].centers.left)*o,n=t+"px",r=t*s+"px"):"top"==this.direction?(this.printStyleList[this.imgDomIndex].style.top="auto",this.printStyleList[this.imgDomIndex].style.bottom=this.printStyleList[this.imgDomIndex].centers.bottom+"px",t=(e.changedTouches[0].pageX-this.printStyleList[this.imgDomIndex].centers.left)*o,A=this.printStyleList[this.imgDomIndex].centers.top-e.changedTouches[0].pageY,r=A+"px",n=A*o+"px"):"bottom"==this.direction?(A=e.changedTouches[0].pageY-this.printStyleList[this.imgDomIndex].centers.top,r=A+"px",n=A*o+"px"):"left"==this.direction&&(this.printStyleList[this.imgDomIndex].style.left="auto",this.printStyleList[this.imgDomIndex].style.right=this.printStyleList[this.imgDomIndex].centers.right+"px",t=this.printStyleList[this.imgDomIndex].centers.left-e.changedTouches[0].pageX,n=t+"px",r=t*s+"px"),this.printStyleList[this.imgDomIndex].style.width=n,this.printStyleList[this.imgDomIndex].style.height=r},sizeMouseup(e){this.printStyleList[this.imgDomIndex].style={right:"auto",left:this.imgDom.offsetLeft+"px",bottom:"auto",top:this.imgDom.offsetTop+"px",height:this.imgDom.offsetHeight+"px",width:this.imgDom.offsetWidth+"px",zIndex:this.printZIndex},document.removeEventListener("touchend",this.sizeMouseup),document.removeEventListener("touchmove",this.sizeMousemove)},touchend(e){document.removeEventListener("touchend",this.touchend),document.removeEventListener("touchmove",this.moveMousemove)},setprintAmount(){if(this.printAmount<1)return void(this.printAmount=1);if(this.printAmount>20)return void(this.printAmount=20);if(this.printAmount>this.printStyleList.length){let e=this.printAmount-this.printStyleList.length;for(let t=0;t<e;t++)this.printStyleList.push(JSON.parse(JSON.stringify(this.printStyleList[this.printStyleList.length-1]))),this.printStyleList[this.printStyleList.length-1].transform.rotateZ=0,this.refetchTemplate(this.printStyleList.length-1),this.designOpenrtionList.push(this.current.printObject.prints[this.current.printObject.prints.length-1])}else{let e=this.printStyleList.length-this.printAmount;this.designOpenrtionList.splice(this.printStyleList.length-e,e),this.printStyleList.splice(this.printStyleList.length-e,e)}this.printStyleList.forEach((e=>{e.designOpenrtionBtn=!1})),this.printStyleList[this.printStyleList.length-1].designOpenrtionBtn=!0,this.imgDomIndex=this.printStyleList.length-1},deletePrint(){this.designOpenrtionList.length<=1||(this.designOpenrtionList.splice(this.imgDomIndex,1),this.printStyleList.splice(this.imgDomIndex,1),this.printAmount=this.designOpenrtionList.length)},random(){this.designOpenrtionList.forEach(((e,t)=>{this.refetchTemplate(t)}))},refetchTemplate(e){Math.trunc(360*Math.random()),Math.trunc(360*Math.random());let t,A,i=document.getElementsByClassName("designOpenrtion_modal")[0]?.getElementsByClassName("designOpenrtion_sketch")[0];this.print.width>this.print.height?(t=Math.trunc(Math.random()*(i?.width-i?.width/2))+i?.width/3,A=t/this.print.width.replace(/px/g,"")):(t=Math.trunc(Math.random()*(i?.height-i?.height/2))+i?.height/3,A=t/this.print.height.replace(/px/g,""));let n=i?.width-this.print.width.replace(/px/g,"")*A,r=i?.height-this.print.height.replace(/px/g,"")*A;this.printStyleList[e]={centers:{left:0,top:0},style:{left:Math.trunc(Math.random()*n)+1+"px",top:Math.trunc(Math.random()*r)+1+"px",right:"auto",bottom:"auto",width:this.print.width.replace(/px/g,"")*A+"px",height:this.print.height.replace(/px/g,"")*A+"px",zIndex:this.printZIndex++},transform:{rotateZ:0!=this.printStyleList[e].transform.rotateZ?this.printStyleList[e].transform.rotateZ:0},designOpenrtionBtn:!1}},setTemplate(e,t){this.designOpenrtionList;let A,i=document.getElementsByClassName("designOpenrtion_modal")[0]?.getElementsByClassName("designOpenrtion_sketch")[0],n=10*this.sketch.width.replace(/rem/g,"")/i.offsetWidth;A=this.print.width.replace(/px/g,"")*n/this.print.width.replace(/px/g,"");let r=1,o=e.location[0]/n+"px",s=e.location[1]/n+"px";i.offsetWidth<e.location[0]/n&&(o=i.offsetWidth+"px"),i.offsetHeight<e.location[1]/n&&(s=i.offsetHeight+"px"),this.printStyleList[t]={centers:{left:0,top:0},style:{left:o,top:s,right:"auto",bottom:"auto",width:this.print.width.replace(/px/g,"")/n*e.scale+"px",height:this.print.height.replace(/px/g,"")/n*e.scale+"px",zIndex:r++},transform:{rotateZ:e.angle},designOpenrtionBtn:!1}},computeZindex(){let e=JSON.parse(JSON.stringify(this.printStyleList));e.sort(((e,t)=>{var A=e["style"].zIndex,i=t["style"].zIndex;return A-i}));let t=1;return e.forEach((e=>{e.style.zIndex=t++})),this.computeSize(e)},computeSize(e){let t,A,i=document.getElementsByClassName("designOpenrtion_sketch")[0],n=10*this.sketch.width.replace(/rem/g,"")/i.offsetWidth,r=[];return e.forEach(((i,o)=>{this.overallSingle?(t=e[o].style.width.replace(/px/g,"")*n/this.print.width.replace(/px/g,""),A=[e[o].style.left.replace(/px/g,"")*n,e[o].style.top.replace(/px/g,"")*n]):(t=3*this.systemDesignerPercentage/100,A=[e[o].style.left.replace(/px/g,"")*n,e[o].style.top.replace(/px/g,"")*n]);let s={angle:this.overallSingle?e[o].transform.rotateZ:0,location:A,priority:e[o].style.zIndex,scale:t,path:this.designOpenrtionList[o].path,minIOPath:this.designOpenrtionList[o].minIOPath};r.push(s)})),r},setPreview(){let e,t=JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail));this.printStyleList[0].style.width.replace(/px/g,""),this.print.width.replace(/px/g,"");t.clothes.forEach(((t,A)=>{t.id==this.current.id&&(e=A)}));t.clothes.map((e=>e.type));let A=this.store.state.DesignDetailModule.designPreviewData;A.designSingleItemDTOList[e].printObject={ifSingle:this.overallSingle,prints:this.computeZindex()},A.timeZone=Intl.DateTimeFormat().resolvedOptions().timeZone,this.loadingShow=!0,Te.V.axiosPost(Te.V.httpUrls.designSingle,A).then((i=>{t.currentFullBodyView=i.currentFullBodyView,t.clothes[e].printObject.ifSingle=this.overallSingle,t.clothes[e].layersObject=i.clothes[e].layersObject,t.clothes[e].printObject.prints=this.computeZindex(),t.ifSubmit=!0,t.clothes.forEach(((e,t)=>{let A;-1==e.layersObject[0].imageCategory.indexOf("back")&&(A=e.layersObject[0],e.layersObject[0]=e.layersObject[1],e.layersObject[1]=A),e.layersObject[0].id=this.store.state.DesignDetailModule.designItemDetail.clothes[t].layersObject[0].id,e.layersObject[1].id=this.store.state.DesignDetailModule.designItemDetail.clothes[t].layersObject[1].id})),this.store.commit("setDesignItemDetail",t),this.store.commit("setDesignPreviewData",A),this.setRevocation(t,A),this.loadingShow=!1,this.designOpenrtion=!1})).catch((e=>{this.loadingShow=!1}))},clearModal(){this.printAmount=1,this.designOpenrtion=!0,this.printZIndex=2,this.imgDomIndex=0,this.designOpenrtionList=[],this.printStyleList.splice(1,this.printStyleList.length-1),this.printStyleList[0]={centers:{left:0,top:0},style:{left:"0px",top:"0px",right:"auto",bottom:"auto",width:"auto",height:"auto",zIndex:1},transform:{scale:1,rotateZ:0},designOpenrtionBtn:!1}},closeModal(){JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail));let e=this;ua.Z.confirm({title:this.t("DesignPrintOperation.jsContent1"),icon:(0,n.Wm)(da.Z),okText:"Yes",cancelText:"No",mask:!1,centered:!0,onOk(){e.designOpenrtion=!1}})}}});const th=(0,it.Z)(eh,[["render",qu]]);var Ah=th,ih=(0,n.aZ)({props:["msg"],components:{Draggable:en(),Sketch:Oo.Sketch,DesignPrintOperation:bu,DesignPrintOperationMobile:Ah},setup(e){const t=(0,Ne.oR)();let A=(0,Y.iH)(0),i=(0,n.f3)("current"),r=(0,n.f3)("setRevocation"),o=(0,Y.iH)({}),s=(0,Y.iH)(!1),a=(0,Y.iH)(30),l=(0,Y.iH)([{},{},{},{},{},{},{},{}]),c=(0,Y.iH)(!1),{t:d}=(0,oA.QT)();return{store:t,current:i,setRevocation:r,sketchImg:o,type_:A,overallSingle:s,systemDesignerPercentage:a,colorList:l,loadingShow:c,t:d}},data(){return{selectIndex:0,getRGBA:{},selectColor:{}}},methods:{init(e){this.type_=e,this.colorList[this.selectIndex]=this.$parent.selectColor,this.overallSingle=null!=this.current?.printObject?.ifSingle&&this.current?.printObject?.ifSingle,this.systemDesignerPercentage=this.current?.printObject?.scale?this.current?.printObject?.scale:30},setSketchImg(e){this.sketchImg.id_=e.id,this.sketchImg.path=e.url,this.sketchImg.minIOPath=e.minIOPath},systemDesigner(e){this.current.printObject.scale=e},setOveralSingle(){this.current.printObject.ifSingle=this.overallSingle},formatter(e){return 3*e+"%"},setPrint(){if(this.current?.printObject?.prints?.[0]?.path){let e=(0,Re.S0)()?this.$refs.DesignPrintOperationMobile:this.$refs.DesignPrintOperation;e.init()}else Oe.ZP.info(this.t("DesignDetailEnd.jsContent1"))},deleteFile(){this.current.printObject={}},selectColorItem(e,t){let A,i=this.$parent;this.selectIndex=e,this.$parent.selectIndex=e,this.$parent.selectColor.rgba.r==t?.rgba?.r&&this.$parent.selectColor.rgba.g==t?.rgba?.g&&this.$parent.selectColor.rgba.b==t?.rgba?.b||(A=t.rgba?.r?i.rgbaToHex([t.rgba.r,t.rgba.g,t.rgba.b,t.rgba.a]):"#FFFFFF",this.$parent.selectColor=""!=t?.rgba?.r?{rgba:{r:t.rgba?.r,g:t.rgba?.g,b:t.rgba?.b,a:t.rgba?.a},hex:A}:{},this.$parent.tcxColor="",this.$parent.pantongName="")},setSelectColorItem(e){let t=this.store.state.DesignDetailModule.designItemDetail,A=`${e.rgba.r},${e.rgba.g},${e.rgba.b},${e.rgba.a}`;this.current.color=A,t.clothes.forEach(((e,A)=>{e.id==this.current.id&&(t.clothes[A]=this.current)}))},setPreview(){let e,t=JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail)),A=JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designPreviewData));if(t.clothes.forEach(((t,A)=>{t.id==this.current.id&&(e=A)})),1==this.type_)A.designSingleItemDTOList[e].path!=this.sketchImg.minIOPath&&this.sketchImg.id_&&(A.designSingleItemDTOList[e].offset=[0,0],A.designSingleItemDTOList[e].scale=1),A.designSingleItemDTOList[e].id=this.sketchImg.id_?this.sketchImg.id_:this.current.id_,A.designSingleItemDTOList[e].path=this.sketchImg.minIOPath?this.sketchImg.minIOPath:this.current.minIOPath;else if(2==this.type_)A.designSingleItemDTOList[e].printObject.ifSingle=!1,A.designSingleItemDTOList[e].printObject.prints=[];else if(3==this.type_){let t=`${this.$parent.selectColor.rgba.r} ${this.$parent.selectColor.rgba.g} ${this.$parent.selectColor.rgba.b}`;A.designSingleItemDTOList[e].color=t}A.timeZone=Intl.DateTimeFormat().resolvedOptions().timeZone,this.loadingShow=!0,Te.V.axiosPost(Te.V.httpUrls.designSingle,A).then((i=>{t.currentFullBodyView=i.currentFullBodyView,t.clothes[e].color=i.clothes[e].color,t.clothes[e].printObject=i.clothes[e].printObject,t.clothes[e].layersObject=i.clothes[e].layersObject,t.clothes[e].minIOPath=i.clothes[e].minIOPath,t.clothes[e].path=i.clothes[e].path,t.ifSubmit=!0,t.clothes.forEach(((e,t)=>{let A;-1==e.layersObject[0].imageCategory.indexOf("back")&&(A=e.layersObject[0],e.layersObject[0]=e.layersObject[1],e.layersObject[1]=A),e.layersObject[0].id=this.store.state.DesignDetailModule.designItemDetail.clothes[t].layersObject[0].id,e.layersObject[1].id=this.store.state.DesignDetailModule.designItemDetail.clothes[t].layersObject[1].id})),this.loadingShow=!1,this.store.commit("setDesignItemDetail",t),this.store.commit("setDesignPreviewData",A),this.setRevocation(t,A)})).catch((e=>{this.loadingShow=!1}))}}});const nh=(0,it.Z)(ih,[["render",Gd],["__scopeId","data-v-3bbb8624"]]);var rh=nh,oh=(0,n.aZ)({props:["msg"],components:{Draggable:en(),Sketch:Oo.Sketch,DesignDetailEnd:rh,Chrome:Oo.Chrome},setup(e){const t=(0,Ne.oR)();let A=(0,Y.iH)(1),i=(0,Y.iH)(!1),r=(0,n.f3)("current"),o=(0,Y.iH)(1),s=(0,Y.iH)(""),a=[],l=(0,Y.iH)(0),c=(0,Y.iH)(10),d=(0,Y.iH)(1),u=(0,Y.iH)(!1),h=(0,Y.iH)([]),g=(0,Y.iH)([]),p=(0,Y.iH)([]),f=(0,Y.iH)([]),m=(0,Y.iH)("Sketchboard"),B=(0,Y.iH)({rgba:{}}),w=(0,Y.iH)({}),v=(0,Y.iH)({}),{t:y}=(0,oA.QT)();return{store:t,current:r,openClick:o,searchPictureName:s,disignTypeList:a,total:l,pageSize:c,currentPage:d,isShowLoading:u,clothesList:h,uploadList:g,apparelList:p,printList:f,selectCode:m,type_:A,select:i,selectColor:B,selectColorList:w,workspace:v,t:y}},data(){return{token:"",uploadUrl:"",upload:{isPin:0,level1Type:"Sketchboard",timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},indicator:(0,n.h)(Le.Z,{style:{fontSize:"2.4rem"},spin:!0}),designShowPrview:1,reviewColor:{},colorPickerVisible:!0,colorBlockHex:!0,getColorBg:!1,pantongName:"",pantongNameList:[],tcxColor:"",selectColorList:[],colorFileList:[],selectIndex:0,indicator:(0,n.h)(Le.Z,{style:{fontSize:"2.4rem"},spin:!0}),getPantongNameTime:!0,workspaceCom:{}}},directives:{observe:{mounted(e,t){const A=new IntersectionObserver(n,{root:null,threshold:[.5]});A.observe(e);let i=t.instance;function n(e,t){e.forEach((e=>{e.isIntersecting&&i.getLibraryList()}))}}}},computed:{getSketchLabel(e){return e=>{let t="";for(let A of this.disignTypeList)if(A.value===e){e=A.value;break}return t}},getSelectRGB(e){return e=>{let t=e.rgba,A={r:t?.r||0===t?.r?t?.r:255,g:t?.g||0===t?.g?t?.g:255,b:t?.b||0===t?.b?t?.b:255,a:t?.a||1===t?.a?t?.a:1,hex:void 0==e.hex?"#FFFFFF":e.hex};return 1==A.a&&0==A.a||(A.hex=e.hex8?e.hex8:e.hex),A}}},mounted(){},watch:{selectColor(e,t){let A=this.$refs.DesignDetailEnd;A.colorList[A.selectIndex]=e;let i=A.colorList.filter((e=>e&&Object.keys(e).length));this.setColorboardList(i),clearInterval(this.getPantongNameTime),this.getPantongNameTime=setTimeout((()=>{this.getPantongName(e.rgba)}),100)},workspaceCom(e,t){this.workspace=e,this.getPosition()}},mounted(){this.token=(0,Pe.ej)("token")||"",this.uploadUrl=(0,Re.M$)();const e=document.createElement("div");e.classList.add("vc-sketch-color-wrap");let t=document.getElementsByClassName("detail_modal_body_select")[0].getElementsByClassName("vc-chrome-fields-wrap")[0];console.log(t),t.appendChild(e),e.addEventListener("click",(async()=>{try{const e=new EyeDropper,t=await e.open();let A=t.sRGBHex.replace("#","");const i=parseInt(A.substring(0,2),16),n=parseInt(A.substring(2,4),16),r=parseInt(A.substring(4,6),16);this.selectColor={rgba:{r:i,g:n,b:r,a:1},hex:t.sRGBHex}}catch(e){Oe.ZP.info(this.t("DesignDetailAlter.jsContent1"))}}))},methods:{init(e){this.type_=e,this.select=!0;let t=this.current.color;this.selectColor={rgba:{r:Number(t.r),g:Number(t.g),b:Number(t.b),a:Number(t.a?t.a:1)},hex:this.rgbaToHex([t.r,t.g,t.b,t.a?t.a:1])},this.uploadList=[],1==e?(this.selectCode="Sketchboard",this.upload.level1Type="Sketchboard",this.uploadList=this.apparelList):2==e&&(this.selectCode="Printboard",this.upload.level1Type="Printboard",this.uploadList=this.printList),1!=e&&2!=e||(this.clothesList=[],this.getLibraryList());let A=this.$refs.DesignDetailEnd;A.init(e),this.workspaceCom=(0,n.Fl)((()=>this.store?.state?.Workspace?.workspace))},getPosition(){let e;e="Female"==this.workspace.sexEnum.name?"FemalePosition":"MalePosition",Te.V.axiosGet(Te.V.httpUrls.workspaceenumValues,{params:{enumName:e}}).then((e=>{e&&(this.disignTypeList=e)}))},deleteFile(e){this.uploadList.splice(e,1)},upFileUploadChange(e){let t=e.file;if("done"===t.status){let e=JSON.parse(t.xhr.response);t.id=e.data.id,t.url=e.data.url,t.resData=e.data,t.designType=e.data.designType,t.category=this.current,t.minIOPath=t.resData.minIOPath;let A=this.uploadList.filter((e=>"done"===e.status));this.uploadList.length>=8?Oe.ZP.info(this.t("DesignDetailAlter.jsContent2")):(this.uploadList=A,"Sketchboard"==this.selectCode?this.apparelList=this.uploadList:this.printList=this.uploadList)}else if("error"===t.status){let e=-1;this.uploadList.forEach(((A,i)=>{t.uid===A.uid&&(e=i)})),e>-1&&this.uploadList.splice(e,1),Oe.ZP.warning(t.name+this.t("DesignDetailAlter.jsContent3"))}},terminate(){let e=this.$refs.DesignDetailEnd;this.select=!1,e.selectIndex=0,e.type_=0,this.colorFileList=[],this.selectColorList=[]},changePlace(){this.uploadList=[];let e=this.$refs.DesignDetailEnd;this.uploadList=[],this.apparelList=[],this.printList=[],e.colorList=[{},{},{},{},{},{},{},{}],e.sketchImg={},this.terminate()},showFileCategory(e){e.categoryShow=!0,document.addEventListener("click",this.hiddenFileCategory)},selectFileCategory(e,t){e.level2Type=t.name;for(let A of this.clothesList)A.categoryShow=!1;this.setSketchLibrary(e)},hiddenFileCategory(){for(let e of this.clothesList)e.categoryShow=!1;document.removeEventListener("click",this.hiddenFileCategory)},setSketchLibrary(e){let t={libraryId:e.id,level2Type:e.level2Type};Te.V.axiosPost(Te.V.httpUrls.setSketchLibrary,t).then((e=>{})).catch((e=>{}))},selectImgItem(e){if("Sketchboard"==this.selectCode){let t=this.$refs.DesignDetailEnd;t.setSketchImg(e)}else this.current.printObject.path=e?.url,this.current.printObject.id=e?.id,this.current.printObject.minIOPath=e.minIOPath,this.current.printObject.prints=[{minIOPath:e.minIOPath,path:e?.url}]},getLibraryList(){let e=this.store.state.Workspace.workspace,t={level1Type:this.selectCode,modelSex:e?.sex,page:this.currentPage,pictureName:this.searchPictureName,size:this.pageSize+this.clothesList.length};this.isShowLoading=!0,Te.V.axiosPost(Te.V.httpUrls.queryLibraryPage,t).then((e=>{this.clothesList=e.content,this.isShowLoading=!1,this.total=e.total})).catch((e=>{this.isShowLoading=!1}))},open(e){this.openClick=e,2==e&&this.getLibraryList()},beforeUpload(e){const t="image/jpeg"===e.type||"image/png"===e.type||"image/jpg"===e.type||"image/bmp"===e.type;t||Oe.ZP.info(this.t("DesignDetailAlter.jsContent4"));const A=e.size/1024/1024<5;return A||Oe.ZP.info(this.t("DesignDetailAlter.jsContent5")),t&&A||Me.Z.LIST_IGNORE},colorDeleteFile(e){this.colorFileList.splice(e,1),this.selectColorList=[]},setUplpadColor(e){this.selectColor=e},rgbaToHex(e){let t="#";return e.forEach(((e,A)=>{t+=3==A?Math.round(255*e).toString(16):Number(e).toString(16).padStart(2,"0")})),t},getHsvColor(e){this.pantongName="";let t=[];e.forEach(((e,A)=>{let i=[e.rgba.r,e.rgba.g,e.rgba.b,e.rgba.a];t.push(i)}));let A=[];t.forEach((e=>{let t=(0,Re.py)(e);0==A.length||A[0].h;let i={h:Number(t[0]),s:Number(t[1]),v:Number(t[2])};A.push(i)})),Te.V.axiosPost(Te.V.httpUrls.getRgbByHsvBatch,A).then((e=>{e&&e.forEach((e=>{this.pantongNameList.push(e.name)}))})).catch((e=>{}))},getTcxColor(){if(!this.tcxColor)return;let e=this.$refs.DesignDetailEnd,t=/^\d{2}-\d{4}$/;t.test(this.tcxColor)?Te.V.axiosGet(Te.V.httpUrls.getRgbByTcx+"?tcx="+this.tcxColor).then((t=>{if(t&&t.name){let A=this.rgbaToHex([t.r,t.g,t.b,t.a?t.a:1]);this.reviewColor=t?.r+""?{rgba:{r:t.r,g:t.g,b:t.b,a:1},hex:A}:{hex:""},this.selectColor=this.reviewColor,e.colorList[e.selectIndex]={r:t.r,g:t.g,b:t.b},this.pantongName=t.name;let i=e.colorList.filter((e=>Object.keys(e).length));this.setColorboardList(i),this.getColorBg=!0}else Oe.ZP.info(this.t("DesignDetailAlter.jsContent6"))})):Oe.ZP.info(this.t("ColorboardUpload.jsContent5"))},getPantongName(e){if(!e.r)return;let t=[e.r,e.g,e.b],A=(0,Re.py)(t),i=[{h:A[0],s:A[1],v:A[2]}];return new Promise(((e,t)=>{Te.V.axiosPost(Te.V.httpUrls.getRgbByHsvBatch,i).then((t=>{t&&(this.selectColor.tcx=t[0].tcx,this.selectColor.name=t[0].name,e())})).catch((e=>{t()}))}))},setColorboardList(e){e.map((e=>{let t={id:"",name:"",rgbValue:e};return t}))},fileUploadChange(e){let t=e.file,A=t.originFileObj;var i=new FileReader;i.onload=e=>{let A;A="object"===typeof e.target.result?window.URL.createObjectURL(new Blob([e.target.result])):e.target.result,t.imgUrl=A,t.status="done",this.colorFileList.push(t),setTimeout((async()=>{const e=new Image;let A=this.$refs.colorImage;e.src=A[0].src,e.onload=async()=>{const A=new ColorThief;let i,n=[],r=A.getPalette(e,8),o={max:5,min:5};await Ke.setColor(r,t.imgUrl,o).then((e=>{e&&(i=e.ratio)})),i.sort(((e,t)=>{var A=e.ratio,i=t.ratio;return i-A})),r=[],i.forEach((e=>{r.push(e.rgb)})),r=r.join("&"),r=r.split("&");let s=r[0].split(","),a=this.rgbaToHex(s),l=[];new Set(r).forEach((e=>{l.push(e.split(","))})),l.forEach((e=>{let t=this.rgbaToHex(e);n.push({rgba:{r:e[0],g:e[1],b:e[2],a:1},hex:t})})),this.selectColorList=n,this.selectColor={rgba:{r:s[0],g:s[1],b:s[2],a:1},hex:a}}}),100)},i.readAsDataURL(A)}}});const sh=(0,it.Z)(oh,[["render",gd]]);var ah=sh;const lh=e=>((0,n.dD)("data-v-50d58d1c"),e=e(),(0,n.Cn)(),e),ch={class:"magnifyingGlass"},dh={class:"initial"},uh={class:"initial_mask"},hh=["src"],gh=lh((()=>(0,n._)("div",{class:"initial_haver"},null,-1))),ph=lh((()=>(0,n._)("div",{class:"big"},null,-1)));function fh(e,t,A,i,r,o){const s=(0,n.Q2)("mousemove");return(0,n.wg)(),(0,n.iD)("div",ch,[(0,n._)("div",dh,[(0,n.wy)(((0,n.wg)(),(0,n.iD)("div",uh,[(0,n._)("img",{class:"initial_img",src:e.designItemDetailUrl,alt:""},null,8,hh),gh])),[[s]])]),ph])}var mh=A(7849),Bh=A(4924),wh=(0,n.aZ)({components:{DownOutlined:mh.Z,UserOutlined:Bh.Z},props:["designItemDetailUrl"],setup(){return{}},watch:{},data(){return{}},mounted(){},directives:{mousemove:{mounted(e,t){if((0,Re.S0)()){let t=A=>{const i=document.getElementsByClassName("magnifyingGlass")[0].querySelector(".initial_haver"),n=document.getElementsByClassName("magnifyingGlass")[0].querySelector(".initial_img"),r=document.getElementsByClassName("magnifyingGlass")[0].querySelector(".big"),o=i.getBoundingClientRect().width,s=r.getBoundingClientRect().width,a=s/o;r.style.backgroundImage=`url(${n.src})`;const{left:l,top:c}=n.getBoundingClientRect(),d=n.getBoundingClientRect().height,u=n.getBoundingClientRect().width,{width:h,height:g}=i.getBoundingClientRect();let p=e=>{const t=e.targetTouches[0].pageX-l,A=e.targetTouches[0].pageY-c,n=(h/2-t)*a,o=(g/2-A)*a,s=u*a,p=d*a;i.style.top=A-g/2+"px",i.style.left=t-h/2+"px",r.style.backgroundPosition=`${n}px ${o}px`,r.style.backgroundSize=`${s}px ${p}px`};document.addEventListener("touchmove",p),e.addEventListener("touchend",(()=>{document.removeEventListener("touchmove",p),document.removeEventListener("touchstart",t)}))};e.addEventListener("touchstart",t)}else{let t=A=>{const i=document.getElementsByClassName("magnifyingGlass")[0].querySelector(".initial_haver"),n=document.getElementsByClassName("magnifyingGlass")[0].querySelector(".initial_img"),r=document.getElementsByClassName("magnifyingGlass")[0].querySelector(".big"),o=i.getBoundingClientRect().width,s=r.getBoundingClientRect().width,a=s/o;r.style.backgroundImage=`url(${n.src})`;const{left:l,top:c}=n.getBoundingClientRect(),d=n.getBoundingClientRect().height,u=n.getBoundingClientRect().width,{width:h,height:g}=i.getBoundingClientRect();let p=e=>{const t=e.clientX-l,A=e.clientY-c,n=(h/2-t)*a,o=(g/2-A)*a,s=u*a,p=d*a;i.style.top=A-g/2+"px",i.style.left=t-h/2+"px",r.style.backgroundPosition=`${n}px ${o}px`,r.style.backgroundSize=`${s}px ${p}px`};document.addEventListener("mousemove",p),e.addEventListener("mouseout",(()=>{document.removeEventListener("mousemove",p),document.removeEventListener("mouseover",t)}))};e.addEventListener("mouseover",t)}}}},methods:{handleMouseMove(e){}}});const vh=(0,it.Z)(wh,[["render",fh],["__scopeId","data-v-50d58d1c"]]);var yh=vh;const Ch={class:"design_compile_content",id:"design_compile_content"},bh={class:"designOpenrtion_centent",id:"designOpenrtionCentent"},_h=["onMousedown","onClick"],Qh=["src"],Uh=["onMousedown","onClick"],Fh=["src"],xh={class:"designOpenrtion_btn"},Eh=["onMousedown"];function kh(e,t,A,i,s,a){const l=(0,n.Q2)("lazy");return(0,n.wg)(),(0,n.iD)("div",Ch,[(0,n._)("div",bh,[(0,n._)("div",{class:"designOpenrtion_imgMask",style:(0,r.j5)(e.frontBack?.body?.style)},[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.frontBack.back,((t,A)=>((0,n.wg)(),(0,n.iD)("div",{class:"designOpenrtion_print",onMousedown:(0,o.iM)((t=>e.itemMoveMousedown(A,t)),["stop"]),onClick:i=>e.setpitch(t,A),style:(0,r.j5)(e.frontBack.front[A].style)},[(0,n._)("img",{style:(0,r.j5)(t.imageUrl?"":"display:none;"),src:t.imageUrl,alt:""},null,12,Qh)],44,_h)))),256)),(0,n.wy)(((0,n.wg)(),(0,n.iD)("img",{class:"perview_img",style:(0,r.j5)("width:"+e.frontBack?.body?.layersObject?.[0].imageSize?.[0]+";height:"+e.frontBack?.body?.layersObject?.[0].imageSize?.[0]+";"),key:e.designItemDetail.designItemUrl},null,4)),[[l,e.frontBack?.body?.layersObject?.[0].imageUrl||""]]),((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.frontBack.front,((t,A)=>((0,n.wg)(),(0,n.iD)("div",{class:"detail_modal_item_front",onMousedown:(0,o.iM)((t=>e.itemMoveMousedown(A,t)),["stop"]),onClick:i=>e.setpitch(t,A),style:(0,r.j5)(t.style)},[(0,n._)("img",{src:t.imageUrl,alt:""},null,8,Fh)],44,Uh)))),256)),(0,n._)("div",xh,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.frontBack.front,((A,i)=>((0,n.wg)(),(0,n.iD)("ul",{key:A,class:(0,r.C_)([{active:A.designOpenrtionBtn},"designOpenrtion_btn"]),style:(0,r.j5)(A.style),onMousedown:(0,o.iM)((t=>e.itemMoveMousedown(i,t)),["stop"])},[(0,n._)("li",{class:"designOpenrtion_btn_top",onMousedown:t[0]||(t[0]=(0,o.iM)((t=>e.itemSizeMousedown("top",t)),["stop"]))},null,32),(0,n._)("li",{class:"designOpenrtion_btn_bottom",onMousedown:t[1]||(t[1]=(0,o.iM)((t=>e.itemSizeMousedown("bottom",t)),["stop"]))},null,32),(0,n._)("li",{class:"designOpenrtion_btn_left",onMousedown:t[2]||(t[2]=(0,o.iM)((t=>e.itemSizeMousedown("left",t)),["stop"]))},null,32),(0,n._)("li",{class:"designOpenrtion_btn_right",onMousedown:t[3]||(t[3]=(0,o.iM)((t=>e.itemSizeMousedown("right",t)),["stop"]))},null,32)],46,Eh)))),128))])],4),(0,n._)("div",{onClick:t[4]||(t[4]=(...t)=>e.setPreviewData&&e.setPreviewData(...t)),class:"subitOkPreviewBtn"},"OK")]),(0,n._)("div",{class:"designOpenrtion_imgMask_open",onClick:t[5]||(t[5]=(0,o.iM)(((...t)=>e.deleteBorder&&e.deleteBorder(...t)),["stop"]))})])}var Ih=(0,n.aZ)({setup(e){const t=(0,Ne.oR)();let A=(0,n.Fl)((()=>t.state.DesignDetailModule.designItemDetail)),i=(0,n.f3)("current"),r=(0,n.f3)("setRevocation"),o=(0,Y.iH)(4),s=(0,Y.iH)([{centers:{left:0,top:0},style:{left:"0px",top:"0px",right:"auto",bottom:"auto",width:"100px",height:"100px"},transform:{scale:1,rotateZ:0},designOpenrtionBtn:!1}]),a=(0,Y.iH)(""),l=(0,Y.iH)(),c=(0,Y.iH)(0),d=(0,Y.iH)({});return{designItemDetail:A,current:i,printZIndex:o,printStyleList:s,direction:a,imgDom:l,imgDomIndex:c,frontBack:d,setRevocation:r}},data(){return{loadingShow:!1,store:(0,Ne.oR)()}},methods:{init(){this.$parent;this.printStyleList.push({centers:{left:0,top:0},style:{left:"0px",top:"0px",right:"auto",bottom:"auto",width:"100px",height:"100px"},transform:{scale:1,rotateZ:0},designOpenrtionBtn:!1}),this.setImgSize()},async setImgSize(){let e,t=JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail)),A=[],i=[];t.others.forEach((t=>{"Body"==t.type&&(e=t)}));let n=await this.setPostition(e.layersObject[0]?.imageUrl),r=6,o=3;t.clothes.forEach(((e,t)=>{for(let s=e.layersObject.length-1;s>=0;s--)e.layersObject[s].style={top:e.layersObject[s].position?.[0]*n+"px",left:e.layersObject[s].position?.[1]*n+"px",width:e.layersObject[s].imageSize?.[0]*n+"px",height:e.layersObject[s].imageSize?.[1]*n+"px"},e.layersObject[s].centers={left:0,top:0},e.layersObject[s].designOpenrtionBtn=!1,-1==e.layersObject[s].imageCategory.indexOf("back")?(A[t]=e.layersObject[s],A[t].style.zIndex=r-=1):(i[t]=e.layersObject[s],i[t].style.zIndex=o-=1)}));document.getElementsByClassName("design_compile_content")[0].getElementsByClassName("perview_img")[0];e.style={width:e.layersObject[0].imageSize?.[0]*n+"px",height:e.layersObject[0].imageSize?.[1]*n+"px"},this.frontBack={front:A,back:i,body:e}},async setPostition(e){let t=await n(e),A=document.getElementsByClassName("designOpenrtion_imgMask")[0];const i=A?.offsetHeight/t.height;function n(e){return new Promise(((t,A)=>{const i=new Image;i.onload=()=>{t(i)},i.onerror=A,i.src=e}))}return i},setpitch(e,t){this.frontBack.front.forEach((e=>{e.designOpenrtionBtn=!1})),this.frontBack.front[t].designOpenrtionBtn=!0,this.frontBack.front[t].style.zIndex=this.printZIndex++,this.frontBack.back[t].style.zIndex=this.printZIndex},itemMoveMousedown(e,t){this.imgDomIndex=e,this.frontBack.front.forEach((e=>{e.designOpenrtionBtn=!1})),this.imgDom=document.getElementsByClassName("design_compile_content")[0].getElementsByClassName("detail_modal_item_front")[this.imgDomIndex],this.frontBack.front[e].designOpenrtionBtn=!0,this.frontBack.front[e].style.zIndex=this.printZIndex++,this.frontBack.back[e].style.zIndex=this.printZIndex;let A=this.imgDom.getBoundingClientRect(),i=Number(this.frontBack.front[e].style.left.replace(/px/g,"")),n=Number(this.frontBack.front[e].style.top.replace(/px/g,""));this.frontBack.front[e].centers.left=A.x+t.offsetX-i,this.frontBack.front[e].centers.top=A.y+t.offsetY-n,document.addEventListener("mouseup",this.mouseup),document.addEventListener("mousemove",this.moveMousemove)},itemSizeMousedown(e,t){this.direction=e,this.imgDom=document.getElementsByClassName("design_compile_content")[0].getElementsByClassName("detail_modal_item_front")[this.imgDomIndex],this.frontBack.front[this.imgDomIndex].designOpenrtionBtn=!0;let A=this.imgDom.getBoundingClientRect(),i=document.getElementsByClassName("design_compile_content")[0].getElementsByClassName("designOpenrtion_btn_top")[0].offsetWidth/2;"right"==this.direction||"bottom"==this.direction?(this.frontBack.front[this.imgDomIndex].centers.left=A.x+t.offsetX-i,this.frontBack.front[this.imgDomIndex].centers.top=A.y+t.offsetY-i):(this.frontBack.front[this.imgDomIndex].centers.left=A.x+t.offsetX+A.width-i,this.frontBack.front[this.imgDomIndex].centers.top=A.y+t.offsetY+A.height-i),document.addEventListener("mouseup",this.sizeMouseup),document.addEventListener("mousemove",this.sizeMousemove)},moveMousemove(e){this.imgDom.getBoundingClientRect(),document.getElementsByClassName("design_compile_content")[0].getElementsByClassName("designOpenrtion_imgMask")[0].getBoundingClientRect();let t=e.x-this.frontBack.front[this.imgDomIndex].centers.left+"px",A=e.y-this.frontBack.front[this.imgDomIndex].centers.top+"px";this.frontBack.front[this.imgDomIndex].style.left=t,this.frontBack.front[this.imgDomIndex].style.top=A},sizeMousemove(e){let t,A,i=this.imgDom.getBoundingClientRect(),n=this.imgDom.parentNode,r=i.width,o=i.height,s=o/r;"right"==this.direction?(t=e.x-this.frontBack.front[this.imgDomIndex].centers.left,A=(e.x-this.frontBack.front[this.imgDomIndex].centers.left)*s,r=t+"px",o=t*s+"px"):"top"==this.direction?(s=r/o,this.frontBack.front[this.imgDomIndex].style.top="auto",this.frontBack.front[this.imgDomIndex].style.bottom=n.offsetHeight-i.height-this.imgDom.offsetTop+"px",t=(e.x-this.frontBack.front[this.imgDomIndex].centers.left)*s,A=this.frontBack.front[this.imgDomIndex].centers.top-e.y,o=A+"px",r=A*s+"px"):"bottom"==this.direction?(s=r/o,A=e.y-this.frontBack.front[this.imgDomIndex].centers.top,o=A+"px",r=A*s+"px"):"left"==this.direction&&(this.frontBack.front[this.imgDomIndex].style.left="auto",this.frontBack.front[this.imgDomIndex].style.right=n.offsetWidth-i.width-this.imgDom.offsetLeft+"px",t=this.frontBack.front[this.imgDomIndex].centers.left-e.x,r=t+"px",o=t*s+"px"),this.frontBack.front[this.imgDomIndex].style.width=r,this.frontBack.front[this.imgDomIndex].style.height=o},sizeMouseup(e){this.frontBack.front[this.imgDomIndex].style={right:"auto",left:this.imgDom.offsetLeft+"px",bottom:"auto",top:this.imgDom.offsetTop+"px",height:this.imgDom.offsetHeight+"px",width:this.imgDom.offsetWidth+"px",zIndex:this.printZIndex},this.frontBack.back[this.imgDomIndex].style.zIndex=this.printZIndex,document.removeEventListener("mouseup",this.sizeMouseup),document.removeEventListener("mousemove",this.sizeMousemove)},mouseup(e){document.removeEventListener("mouseup",this.mouseup),document.removeEventListener("mousemove",this.moveMousemove)},clearModal(){this.printZIndex=2,this.imgDomIndex=0,this.clothes=[],this.printStyleList.splice(1,this.printStyleList.length-1)},capitalizeFirstLetter(e){return e.charAt(0).toUpperCase()+e.slice(1)},setPreviewData(){this.$emit("setSubmit","preview")},deleteBorder(){this.frontBack?.front?.forEach((e=>{e.designOpenrtionBtn=!1}))},async setPreview(e){let t=this.frontBack.body.layersObject[0].imageSize[0]/this.frontBack.body.style.width.replace(/px/g,"");this.store.state.DesignDetailModule.designItemDetail;e.designSingleItemDTOList.forEach((e=>{let A=this.frontBack.front,i=A[1].imageCategory;A.forEach((A=>{let i=A.imageCategory.split("_")[0];if(e.type==this.capitalizeFirstLetter(i)){let i=(A?.style?.top.replace(/px/g,"")*t).toFixed(0)-A?.position[0],n=(A?.style?.left.replace(/px/g,"")*t).toFixed(0)-A?.position[1],r=A?.imageSize?Number((A?.style?.width.replace(/px/g,"")*t/(A?.imageSize[0]/A.scale)).toFixed(2)):1;e.scale=r;let o=0==i?e.offset[1]:i+e.offset[1],s=0==n?e.offset[0]:n+e.offset[0];e.offset=[s,o]}})),e.type==this.capitalizeFirstLetter(i)&&(e.scale=A?.imageSize?Number((A?.style?.width.replace(/px/g,"")*t/A?.imageSize[0]).toFixed(2)):1)})),Te.V.axiosPost(Te.V.httpUrls.designSingle,e).then((t=>{this.$parent.loadingShow=!1;let A=JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail));A.designItemUrl=t.designItemUrl,A.ifSubmit=!0,A.currentFullBodyView=t.currentFullBodyView,t.clothes.forEach((e=>{A.clothes.forEach((t=>{e.type===t.type&&(t.layersObject=e.layersObject)}))})),this.$emit("setDesignCoverage"),this.store.commit("setDesignItemDetail",A),this.setRevocation(A,e)})).catch((e=>{}))}}});const Dh=(0,it.Z)(Ih,[["render",kh],["__scopeId","data-v-8de3d958"]]);var Sh=Dh;const Hh={class:"design_compile_content",id:"design_compile_content"},Lh={class:"designOpenrtion_centent",id:"designOpenrtionCentent"},Oh=["onTouchstart","onClick"],Mh=["src"],Th=["onTouchstart","onClick"],Nh=["src"],Kh={class:"designOpenrtion_btn"},Ph=["onTouchstart"];function Rh(e,t,A,i,s,a){const l=(0,n.Q2)("lazy");return(0,n.wg)(),(0,n.iD)("div",Hh,[(0,n._)("div",Lh,[(0,n._)("div",{class:"designOpenrtion_imgMask",style:(0,r.j5)(e.frontBack?.body?.style)},[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.frontBack.back,((t,A)=>((0,n.wg)(),(0,n.iD)("div",{class:"designOpenrtion_print",onTouchstart:(0,o.iM)((t=>e.itemMoveMousedown(A,t)),["stop"]),onClick:i=>e.setpitch(t,A),style:(0,r.j5)(e.frontBack.front[A].style)},[(0,n._)("img",{style:(0,r.j5)(t.imageUrl?"":"display:none;"),src:t.imageUrl,alt:""},null,12,Mh)],44,Oh)))),256)),(0,n.wy)(((0,n.wg)(),(0,n.iD)("img",{class:"perview_img",style:(0,r.j5)("width:"+e.frontBack?.body?.layersObject?.[0].imageSize?.[0]+";height:"+e.frontBack?.body?.layersObject?.[0].imageSize?.[0]+";"),key:e.designItemDetail.designItemUrl},null,4)),[[l,e.frontBack?.body?.layersObject?.[0].imageUrl||""]]),((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.frontBack.front,((t,A)=>((0,n.wg)(),(0,n.iD)("div",{class:"detail_modal_item_front",onTouchstart:(0,o.iM)((t=>e.itemMoveMousedown(A,t)),["stop"]),onClick:i=>e.setpitch(t,A),style:(0,r.j5)(t.style)},[(0,n._)("img",{src:t.imageUrl,alt:""},null,8,Nh)],44,Th)))),256)),(0,n._)("div",Kh,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.frontBack.front,((A,i)=>((0,n.wg)(),(0,n.iD)("ul",{key:A,class:(0,r.C_)([{active:A.designOpenrtionBtn},"designOpenrtion_btn"]),style:(0,r.j5)(A.style),onTouchstart:(0,o.iM)((t=>e.itemMoveMousedown(i,t)),["stop"])},[(0,n._)("li",{class:"designOpenrtion_btn_top",onTouchstart:t[0]||(t[0]=(0,o.iM)((t=>e.itemSizeMousedown("top",t)),["stop"]))},null,32),(0,n._)("li",{class:"designOpenrtion_btn_bottom",onTouchstart:t[1]||(t[1]=(0,o.iM)((t=>e.itemSizeMousedown("bottom",t)),["stop"]))},null,32),(0,n._)("li",{class:"designOpenrtion_btn_left",onTouchstart:t[2]||(t[2]=(0,o.iM)((t=>e.itemSizeMousedown("left",t)),["stop"]))},null,32),(0,n._)("li",{class:"designOpenrtion_btn_right",onTouchstart:t[3]||(t[3]=(0,o.iM)((t=>e.itemSizeMousedown("right",t)),["stop"]))},null,32)],46,Ph)))),128))])],4),(0,n._)("div",{onClick:t[4]||(t[4]=(...t)=>e.setPreviewData&&e.setPreviewData(...t)),class:"subitOkPreviewBtn"},"OK")]),(0,n._)("div",{class:"designOpenrtion_imgMask_open",onClick:t[5]||(t[5]=(0,o.iM)(((...t)=>e.deleteBorder&&e.deleteBorder(...t)),["stop"]))})])}var Vh=(0,n.aZ)({setup(e){const t=(0,Ne.oR)();let A=(0,n.Fl)((()=>t.state.DesignDetailModule.designItemDetail)),i=(0,n.f3)("current"),r=(0,n.f3)("setRevocation"),o=(0,Y.iH)(4),s=(0,Y.iH)([{centers:{left:0,top:0},style:{left:"0px",top:"0px",right:"auto",bottom:"auto",width:"100px",height:"100px"},transform:{scale:1,rotateZ:0},designOpenrtionBtn:!1}]),a=(0,Y.iH)(""),l=(0,Y.iH)(),c=(0,Y.iH)(0),d=(0,Y.iH)({});return{designItemDetail:A,current:i,printZIndex:o,printStyleList:s,direction:a,imgDom:l,imgDomIndex:c,frontBack:d,setRevocation:r}},data(){return{loadingShow:!1,store:(0,Ne.oR)()}},methods:{init(){this.$parent;this.printStyleList.push({centers:{left:0,top:0},style:{left:"0px",top:"0px",right:"auto",bottom:"auto",width:"100px",height:"100px"},transform:{scale:1,rotateZ:0},designOpenrtionBtn:!1}),this.setImgSize()},async setImgSize(){let e,t=JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail)),A=[],i=[];t.others.forEach((t=>{"Body"==t.type&&(e=t)}));let n=await this.setPostition(e.layersObject[0]?.imageUrl),r=6,o=3;t.clothes.forEach(((e,t)=>{for(let s=e.layersObject.length-1;s>=0;s--)e.layersObject[s].style={top:e.layersObject[s].position?.[0]*n+"px",left:e.layersObject[s].position?.[1]*n+"px",width:e.layersObject[s].imageSize?.[0]*n+"px",height:e.layersObject[s].imageSize?.[1]*n+"px"},e.layersObject[s].centers={left:0,top:0},e.layersObject[s].designOpenrtionBtn=!1,-1==e.layersObject[s].imageCategory.indexOf("back")?(A[t]=e.layersObject[s],A[t].style.zIndex=r-=1):(i[t]=e.layersObject[s],i[t].style.zIndex=o-=1)}));document.getElementsByClassName("design_compile_content")[0].getElementsByClassName("perview_img")[0];e.style={width:e.layersObject[0].imageSize?.[0]*n+"px",height:e.layersObject[0].imageSize?.[1]*n+"px"},this.frontBack={front:A,back:i,body:e}},async setPostition(e){let t=await n(e),A=document.getElementsByClassName("designOpenrtion_imgMask")[0];const i=A?.offsetHeight/t.height;function n(e){return new Promise(((t,A)=>{const i=new Image;i.onload=()=>{t(i)},i.onerror=A,i.src=e}))}return i},setpitch(e,t){this.frontBack.front.forEach((e=>{e.designOpenrtionBtn=!1})),this.frontBack.front[t].designOpenrtionBtn=!0,this.frontBack.front[t].style.zIndex=this.printZIndex++,this.frontBack.back[t].style.zIndex=this.printZIndex},itemMoveMousedown(e,t){this.imgDomIndex=e,this.frontBack.front.forEach((e=>{e.designOpenrtionBtn=!1})),this.imgDom=document.getElementsByClassName("design_compile_content")[0].getElementsByClassName("detail_modal_item_front")[this.imgDomIndex],this.frontBack.front[e].designOpenrtionBtn=!0,this.frontBack.front[e].style.zIndex=this.printZIndex++,this.frontBack.back[e].style.zIndex=this.printZIndex;let A=this.imgDom.getBoundingClientRect(),i=Number(this.frontBack.front[e].style.left.replace(/px/g,"")),n=Number(this.frontBack.front[e].style.top.replace(/px/g,""));this.frontBack.front[e].centers.left=A.x+t.changedTouches[0].pageX-this.imgDom.getBoundingClientRect().left-i,this.frontBack.front[e].centers.top=A.y+t.changedTouches[0].pageY-this.imgDom.getBoundingClientRect().top-n,document.addEventListener("touchend",this.touchend),document.addEventListener("touchmove",this.moveMousemove)},itemSizeMousedown(e,t){this.direction=e,this.imgDom=document.getElementsByClassName("design_compile_content")[0].getElementsByClassName("detail_modal_item_front")[this.imgDomIndex],this.frontBack.front[this.imgDomIndex].designOpenrtionBtn=!0;let A=this.imgDom.getBoundingClientRect(),i=document.getElementsByClassName("design_compile_content")[0].getElementsByClassName("designOpenrtion_btn_top")[0].offsetWidth/2;"right"==this.direction||"bottom"==this.direction?(this.frontBack.front[this.imgDomIndex].centers.left=A.x+t.changedTouches[0].pageX-this.imgDom.getBoundingClientRect().left-i,this.frontBack.front[this.imgDomIndex].centers.top=A.y+t.changedTouches[0].pageY-this.imgDom.getBoundingClientRect().top-i):(this.frontBack.front[this.imgDomIndex].centers.left=A.x+t.changedTouches[0].pageX-this.imgDom.getBoundingClientRect().left+A.width-i,this.frontBack.front[this.imgDomIndex].centers.top=A.y+t.changedTouches[0].pageY-this.imgDom.getBoundingClientRect().top+A.height-i,this.frontBack.front[this.imgDomIndex].centers.right=this.imgDom.parentNode.offsetWidth-A.width-this.imgDom.offsetLeft,this.frontBack.front[this.imgDomIndex].centers.bottom=this.imgDom.parentNode.offsetHeight-A.height-this.imgDom.offsetTop),document.addEventListener("touchend",this.sizeMouseup),document.addEventListener("touchmove",this.sizeMousemove)},moveMousemove(e){this.imgDom.getBoundingClientRect(),document.getElementsByClassName("design_compile_content")[0].getElementsByClassName("designOpenrtion_imgMask")[0].getBoundingClientRect();let t=e.changedTouches[0].pageX-this.frontBack.front[this.imgDomIndex].centers.left+"px",A=e.changedTouches[0].pageY-this.frontBack.front[this.imgDomIndex].centers.top+"px";this.frontBack.front[this.imgDomIndex].style.left=t,this.frontBack.front[this.imgDomIndex].style.top=A},sizeMousemove(e){let t,A,i=this.imgDom.getBoundingClientRect(),n=(this.imgDom.parentNode,i.width),r=i.height,o=r/n;"right"==this.direction?(t=e.changedTouches[0].pageX-i.left,A=(e.changedTouches[0].pageX-i.left)*o,n=t+"px",r=t*o+"px"):"top"==this.direction?(o=n/r,this.frontBack.front[this.imgDomIndex].style.top="auto",this.frontBack.front[this.imgDomIndex].style.bottom=this.frontBack.front[this.imgDomIndex].centers.bottom+"px",t=(e.changedTouches[0].pageX-i.left)*o,A=this.frontBack.front[this.imgDomIndex].centers.top-e.changedTouches[0].pageY,r=A+"px",n=A*o+"px"):"bottom"==this.direction?(o=n/r,A=e.changedTouches[0].pageY-i.top,r=A+"px",n=A*o+"px"):"left"==this.direction&&(t=this.frontBack.front[this.imgDomIndex].centers.left-e.changedTouches[0].pageX,this.frontBack.front[this.imgDomIndex].style.left="auto",this.frontBack.front[this.imgDomIndex].style.right=this.frontBack.front[this.imgDomIndex].centers.right+"px",console.log(this.frontBack.front[this.imgDomIndex].centers.right),n=t+"px",r=t*o+"px"),this.frontBack.front[this.imgDomIndex].style.width=n,this.frontBack.front[this.imgDomIndex].style.height=r},sizeMouseup(e){this.frontBack.front[this.imgDomIndex].style={right:"auto",left:this.imgDom.offsetLeft+"px",bottom:"auto",top:this.imgDom.offsetTop+"px",height:this.imgDom.offsetHeight+"px",width:this.imgDom.offsetWidth+"px",zIndex:this.printZIndex},this.frontBack.back[this.imgDomIndex].style.zIndex=this.printZIndex,document.removeEventListener("touchend",this.sizeMouseup),document.removeEventListener("touchmove",this.sizeMousemove)},touchend(e){document.removeEventListener("touchend",this.touchend),document.removeEventListener("touchmove",this.moveMousemove)},clearModal(){this.printZIndex=2,this.imgDomIndex=0,this.clothes=[],this.printStyleList.splice(1,this.printStyleList.length-1)},capitalizeFirstLetter(e){return e.charAt(0).toUpperCase()+e.slice(1)},setPreviewData(){this.$emit("setSubmit","preview")},deleteBorder(){this.frontBack?.front?.forEach((e=>{e.designOpenrtionBtn=!1}))},async setPreview(e){let t=this.frontBack.body.layersObject[0].imageSize[0]/this.frontBack.body.style.width.replace(/px/g,"");this.store.state.DesignDetailModule.designItemDetail;e.designSingleItemDTOList.forEach((e=>{let A=this.frontBack.front,i=A[1].imageCategory;A.forEach((A=>{let i=A.imageCategory.split("_")[0];if(e.type==this.capitalizeFirstLetter(i)){let i=(A?.style?.top.replace(/px/g,"")*t).toFixed(0)-A?.position[0],n=(A?.style?.left.replace(/px/g,"")*t).toFixed(0)-A?.position[1],r=A?.imageSize?Number((A?.style?.width.replace(/px/g,"")*t/(A?.imageSize[0]/A.scale)).toFixed(2)):1;e.scale=r;let o=0==i?e.offset[1]:i+e.offset[1],s=0==n?e.offset[0]:n+e.offset[0];e.offset=[s,o]}})),e.type==this.capitalizeFirstLetter(i)&&(e.scale=A?.imageSize?Number((A?.style?.width.replace(/px/g,"")*t/A?.imageSize[0]).toFixed(2)):1)})),Te.V.axiosPost(Te.V.httpUrls.designSingle,e).then((t=>{this.$parent.loadingShow=!1;let A=JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail));A.designItemUrl=t.designItemUrl,A.ifSubmit=!0,A.currentFullBodyView=t.currentFullBodyView,t.clothes.forEach((e=>{A.clothes.forEach((t=>{e.type===t.type&&(t.layersObject=e.layersObject)}))})),this.$emit("setDesignCoverage"),this.store.commit("setDesignItemDetail",A),this.setRevocation(A,e)})).catch((e=>{}))}}});const Gh=(0,it.Z)(Vh,[["render",Rh],["__scopeId","data-v-be447912"]]);var zh=Gh,jh=(0,n.aZ)({components:{Draggable:en(),DesignDetailAlter:ah,setDesignItem:Sh,magnifyingGlass:yh,setDesignItemMobile:zh},setup(){const e=(0,Ne.oR)();let t=(0,n.Fl)((()=>e.state.DesignDetailModule.designItemDetail)),A=(0,Y.iH)({design:{},index:0,collectionList:[],type:""}),i=(0,Y.iH)({left:"200px",top:"100px"}),r=(0,Y.iH)(0),o=(0,Y.iH)({});(0,n.JJ)("current",o);let s=(0,Y.iH)({}),a=(0,Y.iH)(!1),l=(0,Y.iH)(),c=(0,Y.iH)(),d={},u=(0,Y.iH)(!1),h=(0,Y.iH)({}),g=(0,Y.iH)(!1),p=(0,Y.iH)(),f=(0,Y.iH)(),m=(0,n.Fl)((()=>e.state.Guide.guide));(0,n.JJ)("driver__",m);let B=(0,Re.S0)(),{t:w}=(0,oA.QT)();return{designItemDetail:t,store:e,parentData:A,others:i,currentIndex:r,current:o,frontBack:s,body:a,designItemId:l,designOutfitId:c,userInfo:d,ifSubmit:u,designItemDetailUrl:h,setRevocationShow:g,oppositeRevocationShow:p,revocationShow:f,driver__:m,moible:B,t:w}},data(){return{loadingShow:!1,designDetailShow:!1,designShowPrview:1,generateHighDesignImg:"",imgDesignImg:!0,designOrder:!1}},watch:{designItemDetail:{handler:async function(e,t){let A=JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail));this.ifSubmit=!!A.ifSubmit&&A.ifSubmit,this.current=JSON?.parse(JSON?.stringify(A?.clothes?.[this?.currentIndex])),0!=A.others[0].layersObject.length?this.body=!1:this.body=!0,await this.setImgSize(),this.designItemDetailUrl=A.currentFullBodyView?A.currentFullBodyView:A.designItemUrl}},currentIndex:{handler:function(e){}},designDetailShow:{handler:function(e){}}},provide(){return{setRevocation:this.setRevocation}},mounted(){let e=()=>{this.removeRevocation(),window.removeEventListener("beforeunload",e)};window.addEventListener("beforeunload",e);let t=(0,Pe.ej)("userInfo");this.userInfo=JSON.parse(t)},methods:{openCurrent(e){let t=this.$refs.DesignDetailAlter;t.init(e)},closeModal(){if(1==this.designShowPrview){this.designDetailShow=!1,this.designOrder=!1;let e=this.$refs.DesignDetailAlter;e.terminate(),this.frontBack={}}else this.designShowPrview=1,this.designItemDetailUrl={}},showDesignDetailModal(e,t){this.designItemId=e.design.designItemId,this.designOutfitId=e.design.designOutfitId;let A=Te.V.httpUrls.getDesignDetail+`?designItemId=${e.design.designItemId}&designPythonOutfitId=${e.design.designOutfitId}`;this.parentData=e,this.loadingShow=!0,Te.V.axiosGet(A).then((e=>{e.clothes.forEach((e=>{let t;-1==e.layersObject[0].imageCategory.indexOf("back")&&(t=e.layersObject[0],e.layersObject[0]=e.layersObject[1],e.layersObject[1]=t),null==e.printObject.prints&&(e.printObject.prints=[{}])})),this.store.commit("setDesignItemDetail",e),this.removeRevocation(),this.setRevocation(e,""),0!=e.others[0].layersObject.length?this.body=!1:this.body=!0,"setDesignItem"==t||(this.designShowPrview=1),this.setImgSize(),this.generateHighDesignImg=e.highDesignUrl,this.designDetailShow=!0,this.loadingShow=!1,this.driver__.driver&&(0,n.Y3)().then((()=>{AA.moveTo(18)}))})).catch((e=>{this.loadingShow=!1}))},async setImgSize(){let e,t,A=JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail)),i=[],n=[];if(this.body)A.clothes.forEach(((e,t)=>{for(let A=e.layersObject.length-1;A>=0;A--)-1==e.layersObject[A].imageCategory.indexOf("back")?i[t]=e.layersObject[A]:n[t]=e.layersObject[A]}));else{A?.others?.forEach((t=>{"Body"==t.type&&(e=t)}));let t=await(this?.setPostition(e?.layersObject?.[0]?.imageUrl)),r=6,o=3;A.clothes.forEach(((e,A)=>{for(let s=e.layersObject.length-1;s>=0;s--)e.layersObject[s].style={top:e.layersObject[s].position?.[0]*t+"px",left:e.layersObject[s].position?.[1]*t+"px",width:e.layersObject[s].imageSize?.[0]*t+"px",height:e.layersObject[s].imageSize?.[1]*t+"px"},e.layersObject[s].centers={left:0,top:0},e.layersObject[s].designOpenrtionBtn=!1,-1==e.layersObject[s].imageCategory.indexOf("back")?(i[A]=e.layersObject[s],i[A].style.zIndex=r-=1):(n[A]=e.layersObject[s],n[A].style.zIndex=o-=1)})),e.style={width:e.layersObject[0].imageSize?.[0]*t+"px",height:e.layersObject[0].imageSize?.[1]*t+"px"}}let r=this;window.onresize=()=>(()=>{clearTimeout(t),t=setTimeout((async()=>{await r.setImgSize()}),500)})(),this.frontBack={front:i,back:n,body:e}},setDesignCoverage(e){let{design:t,index:A,collectionList:i}=this.parentData,n=0,r={};i.forEach(((e,t)=>{e.designItemId===this.designItemId&&(n=t)})),r=i[n],n=this.parentData.index;this.designShowPrview=1,this.loadingShow=!1},removeRevocation(){sessionStorage.removeItem("oppositeRevocation"),sessionStorage.removeItem("revocation"),this.setRevocationShow=!1},setRevocation(e,t){let A=JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail)),i=JSON.parse(sessionStorage.getItem("revocation"));JSON.parse(sessionStorage.getItem("oppositeRevocation"));i?.[0]?.designItemDetail.designItemId==A.designItemId&&void 0!=i?.[0]?.designItemDetail.designItemId||(i=[]);let n={designItemDetail:e,data:t||""};i.push(n),this.revocationShow=i?.length,this.oppositeRevocationShow=0,sessionStorage.setItem("revocation",JSON.stringify(i)),sessionStorage.setItem("oppositeRevocation",JSON.stringify([]))},revocation(){let e=JSON.parse(sessionStorage.getItem("oppositeRevocation")),t=JSON.parse(sessionStorage.getItem("revocation"));e.push(t[t.length-1]),this.oppositeRevocationShow=e.length,t.splice(t.length-1,1),this.revocationShow=t.length,this.revocationShow>1&&this.store.commit("setDesignPreviewData",t[t.length-1].data),this.store.commit("setDesignItemDetail",t[t.length-1].designItemDetail),sessionStorage.setItem("oppositeRevocation",JSON.stringify(e)),sessionStorage.setItem("revocation",JSON.stringify(t))},oppositeRevocation(){let e=JSON.parse(sessionStorage.getItem("oppositeRevocation")),t=JSON.parse(sessionStorage.getItem("revocation"));this.store.commit("setDesignPreviewData",e[e.length-1].data),this.store.commit("setDesignItemDetail",e[e.length-1].designItemDetail),t.push(e[e.length-1]),this.revocationShow=t.length,e.splice(e.length-1,1),this.oppositeRevocationShow=e.length,sessionStorage.setItem("oppositeRevocation",JSON.stringify(e)),sessionStorage.setItem("revocation",JSON.stringify(t))},setSubmitItem(e){let t=JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail)),A=[];t.clothes.forEach((e=>{let t={color:`${e.color.r} ${e.color.g} ${e.color.b}`,id:e.id,path:e.minIOPath,offset:null==e.layersObject[1].offset?[0,0]:e.layersObject[1].offset,scale:e.layersObject[1].scale?e.layersObject[1].scale:1,printObject:{ifSingle:null!=e.printObject.ifSingle&&e.printObject.ifSingle,prints:e?.printObject?.prints[0]?.minIOPath?e?.printObject?.prints:[]},type:e.type};A.push(t)}));let i={designItemId:t.designItemId,designSingleItemDTOList:A,isPreview:!1,ifSubmit:t.isPreview,processId:String(this.userInfo?.userId),timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone};return"preview"==e?i.isPreview=!0:(i.isPreview=!1,delete i.ifSubmit),this.store.commit("setDesignPreviewData",i),i},async setSubmit(e){let t=(0,Re.S0)()?this.$refs.setDesignItemMobile:this.$refs.setDesignItem,A=this.setSubmitItem(e);this.loadingShow=!0,await t.setPreview(A)},async submit(){let e=this.setSubmitItem("");this.loadingShow=!0,Te.V.axiosPost(Te.V.httpUrls.designSingle,e).then((e=>{this.loadingShow=!1;let t=this.store.state.HomeStoreModule.designCollectionList,A=this.store.state.HomeStoreModule.likeDesignCollectionList;t.forEach((t=>{t.designItemId==e.designItemId&&(t.designOutfitUrl=e.designItemUrl)})),A.forEach((t=>{t.designItemId==e.designItemId&&(t.designOutfitUrl=e.designItemUrl)})),this.closeModal(),this.store.commit("setDesignCollectionList",t),this.store.commit("setLikeDesignCollectionList",A)})).catch((e=>{this.loadingShow=!1}))},async setPostition(e){let t=await n(e),A=document.getElementsByClassName("detail_modal_model")[0];const i=A?.offsetWidth/t.width;function n(e){return new Promise(((t,A)=>{const i=new Image;i.onload=()=>{t(i)},i.onerror=A,i.src=e}))}return i},changeDesignItem(e){let{design:t,index:A,collectionList:i}=this.parentData,n={},r=0;this.designOrder=!1,this.removeRevocation();let o=this.$refs.DesignDetailAlter;o.terminate(),r="last"===e?A>0?this.parentData.index-1:this.parentData.collectionList.length-1:A<this.parentData.collectionList.length-1?this.parentData.index+1:0,n=i[r];let s={design:n,index:r,collectionList:i};this.showDesignDetailModal(s,"")},showDesignImgDetail(e){JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail));this.designShowPrview=e;let t=(0,Re.S0)()?this.$refs.setDesignItemMobile:this.$refs.setDesignItem;3==this.designShowPrview&&t.init()},mousedownDesignImg(){this.imgDesignImg=!1},mouseupDesignImg(){this.imgDesignImg=!0},clothesOpen(e){this.clothesDetail("",e)},clothesOpenActive(e){this.designItemDetail.clothes.forEach((e=>{e.clothesOpen=!1})),this.designItemDetail.clothes[e].clothesOpen=!0},clothesDetail(e,t){let A=JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail));this.currentIndex=t,this.designOrder=!0,this.current=A.clothes[this.currentIndex],this.clothesOpenActive(t);let i=this.setSubmitItem("preview");i.designSingleItemDTOList[this.currentIndex]={color:`${this.current.color.r} ${this.current.color.g} ${this.current.color.b}`,id:this.current.id,path:this.current.minIOPath?this.current.minIOPath:"",offset:this.current.layersObject[1].offset?this.current.layersObject[1].offset:[0,0],scale:this.current.layersObject[1].scale?this.current.layersObject[1].scale:1,printObject:{ifSingle:null!=this.current?.printObject?.ifSingle&&this.current?.printObject?.ifSingle,prints:this.current?.printObject?.prints[0]?.minIOPath?this.current?.printObject?.prints:[]},type:this.current.type},this.store.commit("setDesignPreviewData",i);let n=this.$refs.DesignDetailAlter;n.changePlace()},redesignItem(){let e=JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail));delete e.designItemUrl;let t=e.clothes.map((e=>e.type)),A={...e,priority:t,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone};this.loadingShow=!0,Te.V.axiosPost(Te.V.httpUrls.designSingle,A).then((e=>{this.parentData.design.designItemUrl=e.designItemUrl,this.$emit("finishRedesign",this.parentData),this.closeModal(),this.loadingShow=!1})).catch((e=>{this.loadingShow=!1}))}}});const Zh=(0,it.Z)(jh,[["render",rc]]);var Wh=Zh,Yh=A(9206),Xh=A(5733),Jh=A.n(Xh);const $h=A(3162);var qh=(0,n.aZ)({components:{HeaderComponent:X.Z,CollectionModal:pa,NewCollectionReview:Ra,DesignDetail:Wh,ExportNewCoolection:fl,RobotAssist:Yh.Z,draggable:en()},setup(){const e=(0,Ne.oR)();let t=(0,n.Fl)((()=>e.state.HomeStoreModule.likeDesignCollectionList)),A=(0,n.Fl)((()=>e.state.HomeStoreModule.designCollectionList)),i=(0,n.Fl)((()=>e.state.HomeStoreModule.userGroupId)),r=(0,n.Fl)((()=>e.state.HomeStoreModule.designCollectionId)),o=(0,n.Fl)((()=>e.state.HomeStoreModule.designId)),s={width:"",height:""},a={width:"",height:""},l=(0,Y.iH)([{name:(0,oA.QT)().t("HomeView.moodboard"),change:!0,noChange:!0,value:"moodboardFiles"},{name:(0,oA.QT)().t("HomeView.printboard"),change:!0,noChange:!1,value:"printboardFiles"},{name:(0,oA.QT)().t("HomeView.colorboard"),change:!0,noChange:!1,value:"colorBoards"},{name:(0,oA.QT)().t("HomeView.sketchboard"),change:!0,noChange:!1,value:"sketchboardFiles"},{name:(0,oA.QT)().t("HomeView.mannequins"),change:!0,noChange:!0,value:""}]);(0,n.JJ)("exportNav",l);let c=(0,Y.iH)(!1),d={},{t:u}=(0,oA.QT)(),h=(0,n.Fl)((()=>e.state.Guide.guide));return{store:e,likeDesignCollectionList:t,designCollectionList:A,userGroupId:i,designCollectionId:r,designId:o,contentImgMax:s,contentImg:a,exportNav:l,isShowOperate:c,userInfo:d,t:u,driver__:h}},data(){return{isHaveReviewCollection:!1,isFinishLoading:!1,isShowMark:!1,indicator:(0,n.h)(Le.Z,{style:{fontSize:"4.8rem",marginTop:"3rem",color:"#341e57"},spin:!0}),designProgress:0,showDesignMark:!1,startDesignType:"design",disLikeLoading:!1,likeLoading:!1,dragIdx:0,designRandom:""}},mounted(){rA();let e=(0,Pe.ej)("userInfo");this.userInfo=JSON.parse(e),this.store.dispatch("get_clothingType");let t=this.$route.params.noRefresh;if(t){let e=this.store.state.UploadFilesModule.allBoardData.colorBoards||[];e.length&&(this.isHaveReviewCollection=!0)}else this.store.commit("setUserGroupId",this.$route.params.id),this.store.commit("clearAllCollection");this.$route.params.id?this.getHistoryChoose(this.$route.params.id,"normal"):this.store.commit("clearAllData")},directives:{mousewheel:{mounted(e){let t=document.getElementsByClassName("right_content_block")[0],A=document.getElementsByClassName("right_content_body"),i=()=>{t.classList.add("active")},n=()=>{t.classList.remove("active")};A.forEach((e=>{e.addEventListener("mouseover",i),e.addEventListener("mouseleave",n)})),e.addEventListener("wheel",(t=>{let A=0;A=t.deltaY>0?25:-25,e.scrollBy(A,0)}),!0)}}},methods:{addTeam(e){this.likeDesignCollectionList.push(e)},dragstart(e,t){this.dragIdx=t},dragDrop(e,t){let A=this.likeDesignCollectionList,i=A[this.dragIdx];A.splice(this.dragIdx,1),A.splice(t,0,i)},formatter(e){return`${e}%`},startNewCollection(){let e=this.$refs.collectionModal;this.store.commit("clearAllData"),e.changeCollectionModal(!0),console.log(this.driver__.driver),this.driver__.driver&&(0,n.Y3)().then((()=>{AA.moveNext()}))},recollection(){let e=this.$refs.collectionModal;this.store.commit("clearAllData"),e.changeCollectionModal(!0),e.recollection()},finishCollection(){let e=this;e.isFinishLoading=!0,this.getPantongName().then((t=>{e.store.commit("setAllBoardData"),e.isHaveReviewCollection=!0,e.isFinishLoading=!1})).catch((t=>{e.isFinishLoading=!1}))},getPantongName(){let e=this.store.state.UploadFilesModule.colorBoards,t=[];for(let A of e){let e=[A.rgbValue.r,A.rgbValue.g,A.rgbValue.b],i=(0,Re.py)(e);A.hsv=i[0]+i[1]+i[2],t.push({h:i[0],s:i[1],v:i[2]})}return new Promise(((A,i)=>{Te.V.axiosPost(Te.V.httpUrls.getRgbByHsvBatch,t).then((t=>{t&&(t.forEach(((t,A)=>{e[A].id=t.id,e[A].tcx=t.tcx,e[A].name=t.name})),this.store.commit("setColorboardList",e),A())})).catch((e=>{i()}))}))},getContainer(){return document.querySelector("#system_silder")},designNewCollection(){let{colorBoards:e}=this.store.state.UploadFilesModule.allBoardData;if(!e||e?.length<1)return void Oe.ZP.info(this.t("HomeView.jsContent1"));let t=this.getDesignData("");this.driver__.driver&&(0,n.Y3)().then((()=>{AA.moveNext()})),Te.V.axiosPost(Te.V.httpUrls.designCollection,t).then((e=>{e&&(this.store.commit("setDesignCollectionList",e.designCollectionItems),this.store.commit("setLikeDesignCollectionList",[]),this.store.commit("deleteUserGroupId"),this.store.commit("setDesignCollectionId",e.collectionId),this.store.commit("setDesignId",e.designId),this.startDesignType="design")})).catch((e=>{this.showDesignMark=!1})),this.getDesignProcess(this.designRandom)},resDesignCollection(){let{colorBoards:e}=this.store.state.UploadFilesModule.allBoardData;if(!e||e?.length<1)return void Oe.ZP.info(this.t("HomeView.jsContent2"));let t=this.getDesignData(this.designCollectionId);Te.V.axiosPost(Te.V.httpUrls.reDesignCollection,t).then((e=>{e&&(this.store.commit("setDesignCollectionList",e.designCollectionItems),this.startDesignType="resDesign")})).catch((e=>{this.showDesignMark=!1})),this.getDesignProcess(this.designRandom)},getDesignData(e){let{moodboardFiles:t,printboardFiles:A,disposeMoodboard:i,colorBoards:n,sketchboardFiles:r,marketingSketchFiles:o,moodTemplateId:s}=this.store.state.UploadFilesModule.allBoardData;this.randomNum();let a=this.store.state.Workspace.workspace,l={colorBoards:this.getColorBoard(n),moodBoards:this.getBoardId(t),printBoards:this.getPrintId(A),sketchBoards:this.getSkecthBoard(r),switchCategory:a.overallSingle?a.position:"",singleOverall:a.overallSingle?"single":"overall",systemScale:a.systemDesignerPercentage?.01*a.systemDesignerPercentage:.3,templateId:a.mannequinId?a.mannequinId:"",modelType:a.mannequinType,modelSex:a.sex,moodTemplateId:i[0]?String(i[0].id):null,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,processId:this.designRandom};return e&&(l.collectionId=e),this.designProgress=0,this.showDesignMark=!0,l},getDesignProcess(e){Te.V.axiosGet(Te.V.httpUrls.designProcess,{params:{processId:e}}).then((t=>{this.showDesignMark&&(this.designProgress=t,100==t&&setTimeout((()=>{this.showDesignMark=!1,this.designProgress=0,this.driver__.driver&&(0,n.Y3)().then((()=>{AA.moveNext()}))}),500),setTimeout((()=>{this.getDesignProcess(e)}),500))}))},randomNum(){this.designRandom=String(Math.floor(9e15*Math.random())+1e15)},getBoardId(e){let t=e.map((e=>{let t={id:e.resData.id,designType:e.resData.designType};return t}));return t},getPrintId(e){let t=e.map((e=>{let t={id:e.resData.id,designType:e.resData.designType,isPin:e.pin?1:0};return t}));return t},getSkecthBoard(e){let t=e.map((e=>{let t={designType:e.resData.designType,isPin:e.pin?1:0,level2Type:e.category,sketchBoardId:e.resData.id};return t}));return t},getColorBoard(e){let t=e.map((e=>{let t={id:e.id,name:e.name,tcx:e.tcx,rgbValue:""};return t.rgbValue=`${e.rgbValue.r} ${e.rgbValue.g} ${e.rgbValue.b}`,t}));return t},likeDesignCollection(e,t){let A={designItemId:e.designItemId,userGroupId:this.userGroupId,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,designPythonOutfitId:e.designOutfitId?e.designOutfitId:e.designPythonOutfitId};this.likeLoading||(this.likeLoading=!0,Te.V.axiosPost(Te.V.httpUrls.designLike,A).then((A=>{A&&(this.store.commit("setUserGroupId",A.userGroupId),e.groupDetailId=A.groupDetailId,this.store.commit("addLikeDesignCollectionList",e),this.store.commit("deleteDesignCollectionList",t),"resDesign"===this.startDesignType&&this.getHistoryChoose(this.userGroupId,"like")),this.likeLoading=!1})).catch((e=>{this.likeLoading=!1})))},dislikeDesignCollection(e,t){let A={designId:e.designId||this.designId,designPythonOutfitId:e.designOutfitId,groupDetailId:e.groupDetailId,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone};this.disLikeLoading||(this.disLikeLoading=!0,Te.V.axiosPost(Te.V.httpUrls.designDislike,A).then((A=>{A&&(this.store.commit("addDesignCollectionList",e),this.store.commit("deleteLikeDesignCollectionList",t),this.likeDesignCollectionList.length||this.store.commit("deleteUserGroupId")),this.disLikeLoading=!1})).catch((e=>{this.disLikeLoading=!1})))},getHistoryChoose(e,t){this.isShowMark=!0;let A=Te.V.httpUrls.historyChoose+`?userGroupId=${e}`;Te.V.axiosGet(A).then((e=>{this.dealHistoryChooseData(e,t),this.isShowMark=!1})).catch((e=>{this.isShowMark=!1}))},dealHistoryChooseData(e,t){let A={moodboardFiles:this.dealViewChooseData(e.collection.moodBoards,"Moodboard"),printboardFiles:this.dealViewChooseData(e.collection.printBoards,"Printboard"),generatePrintFiles:[],colorBoards:this.dealViewChooseColor(e.collection.colorBoards),sketchboardFiles:this.dealViewChooseData(e.collection.sketchBoards,"Sketchboard"),marketingSketchFiles:this.dealViewChooseData(e.collection.marketingSketchs,""),disposeMoodboard:e.collection.moodTemplateId?[{id:e.collection.moodTemplateId,imgUrl:e.collection.moodTemplateUrl,resData:{name:e.collection.moodTemplateName}}]:[]};if(this.store.commit("setAllBoardDataChoose",A),this.store.commit("setDesignCollectionId",e.collection.collectionId),this.isHaveReviewCollection=!0,"normal"===t){let t=e.userLikeDetails.map((e=>{let t={...e,groupDetailId:e.id,designItemUrl:e.designOutfitUrl};return t}));this.store.commit("setLikeDesignCollectionList",t)}},dealViewChooseData(e,t){if(!e)return[];let A=e.map((e=>{let t={imgUrl:e.url?e.url:e.designOutfitUrl,id:e.id,status:"done",resData:e,type_:{type1:"material",type2:e.level1Type}};return"Sketchboard"===e.level1Type&&(t.pin=e.isPin,t.category=e.level2Type),"Printboard"===e.level1Type&&(t.pin=e.isPin),t}));return A},dealViewChooseColor(e){let t=e.map((e=>{let t=e.rgbValue.split(" "),A={id:e.id,name:e.name,tcx:e.tcx||"",rgbValue:{r:t[0],g:t[1],b:t[2],a:1}};return A}));return t},changeShowOperateContent(){this.isShowOperate=!this.isShowOperate,document.addEventListener("click",this.closeShowOperateContent,!1)},closeShowOperateContent(){this.isShowOperate=!1,document.removeEventListener("click",this.closeShowOperateContent)},async exportCanvas(){let e=document.querySelector("#exportNewCoolection");document.querySelector("#right_content_img_block"),document.createElement("a");this.isShowMark=!0;let t=[];await An()(e,{useCORS:!0,scale:3}).then((e=>{let A=(0,Re.$O)(e.toDataURL("image/png")),i=this.store.state.UploadFilesModule.allBoardData,n=0;t.push({imgUrl:URL.createObjectURL(A),name:"collection.png"});let r=0;for(let o in i)if("colorBoards"!==o&&"moodTemplateId"!==o){if(this.exportNav[r]?.change||"disposeMoodboard"==o)for(let e of i[o]){let A=e?.imgUrl?.split(".").pop().split("?").shift(),i={imgUrl:e.imgUrl,name:e?.resData?.name+n+"."+A};t.push(i),n++}r++}})),this.downImg(t)},designDetail(e,t,A,i){let n=this.$refs.designDetail;e.designOutfitId=e.designPythonOutfitId?e.designPythonOutfitId:e.designOutfitId;let r={design:e,index:t,collectionList:A,type:i};n.showDesignDetailModal(r)},finishRedesign(e){let{design:t,index:A,type:i}=e;"dislike"===i?this.store.commit("setSingleDesignCollectionList",{index:A,design:t}):this.store.commit("setSingleLikeDesignCollectionList",{index:A,design:t})},getImgArrayBuffer(e){return new Promise(((t,A)=>{let i=new XMLHttpRequest;i.open("GET",e,!0),i.responseType="blob",i.onload=function(){200==this.status?t(this.response):A(this.status)},i.send()}))},downImg(e){let t=this,A=new(Jh()),i={},n=[];for(let r of e){const e=t.getImgArrayBuffer(r.imgUrl).then((e=>{A.file(r.name,e,{binary:!0}),i[r.title]=e}));n.push(e)}Promise.all(n).then((()=>{A.generateAsync({type:"blob"}).then((e=>{$h.saveAs(e,"DesignFiles"),this.isShowMark=!1}))})).catch((e=>{Oe.ZP.warning(this.t("HomeView.jsContent3")),this.isShowMark=!1}))}}});const eg=(0,it.Z)(qh,[["render",W],["__scopeId","data-v-69379339"]]);var tg=eg},9812:function(e,t,A){"use strict";A.r(t),A.d(t,{BaseTransition:function(){return i.P$},Comment:function(){return i.sv},EffectScope:function(){return i.Bj},Fragment:function(){return i.HY},KeepAlive:function(){return i.Ob},ReactiveEffect:function(){return i.qq},Static:function(){return i.qG},Suspense:function(){return i.n4},Teleport:function(){return i.lR},Text:function(){return i.xv},Transition:function(){return i.uT},TransitionGroup:function(){return i.W3},VueElement:function(){return i.a2},callWithAsyncErrorHandling:function(){return i.$d},callWithErrorHandling:function(){return i.KU},camelize:function(){return i._A},capitalize:function(){return i.kC},cloneVNode:function(){return i.Ho},compatUtils:function(){return i.ry},compile:function(){return n},computed:function(){return i.Fl},createApp:function(){return i.ri},createBlock:function(){return i.j4},createCommentVNode:function(){return i.kq},createElementBlock:function(){return i.iD},createElementVNode:function(){return i._},createHydrationRenderer:function(){return i.Eo},createPropsRestProxy:function(){return i.p1},createRenderer:function(){return i.Us},createSSRApp:function(){return i.vr},createSlots:function(){return i.Nv},createStaticVNode:function(){return i.uE},createTextVNode:function(){return i.Uk},createVNode:function(){return i.Wm},customRef:function(){return i.ZM},defineAsyncComponent:function(){return i.RC},defineComponent:function(){return i.aZ},defineCustomElement:function(){return i.MW},defineEmits:function(){return i.Bz},defineExpose:function(){return i.WY},defineProps:function(){return i.yb},defineSSRCustomElement:function(){return i.Ah},devtools:function(){return i.mW},effect:function(){return i.cE},effectScope:function(){return i.B},getCurrentInstance:function(){return i.FN},getCurrentScope:function(){return i.nZ},getTransitionRawChildren:function(){return i.Q6},guardReactiveProps:function(){return i.F4},h:function(){return i.h},handleError:function(){return i.S3},hydrate:function(){return i.ZB},initCustomFormatter:function(){return i.Mr},initDirectivesForSSR:function(){return i.Nd},inject:function(){return i.f3},isMemoSame:function(){return i.nQ},isProxy:function(){return i.X3},isReactive:function(){return i.PG},isReadonly:function(){return i.$y},isRef:function(){return i.dq},isRuntimeOnly:function(){return i.of},isShallow:function(){return i.yT},isVNode:function(){return i.lA},markRaw:function(){return i.Xl},mergeDefaults:function(){return i.u_},mergeProps:function(){return i.dG},nextTick:function(){return i.Y3},normalizeClass:function(){return i.C_},normalizeProps:function(){return i.vs},normalizeStyle:function(){return i.j5},onActivated:function(){return i.dl},onBeforeMount:function(){return i.wF},onBeforeUnmount:function(){return i.Jd},onBeforeUpdate:function(){return i.Xn},onDeactivated:function(){return i.se},onErrorCaptured:function(){return i.d1},onMounted:function(){return i.bv},onRenderTracked:function(){return i.bT},onRenderTriggered:function(){return i.Yq},onScopeDispose:function(){return i.EB},onServerPrefetch:function(){return i.vl},onUnmounted:function(){return i.SK},onUpdated:function(){return i.ic},openBlock:function(){return i.wg},popScopeId:function(){return i.Cn},provide:function(){return i.JJ},proxyRefs:function(){return i.WL},pushScopeId:function(){return i.dD},queuePostFlushCb:function(){return i.qb},reactive:function(){return i.qj},readonly:function(){return i.OT},ref:function(){return i.iH},registerRuntimeCompiler:function(){return i.Y1},render:function(){return i.sY},renderList:function(){return i.Ko},renderSlot:function(){return i.WI},resolveComponent:function(){return i.up},resolveDirective:function(){return i.Q2},resolveDynamicComponent:function(){return i.LL},resolveFilter:function(){return i.eq},resolveTransitionHooks:function(){return i.U2},setBlockTracking:function(){return i.qZ},setDevtoolsHook:function(){return i.ec},setTransitionHooks:function(){return i.nK},shallowReactive:function(){return i.Um},shallowReadonly:function(){return i.YS},shallowRef:function(){return i.XI},ssrContextKey:function(){return i.Uc},ssrUtils:function(){return i.G},stop:function(){return i.sT},toDisplayString:function(){return i.zw},toHandlerKey:function(){return i.hR},toHandlers:function(){return i.mx},toRaw:function(){return i.IU},toRef:function(){return i.Vh},toRefs:function(){return i.BK},transformVNodeArgs:function(){return i.C3},triggerRef:function(){return i.oR},unref:function(){return i.SU},useAttrs:function(){return i.l1},useCssModule:function(){return i.fb},useCssVars:function(){return i.sj},useSSRContext:function(){return i.Zq},useSlots:function(){return i.Rr},useTransitionState:function(){return i.Y8},vModelCheckbox:function(){return i.e8},vModelDynamic:function(){return i.YZ},vModelRadio:function(){return i.G2},vModelSelect:function(){return i.bM},vModelText:function(){return i.nr},vShow:function(){return i.F8},version:function(){return i.i8},warn:function(){return i.ZK},watch:function(){return i.YP},watchEffect:function(){return i.m0},watchPostEffect:function(){return i.Rh},watchSyncEffect:function(){return i.yX},withAsyncContext:function(){return i.mv},withCtx:function(){return i.w5},withDefaults:function(){return i.b9},withDirectives:function(){return i.wy},withKeys:function(){return i.D2},withMemo:function(){return i.MX},withModifiers:function(){return i.iM},withScopeId:function(){return i.HX}});var i=A(9963);const n=()=>{0}},9980:function(e,t,A){(function(t,i){e.exports=i(A(9812),A(8244))})("undefined"!==typeof self&&self,(function(e,t){return function(e){var t={};function A(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,A),n.l=!0,n.exports}return A.m=e,A.c=t,A.d=function(e,t,i){A.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},A.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},A.t=function(e,t){if(1&t&&(e=A(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(A.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)A.d(i,n,function(t){return e[t]}.bind(null,n));return i},A.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return A.d(t,"a",t),t},A.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},A.p="",A(A.s="fb15")}({"00ee":function(e,t,A){var i=A("b622"),n=i("toStringTag"),r={};r[n]="z",e.exports="[object z]"===String(r)},"0366":function(e,t,A){var i=A("1c0b");e.exports=function(e,t,A){if(i(e),void 0===t)return e;switch(A){case 0:return function(){return e.call(t)};case 1:return function(A){return e.call(t,A)};case 2:return function(A,i){return e.call(t,A,i)};case 3:return function(A,i,n){return e.call(t,A,i,n)}}return function(){return e.apply(t,arguments)}}},"057f":function(e,t,A){var i=A("fc6a"),n=A("241c").f,r={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return n(e)}catch(t){return o.slice()}};e.exports.f=function(e){return o&&"[object Window]"==r.call(e)?s(e):n(i(e))}},"06cf":function(e,t,A){var i=A("83ab"),n=A("d1e7"),r=A("5c6c"),o=A("fc6a"),s=A("c04e"),a=A("5135"),l=A("0cfb"),c=Object.getOwnPropertyDescriptor;t.f=i?c:function(e,t){if(e=o(e),t=s(t,!0),l)try{return c(e,t)}catch(A){}if(a(e,t))return r(!n.f.call(e,t),e[t])}},"0cfb":function(e,t,A){var i=A("83ab"),n=A("d039"),r=A("cc12");e.exports=!i&&!n((function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},"13d5":function(e,t,A){"use strict";var i=A("23e7"),n=A("d58f").left,r=A("a640"),o=A("ae40"),s=r("reduce"),a=o("reduce",{1:0});i({target:"Array",proto:!0,forced:!s||!a},{reduce:function(e){return n(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(e,t,A){var i=A("c6b6"),n=A("9263");e.exports=function(e,t){var A=e.exec;if("function"===typeof A){var r=A.call(e,t);if("object"!==typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==i(e))throw TypeError("RegExp#exec called on incompatible receiver");return n.call(e,t)}},"159b":function(e,t,A){var i=A("da84"),n=A("fdbc"),r=A("17c2"),o=A("9112");for(var s in n){var a=i[s],l=a&&a.prototype;if(l&&l.forEach!==r)try{o(l,"forEach",r)}catch(c){l.forEach=r}}},"17c2":function(e,t,A){"use strict";var i=A("b727").forEach,n=A("a640"),r=A("ae40"),o=n("forEach"),s=r("forEach");e.exports=o&&s?[].forEach:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}},"1be4":function(e,t,A){var i=A("d066");e.exports=i("document","documentElement")},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1c7e":function(e,t,A){var i=A("b622"),n=i("iterator"),r=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){r=!0}};s[n]=function(){return this},Array.from(s,(function(){throw 2}))}catch(a){}e.exports=function(e,t){if(!t&&!r)return!1;var A=!1;try{var i={};i[n]=function(){return{next:function(){return{done:A=!0}}}},e(i)}catch(a){}return A}},"1d80":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"1dde":function(e,t,A){var i=A("d039"),n=A("b622"),r=A("2d00"),o=n("species");e.exports=function(e){return r>=51||!i((function(){var t=[],A=t.constructor={};return A[o]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"23cb":function(e,t,A){var i=A("a691"),n=Math.max,r=Math.min;e.exports=function(e,t){var A=i(e);return A<0?n(A+t,0):r(A,t)}},"23e7":function(e,t,A){var i=A("da84"),n=A("06cf").f,r=A("9112"),o=A("6eeb"),s=A("ce4e"),a=A("e893"),l=A("94ca");e.exports=function(e,t){var A,c,d,u,h,g,p=e.target,f=e.global,m=e.stat;if(c=f?i:m?i[p]||s(p,{}):(i[p]||{}).prototype,c)for(d in t){if(h=t[d],e.noTargetGet?(g=n(c,d),u=g&&g.value):u=c[d],A=l(f?d:p+(m?".":"#")+d,e.forced),!A&&void 0!==u){if(typeof h===typeof u)continue;a(h,u)}(e.sham||u&&u.sham)&&r(h,"sham",!0),o(c,d,h,e)}}},"241c":function(e,t,A){var i=A("ca84"),n=A("7839"),r=n.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},"25f0":function(e,t,A){"use strict";var i=A("6eeb"),n=A("825a"),r=A("d039"),o=A("ad6d"),s="toString",a=RegExp.prototype,l=a[s],c=r((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),d=l.name!=s;(c||d)&&i(RegExp.prototype,s,(function(){var e=n(this),t=String(e.source),A=e.flags,i=String(void 0===A&&e instanceof RegExp&&!("flags"in a)?o.call(e):A);return"/"+t+"/"+i}),{unsafe:!0})},"2ca0":function(e,t,A){"use strict";var i=A("23e7"),n=A("06cf").f,r=A("50c4"),o=A("5a34"),s=A("1d80"),a=A("ab13"),l=A("c430"),c="".startsWith,d=Math.min,u=a("startsWith"),h=!l&&!u&&!!function(){var e=n(String.prototype,"startsWith");return e&&!e.writable}();i({target:"String",proto:!0,forced:!h&&!u},{startsWith:function(e){var t=String(s(this));o(e);var A=r(d(arguments.length>1?arguments[1]:void 0,t.length)),i=String(e);return c?c.call(t,i,A):t.slice(A,A+i.length)===i}})},"2d00":function(e,t,A){var i,n,r=A("da84"),o=A("342f"),s=r.process,a=s&&s.versions,l=a&&a.v8;l?(i=l.split("."),n=i[0]+i[1]):o&&(i=o.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=o.match(/Chrome\/(\d+)/),i&&(n=i[1]))),e.exports=n&&+n},"342f":function(e,t,A){var i=A("d066");e.exports=i("navigator","userAgent")||""},"35a1":function(e,t,A){var i=A("f5df"),n=A("3f8c"),r=A("b622"),o=r("iterator");e.exports=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||n[i(e)]}},"37e8":function(e,t,A){var i=A("83ab"),n=A("9bf2"),r=A("825a"),o=A("df75");e.exports=i?Object.defineProperties:function(e,t){r(e);var A,i=o(t),s=i.length,a=0;while(s>a)n.f(e,A=i[a++],t[A]);return e}},"3bbe":function(e,t,A){var i=A("861d");e.exports=function(e){if(!i(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3ca3":function(e,t,A){"use strict";var i=A("6547").charAt,n=A("69f3"),r=A("7dd0"),o="String Iterator",s=n.set,a=n.getterFor(o);r(String,"String",(function(e){s(this,{type:o,string:String(e),index:0})}),(function(){var e,t=a(this),A=t.string,n=t.index;return n>=A.length?{value:void 0,done:!0}:(e=i(A,n),t.index+=e.length,{value:e,done:!1})}))},"3f8c":function(e,t){e.exports={}},4160:function(e,t,A){"use strict";var i=A("23e7"),n=A("17c2");i({target:"Array",proto:!0,forced:[].forEach!=n},{forEach:n})},"428f":function(e,t,A){var i=A("da84");e.exports=i},"44ad":function(e,t,A){var i=A("d039"),n=A("c6b6"),r="".split;e.exports=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==n(e)?r.call(e,""):Object(e)}:Object},"44d2":function(e,t,A){var i=A("b622"),n=A("7c73"),r=A("9bf2"),o=i("unscopables"),s=Array.prototype;void 0==s[o]&&r.f(s,o,{configurable:!0,value:n(null)}),e.exports=function(e){s[o][e]=!0}},"44e7":function(e,t,A){var i=A("861d"),n=A("c6b6"),r=A("b622"),o=r("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==n(e))}},4930:function(e,t,A){var i=A("d039");e.exports=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())}))},"4d64":function(e,t,A){var i=A("fc6a"),n=A("50c4"),r=A("23cb"),o=function(e){return function(t,A,o){var s,a=i(t),l=n(a.length),c=r(o,l);if(e&&A!=A){while(l>c)if(s=a[c++],s!=s)return!0}else for(;l>c;c++)if((e||c in a)&&a[c]===A)return e||c||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},"4de4":function(e,t,A){"use strict";var i=A("23e7"),n=A("b727").filter,r=A("1dde"),o=A("ae40"),s=r("filter"),a=o("filter");i({target:"Array",proto:!0,forced:!s||!a},{filter:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,t,A){"use strict";var i=A("0366"),n=A("7b0b"),r=A("9bdd"),o=A("e95a"),s=A("50c4"),a=A("8418"),l=A("35a1");e.exports=function(e){var t,A,c,d,u,h,g=n(e),p="function"==typeof this?this:Array,f=arguments.length,m=f>1?arguments[1]:void 0,B=void 0!==m,w=l(g),v=0;if(B&&(m=i(m,f>2?arguments[2]:void 0,2)),void 0==w||p==Array&&o(w))for(t=s(g.length),A=new p(t);t>v;v++)h=B?m(g[v],v):g[v],a(A,v,h);else for(d=w.call(g),u=d.next,A=new p;!(c=u.call(d)).done;v++)h=B?r(d,m,[c.value,v],!0):c.value,a(A,v,h);return A.length=v,A}},"4fad":function(e,t,A){var i=A("23e7"),n=A("6f53").entries;i({target:"Object",stat:!0},{entries:function(e){return n(e)}})},"50c4":function(e,t,A){var i=A("a691"),n=Math.min;e.exports=function(e){return e>0?n(i(e),9007199254740991):0}},5135:function(e,t){var A={}.hasOwnProperty;e.exports=function(e,t){return A.call(e,t)}},5319:function(e,t,A){"use strict";var i=A("d784"),n=A("825a"),r=A("7b0b"),o=A("50c4"),s=A("a691"),a=A("1d80"),l=A("8aa5"),c=A("14c3"),d=Math.max,u=Math.min,h=Math.floor,g=/\$([$&'`]|\d\d?|<[^>]*>)/g,p=/\$([$&'`]|\d\d?)/g,f=function(e){return void 0===e?e:String(e)};i("replace",2,(function(e,t,A,i){var m=i.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,B=i.REPLACE_KEEPS_$0,w=m?"$":"$0";return[function(A,i){var n=a(this),r=void 0==A?void 0:A[e];return void 0!==r?r.call(A,n,i):t.call(String(n),A,i)},function(e,i){if(!m&&B||"string"===typeof i&&-1===i.indexOf(w)){var r=A(t,e,this,i);if(r.done)return r.value}var a=n(e),h=String(this),g="function"===typeof i;g||(i=String(i));var p=a.global;if(p){var y=a.unicode;a.lastIndex=0}var C=[];while(1){var b=c(a,h);if(null===b)break;if(C.push(b),!p)break;var _=String(b[0]);""===_&&(a.lastIndex=l(h,o(a.lastIndex),y))}for(var Q="",U=0,F=0;F<C.length;F++){b=C[F];for(var x=String(b[0]),E=d(u(s(b.index),h.length),0),k=[],I=1;I<b.length;I++)k.push(f(b[I]));var D=b.groups;if(g){var S=[x].concat(k,E,h);void 0!==D&&S.push(D);var H=String(i.apply(void 0,S))}else H=v(x,h,E,k,D,i);E>=U&&(Q+=h.slice(U,E)+H,U=E+x.length)}return Q+h.slice(U)}];function v(e,A,i,n,o,s){var a=i+e.length,l=n.length,c=p;return void 0!==o&&(o=r(o),c=g),t.call(s,c,(function(t,r){var s;switch(r.charAt(0)){case"$":return"$";case"&":return e;case"`":return A.slice(0,i);case"'":return A.slice(a);case"<":s=o[r.slice(1,-1)];break;default:var c=+r;if(0===c)return t;if(c>l){var d=h(c/10);return 0===d?t:d<=l?void 0===n[d-1]?r.charAt(1):n[d-1]+r.charAt(1):t}s=n[c-1]}return void 0===s?"":s}))}}))},5692:function(e,t,A){var i=A("c430"),n=A("c6cd");(e.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:i?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,t,A){var i=A("d066"),n=A("241c"),r=A("7418"),o=A("825a");e.exports=i("Reflect","ownKeys")||function(e){var t=n.f(o(e)),A=r.f;return A?t.concat(A(e)):t}},"5a34":function(e,t,A){var i=A("44e7");e.exports=function(e){if(i(e))throw TypeError("The method doesn't accept regular expressions");return e}},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5db7":function(e,t,A){"use strict";var i=A("23e7"),n=A("a2bf"),r=A("7b0b"),o=A("50c4"),s=A("1c0b"),a=A("65f0");i({target:"Array",proto:!0},{flatMap:function(e){var t,A=r(this),i=o(A.length);return s(e),t=a(A,0),t.length=n(t,A,A,i,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},6547:function(e,t,A){var i=A("a691"),n=A("1d80"),r=function(e){return function(t,A){var r,o,s=String(n(t)),a=i(A),l=s.length;return a<0||a>=l?e?"":void 0:(r=s.charCodeAt(a),r<55296||r>56319||a+1===l||(o=s.charCodeAt(a+1))<56320||o>57343?e?s.charAt(a):r:e?s.slice(a,a+2):o-56320+(r-55296<<10)+65536)}};e.exports={codeAt:r(!1),charAt:r(!0)}},"65f0":function(e,t,A){var i=A("861d"),n=A("e8b5"),r=A("b622"),o=r("species");e.exports=function(e,t){var A;return n(e)&&(A=e.constructor,"function"!=typeof A||A!==Array&&!n(A.prototype)?i(A)&&(A=A[o],null===A&&(A=void 0)):A=void 0),new(void 0===A?Array:A)(0===t?0:t)}},"69f3":function(e,t,A){var i,n,r,o=A("7f9a"),s=A("da84"),a=A("861d"),l=A("9112"),c=A("5135"),d=A("f772"),u=A("d012"),h=s.WeakMap,g=function(e){return r(e)?n(e):i(e,{})},p=function(e){return function(t){var A;if(!a(t)||(A=n(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return A}};if(o){var f=new h,m=f.get,B=f.has,w=f.set;i=function(e,t){return w.call(f,e,t),t},n=function(e){return m.call(f,e)||{}},r=function(e){return B.call(f,e)}}else{var v=d("state");u[v]=!0,i=function(e,t){return l(e,v,t),t},n=function(e){return c(e,v)?e[v]:{}},r=function(e){return c(e,v)}}e.exports={set:i,get:n,has:r,enforce:g,getterFor:p}},"6eeb":function(e,t,A){var i=A("da84"),n=A("9112"),r=A("5135"),o=A("ce4e"),s=A("8925"),a=A("69f3"),l=a.get,c=a.enforce,d=String(String).split("String");(e.exports=function(e,t,A,s){var a=!!s&&!!s.unsafe,l=!!s&&!!s.enumerable,u=!!s&&!!s.noTargetGet;"function"==typeof A&&("string"!=typeof t||r(A,"name")||n(A,"name",t),c(A).source=d.join("string"==typeof t?t:"")),e!==i?(a?!u&&e[t]&&(l=!0):delete e[t],l?e[t]=A:n(e,t,A)):l?e[t]=A:o(t,A)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(this).source||s(this)}))},"6f53":function(e,t,A){var i=A("83ab"),n=A("df75"),r=A("fc6a"),o=A("d1e7").f,s=function(e){return function(t){var A,s=r(t),a=n(s),l=a.length,c=0,d=[];while(l>c)A=a[c++],i&&!o.call(s,A)||d.push(e?[A,s[A]]:s[A]);return d}};e.exports={entries:s(!0),values:s(!1)}},"73d9":function(e,t,A){var i=A("44d2");i("flatMap")},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"746f":function(e,t,A){var i=A("428f"),n=A("5135"),r=A("e538"),o=A("9bf2").f;e.exports=function(e){var t=i.Symbol||(i.Symbol={});n(t,e)||o(t,e,{value:r.f(e)})}},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(e,t,A){var i=A("1d80");e.exports=function(e){return Object(i(e))}},"7c73":function(e,t,A){var i,n=A("825a"),r=A("37e8"),o=A("7839"),s=A("d012"),a=A("1be4"),l=A("cc12"),c=A("f772"),d=">",u="<",h="prototype",g="script",p=c("IE_PROTO"),f=function(){},m=function(e){return u+g+d+e+u+"/"+g+d},B=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},w=function(){var e,t=l("iframe"),A="java"+g+":";return t.style.display="none",a.appendChild(t),t.src=String(A),e=t.contentWindow.document,e.open(),e.write(m("document.F=Object")),e.close(),e.F},v=function(){try{i=document.domain&&new ActiveXObject("htmlfile")}catch(t){}v=i?B(i):w();var e=o.length;while(e--)delete v[h][o[e]];return v()};s[p]=!0,e.exports=Object.create||function(e,t){var A;return null!==e?(f[h]=n(e),A=new f,f[h]=null,A[p]=e):A=v(),void 0===t?A:r(A,t)}},"7dd0":function(e,t,A){"use strict";var i=A("23e7"),n=A("9ed3"),r=A("e163"),o=A("d2bb"),s=A("d44e"),a=A("9112"),l=A("6eeb"),c=A("b622"),d=A("c430"),u=A("3f8c"),h=A("ae93"),g=h.IteratorPrototype,p=h.BUGGY_SAFARI_ITERATORS,f=c("iterator"),m="keys",B="values",w="entries",v=function(){return this};e.exports=function(e,t,A,c,h,y,C){n(A,t,c);var b,_,Q,U=function(e){if(e===h&&I)return I;if(!p&&e in E)return E[e];switch(e){case m:return function(){return new A(this,e)};case B:return function(){return new A(this,e)};case w:return function(){return new A(this,e)}}return function(){return new A(this)}},F=t+" Iterator",x=!1,E=e.prototype,k=E[f]||E["@@iterator"]||h&&E[h],I=!p&&k||U(h),D="Array"==t&&E.entries||k;if(D&&(b=r(D.call(new e)),g!==Object.prototype&&b.next&&(d||r(b)===g||(o?o(b,g):"function"!=typeof b[f]&&a(b,f,v)),s(b,F,!0,!0),d&&(u[F]=v))),h==B&&k&&k.name!==B&&(x=!0,I=function(){return k.call(this)}),d&&!C||E[f]===I||a(E,f,I),u[t]=I,h)if(_={values:U(B),keys:y?I:U(m),entries:U(w)},C)for(Q in _)(p||x||!(Q in E))&&l(E,Q,_[Q]);else i({target:t,proto:!0,forced:p||x},_);return _}},"7f9a":function(e,t,A){var i=A("da84"),n=A("8925"),r=i.WeakMap;e.exports="function"===typeof r&&/native code/.test(n(r))},"825a":function(e,t,A){var i=A("861d");e.exports=function(e){if(!i(e))throw TypeError(String(e)+" is not an object");return e}},"83ab":function(e,t,A){var i=A("d039");e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(e,t,A){"use strict";var i=A("c04e"),n=A("9bf2"),r=A("5c6c");e.exports=function(e,t,A){var o=i(t);o in e?n.f(e,o,r(0,A)):e[o]=A}},"861d":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},8875:function(e,t,A){var i,n,r;(function(A,o){n=[],i=o,r="function"===typeof i?i.apply(t,n):i,void 0===r||(e.exports=r)})("undefined"!==typeof self&&self,(function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(h){var A,i,n,r=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,o=/@([^@]*):(\d+):(\d+)\s*$/gi,s=r.exec(h.stack)||o.exec(h.stack),a=s&&s[1]||!1,l=s&&s[2]||!1,c=document.location.href.replace(document.location.hash,""),d=document.getElementsByTagName("script");a===c&&(A=document.documentElement.outerHTML,i=new RegExp("(?:[^\\n]+?\\n){0,"+(l-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),n=A.replace(i,"$1").trim());for(var u=0;u<d.length;u++){if("interactive"===d[u].readyState)return d[u];if(d[u].src===a)return d[u];if(a===c&&d[u].innerHTML&&d[u].innerHTML.trim()===n)return d[u]}return null}}return e}))},8925:function(e,t,A){var i=A("c6cd"),n=Function.toString;"function"!=typeof i.inspectSource&&(i.inspectSource=function(e){return n.call(e)}),e.exports=i.inspectSource},"8aa5":function(e,t,A){"use strict";var i=A("6547").charAt;e.exports=function(e,t,A){return t+(A?i(e,t).length:1)}},"8bbf":function(t,A){t.exports=e},"90e3":function(e,t){var A=0,i=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++A+i).toString(36)}},9112:function(e,t,A){var i=A("83ab"),n=A("9bf2"),r=A("5c6c");e.exports=i?function(e,t,A){return n.f(e,t,r(1,A))}:function(e,t,A){return e[t]=A,e}},9263:function(e,t,A){"use strict";var i=A("ad6d"),n=A("9f7f"),r=RegExp.prototype.exec,o=String.prototype.replace,s=r,a=function(){var e=/a/,t=/b*/g;return r.call(e,"a"),r.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),l=n.UNSUPPORTED_Y||n.BROKEN_CARET,c=void 0!==/()??/.exec("")[1],d=a||c||l;d&&(s=function(e){var t,A,n,s,d=this,u=l&&d.sticky,h=i.call(d),g=d.source,p=0,f=e;return u&&(h=h.replace("y",""),-1===h.indexOf("g")&&(h+="g"),f=String(e).slice(d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==e[d.lastIndex-1])&&(g="(?: "+g+")",f=" "+f,p++),A=new RegExp("^(?:"+g+")",h)),c&&(A=new RegExp("^"+g+"$(?!\\s)",h)),a&&(t=d.lastIndex),n=r.call(u?A:d,f),u?n?(n.input=n.input.slice(p),n[0]=n[0].slice(p),n.index=d.lastIndex,d.lastIndex+=n[0].length):d.lastIndex=0:a&&n&&(d.lastIndex=d.global?n.index+n[0].length:t),c&&n&&n.length>1&&o.call(n[0],A,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(n[s]=void 0)})),n}),e.exports=s},"94ca":function(e,t,A){var i=A("d039"),n=/#|\.prototype\./,r=function(e,t){var A=s[o(e)];return A==l||A!=a&&("function"==typeof t?i(t):!!t)},o=r.normalize=function(e){return String(e).replace(n,".").toLowerCase()},s=r.data={},a=r.NATIVE="N",l=r.POLYFILL="P";e.exports=r},"99af":function(e,t,A){"use strict";var i=A("23e7"),n=A("d039"),r=A("e8b5"),o=A("861d"),s=A("7b0b"),a=A("50c4"),l=A("8418"),c=A("65f0"),d=A("1dde"),u=A("b622"),h=A("2d00"),g=u("isConcatSpreadable"),p=9007199254740991,f="Maximum allowed index exceeded",m=h>=51||!n((function(){var e=[];return e[g]=!1,e.concat()[0]!==e})),B=d("concat"),w=function(e){if(!o(e))return!1;var t=e[g];return void 0!==t?!!t:r(e)},v=!m||!B;i({target:"Array",proto:!0,forced:v},{concat:function(e){var t,A,i,n,r,o=s(this),d=c(o,0),u=0;for(t=-1,i=arguments.length;t<i;t++)if(r=-1===t?o:arguments[t],w(r)){if(n=a(r.length),u+n>p)throw TypeError(f);for(A=0;A<n;A++,u++)A in r&&l(d,u,r[A])}else{if(u>=p)throw TypeError(f);l(d,u++,r)}return d.length=u,d}})},"9bdd":function(e,t,A){var i=A("825a");e.exports=function(e,t,A,n){try{return n?t(i(A)[0],A[1]):t(A)}catch(o){var r=e["return"];throw void 0!==r&&i(r.call(e)),o}}},"9bf2":function(e,t,A){var i=A("83ab"),n=A("0cfb"),r=A("825a"),o=A("c04e"),s=Object.defineProperty;t.f=i?s:function(e,t,A){if(r(e),t=o(t,!0),r(A),n)try{return s(e,t,A)}catch(i){}if("get"in A||"set"in A)throw TypeError("Accessors not supported");return"value"in A&&(e[t]=A.value),e}},"9ed3":function(e,t,A){"use strict";var i=A("ae93").IteratorPrototype,n=A("7c73"),r=A("5c6c"),o=A("d44e"),s=A("3f8c"),a=function(){return this};e.exports=function(e,t,A){var l=t+" Iterator";return e.prototype=n(i,{next:r(1,A)}),o(e,l,!1,!0),s[l]=a,e}},"9f7f":function(e,t,A){"use strict";var i=A("d039");function n(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=i((function(){var e=n("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=i((function(){var e=n("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},a2bf:function(e,t,A){"use strict";var i=A("e8b5"),n=A("50c4"),r=A("0366"),o=function(e,t,A,s,a,l,c,d){var u,h=a,g=0,p=!!c&&r(c,d,3);while(g<s){if(g in A){if(u=p?p(A[g],g,t):A[g],l>0&&i(u))h=o(e,t,u,n(u.length),h,l-1)-1;else{if(h>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[h]=u}h++}g++}return h};e.exports=o},a352:function(e,A){e.exports=t},a434:function(e,t,A){"use strict";var i=A("23e7"),n=A("23cb"),r=A("a691"),o=A("50c4"),s=A("7b0b"),a=A("65f0"),l=A("8418"),c=A("1dde"),d=A("ae40"),u=c("splice"),h=d("splice",{ACCESSORS:!0,0:0,1:2}),g=Math.max,p=Math.min,f=9007199254740991,m="Maximum allowed length exceeded";i({target:"Array",proto:!0,forced:!u||!h},{splice:function(e,t){var A,i,c,d,u,h,B=s(this),w=o(B.length),v=n(e,w),y=arguments.length;if(0===y?A=i=0:1===y?(A=0,i=w-v):(A=y-2,i=p(g(r(t),0),w-v)),w+A-i>f)throw TypeError(m);for(c=a(B,i),d=0;d<i;d++)u=v+d,u in B&&l(c,d,B[u]);if(c.length=i,A<i){for(d=v;d<w-i;d++)u=d+i,h=d+A,u in B?B[h]=B[u]:delete B[h];for(d=w;d>w-i+A;d--)delete B[d-1]}else if(A>i)for(d=w-i;d>v;d--)u=d+i-1,h=d+A-1,u in B?B[h]=B[u]:delete B[h];for(d=0;d<A;d++)B[d+v]=arguments[d+2];return B.length=w-i+A,c}})},a4d3:function(e,t,A){"use strict";var i=A("23e7"),n=A("da84"),r=A("d066"),o=A("c430"),s=A("83ab"),a=A("4930"),l=A("fdbf"),c=A("d039"),d=A("5135"),u=A("e8b5"),h=A("861d"),g=A("825a"),p=A("7b0b"),f=A("fc6a"),m=A("c04e"),B=A("5c6c"),w=A("7c73"),v=A("df75"),y=A("241c"),C=A("057f"),b=A("7418"),_=A("06cf"),Q=A("9bf2"),U=A("d1e7"),F=A("9112"),x=A("6eeb"),E=A("5692"),k=A("f772"),I=A("d012"),D=A("90e3"),S=A("b622"),H=A("e538"),L=A("746f"),O=A("d44e"),M=A("69f3"),T=A("b727").forEach,N=k("hidden"),K="Symbol",P="prototype",R=S("toPrimitive"),V=M.set,G=M.getterFor(K),z=Object[P],j=n.Symbol,Z=r("JSON","stringify"),W=_.f,Y=Q.f,X=C.f,J=U.f,$=E("symbols"),q=E("op-symbols"),ee=E("string-to-symbol-registry"),te=E("symbol-to-string-registry"),Ae=E("wks"),ie=n.QObject,ne=!ie||!ie[P]||!ie[P].findChild,re=s&&c((function(){return 7!=w(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a}))?function(e,t,A){var i=W(z,t);i&&delete z[t],Y(e,t,A),i&&e!==z&&Y(z,t,i)}:Y,oe=function(e,t){var A=$[e]=w(j[P]);return V(A,{type:K,tag:e,description:t}),s||(A.description=t),A},se=l?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof j},ae=function(e,t,A){e===z&&ae(q,t,A),g(e);var i=m(t,!0);return g(A),d($,i)?(A.enumerable?(d(e,N)&&e[N][i]&&(e[N][i]=!1),A=w(A,{enumerable:B(0,!1)})):(d(e,N)||Y(e,N,B(1,{})),e[N][i]=!0),re(e,i,A)):Y(e,i,A)},le=function(e,t){g(e);var A=f(t),i=v(A).concat(ge(A));return T(i,(function(t){s&&!de.call(A,t)||ae(e,t,A[t])})),e},ce=function(e,t){return void 0===t?w(e):le(w(e),t)},de=function(e){var t=m(e,!0),A=J.call(this,t);return!(this===z&&d($,t)&&!d(q,t))&&(!(A||!d(this,t)||!d($,t)||d(this,N)&&this[N][t])||A)},ue=function(e,t){var A=f(e),i=m(t,!0);if(A!==z||!d($,i)||d(q,i)){var n=W(A,i);return!n||!d($,i)||d(A,N)&&A[N][i]||(n.enumerable=!0),n}},he=function(e){var t=X(f(e)),A=[];return T(t,(function(e){d($,e)||d(I,e)||A.push(e)})),A},ge=function(e){var t=e===z,A=X(t?q:f(e)),i=[];return T(A,(function(e){!d($,e)||t&&!d(z,e)||i.push($[e])})),i};if(a||(j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=D(e),A=function(e){this===z&&A.call(q,e),d(this,N)&&d(this[N],t)&&(this[N][t]=!1),re(this,t,B(1,e))};return s&&ne&&re(z,t,{configurable:!0,set:A}),oe(t,e)},x(j[P],"toString",(function(){return G(this).tag})),x(j,"withoutSetter",(function(e){return oe(D(e),e)})),U.f=de,Q.f=ae,_.f=ue,y.f=C.f=he,b.f=ge,H.f=function(e){return oe(S(e),e)},s&&(Y(j[P],"description",{configurable:!0,get:function(){return G(this).description}}),o||x(z,"propertyIsEnumerable",de,{unsafe:!0}))),i({global:!0,wrap:!0,forced:!a,sham:!a},{Symbol:j}),T(v(Ae),(function(e){L(e)})),i({target:K,stat:!0,forced:!a},{for:function(e){var t=String(e);if(d(ee,t))return ee[t];var A=j(t);return ee[t]=A,te[A]=t,A},keyFor:function(e){if(!se(e))throw TypeError(e+" is not a symbol");if(d(te,e))return te[e]},useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),i({target:"Object",stat:!0,forced:!a,sham:!s},{create:ce,defineProperty:ae,defineProperties:le,getOwnPropertyDescriptor:ue}),i({target:"Object",stat:!0,forced:!a},{getOwnPropertyNames:he,getOwnPropertySymbols:ge}),i({target:"Object",stat:!0,forced:c((function(){b.f(1)}))},{getOwnPropertySymbols:function(e){return b.f(p(e))}}),Z){var pe=!a||c((function(){var e=j();return"[null]"!=Z([e])||"{}"!=Z({a:e})||"{}"!=Z(Object(e))}));i({target:"JSON",stat:!0,forced:pe},{stringify:function(e,t,A){var i,n=[e],r=1;while(arguments.length>r)n.push(arguments[r++]);if(i=t,(h(t)||void 0!==e)&&!se(e))return u(t)||(t=function(e,t){if("function"==typeof i&&(t=i.call(this,e,t)),!se(t))return t}),n[1]=t,Z.apply(null,n)}})}j[P][R]||F(j[P],R,j[P].valueOf),O(j,K),I[N]=!0},a630:function(e,t,A){var i=A("23e7"),n=A("4df4"),r=A("1c7e"),o=!r((function(e){Array.from(e)}));i({target:"Array",stat:!0,forced:o},{from:n})},a640:function(e,t,A){"use strict";var i=A("d039");e.exports=function(e,t){var A=[][e];return!!A&&i((function(){A.call(null,t||function(){throw 1},1)}))}},a691:function(e,t){var A=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:A)(e)}},ab13:function(e,t,A){var i=A("b622"),n=i("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(A){try{return t[n]=!1,"/./"[e](t)}catch(i){}}return!1}},ac1f:function(e,t,A){"use strict";var i=A("23e7"),n=A("9263");i({target:"RegExp",proto:!0,forced:/./.exec!==n},{exec:n})},ad6d:function(e,t,A){"use strict";var i=A("825a");e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},ae40:function(e,t,A){var i=A("83ab"),n=A("d039"),r=A("5135"),o=Object.defineProperty,s={},a=function(e){throw e};e.exports=function(e,t){if(r(s,e))return s[e];t||(t={});var A=[][e],l=!!r(t,"ACCESSORS")&&t.ACCESSORS,c=r(t,0)?t[0]:a,d=r(t,1)?t[1]:void 0;return s[e]=!!A&&!n((function(){if(l&&!i)return!0;var e={length:-1};l?o(e,1,{enumerable:!0,get:a}):e[1]=1,A.call(e,c,d)}))}},ae93:function(e,t,A){"use strict";var i,n,r,o=A("e163"),s=A("9112"),a=A("5135"),l=A("b622"),c=A("c430"),d=l("iterator"),u=!1,h=function(){return this};[].keys&&(r=[].keys(),"next"in r?(n=o(o(r)),n!==Object.prototype&&(i=n)):u=!0),void 0==i&&(i={}),c||a(i,d)||s(i,d,h),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:u}},b041:function(e,t,A){"use strict";var i=A("00ee"),n=A("f5df");e.exports=i?{}.toString:function(){return"[object "+n(this)+"]"}},b0c0:function(e,t,A){var i=A("83ab"),n=A("9bf2").f,r=Function.prototype,o=r.toString,s=/^\s*function ([^ (]*)/,a="name";i&&!(a in r)&&n(r,a,{configurable:!0,get:function(){try{return o.call(this).match(s)[1]}catch(e){return""}}})},b622:function(e,t,A){var i=A("da84"),n=A("5692"),r=A("5135"),o=A("90e3"),s=A("4930"),a=A("fdbf"),l=n("wks"),c=i.Symbol,d=a?c:c&&c.withoutSetter||o;e.exports=function(e){return r(l,e)||(s&&r(c,e)?l[e]=c[e]:l[e]=d("Symbol."+e)),l[e]}},b64b:function(e,t,A){var i=A("23e7"),n=A("7b0b"),r=A("df75"),o=A("d039"),s=o((function(){r(1)}));i({target:"Object",stat:!0,forced:s},{keys:function(e){return r(n(e))}})},b727:function(e,t,A){var i=A("0366"),n=A("44ad"),r=A("7b0b"),o=A("50c4"),s=A("65f0"),a=[].push,l=function(e){var t=1==e,A=2==e,l=3==e,c=4==e,d=6==e,u=5==e||d;return function(h,g,p,f){for(var m,B,w=r(h),v=n(w),y=i(g,p,3),C=o(v.length),b=0,_=f||s,Q=t?_(h,C):A?_(h,0):void 0;C>b;b++)if((u||b in v)&&(m=v[b],B=y(m,b,w),e))if(t)Q[b]=B;else if(B)switch(e){case 3:return!0;case 5:return m;case 6:return b;case 2:a.call(Q,m)}else if(c)return!1;return d?-1:l||c?c:Q}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6)}},c04e:function(e,t,A){var i=A("861d");e.exports=function(e,t){if(!i(e))return e;var A,n;if(t&&"function"==typeof(A=e.toString)&&!i(n=A.call(e)))return n;if("function"==typeof(A=e.valueOf)&&!i(n=A.call(e)))return n;if(!t&&"function"==typeof(A=e.toString)&&!i(n=A.call(e)))return n;throw TypeError("Can't convert object to primitive value")}},c430:function(e,t){e.exports=!1},c6b6:function(e,t){var A={}.toString;e.exports=function(e){return A.call(e).slice(8,-1)}},c6cd:function(e,t,A){var i=A("da84"),n=A("ce4e"),r="__core-js_shared__",o=i[r]||n(r,{});e.exports=o},c740:function(e,t,A){"use strict";var i=A("23e7"),n=A("b727").findIndex,r=A("44d2"),o=A("ae40"),s="findIndex",a=!0,l=o(s);s in[]&&Array(1)[s]((function(){a=!1})),i({target:"Array",proto:!0,forced:a||!l},{findIndex:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}}),r(s)},c8ba:function(e,t){var A;A=function(){return this}();try{A=A||new Function("return this")()}catch(i){"object"===typeof window&&(A=window)}e.exports=A},c975:function(e,t,A){"use strict";var i=A("23e7"),n=A("4d64").indexOf,r=A("a640"),o=A("ae40"),s=[].indexOf,a=!!s&&1/[1].indexOf(1,-0)<0,l=r("indexOf"),c=o("indexOf",{ACCESSORS:!0,1:0});i({target:"Array",proto:!0,forced:a||!l||!c},{indexOf:function(e){return a?s.apply(this,arguments)||0:n(this,e,arguments.length>1?arguments[1]:void 0)}})},ca84:function(e,t,A){var i=A("5135"),n=A("fc6a"),r=A("4d64").indexOf,o=A("d012");e.exports=function(e,t){var A,s=n(e),a=0,l=[];for(A in s)!i(o,A)&&i(s,A)&&l.push(A);while(t.length>a)i(s,A=t[a++])&&(~r(l,A)||l.push(A));return l}},caad:function(e,t,A){"use strict";var i=A("23e7"),n=A("4d64").includes,r=A("44d2"),o=A("ae40"),s=o("indexOf",{ACCESSORS:!0,1:0});i({target:"Array",proto:!0,forced:!s},{includes:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}}),r("includes")},cc12:function(e,t,A){var i=A("da84"),n=A("861d"),r=i.document,o=n(r)&&n(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},ce4e:function(e,t,A){var i=A("da84"),n=A("9112");e.exports=function(e,t){try{n(i,e,t)}catch(A){i[e]=t}return t}},d012:function(e,t){e.exports={}},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,A){var i=A("428f"),n=A("da84"),r=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?r(i[e])||r(n[e]):i[e]&&i[e][t]||n[e]&&n[e][t]}},d1e7:function(e,t,A){"use strict";var i={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,r=n&&!i.call({1:2},1);t.f=r?function(e){var t=n(this,e);return!!t&&t.enumerable}:i},d28b:function(e,t,A){var i=A("746f");i("iterator")},d2bb:function(e,t,A){var i=A("825a"),n=A("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,A={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(A,[]),t=A instanceof Array}catch(r){}return function(A,r){return i(A),n(r),t?e.call(A,r):A.__proto__=r,A}}():void 0)},d3b7:function(e,t,A){var i=A("00ee"),n=A("6eeb"),r=A("b041");i||n(Object.prototype,"toString",r,{unsafe:!0})},d44e:function(e,t,A){var i=A("9bf2").f,n=A("5135"),r=A("b622"),o=r("toStringTag");e.exports=function(e,t,A){e&&!n(e=A?e:e.prototype,o)&&i(e,o,{configurable:!0,value:t})}},d58f:function(e,t,A){var i=A("1c0b"),n=A("7b0b"),r=A("44ad"),o=A("50c4"),s=function(e){return function(t,A,s,a){i(A);var l=n(t),c=r(l),d=o(l.length),u=e?d-1:0,h=e?-1:1;if(s<2)while(1){if(u in c){a=c[u],u+=h;break}if(u+=h,e?u<0:d<=u)throw TypeError("Reduce of empty array with no initial value")}for(;e?u>=0:d>u;u+=h)u in c&&(a=A(a,c[u],u,l));return a}};e.exports={left:s(!1),right:s(!0)}},d784:function(e,t,A){"use strict";A("ac1f");var i=A("6eeb"),n=A("d039"),r=A("b622"),o=A("9263"),s=A("9112"),a=r("species"),l=!n((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),c=function(){return"$0"==="a".replace(/./,"$0")}(),d=r("replace"),u=function(){return!!/./[d]&&""===/./[d]("a","$0")}(),h=!n((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var A="ab".split(e);return 2!==A.length||"a"!==A[0]||"b"!==A[1]}));e.exports=function(e,t,A,d){var g=r(e),p=!n((function(){var t={};return t[g]=function(){return 7},7!=""[e](t)})),f=p&&!n((function(){var t=!1,A=/a/;return"split"===e&&(A={},A.constructor={},A.constructor[a]=function(){return A},A.flags="",A[g]=/./[g]),A.exec=function(){return t=!0,null},A[g](""),!t}));if(!p||!f||"replace"===e&&(!l||!c||u)||"split"===e&&!h){var m=/./[g],B=A(g,""[e],(function(e,t,A,i,n){return t.exec===o?p&&!n?{done:!0,value:m.call(t,A,i)}:{done:!0,value:e.call(A,t,i)}:{done:!1}}),{REPLACE_KEEPS_$0:c,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:u}),w=B[0],v=B[1];i(String.prototype,e,w),i(RegExp.prototype,g,2==t?function(e,t){return v.call(e,this,t)}:function(e){return v.call(e,this)})}d&&s(RegExp.prototype[g],"sham",!0)}},d81d:function(e,t,A){"use strict";var i=A("23e7"),n=A("b727").map,r=A("1dde"),o=A("ae40"),s=r("map"),a=o("map");i({target:"Array",proto:!0,forced:!s||!a},{map:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}})},da84:function(e,t,A){(function(t){var A=function(e){return e&&e.Math==Math&&e};e.exports=A("object"==typeof globalThis&&globalThis)||A("object"==typeof window&&window)||A("object"==typeof self&&self)||A("object"==typeof t&&t)||Function("return this")()}).call(this,A("c8ba"))},dbb4:function(e,t,A){var i=A("23e7"),n=A("83ab"),r=A("56ef"),o=A("fc6a"),s=A("06cf"),a=A("8418");i({target:"Object",stat:!0,sham:!n},{getOwnPropertyDescriptors:function(e){var t,A,i=o(e),n=s.f,l=r(i),c={},d=0;while(l.length>d)A=n(i,t=l[d++]),void 0!==A&&a(c,t,A);return c}})},dbf1:function(e,t,A){"use strict";(function(e){function i(){return"undefined"!==typeof window?window.console:e.console}A.d(t,"a",(function(){return n}));var n=i()}).call(this,A("c8ba"))},ddb0:function(e,t,A){var i=A("da84"),n=A("fdbc"),r=A("e260"),o=A("9112"),s=A("b622"),a=s("iterator"),l=s("toStringTag"),c=r.values;for(var d in n){var u=i[d],h=u&&u.prototype;if(h){if(h[a]!==c)try{o(h,a,c)}catch(p){h[a]=c}if(h[l]||o(h,l,d),n[d])for(var g in r)if(h[g]!==r[g])try{o(h,g,r[g])}catch(p){h[g]=r[g]}}}},df75:function(e,t,A){var i=A("ca84"),n=A("7839");e.exports=Object.keys||function(e){return i(e,n)}},e01a:function(e,t,A){"use strict";var i=A("23e7"),n=A("83ab"),r=A("da84"),o=A("5135"),s=A("861d"),a=A("9bf2").f,l=A("e893"),c=r.Symbol;if(n&&"function"==typeof c&&(!("description"in c.prototype)||void 0!==c().description)){var d={},u=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof u?new c(e):void 0===e?c():c(e);return""===e&&(d[t]=!0),t};l(u,c);var h=u.prototype=c.prototype;h.constructor=u;var g=h.toString,p="Symbol(test)"==String(c("test")),f=/^Symbol\((.*)\)[^)]+$/;a(h,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=g.call(e);if(o(d,e))return"";var A=p?t.slice(7,-1):t.replace(f,"$1");return""===A?void 0:A}}),i({global:!0,forced:!0},{Symbol:u})}},e163:function(e,t,A){var i=A("5135"),n=A("7b0b"),r=A("f772"),o=A("e177"),s=r("IE_PROTO"),a=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=n(e),i(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},e177:function(e,t,A){var i=A("d039");e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e260:function(e,t,A){"use strict";var i=A("fc6a"),n=A("44d2"),r=A("3f8c"),o=A("69f3"),s=A("7dd0"),a="Array Iterator",l=o.set,c=o.getterFor(a);e.exports=s(Array,"Array",(function(e,t){l(this,{type:a,target:i(e),index:0,kind:t})}),(function(){var e=c(this),t=e.target,A=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==A?{value:i,done:!1}:"values"==A?{value:t[i],done:!1}:{value:[i,t[i]],done:!1}}),"values"),r.Arguments=r.Array,n("keys"),n("values"),n("entries")},e439:function(e,t,A){var i=A("23e7"),n=A("d039"),r=A("fc6a"),o=A("06cf").f,s=A("83ab"),a=n((function(){o(1)})),l=!s||a;i({target:"Object",stat:!0,forced:l,sham:!s},{getOwnPropertyDescriptor:function(e,t){return o(r(e),t)}})},e538:function(e,t,A){var i=A("b622");t.f=i},e893:function(e,t,A){var i=A("5135"),n=A("56ef"),r=A("06cf"),o=A("9bf2");e.exports=function(e,t){for(var A=n(t),s=o.f,a=r.f,l=0;l<A.length;l++){var c=A[l];i(e,c)||s(e,c,a(t,c))}}},e8b5:function(e,t,A){var i=A("c6b6");e.exports=Array.isArray||function(e){return"Array"==i(e)}},e95a:function(e,t,A){var i=A("b622"),n=A("3f8c"),r=i("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[r]===e)}},f5df:function(e,t,A){var i=A("00ee"),n=A("c6b6"),r=A("b622"),o=r("toStringTag"),s="Arguments"==n(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(A){}};e.exports=i?n:function(e){var t,A,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(A=a(t=Object(e),o))?A:s?n(t):"Object"==(i=n(t))&&"function"==typeof t.callee?"Arguments":i}},f772:function(e,t,A){var i=A("5692"),n=A("90e3"),r=i("keys");e.exports=function(e){return r[e]||(r[e]=n(e))}},fb15:function(e,t,A){"use strict";if(A.r(t),"undefined"!==typeof window){var i=window.document.currentScript,n=A("8875");i=n(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:n});var r=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);r&&(A.p=r[1])}A("99af"),A("4de4"),A("4160"),A("c975"),A("d81d"),A("a434"),A("159b"),A("a4d3"),A("e439"),A("dbb4"),A("b64b");function o(e,t,A){return t in e?Object.defineProperty(e,t,{value:A,enumerable:!0,configurable:!0,writable:!0}):e[t]=A,e}function s(e,t){var A=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),A.push.apply(A,i)}return A}function a(e){for(var t=1;t<arguments.length;t++){var A=null!=arguments[t]?arguments[t]:{};t%2?s(Object(A),!0).forEach((function(t){o(e,t,A[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(A)):s(Object(A)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(A,t))}))}return e}function l(e){if(Array.isArray(e))return e}A("e01a"),A("d28b"),A("e260"),A("d3b7"),A("3ca3"),A("ddb0");function c(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var A=[],i=!0,n=!1,r=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done);i=!0)if(A.push(o.value),t&&A.length===t)break}catch(a){n=!0,r=a}finally{try{i||null==s["return"]||s["return"]()}finally{if(n)throw r}}return A}}A("a630"),A("fb6a"),A("b0c0"),A("25f0");function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var A=0,i=new Array(t);A<t;A++)i[A]=e[A];return i}function u(e,t){if(e){if("string"===typeof e)return d(e,t);var A=Object.prototype.toString.call(e).slice(8,-1);return"Object"===A&&e.constructor&&(A=e.constructor.name),"Map"===A||"Set"===A?Array.from(e):"Arguments"===A||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A)?d(e,t):void 0}}function h(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(e,t){return l(e)||c(e,t)||u(e,t)||h()}function p(e){if(Array.isArray(e))return d(e)}function f(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function m(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function B(e){return p(e)||f(e)||u(e)||m()}var w=A("a352"),v=A.n(w);function y(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function C(e,t,A){var i=0===A?e.children[0]:e.children[A-1].nextSibling;e.insertBefore(t,i)}var b=A("dbf1");A("13d5"),A("4fad"),A("ac1f"),A("5319");function _(e){var t=Object.create(null);return function(A){var i=t[A];return i||(t[A]=e(A))}}var Q=/-(\w)/g,U=_((function(e){return e.replace(Q,(function(e,t){return t.toUpperCase()}))})),F=(A("5db7"),A("73d9"),["Start","Add","Remove","Update","End"]),x=["Choose","Unchoose","Sort","Filter","Clone"],E=["Move"],k=[E,F,x].flatMap((function(e){return e})).map((function(e){return"on".concat(e)})),I={manage:E,manageAndEmit:F,emit:x};function D(e){return-1!==k.indexOf(e)}A("caad"),A("2ca0");var S=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function H(e){return S.includes(e)}function L(e){return["transition-group","TransitionGroup"].includes(e)}function O(e){return["id","class","role","style"].includes(e)||e.startsWith("data-")||e.startsWith("aria-")||e.startsWith("on")}function M(e){return e.reduce((function(e,t){var A=g(t,2),i=A[0],n=A[1];return e[i]=n,e}),{})}function T(e){var t=e.$attrs,A=e.componentData,i=void 0===A?{}:A,n=M(Object.entries(t).filter((function(e){var t=g(e,2),A=t[0];t[1];return O(A)})));return a(a({},n),i)}function N(e){var t=e.$attrs,A=e.callBackBuilder,i=M(K(t));Object.entries(A).forEach((function(e){var t=g(e,2),A=t[0],n=t[1];I[A].forEach((function(e){i["on".concat(e)]=n(e)}))}));var n="[data-draggable]".concat(i.draggable||"");return a(a({},i),{},{draggable:n})}function K(e){return Object.entries(e).filter((function(e){var t=g(e,2),A=t[0];t[1];return!O(A)})).map((function(e){var t=g(e,2),A=t[0],i=t[1];return[U(A),i]})).filter((function(e){var t=g(e,2),A=t[0];t[1];return!D(A)}))}A("c740");function P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function R(e,t){for(var A=0;A<t.length;A++){var i=t[A];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function V(e,t,A){return t&&R(e.prototype,t),A&&R(e,A),e}var G=function(e){var t=e.el;return t},z=function(e,t){return e.__draggable_context=t},j=function(e){return e.__draggable_context},Z=function(){function e(t){var A=t.nodes,i=A.header,n=A.default,r=A.footer,o=t.root,s=t.realList;P(this,e),this.defaultNodes=n,this.children=[].concat(B(i),B(n),B(r)),this.externalComponent=o.externalComponent,this.rootTransition=o.transition,this.tag=o.tag,this.realList=s}return V(e,[{key:"render",value:function(e,t){var A=this.tag,i=this.children,n=this._isRootComponent,r=n?{default:function(){return i}}:i;return e(A,t,r)}},{key:"updated",value:function(){var e=this.defaultNodes,t=this.realList;e.forEach((function(e,A){z(G(e),{element:t[A],index:A})}))}},{key:"getUnderlyingVm",value:function(e){return j(e)}},{key:"getVmIndexFromDomIndex",value:function(e,t){var A=this.defaultNodes,i=A.length,n=t.children,r=n.item(e);if(null===r)return i;var o=j(r);if(o)return o.index;if(0===i)return 0;var s=G(A[0]),a=B(n).findIndex((function(e){return e===s}));return e<a?0:i}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),e}(),W=A("8bbf");function Y(e,t){var A=e[t];return A?A():[]}function X(e){var t=e.$slots,A=e.realList,i=e.getKey,n=A||[],r=["header","footer"].map((function(e){return Y(t,e)})),o=g(r,2),s=o[0],l=o[1],c=t.item;if(!c)throw new Error("draggable element must have an item slot");var d=n.flatMap((function(e,t){return c({element:e,index:t}).map((function(t){return t.key=i(e),t.props=a(a({},t.props||{}),{},{"data-draggable":!0}),t}))}));if(d.length!==n.length)throw new Error("Item slot must have only one child");return{header:s,footer:l,default:d}}function J(e){var t=L(e),A=!H(e)&&!t;return{transition:t,externalComponent:A,tag:A?Object(W["resolveComponent"])(e):t?W["TransitionGroup"]:e}}function $(e){var t=e.$slots,A=e.tag,i=e.realList,n=e.getKey,r=X({$slots:t,realList:i,getKey:n}),o=J(A);return new Z({nodes:r,root:o,realList:i})}function q(e,t){var A=this;Object(W["nextTick"])((function(){return A.$emit(e.toLowerCase(),t)}))}function ee(e){var t=this;return function(A,i){if(null!==t.realList)return t["onDrag".concat(e)](A,i)}}function te(e){var t=this,A=ee.call(this,e);return function(i,n){A.call(t,i,n),q.call(t,e,i)}}var Ae=null,ie={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(e){return e}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},ne=["update:modelValue","change"].concat(B([].concat(B(I.manageAndEmit),B(I.emit)).map((function(e){return e.toLowerCase()})))),re=Object(W["defineComponent"])({name:"draggable",inheritAttrs:!1,props:ie,emits:ne,data:function(){return{error:!1}},render:function(){try{this.error=!1;var e=this.$slots,t=this.$attrs,A=this.tag,i=this.componentData,n=this.realList,r=this.getKey,o=$({$slots:e,tag:A,realList:n,getKey:r});this.componentStructure=o;var s=T({$attrs:t,componentData:i});return o.render(W["h"],s)}catch(a){return this.error=!0,Object(W["h"])("pre",{style:{color:"red"}},a.stack)}},created:function(){null!==this.list&&null!==this.modelValue&&b["a"].error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var e=this;if(!this.error){var t=this.$attrs,A=this.$el,i=this.componentStructure;i.updated();var n=N({$attrs:t,callBackBuilder:{manageAndEmit:function(t){return te.call(e,t)},emit:function(t){return q.bind(e,t)},manage:function(t){return ee.call(e,t)}}}),r=1===A.nodeType?A:A.parentElement;this._sortable=new v.a(r,n),this.targetDomElement=r,r.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{realList:function(){var e=this.list;return e||this.modelValue},getKey:function(){var e=this.itemKey;return"function"===typeof e?e:function(t){return t[e]}}},watch:{$attrs:{handler:function(e){var t=this._sortable;t&&K(e).forEach((function(e){var A=g(e,2),i=A[0],n=A[1];t.option(i,n)}))},deep:!0}},methods:{getUnderlyingVm:function(e){return this.componentStructure.getUnderlyingVm(e)||null},getUnderlyingPotencialDraggableComponent:function(e){return e.__draggable_component__},emitChanges:function(e){var t=this;Object(W["nextTick"])((function(){return t.$emit("change",e)}))},alterList:function(e){if(this.list)e(this.list);else{var t=B(this.modelValue);e(t),this.$emit("update:modelValue",t)}},spliceList:function(){var e=arguments,t=function(t){return t.splice.apply(t,B(e))};this.alterList(t)},updatePosition:function(e,t){var A=function(A){return A.splice(t,0,A.splice(e,1)[0])};this.alterList(A)},getRelatedContextFromMoveEvent:function(e){var t=e.to,A=e.related,i=this.getUnderlyingPotencialDraggableComponent(t);if(!i)return{component:i};var n=i.realList,r={list:n,component:i};if(t!==A&&n){var o=i.getUnderlyingVm(A)||{};return a(a({},o),r)}return r},getVmIndexFromDomIndex:function(e){return this.componentStructure.getVmIndexFromDomIndex(e,this.targetDomElement)},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),Ae=e.item},onDragAdd:function(e){var t=e.item._underlying_vm_;if(void 0!==t){y(e.item);var A=this.getVmIndexFromDomIndex(e.newIndex);this.spliceList(A,0,t);var i={element:t,newIndex:A};this.emitChanges({added:i})}},onDragRemove:function(e){if(C(this.$el,e.item,e.oldIndex),"clone"!==e.pullMode){var t=this.context,A=t.index,i=t.element;this.spliceList(A,1);var n={element:i,oldIndex:A};this.emitChanges({removed:n})}else y(e.clone)},onDragUpdate:function(e){y(e.item),C(e.from,e.item,e.oldIndex);var t=this.context.index,A=this.getVmIndexFromDomIndex(e.newIndex);this.updatePosition(t,A);var i={element:this.context.element,oldIndex:t,newIndex:A};this.emitChanges({moved:i})},computeFutureIndex:function(e,t){if(!e.element)return 0;var A=B(t.to.children).filter((function(e){return"none"!==e.style["display"]})),i=A.indexOf(t.related),n=e.component.getVmIndexFromDomIndex(i),r=-1!==A.indexOf(Ae);return r||!t.willInsertAfter?n:n+1},onDragMove:function(e,t){var A=this.move,i=this.realList;if(!A||!i)return!0;var n=this.getRelatedContextFromMoveEvent(e),r=this.computeFutureIndex(n,e),o=a(a({},this.context),{},{futureIndex:r}),s=a(a({},e),{},{relatedContext:n,draggedContext:o});return A(s,t)},onDragEnd:function(){Ae=null}}}),oe=re;t["default"]=oe},fb6a:function(e,t,A){"use strict";var i=A("23e7"),n=A("861d"),r=A("e8b5"),o=A("23cb"),s=A("50c4"),a=A("fc6a"),l=A("8418"),c=A("b622"),d=A("1dde"),u=A("ae40"),h=d("slice"),g=u("slice",{ACCESSORS:!0,0:0,1:2}),p=c("species"),f=[].slice,m=Math.max;i({target:"Array",proto:!0,forced:!h||!g},{slice:function(e,t){var A,i,c,d=a(this),u=s(d.length),h=o(e,u),g=o(void 0===t?u:t,u);if(r(d)&&(A=d.constructor,"function"!=typeof A||A!==Array&&!r(A.prototype)?n(A)&&(A=A[p],null===A&&(A=void 0)):A=void 0,A===Array||void 0===A))return f.call(d,h,g);for(i=new(void 0===A?Array:A)(m(g-h,0)),c=0;h<g;h++,c++)h in d&&l(i,c,d[h]);return i.length=c,i}})},fc6a:function(e,t,A){var i=A("44ad"),n=A("1d80");e.exports=function(e){return i(n(e))}},fdbc:function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(e,t,A){var i=A("4930");e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}})["default"]}))},8244:function(e,t,A){"use strict";
|
||
/**!
|
||
* Sortable 1.14.0
|
||
* @author RubaXa <trash@rubaxa.org>
|
||
* @author owenm <owen23355@gmail.com>
|
||
* @license MIT
|
||
*/
|
||
function i(e,t){var A=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),A.push.apply(A,i)}return A}function n(e){for(var t=1;t<arguments.length;t++){var A=null!=arguments[t]?arguments[t]:{};t%2?i(Object(A),!0).forEach((function(t){o(e,t,A[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(A)):i(Object(A)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(A,t))}))}return e}function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t,A){return t in e?Object.defineProperty(e,t,{value:A,enumerable:!0,configurable:!0,writable:!0}):e[t]=A,e}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var A=arguments[t];for(var i in A)Object.prototype.hasOwnProperty.call(A,i)&&(e[i]=A[i])}return e},s.apply(this,arguments)}function a(e,t){if(null==e)return{};var A,i,n={},r=Object.keys(e);for(i=0;i<r.length;i++)A=r[i],t.indexOf(A)>=0||(n[A]=e[A]);return n}function l(e,t){if(null==e)return{};var A,i,n=a(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)A=r[i],t.indexOf(A)>=0||Object.prototype.propertyIsEnumerable.call(e,A)&&(n[A]=e[A])}return n}function c(e){return d(e)||u(e)||h(e)||p()}function d(e){if(Array.isArray(e))return g(e)}function u(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function h(e,t){if(e){if("string"===typeof e)return g(e,t);var A=Object.prototype.toString.call(e).slice(8,-1);return"Object"===A&&e.constructor&&(A=e.constructor.name),"Map"===A||"Set"===A?Array.from(e):"Arguments"===A||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A)?g(e,t):void 0}}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var A=0,i=new Array(t);A<t;A++)i[A]=e[A];return i}function p(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}A.r(t),A.d(t,{MultiDrag:function(){return Vt},Sortable:function(){return At},Swap:function(){return It}});var f="1.14.0";function m(e){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var B=m(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),w=m(/Edge/i),v=m(/firefox/i),y=m(/safari/i)&&!m(/chrome/i)&&!m(/android/i),C=m(/iP(ad|od|hone)/i),b=m(/chrome/i)&&m(/android/i),_={capture:!1,passive:!1};function Q(e,t,A){e.addEventListener(t,A,!B&&_)}function U(e,t,A){e.removeEventListener(t,A,!B&&_)}function F(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(A){return!1}return!1}}function x(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function E(e,t,A,i){if(e){A=A||document;do{if(null!=t&&(">"===t[0]?e.parentNode===A&&F(e,t):F(e,t))||i&&e===A)return e;if(e===A)break}while(e=x(e))}return null}var k,I=/\s+/g;function D(e,t,A){if(e&&t)if(e.classList)e.classList[A?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(I," ").replace(" "+t+" "," ");e.className=(i+(A?" "+t:"")).replace(I," ")}}function S(e,t,A){var i=e&&e.style;if(i){if(void 0===A)return document.defaultView&&document.defaultView.getComputedStyle?A=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(A=e.currentStyle),void 0===t?A:A[t];t in i||-1!==t.indexOf("webkit")||(t="-webkit-"+t),i[t]=A+("string"===typeof A?"":"px")}}function H(e,t){var A="";if("string"===typeof e)A=e;else do{var i=S(e,"transform");i&&"none"!==i&&(A=i+" "+A)}while(!t&&(e=e.parentNode));var n=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return n&&new n(A)}function L(e,t,A){if(e){var i=e.getElementsByTagName(t),n=0,r=i.length;if(A)for(;n<r;n++)A(i[n],n);return i}return[]}function O(){var e=document.scrollingElement;return e||document.documentElement}function M(e,t,A,i,n){if(e.getBoundingClientRect||e===window){var r,o,s,a,l,c,d;if(e!==window&&e.parentNode&&e!==O()?(r=e.getBoundingClientRect(),o=r.top,s=r.left,a=r.bottom,l=r.right,c=r.height,d=r.width):(o=0,s=0,a=window.innerHeight,l=window.innerWidth,c=window.innerHeight,d=window.innerWidth),(t||A)&&e!==window&&(n=n||e.parentNode,!B))do{if(n&&n.getBoundingClientRect&&("none"!==S(n,"transform")||A&&"static"!==S(n,"position"))){var u=n.getBoundingClientRect();o-=u.top+parseInt(S(n,"border-top-width")),s-=u.left+parseInt(S(n,"border-left-width")),a=o+r.height,l=s+r.width;break}}while(n=n.parentNode);if(i&&e!==window){var h=H(n||e),g=h&&h.a,p=h&&h.d;h&&(o/=p,s/=g,d/=g,c/=p,a=o+c,l=s+d)}return{top:o,left:s,bottom:a,right:l,width:d,height:c}}}function T(e,t,A){var i=G(e,!0),n=M(e)[t];while(i){var r=M(i)[A],o=void 0;if(o="top"===A||"left"===A?n>=r:n<=r,!o)return i;if(i===O())break;i=G(i,!1)}return!1}function N(e,t,A,i){var n=0,r=0,o=e.children;while(r<o.length){if("none"!==o[r].style.display&&o[r]!==At.ghost&&(i||o[r]!==At.dragged)&&E(o[r],A.draggable,e,!1)){if(n===t)return o[r];n++}r++}return null}function K(e,t){var A=e.lastElementChild;while(A&&(A===At.ghost||"none"===S(A,"display")||t&&!F(A,t)))A=A.previousElementSibling;return A||null}function P(e,t){var A=0;if(!e||!e.parentNode)return-1;while(e=e.previousElementSibling)"TEMPLATE"===e.nodeName.toUpperCase()||e===At.clone||t&&!F(e,t)||A++;return A}function R(e){var t=0,A=0,i=O();if(e)do{var n=H(e),r=n.a,o=n.d;t+=e.scrollLeft*r,A+=e.scrollTop*o}while(e!==i&&(e=e.parentNode));return[t,A]}function V(e,t){for(var A in e)if(e.hasOwnProperty(A))for(var i in t)if(t.hasOwnProperty(i)&&t[i]===e[A][i])return Number(A);return-1}function G(e,t){if(!e||!e.getBoundingClientRect)return O();var A=e,i=!1;do{if(A.clientWidth<A.scrollWidth||A.clientHeight<A.scrollHeight){var n=S(A);if(A.clientWidth<A.scrollWidth&&("auto"==n.overflowX||"scroll"==n.overflowX)||A.clientHeight<A.scrollHeight&&("auto"==n.overflowY||"scroll"==n.overflowY)){if(!A.getBoundingClientRect||A===document.body)return O();if(i||t)return A;i=!0}}}while(A=A.parentNode);return O()}function z(e,t){if(e&&t)for(var A in t)t.hasOwnProperty(A)&&(e[A]=t[A]);return e}function j(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function Z(e,t){return function(){if(!k){var A=arguments,i=this;1===A.length?e.call(i,A[0]):e.apply(i,A),k=setTimeout((function(){k=void 0}),t)}}}function W(){clearTimeout(k),k=void 0}function Y(e,t,A){e.scrollLeft+=t,e.scrollTop+=A}function X(e){var t=window.Polymer,A=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):A?A(e).clone(!0)[0]:e.cloneNode(!0)}function J(e,t){S(e,"position","absolute"),S(e,"top",t.top),S(e,"left",t.left),S(e,"width",t.width),S(e,"height",t.height)}function $(e){S(e,"position",""),S(e,"top",""),S(e,"left",""),S(e,"width",""),S(e,"height","")}var q="Sortable"+(new Date).getTime();function ee(){var e,t=[];return{captureAnimationState:function(){if(t=[],this.options.animation){var e=[].slice.call(this.el.children);e.forEach((function(e){if("none"!==S(e,"display")&&e!==At.ghost){t.push({target:e,rect:M(e)});var A=n({},t[t.length-1].rect);if(e.thisAnimationDuration){var i=H(e,!0);i&&(A.top-=i.f,A.left-=i.e)}e.fromRect=A}}))}},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(V(t,{target:e}),1)},animateAll:function(A){var i=this;if(!this.options.animation)return clearTimeout(e),void("function"===typeof A&&A());var n=!1,r=0;t.forEach((function(e){var t=0,A=e.target,o=A.fromRect,s=M(A),a=A.prevFromRect,l=A.prevToRect,c=e.rect,d=H(A,!0);d&&(s.top-=d.f,s.left-=d.e),A.toRect=s,A.thisAnimationDuration&&j(a,s)&&!j(o,s)&&(c.top-s.top)/(c.left-s.left)===(o.top-s.top)/(o.left-s.left)&&(t=Ae(c,a,l,i.options)),j(s,o)||(A.prevFromRect=o,A.prevToRect=s,t||(t=i.options.animation),i.animate(A,c,s,t)),t&&(n=!0,r=Math.max(r,t),clearTimeout(A.animationResetTimer),A.animationResetTimer=setTimeout((function(){A.animationTime=0,A.prevFromRect=null,A.fromRect=null,A.prevToRect=null,A.thisAnimationDuration=null}),t),A.thisAnimationDuration=t)})),clearTimeout(e),n?e=setTimeout((function(){"function"===typeof A&&A()}),r):"function"===typeof A&&A(),t=[]},animate:function(e,t,A,i){if(i){S(e,"transition",""),S(e,"transform","");var n=H(this.el),r=n&&n.a,o=n&&n.d,s=(t.left-A.left)/(r||1),a=(t.top-A.top)/(o||1);e.animatingX=!!s,e.animatingY=!!a,S(e,"transform","translate3d("+s+"px,"+a+"px,0)"),this.forRepaintDummy=te(e),S(e,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),S(e,"transform","translate3d(0,0,0)"),"number"===typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){S(e,"transition",""),S(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),i)}}}}function te(e){return e.offsetWidth}function Ae(e,t,A,i){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-A.top,2)+Math.pow(t.left-A.left,2))*i.animation}var ie=[],ne={initializeByDefault:!0},re={mount:function(e){for(var t in ne)ne.hasOwnProperty(t)&&!(t in e)&&(e[t]=ne[t]);ie.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),ie.push(e)},pluginEvent:function(e,t,A){var i=this;this.eventCanceled=!1,A.cancel=function(){i.eventCanceled=!0};var r=e+"Global";ie.forEach((function(i){t[i.pluginName]&&(t[i.pluginName][r]&&t[i.pluginName][r](n({sortable:t},A)),t.options[i.pluginName]&&t[i.pluginName][e]&&t[i.pluginName][e](n({sortable:t},A)))}))},initializePlugins:function(e,t,A,i){for(var n in ie.forEach((function(i){var n=i.pluginName;if(e.options[n]||i.initializeByDefault){var r=new i(e,t,e.options);r.sortable=e,r.options=e.options,e[n]=r,s(A,r.defaults)}})),e.options)if(e.options.hasOwnProperty(n)){var r=this.modifyOption(e,n,e.options[n]);"undefined"!==typeof r&&(e.options[n]=r)}},getEventProperties:function(e,t){var A={};return ie.forEach((function(i){"function"===typeof i.eventProperties&&s(A,i.eventProperties.call(t[i.pluginName],e))})),A},modifyOption:function(e,t,A){var i;return ie.forEach((function(n){e[n.pluginName]&&n.optionListeners&&"function"===typeof n.optionListeners[t]&&(i=n.optionListeners[t].call(e[n.pluginName],A))})),i}};function oe(e){var t=e.sortable,A=e.rootEl,i=e.name,r=e.targetEl,o=e.cloneEl,s=e.toEl,a=e.fromEl,l=e.oldIndex,c=e.newIndex,d=e.oldDraggableIndex,u=e.newDraggableIndex,h=e.originalEvent,g=e.putSortable,p=e.extraEventProperties;if(t=t||A&&A[q],t){var f,m=t.options,v="on"+i.charAt(0).toUpperCase()+i.substr(1);!window.CustomEvent||B||w?(f=document.createEvent("Event"),f.initEvent(i,!0,!0)):f=new CustomEvent(i,{bubbles:!0,cancelable:!0}),f.to=s||A,f.from=a||A,f.item=r||A,f.clone=o,f.oldIndex=l,f.newIndex=c,f.oldDraggableIndex=d,f.newDraggableIndex=u,f.originalEvent=h,f.pullMode=g?g.lastPutMode:void 0;var y=n(n({},p),re.getEventProperties(i,t));for(var C in y)f[C]=y[C];A&&A.dispatchEvent(f),m[v]&&m[v].call(t,f)}}var se=["evt"],ae=function(e,t){var A=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=A.evt,r=l(A,se);re.pluginEvent.bind(At)(e,t,n({dragEl:ce,parentEl:de,ghostEl:ue,rootEl:he,nextEl:ge,lastDownEl:pe,cloneEl:fe,cloneHidden:me,dragStarted:ke,putSortable:be,activeSortable:At.active,originalEvent:i,oldIndex:Be,oldDraggableIndex:ve,newIndex:we,newDraggableIndex:ye,hideGhostForTarget:$e,unhideGhostForTarget:qe,cloneNowHidden:function(){me=!0},cloneNowShown:function(){me=!1},dispatchSortableEvent:function(e){le({sortable:t,name:e,originalEvent:i})}},r))};function le(e){oe(n({putSortable:be,cloneEl:fe,targetEl:ce,rootEl:he,oldIndex:Be,oldDraggableIndex:ve,newIndex:we,newDraggableIndex:ye},e))}var ce,de,ue,he,ge,pe,fe,me,Be,we,ve,ye,Ce,be,_e,Qe,Ue,Fe,xe,Ee,ke,Ie,De,Se,He,Le=!1,Oe=!1,Me=[],Te=!1,Ne=!1,Ke=[],Pe=!1,Re=[],Ve="undefined"!==typeof document,Ge=C,ze=w||B?"cssFloat":"float",je=Ve&&!b&&!C&&"draggable"in document.createElement("div"),Ze=function(){if(Ve){if(B)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),We=function(e,t){var A=S(e),i=parseInt(A.width)-parseInt(A.paddingLeft)-parseInt(A.paddingRight)-parseInt(A.borderLeftWidth)-parseInt(A.borderRightWidth),n=N(e,0,t),r=N(e,1,t),o=n&&S(n),s=r&&S(r),a=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+M(n).width,l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+M(r).width;if("flex"===A.display)return"column"===A.flexDirection||"column-reverse"===A.flexDirection?"vertical":"horizontal";if("grid"===A.display)return A.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(n&&o["float"]&&"none"!==o["float"]){var c="left"===o["float"]?"left":"right";return!r||"both"!==s.clear&&s.clear!==c?"horizontal":"vertical"}return n&&("block"===o.display||"flex"===o.display||"table"===o.display||"grid"===o.display||a>=i&&"none"===A[ze]||r&&"none"===A[ze]&&a+l>i)?"vertical":"horizontal"},Ye=function(e,t,A){var i=A?e.left:e.top,n=A?e.right:e.bottom,r=A?e.width:e.height,o=A?t.left:t.top,s=A?t.right:t.bottom,a=A?t.width:t.height;return i===o||n===s||i+r/2===o+a/2},Xe=function(e,t){var A;return Me.some((function(i){var n=i[q].options.emptyInsertThreshold;if(n&&!K(i)){var r=M(i),o=e>=r.left-n&&e<=r.right+n,s=t>=r.top-n&&t<=r.bottom+n;return o&&s?A=i:void 0}})),A},Je=function(e){function t(e,A){return function(i,n,r,o){var s=i.options.group.name&&n.options.group.name&&i.options.group.name===n.options.group.name;if(null==e&&(A||s))return!0;if(null==e||!1===e)return!1;if(A&&"clone"===e)return e;if("function"===typeof e)return t(e(i,n,r,o),A)(i,n,r,o);var a=(A?i:n).options.group.name;return!0===e||"string"===typeof e&&e===a||e.join&&e.indexOf(a)>-1}}var A={},i=e.group;i&&"object"==r(i)||(i={name:i}),A.name=i.name,A.checkPull=t(i.pull,!0),A.checkPut=t(i.put),A.revertClone=i.revertClone,e.group=A},$e=function(){!Ze&&ue&&S(ue,"display","none")},qe=function(){!Ze&&ue&&S(ue,"display","")};Ve&&document.addEventListener("click",(function(e){if(Oe)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Oe=!1,!1}),!0);var et=function(e){if(ce){e=e.touches?e.touches[0]:e;var t=Xe(e.clientX,e.clientY);if(t){var A={};for(var i in e)e.hasOwnProperty(i)&&(A[i]=e[i]);A.target=A.rootEl=t,A.preventDefault=void 0,A.stopPropagation=void 0,t[q]._onDragOver(A)}}},tt=function(e){ce&&ce.parentNode[q]._isOutsideThisEl(e.target)};function At(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=s({},t),e[q]=this;var A={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return We(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==At.supportPointer&&"PointerEvent"in window&&!y,emptyInsertThreshold:5};for(var i in re.initializePlugins(this,e,A),A)!(i in t)&&(t[i]=A[i]);for(var n in Je(t),this)"_"===n.charAt(0)&&"function"===typeof this[n]&&(this[n]=this[n].bind(this));this.nativeDraggable=!t.forceFallback&&je,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?Q(e,"pointerdown",this._onTapStart):(Q(e,"mousedown",this._onTapStart),Q(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Q(e,"dragover",this),Q(e,"dragenter",this)),Me.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),s(this,ee())}function it(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function nt(e,t,A,i,n,r,o,s){var a,l,c=e[q],d=c.options.onMove;return!window.CustomEvent||B||w?(a=document.createEvent("Event"),a.initEvent("move",!0,!0)):a=new CustomEvent("move",{bubbles:!0,cancelable:!0}),a.to=t,a.from=e,a.dragged=A,a.draggedRect=i,a.related=n||t,a.relatedRect=r||M(t),a.willInsertAfter=s,a.originalEvent=o,e.dispatchEvent(a),d&&(l=d.call(c,a,o)),l}function rt(e){e.draggable=!1}function ot(){Pe=!1}function st(e,t,A){var i=M(N(A.el,0,A.options,!0)),n=10;return t?e.clientX<i.left-n||e.clientY<i.top&&e.clientX<i.right:e.clientY<i.top-n||e.clientY<i.bottom&&e.clientX<i.left}function at(e,t,A){var i=M(K(A.el,A.options.draggable)),n=10;return t?e.clientX>i.right+n||e.clientX<=i.right&&e.clientY>i.bottom&&e.clientX>=i.left:e.clientX>i.right&&e.clientY>i.top||e.clientX<=i.right&&e.clientY>i.bottom+n}function lt(e,t,A,i,n,r,o,s){var a=i?e.clientY:e.clientX,l=i?A.height:A.width,c=i?A.top:A.left,d=i?A.bottom:A.right,u=!1;if(!o)if(s&&Se<l*n){if(!Te&&(1===De?a>c+l*r/2:a<d-l*r/2)&&(Te=!0),Te)u=!0;else if(1===De?a<c+Se:a>d-Se)return-De}else if(a>c+l*(1-n)/2&&a<d-l*(1-n)/2)return ct(t);return u=u||o,u&&(a<c+l*r/2||a>d-l*r/2)?a>c+l/2?1:-1:0}function ct(e){return P(ce)<P(e)?1:-1}function dt(e){var t=e.tagName+e.className+e.src+e.href+e.textContent,A=t.length,i=0;while(A--)i+=t.charCodeAt(A);return i.toString(36)}function ut(e){Re.length=0;var t=e.getElementsByTagName("input"),A=t.length;while(A--){var i=t[A];i.checked&&Re.push(i)}}function ht(e){return setTimeout(e,0)}function gt(e){return clearTimeout(e)}At.prototype={constructor:At,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Ie=null)},_getDirection:function(e,t){return"function"===typeof this.options.direction?this.options.direction.call(this,e,t,ce):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,A=this.el,i=this.options,n=i.preventOnFilter,r=e.type,o=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(o||e).target,a=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,l=i.filter;if(ut(A),!ce&&!(/mousedown|pointerdown/.test(r)&&0!==e.button||i.disabled)&&!a.isContentEditable&&(this.nativeDraggable||!y||!s||"SELECT"!==s.tagName.toUpperCase())&&(s=E(s,i.draggable,A,!1),(!s||!s.animated)&&pe!==s)){if(Be=P(s),ve=P(s,i.draggable),"function"===typeof l){if(l.call(this,e,s,this))return le({sortable:t,rootEl:a,name:"filter",targetEl:s,toEl:A,fromEl:A}),ae("filter",t,{evt:e}),void(n&&e.cancelable&&e.preventDefault())}else if(l&&(l=l.split(",").some((function(i){if(i=E(a,i.trim(),A,!1),i)return le({sortable:t,rootEl:i,name:"filter",targetEl:s,fromEl:A,toEl:A}),ae("filter",t,{evt:e}),!0})),l))return void(n&&e.cancelable&&e.preventDefault());i.handle&&!E(a,i.handle,A,!1)||this._prepareDragStart(e,o,s)}}},_prepareDragStart:function(e,t,A){var i,n=this,r=n.el,o=n.options,s=r.ownerDocument;if(A&&!ce&&A.parentNode===r){var a=M(A);if(he=r,ce=A,de=ce.parentNode,ge=ce.nextSibling,pe=A,Ce=o.group,At.dragged=ce,_e={target:ce,clientX:(t||e).clientX,clientY:(t||e).clientY},xe=_e.clientX-a.left,Ee=_e.clientY-a.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,ce.style["will-change"]="all",i=function(){ae("delayEnded",n,{evt:e}),At.eventCanceled?n._onDrop():(n._disableDelayedDragEvents(),!v&&n.nativeDraggable&&(ce.draggable=!0),n._triggerDragStart(e,t),le({sortable:n,name:"choose",originalEvent:e}),D(ce,o.chosenClass,!0))},o.ignore.split(",").forEach((function(e){L(ce,e.trim(),rt)})),Q(s,"dragover",et),Q(s,"mousemove",et),Q(s,"touchmove",et),Q(s,"mouseup",n._onDrop),Q(s,"touchend",n._onDrop),Q(s,"touchcancel",n._onDrop),v&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ce.draggable=!0),ae("delayStart",this,{evt:e}),!o.delay||o.delayOnTouchOnly&&!t||this.nativeDraggable&&(w||B))i();else{if(At.eventCanceled)return void this._onDrop();Q(s,"mouseup",n._disableDelayedDrag),Q(s,"touchend",n._disableDelayedDrag),Q(s,"touchcancel",n._disableDelayedDrag),Q(s,"mousemove",n._delayedDragTouchMoveHandler),Q(s,"touchmove",n._delayedDragTouchMoveHandler),o.supportPointer&&Q(s,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(i,o.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ce&&rt(ce),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;U(e,"mouseup",this._disableDelayedDrag),U(e,"touchend",this._disableDelayedDrag),U(e,"touchcancel",this._disableDelayedDrag),U(e,"mousemove",this._delayedDragTouchMoveHandler),U(e,"touchmove",this._delayedDragTouchMoveHandler),U(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?Q(document,"pointermove",this._onTouchMove):Q(document,t?"touchmove":"mousemove",this._onTouchMove):(Q(ce,"dragend",this),Q(he,"dragstart",this._onDragStart));try{document.selection?ht((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(A){}},_dragStarted:function(e,t){if(Le=!1,he&&ce){ae("dragStarted",this,{evt:t}),this.nativeDraggable&&Q(document,"dragover",tt);var A=this.options;!e&&D(ce,A.dragClass,!1),D(ce,A.ghostClass,!0),At.active=this,e&&this._appendGhost(),le({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Qe){this._lastX=Qe.clientX,this._lastY=Qe.clientY,$e();var e=document.elementFromPoint(Qe.clientX,Qe.clientY),t=e;while(e&&e.shadowRoot){if(e=e.shadowRoot.elementFromPoint(Qe.clientX,Qe.clientY),e===t)break;t=e}if(ce.parentNode[q]._isOutsideThisEl(e),t)do{if(t[q]){var A=void 0;if(A=t[q]._onDragOver({clientX:Qe.clientX,clientY:Qe.clientY,target:e,rootEl:t}),A&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);qe()}},_onTouchMove:function(e){if(_e){var t=this.options,A=t.fallbackTolerance,i=t.fallbackOffset,n=e.touches?e.touches[0]:e,r=ue&&H(ue,!0),o=ue&&r&&r.a,s=ue&&r&&r.d,a=Ge&&He&&R(He),l=(n.clientX-_e.clientX+i.x)/(o||1)+(a?a[0]-Ke[0]:0)/(o||1),c=(n.clientY-_e.clientY+i.y)/(s||1)+(a?a[1]-Ke[1]:0)/(s||1);if(!At.active&&!Le){if(A&&Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))<A)return;this._onDragStart(e,!0)}if(ue){r?(r.e+=l-(Ue||0),r.f+=c-(Fe||0)):r={a:1,b:0,c:0,d:1,e:l,f:c};var d="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");S(ue,"webkitTransform",d),S(ue,"mozTransform",d),S(ue,"msTransform",d),S(ue,"transform",d),Ue=l,Fe=c,Qe=n}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!ue){var e=this.options.fallbackOnBody?document.body:he,t=M(ce,!0,Ge,!0,e),A=this.options;if(Ge){He=e;while("static"===S(He,"position")&&"none"===S(He,"transform")&&He!==document)He=He.parentNode;He!==document.body&&He!==document.documentElement?(He===document&&(He=O()),t.top+=He.scrollTop,t.left+=He.scrollLeft):He=O(),Ke=R(He)}ue=ce.cloneNode(!0),D(ue,A.ghostClass,!1),D(ue,A.fallbackClass,!0),D(ue,A.dragClass,!0),S(ue,"transition",""),S(ue,"transform",""),S(ue,"box-sizing","border-box"),S(ue,"margin",0),S(ue,"top",t.top),S(ue,"left",t.left),S(ue,"width",t.width),S(ue,"height",t.height),S(ue,"opacity","0.8"),S(ue,"position",Ge?"absolute":"fixed"),S(ue,"zIndex","100000"),S(ue,"pointerEvents","none"),At.ghost=ue,e.appendChild(ue),S(ue,"transform-origin",xe/parseInt(ue.style.width)*100+"% "+Ee/parseInt(ue.style.height)*100+"%")}},_onDragStart:function(e,t){var A=this,i=e.dataTransfer,n=A.options;ae("dragStart",this,{evt:e}),At.eventCanceled?this._onDrop():(ae("setupClone",this),At.eventCanceled||(fe=X(ce),fe.draggable=!1,fe.style["will-change"]="",this._hideClone(),D(fe,this.options.chosenClass,!1),At.clone=fe),A.cloneId=ht((function(){ae("clone",A),At.eventCanceled||(A.options.removeCloneOnHide||he.insertBefore(fe,ce),A._hideClone(),le({sortable:A,name:"clone"}))})),!t&&D(ce,n.dragClass,!0),t?(Oe=!0,A._loopId=setInterval(A._emulateDragOver,50)):(U(document,"mouseup",A._onDrop),U(document,"touchend",A._onDrop),U(document,"touchcancel",A._onDrop),i&&(i.effectAllowed="move",n.setData&&n.setData.call(A,i,ce)),Q(document,"drop",A),S(ce,"transform","translateZ(0)")),Le=!0,A._dragStartId=ht(A._dragStarted.bind(A,t,e)),Q(document,"selectstart",A),ke=!0,y&&S(document.body,"user-select","none"))},_onDragOver:function(e){var t,A,i,r,o=this.el,s=e.target,a=this.options,l=a.group,c=At.active,d=Ce===l,u=a.sort,h=be||c,g=this,p=!1;if(!Pe){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),s=E(s,a.draggable,o,!0),I("dragOver"),At.eventCanceled)return p;if(ce.contains(e.target)||s.animated&&s.animatingX&&s.animatingY||g._ignoreWhileAnimating===s)return L(!1);if(Oe=!1,c&&!a.disabled&&(d?u||(i=de!==he):be===this||(this.lastPutMode=Ce.checkPull(this,c,ce,e))&&l.checkPut(this,c,ce,e))){if(r="vertical"===this._getDirection(e,s),t=M(ce),I("dragOverValid"),At.eventCanceled)return p;if(i)return de=he,H(),this._hideClone(),I("revert"),At.eventCanceled||(ge?he.insertBefore(ce,ge):he.appendChild(ce)),L(!0);var f=K(o,a.draggable);if(!f||at(e,r,this)&&!f.animated){if(f===ce)return L(!1);if(f&&o===e.target&&(s=f),s&&(A=M(s)),!1!==nt(he,o,ce,t,s,A,e,!!s))return H(),o.appendChild(ce),de=o,O(),L(!0)}else if(f&&st(e,r,this)){var m=N(o,0,a,!0);if(m===ce)return L(!1);if(s=m,A=M(s),!1!==nt(he,o,ce,t,s,A,e,!1))return H(),o.insertBefore(ce,m),de=o,O(),L(!0)}else if(s.parentNode===o){A=M(s);var B,w,v=0,y=ce.parentNode!==o,C=!Ye(ce.animated&&ce.toRect||t,s.animated&&s.toRect||A,r),b=r?"top":"left",_=T(s,"top","top")||T(ce,"top","top"),Q=_?_.scrollTop:void 0;if(Ie!==s&&(B=A[b],Te=!1,Ne=!C&&a.invertSwap||y),v=lt(e,s,A,r,C?1:a.swapThreshold,null==a.invertedSwapThreshold?a.swapThreshold:a.invertedSwapThreshold,Ne,Ie===s),0!==v){var U=P(ce);do{U-=v,w=de.children[U]}while(w&&("none"===S(w,"display")||w===ue))}if(0===v||w===s)return L(!1);Ie=s,De=v;var F=s.nextElementSibling,x=!1;x=1===v;var k=nt(he,o,ce,t,s,A,e,x);if(!1!==k)return 1!==k&&-1!==k||(x=1===k),Pe=!0,setTimeout(ot,30),H(),x&&!F?o.appendChild(ce):s.parentNode.insertBefore(ce,x?F:s),_&&Y(_,0,Q-_.scrollTop),de=ce.parentNode,void 0===B||Ne||(Se=Math.abs(B-M(s)[b])),O(),L(!0)}if(o.contains(ce))return L(!1)}return!1}function I(a,l){ae(a,g,n({evt:e,isOwner:d,axis:r?"vertical":"horizontal",revert:i,dragRect:t,targetRect:A,canSort:u,fromSortable:h,target:s,completed:L,onMove:function(A,i){return nt(he,o,ce,t,A,M(A),e,i)},changed:O},l))}function H(){I("dragOverAnimationCapture"),g.captureAnimationState(),g!==h&&h.captureAnimationState()}function L(t){return I("dragOverCompleted",{insertion:t}),t&&(d?c._hideClone():c._showClone(g),g!==h&&(D(ce,be?be.options.ghostClass:c.options.ghostClass,!1),D(ce,a.ghostClass,!0)),be!==g&&g!==At.active?be=g:g===At.active&&be&&(be=null),h===g&&(g._ignoreWhileAnimating=s),g.animateAll((function(){I("dragOverAnimationComplete"),g._ignoreWhileAnimating=null})),g!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(s===ce&&!ce.animated||s===o&&!s.animated)&&(Ie=null),a.dragoverBubble||e.rootEl||s===document||(ce.parentNode[q]._isOutsideThisEl(e.target),!t&&et(e)),!a.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),p=!0}function O(){we=P(ce),ye=P(ce,a.draggable),le({sortable:g,name:"change",toEl:o,newIndex:we,newDraggableIndex:ye,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){U(document,"mousemove",this._onTouchMove),U(document,"touchmove",this._onTouchMove),U(document,"pointermove",this._onTouchMove),U(document,"dragover",et),U(document,"mousemove",et),U(document,"touchmove",et)},_offUpEvents:function(){var e=this.el.ownerDocument;U(e,"mouseup",this._onDrop),U(e,"touchend",this._onDrop),U(e,"pointerup",this._onDrop),U(e,"touchcancel",this._onDrop),U(document,"selectstart",this)},_onDrop:function(e){var t=this.el,A=this.options;we=P(ce),ye=P(ce,A.draggable),ae("drop",this,{evt:e}),de=ce&&ce.parentNode,we=P(ce),ye=P(ce,A.draggable),At.eventCanceled||(Le=!1,Ne=!1,Te=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),gt(this.cloneId),gt(this._dragStartId),this.nativeDraggable&&(U(document,"drop",this),U(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),y&&S(document.body,"user-select",""),S(ce,"transform",""),e&&(ke&&(e.cancelable&&e.preventDefault(),!A.dropBubble&&e.stopPropagation()),ue&&ue.parentNode&&ue.parentNode.removeChild(ue),(he===de||be&&"clone"!==be.lastPutMode)&&fe&&fe.parentNode&&fe.parentNode.removeChild(fe),ce&&(this.nativeDraggable&&U(ce,"dragend",this),rt(ce),ce.style["will-change"]="",ke&&!Le&&D(ce,be?be.options.ghostClass:this.options.ghostClass,!1),D(ce,this.options.chosenClass,!1),le({sortable:this,name:"unchoose",toEl:de,newIndex:null,newDraggableIndex:null,originalEvent:e}),he!==de?(we>=0&&(le({rootEl:de,name:"add",toEl:de,fromEl:he,originalEvent:e}),le({sortable:this,name:"remove",toEl:de,originalEvent:e}),le({rootEl:de,name:"sort",toEl:de,fromEl:he,originalEvent:e}),le({sortable:this,name:"sort",toEl:de,originalEvent:e})),be&&be.save()):we!==Be&&we>=0&&(le({sortable:this,name:"update",toEl:de,originalEvent:e}),le({sortable:this,name:"sort",toEl:de,originalEvent:e})),At.active&&(null!=we&&-1!==we||(we=Be,ye=ve),le({sortable:this,name:"end",toEl:de,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){ae("nulling",this),he=ce=de=ue=ge=fe=pe=me=_e=Qe=ke=we=ye=Be=ve=Ie=De=be=Ce=At.dragged=At.ghost=At.clone=At.active=null,Re.forEach((function(e){e.checked=!0})),Re.length=Ue=Fe=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":ce&&(this._onDragOver(e),it(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e,t=[],A=this.el.children,i=0,n=A.length,r=this.options;i<n;i++)e=A[i],E(e,r.draggable,this.el,!1)&&t.push(e.getAttribute(r.dataIdAttr)||dt(e));return t},sort:function(e,t){var A={},i=this.el;this.toArray().forEach((function(e,t){var n=i.children[t];E(n,this.options.draggable,i,!1)&&(A[e]=n)}),this),t&&this.captureAnimationState(),e.forEach((function(e){A[e]&&(i.removeChild(A[e]),i.appendChild(A[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return E(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var A=this.options;if(void 0===t)return A[e];var i=re.modifyOption(this,e,t);A[e]="undefined"!==typeof i?i:t,"group"===e&&Je(A)},destroy:function(){ae("destroy",this);var e=this.el;e[q]=null,U(e,"mousedown",this._onTapStart),U(e,"touchstart",this._onTapStart),U(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(U(e,"dragover",this),U(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Me.splice(Me.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!me){if(ae("hideClone",this),At.eventCanceled)return;S(fe,"display","none"),this.options.removeCloneOnHide&&fe.parentNode&&fe.parentNode.removeChild(fe),me=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(me){if(ae("showClone",this),At.eventCanceled)return;ce.parentNode!=he||this.options.group.revertClone?ge?he.insertBefore(fe,ge):he.appendChild(fe):he.insertBefore(fe,ce),this.options.group.revertClone&&this.animate(ce,fe),S(fe,"display",""),me=!1}}else this._hideClone()}},Ve&&Q(document,"touchmove",(function(e){(At.active||Le)&&e.cancelable&&e.preventDefault()})),At.utils={on:Q,off:U,css:S,find:L,is:function(e,t){return!!E(e,t,e,!1)},extend:z,throttle:Z,closest:E,toggleClass:D,clone:X,index:P,nextTick:ht,cancelNextTick:gt,detectDirection:We,getChild:N},At.get=function(e){return e[q]},At.mount=function(){for(var e=arguments.length,t=new Array(e),A=0;A<e;A++)t[A]=arguments[A];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(At.utils=n(n({},At.utils),e.utils)),re.mount(e)}))},At.create=function(e,t){return new At(e,t)},At.version=f;var pt,ft,mt,Bt,wt,vt,yt=[],Ct=!1;function bt(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"===typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?Q(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Q(document,"pointermove",this._handleFallbackAutoScroll):t.touches?Q(document,"touchmove",this._handleFallbackAutoScroll):Q(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?U(document,"dragover",this._handleAutoScroll):(U(document,"pointermove",this._handleFallbackAutoScroll),U(document,"touchmove",this._handleFallbackAutoScroll),U(document,"mousemove",this._handleFallbackAutoScroll)),Qt(),_t(),W()},nulling:function(){wt=ft=pt=Ct=vt=mt=Bt=null,yt.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var A=this,i=(e.touches?e.touches[0]:e).clientX,n=(e.touches?e.touches[0]:e).clientY,r=document.elementFromPoint(i,n);if(wt=e,t||this.options.forceAutoScrollFallback||w||B||y){Ft(e,this.options,r,t);var o=G(r,!0);!Ct||vt&&i===mt&&n===Bt||(vt&&Qt(),vt=setInterval((function(){var r=G(document.elementFromPoint(i,n),!0);r!==o&&(o=r,_t()),Ft(e,A.options,r,t)}),10),mt=i,Bt=n)}else{if(!this.options.bubbleScroll||G(r,!0)===O())return void _t();Ft(e,this.options,G(r,!1),!1)}}},s(e,{pluginName:"scroll",initializeByDefault:!0})}function _t(){yt.forEach((function(e){clearInterval(e.pid)})),yt=[]}function Qt(){clearInterval(vt)}var Ut,Ft=Z((function(e,t,A,i){if(t.scroll){var n,r=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,a=t.scrollSpeed,l=O(),c=!1;ft!==A&&(ft=A,_t(),pt=t.scroll,n=t.scrollFn,!0===pt&&(pt=G(A,!0)));var d=0,u=pt;do{var h=u,g=M(h),p=g.top,f=g.bottom,m=g.left,B=g.right,w=g.width,v=g.height,y=void 0,C=void 0,b=h.scrollWidth,_=h.scrollHeight,Q=S(h),U=h.scrollLeft,F=h.scrollTop;h===l?(y=w<b&&("auto"===Q.overflowX||"scroll"===Q.overflowX||"visible"===Q.overflowX),C=v<_&&("auto"===Q.overflowY||"scroll"===Q.overflowY||"visible"===Q.overflowY)):(y=w<b&&("auto"===Q.overflowX||"scroll"===Q.overflowX),C=v<_&&("auto"===Q.overflowY||"scroll"===Q.overflowY));var x=y&&(Math.abs(B-r)<=s&&U+w<b)-(Math.abs(m-r)<=s&&!!U),E=C&&(Math.abs(f-o)<=s&&F+v<_)-(Math.abs(p-o)<=s&&!!F);if(!yt[d])for(var k=0;k<=d;k++)yt[k]||(yt[k]={});yt[d].vx==x&&yt[d].vy==E&&yt[d].el===h||(yt[d].el=h,yt[d].vx=x,yt[d].vy=E,clearInterval(yt[d].pid),0==x&&0==E||(c=!0,yt[d].pid=setInterval(function(){i&&0===this.layer&&At.active._onTouchMove(wt);var t=yt[this.layer].vy?yt[this.layer].vy*a:0,A=yt[this.layer].vx?yt[this.layer].vx*a:0;"function"===typeof n&&"continue"!==n.call(At.dragged.parentNode[q],A,t,e,wt,yt[this.layer].el)||Y(yt[this.layer].el,A,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&u!==l&&(u=G(u,!1)));Ct=c}}),30),xt=function(e){var t=e.originalEvent,A=e.putSortable,i=e.dragEl,n=e.activeSortable,r=e.dispatchSortableEvent,o=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var a=A||n;o();var l=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,c=document.elementFromPoint(l.clientX,l.clientY);s(),a&&!a.el.contains(c)&&(r("spill"),this.onSpill({dragEl:i,putSortable:A}))}};function Et(){}function kt(){}function It(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;Ut=t},dragOverValid:function(e){var t=e.completed,A=e.target,i=e.onMove,n=e.activeSortable,r=e.changed,o=e.cancel;if(n.options.swap){var s=this.sortable.el,a=this.options;if(A&&A!==s){var l=Ut;!1!==i(A)?(D(A,a.swapClass,!0),Ut=A):Ut=null,l&&l!==Ut&&D(l,a.swapClass,!1)}r(),t(!0),o()}},drop:function(e){var t=e.activeSortable,A=e.putSortable,i=e.dragEl,n=A||this.sortable,r=this.options;Ut&&D(Ut,r.swapClass,!1),Ut&&(r.swap||A&&A.options.swap)&&i!==Ut&&(n.captureAnimationState(),n!==t&&t.captureAnimationState(),Dt(i,Ut),n.animateAll(),n!==t&&t.animateAll())},nulling:function(){Ut=null}},s(e,{pluginName:"swap",eventProperties:function(){return{swapItem:Ut}}})}function Dt(e,t){var A,i,n=e.parentNode,r=t.parentNode;n&&r&&!n.isEqualNode(t)&&!r.isEqualNode(e)&&(A=P(e),i=P(t),n.isEqualNode(r)&&A<i&&i++,n.insertBefore(t,n.children[A]),r.insertBefore(e,r.children[i]))}Et.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,A=e.putSortable;this.sortable.captureAnimationState(),A&&A.captureAnimationState();var i=N(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(t,i):this.sortable.el.appendChild(t),this.sortable.animateAll(),A&&A.animateAll()},drop:xt},s(Et,{pluginName:"revertOnSpill"}),kt.prototype={onSpill:function(e){var t=e.dragEl,A=e.putSortable,i=A||this.sortable;i.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),i.animateAll()},drop:xt},s(kt,{pluginName:"removeOnSpill"});var St,Ht,Lt,Ot,Mt,Tt=[],Nt=[],Kt=!1,Pt=!1,Rt=!1;function Vt(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"===typeof this[t]&&(this[t]=this[t].bind(this));e.options.supportPointer?Q(document,"pointerup",this._deselectMultiDrag):(Q(document,"mouseup",this._deselectMultiDrag),Q(document,"touchend",this._deselectMultiDrag)),Q(document,"keydown",this._checkKeyDown),Q(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(t,A){var i="";Tt.length&&Ht===e?Tt.forEach((function(e,t){i+=(t?", ":"")+e.textContent})):i=A.textContent,t.setData("Text",i)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;Lt=t},delayEnded:function(){this.isMultiDrag=~Tt.indexOf(Lt)},setupClone:function(e){var t=e.sortable,A=e.cancel;if(this.isMultiDrag){for(var i=0;i<Tt.length;i++)Nt.push(X(Tt[i])),Nt[i].sortableIndex=Tt[i].sortableIndex,Nt[i].draggable=!1,Nt[i].style["will-change"]="",D(Nt[i],this.options.selectedClass,!1),Tt[i]===Lt&&D(Nt[i],this.options.chosenClass,!1);t._hideClone(),A()}},clone:function(e){var t=e.sortable,A=e.rootEl,i=e.dispatchSortableEvent,n=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||Tt.length&&Ht===t&&(zt(!0,A),i("clone"),n()))},showClone:function(e){var t=e.cloneNowShown,A=e.rootEl,i=e.cancel;this.isMultiDrag&&(zt(!1,A),Nt.forEach((function(e){S(e,"display","")})),t(),Mt=!1,i())},hideClone:function(e){var t=this,A=(e.sortable,e.cloneNowHidden),i=e.cancel;this.isMultiDrag&&(Nt.forEach((function(e){S(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),A(),Mt=!0,i())},dragStartGlobal:function(e){e.sortable;!this.isMultiDrag&&Ht&&Ht.multiDrag._deselectMultiDrag(),Tt.forEach((function(e){e.sortableIndex=P(e)})),Tt=Tt.sort((function(e,t){return e.sortableIndex-t.sortableIndex})),Rt=!0},dragStarted:function(e){var t=this,A=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(A.captureAnimationState(),this.options.animation)){Tt.forEach((function(e){e!==Lt&&S(e,"position","absolute")}));var i=M(Lt,!1,!0,!0);Tt.forEach((function(e){e!==Lt&&J(e,i)})),Pt=!0,Kt=!0}A.animateAll((function(){Pt=!1,Kt=!1,t.options.animation&&Tt.forEach((function(e){$(e)})),t.options.sort&&jt()}))}},dragOver:function(e){var t=e.target,A=e.completed,i=e.cancel;Pt&&~Tt.indexOf(t)&&(A(!1),i())},revert:function(e){var t=e.fromSortable,A=e.rootEl,i=e.sortable,n=e.dragRect;Tt.length>1&&(Tt.forEach((function(e){i.addAnimationState({target:e,rect:Pt?M(e):n}),$(e),e.fromRect=n,t.removeAnimationState(e)})),Pt=!1,Gt(!this.options.removeCloneOnHide,A))},dragOverCompleted:function(e){var t=e.sortable,A=e.isOwner,i=e.insertion,n=e.activeSortable,r=e.parentEl,o=e.putSortable,s=this.options;if(i){if(A&&n._hideClone(),Kt=!1,s.animation&&Tt.length>1&&(Pt||!A&&!n.options.sort&&!o)){var a=M(Lt,!1,!0,!0);Tt.forEach((function(e){e!==Lt&&(J(e,a),r.appendChild(e))})),Pt=!0}if(!A)if(Pt||jt(),Tt.length>1){var l=Mt;n._showClone(t),n.options.animation&&!Mt&&l&&Nt.forEach((function(e){n.addAnimationState({target:e,rect:Ot}),e.fromRect=Ot,e.thisAnimationDuration=null}))}else n._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,A=e.isOwner,i=e.activeSortable;if(Tt.forEach((function(e){e.thisAnimationDuration=null})),i.options.animation&&!A&&i.multiDrag.isMultiDrag){Ot=s({},t);var n=H(Lt,!0);Ot.top-=n.f,Ot.left-=n.e}},dragOverAnimationComplete:function(){Pt&&(Pt=!1,jt())},drop:function(e){var t=e.originalEvent,A=e.rootEl,i=e.parentEl,n=e.sortable,r=e.dispatchSortableEvent,o=e.oldIndex,s=e.putSortable,a=s||this.sortable;if(t){var l=this.options,c=i.children;if(!Rt)if(l.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),D(Lt,l.selectedClass,!~Tt.indexOf(Lt)),~Tt.indexOf(Lt))Tt.splice(Tt.indexOf(Lt),1),St=null,oe({sortable:n,rootEl:A,name:"deselect",targetEl:Lt,originalEvt:t});else{if(Tt.push(Lt),oe({sortable:n,rootEl:A,name:"select",targetEl:Lt,originalEvt:t}),t.shiftKey&&St&&n.el.contains(St)){var d,u,h=P(St),g=P(Lt);if(~h&&~g&&h!==g)for(g>h?(u=h,d=g):(u=g,d=h+1);u<d;u++)~Tt.indexOf(c[u])||(D(c[u],l.selectedClass,!0),Tt.push(c[u]),oe({sortable:n,rootEl:A,name:"select",targetEl:c[u],originalEvt:t}))}else St=Lt;Ht=a}if(Rt&&this.isMultiDrag){if(Pt=!1,(i[q].options.sort||i!==A)&&Tt.length>1){var p=M(Lt),f=P(Lt,":not(."+this.options.selectedClass+")");if(!Kt&&l.animation&&(Lt.thisAnimationDuration=null),a.captureAnimationState(),!Kt&&(l.animation&&(Lt.fromRect=p,Tt.forEach((function(e){if(e.thisAnimationDuration=null,e!==Lt){var t=Pt?M(e):p;e.fromRect=t,a.addAnimationState({target:e,rect:t})}}))),jt(),Tt.forEach((function(e){c[f]?i.insertBefore(e,c[f]):i.appendChild(e),f++})),o===P(Lt))){var m=!1;Tt.forEach((function(e){e.sortableIndex===P(e)||(m=!0)})),m&&r("update")}Tt.forEach((function(e){$(e)})),a.animateAll()}Ht=a}(A===i||s&&"clone"!==s.lastPutMode)&&Nt.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=Rt=!1,Nt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),U(document,"pointerup",this._deselectMultiDrag),U(document,"mouseup",this._deselectMultiDrag),U(document,"touchend",this._deselectMultiDrag),U(document,"keydown",this._checkKeyDown),U(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(("undefined"===typeof Rt||!Rt)&&Ht===this.sortable&&(!e||!E(e.target,this.options.draggable,this.sortable.el,!1))&&(!e||0===e.button))while(Tt.length){var t=Tt[0];D(t,this.options.selectedClass,!1),Tt.shift(),oe({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},s(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[q];t&&t.options.multiDrag&&!~Tt.indexOf(e)&&(Ht&&Ht!==t&&(Ht.multiDrag._deselectMultiDrag(),Ht=t),D(e,t.options.selectedClass,!0),Tt.push(e))},deselect:function(e){var t=e.parentNode[q],A=Tt.indexOf(e);t&&t.options.multiDrag&&~A&&(D(e,t.options.selectedClass,!1),Tt.splice(A,1))}},eventProperties:function(){var e=this,t=[],A=[];return Tt.forEach((function(i){var n;t.push({multiDragElement:i,index:i.sortableIndex}),n=Pt&&i!==Lt?-1:Pt?P(i,":not(."+e.options.selectedClass+")"):P(i),A.push({multiDragElement:i,index:n})})),{items:c(Tt),clones:[].concat(Nt),oldIndicies:t,newIndicies:A}},optionListeners:{multiDragKey:function(e){return e=e.toLowerCase(),"ctrl"===e?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function Gt(e,t){Tt.forEach((function(A,i){var n=t.children[A.sortableIndex+(e?Number(i):0)];n?t.insertBefore(A,n):t.appendChild(A)}))}function zt(e,t){Nt.forEach((function(A,i){var n=t.children[A.sortableIndex+(e?Number(i):0)];n?t.insertBefore(A,n):t.appendChild(A)}))}function jt(){Tt.forEach((function(e){e!==Lt&&e.parentNode&&e.parentNode.removeChild(e)}))}At.mount(new bt),At.mount(kt,Et),t["default"]=At}}]); |