logic-bind-model
Version:
white framework web
4 lines • 247 kB
JavaScript
/*! Logic Core v1.1.13 Copyright (c) 2025 logicfeel and contributors */
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)._L={})}(this,function(e){"use strict";var t="undefined"!=typeof document?document.currentScript:null;function n(e,t){this.v=e,this.k=t}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function o(e){if(Array.isArray(e))return e}function i(e){var t={},r=!1;function o(t,o){return r=!0,o=new Promise(function(n){n(e[t](o))}),{done:!1,value:new n(o,1)}}return t["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},t.next=function(e){return r?(r=!1,e):o("next",e)},"function"==typeof e.throw&&(t.throw=function(e){if(r)throw r=!1,e;return o("throw",e)}),"function"==typeof e.return&&(t.return=function(e){return r?(r=!1,e):o("return",e)}),t}function a(e){var t,n,r,o=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);o--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new s(t.call(e));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function s(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then(function(e){return{value:e,done:t}})}return s=function(e){this.s=e,this.n=e.next},s.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new s(e)}function u(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function c(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){u(i,r,o,a,s,"next",e)}function s(e){u(i,r,o,a,s,"throw",e)}a(void 0)})}}function l(e){return new n(e,0)}function f(e,t,n){return t=m(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,g()?Reflect.construct(t,[],m(e).constructor):t.apply(e,n))}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,S(r.key),r)}}function d(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function y(e,t,n){return(t=S(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function b(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&j(e,t)}function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(g=function(){return!!e})()}function w(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function v(){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 E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function L(){
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof s?r:s,c=Object.create(u.prototype);return O(c,"_invoke",function(n,r,o){var i,s,u,c=0,l=o||[],f=!1,h={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,u=e,h.n=n,a}};function p(n,r){for(s=n,u=r,t=0;!f&&c&&!o&&t<l.length;t++){var o,i=l[t],p=h.p,d=i[2];n>3?(o=d===r)&&(u=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,h.v=r,h.n=i[1]):p<d&&(o=n<3||i[0]>r||r>d)&&(i[4]=n,i[5]=r,h.n=d,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&p(l,d),s=l,u=d;(t=s<2?e:u)||!f;){i||(s?s<3?(s>1&&(h.n=-1),p(s,u)):h.n=u:h.v=u);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=h.n<0)?u:n.call(r,h))!==a)break}catch(t){i=e,s=1,u=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function s(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(O(t={},r,function(){return this}),t),f=c.prototype=s.prototype=Object.create(l);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,O(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,O(f,"constructor",c),O(c,"constructor",u),u.displayName="GeneratorFunction",O(c,o,"GeneratorFunction"),O(f),O(f,o,"Generator"),O(f,r,function(){return this}),O(f,"toString",function(){return"[object Generator]"}),(L=function(){return{w:i,m:h}})()}function O(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}O=function(e,t,n,r){function i(t,n){O(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},O(e,t,n,r)}function $(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(typeof e+" is not iterable")}function j(e,t){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},j(e,t)}function T(e,t){return o(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||x(e,t)||v()}function A(e){return function(e){if(Array.isArray(e))return r(e)}(e)||w(e)||x(e)||function(){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 S(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function P(e){return P="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},P(e)}function x(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}function C(e){return function(){return new R(e.apply(this,arguments))}}function R(e){var t,r;function o(t,r){try{var a=e[t](r),s=a.value,u=s instanceof n;Promise.resolve(u?s.v:s).then(function(n){if(u){var r="return"===t?"return":"next";if(!s.k||n.done)return o(r,n);n=e[r](n).value}i(a.done?"return":"normal",n)},function(e){o("throw",e)})}catch(e){i("throw",e)}}function i(e,n){switch(e){case"return":t.resolve({value:n,done:!0});break;case"throw":t.reject(n);break;default:t.resolve({value:n,done:!1})}(t=t.next)?o(t.key,t.arg):r=null}this._invoke=function(e,n){return new Promise(function(i,a){var s={key:e,arg:n,resolve:i,reject:a,next:null};r?r=r.next=s:(t=r=s,o(e,n))})},"function"!=typeof e.return&&(this.return=void 0)}function k(e){var t="function"==typeof Map?new Map:void 0;return k=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(g())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&j(o,n.prototype),o}(e,arguments,m(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),j(n,e)},k(e)}R.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},R.prototype.next=function(e){return this._invoke("next",e)},R.prototype.throw=function(e){return this._invoke("throw",e)},R.prototype.return=function(e){return this._invoke("return",e)};var N,B="boolean"==typeof globalThis.isDOM?!globalThis.isDOM:"undefined"!=typeof process&&null!==process.versions&&null!==process.versions.node;function I(e){return M.apply(this,arguments)}function M(){return M=c(L().m(function e(t){var n,r,o,i,a,s;return L().w(function(e){for(;;)switch(e.p=e.n){case 0:if(e.p=0,!B){e.n=4;break}return e.n=1,import("fs/promises");case 1:return n=e.v,r=n.readFile,e.n=2,D(t);case 2:return o=e.v,e.n=3,r(o,"utf8");case 3:return i=e.v,e.a(2,JSON.parse(i));case 4:return e.n=5,D(t);case 5:return a=e.v,e.n=6,fetch(a);case 6:return s=e.v,e.n=7,s.json();case 7:return e.a(2,e.v);case 8:e.n=10;break;case 9:return e.p=9,e.v,e.a(2,void 0);case 10:return e.a(2)}},e,null,[[0,9]])})),M.apply(this,arguments)}function D(e){return F.apply(this,arguments)}function F(){return(F=c(L().m(function e(n){var r,o,i,a,s,u;return L().w(function(e){for(;;)switch(e.n){case 0:if(!B){e.n=3;break}return e.n=1,import("url");case 1:return r=e.v,o=r.fileURLToPath,e.n=2,import("path");case 2:return i=e.v,a=o("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(a).href:"undefined"==typeof document?location.href:t&&"SCRIPT"===t.tagName.toUpperCase()&&t.src||new URL("bind-model.min.js",document.baseURI).href),s=i.dirname(a),e.a(2,i.resolve(s,n));case 3:if("undefined"==typeof window){e.n=7;break}if(u="","undefined"==typeof document||!document.currentScript){e.n=4;break}u=document.currentScript.src,e.n=6;break;case 4:if(void 0==={url:"undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(a).href:"undefined"==typeof document?location.href:t&&"SCRIPT"===t.tagName.toUpperCase()&&t.src||new URL("bind-model.min.js",document.baseURI).href}||!("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(a).href:"undefined"==typeof document?location.href:t&&"SCRIPT"===t.tagName.toUpperCase()&&t.src||new URL("bind-model.min.js",document.baseURI).href)){e.n=5;break}u="undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(a).href:"undefined"==typeof document?location.href:t&&"SCRIPT"===t.tagName.toUpperCase()&&t.src||new URL("bind-model.min.js",document.baseURI).href,e.n=6;break;case 5:throw new Error("Unable to determine base URL in browser.");case 6:return e.a(2,new URL(n,u).href);case 7:throw new Error("Unsupported environment");case 8:return e.a(2)}},e)}))).apply(this,arguments)}function U(e){return e&&"object"===P(e)&&!Array.isArray(e)}function K(e,t){for(var n in t)if(t.hasOwnProperty(n)){var r=e[n],o=t[n];U(o)?(U(r)||(e[n]={}),e[n]=K(e[n],o)):e[n]=o}return e}function G(){var e,t="";if("undefined"!=typeof window&&"undefined"!=typeof navigator)t=((null===(e=navigator.languages)||void 0===e?void 0:e[0])||navigator.language||Intl.DateTimeFormat().resolvedOptions().locale).split(/[_-]/)[0];else if("undefined"!=typeof process){var n=process.env.LANG||process.env.LC_ALL||process.env.LANGUAGE;n&&(t=n.split(/[:_.]/)[0].replace("_","-"))}return t||"en"}var V=function(){function e(){h(this,e)}return d(e,null,[{key:"getMessageByCode",value:function(e){var t,n,r=(null===(t=this.$storage.lang[this.currentLang])||void 0===t?void 0:t[e])||(null===(n=this.$storage.lang[this.defaultLang])||void 0===n?void 0:n[e]);return"number"==typeof r?String(r):r}},{key:"importMessage",value:function(e,t){var n;U(e)&&(K(this.$storage.lang.default,e),"string"==typeof(n=t)&&n.length>0&&this.$storage.path.indexOf(t)<0&&this.$storage.path.push(t))}},{key:"changeLanguage",value:(n=c(L().m(function e(t){var n,r,o,i;return L().w(function(e){for(;;)switch(e.n){case 0:if(this.currentLang=t,"default"!==t){e.n=1;break}return e.a(2);case 1:r=0;case 2:if(!(r<this.$storage.path.length)){e.n=6;break}if(o=this.$storage.path[r],this.$storage.lang[t]=this.$storage.lang[t]||{},this.$storage._history[t]=this.$storage._history[t]||[],!((i=this.$storage._history[t]).indexOf(o)>=0)){e.n=3;break}return e.a(3,5);case 3:return e.n=4,I("".concat(o,"/").concat(t,".json"));case 4:"object"===P(n=e.v)?(K(this.$storage.lang[t],n),i.push(o)):console.warn("Path '".concat(o,"/").concat(t,".json' does not have a file."));case 5:r++,e.n=2;break;case 6:return e.a(2)}},e,this)})),function(e){return n.apply(this,arguments)})},{key:"get",value:function(t,n){var r,o=e.getMessageByCode(t);return void 0===o?"There is no message for code. '".concat(t,"'"):(r=function(e,t){var n={},r=[];return Array.isArray(t)?r=t:"object"===P(t)&&(n=t),(e=e.replace(/\$\{(\w+)\}/g,function(e,t){return n.hasOwnProperty(t)?n[t]:e})).replace(/\$(\d+)/g,function(e,t){var n=parseInt(t,10)-1;return void 0!==r[n]?r[n]:e})}(o,n),function(e){var t="",n=e.substring(0,1);"E"===n?t="Error":"W"===n&&(t="Warn");return t+" ["+e+"] "}(t)+r)}},{key:"resetLang",value:function(){this.currentLang=this.defaultLang}},{key:"autoDetect",value:(t=c(L().m(function t(){var n;return L().w(function(t){for(;;)switch(t.n){case 0:return"en"===(n=G())&&(n="default"),t.n=1,e.changeLanguage(n);case 1:return t.a(2)}},t)})),function(){return t.apply(this,arguments)})}]);var t,n}();N=V,y(V,"_NS","Common"),y(V,"$storage",{lang:{default:{}},path:[],_history:{}}),y(V,"defaultLang","default"),y(V,"currentLang",N.defaultLang);V.importMessage({ES010:"Other errors",ES011:"Failed to get module ['$1']",ES012:"Failed to get function ['$1'()",ES013:"[$1] failed to process [$2]",ES021:"[$1] can only be of type [$2]",ES022:"[$1] is an unprocessable typo",ES023:"[$1] is not type [$2]",ES031:"[$1] is not an object",ES032:"[$1] is not an instance of [$2]",ES033:"The object in [$1] is different from [$2]",ES041:"[$1] is duplicated with [$2]",ES042:"[$2] exists in [$1] and cannot measure [$3]",ES043:"[$1] cannot be added because [$1] exists in [$1] ",ES044:"[$1] is a reserved word ",ES051:"Required value [$1] not found",ES052:"[$1] requires [$2]",ES053:"[$2] does not exist in [$1]",ES054:"[$1] cannot be blanked",ES061:"Exceeded the range [$2] of [$1]",ES062:"[$1] cannot be less than [$2]",ES063:"[$1] and [$2] have different lengths",ES064:"and(&) condition check failed. $1",ES065:"Or(|) condition check failed. $1",ES066:"[$1] ranges from [$2] to [$3]",EL01100:"----- util-type.js match -----",EL01101:"Type match: You must specify a detailed type of $1.$1: $2",EL01102:"Type match : target is not type '$1'. tarType : $2",EL01103:"Type match: cannot handle type",EL01110:"----- match array -----",EL01111:"Array match: target is not array type. tarType: $1",EL01112:"Array match : array(_ANY_) type must have at least one element of target array. target.length = $1",EL01113:"Array match: target array is less than array(_SEQ_) type length. extType.length = $1, target.length = $2",EL01114:"Array match: array(_SEQ_) [$1]th literal type is different from target value. extType[$1] = $2, target[$1] = $3",EL01115:"Array match: array(_SEQ_) [$1]th type check failed. extType[$1] = $2",EL01116:"Array match : array(_REQ_) type must have at least one element of target array. target.length = $1",EL01117:"Array match : array($1) is the type of array that cannot be handled",EL01118:"Array match: array element check failed. extType: $1, tarType: $2",EL01120:"----- match choice -----",EL01121:"Choice match: 'undefined' is not available for choice(_ANY_) type",EL01122:"Choice match: 'undefined' only for choice(_NON_) type",EL01123:"Choice match: Error instance only for choice(_ERR_) type",EL01124:"Choice match: choice(_EUM_) type details can only be literal. extType[$1]: $2",EL01125:"Choice match: the first subtype of choice(_DEF_) type is literal only. extType[0]: $1",EL01126:"Choice match : choice($1) is a type of choice that cannot be handled",EL01127:"Choice match: choice detailed type check failed. extType: $1, tarType: $2",EL01130:"----- match class -----",EL01131:"Class match: Inspection failed after creating class type as union type (opt = 1)",EL01132:"Class match: target is not an instance of [$1]",EL01133:"Class match: target is not class, object, or union type. tarType: $1",EL01140:"----- match union -----",EL01141:"Union match: target is not union type. tarType: $1",EL01142:"Union match: target['$1'] key does not exist. extType['$1'] = $2",EL01143:"Union match: '$1' type check failed",EL01150:"----- match function -----",EL01151:"Function match: target is not function type. tarType: $1",EL01152:"Function match: declared extType.name = '$1' and target name do not match: function.name = '$2'",EL01153:"Function match : declared extType.func, target.func is not function type",EL01154:"Function match: extType.func and target.func are different (proto check)",EL01155:"Function match: You must set the params or return object of the target. extType.param = $1, extType.return = $2",EL01156:"Function match: params acceptance test denied. <array(_SEQ_) conversion>",EL01157:"Function Match: Return Acceptance Test Denied",EL01200:"----- allow -----",EL01201:"Type allowed: You must specify a subtype of $1.$1: $2",EL01202:"Type allowed: different from type 1 literal value. extType = $2, tarType = $3",EL01203:"Type allowed: not type $1. tarType = $2",EL01204:"Type allowed: type not processable",EL01210:"----- allow array -----",EL01211:"Array permit: Not array type. tarType: $1",EL01212:"Type allowed: array(_ALL_, _OPT_) type is not allowed for array(_ANY_) type. tarType: $1",EL01213:"Allow array: Only array(_SEQ_) type is allowed for array(_SEQ_) type. tarType: $1",EL01214:"Array permit: tarType must be equal to or greater than the length of array(_SEQ_) type of extType.length = $1, target.length = $2",EL01215:"Array Allowance: array(_SEQ_) [$1]th type check failed",EL01216:"Allow array : Do not allow array(_ALL_, _ANY_, _OPT_) type for array(_REQ_). tarType: $2",EL01217:"Allow array: Do not allow array(_ALL_, _ANY_) type for array(_OPT_). tarType: $2",EL01218:"Allow array : array($1) is the type of array that cannot be handled",EL01219:"Array element check failed. extType: $1, tarType: $2",EL01220:"----- allow choice -----",EL01221:"Choice allowed: do not allow choice(_ERR_) type for choice(_ALL_). tarType: $1",EL01222:"Choice allowed: 'undefined' type is not allowed for choice(_ANY_) type",EL01223:"Choice allowed: choice(_NON_, _ERR_) type is not allowed for choice(_ANY_) type. tarType: $1",EL01224:"Choice allowed: only choice(_NON_) type and choice(_NON_) type. tarType: $1",EL01225:"Choice allowed: choice(_ERR_) type and choice(_ERR_) type only. tarType: $1",EL01226:"Choice allowed: do not allow choice(_ALL_, _ANY_, _OPT_, _NON_, _ERR_) type for choice(_REQ_). tarType: $1",EL01227:"Choice allowed: do not allow choice(_ALL_, _ANY_, _NON_, _ERR_) type for choice(_OPT_). tarType: $1",EL01228:"Choice allowed: choice(_EUM_) type and choice(_EUM_) type only",EL01229:"Choice allowed: choice(_EUM_) subtype can only be literal. extType[$1]: $2",EL0122A:"Choice allowed: the subtype of tarType choice(_EUM_) can only be literal. tarType[$1]: $2",EL0122B:"Choice allowed: choice(_DEF_) type and choice(_DEF_) type only",EL0122C:"Choice allowed: the first subtype of extType choice(_DEF_) is literal only. extType[0]: $1",EL0122D:"Choice allowed: the first subtype of tarType choice(_DEF_) is literal only. tarType[0]: $1",EL0122E:"Choice allowed: choice($1) is a type of choice that cannot be handled",EL0122F:"Choice allowed: tarType[$1] = $3, no extType allowed. extType = $2",EL01230:"----- allow class -----",EL01231:"Class allowed: ExtType, tarType class failed after creating a union type. (opt = 1)",EL01232:"Class allowed: class to class denied. (opt = $1)",EL01233:"Class allowed: Inspection failed after creating tarType class type as union type (opt = 1)",EL01234:"Class allowed: class to union denied. (opt = $1)",EL01235:"Class allowed: tarType is not class, union type. tarType: $1",EL01240:"----- allow union -----",EL01241:"Union allowed: tarType is not a union type. tarType: $1",EL01242:"Union allowed: tarType['$1'] key does not exist. extType['$1'] = $2",EL01243:"Union allowed: Type '$1' check failed",EL01250:"----- allow function -----",EL01251:"Allow function : tarType is not function type. tarType : $1",EL01252:"Function allowed: declared extType.name = '$1' and target name do not match: function.name = '$2'",EL01253:"Function allowed: declared extType.func, target.func is not of function type",EL01254:"Function allowed: extType.func and target.func are different (proto check)",EL01255:"Function permit: params or return object of tarType must be set. extType.param = $1, extType.return = $2",EL01256:"Function permit: params permit test denied. <array(_SEQ_) conversion>",EL01257:"Function Permitted: Return Permitted Test Denied",EL01300:"----- util-type.js -----",EL01301:"Parcing check: function is not a rule: '$1'",EL01302:"Parcing inspection: function has no argument, body content. '$1'",EL01303:"Parcing inspection: function parsing failed $1",EL01304:"Type check: [$1] is a special type to handle",EL01305:"Type check: array($1) type is a specular type that cannot be handled",EL01306:"Type check: choice($1) type is a special type that cannot be handled",EL01307:"Type check: array($1) type is a type that cannot be handled",EL01308:"Type check: choice($1) type is a type that cannot be handled",EL01309:"REVIEW:",EL0130A:"Type allowed: allowType (extType, tarType) scan failed",EL0130B:"Type match: matchtype (extType, target) check failed",EL0130C:"ctor is not function type. type aperture = $1",EL01400:"----- util.js -----",EL01401:"implements(ctor, obj, args..); ctor is not of type <function> == '$1'",EL01402:"implements(ctor, obj, args..); obj is not of type <object> type of obj == '$1'",EL01403:"implements(ctor, obj, args..); args[$1] is not type <function>. type of args[$1] == '$2'",EL01404:"[$1] must implement type [$2]. $1._KIND = '$3'",EL01405:"isImplementOf(target); target is of type <function, string> only. type of target = '$1'",EL01500:"----- etc -----",EL01501:"$1.$events is obejct type. type of $events $2",EL01502:"$1.isLog is boolean type. type isLog $2",EL01503:"on(event, listener); event is not of type <string> type of event == '$1'",EL01504:"on(event, listener); listener is not of type <function> type of listener == '$1'",EL01505:"once(event, listener); event is not of string type. typeof event == '$1'",EL01506:"once(event, listener); listener 는 <function> 타입이 아닙니다. typeof listener == '$1'",EL01507:"off(event, listener); event is not of type <string> type of event == '$1'",EL01508:"off(event, listener); listener 는 <function> 타입이 아닙니다. typeof listener == '$1'",EL01509:"emit(event); event is not of type <string> type of event == '$1'",EL01510:"",EL02100:"----- Interface.* -----",EL02110:"----- i-object.js -----",EL02111:"getType(): array<function> is an abstract method. [$1] must be implemented",EL02112:"instanceOf(any): boolean is an abstract method. [$1] must be implemented",EL02113:"equal(any): boolena is an abstract method. [$1] must be implemented",EL02120:"----- i-marshal.js -----",EL02121:"getObject(opt?, origin?) : object is abstract method. [$1] must be implemented",EL02122:"setObject(mObj) is an abstract method. [$1] must be implemented",EL02130:"----- i-element.js -----",EL02131:"clone(): object is an abstract method. [$1] must be implemented",EL02140:"----- i-list.js -----",EL02150:"----- i-control-list.js -----",EL02151:"add(key) is an abstract method. [$1] must be implemented",EL02152:"del(key) is an abstract method. [$1] must be implemented",EL02153:"has(key): boolean is an abstract method. [$1] must be implemented",EL02154:"find(any): any is an abstract method. [$1] must be implemented",EL02160:"----- i-collection.js -----",EL02161:"add(any): boolean is an abstract method. [$1] must be implemented",EL02162:"remove(elem): boolean is an abstract method. [$1] must be implemented",EL02163:"cantains(any): boolean is an abstract method. [$1] must be implemented",EL02164:"indexOf(any): number is an abstract method. [$1] must be implemented",EL02170:"----- i-collection-array.js -----",EL02171:"insertAt(pos, val, ..): boolean is an abstract method. [$1] must be implemented",EL02180:"----- i-collection-property.js -----",EL02181:"indexToKey(idx): string is an abstract method. [$1] must be implemented",EL02190:"----- i-serialize.js -----",EL02191:"output(opt, ...): string is an abstract method. [$1] must be implemented",EL02192:"load(any, ...) is an abstract method. [$1] must be implemented",EL02300:"----- Meta.Entity.* -----",EL03100:"----- Meta.* -----",EL03110:"----- meta-object.js -----",EL03111:"You cannot create abstract, interface, enum type. $1['_KIND'] = '$2'",EL03112:"setObject(oGuid, origin); oGuid 는 'object' 타입입니다. typeof oGuid = '$1'",EL03113:"setObject(oGuid, origin); different namespaces. this._type = $1, oGuid._type = $2",EL03114:"setObject(oGuid, origin); origin 은 Guid 객체가 아닙니다. origin._type = '$1', origin._guid = '$2'",EL03120:"----- meta-element.js -----",EL03121:"$name;val is of type 'string'. type of valve = '$1'",EL03122:"$name; val.length must be greater than 0",EL03200:"----- meta-registry.js -----",EL03211:"register(meta); the meta to register is not a Guide object. meta._type = '$1', meta._guid = '$2'",EL03212:"register(meta); meta._guid to register is already registered. meta._guid = '$1'",EL03213:"release(meta); the meta to release is string(guid) | object(guid) type only. type of meta = '$1'",EL03220:"----- create -----",EL03221:"createMetaObject(oGuid, origin); oGuid can only be of type 'object'. typeof oGuid = '$1'",EL03222:"createMetaObject(oGuid, origin); oGuid._type 은 'string' 타입만 가능합니다.(length > 0) typeof oGuid._type = '$1'",EL03223:"createMetaObject(oGuid, origin); origin can only be of type 'object'. typeof origin = '$1'",EL03224:"createMetaObject(oGuid, origin);[$1] Namespace is not of type 'function'. type of coClass = '$2'",EL03225:"createReferObject(meta); meta can only be of type 'object'. type of meta = '$1'",EL03226:"createReferObject(meta); meta._guid 은 'string' 타입만 가능합니다.(length > 0) typeof meta._guid = '$1'",EL03227:"createNsReferObject(fun); fun is not type 'function'. type of fun = '$1'",EL03230:"----- ns Class -----",EL03231:"register Class(fun, ns, key); fun is not of type 'function'. type of fun = '$1'",EL03232:"registerClass(fun, ns, key); ns is not of type 'string'. typeofns = '$1'",EL03233:"register Class(fun, ns, key); key is not of type 'string'. type of key = '$1'",EL03234:"releaseClass(fullName); fullName 은 'string' 타입만 가능합니다.(length > 0) typeof fullName = '$1'",EL03235:"findClass(fun); fun is not type 'function'. type of fun = '$1'",EL03236:"getClass(fullName); fullName can only be of type 'string' (length > 0) type of fullName = '$1'",EL03240:"----- set, transform, load -----",EL03241:"setMetaObject(oGuid, meta); oGuid can only be of type 'object'. typeof oGuid = '$1'",EL0324:"setMetaObject(oGuid, meta); meta can only be of type 'object'. type of meta = '$1'",EL03243:"setMetaObject(meta); meta._guid can only be of type 'string' (length > 0) type of meta._guid = '$1'",EL03244:"transformRefer(oGuid); oGuid can only be of type 'object'. type oGuid = '$1'",EL03245:"transformRefer(oGuid); $1['$2']['$ns'] is not of type 'function'",EL03246:"loadMetaObject(str, path?); str is only of type 'string'. typeof str = '$1'",EL03247:"loadMetaObject(str, path?); The object parsed str is not a Guide object. obj._type = '$1', obj._guid = '$2'",EL03250:"----- has, valid, find -----",EL03251:"validObject(oGuid); oGuid is only of type 'object'. typeof oGuid = '$1'",EL03252:"hasGuidObject(oGuid, origin); guid can only be of type 'string' (length > 0) type of guid = '$1'",EL03253:"hasGuidObject(oGuid, origin); origin[$1]는 'object' 타입이 아닙니다. typeof origin[$1] = '$2'",EL03254:"hasRefer(oGuid); oGuid can only be of type 'object'. typeof oGuid = '$1'",EL03255:"hasRefer(oGuid); oGuid is not a Guide object. oGuid._type = '$1', oGuid._guid = '$2'",EL03256:"findSetObject(oGuid, origin); [ oGuid._guid | oGuid ]는 'string' 타입만 가능합니다.(length > 0) guid = '$1'",EL03257:"findSetObject(oGuid, origin); origin can only be of type 'object'. typeof origin = '$1'",EL03300:"----- namespace-manager.js -----",EL03310:"----- private function, proterty -----",EL03311:"NamespaceManager.allowOverlap 은 'boolean' 타입만 가능합니다. typeof allowOverlap = $1",EL03312:"_getArray(ns); ns is not a valid namespace name rule. ns = $1",EL03313:"_getArray(ns); ns type is 'string', 'array<string>' only typeofns = $1",EL03314:"_getArray(ns); ns[$1] is not type 'string'. typeofns[$1] = $2",EL03315:"_getArray(ns); ns[$1] is not a valid name rule. ns[$1] = $1",EL03320:"----- addNamespace, delNamespace, path -----",EL0321:"addNamespace(ns); addition of namespace failed",EL03322:"delNamespace(ns); Namespace deletion failed",EL0323:"path(ns); failed to get the namespace path",EL03330:"----- add, del -----",EL03331:"add(fullName,lem); [$1] is not a valid name rule",EL03332:"add(fullName,lem);lem is already registered. Allow duplicate [this.allowOverlap = 'true']",EL03333:"add(fullName,lem); failed to register elements in the namespace",EL03334:"del(fullName); Failed to delete element in Namespace",EL03340:"----- getPath, output, load -----",EL03341:"getPath(elem); no element value. typeoflem = $1",EL03342:"output (stringify, space); Namespace export failed. $1",EL03343:"load(str, path); str is not type 'string'. typeofstr = $1",EL03344:"load(str, path); Namespace loading failed. $1",EL04100:"----- Collection.* -----",EL04110:"----- base-collection.js -----",EL04111:"_remove(idx): boolean is an abstract method. Must be implemented",EL04112:"setObject(oGuid, origin); _owner connection of oGuid failed. guid = $1",EL04113:"removeAt(idx); idx is not type 'number'. typeof idx = $1",EL04114:"add(any): number is an abstract method. must be implemented",EL04115:"clear() is an abstract method. must be implemented",EL04116:"map(callback); callback is not function type. type of callback = $1",EL04117:"filter(callback); callback is not function type. type of callback = $1",EL04118:"reduce(callback); callback is not function type. type of callback = $1",EL04119:"find(callback); callback is not function type. type of callback = $1",EL041110:"forEach(callback); callback is not function type. type of callback = $1",EL041111:"Some(callback); callback is not function type. type of callback = $1",EL041112:"Every(callback); callback is not function type. type of callback = $1",EL041113:"findIndex(callback); callback 이 function 타입이 아닙니다. typeof callback = $1",EL04200:"",EL04210:"----- collection-array.js -----",EL04211:"_elements connection failed for setObject(oGuid, origin); oGuid['_elem'][$1]: guid = $2",EL04212:"insertAt(pos, value, desc); pos is not type 'number'. typeof pos = $1",EL04213:"insertAt(pos, value, desc); pos cannot be greater than this.count.pos = $1, count = $2",EL04214:"insertAt(pos, value, desc); pos cannot be less than 0. pos = $1",EL04215:"insertAt(pos, value, desc); registration failed. pos = $1, value = $2",EL04220:"----- collection-property.js -----",EL04221:"setObject(oGuid, origin); oGuid['_lem'].length = $1 length and oGuid['_key'].length = $2 length are different",EL04222:"setObject(oGuid, origin); oGuid['_elem'].length = $1 length and oGuid['_desc'].length = $2 length are different",EL04223:"setObject(oGuid, origin); oGuid._elem[$1] guid not found. guid = $2",EL04224:"indexOf(obj, isKey); if the index value is found by key, obj must be of type 'string'. typeof obj = $1",EL04225:"add(name, value, desc); name is not of type 'string'. type of name = $1",EL04226:"add(name, value, desc); name = '$1' is not valid for name rule. Rule = '$2'",EL04227:"add(name, value, desc); name = '$1' is the reserved word",EL04228:"add(name, value, desc); name = '$1' is duplicated with existing name",EL04229:"add(name, value, desc); addition failed. name = '$1', value = '$2'",EL0422A:"indexToKey(idx); idx is not of type 'number'. typeof idx = $1",EL0422B:"exists(key); key is not of type 'string' (length > 0) type of key = $1",EL04300:"",EL04310:"----- collection-transaction.js -----",EL04311:"$1.autoChanges 는 'boolean' 타입입니다. typeof aucoChanges = '$2'",EL04320:"----- trans-queue.js -----",EL04321:"collection value is not an instance that inherited [MetaObject]",EL04322:"collection is not an instance of [ArrayCollection]",EL04323:"rollback(); '$1' is an unprocessable cmd",WS011:"[$1] Destination [$2] cannot be deleted",EN:"OK"},"./locales"),c(L().m(function e(){return L().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,V.autoDetect();case 1:return e.a(2)}},e)}))();var q=function(e){function t(e,n,r){var o;h(this,t),y(o=f(this,t),"queue",[]),y(o,"prop",{});var i,a,s="",u=[];return n instanceof t?(u=n.queue,i=n.prop):n instanceof Error?u.push(n.message):"object"===P(n)&&null!==n&&(i=n),a="string"==typeof e?e:e instanceof RegExp?V.get(e.source,r):"An unknown error occurred.",u.push(a),i&&(s+=function(e){var t="";for(var n in e)"string"==typeof e[n]&&(t+=n+" : "+e[n]+"\n");return t}(i)),u.length>0&&(s+=function(e){for(var t="",n=e.length,r=0;r<n;r++){for(var o="",i=0;i<r;i++)o+="#";t+=o+" "+e[r]+"\n"}return t.trim()}(u)),o.message=s,o.queue=u,o}return b(t,e),d(t,[{key:"toString",value:function(){return"ExtendError : "+this.message}}])}(k(Error));y(q,"_NS","Common");var Y=globalThis,W=!!Y.OLD_ENV&&Y.OLD_ENV,Q={};function z(e){return"object"===P(e)&&null!==e&&!function(e){return"object"===P(e)&&null!==e&&(e instanceof RegExp||e instanceof Date)}(e)}function H(e){return"number"==typeof e||("string"==typeof e||("boolean"==typeof e||("bigint"==typeof e||e instanceof RegExp)))}function J(e,t){return e===t||e instanceof RegExp&&t instanceof RegExp&&e.source===t.source}var Z=function(e){return new e};function X(e){return e.name}function ee(e){var t;return"string"!=typeof e?"":null!==(t=/^_[a-zA-Z]+_/.exec(e))?t[0].toUpperCase():""}function te(e){var t=e.match(/\((.*?)\)\s*=>\s*\{([\s\S]*)\}/);if(!t){var n=e.match(/^(.*?)\s*=>\s*\{([\s\S]*)\}/);if(!n)throw new Error("Invalid arrow function format.");var r=n[1].trim(),o=n[2].trim();return te("(".concat(r,") => {").concat(o,"}"))}var i=t[1].trim(),a=t[2].trim();(a.match(/let\s+(\{[\s\S]*?\}|\[[\s\S]*?\])\s*=\s*(\w+);/g)||[]).forEach(function(e){var t=e.match(/let\s+(\{[\s\S]*?\}|\[[\s\S]*?\])\s*=\s*(\w+);/);if(t){var n=t[1].trim(),r=t[2].trim(),o=new RegExp("\\b".concat(r,"\\b"),"g");i=i.replace(o,n)}});var s=a.match(/return\s+(.*?);/),u=s?s[1].trim():"";return u?(i=i.replace(/\s+/g,""),"(".concat(i,")=>{return ").concat(u,"}")):(i=i.replace(/\s+/g,""),"(".concat(i,")=>{}"))}function ne(e){var t,n,r={params:[],return:void 0},o=[];/\blet\b/.test(e)&&(e=te(e)),e=e.replace(/\/\*[^](.*?)\*\//g,"").replace(/\/\/[^](.*?)(\n|$)/g,"");try{if(/\([,_\[\]{:}\w\s]*\)\s*(?:=>)?\s*{\s*.*\s*.*\s*}/.test(e))t=/(?:function\s)?\(([\[\]{:}\s\w,]*)\)\s*(?:=>)?\s*{(?:\s*return\s+|\s*)?([\[\]{:}\s\w,]*);?\s*}/.exec(e);else{if(!/(\(.*\)|\w+)\s*(?:=>).*/.test(e))throw new q(/EL01301/,null,[e]);t=/\(?([\[\]{:}\s\w,]*)\)?\s*(?:=>)\s*{?(?:\s*return\s+|\s*)?([\[\]\s\w,]*);?\s*}?/.exec(e)}if(null===t)throw new q(/EL01302/,null,[e]);o=new Function("return ["+t[1]+"]")(),r.params=o,""!==t[2]&&(n=new Function("return "+t[2])()),r.return=n}catch(e){throw new q(/EL01303/,e,[""])}return r}function re(e){var t=[];return"string"==typeof e&&(t=(t=(t=t.concat(["_ALL_","_ANY_","_NON_","_ERR_"])).concat(["_REQ_","_OPT_","_DEF_","_EUM_"])).concat(["_ETC_"])).indexOf(e)>-1}function oe(e){var t=[];return"string"==typeof e&&(t=(t=(t=t.concat(["_ALL_","_ANY_"])).concat(["_REQ_","_OPT_","_SEQ_"])).concat(["_ETC_"])).indexOf(e)>-1}function ie(e,t){var n=[],r=e,o=t||!1;do{for(var i=Object.getOwnPropertyNames(r),a=0;a<i.length;a++){var s=i[a];-1!==n.indexOf(s)||!o&&Object.prototype.hasOwnProperty(s)||n.push(s)}}while(r=Object.getPrototypeOf(r));return n}function ae(e,t){var n,r,o=[],i=[];if(t=!1!==t,"function"!=typeof e)throw new q(/EL0130C/,null,[P(e)]);if(o.push(e),r=function(e){return Object.prototype.hasOwnProperty.call(e,"super")?e.super:W||"function"!=typeof Object.getPrototypeOf?e.__proto__:Object.getPrototypeOf(e)}(e),r!==Function.prototype&&(o=o.concat(ae(r,t))),t){n=e._UNION||[];for(var a=0;a<n.length;a++)o=o.concat(ae(n[a],t))}for(var s=0;s<o.length;s++){i.indexOf(o[s])<0&&i.push(o[s])}return i}function se(e,t){var n;if("function"!=typeof e)return!1;if("function"!=typeof t&&"string"!=typeof t)return!1;n=ae(e,!1);for(var r=0;r<n.length;r++)if("string"==typeof t){if(t===n[r].name)return!0}else if(t===n[r])return!0;return!1}function ue(e){return ce(e).$type}function ce(e){var t,n,r,o,i={$type:"",ref:void 0,toString:function(){var e="",t=[];if("array"===this.$type||"choice"===this.$type){for(var n=0;n<this.list.length;n++){var r,o=ce(this.list[n]);if(o.default&&null!==o.default)r="string"===o.$type?"'"+o.default+"'":o.default,t.push(o.$type+"("+r+")");else t.push(o.$type)}e="_OPT_"===this.kind||"_REQ_"===this.kind||"_SEQ_"===this.kind||"_EUM_"===this.kind||"_DEF_"===this.kind?this.$type+"("+this.kind+")["+t.join(", ")+"]":this.$type+"("+this.kind+")"}else e=this.$type,this.default&&null!==this.default&&("string"===this.$type?e+="('"+this.default+"')":e+="("+this.default+")");return e}};if("object"===P(e)&&null!==e&&e.$type){if(i.$type=e.$type,e.default&&(i.default=e.default),e.kind&&(i.kind=e.kind),e.ref&&(i.ref=e.ref),e.list&&(i.list=e.list),e.name&&(i.name=e.name),e.func&&(i.func=e.func),e.params&&(i.params=e.params),e.return&&(i.return=e.return),t=i.$type,n=[],!("string"==typeof t&&(n=(n=(n=(n=(n=n.concat(["null","undefined","number","string","boolean"])).concat(["array","function","object"])).concat(["choice","union","class"])).concat(["symbol","bigint","regexp"])).concat(["etc"])).indexOf(t)>-1))throw new q(/EL01304/,null,[i.$type]);if("array"===i.$type&&(i.kind=i.kind||"_ALL_",!oe(i.kind)))throw new q(/EL01305/,null,[i.kind]);if("choice"===i.$type&&!re(i.kind))throw new q(/EL01306/,null,[i.kind]);return i}if(i.ref=e,null===e)i.$type="null";else if(e===Number)i.$type="number",i.default=null;else if(e===String)i.$type="string",i.default=null;else if(e===Boolean)i.$type="boolean",i.default=null;else if(e===Array)i.$type="array",i.kind="_ALL_",i.list=[];else if(e===Function)i.$type="function",i.params=[];else if(e===Object)i.$type="object";else if(e===RegExp)i.$type="regexp",i.default=null;else if(e===Symbol)i.$type="symbol";else if(e===BigInt)i.$type="bigint",i.default=null;else if(e instanceof RegExp)i.$type="regexp",i.default=e;else if(void 0===e)i.$type="undefined";else if("number"==typeof e)i.$type="number",i.default=e;else if("string"==typeof e)i.$type="string",i.default=e;else if("boolean"==typeof e)i.$type="boolean",i.default=e;else if("bigint"==typeof e)i.$type="bigint",i.default=e;else if("symbol"===P(e))i.$type="symbol";else if("function"==typeof e){var a=e._KIND;if(a?(a=a.toLowerCase(),i.$type="function"===a?"function":"class"):i.$type=(r=e.name,""!==(o=r.charAt(0))&&o===o.toUpperCase()?"class":"function"),"function"===i.$type)try{var s=e._TYPE?e._TYPE:ne(e.toString());i.params=s.params,i.return=s.return}catch(e){i.params=[]}}else if(Array.isArray(e)){if(1===e.length&&Array.isArray(e[0])?(i.$type="choice",0===e[0].length?i.kind="_ANY_":i.kind=ee(e[0][0]),i.list=i.kind?e[0].slice(1):e[0]):(i.$type="array",0===e.length?i.kind="_ANY_":i.kind=ee(e[0]),i.list=i.kind?e.slice(1):e),i.kind||(i.kind="_OPT_"),"array"===i.$type&&!oe(i.kind))throw new q(/EL01307/,null,[i.kind]);if("choice"===i.$type&&!re(i.kind))throw new q(/EL01308/,null,[i.kind])}else(function(e){return!!(z(e)&&ie(e).length>0)})(e)||function(e){return!(!z(e)||0!==Object.keys(e).length||0!==ie(e).length)}(e)?i.$type="union":i.$type="object";return i}function le(e,t,n,r){var o,i=ce(e),a=ce(t),s={},u=i.toString(),c=a.toString();if("extType"===(r=r||"extType")&&r||(s["error path"]=r),n=n||0,i.kind&&("_SEQ_"===i.kind||"_OPT_"===i.kind||"_REQ_"===i.kind||"_EUM_"===i.kind||"_DEF_"===i.kind)&&0===i.list.length)throw new q(/EL01201/,s,["extType",u]);if(a.kind&&("_SEQ_"===a.kind||"_OPT_"===a.kind||"_REQ_"===a.kind||"_EUM_"===a.kind||"_DEF_"===a.kind)&&0===a.list.length)throw new q(/EL01201/,s,["tarType",c]);if("choice"===i.$type||"choice"!==a.$type)if(o=i.$type,[].concat(["null","undefined","number","string","boolean"]).concat(["symbol","bigint","regexp","object"]).indexOf(o)>-1){if(void 0!==i.default&&null!==i.default&&!J(i.default,a.default))throw new q(/EL01202/,s,[i.$type,i,a]);if(i.$type!==a.$type)throw new q(/EL01203/,s,[i.$type,a.$type])}else if("array"===i.$type)!function(){if("array"!==a.$type||!Array.isArray(a.list))throw new q(/EL01211/,s,[a.$type]);if("_ALL_"===i.kind)return;if("_ANY_"===i.kind){if("_ANY_"===a.kind)return;if("_ALL_"===a.kind||"_OPT_"===a.kind)throw new q(/EL01212/,s,[c]);return}if("_SEQ_"===i.kind){if(i.kind!==a.kind)throw new q(/EL01213/,s,[a]);if(i.list.length>a.list.length)throw new q(/EL01214/,s,[i.list.length,a.list.length]);for(var e=0;e<i.list.length;e++)try{le(i.list[e],a.list[e],n,r)}catch(t){throw new q(/EL01215/,t,[e])}return}if("_REQ_"===i.kind){if("_ALL_"===a.kind||"_ANY_"===a.kind||"_OPT_"===a.kind)throw new q(/EL01216/,s,[i.$type,c])}else{if("_OPT_"!==i.kind)throw new q(/EL01218/,s,[i.kind]);if("_ALL_"===a.kind||"_ANY_"===a.kind)throw new q(/EL01217/,s,[i.$type,c])}for(var t=0;t<a.list.length;t++){for(var o=!1,u=0;u<i.list.length;u++)try{if(o)break;if("choice"===ce(a.list[t]).$type&&"choice"!==ce(i.list[u]).$type)le({$type:"choice",kind:"_OPT_",list:i.list},a.list[t],n,r);else le(i.list[u],a.list[t],n,r);o=!0}catch(e){continue}if(!o)throw new q(/EL01219/,s,[i,a])}}();else if("choice"===i.$type)!function(){if("_ALL_"===i.kind){if(a.$type==a.$type&&"_ERR_"===a.kind)throw new q(/EL01221/,s,[i.$type,c]);return}if("_ANY_"===i.kind){if("undefined"===a.$type)throw new q(/EL01222/,s,["_ANY_","undefined"]);if(i.$type===a.$type&&("_ALL_"===a.kind||"_OPT_"===a.kind||"_ERR_"===a.kind||"_NON_"===a.kind))throw new q(/EL01223/,s,[c]);return}if("_NON_"===i.kind){if(i.$type!==a.$type||i.kind!==a.kind)throw new q(/EL01224/,s,[c]);return}if("_ERR_"===i.kind){if(i.$type!==a.$type||i.kind!==a.kind)throw new q(/EL01225/,s,[c]);return}if("_REQ_"===i.kind){if(i.$type===a.$type&&("_ALL_"===a.kind||"_ANY_"===a.kind||"_OPT_"===a.kind||"_NON_"===a.kind||"_ERR_"===a.kind))throw new q(/EL01226/,s,[c])}else if("_OPT_"===i.kind){if("undefined"===a.$type)return;if(i.$type===a.$type&&("_ALL_"===a.kind||"_ANY_"===a.kind||"_NON_"===a.kind||"_ERR_"===a.kind))throw new q(/EL01227/,s,[c])}else if("_EUM_"===i.kind){if(i.$type!==a.$type||i.kind!==a.kind)throw new q(/EL01228/,s,[]);for(var e=0;e<i.list.length;e++)if(!H(i.list[e]))throw new q(/EL01229/,s,[e,ce(i.list[e])]);for(var o=0;o<a.list.length;o++)if(!H(a.list[o]))throw new q(/EL0122A/,s,[o,ce(a.list[o])])}else{if("_DEF_"!==i.kind)throw new q(/EL0122E/,s,[i.kind]);if(i.$type!==a.$type||i.kind!==a.kind)throw new q(/EL0122B/,s,[]);if(!H(i.list[0]))throw new q(/EL0122C/,s,[ce(i.list[0])]);if(!H(a.list[0]))throw new q(/EL0122D/,s,[ce(a.list[0])])}for(var u=a.kind?a.list:[t],l=0;l<u.length;l++){for(var f=!1,h=0;h<i.list.length;h++)try{if(f)continue;le(i.list[h],u[l],n,r),f=!0}catch(e){continue}if(!f)throw new q(/EL0122F/,s,[l,i,ce(u[l]).$type])}}();else if("class"===i.$type)!function(){if("class"===a.$type){if(se(a.ref,i.ref))return;if(1===n)try{return le(new i.ref,new a.ref,n,r)}catch(e){throw new q(/EL01231/,e,[])}throw new q(/EL01232/,s,[n])}if("union"===a.$type){if(1===n)try{return le(new i.ref,a.ref,n,r)}catch(e){throw new q(/EL01233/,e,[])}throw new q(/EL01234/,s,[n])}throw new q(/EL01235/,s,[a])}();else if("union"===i.$type)!function(){var t;if("union"!==a.$type)throw new q(/EL01241/,s,[a]);t=ie(i.ref);for(var o=0;o<t.length;o++){var u=t[o];if(!(u in a.ref))throw new q(/EL01242/,s,[u,ue(e[u])]);try{le(i.ref[u],a.ref[u],n,r)}catch(e){throw new q(/EL01243/,e,[u])}}}();else{if("function"!==i.$type)throw new q(/EL01204/,s,[]);!function(){if("function"!==a.$type)throw new q(/EL01251/,s,[a]);if(i.ref===Function)return;if(i.name){if(i.name===t.name||i.name===a.name||a.func&&i.name===a.func.name)return;throw new q(/EL01252/,s,[i.name,a.name])}if(i.func){if("function"!=typeof a.func)throw new q(/EL01253/,s,[]);if(se(a.func,i.func))return;throw new q(/EL01254/,s,[])}if(!(i.return||i.params&&0!==i.params.length))return;if(void 0===a.params&&void 0===a.return)throw new q(/EL01255/,s,[ce(i.params),ue(i.return)]);if(Array.isArray(i.params)&&i.params.length>0)try{le(["_SEQ_"].concat(i.params),["_SEQ_"].concat(a.params),n,r)}catch(e){throw new q(/EL01256/,e,[])}if(i.return)try{le(i.return,a.return,n,r)}catch(e){throw new q(/EL01257/,e,[])}}()}else le({$type:"choice",kind:"_REQ_",list:[e]},t,n,r)}function fe(e,t,n,r){var o=ce(e),i=ce(t),a={},s=o.toString(),u=i.toString();if("extType"!==(r=r||"extType")&&(a["error path"]=r),n=n||0,o.kind&&!("_SEQ_"!==o.kind&&"_OPT_"!==o.kind&&"_REQ_"!==o.kind&&"_EUM_"!==o.kind&&"_DEF_"!==o.kind||void 0!==o.ref&&0!==o.list.length))throw new q(/EL01101/,a,["extType",s]);if("null"===o.$type){if(null!==t)throw new q(/EL01102/,a,["null",u])}else if("undefined"===o.$type){if(void 0!==t)throw new q(/EL01102/,a,["undefined",u])}else if("string"===o.$type){if("string"==typeof o.default&&void 0===t&&(t=o.default),"string"!=typeof t)throw new q(/EL01102/,a,["string",u])}else if("number"===o.$type){if("number"==typeof o.default&&void 0===t&&(t=o.default),"number"!=typeof t)throw new q(/EL01102/,a,["number",u])}else if("boolean"===o.$type){if("boolean"==typeof o.default&&void 0===t&&(t=o.default),"boolean"!=typeof t)throw new q(/EL01102/,a,["boolean",u])}else if("bigint"===o.$type){if("bigint"==typeof o.default&&void 0===t&&(t=o.default),"bigint"!=typeof t)throw new q(/EL01102/,a,["bigint",u])}else if("symbol"===o.$type){if("symbol"!==P(t))throw new q(/EL01102/,a,["symbol",u])}else if("regexp"===o.$type){if(o.default&&null!==o.default&&void 0===t&&(t=o.default),!(t instanceof RegExp))throw new q(/EL01102/,a,["regexp",u])}else if("object"===o.$type){if("object"!==i.$type)throw new q(/EL01102/,a,["object",u])}else if("array"===o.$type)!function(){if(!Array.isArray(t))throw new q(/EL01111/,a,[u]);if("_ALL_"===o.kind)return;if("_ANY_"===o.kind){if(0===t.length)throw new q(/EL01112/,a,[t.length]);return}if("_SEQ_"===o.kind){if(o.list.length>t.length)throw new q(/EL01113/,a,[o.list.length,i.list.length]);for(var e=0;e<o.list.length;e++){var s=o.list[e],c=i.list[e];if(H(s)){if(!J(s,c))throw new q(/EL01114/,a,[e,s,c])}else try{fe(s,c,n,r)}catch(t){throw new q(/EL01115/,t,[e,ue(s)])}}return}if("_REQ_"===o.kind){if(0===t.length)throw new q(/EL01116/,a,[t.length])}else{if("_OPT_"!==o.kind)throw new q(/EL01117/,a,[o.kind]);if(Array.isArray(t)&&0===t.length)return}for(var l=0;l<t.length;l++){for(var f=t[l],h=!1,p=0;p<o.list.length;p++)try{var d=o.list[p];if(!H(d)){fe(d,f,n,r),h=!0;break}if(J(d,f)){h=!0;break}}catch(e){continue}if(!h)throw new q(/EL01118/,a,[o.toString(),i.toString()])}}();else if("choice"===o.$type)!function(){if("_ALL_"===o.kind)return;if("_ANY_"===o.kind){if(void 0!==t)return;throw new q(/EL01121/,a,[])}if("_NON_"===o.kind){if(void 0===t)return;throw new q(/EL01122/,[])}if("_ERR_"===o.kind){if(t instanceof Error)return;throw new q(/EL01123/,[])}if("_REQ_"===o.kind);else if("_OPT_"===o.kind){if(void 0===t)return}else if("_EUM_"===o.kind){for(var e=0;e<o.list.length;e++)if(!H(o.list[e]))throw new q(/EL01124/,a,[e,ue(o.list[e])])}else{if("_DEF_"!==o.kind)throw new q(/EL01126/,a,[o.kind]);if(!H(o.list[0]))throw new q(/EL01125/,a,[ue(o.list[0])]);if(void 0===t)return void(t=o.list[0])}for(var s=0;s<o.list.length;s++)try{var u=o.list[s];if(!H(u))return fe(u,t,n,r);if(J(u,t))return}catch(e){continue}throw new q(/EL01127/,a,[o,i])}();else if("class"===o.$type)!function(){if("class"===i.$type){if(void 0===o.ref)return;if(se(i.ref,o.ref))return