{"version":3,"sources":["webpack://server/webpack/universalModuleDefinition","webpack://server/webpack/bootstrap","webpack://server/./node_modules/@witkac/jschema/lib/methods/ftime.js","webpack://server/./node_modules/core-js/modules/_object-keys.js","webpack://server/./node_modules/core-js/modules/_object-gopd.js","webpack://server/./node_modules/@witkac/jschema/lib/JSchema.js","webpack://server/./node_modules/core-js/modules/_object-dps.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/padNumber.js","webpack://server/./node_modules/core-js/modules/_dom-create.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/mround.js","webpack://server/./node_modules/core-js/modules/_redefine.js","webpack://server/./node_modules/core-js/modules/_object-create.js","webpack://server/./node_modules/core-js/modules/_library.js","webpack://server/./node_modules/core-js/modules/_cof.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/check.js","webpack://server/./node_modules/core-js/modules/_hide.js","webpack://server/./node_modules/@witkac/jschema/lib/TimeSpan.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/dateParse.js","webpack://server/./node_modules/core-js/modules/_to-integer.js","webpack://server/./node_modules/core-js/modules/_property-desc.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/trim.js","webpack://server/./node_modules/@witkac/jschema/lib/ValidationResult.js","webpack://server/./node_modules/core-js/modules/_object-pie.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/datePart.js","webpack://server/./node_modules/core-js/modules/_shared.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/now.js","webpack://server/./node_modules/core-js/modules/_export.js","webpack://server/./node_modules/core-js/modules/_inherit-if-required.js","webpack://server/./node_modules/core-js/modules/_shared-key.js","webpack://server/./node_modules/core-js/modules/_iobject.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/generateGuid.js","webpack://server/./node_modules/@witkac/jschema/lib/index.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/today.js","webpack://server/./node_modules/core-js/modules/_to-iobject.js","webpack://server/./node_modules/core-js/modules/_has.js","webpack://server/./node_modules/core-js/modules/_to-primitive.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/fdatetime.js","webpack://server/./node_modules/core-js/modules/_global.js","webpack://server/./node_modules/core-js/modules/_to-absolute-index.js","webpack://server/./node_modules/core-js/modules/_fails.js","webpack://server/./node_modules/core-js/modules/es6.function.name.js","webpack://server/./node_modules/core-js/modules/_core.js","webpack://server/./node_modules/core-js/modules/_object-dp.js","webpack://server/./node_modules/core-js/modules/_set-proto.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/max.js","webpack://server/./node_modules/core-js/modules/_object-gopn.js","webpack://server/./node_modules/@witkac/jschema/lib/CompareResult.js","webpack://server/./node_modules/@witkac/jschema/lib/schemaMethods.js","webpack://server/./node_modules/core-js/modules/_ctx.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/min.js","webpack://server/./node_modules/core-js/modules/_to-length.js","webpack://server/./node_modules/core-js/modules/_descriptors.js","webpack://server/./node_modules/@witkac/jschema/lib/formatFunctions.js","webpack://server/./node_modules/@witkac/jschema/lib/SchemaWrapper.js","webpack://server/./node_modules/core-js/modules/_string-trim.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/dateDiff.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/dateAdd.js","webpack://server/./node_modules/core-js/modules/_defined.js","webpack://server/./node_modules/core-js/modules/_array-includes.js","webpack://server/./node_modules/core-js/modules/es6.number.constructor.js","webpack://server/./node_modules/core-js/modules/_ie8-dom-define.js","webpack://server/./node_modules/core-js/modules/_uid.js","webpack://server/./node_modules/core-js/modules/_an-object.js","webpack://server/./node_modules/core-js/modules/_object-keys-internal.js","webpack://server/./node_modules/core-js/modules/_is-object.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/fdate.js","webpack://server/./node_modules/core-js/modules/_a-function.js","webpack://server/./node_modules/@witkac/jschema/lib/polyfills.js","webpack://server/./node_modules/core-js/modules/_enum-bug-keys.js","webpack://server/./node_modules/@witkac/jschema/lib/schemaMixin.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/listMonths.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/listYears.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/fmoney.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/nullDefault.js","webpack://server/./node_modules/current-script-polyfill/currentScript.js","webpack://server/./node_modules/core-js/modules/_function-to-string.js","webpack://server/./node_modules/core-js/modules/_html.js","webpack://server/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://server/./src/components/crossed-out.vue?a438","webpack://server/src/components/crossed-out.vue","webpack://server/./src/components/crossed-out.vue?a213","webpack://server/./node_modules/vue-loader/lib/runtime/componentNormalizer.js","webpack://server/./src/components/crossed-out.vue","webpack://server/./src/components/previewComponents.js","webpack://server/./src/filters/index.js","webpack://server/./src/mixins/previewMixin.js","webpack://server/./src/serverpackage.js","webpack://server/./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js","webpack://server/./node_modules/core-js/modules/_string-ws.js"],"names":["components","WCrossedOut","registerPreviewComponents","Vue","name","component","filters","registerFilters","filter","window","previewComponents","mixins","schemaMixin","props","data","model","$props","datamodel","beforeCreate","$options","propsData","external","created","console","log","mounted","vm","previewMixin","_previewMixin","_previewcomponents","_filters","schemaMethods","_schemaMethods"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;ACVA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,kDAA0C,gCAAgC;AAC1E;AACA;;AAEA;AACA;AACA;AACA,gEAAwD,kBAAkB;AAC1E;AACA,yDAAiD,cAAc;AAC/D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAyC,iCAAiC;AAC1E,wHAAgH,mBAAmB,EAAE;AACrI;AACA;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;;AAGA;AACA;;;;;;;;;AClFa;AACb,8CAA8C,cAAc;AAC5D,kBAAkB,mBAAO,CAAC,MAAa;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iC;;;;;;;ACZA;AACA,YAAY,mBAAO,CAAC,MAAyB;AAC7C,kBAAkB,mBAAO,CAAC,MAAkB;;AAE5C;AACA;AACA;;;;;;;;ACNA,UAAU,mBAAO,CAAC,MAAe;AACjC,iBAAiB,mBAAO,CAAC,MAAkB;AAC3C,gBAAgB,mBAAO,CAAC,MAAe;AACvC,kBAAkB,mBAAO,CAAC,MAAiB;AAC3C,UAAU,mBAAO,CAAC,MAAQ;AAC1B,qBAAqB,mBAAO,CAAC,MAAmB;AAChD;;AAEA,YAAY,mBAAO,CAAC,MAAgB;AACpC;AACA;AACA;AACA;AACA,GAAG,YAAY;AACf;AACA;;;;;;;;;ACfa;AACb,WAAW,SAAS;AACpB,8CAA8C,cAAc;AAC5D,WAAW,KAAK;AAChB,wBAAwB,mBAAO,CAAC,MAAmB;AACnD,sBAAsB,mBAAO,CAAC,MAAiB;AAC/C,yBAAyB,mBAAO,CAAC,MAAoB;AACrD,sBAAsB,mBAAO,CAAC,MAAiB;AAC/C,qBAAqB,mBAAO,CAAC,MAAwB;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,cAAc;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC;AACtC;AACA,mBAAmB,qBAAqB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,eAAe;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,eAAe;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,WAAW;AACrC,sCAAsC,yBAAyB;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,WAAW;AACrC,sCAAsC,yBAAyB;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,iBAAiB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,yBAAyB;AAC/D,0BAA0B,WAAW;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,kBAAkB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,oBAAoB;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,kBAAkB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,eAAe;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,UAAU,EAAE;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,iBAAiB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,2BAA2B,aAAa;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,iBAAiB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,iBAAiB;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B,2CAA2C;AACxE,4BAA4B,eAAe;AAC3C,0BAA0B,aAAa;AACvC;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,QAAQ;AACpC;AACA;AACA;AACA;AACA;AACA,4BAA4B,mBAAmB;AAC/C;AACA;AACA;AACA,gCAAgC,qBAAqB;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD,gBAAgB;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC,sBAAsB;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,6CAA6C,gBAAgB;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA,KAAK;;AAEL,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,eAAe;AAC1C;AACA;AACA;AACA;AACA;AACA,6CAA6C,8DAA8D,EAAE;AAC7G;AACA;AACA,6CAA6C,8DAA8D,EAAE;AAC7G;AACA;AACA;AACA;AACA,6CAA6C,qDAAqD,EAAE;AACpG;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,6CAA6C,qDAAqD,EAAE;AACpG;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,6CAA6C,0DAA0D,EAAE;AACzG;AACA;AACA;AACA,iDAAiD,gEAAgE,EAAE;AACnH;AACA;AACA;AACA;AACA,iDAAiD,gEAAgE,EAAE;AACnH;AACA;AACA,iDAAiD,gEAAgE,EAAE;AACnH;AACA;AACA;AACA;AACA,qDAAqD,8CAA8C,EAAE;AACrG;AACA;AACA;AACA,qDAAqD,cAAc,EAAE;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD,wCAAwC,EAAE;AAC/F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,cAAc;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oEAAoE;AACpE;AACA,kEAAkE,EAAE;AACpE;AACA,oEAAoE;AACpE;AACA;AACA;AACA,+FAA+F;AAC/F;AACA;AACA,qDAAqD;AACrD;AACA;AACA;AACA,iDAAiD;AACjD;AACA;AACA;AACA,qDAAqD,cAAc;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,cAAc;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC;AACnC,uDAAuD,cAAc;AACrE;AACA;AACA,wCAAwC;AACxC;AACA;AACA;AACA,qHAAqH;AACrH;AACA;AACA,mDAAmD;AACnD;AACA;AACA;AACA;AACA,6CAA6C;AAC7C;AACA;AACA,oDAAoD;AACpD;AACA;AACA;AACA,yCAAyC;AACzC;AACA;AACA,wCAAwC;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C;AAC/C;AACA;AACA,+CAA+C;AAC/C;AACA;AACA;AACA;AACA;AACA,oCAAoC;AACpC;AACA;AACA;AACA,iDAAiD,MAAM;AACvD;AACA;AACA,qDAAqD;AACrD;AACA;AACA;AACA;AACA;AACA,wDAAwD,aAAa,oBAAoB,WAAW,qBAAqB,UAAU,gBAAgB;AACnJ;AACA;AACA,mEAAmE;AACnE,yCAAyC,qBAAqB,UAAU,gBAAgB;AACxF;AACA,6BAA6B,cAAc,MAAM,OAAO,GAAG,EAAE,SAAS,YAAY;AAClF;AACA;AACA;AACA;AACA,wDAAwD,sBAAsB,aAAa,oBAAoB,WAAW,eAAe;AACzI;AACA;AACA,mEAAmE,gBAAgB,iBAAiB,eAAe;AACnH;AACA;AACA,iDAAiD,yBAAyB;AAC1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8DAA8D,sCAAsC,mBAAmB,2BAA2B,iBAAiB,uDAAuD,aAAa,gBAAgB;AACvP;AACA;AACA,wDAAwD;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD;AACpD;AACA;AACA;AACA,qDAAqD;AACrD;AACA;AACA;AACA;AACA,0DAA0D;AAC1D;AACA;AACA,yDAAyD;AACzD;AACA;AACA;AACA;AACA;AACA,4DAA4D;AAC5D;AACA;AACA,4DAA4D;AAC5D;AACA;AACA;AACA,uFAAuF;AACvF;AACA;AACA,6CAA6C;AAC7C;AACA;AACA;AACA,yCAAyC;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,cAAc;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,cAAc;AACzC;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,iBAAiB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAuD;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,oBAAoB;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,iBAAiB;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB,kBAAkB;AAClB,kBAAkB;AAClB,kBAAkB;AAClB;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,oCAAoC;AACpC,yBAAyB,yCAAyC,EAAE;AACpE;AACA;AACA,mEAAmE,EAAE;AACrE,gFAAgF,EAAE;AAClF,gDAAgD,EAAE;AAClD;;AAEA,KAAK;AACL;AACA,iEAAiE,EAAE;AACnE,8EAA8E,EAAE;AAChF,8CAA8C,EAAE;AAChD;AACA;;AAEA;AACA;AACA,8DAA8D,EAAE,OAAO,EAAE;;AAEzE;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC;AACD;AACA;;AAEA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C,sBAAsB;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,yBAAyB;AACnE,gCAAgC,eAAe;AAC/C,8BAA8B,WAAW;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA,mC;;;;;;;ACr2DA,SAAS,mBAAO,CAAC,MAAc;AAC/B,eAAe,mBAAO,CAAC,MAAc;AACrC,cAAc,mBAAO,CAAC,MAAgB;;AAEtC,iBAAiB,mBAAO,CAAC,MAAgB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACZa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,eAAe;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qC;;;;;;;AChBA,eAAe,mBAAO,CAAC,MAAc;AACrC,eAAe,mBAAO,CAAC,MAAW;AAClC;AACA;AACA;AACA;AACA;;;;;;;;;ACNa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,eAAe;AAC9C;AACA;AACA;AACA,qCAAqC,MAAM,GAAG,UAAU,WAAW,UAAU;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kC;;;;;;;ACvBA,aAAa,mBAAO,CAAC,MAAW;AAChC,WAAW,mBAAO,CAAC,MAAS;AAC5B,UAAU,mBAAO,CAAC,MAAQ;AAC1B,UAAU,mBAAO,CAAC,MAAQ;AAC1B,gBAAgB,mBAAO,CAAC,MAAuB;AAC/C;AACA;;AAEA,mBAAO,CAAC,MAAS;AACjB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;AACA,CAAC;AACD;AACA,CAAC;;;;;;;;AC9BD;AACA,eAAe,mBAAO,CAAC,MAAc;AACrC,UAAU,mBAAO,CAAC,MAAe;AACjC,kBAAkB,mBAAO,CAAC,MAAkB;AAC5C,eAAe,mBAAO,CAAC,MAAe;AACtC,yBAAyB;AACzB;;AAEA;AACA;AACA;AACA,eAAe,mBAAO,CAAC,MAAe;AACtC;AACA;AACA;AACA;AACA;AACA,EAAE,mBAAO,CAAC,MAAS;AACnB,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;;;;;;;ACxCA;;;;;;;;ACAA,iBAAiB;;AAEjB;AACA;AACA;;;;;;;;;ACJa;AACb,8CAA8C,cAAc;AAC5D,wBAAwB,mBAAO,CAAC,MAAoB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iC;;;;;;;ACZA,SAAS,mBAAO,CAAC,MAAc;AAC/B,iBAAiB,mBAAO,CAAC,MAAkB;AAC3C,iBAAiB,mBAAO,CAAC,MAAgB;AACzC;AACA,CAAC;AACD;AACA;AACA;;;;;;;;;ACPa;AACb,8CAA8C,cAAc;AAC5D,kBAAkB,mBAAO,CAAC,MAAqB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA,oC;;;;;;;;AC/Ja;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qC;;;;;;;ACXA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACPa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gC;;;;;;;;ACVa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA,4C;;;;;;;ACVA,cAAc;;;;;;;;;ACAD;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oC;;;;;;;ACtDA,WAAW,mBAAO,CAAC,MAAS;AAC5B,aAAa,mBAAO,CAAC,MAAW;AAChC;AACA,kDAAkD;;AAElD;AACA,qEAAqE;AACrE,CAAC;AACD;AACA,QAAQ,mBAAO,CAAC,MAAY;AAC5B;AACA,CAAC;;;;;;;;;ACXY;AACb,8CAA8C,cAAc;AAC5D,kBAAkB,mBAAO,CAAC,MAAa;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+B;;;;;;;ACVA,aAAa,mBAAO,CAAC,MAAW;AAChC,WAAW,mBAAO,CAAC,MAAS;AAC5B,WAAW,mBAAO,CAAC,MAAS;AAC5B,eAAe,mBAAO,CAAC,MAAa;AACpC,UAAU,mBAAO,CAAC,MAAQ;AAC1B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,kFAAkF,uBAAuB;AACzG,iEAAiE;AACjE,+DAA+D;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,eAAe;AACf,eAAe;AACf,eAAe;AACf,gBAAgB;AAChB;;;;;;;;AC1CA,eAAe,mBAAO,CAAC,MAAc;AACrC,qBAAqB,mBAAO,CAAC,MAAc;AAC3C;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;;;;;;;ACRA,aAAa,mBAAO,CAAC,MAAW;AAChC,UAAU,mBAAO,CAAC,MAAQ;AAC1B;AACA;AACA;;;;;;;;ACJA;AACA,UAAU,mBAAO,CAAC,MAAQ;AAC1B;AACA;AACA;AACA;;;;;;;;;ACLa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,wC;;;;;;;;ACjBa;AACb,8CAA8C,cAAc;AAC5D,gBAAgB,mBAAO,CAAC,MAAW;AACnC;AACA,oBAAoB,mBAAO,CAAC,MAAe;AAC3C;AACA,sBAAsB,mBAAO,CAAC,MAAiB;AAC/C;AACA,sBAAsB,mBAAO,CAAC,MAAiB;AAC/C;AACA;AACA;AACA,gBAAgB,mBAAO,CAAC,MAAa;AACrC;AACA;AACA,iC;;;;;;;;ACfa;AACb,8CAA8C,cAAc;AAC5D,cAAc,mBAAO,CAAC,MAAS;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iC;;;;;;;ACVA;AACA,cAAc,mBAAO,CAAC,MAAY;AAClC,cAAc,mBAAO,CAAC,MAAY;AAClC;AACA;AACA;;;;;;;;ACLA,uBAAuB;AACvB;AACA;AACA;;;;;;;;ACHA;AACA,eAAe,mBAAO,CAAC,MAAc;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACXa;AACb,8CAA8C,cAAc;AAC5D,kBAAkB,mBAAO,CAAC,MAAa;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC,kHAAkH,EAAE;AACrJ,iCAAiC,kHAAkH,EAAE;AACrJ,gCAAgC,mEAAmE,EAAE;AACrG,+BAA+B,mEAAmE,EAAE;AACpG,2BAA2B,+BAA+B,EAAE;AAC5D,0BAA0B,+BAA+B,EAAE;AAC3D,yBAAyB,0CAA0C,EAAE;AACrE,wBAAwB,gCAAgC,EAAE;AAC1D,2BAA2B,0CAA0C,EAAE;AACvE,0BAA0B,0CAA0C,EAAE;AACtE,yBAAyB,+CAA+C,EAAE;AAC1E,wBAAwB,uCAAuC,EAAE;AACjE,yBAAyB,2CAA2C,EAAE;AACtE,wBAAwB,iCAAiC,EAAE;AAC3D,yBAAyB,6CAA6C,EAAE;AACxE,wBAAwB,mCAAmC,EAAE;AAC7D,yBAAyB,6CAA6C,EAAE;AACxE,wBAAwB,mCAAmC,EAAE;AAC7D,+BAA+B,qIAAqI,EAAE;AACtK,0CAA0C,wGAAwG,EAAE;AACpJ,0CAA0C,wGAAwG;AAClJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qC;;;;;;;ACzCA;AACA;AACA;AACA;AACA;AACA,yCAAyC;;;;;;;;ACLzC,gBAAgB,mBAAO,CAAC,MAAe;AACvC;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACNA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;;;;;;;ACNA,SAAS,mBAAO,CAAC,MAAc;AAC/B;AACA;AACA;;AAEA;AACA,kBAAkB,mBAAO,CAAC,MAAgB;AAC1C;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,CAAC;;;;;;;;ACfD,6BAA6B;AAC7B,uCAAuC;;;;;;;;ACDvC,eAAe,mBAAO,CAAC,MAAc;AACrC,qBAAqB,mBAAO,CAAC,MAAmB;AAChD,kBAAkB,mBAAO,CAAC,MAAiB;AAC3C;;AAEA,YAAY,mBAAO,CAAC,MAAgB;AACpC;AACA;AACA;AACA;AACA;AACA,GAAG,YAAY;AACf;AACA;AACA;AACA;;;;;;;;ACfA;AACA;AACA,eAAe,mBAAO,CAAC,MAAc;AACrC,eAAe,mBAAO,CAAC,MAAc;AACrC;AACA;AACA;AACA;AACA;AACA,kDAAkD;AAClD;AACA;AACA,cAAc,mBAAO,CAAC,MAAQ,iBAAiB,mBAAO,CAAC,MAAgB;AACvE;AACA;AACA,OAAO,YAAY,cAAc;AACjC;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,GAAG;AACR;AACA;;;;;;;;;ACxBa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+B;;;;;;;ACjBA;AACA,YAAY,mBAAO,CAAC,MAAyB;AAC7C,iBAAiB,mBAAO,CAAC,MAAkB;;AAE3C;AACA;AACA;;;;;;;;;ACNa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA,yC;;;;;;;;ACVa;AACb,8CAA8C,cAAc;AAC5D,cAAc,mBAAO,CAAC,MAAiB;AACvC,gBAAgB,mBAAO,CAAC,MAAmB;AAC3C,iBAAiB,mBAAO,CAAC,MAAoB;AAC7C,iBAAiB,mBAAO,CAAC,MAAoB;AAC7C,kBAAkB,mBAAO,CAAC,MAAqB;AAC/C,qBAAqB,mBAAO,CAAC,MAAwB;AACrD,aAAa,mBAAO,CAAC,MAAgB;AACrC,eAAe,mBAAO,CAAC,MAAkB;AACzC,kBAAkB,mBAAO,CAAC,MAAqB;AAC/C,cAAc,mBAAO,CAAC,MAAiB;AACvC,cAAc,mBAAO,CAAC,MAAiB;AACvC,mBAAmB,mBAAO,CAAC,MAAsB;AACjD,kBAAkB,mBAAO,CAAC,MAAqB;AAC/C,YAAY,mBAAO,CAAC,MAAe;AACnC,YAAY,mBAAO,CAAC,MAAe;AACnC,eAAe,mBAAO,CAAC,MAAkB;AACzC,YAAY,mBAAO,CAAC,MAAe;AACnC,oBAAoB,mBAAO,CAAC,MAAuB;AACnD,kBAAkB,mBAAO,CAAC,MAAqB;AAC/C,cAAc,mBAAO,CAAC,MAAiB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yC;;;;;;;AClEA;AACA,gBAAgB,mBAAO,CAAC,MAAe;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACnBa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+B;;;;;;;ACjBA;AACA,gBAAgB,mBAAO,CAAC,MAAe;AACvC;AACA;AACA,2DAA2D;AAC3D;;;;;;;;ACLA;AACA,kBAAkB,mBAAO,CAAC,MAAU;AACpC,iCAAiC,QAAQ,mBAAmB,UAAU,EAAE,EAAE;AAC1E,CAAC;;;;;;;;;ACHY;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,KAAK,oCAAoC,KAAK;AACvF;AACA,0EAA0E,cAAc,EAAE,+BAA+B,IAAI,GAAG,EAAE,eAAe,IAAI,GAAG,EAAE,aAAa,IAAI,gBAAgB,IAAI,GAAG,EAAE,gBAAgB,IAAI,GAAG,IAAI,SAAS,IAAI,gBAAgB,IAAI,GAAG,EAAE,gBAAgB,IAAI,GAAG,IAAI,SAAS,IAAI,gBAAgB,IAAI,GAAG,EAAE,gBAAgB,IAAI,GAAG,IAAI,SAAS,IAAI,aAAa,IAAI,iBAAiB,IAAI,GAAG,IAAI,SAAS,IAAI,iBAAiB,IAAI,UAAU,IAAI,uCAAuC,EAAE,gDAAgD,IAAI,GAAG,IAAI,SAAS,IAAI,aAAa,IAAI,gBAAgB,IAAI,GAAG,IAAI,SAAS,IAAI,2CAA2C,8CAA8C,EAAE,yDAAyD,aAAa,EAAE,0CAA0C,eAAe,EAAE,mCAAmC,eAAe,EAAE,gCAAgC,eAAe,EAAE,gCAAgC,eAAe,EAAE,gCAAgC,eAAe,EAAE,mCAAmC,iBAAiB,EAAE,iCAAiC,iBAAiB,EAAE;AACpoC;AACA,8EAA8E,cAAc,EAAE,+BAA+B,IAAI,GAAG,EAAE,eAAe,IAAI,GAAG,EAAE,aAAa,IAAI,gBAAgB,IAAI,GAAG,EAAE,gBAAgB,IAAI,GAAG,IAAI,SAAS,IAAI,gBAAgB,IAAI,GAAG,EAAE,gBAAgB,IAAI,GAAG,IAAI,SAAS,IAAI,gBAAgB,IAAI,GAAG,EAAE,gBAAgB,IAAI,GAAG,IAAI,SAAS,IAAI,aAAa,IAAI,iBAAiB,IAAI,GAAG,IAAI,SAAS,IAAI,iBAAiB,IAAI,UAAU,IAAI,uCAAuC,EAAE,gDAAgD,IAAI,GAAG,IAAI,SAAS,IAAI,aAAa,IAAI,gBAAgB,IAAI,GAAG,IAAI,SAAS,IAAI,2CAA2C,8CAA8C,EAAE,0DAA0D,aAAa,EAAE,2CAA2C,eAAe,EAAE,oCAAoC,eAAe,EAAE,iCAAiC,eAAe,EAAE,iCAAiC,eAAe,EAAE,iCAAiC,eAAe,EAAE,qCAAqC,iBAAiB,EAAE,kCAAkC,iBAAiB,EAAE;AACjpC;AACA;AACA,kDAAkD,EAAE,YAAY,EAAE,IAAI,MAAM,gCAAgC,EAAE,iBAAiB,IAAI,gCAAgC,EAAE,iBAAiB,IAAI,SAAS;AACnM;AACA;AACA;AACA;AACA;AACA,gFAAgF,IAAI,EAAE,EAAE,eAAe,IAAI,EAAE,EAAE,oBAAoB,IAAI,EAAE,EAAE,oBAAoB,IAAI,EAAE,EAAE,sCAAsC,IAAI,EAAE,EAAE,gDAAgD,IAAI,oBAAoB,EAAE,uDAAuD,KAAK,IAAI,KAAK,gBAAgB,KAAK,IAAI,KAAK,qBAAqB,KAAK,IAAI,KAAK,gBAAgB,KAAK,IAAI,KAAK,sBAAsB,KAAK,IAAI,KAAK,EAAE,GAAG,UAAU,IAAI;AAC1f;AACA,6jBAA6jB,IAAI,EAAE,EAAE,kBAAkB,IAAI,EAAE,EAAE,uBAAuB,IAAI,EAAE,EAAE,uBAAuB,IAAI,EAAE,EAAE,2CAA2C,IAAI,EAAE,EAAE,+DAA+D,IAAI,uBAAuB,EAAE,ooBAAooB,GAAG,aAAa,IAAI;AACp8C,uCAAuC,EAAE,aAAa,EAAE,GAAG,EAAE,SAAS,GAAG;AACzE;AACA,mEAAmE,eAAe,EAAE;AACpF;AACA;AACA,+CAA+C,EAAE,0BAA0B,KAAK,oCAAoC,KAAK;AACzH;AACA,uCAAuC,EAAE,+BAA+B,EAAE;AAC1E;AACA;AACA;AACA,sDAAsD,EAAE;AACxD;AACA;AACA,qCAAqC,IAAI,GAAG,EAAE,YAAY,IAAI,oBAAoB,IAAI,GAAG,EAAE,aAAa,IAAI,iFAAiF,EAAE,qBAAqB,IAAI,GAAG,EAAE,mBAAmB,IAAI,EAAE,IAAI,mFAAmF,EAAE,qBAAqB,IAAI,GAAG,EAAE,mBAAmB,IAAI,EAAE,IAAI,kBAAkB,IAAI,mFAAmF,EAAE,sBAAsB,IAAI,GAAG,EAAE,mBAAmB,IAAI,EAAE,IAAI,kBAAkB,IAAI,EAAE,IAAI,iFAAiF,EAAE,sBAAsB,IAAI,GAAG,EAAE,mBAAmB,IAAI,EAAE,IAAI,kBAAkB,IAAI,EAAE,IAAI,iFAAiF,EAAE,sBAAsB,IAAI,GAAG,EAAE,mBAAmB,IAAI,EAAE,IAAI,kBAAkB,IAAI,EAAE,IAAI,iFAAiF,EAAE,8BAA8B,IAAI,EAAE,IAAI,kBAAkB,IAAI,EAAE,IAAI,iFAAiF,EAAE;AAC7oC,6BAA6B,EAAE,OAAO,EAAE;AACxC;AACA;AACA;AACA;AACA,yBAAyB,EAAE,UAAU,EAAE,eAAe,EAAE,gBAAgB,EAAE,UAAU,GAAG;AACvF,KAAK;AACL,iCAAiC,iEAAiE,EAAE;AACpG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,yBAAyB,uDAAuD,EAAE;AAClF;AACA;AACA;AACA;AACA,KAAK;AACL,8BAA8B,yEAAyE,EAAE;AACzG,yBAAyB,sGAAsG,EAAE;AACjI,yBAAyB,+CAA+C,EAAE;AAC1E,0BAA0B,gDAAgD,EAAE;AAC5E,0BAA0B,gDAAgD,EAAE;AAC5E,0BAA0B,gDAAgD,EAAE;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,OAAO;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,2BAA2B,QAAQ;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,2BAA2B,wFAAwF,EAAE;AACrH;AACA;AACA;AACA;AACA;AACA,2BAA2B,OAAO;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,QAAQ;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,QAAQ;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,yBAAyB;AACvD;AACA;AACA;AACA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,2BAA2B,iDAAiD,EAAE;AAC9E,0BAA0B,gDAAgD,EAAE;AAC5E,6BAA6B,mDAAmD;AAChF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,aAAa;AAChD;AACA;AACA;AACA;AACA,2C;;;;;;;;ACtUa;AACb,8CAA8C,cAAc;AAC5D,gBAAgB,mBAAO,CAAC,MAAW;AACnC,sBAAsB,mBAAO,CAAC,MAAiB;AAC/C,eAAe,mBAAO,CAAC,MAAkB;AACzC,eAAe,mBAAO,CAAC,MAAkB;AACzC,WAAW,SAAS;AACpB;AACA;AACA,WAAW,uBAAuB;AAClC;AACA;AACA;AACA;AACA,2BAA2B,SAAS;AACpC,4BAA4B,SAAS;AACrC,8CAA8C,SAAS;AACvD,+CAA+C,SAAS;AACxD,4CAA4C,YAAY;AACxD,qDAAqD,WAAW;AAChE,qDAAqD,WAAW;AAChE,kDAAkD,UAAU;AAC5D,+CAA+C,UAAU;AACzD;AACA;AACA;AACA;AACA,gBAAgB,EAAE,SAAS,EAAE;AAC7B,gBAAgB,EAAE,SAAS,EAAE;AAC7B,yBAAyB,EAAE,kBAAkB,EAAE;AAC/C,yBAAyB,EAAE,kBAAkB,EAAE;AAC/C,mBAAmB,EAAE,YAAY,EAAE;AACnC,kBAAkB,EAAE,WAAW,EAAE;AACjC,kBAAkB,EAAE,WAAW,EAAE;AACjC,iBAAiB,EAAE,UAAU,EAAE;AAC/B,gBAAgB,EAAE,SAAS,EAAE;AAC7B,eAAe,EAAE,QAAQ,EAAE;AAC3B,aAAa,EAAE,MAAM,EAAE;AACvB,cAAc,EAAE,OAAO,EAAE;AACzB,cAAc,EAAE,OAAO,EAAE;AACzB;AACA;AACA;AACA;AACA,6BAA6B,gBAAgB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C,EAAE,OAAO;AACxD,oEAAoE,yDAAyD,EAAE;AAC/H;AACA;AACA;AACA;AACA,iBAAiB,WAAW;AAC5B,4DAA4D,2DAA2D,EAAE;AACzH;;AAEA;AACA,kBAAkB,EAAE,OAAO,EAAE;AAC7B,kBAAkB,EAAE,SAAS,EAAE;AAC/B,kBAAkB,EAAE,SAAS,EAAE;AAC/B,kBAAkB,EAAE,kBAAkB,EAAE;AACxC,kBAAkB,EAAE,kBAAkB,EAAE;AACxC,kBAAkB,EAAE,YAAY,EAAE;AAClC,kBAAkB,EAAE,WAAW,EAAE;AACjC,kBAAkB,EAAE,WAAW,EAAE;AACjC,kBAAkB,EAAE,UAAU,EAAE;AAChC,kBAAkB,EAAE,UAAU,EAAE;AAChC,kBAAkB,EAAE,SAAS,EAAE;;AAE/B,0BAA0B,EAAE,OAAO,EAAE;;AAErC;AACA;AACA;AACA;AACA;AACA,kCAAkC,EAAE,OAAO,EAAE;;AAE7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC,qBAAqB;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD,gBAAgB;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,yCAAyC,cAAc,UAAU,GAAG,IAAI;AACxE,SAAS;AACT,gDAAgD,UAAU,GAAG,GAAG;AAChE;AACA,OAAO;AACP,uBAAuB,eAAe;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,sBAAsB,GAAG,YAAY,IAAI,EAAE;AAC3C;AACA,+CAA+C,EAAE,IAAI;;AAErD;AACA,yCAAyC,cAAc,EAAE,EAAE,gBAAgB;AAC3E,SAAS;AACT,gDAAgD,EAAE,EAAE,eAAe;AACnE;AACA;AACA;AACA,gCAAgC,EAAE,IAAI;AACtC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA,2CAA2C,SAAS,GAAG,SAAS;AAChE;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD,qBAAqB;AAC1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC,aAAa;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,EAQV;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kEAAkE,yBAAyB,UAAU,EAAE,KAAK;AAC5G;AACA;AACA;AACA;AACA;AACA,+BAA+B,EAUV;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB;AACxB;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;;AAErB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uEAAuE,IAAI;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qEAAqE,gBAAgB;AACrF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD;AACpD;AACA,0DAA0D,aAAa;AACvE;AACA,8CAA8C,2BAA2B;AACzE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,KAAsC,EAAE,EAE3C;AACzC;AACA;AACA;AACA,2DAA2D,OAAO,MAAM,SAAS,GAAG,QAAQ;AAC5F;AACA;AACA,wCAAwC,KAAsC,EAAE,EAG3C;AACrC;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD;AACpD;AACA,0DAA0D,aAAa;AACvE;AACA,8CAA8C,2BAA2B;AACzE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,KAAsC,EAAE,EAG3C;AACzC;AACA;AACA,4CAA4C,KAAsC,EAAE,EAE3C;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oEAAoE,mCAAmC;AACvG,6CAA6C;AAC7C;AACA,oEAAoE,gCAAgC;AACpG,6CAA6C;AAC7C;AACA,oEAAoE,kCAAkC;AACtG,6CAA6C;AAC7C;AACA,oEAAoE,kCAAkC;AACtG;AACA,yCAAyC;AACzC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC,2BAA2B;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,eAAe;AAC1D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD;;;AAGrD,iDAAiD;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD,aAAa;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,yCAAyC,mBAAmB;AAC5D;AACA;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,yCAAyC,mBAAmB;AAC5D;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC,qBAAqB;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC,qBAAqB;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC,sBAAsB;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C,WAAW;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC,WAAW;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,KAAsC,EAAE,EAE3C;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD,KAAsC,EAAE,EAE3C;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,WAAW;AACtD;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,KAAsC,EAAE,EAE3C;AACzB;AACA;AACA;AACA;AACA;AACA,+CAA+C,uBAAuB;AACtE;AACA;AACA;AACA,4CAA4C,KAAsC,EAAE,EAE3C;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAmD,OAAO;AAC1D;AACA;AACA;AACA;AACA,kEAAkE,EAAE;AACpE;AACA;AACA,4DAA4D;AAC5D;AACA,2CAA2C,EAIV;AACjC;AACA;AACA;AACA;AACA,mDAAmD,wBAAwB;AAC3E;AACA;AACA;AACA;AACA,4BAA4B,KAAsC,EAAE,EAE3C;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,KAAsC,EAAE,EAE3C;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,KAAsC,EAAE,EAE3C;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,KAAsC,EAAE,EAE3C;AACzB;AACA,2EAA2E,mEAAmE,EAAE;AAChJ;AACA;AACA;AACA,4BAA4B,KAAsC,EAAE,EAG3C;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA,wCAAwC,KAAsC,EAAE,EAE3C;AACrC;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,KAAsC,EAAE,EAE3C;AACjC;AACA;AACA,6DAA6D,uIAAuI,EAAE;AACtM;AACA;AACA;AACA,mDAAmD,SAAS;AAC5D;AACA;AACA,oCAAoC,KAAsC,EAAE,EAE3C;AACjC;AACA;AACA;AACA,oCAAoC,KAAsC,EAAE,EAE3C;AACjC;AACA,mDAAmD,SAAS;AAC5D;AACA;AACA,oCAAoC,KAAsC,EAAE,EAE3C;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD,eAAe;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC;AACpC,8BAA8B,wBAAwB;AACtD;AACA,8DAA8D,iBAAiB,cAAc;AAC7F,8BAA8B;AAC9B,0CAA0C;AAC1C,4CAA4C,OAAO;AACnD,+BAA+B;AAC/B,8DAA8D,SAAS,WAAW;AAClF,yCAAyC;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,KAAsC,EAAE,YAW3C;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,KAAsC,EAAE,YAS3C;AACzC;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA,gCAAgC,KAAsC,EAAE,YAS3C;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C,mBAAmB;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C,mBAAmB;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA,oBAAoB;AACpB;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oEAAoE,kCAAkC,EAAE;AACxG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA,iBAAiB;;AAEjB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;;;AAGA,aAAa;AACb;AACA;AACA;AACA;AACA,uBAAuB;AACvB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA,+BAA+B;AAC/B,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA,yC;;;;;;;AC/jFA,cAAc,mBAAO,CAAC,MAAW;AACjC,cAAc,mBAAO,CAAC,MAAY;AAClC,YAAY,mBAAO,CAAC,MAAU;AAC9B,aAAa,mBAAO,CAAC,MAAc;AACnC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;AC7Ba;AACb,8CAA8C,cAAc;AAC5D,iBAAiB,mBAAO,CAAC,MAAa;AACtC;AACA;AACA;AACA;AACA;AACA,oC;;;;;;;;ACRa;AACb,8CAA8C,cAAc;AAC5D,kBAAkB,mBAAO,CAAC,MAAa;AACvC,kBAAkB,mBAAO,CAAC,MAAa;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mC;;;;;;;ACvDA;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;AACA,gBAAgB,mBAAO,CAAC,MAAe;AACvC,eAAe,mBAAO,CAAC,MAAc;AACrC,sBAAsB,mBAAO,CAAC,MAAsB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,YAAY,eAAe;AAChC;AACA,KAAK;AACL;AACA;;;;;;;;;ACtBa;AACb,aAAa,mBAAO,CAAC,MAAW;AAChC,UAAU,mBAAO,CAAC,MAAQ;AAC1B,UAAU,mBAAO,CAAC,MAAQ;AAC1B,wBAAwB,mBAAO,CAAC,MAAwB;AACxD,kBAAkB,mBAAO,CAAC,MAAiB;AAC3C,YAAY,mBAAO,CAAC,MAAU;AAC9B,WAAW,mBAAO,CAAC,MAAgB;AACnC,WAAW,mBAAO,CAAC,MAAgB;AACnC,SAAS,mBAAO,CAAC,MAAc;AAC/B,YAAY,mBAAO,CAAC,MAAgB;AACpC;AACA;AACA;AACA;AACA;AACA,qBAAqB,mBAAO,CAAC,MAAkB;AAC/C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD;AACpD,KAAK;AACL;AACA,oCAAoC,cAAc,OAAO;AACzD,qCAAqC,cAAc,OAAO;AAC1D;AACA;AACA,oEAAoE,OAAO;AAC3E;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,0BAA0B,EAAE;AACtE;AACA;AACA,kBAAkB,mBAAO,CAAC,MAAgB;AAC1C;AACA;AACA;AACA;AACA;AACA,2BAA2B,iBAAiB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA,EAAE,mBAAO,CAAC,MAAa;AACvB;;;;;;;;ACpEA,kBAAkB,mBAAO,CAAC,MAAgB,MAAM,mBAAO,CAAC,MAAU;AAClE,+BAA+B,mBAAO,CAAC,MAAe,gBAAgB,mBAAmB,UAAU,EAAE,EAAE;AACvG,CAAC;;;;;;;;ACFD;AACA;AACA;AACA;AACA;;;;;;;;ACJA,eAAe,mBAAO,CAAC,MAAc;AACrC;AACA;AACA;AACA;;;;;;;;ACJA,UAAU,mBAAO,CAAC,MAAQ;AAC1B,gBAAgB,mBAAO,CAAC,MAAe;AACvC,mBAAmB,mBAAO,CAAC,MAAmB;AAC9C,eAAe,mBAAO,CAAC,MAAe;;AAEtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AChBA;AACA;AACA;;;;;;;;;ACFa;AACb,8CAA8C,cAAc;AAC5D,kBAAkB,mBAAO,CAAC,MAAa;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iC;;;;;;;ACZA;AACA;AACA;AACA;;;;;;;;;ACHa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yFAAyF;AACzF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,iBAAiB;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,qBAAqB;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qC;;;;;;;ACxFA;AACA;AACA;AACA;;;;;;;;;ACHa;AACb,8CAA8C,cAAc;AAC5D,sBAAsB,mBAAO,CAAC,MAAiB;AAC/C,gBAAgB,mBAAO,CAAC,MAAW;AACnC;AACA,uBAAuB,EAAE;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,KAAsC,EAAE,EAE3C;AACb,6CAA6C;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,KAAsC,EAAE,EAE3C;AACb;AACA;AACA,gBAAgB,KAAsC,EAAE,EAE3C;AACb,8BAA8B,SAAS;AACvC;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,KAAsC,EAAE,EAE3C;AACrB;AACA,wBAAwB,KAAsC,EAAE,EAK3C;AACrB;AACA;AACA;AACA;AACA,oBAAoB,KAAsC,EAAE,EAE3C;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,KAAsC,EAAE,EAE3C;AACjB;AACA;AACA;AACA;AACA;AACA,gBAAgB,KAAsC,EAAE,EAE3C;AACb;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,uC;;;;;;;;ACrHa;AACb,8CAA8C,cAAc;AAC5D,kBAAkB,mBAAO,CAAC,MAAa;AACvC,kBAAkB,mBAAO,CAAC,MAAa;AACvC,iBAAiB,mBAAO,CAAC,MAAY;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,4CAA4C;AAChF;AACA;AACA,oCAAoC,4CAA4C;AAChF;AACA;AACA,oCAAoC,6CAA6C;AACjF;AACA;AACA,oCAAoC,wBAAwB;AAC5D;AACA;AACA,oCAAoC,kCAAkC;AACtE;AACA;AACA,oCAAoC,kCAAkC;AACtE;AACA;AACA,oCAAoC,mCAAmC;AACvE;AACA;AACA,oCAAoC,2BAA2B;AAC/D;AACA;AACA,oCAAoC,4CAA4C;AAChF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sC;;;;;;;;ACnEa;AACb,8CAA8C,cAAc;AAC5D,iBAAiB,mBAAO,CAAC,MAAY;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qC;;;;;;;;ACnBa;AACb,8CAA8C,cAAc;AAC5D,eAAe,mBAAO,CAAC,MAAU;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,eAAe;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kC;;;;;;;;AClCa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA,uC;;;;;;;ACNA;;AAEA;;AAEA;AACA;AACA,wDAAwD;;AAExD;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,mBAAmB;AAChC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,CAAC;;;;;;;;ACnCD,iBAAiB,mBAAO,CAAC,MAAW;;;;;;;;ACApC,eAAe,mBAAO,CAAC,MAAW;AAClC;;;;;;;;;;;;ACDA;;AAEA;AACA,MAAM,IAAuC;AAC7C,IAAI,mBAAO,CAAC,MAAyB;AACrC;;AAEA;AACA;AACA,IAAI,qBAAuB;AAC3B;AACA;;AAEA;AACe,sDAAI;;;;;;ACdnB,0BAA0B,aAAa,0BAA0B,wBAAwB;AACzF;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACkBA;AACA;AACA,mBADA;AAEA,qBAFA;AAGA,oBAHA;AAIA,iBAJA;AAKA;AALA,GADA;AAQA,MARA,kBAQA;AACA;AACA,GAVA;AAWA;AACA,aADA,uBACA;AACA;AACA,KAHA;AAIA,YAJA,sBAIA;AACA;AACA;AANA;AAXA,G;;ACnBqU,CAAgB,sHAAG,EAAC,C;;ACAzV;;AAEA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,qBAAqB;AACrB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AC5F0F;AAC3B;AACL;AAC1D;;;AAGA;;AAEA;AAC0F;AAC1F,gBAAgB,kBAAU;AAC1B,EAAE,8CAAM;AACR,EAAE,MAAM;AACR,EAAE,eAAe;AACjB;AACA;AACA;AACA;;AAEA;;AAEe,iE;;;ACrBf;AAGO,IAAMA,UAAU,GAAG;AACtBC,aAAW,EAAXA,WAAWA;AADW,CAAnB;AAIA,SAASC,yBAAT,CAAmCC,GAAnC,EAAwC;AAC7C,OAAK,IAAIC,IAAT,IAAiBJ,UAAjB,EAA6B;AAC3B;AACAG,OAAG,CAACE,SAAJ,CAAcD,IAAd,EAAoBJ,UAAU,CAACI,IAAD,CAA9B;AACD;AACF;AAGcJ,gEAAf,E;;ACfO,IAAMM,OAAO,GAAG,EAAhB;AAEA,SAASC,eAAT,CAAyBJ,GAAzB,EAA8B;AACjC,OAAK,IAAIC,IAAT,IAAiBE,OAAjB,EAA0B;AACxB;AACAH,OAAG,CAACK,MAAJ,CAAWJ,IAAX,EAAiBE,OAAO,CAACF,IAAD,CAAxB;AAED;AACJ;AAEcE,uDAAf,E;;;;;ACVA;AACA;AACA,IAAIN,uBAAU,GAAG,IAAjB;;AAEA,IAAK,OAAOS,MAAP,KAAkB,WAAnB,IAAoCA,MAAM,CAACN,GAA/C,EAAqD;AACnD;AACAH,yBAAU,GAAG,IAAb;AAED,CAJD,MAIO;AACLA,yBAAU,GAAGU,iBAAb;AACD,C,CAID;AACA;;;AAEe;AACbC,QAAM,EAAE,CAACC,kBAAD,CADK;AAEbZ,YAAU,EAAEA,uBAFC;AAGba,OAAK,EAAE,CAAC,WAAD,EAAc,UAAd,CAHM;AAIbC,MAJa,kBAIN;AACL,QAAIA,IAAI,GAAG,EAAX;AACA,WAAO;AACLC,WAAK,EAAE,KAAKC,MAAL,CAAYC;AADd,KAAP;AAGD,GATY;AAWbC,cAXa,0BAWE;AACb,QAAML,KAAK,GAAG,KAAKM,QAAL,CAAcC,SAA5B;;AAEA,QAAIP,KAAK,CAACQ,QAAV,EAAoB;AAClB,WAAKF,QAAL,CAAcE,QAAd,GAAyBR,KAAK,CAACQ,QAA/B;AACA,aAAOR,KAAK,CAACQ,QAAb;AACD;AACF,GAlBY;AAmBbC,SAnBa,qBAmBH;AACRC,WAAO,CAACC,GAAR,CAAY,sBAAZ;AAED,GAtBY;AAuBbC,SAvBa,qBAuBH;AACR,QAAG,OAAOhB,MAAP,KAAkB,WAArB,EAAiC;AAE/BA,YAAM,CAACiB,EAAP,GAAY,IAAZ;AACD;AACF;AA5BY,CAAf,E;;ACjBA;AACA;AACA;AAEA;AAEO,IAAMC,0BAAY,GAAGC,YAArB;AACA,IAAMlB,+BAAiB,GAAGmB,iBAA1B;AACA,IAAMvB,qBAAO,GAAGwB,WAAhB;AACA,IAAMC,aAAa,GAAGC,oBAAtB;AAIQtB,iFAAf,E;;ACbA;AAAA;AAAA;AAAA;AAAwB;AACA;AACT,4FAAG;AACI;;;;;;;;ACHtB;AACA","file":"server.umd.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"server\"] = factory();\n\telse\n\t\troot[\"server\"] = factory();\n})((typeof self !== 'undefined' ? self : this), function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"fb15\");\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar fdatetime_1 = require(\"./fdatetime\");\n/**\n * formatuje czas do formatu HH:mm:ss\n * @param dt data typu Date\n */\nfunction ftime(dt) {\n return fdatetime_1.formatDateFunction['HH:mm:ss'](dt);\n // return padNumber(dt.getHours()) + ':' + padNumber(dt.getMinutes()) + ':' + padNumber(dt.getSeconds());\n}\nexports.default = ftime;\n//# sourceMappingURL=ftime.js.map","// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n","var pIE = require('./_object-pie');\nvar createDesc = require('./_property-desc');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar has = require('./_has');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nexports.f = require('./_descriptors') ? gOPD : function getOwnPropertyDescriptor(O, P) {\n O = toIObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return gOPD(O, P);\n } catch (e) { /* empty */ }\n if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);\n};\n","\"use strict\";\n// import { object } from '@storybook/addon-knobs';\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// import {func} from 'prop-types';\nvar formatFunctions_1 = require(\"./formatFunctions\");\nvar schemaMethods_1 = require(\"./schemaMethods\");\nvar ValidationResult_1 = require(\"./ValidationResult\");\nvar CompareResult_1 = require(\"./CompareResult\");\nvar generateGuid_1 = require(\"./methods/generateGuid\");\nfunction recursiveDeepCopy(o) {\n var newO;\n var i;\n if (typeof o !== 'object') {\n return o;\n }\n if (!o) {\n return o;\n }\n if ('[object Array]' === Object.prototype.toString.apply(o)) {\n newO = [];\n for (i = 0; i < o.length; i += 1) {\n newO[i] = recursiveDeepCopy(o[i]);\n }\n return newO;\n }\n newO = {};\n for (i in o) {\n if (o.hasOwnProperty(i)) {\n newO[i] = recursiveDeepCopy(o[i]);\n }\n }\n return newO;\n}\nfunction _mergeProps(dst, src) {\n // let result = Object.assign({},dst);\n for (var key in src) {\n if (src.hasOwnProperty(key)) {\n var element = src[key];\n var dstelem = dst[key];\n if (dstelem !== undefined) {\n if (element === undefined || element === null) {\n // if (element === undefined || (typeof dstelem === 'object' && element === null)) {\n delete dst[key];\n }\n else {\n if (element !== null && typeof element === 'object') {\n _mergeProps(dst[key], element);\n }\n else {\n dst[key] = recursiveDeepCopy(element);\n }\n }\n }\n else {\n dst[key] = recursiveDeepCopy(element);\n }\n }\n }\n}\nfunction jsonMerge(jsonlist) {\n // const result = Object.assign({}, jsonlist[0]);\n var result = recursiveDeepCopy(jsonlist[0]);\n for (var i = 1; i < jsonlist.length; i++) {\n _mergeProps(result, jsonlist[i]);\n }\n return result;\n}\nexports.jsonMerge = jsonMerge;\n/**\n * Domyślna wartośc na podstawie pól default ze schematu\n * @param schema schemat\n * @param force czy wymusić domyślne wartości dla kazdego pola:\n * * liczba: `0`\n * * boolean: `false`\n * * string: `\"\"`\n *\n */\nfunction defaultValue(schema, force) {\n if (force === void 0) { force = false; }\n var result = null;\n if (schema.type === 'object') {\n if (schema.default !== undefined) {\n if (schema.default === null) {\n return null;\n }\n else {\n return Object.assign({}, schema.default);\n }\n }\n result = {};\n var isEmpty = true;\n if (schema.properties) {\n for (var key in schema.properties) {\n if (schema.properties.hasOwnProperty(key)) {\n var element = schema.properties[key];\n var value = defaultValue(element, force);\n if (value !== undefined) {\n result[key] = value;\n isEmpty = false;\n }\n }\n }\n }\n if (!isEmpty || schema.$parent === undefined || force) {\n return result;\n }\n }\n else if (schema.type === 'array') {\n var minLength = 0;\n // let minLength = schema.minItems\n if (schema.default !== undefined) {\n if (typeof schema.default === 'number') {\n minLength = schema.default;\n }\n else {\n return Array.from(schema.default);\n }\n }\n if ((schema.length !== undefined) && (typeof schema.length === 'number')) {\n minLength = schema.length;\n }\n result = [];\n var isEmpty = true;\n if (schema.items) {\n if (minLength) {\n for (var i = 0; i < minLength; i++) {\n var value = defaultValue(schema.items, force);\n result.push(value);\n isEmpty = false;\n }\n }\n else {\n /*\n const value = defaultValue(schema.items, force);\n if (value !== undefined) {\n result.push(value);\n isEmpty = false;\n }\n */\n }\n }\n // if (!isEmpty) return result;\n if (!isEmpty || schema.$parent === undefined || force) {\n return result;\n }\n }\n if (schema.default !== undefined) {\n return schema.default;\n }\n if (force) {\n switch (schema.type) {\n case 'number':\n case 'money':\n case 'integer':\n return null;\n case 'boolean':\n return false;\n case 'string':\n switch (schema.format) {\n case 'guid':\n return generateGuid_1.default();\n default:\n return '';\n }\n }\n }\n // return result;\n}\nexports.defaultValue = defaultValue;\nfunction validateTable(schema, data, path, exitOnFirstError) {\n if (path === void 0) { path = ''; }\n if (exitOnFirstError === void 0) { exitOnFirstError = true; }\n var result = [];\n if (schema.minLength !== undefined) {\n if (data.length < schema.minLength) {\n var err = {\n validation: 'minLength',\n expected: schema.minLength,\n value: data.length,\n path: path\n };\n if (exitOnFirstError) {\n return err;\n }\n result.push(err);\n }\n }\n if (schema.maxLength !== undefined) {\n if (data.length > schema.maxLength) {\n var err = {\n validation: 'maxLength',\n expected: schema.maxLength,\n value: data.length,\n path: path\n };\n if (exitOnFirstError) {\n return err;\n }\n result.push(err);\n }\n }\n return exitOnFirstError ? null : result;\n}\nexports.validateTable = validateTable;\nfunction validateField(schema, data, path, exitOnFirstError) {\n if (path === void 0) { path = ''; }\n if (exitOnFirstError === void 0) { exitOnFirstError = true; }\n var schemaIsNumber = false;\n var dataIsNumber = false;\n var result = [];\n // console.log(JSON.stringify(schema));\n if (schema.type === 'number' || schema.type === 'money') {\n schemaIsNumber = true;\n if (typeof data !== 'number') {\n // result.valid = false;\n var err = {\n validation: 'type',\n expected: schema.type,\n value: typeof data,\n path: path\n };\n if (exitOnFirstError) {\n return err;\n }\n result.push(err);\n }\n else {\n dataIsNumber = true;\n }\n }\n else if (schema.type === 'int' || schema.type === 'integer') {\n schemaIsNumber = true;\n if (typeof data !== 'number') {\n // result.valid = false;\n var err = {\n validation: 'type',\n expected: schema.type,\n value: typeof data,\n path: path\n };\n if (exitOnFirstError) {\n return err;\n }\n result.push(err);\n }\n else {\n if (data % 1 !== 0) {\n // result.valid = false;\n var err = {\n validation: 'type',\n expected: schema.type,\n value: 'float',\n path: path\n };\n if (exitOnFirstError) {\n return err;\n }\n result.push(err);\n }\n else {\n dataIsNumber = true;\n }\n }\n }\n if (schemaIsNumber) {\n if (dataIsNumber) {\n if (schema.maximum !== undefined) {\n if (data > schema.maximum) {\n var err = {\n validation: 'maximum',\n expected: schema.maximum,\n value: data,\n path: path\n };\n if (exitOnFirstError) {\n return err;\n }\n result.push(err);\n }\n }\n if (schema.exclusiveMaximum !== undefined) {\n if (data >= schema.exclusiveMaximum) {\n var err = {\n validation: 'exclusiveMaximum',\n expected: schema.maximum,\n value: data,\n path: path\n };\n if (exitOnFirstError) {\n return err;\n }\n result.push(err);\n }\n }\n if (schema.minimum !== undefined) {\n if (data < schema.minimum) {\n var err = {\n validation: 'minimum',\n expected: schema.minimum,\n value: data,\n path: path\n };\n if (exitOnFirstError) {\n return err;\n }\n result.push(err);\n }\n }\n if (schema.exclusiveMinimum !== undefined) {\n if (data <= schema.exclusiveMinimum) {\n var err = {\n validation: 'exclusiveMinimum',\n expected: schema.minimum,\n value: data,\n path: path\n };\n if (exitOnFirstError) {\n return err;\n }\n result.push(err);\n }\n }\n // multipleOf\n if (schema.multipleOf !== undefined) {\n if (data % schema.multipleOf !== 0) {\n var err = {\n validation: 'multipleOf',\n expected: schema.multipleOf,\n value: data,\n path: path\n };\n if (exitOnFirstError) {\n return err;\n }\n result.push(err);\n }\n }\n }\n }\n else {\n if (schema.type === 'string') {\n if (typeof data !== 'string') {\n var err = {\n validation: 'type',\n expected: schema.type,\n value: typeof data,\n path: path\n };\n if (exitOnFirstError) {\n return err;\n }\n result.push(err);\n }\n else {\n if (schema.maxLength !== undefined) {\n var l = data.length;\n if (l > schema.maxLength) {\n var err = {\n validation: 'maxLength',\n expected: schema.maxLength,\n value: l,\n path: path\n };\n if (exitOnFirstError) {\n return err;\n }\n result.push(err);\n }\n }\n if (schema.minLength !== undefined) {\n var l = data.length;\n if (l < schema.minLength) {\n var err = {\n validation: 'minLength',\n expected: schema.minLength,\n value: l,\n path: path\n };\n if (exitOnFirstError) {\n return err;\n }\n result.push(err);\n }\n }\n // pattern\n if (schema.format !== undefined && data) {\n var ok = formatFunctions_1.checkFormat(schema.format, data);\n if (!ok) {\n var err = {\n validation: 'format',\n expected: schema.format,\n value: data,\n path: path\n };\n if (exitOnFirstError) {\n return err;\n }\n result.push(err);\n }\n }\n }\n }\n }\n return exitOnFirstError ? null : result;\n}\nexports.validateField = validateField;\nfunction _validate(schema, data, path, exitOnFirstError, result) {\n if (schema.type === 'object') {\n var required = schema.required || [];\n if (schema.properties) {\n for (var key in schema.properties) {\n // for (let key of schema.$keys) {\n if (schema.properties.hasOwnProperty(key)) {\n var element = schema.properties[key];\n var value = data[key];\n if (required.indexOf(key) > -1) {\n if (value === undefined\n || (element.type === 'string' && !value)\n || (element.type === 'integer' && !value)) {\n // result.valid = false;\n result.errors.push({\n validation: 'required',\n path: path === '' ? key : path + '.' + key\n });\n if (exitOnFirstError) {\n continue;\n }\n }\n }\n if (value !== undefined) {\n _validate(element, value, path === '' ? key : path + '.' + key, exitOnFirstError, result);\n }\n }\n }\n }\n }\n else if (schema.type === 'array') {\n if (exitOnFirstError) {\n var err = validateTable(schema, data, path, true);\n if (err) {\n result.errors.push(err);\n }\n }\n else {\n var errs = validateTable(schema, data, path, false);\n if (errs.length) {\n result.errors = result.errors.concat(errs);\n }\n }\n // uniqueItems\n // contains\n var items = schema.items;\n if (items) {\n for (var i = 0; i < data.length; i++) {\n var res = _validate(items, data[i], path + '[' + i + ']', exitOnFirstError, result);\n }\n }\n }\n else {\n if (exitOnFirstError) {\n var err = validateField(schema, data, path, true);\n if (err) {\n result.errors.push(err);\n }\n }\n else {\n var errs = validateField(schema, data, path, false);\n if (errs.length > 0) {\n result.errors = result.errors.concat(errs);\n }\n }\n }\n}\n/**\n * Sprawdza poprawnoc danych według schematu i zawartej w nim walidacji\n * @param data dane do sprawdzenia\n * @param schema gałąź schamtu, gdy pominięto to uzywa glownej\n * @param path sciezka startowa pola, przy pominięciu ustawia pustą\n */\nfunction validate(schema, data, exitOnFirstError, path) {\n if (exitOnFirstError === void 0) { exitOnFirstError = true; }\n if (path === void 0) { path = ''; }\n var result = new ValidationResult_1.default();\n _validate(schema, data, path || '', exitOnFirstError, result);\n if (result.errors.length) {\n result.valid = false;\n }\n return result;\n}\nexports.validate = validate;\nfunction checkType(schema, value) {\n if (value === null) {\n return true;\n }\n switch (schema.type) {\n case 'object':\n return typeof value === 'object';\n case 'array':\n return Array.isArray(value);\n case 'integer':\n case 'number':\n case 'money':\n if (typeof value !== 'number') {\n return false;\n }\n else if (schema.type === 'integer' && value % 1 !== 0) {\n return false;\n }\n else {\n return true;\n }\n case 'string':\n return typeof value === 'string';\n case 'boolean':\n return typeof value === 'boolean';\n default:\n return false;\n }\n}\nexports.checkType = checkType;\nfunction _setDataValue(schema, parent, key, value, Vue) {\n if (checkType(schema, value)) {\n if (Vue) {\n Vue.set(parent, key, value);\n }\n else {\n parent[key] = value;\n }\n return true;\n }\n return false;\n}\nfunction _setDataArray(schema, destArray, value, Vue, fixArraySize) {\n var sitems = schema.items;\n if (fixArraySize) {\n while (destArray.length > value.length) {\n destArray.splice(destArray.length - 1, 1);\n }\n }\n for (var i = 0; i < value.length; i++) {\n var nitem = destArray[i];\n if (nitem === undefined) {\n nitem = defaultValue(sitems, true);\n if (i > destArray.length - 1) {\n destArray.push(nitem);\n }\n else {\n if (Vue) {\n Vue.set(destArray, i, nitem);\n }\n else {\n destArray[i] = nitem;\n }\n }\n }\n switch (sitems.type) {\n case 'object':\n _setDataObj(sitems, nitem, value[i]);\n break;\n case 'array':\n _setDataArray(sitems, nitem, value[i]);\n break;\n default:\n if (i > destArray.length - 1) {\n destArray.push(value[i]);\n }\n else {\n if (Vue) {\n Vue.set(destArray, i, value[i]);\n }\n else {\n destArray[i] = value[i];\n }\n }\n break;\n }\n }\n return true;\n}\nfunction _setDataObj(schema, parentObject, value, Vue, fixArraySize) {\n var props = schema.properties;\n for (var key in value) {\n if (value.hasOwnProperty(key)) {\n var pschema = props[key];\n if (pschema !== undefined) {\n switch (pschema.type) {\n case 'object':\n var nparent = parentObject[key];\n if (nparent === undefined) {\n parentObject[key] = nparent = defaultValue(pschema);\n }\n _setDataObj(pschema, nparent, value[key], Vue, fixArraySize);\n break;\n case 'array':\n var narray = parentObject[key];\n if (narray === undefined) {\n parentObject[key] = narray = defaultValue(pschema);\n }\n _setDataArray(pschema, narray, value[key], Vue, fixArraySize);\n break;\n default:\n _setDataValue(pschema, parentObject, key, value[key], Vue);\n break;\n }\n }\n }\n }\n return true;\n}\nfunction _setDataKey(schema, parent, key, value) {\n if (schema.type === 'object') {\n if (typeof value === 'object') {\n var destobj = parent[key];\n if (destobj === undefined) {\n parent[key] = destobj = defaultValue(schema, true);\n }\n var keys = Object.keys(value);\n var props = schema.properties;\n var dkeys = Object.keys(props);\n for (var _i = 0, keys_1 = keys; _i < keys_1.length; _i++) {\n var skey = keys_1[_i];\n var dschema = props[skey];\n if (dschema !== undefined) {\n setData(dschema, destobj, skey, value[skey]);\n }\n }\n return true;\n }\n else {\n return false;\n }\n }\n else if (schema.type === 'array') {\n if (Array.isArray(value)) {\n var destobj = parent[key];\n if (destobj === undefined) {\n parent[key] = destobj = defaultValue(schema, true);\n }\n var items = schema.items;\n for (var i = 0; i < value.length; i++) {\n setData(items, destobj, i, value[i]);\n }\n return true;\n }\n else {\n return false;\n }\n }\n else {\n switch (schema.type) {\n case 'integer':\n case 'number':\n case 'money':\n if (typeof value === 'number') {\n parent[key] = value;\n return true;\n }\n else {\n return false;\n }\n case 'string':\n if (typeof value === 'string') {\n parent[key] = value;\n return true;\n }\n else {\n return false;\n }\n case 'boolean':\n if (typeof value === 'boolean') {\n parent[key] = value;\n return true;\n }\n else {\n return false;\n }\n default:\n return false;\n }\n }\n}\nfunction setData(schema, data, value, path, pathIndex, Vue, fixArraySize) {\n if (pathIndex === void 0) { pathIndex = 0; }\n if (path !== undefined) {\n if (typeof path === 'string') {\n path = path\n .replace(/\\[/g, '.')\n .replace(/\\]/g, '')\n .split('.')\n .filter(function (x) { return x; });\n pathIndex = 0;\n }\n var cpath = path[pathIndex];\n if (cpath) {\n if (schema.type === 'object') {\n var dschema = schema.properties[cpath];\n if (dschema !== undefined) {\n if (dschema.type === 'object' || dschema.type === 'array') {\n var data2 = data[cpath];\n if (data2 === undefined) {\n data2 = defaultValue(dschema, true);\n if (Vue) {\n Vue.set(data, cpath, data2);\n }\n else {\n data[cpath] = data2;\n }\n }\n return setData(dschema, data2, value, path, pathIndex + 1, Vue, fixArraySize);\n }\n else {\n return _setDataValue(dschema, data, cpath, value, Vue);\n }\n }\n else {\n return false;\n }\n }\n else if (schema.type === 'array') {\n var dschema = schema.items;\n if (dschema !== undefined) {\n var index = parseInt(cpath, 10);\n var data2 = data[index];\n if (data2 === undefined) {\n while (data.length < index + 1) {\n data.push(defaultValue(dschema, true));\n }\n // data2 = data[index];\n }\n if (dschema.type === 'array' || dschema.type === 'object') {\n return setData(dschema, data[index], value, path, pathIndex + 1, Vue, fixArraySize);\n }\n else {\n return _setDataValue(dschema, data, index, value, Vue);\n }\n }\n else {\n return false;\n }\n }\n else {\n return false;\n }\n }\n }\n if (schema.type === 'object') {\n return _setDataObj(schema, data, value, Vue, fixArraySize);\n }\n else {\n return _setDataArray(schema, data, value, Vue, fixArraySize);\n }\n}\nexports.setData = setData;\nfunction clearData(schema, data, checkDataType) {\n if (schema.computed) {\n return undefined;\n }\n if (schema.type === 'object') {\n if (typeof data !== 'object') {\n return undefined;\n }\n var result = {};\n var props = schema.properties;\n if (props) {\n for (var key in props) {\n if (props.hasOwnProperty(key)) {\n var value = data[key];\n var element = props[key];\n if (value !== undefined) {\n var nvalue = clearData(value, element, checkDataType);\n if (nvalue !== undefined) {\n result[key] = nvalue;\n }\n }\n }\n }\n }\n return result;\n }\n else if (schema.type === 'array') {\n if (Array.isArray(data)) {\n var result = [];\n var items = schema.items;\n for (var i = 0; i < data.length; i++) {\n var nvalue = clearData(data[i], items, checkDataType);\n if (nvalue !== undefined) {\n result.push(nvalue);\n }\n }\n return result;\n }\n else {\n return undefined;\n }\n }\n else {\n // na razie nie sprawdzamy typów danych\n if (Array.isArray(data)) {\n return undefined;\n }\n if (typeof data === 'object') {\n return undefined;\n }\n if (checkDataType && !checkType(schema, data)) {\n return undefined;\n }\n return data;\n }\n}\nexports.clearData = clearData;\nfunction _compareData(schema, firstItem, secondItem, path, result, compareArraySize) {\n if (schema.type === 'object') {\n if (typeof firstItem !== 'object') {\n firstItem = {};\n }\n if (typeof secondItem !== 'object') {\n secondItem = {};\n }\n if (schema.properties) {\n for (var key in schema.properties) {\n if (schema.properties.hasOwnProperty(key)) {\n var element = schema.properties[key];\n var value1 = firstItem[key];\n var value2 = secondItem[key];\n _compareData(element, value1, value2, path === '' ? key : path + '.' + key, result, compareArraySize);\n }\n }\n }\n }\n else if (schema.type === 'array') {\n var items = schema.items;\n if (items) {\n if (!Array.isArray(firstItem)) {\n firstItem = [];\n }\n if (!Array.isArray(secondItem)) {\n secondItem = [];\n }\n // if (Array.isArray(firstItem) && Array.isArray(secondItem)) {\n if (firstItem.length !== secondItem.length && compareArraySize) {\n result.equal = false;\n result.diff.push({\n path: path,\n type: 'arrayLength',\n value: [firstItem.length, secondItem.length],\n schema: schema\n });\n }\n var mlength = Math.max(firstItem.length, secondItem.length);\n for (var i = 0; i < mlength; i++) {\n _compareData(items, firstItem[i], secondItem[i], path + '[' + i + ']', result, compareArraySize);\n }\n }\n // }\n }\n else {\n if (firstItem === undefined && secondItem === undefined) {\n return;\n }\n if (firstItem === undefined || secondItem === undefined) {\n result.equal = false;\n result.diff.push({\n path: path,\n type: 'value',\n value: [firstItem, secondItem],\n schema: schema\n });\n return;\n }\n if ('' + firstItem !== '' + secondItem) {\n result.equal = false;\n result.diff.push({\n path: path,\n type: 'value',\n value: [firstItem, secondItem],\n schema: schema\n });\n return;\n }\n }\n}\n/**\n * Porównuje dane uzywając schematu, zwraca CompareResult zawierający wynik porównania i listę róźnic\n * @param firstItem pierwszy element do porównania\n * @param secondItem drugi element do porównania\n */\nfunction compareData(schema, firstItem, secondItem, compareArraySize) {\n var result = new CompareResult_1.default();\n _compareData(schema, firstItem, secondItem, '', result, compareArraySize);\n return result;\n}\nexports.compareData = compareData;\nfunction fixData(schema, data, Vue) {\n var result = 0;\n if (schema.type === 'object') {\n var props = schema.properties;\n for (var key in schema.properties) {\n if (props.hasOwnProperty(key)) {\n var pschema = props[key];\n if (data[key] === undefined) {\n _setDataValue(pschema, data, key, defaultValue(pschema, true), Vue);\n result++;\n }\n else if (data[key] === null && (pschema.type === 'array' || pschema.type === 'object')) {\n _setDataValue(pschema, data, key, defaultValue(pschema, true), Vue);\n result++;\n }\n else {\n result += fixData(pschema, data[key], Vue);\n }\n }\n }\n }\n else if (schema.type === 'array') {\n var pschema = schema.items;\n for (var i = 0; i < data.length; i++) {\n var value = data[i];\n result += fixData(pschema, value, Vue);\n }\n }\n return result;\n}\nexports.fixData = fixData;\nfunction getRef(parent, url, root) {\n // currentContext = currentContext || this.schema;\n var turl = url.split('/');\n if (url.startsWith('#/')) {\n if (root === undefined) {\n // szukaj łażąc po parentach\n while (parent.$parent) {\n parent = parent.$parent;\n }\n }\n else {\n parent = root;\n }\n }\n else {\n // coś tam innego\n }\n // let turl = url.split(\"/\");\n var sparent2;\n for (var i = 1; i < turl.length; i++) {\n sparent2 = parent;\n parent = parent[turl[i]];\n if (parent === undefined) {\n return null;\n }\n }\n return parent;\n}\nexports.fixSchemaDefaultOptions = {\n arrayItemGuidField: null\n};\nfunction fixAndMergeSchema(schemas, options, parent, root) {\n if (options === void 0) { options = exports.fixSchemaDefaultOptions; }\n if (parent === void 0) { parent = null; }\n if (root === void 0) { root = null; }\n var props = {};\n var result = {};\n Object.defineProperty(result, '$parent', {\n value: parent\n });\n if (root === null) {\n root = result;\n }\n var i = 0;\n while (i < schemas.length) {\n var schema = schemas[i];\n // allof\n var allOf = schema.allOf;\n if (allOf !== undefined) {\n var dschemas = [];\n // wszystkie schemas do tej pory\n for (var ii = 0; ii < i; ii++) {\n dschemas.push(schemas[ii]);\n }\n // moja schema\n dschemas.push(schema);\n // z allof\n for (var ii = 0; ii < allOf.length; ii++) {\n dschemas.push(allOf[ii]);\n }\n // wszystkie pozostałe schemas\n for (var ii = i + 1; ii < schemas.length; ii++) {\n dschemas.push(schemas[ii]);\n }\n schemas = dschemas;\n schema = schemas[i];\n }\n // $ref\n var $ref = schema.$ref;\n if ($ref !== undefined) {\n var refValue = getRef(parent, $ref, root);\n if (refValue !== null) {\n schemas[i] = schema = refValue;\n }\n }\n for (var _i = 0, _a = Object.keys(schema); _i < _a.length; _i++) {\n var key = _a[_i];\n if (key === 'allOf') {\n continue;\n }\n var keyvalue = schema[key];\n if (keyvalue === null) {\n if (i > 0) {\n delete props[key];\n delete result[key];\n }\n else {\n result[key] = null;\n }\n }\n else {\n if (Array.isArray(keyvalue)) {\n if (result[key] !== undefined) {\n // łącz array\n var darray = result[key].slice();\n for (var ii = 0; ii < keyvalue.length; ii++) {\n var avalue = keyvalue[ii];\n if (darray.indexOf(avalue) === -1) {\n darray.push(avalue);\n }\n }\n result[key] = darray;\n }\n else {\n result[key] = keyvalue;\n }\n }\n else if (typeof keyvalue === 'object') {\n var proparray = props[key];\n if (proparray === undefined) {\n props[key] = proparray = [keyvalue];\n }\n else {\n proparray.push(keyvalue);\n }\n }\n else {\n result[key] = keyvalue;\n }\n }\n }\n i++;\n }\n if (result.type === undefined) {\n if (props.properties !== undefined) {\n result.type = 'object';\n }\n else if (props.items !== undefined) {\n result.type = 'array';\n }\n else {\n if (!((parent) && (parent.type === 'object'))) {\n result.type = 'string';\n }\n // result.type = 'string';\n }\n }\n if (result.type === 'int') {\n result.type = 'integer';\n }\n var _loop_1 = function (key) {\n var cached;\n Object.defineProperty(result, key, {\n enumerable: true,\n configurable: true,\n get: function () {\n if (cached) {\n // console.log('schema cached property', key);\n return cached;\n }\n else {\n // console.log('schema get property', key);\n return (cached = fixAndMergeSchema(props[key], options, result, root));\n }\n }\n });\n };\n // fix guid field in array items\n /*\n if ((parent && parent.type === 'object') && (parent.$parent && parent.$parent.type === 'array')) {\n\n }\n */\n // dołaczanie wszystkich property\n // let propsCache: any = {};\n for (var _b = 0, _c = Object.keys(props); _b < _c.length; _b++) {\n var key = _c[_b];\n _loop_1(key);\n }\n if ((result.type === 'object') && ((parent) && (parent.type === 'array') && (options.arrayItemGuidField))) {\n var pp_1 = result.properties;\n if (pp_1 && pp_1[options.arrayItemGuidField] === undefined) {\n var cached_1;\n Object.defineProperty(pp_1, options.arrayItemGuidField, {\n enumerable: true,\n configurable: true,\n get: function () {\n if (cached_1) {\n // console.log('schema cached property', key);\n return cached_1;\n }\n else {\n // console.log('schema get property', key);\n return (cached_1 = fixAndMergeSchema([{\n type: 'string',\n format: 'guid'\n }], pp_1, root));\n }\n }\n });\n /*\n pp[fixSchemaOptions.arrayItemGuidField] = {\n type: 'string',\n format: 'guid'\n };\n */\n }\n }\n return result;\n}\nexports.fixAndMergeSchema = fixAndMergeSchema;\nfunction _dataValue(data, path, pindex, schema) {\n var prop = path[pindex];\n if (prop === '') {\n if (pindex === path.length - 1) {\n return undefined;\n }\n else {\n return _dataValue(data, path, pindex + 1, schema);\n }\n }\n if (schema) {\n if (schema.type === 'object' && schema.properties) {\n var schitem = schema.properties[prop];\n if (schitem === undefined) {\n return undefined;\n }\n var ndata = data[prop];\n if (ndata === undefined) {\n if (schitem.default !== undefined) {\n ndata = schitem.default;\n }\n else {\n return undefined;\n }\n }\n if (pindex === path.length - 1) {\n return ndata;\n }\n else {\n return _dataValue(ndata, path, pindex + 1, schitem);\n }\n }\n else if (schema.type === 'array') {\n var schitem = schema.items;\n if (schitem === undefined) {\n return undefined;\n }\n var ndata = data[Number(prop)];\n if (ndata === undefined) {\n if (schitem.default !== undefined) {\n ndata = schitem.default;\n }\n else {\n return undefined;\n }\n }\n if (pindex === path.length - 1) {\n return ndata;\n }\n else {\n return _dataValue(ndata, path, pindex + 1, schitem);\n }\n }\n else {\n return undefined;\n }\n }\n}\nfunction dataValue(schema, data, path) {\n var tpath = path\n .replace(/\\[/g, '.')\n .replace(/\\]/g, '')\n .split('.');\n return _dataValue(data, tpath, 0, schema);\n}\nexports.dataValue = dataValue;\n/*\nfunction _setData(schema: JSONSchema, parentData: any, key: any, value: any, path: string[], pindex: number) {\n if ((path[pindex] === undefined) || (path[pindex] === '')) {\n if (schema.type === 'object') {\n\n\n } else if (schema.type === 'array') {\n\n } else {\n data = value;\n }\n }\n}\n\nexport function setData(schema: JSONSchema, data: any, value: any, path: string) {\n const tpath = (path || '')\n .replace(/\\[/g, '.')\n .replace(/\\]/g, '')\n .split('.');\n\n return _setData(schema, data, value, tpath, 0);\n\n}\n*/\nfunction _schemaValue(path, pindex, schema) {\n var prop = path[pindex];\n if (prop === '') {\n if (pindex === path.length - 1) {\n return null;\n }\n else {\n return _schemaValue(path, pindex + 1, schema);\n }\n }\n if (schema.type === 'object' && schema.properties) {\n var schitem = schema.properties[prop];\n if (schitem === undefined) {\n return null;\n }\n if (pindex === path.length - 1) {\n return schitem;\n }\n else {\n return _schemaValue(path, pindex + 1, schitem);\n }\n }\n else if (schema.type === 'array' && schema.items) {\n var schitem = schema.items;\n if (schitem === undefined) {\n return null;\n }\n if (pindex === path.length - 1) {\n return schitem;\n }\n else {\n return _schemaValue(path, pindex + 1, schitem);\n }\n }\n else {\n return null;\n }\n}\n/**\n * Zwraca czesc schematu na podstawie sciezki\n * @param path sciezka w formacie pole.tablica[0].pole2\n */\nfunction schemaValue(schema, path) {\n var tpath = path\n .replace(/\\[/g, '.')\n .replace(/\\]/g, '')\n .split('.');\n return _schemaValue(tpath, 0, schema);\n}\nexports.schemaValue = schemaValue;\nfunction getValidations(schema, cache) {\n if (cache === void 0) { cache = false; }\n var funcs = cache ? schema.validationFunctions : undefined;\n if (funcs === undefined) {\n funcs = [];\n if (schema.type === 'array') {\n if (schema.minItems !== undefined) {\n funcs.push(function (value) { return (value.length >= schema.minItems ? null : 'minItems'); });\n }\n if (schema.maxItems !== undefined) {\n funcs.push(function (value) { return (value.length <= schema.maxItems ? null : 'maxItems'); });\n }\n }\n else {\n if (schema.minimum !== undefined) {\n funcs.push(function (value) { return (value >= schema.minimum ? null : 'minimum'); });\n }\n if (schema.exclusiveMinimum !== undefined) {\n // let nn: number = schema.exclusiveMinimum;\n funcs.push(function (value) {\n return (value > schema.exclusiveMinimum ? null : 'exclusiveMinimum');\n });\n }\n if (schema.maximum !== undefined) {\n funcs.push(function (value) { return (value <= schema.maximum ? null : 'maximum'); });\n }\n if (schema.exclusiveMaximum !== undefined) {\n funcs.push(function (value) {\n return (value < schema.exclusiveMaximum ? null : 'exclusiveMaximum');\n });\n }\n if (schema.enum !== undefined) {\n funcs.push(function (value) { return (schema.enum.indexOf(value) > -1 ? null : 'enum'); });\n }\n if (schema.type === 'number' || schema.type === 'integer' || schema.type === 'money') {\n if (schema.multipleOf) {\n funcs.push(function (value) { return (value % schema.multipleOf === 0 ? null : 'multipleOf'); });\n }\n }\n else if (schema.type === 'string') {\n if (schema.maxLength !== undefined) {\n funcs.push(function (value) { return (value.length <= schema.maxLength ? null : 'maxLength'); });\n }\n if (schema.minLength !== undefined) {\n funcs.push(function (value) { return (value.length >= schema.minLength ? null : 'minLength'); });\n }\n if (schema.pattern !== undefined) {\n try {\n var rg_1 = new RegExp(schema.pattern);\n funcs.push(function (value) { return (rg_1.test(value) ? null : 'pattern'); });\n // tslint:disable-next-line: no-empty\n }\n catch (err) {\n funcs.push(function (value) { return false; });\n }\n }\n if (schema.format !== undefined) {\n // const ff = formatFunctions[schema.format];\n var ff_1 = formatFunctions_1.checkFormatFunction(schema.format);\n // console.log('get format function', schema.format, ff);\n if (ff_1 !== undefined) {\n funcs.push(function (value) { return (ff_1(value) ? null : 'format'); });\n }\n }\n }\n }\n if (cache) {\n Object.defineProperty(schema, 'validationFunctions', {\n enumerable: false,\n value: funcs\n });\n }\n }\n return funcs;\n}\nexports.getValidations = getValidations;\nvar cacheFuncs = {};\nfunction _fix$parent(stext) {\n if (stext.indexOf('$parent') > -1) {\n return stext\n .replace(/\\$parent\\.\\$parent\\.\\$parent\\./g, '$parent3.')\n .replace(/\\$parent\\.\\$parent\\./g, '$parent2.')\n .replace(/\\$parent\\./g, '$parent.');\n }\n else {\n return stext;\n }\n}\nexports.funcParams = \"$root,$parent,$parent2,$parent3,$external,$methods,$obj\";\n// funkcje\nfunction calcFunction(schema, cache) {\n if (cache === void 0) { cache = true; }\n var func = null;\n var calc = schema.calc;\n if (calc) {\n var funcText = schema.calc;\n var cacheKey = funcText;\n var when = '';\n if (calc.when) {\n funcText = calc.func;\n when = calc.when;\n }\n if (cache) {\n func = cacheFuncs['calc_' + when + '_' + funcText];\n if (func !== undefined) {\n return func;\n }\n }\n var stext = _fix$parent(funcText);\n var ftext = '';\n switch (schema.type) {\n case 'integer':\n ftext += \"return $methods.mround((\" + stext + \"),0);\";\n break;\n // case 'money': ftext += 'return Math.round($result);'; break;\n case 'money':\n ftext += \"return $methods.mround((\" + stext + \"),2);\";\n break;\n case 'number':\n if (schema.precision !== undefined) {\n ftext += \"return $methods.mround((\" + stext + \"),\" + schema.precision + \");\";\n }\n else {\n ftext += \"return (\" + stext + \");\";\n }\n break;\n default:\n ftext += \"return (\" + stext + \");\";\n break;\n }\n if (when) {\n ftext = \"if (\" + _fix$parent(when) + \") {\" + ftext + \"}\";\n }\n func = new Function(exports.funcParams, ftext);\n if (cache) {\n cacheFuncs['calc_' + when + '_' + funcText] = func;\n }\n }\n return func;\n}\nexports.calcFunction = calcFunction;\nfunction aggregateFunction(schema, cache) {\n if (cache === void 0) { cache = true; }\n if (schema.aggregate) {\n var aggregateFunc = null;\n var cachekey = '';\n if (cache) {\n cachekey = \"agg_\" + schema.aggregate.func\n + (\"||\" + schema.aggregate.array)\n + (\"||\" + schema.aggregate.property)\n + (\"||\" + schema.aggregate.when);\n aggregateFunc = cacheFuncs[cachekey];\n if (aggregateFunc) {\n return aggregateFunc;\n }\n }\n // let aggregateFunc = cache ? schema.cache.aggregateFunc : null;\n // może być podanna jako tablica\n var arraylist = schema.aggregate.array;\n if (!Array.isArray(arraylist)) {\n arraylist = [arraylist];\n }\n var func = schema.aggregate.func || 'sum';\n var ifprop = schema.aggregate.when || schema.aggregate.if;\n if (ifprop) {\n ifprop = _fix$parent(ifprop).replace(/\\$item\\./g, '$array[$index].');\n }\n var prop = schema.aggregate.property;\n if (prop) {\n var complexprop = /[\\$\\.]/.test(prop);\n if (!complexprop) {\n prop = '$array[$index].' + prop;\n }\n else {\n prop = _fix$parent(prop).replace(/\\$item\\./g, '$array[$index].');\n }\n }\n else {\n prop = '$array[$index]';\n }\n var ftext = 'var $length=0;';\n // ftext += `var sttime=(new Date()).getTime();var $length=0;`;\n switch (func) {\n case 'mul':\n ftext += \"var $result=1;\";\n break;\n case 'min':\n if (schema.type === 'string') {\n ftext += \"var $result='\\u017A\\u017A\\u017A\\u017A\\u017A\\u017A\\u017A\\u017A\\u017A\\u017A\\u017A\\u017A';\";\n }\n else {\n ftext += \"var $result=Infinity;\";\n }\n break;\n case 'max':\n if (schema.type === 'string') {\n ftext += \"var $result='';\";\n }\n else {\n ftext += 'var $result=-Infinity;';\n }\n break;\n case 'map':\n ftext += \"var $result=[];\";\n break;\n default:\n ftext += \"var $result=0;\";\n break;\n }\n var ltext = '';\n switch (func) {\n case 'avg':\n case 'sum':\n ltext += \"$result+=(\" + prop + \")\";\n break;\n case 'max':\n ltext += \"var v=(\" + prop + \");if (v>$result) $result=v\";\n break;\n case 'min':\n ltext += \"var v=(\" + prop + \");if (v<$result) $result=v\";\n break;\n case 'mul':\n ltext += \"$result*=(\" + prop + \")\";\n break;\n case 'count':\n ltext += \"$result++;\";\n break;\n case 'first':\n case 'last':\n ltext += \"$result=(\" + prop + \");break;\";\n break;\n case 'map':\n ltext += \"$result.push(\" + prop + \");\";\n break;\n }\n if (ifprop) {\n if (func === 'first' || func === 'map') {\n // tslint:disable-next-line: max-line-length\n ltext = \"var $arrayLength=$array.length;for($index=0;$index<$arrayLength;$index++) {if (\" + ifprop + \") {$length++;\" + ltext + \"}};\";\n }\n else {\n ltext = \"var $index = $arrayLength = $array.length;\"\n + (\"while($index--) {if (\" + ifprop + \") {$length++;\" + ltext + \"}};\");\n }\n // ftext += `do {with(aaa[i]) {if (${ifprop}) {${ltext}}}} while(i--);`;\n }\n else {\n if (func === 'first' || func === 'map') {\n // tslint:disable-next-line: max-line-length\n ltext = \"var $arrayLength=$array.length;$length+=$arrayLength;for($index=0;$index<$arrayLength;$index++) {\" + ltext + \"};\";\n }\n else {\n ltext = \"var $index = $arrayLength = $array.length;$length+=$index;while($index--) {\" + ltext + \"};\";\n }\n }\n for (var _i = 0, arraylist_1 = arraylist; _i < arraylist_1.length; _i++) {\n var arraykey = arraylist_1[_i];\n var subarray = null;\n var pp = arraykey.indexOf('/');\n if (pp > -1) {\n subarray = arraykey.substr(pp + 1);\n arraykey = arraykey.substr(0, pp);\n }\n var complexarray = /[\\$\\.]/.test(arraykey);\n if (!complexarray) {\n arraykey = 'this.' + arraykey;\n }\n arraykey = _fix$parent(arraykey);\n if (subarray) {\n // tslint:disable-next-line: max-line-length\n ftext += \"var $parentArray = \" + arraykey + \";var $parentLength=$parentArray.length;for($parentIndex=0;$parentIndex<$parentLength;$parentIndex++) {var $array=$parentArray[$parentIndex].\" + subarray + \";if ($array) {\" + ltext + \"}};\";\n }\n else {\n ftext += \"var $array = \" + arraykey + \";\";\n /*\n switch (func) {\n case 'min':\n case 'max':\n case 'mul': ftext+=\"if ($result===undefined && $array.length) \"\n }\n */\n ftext += ltext;\n // ltext;\n }\n }\n if (func === 'avg') {\n ftext += 'if ($length) $result/=$length;';\n }\n switch (func) {\n case 'mul':\n ftext += \"if ($length===0) $result=0;\";\n break;\n case 'min':\n case 'max':\n if (schema.type === 'string') {\n ftext += \"if ($length===0) $result='';\";\n }\n else {\n ftext += \"if ($length===0) $result=0;\";\n }\n break;\n }\n switch (schema.type) {\n case 'integer':\n ftext += 'return $methods.mround($result,0);';\n break;\n case 'money':\n ftext += 'return $methods.mround($result,2);';\n break;\n case 'number':\n if (schema.precision) {\n ftext += \"return $methods.mround($result,\" + schema.precision + \");\";\n }\n else {\n ftext += \"return $result;\";\n }\n break;\n default:\n ftext += \"return $result;\";\n break;\n }\n // return (schema.cache.aggregateFunc = aggregateFunc = new Function(funcParams, ftext));\n aggregateFunc = new Function(exports.funcParams, ftext);\n if (cache) {\n cacheFuncs[cachekey] = aggregateFunc;\n }\n return aggregateFunc;\n // return (schema.cache.aggregateFunc = aggregateFunc = new Function(funcParams, ftext));\n }\n}\nexports.aggregateFunction = aggregateFunction;\nfunction validFunction(schema, cache) {\n if (cache === void 0) { cache = true; }\n var func = null;\n if (schema.validFunc) {\n if (cache) {\n func = cacheFuncs['valid_' + schema.validFunc];\n if (func !== undefined) {\n return func;\n }\n }\n var stext = _fix$parent(schema.validFun);\n var ftext = '';\n ftext += \"return (\" + stext + \");\";\n func = new Function(exports.funcParams, ftext);\n if (cache) {\n cacheFuncs['valid_' + schema.validFunc] = func;\n }\n }\n return func;\n}\nexports.validFunction = validFunction;\nfunction validCalcFunction(rule, cache) {\n if (cache === void 0) { cache = true; }\n var s = '';\n if (typeof rule === 'string') {\n rule = _fix$parent(rule);\n s = \"return (\" + rule + \")\";\n }\n else if (Array.isArray(rule)) {\n for (var i = 0; i < rule.length; i++) {\n var item = rule[i];\n var ss = item.when || item.if || '';\n ss = _fix$parent(ss);\n var ss2 = item.value;\n if (ss2 === undefined) {\n ss2 = ss;\n }\n else {\n if (typeof ss2 === 'string') {\n ss2 = _fix$parent(ss2);\n }\n }\n s += \"if (\" + ss + \") return (\" + ss2 + \");\";\n }\n }\n // console.log('create valid function', rule, s);\n return new Function(exports.funcParams, s);\n}\nexports.validCalcFunction = validCalcFunction;\nvar reactivekey = 1000;\nfunction _reactiveModel(schema, parent, propName, vueoptions, data) {\n if (schema.type === 'object') {\n var props = schema.properties;\n if (props !== undefined) {\n var mparent = new Object();\n parent[propName] = mparent;\n var keys = Object.keys(props);\n for (var _i = 0, keys_2 = keys; _i < keys_2.length; _i++) {\n var key = keys_2[_i];\n var element = props[key];\n _reactiveModel(element, mparent, key, vueoptions, data === undefined ? undefined : data[key]);\n /*\n if (data && data[key] !== undefined) {\n parent[key] = data[key];\n } else {\n parent[key] = defaultValue(element, true);\n }\n */\n }\n }\n }\n else if (schema.type === 'array') {\n // array\n var items = schema.items;\n if (items !== undefined) {\n var mparent = [];\n parent[propName] = mparent;\n if (data !== undefined) {\n for (var i = 0; i < data.length; i++) {\n _reactiveModel(items, mparent, i, vueoptions, data[i]);\n }\n }\n }\n }\n else {\n var value_1 = null;\n if (data === undefined) {\n value_1 = defaultValue(schema, true);\n }\n else {\n value_1 = data;\n }\n parent[propName] = value_1;\n if (schema.calc || schema.aggregate) {\n // przygotuj dane `$root,$parent,$parent2,$parent3,$external,$methods,$obj`;\n // const keynumber = Math.trunc(Math.random() * 10000000);\n var keynumber = reactivekey++;\n var calcdata_1 = [\n vueoptions.data.model,\n {},\n {},\n {},\n {},\n schemaMethods_1.default,\n {} // $obj\n ];\n if (schema.aggregate) {\n var func_1 = aggregateFunction(schema, true);\n vueoptions.computed['calc_' + keynumber] = {\n get: function () {\n // return (parent[propName] = func.apply(parent, calcdata));\n var res = func_1.apply(parent, calcdata_1);\n parent[propName] = res;\n return res;\n }\n };\n }\n else if (schema.calc) {\n var func_2 = calcFunction(schema, true);\n vueoptions.computed['calc_' + keynumber] = {\n // get: () => parent.a + parent.b\n get: function () {\n return (parent[propName] = func_2.apply(parent, calcdata_1));\n // const res = func.apply(parent, calcdata);\n // parent[propName] = res;\n // return res;\n }\n };\n }\n vueoptions.watch['calc_' + keynumber] = function (newValue) {\n parent[propName] = value_1;\n };\n }\n }\n}\nexports._reactiveModel = _reactiveModel;\nfunction reactiveModel(schema, Vue, data) {\n reactivekey = 1000;\n var vueoptions = {\n data: {\n model: {}\n },\n computed: {},\n watch: {}\n };\n var stime = new Date().getTime();\n _reactiveModel(schema, vueoptions.data, 'model', vueoptions, data);\n console.log('rtime', new Date().getTime() - stime);\n var vm = new Vue(vueoptions);\n return vm.model;\n}\nexports.reactiveModel = reactiveModel;\n/*\n\n //ftext += `console.log(\"aggregate\",(new Dat\n e()).getTime()-sttime, $result);`;\n if (func === 'avg') { ftext += 'if ($length) $result/=$length;'; }\n if (self.asyncComputed) {\n switch (schema.type) {\n case 'integer': ftext += 'resolve(Math.round($result));'; break;\n case 'money': ftext += 'resolve(this.$options.$ext.mround($result));'; break;\n default: ftext += 'resolve($result);'; break;\n }\n\n } else {\n switch (schema.type) {\n case 'integer': ftext += 'return Math.round($result);'; break;\n case 'money': ftext += 'return this.$options.$ext.mround($result);'; break;\n default: ftext += 'return $result;'; break;\n }\n }\n\n // asyncComputed\n if (self.asyncComputed) {\n ftext = `return new Promise(function(resolve,reject) {${ftext}});`;\n\n }\n\n\n if (ifprop) {\n console.log(`aggFunc`, ftext);\n }\n schema.cache.aggregateFunc = aggregateFunc = new Function(ftext);\n}\n\nif (self.asyncComputed) {\n if (asyncComputed === null) {\n asyncComputed = new Object();\n asyncComputed.aggregate = aggregateFunc;\n }\n\n} else {\n computed.aggregate = aggregateFunc;\n}\n\n }\n\n\n*/\nvar JSchema = /** @class */ (function () {\n function JSchema(schema) {\n this.schema = {};\n // this.schema={};\n if (schema) {\n this.init(schema);\n }\n }\n /**\n * ładowanie schema\n * @param schema JSONSchema | string | JSONSchema[] | string[]\n */\n JSchema.prototype.init = function (schema) {\n var schemalist = [];\n if (Array.isArray(schema)) {\n for (var _i = 0, schema_1 = schema; _i < schema_1.length; _i++) {\n var schemaitem = schema_1[_i];\n if (typeof schemaitem === 'string') {\n schemalist.push(JSON.parse(schemaitem));\n }\n else {\n schemalist.push(schemaitem);\n }\n }\n }\n else if (typeof schema === 'string') {\n schemalist.push(JSON.parse(schema));\n }\n else {\n schemalist.push(schema);\n }\n this.schema = fixAndMergeSchema(schemalist);\n };\n /**\n * Domyślna wartośc na podstawie pól default ze schematu\n * @param schemaPath Ściezka schematu dla ktorej zwrocic domyslan wartosc, gdy pominieta zwraca dla pelnego schematu\n */\n JSchema.prototype.defaultValue = function (force, schemaPath) {\n var schema = schemaPath ? this.schemaValue(schemaPath) : this.schema;\n if (schema) {\n return defaultValue(schema, force);\n }\n return null;\n };\n /**\n * Zwraca wartosc pola danych wg sciezki\n * @param data Pelne dane\n * @param path sciezka w formacie pole.tablica[0].pole2\n */\n JSchema.prototype.dataValue = function (data, path) {\n return dataValue(this.schema, data, path);\n };\n /**\n * Zwraca czesc schematu na podstawie sciezki\n * @param path sciezka w formacie pole.tablica[0].pole2\n */\n JSchema.prototype.schemaValue = function (path) {\n return schemaValue(this.schema, path);\n };\n /**\n * Sprawdza poprawnoc danych według schematu i zawartej w nim walidacji\n * @param data dane do sprawdzenia\n * @param schema gałąź schamtu, gdy pominięto to uzywa glownej\n * @param path sciezka schamtu, gdy pusta uzywa glownej\n */\n JSchema.prototype.validate = function (data, exitOnFirstError, schema, path) {\n if (exitOnFirstError === void 0) { exitOnFirstError = true; }\n if (schema === void 0) { schema = null; }\n if (path === void 0) { path = ''; }\n var result = new ValidationResult_1.default();\n _validate(schema || this.schema, data, path || '', exitOnFirstError, result);\n if (result.errors.length) {\n result.valid = false;\n }\n return result;\n };\n /**\n * Porównuje dane uzywając schematu, zwraca CompareResult zawierający wynik porównania i listę róźnic\n * @param firstItem pierwszy element do porównania\n * @param secondItem drugi element do porównania\n */\n JSchema.prototype.compareData = function (firstItem, secondItem, compareArraySize) {\n return compareData(this.schema, firstItem, secondItem);\n };\n /**\n * Czyści dane pozostawiając tylko te zgodne ze schematem, nie weryfikuje prostych typów danych\n * @param data dane do wyczyszczenia\n * @param checkDataType czy sprawdzac poprawnośc typów danych prostych\n * (number,integer,boolean, string), domyślnie nie\n */\n JSchema.prototype.clearData = function (data, checkDataType) {\n return clearData(data, this.schema, checkDataType);\n };\n JSchema.prototype.setData = function (data, value, path, Vue) {\n return setData(this.schema, data, value, path, 0, Vue);\n };\n return JSchema;\n}());\nexports.default = JSchema;\n//# sourceMappingURL=JSchema.js.map","var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * dodaje widoące zera do liczby\n * @param value liczba\n * @param minLength minimalna, wynikowa długośc tekstu\n */\nfunction padNumber(value, minLength) {\n if (minLength === void 0) { minLength = 2; }\n var result = '' + value;\n while (result.length < minLength) {\n result = '0' + result;\n }\n return result;\n}\nexports.default = padNumber;\n//# sourceMappingURL=padNumber.js.map","var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar precisions = [1, 10, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8];\n/**\n * zaokrągla liczbę zmiennoprzecinkową uwzględniając przekłamania JS\n * @param value liczba\n * @param precision do ilu miejsc po przecinku zaokrąglić, domyślnie 2\n */\nfunction mround(value, precision) {\n if (precision === void 0) { precision = 2; }\n if (value === undefined) {\n return value;\n }\n // return Number(Math.round(+(`${value}e${precision}`)) + `e-${precision}`);\n var nnumber = value * precisions[precision];\n if (nnumber % 1 === 0) {\n return value;\n }\n else {\n return Math.round(nnumber + 0.0000000000001) / precisions[precision];\n }\n}\nexports.default = mround;\n//# sourceMappingURL=mround.js.map","var global = require('./_global');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar SRC = require('./_uid')('src');\nvar $toString = require('./_function-to-string');\nvar TO_STRING = 'toString';\nvar TPL = ('' + $toString).split(TO_STRING);\n\nrequire('./_core').inspectSource = function (it) {\n return $toString.call(it);\n};\n\n(module.exports = function (O, key, val, safe) {\n var isFunction = typeof val == 'function';\n if (isFunction) has(val, 'name') || hide(val, 'name', key);\n if (O[key] === val) return;\n if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));\n if (O === global) {\n O[key] = val;\n } else if (!safe) {\n delete O[key];\n hide(O, key, val);\n } else if (O[key]) {\n O[key] = val;\n } else {\n hide(O, key, val);\n }\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, TO_STRING, function toString() {\n return typeof this == 'function' && this[SRC] || $toString.call(this);\n});\n","// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n","module.exports = false;\n","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar formatFunctions_1 = require(\"../formatFunctions\");\n/**\n * Sprawdza czy tekst jest podanego formatu\n * @param format format tekstu\n * @param value wartośc do weryfikacji\n */\nfunction check(format, value) {\n return formatFunctions_1.checkFormat(format, value);\n}\nexports.default = check;\n//# sourceMappingURL=check.js.map","var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar padNumber_1 = require(\"./methods/padNumber\");\n/**\n * klasa reprezentująca różnicę czasu\n */\nvar TimeSpan = /** @class */ (function () {\n function TimeSpan(ms, lateDate, earlyDate) {\n this.ms = ms;\n this.lateDate = lateDate;\n this.earlyDate = earlyDate;\n }\n TimeSpan.diff = function (lateDate, earlyDate) {\n var dt1 = new Date(lateDate);\n var dt2 = new Date(earlyDate);\n return new TimeSpan(dt1.getTime() - dt2.getTime(), dt1, dt2);\n };\n Object.defineProperty(TimeSpan.prototype, \"totalMiliseconds\", {\n /**\n * całkowita liczba milisekund\n */\n get: function () {\n return this.ms;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(TimeSpan.prototype, \"miliseconds\", {\n /**\n * ilośc milisekund po odjęciu sekund, minut, godzin i dni\n */\n get: function () {\n return this.ms % 1000;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(TimeSpan.prototype, \"totalSeconds\", {\n /**\n * całkowita liczba sekund = liczba milisekund /1000\n */\n get: function () {\n return this.ms / 1000;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(TimeSpan.prototype, \"seconds\", {\n /**\n * liczba sekund po odjęciu minut, godzin i dni\n */\n get: function () {\n // return this.ms % (1000 * 60);\n return Math.trunc((this.totalMinutes % 1) * 60);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(TimeSpan.prototype, \"totalMinutes\", {\n /**\n * całkowita liczba minut\n */\n get: function () {\n return this.ms / 60000 /* 1000 * 60 */;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(TimeSpan.prototype, \"minutes\", {\n /**\n * liczba minut po odjęciu godzin i dni\n */\n get: function () {\n return Math.trunc((this.totalHours % 1) * 60);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(TimeSpan.prototype, \"totalHours\", {\n /**\n * całkowita liczba godzin\n */\n get: function () {\n return this.ms / 3600000 /* 1000 * 60 * 60 */;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(TimeSpan.prototype, \"hours\", {\n /**\n * liczba godzn po odjęciu liczby dni\n */\n get: function () {\n return Math.trunc((this.totalDays % 1) * 24);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(TimeSpan.prototype, \"totalDays\", {\n /**\n * całkowita liczba dni\n */\n get: function () {\n return this.ms / 86400000 /*1000 * 60 * 60 * 24*/;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(TimeSpan.prototype, \"days\", {\n /**\n * liczba dni, wartośc całkowita\n */\n get: function () {\n return Math.trunc(this.totalDays);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(TimeSpan.prototype, \"months\", {\n /**\n * liczba miesięcy, wartośc całkowita\n */\n get: function () {\n if (this.earlyDate && this.lateDate) {\n var res = (this.lateDate.getFullYear() - this.earlyDate.getFullYear()) * 12;\n res += this.lateDate.getMonth();\n res -= this.earlyDate.getMonth();\n if (res > 0) {\n if (this.lateDate.getDate() < this.earlyDate.getDate()) {\n res--;\n }\n }\n else if (res < 0) {\n if (this.lateDate.getDate() > this.earlyDate.getDate()) {\n res++;\n }\n }\n return res;\n }\n else {\n return Math.trunc(this.days / 30);\n }\n },\n enumerable: true,\n configurable: true\n });\n /**\n * róznica w postaci HH:mm:ss\n */\n TimeSpan.prototype.toString = function () {\n return padNumber_1.default(Math.trunc(this.totalHours), 2)\n + ':'\n + padNumber_1.default(this.minutes, 2)\n + ':'\n + padNumber_1.default(this.seconds, 2);\n };\n return TimeSpan;\n}());\nexports.default = TimeSpan;\n//# sourceMappingURL=TimeSpan.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nfunction dateParse(date) {\n if (date.length === 10) {\n return new Date(date + ' 00:00:00');\n }\n else {\n return new Date(date);\n }\n}\nexports.default = dateParse;\n//# sourceMappingURL=dateParse.js.map","// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Obcina początkowe i końcowe spacje w tekscie\n * @param text tekst do obcięcia\n */\nfunction trim(text) {\n return (text || '').trim();\n}\nexports.default = trim;\n//# sourceMappingURL=trim.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar ValidationResult = /** @class */ (function () {\n function ValidationResult() {\n this.valid = true;\n this.errors = [];\n }\n return ValidationResult;\n}());\nexports.default = ValidationResult;\n//# sourceMappingURL=ValidationResult.js.map","exports.f = {}.propertyIsEnumerable;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nfunction _getInt(s, start, length) {\n if (start < s.length) {\n return +s.substr(start, length);\n var res = +s.substr(start, length);\n if (!isNaN(res)) {\n return res;\n }\n }\n return 0;\n}\n/**\n * zwraca liczbę reprezetującą częśc daty\n * @param date data w formacie yyyy-MM-dd HH:mm:ss\n * @param part rok:y,yy,yyy,year;\n * miesiąc:M,MM,month;\n * dzien:d,dd,day;\n * godzina:h,hh,hour;\n * minuta:m,mm,minute;\n * sekunda:s,ss,second;\n */\nfunction datePart(date, part) {\n switch (part) {\n case 'y':\n case 'yy':\n case 'yyyy':\n case 'year':\n return _getInt(date, 0, 4);\n case 'M':\n case 'MM':\n case 'month':\n return _getInt(date, 5, 2);\n case 'd':\n case 'dd':\n case 'day':\n return _getInt(date, 8, 2);\n case 'h':\n case 'hh':\n case 'hour':\n return _getInt(date, 11, 2);\n case 'm':\n case 'mm':\n case 'minute':\n return _getInt(date, 14, 2);\n case 's':\n case 'ss':\n case 'second':\n return _getInt(date, 17, 2);\n default:\n return 0;\n }\n}\nexports.default = datePart;\n//# sourceMappingURL=datePart.js.map","var core = require('./_core');\nvar global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: require('./_library') ? 'pure' : 'global',\n copyright: '© 2019 Denis Pushkarev (zloirock.ru)'\n});\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar fdatetime_1 = require(\"./fdatetime\");\n/**\n * aktualna data i czas w formacie yyyy-MM-dd HH:mm:ss\n */\nfunction now() {\n return fdatetime_1.default(new Date());\n}\nexports.default = now;\n//# sourceMappingURL=now.js.map","var global = require('./_global');\nvar core = require('./_core');\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar ctx = require('./_ctx');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});\n var key, own, out, exp;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n // export native or passed\n out = (own ? target : source)[key];\n // bind timers to global for call from export context\n exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // extend global\n if (target) redefine(target, key, out, type & $export.U);\n // export\n if (exports[key] != out) hide(exports, key, exp);\n if (IS_PROTO && expProto[key] != out) expProto[key] = out;\n }\n};\nglobal.core = core;\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n","var isObject = require('./_is-object');\nvar setPrototypeOf = require('./_set-proto').set;\nmodule.exports = function (that, target, C) {\n var S = target.constructor;\n var P;\n if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) {\n setPrototypeOf(that, P);\n } return that;\n};\n","var shared = require('./_shared')('keys');\nvar uid = require('./_uid');\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * generuje guid w formacie xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\n */\nfunction generateGuid() {\n var g = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx';\n return g.replace(/[xy]/g, function (c) {\n // tslint:disable-next-line:no-bitwise\n var r = (Math.random() * 16) | 0;\n // tslint:disable-next-line:no-bitwise\n var v = c === 'x' ? r : (r & 0x3) | 0x8;\n return v.toString(16);\n });\n // return g;\n}\nexports.default = generateGuid;\n//# sourceMappingURL=generateGuid.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar JSchema_1 = require(\"./JSchema\");\nexports.JsonSchema = JSchema_1.default;\nvar schemaMixin_1 = require(\"./schemaMixin\");\nexports.schemaMixin = schemaMixin_1.default;\nvar schemaMethods_1 = require(\"./schemaMethods\");\nexports.schemaMethods = schemaMethods_1.default;\nvar SchemaWrapper_1 = require(\"./SchemaWrapper\");\nexports.SchemaWrapper = SchemaWrapper_1.default;\n// tslint:disable-next-line: no-var-requires\n// const polyfills = require('./polyfills.ts');\nvar polyfills = require(\"./polyfills\");\nexports.polyfills = polyfills;\nexports.default = JSchema_1.default;\n//# sourceMappingURL=index.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar fdate_1 = require(\"./fdate\");\n/**\n * dzisiejsza data w dormacie yyyy-MM-dd\n */\nfunction today() {\n return fdate_1.default(new Date());\n}\nexports.default = today;\n//# sourceMappingURL=today.js.map","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject');\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n","// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar padNumber_1 = require(\"./padNumber\");\nexports.monthNames = ['styczeń', 'luty', 'marzec', 'kwiecień', 'maj', 'czerwiec', 'lipiec', 'sierpień', 'wrzesień', 'październik', 'listopad', 'grudzień'];\nexports.monthShort = ['sty', 'lut', 'mar', 'kwi', 'maj', 'cze', 'lip', 'sie', 'wrz', 'paź', 'lis', 'gru'];\nexports.dayNames = ['poniedziałek', 'wtorek', 'środa', 'czwartek', 'piątek', 'sobota', 'niedziela'];\nvar dayNames2 = ['niedziela', 'poniedziałek', 'wtorek', 'środa', 'czwartek', 'piątek', 'sobota'];\nexports.dayShort = ['Pn', 'Wt', 'Śr', 'Cz', 'Pt', 'So', 'N'];\nvar dayShort2 = ['Pn', 'Wt', 'Śr', 'Cz', 'Pt', 'So', 'N'];\nexports.formatDateFunction = {\n 'dd.MM.yyyy': function (dt) { return padNumber_1.default(dt.getDate()) + '.' + padNumber_1.default(dt.getMonth() + 1) + '.' + dt.getFullYear(); },\n 'yyyy-MM-dd': function (dt) { return dt.getFullYear() + '-' + padNumber_1.default(dt.getMonth() + 1) + '-' + padNumber_1.default(dt.getDate()); },\n 'MMMM yyyy': function (dt) { return exports.monthNames[dt.getMonth()] + \" \" + dt.getFullYear(); },\n 'MMM yyyy': function (dt) { return exports.monthShort[dt.getMonth()] + \" \" + dt.getFullYear(); },\n 'dddd': function (dt) { return dayNames2[dt.getDay()]; },\n 'ddd': function (dt) { return dayShort2[dt.getDay()]; },\n 'dd': function (dt) { return padNumber_1.default(dt.getDate()); },\n 'd': function (dt) { return dt.getDate().toString(); },\n 'MMMM': function (dt) { return exports.monthNames[dt.getMonth()]; },\n 'MMM': function (dt) { return exports.monthShort[dt.getMonth()]; },\n 'MM': function (dt) { return padNumber_1.default(dt.getMonth() + 1); },\n 'M': function (dt) { return (dt.getMonth() + 1).toString(); },\n 'HH': function (dt) { return padNumber_1.default(dt.getHours()); },\n 'H': function (dt) { return dt.getHours().toString(); },\n 'mm': function (dt) { return padNumber_1.default(dt.getMinutes()); },\n 'm': function (dt) { return dt.getMinutes().toString(); },\n 'ss': function (dt) { return padNumber_1.default(dt.getSeconds()); },\n 's': function (dt) { return dt.getSeconds().toString(); },\n 'HH:mm:ss': function (dt) { return padNumber_1.default(dt.getHours()) + \":\" + padNumber_1.default(dt.getMinutes()) + \":\" + padNumber_1.default(dt.getSeconds()); },\n 'dd.MM.yyyy HH:mm:ss': function (dt) { return exports.formatDateFunction['dd.MM.yyyy'](dt) + ' ' + exports.formatDateFunction['HH:mm:ss'](dt); },\n 'yyyy-MM-dd HH:mm:ss': function (dt) { return exports.formatDateFunction['yyyy-MM-dd'](dt) + ' ' + exports.formatDateFunction['HH:mm:ss'](dt); }\n};\n/**\n * formatuje datę i czas do formatu yyyy-MM-dd HH:mm:ss\n * @param dt data typu Date\n */\nfunction fdatetime(dt, format) {\n return exports.formatDateFunction[format || 'yyyy-MM-dd HH:mm:ss'](dt);\n // return fdate(dt) + ' ' + ftime(dt);\n}\nexports.default = fdatetime;\n//# sourceMappingURL=fdatetime.js.map","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n","var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n","var dP = require('./_object-dp').f;\nvar FProto = Function.prototype;\nvar nameRE = /^\\s*function ([^ (]*)/;\nvar NAME = 'name';\n\n// 19.2.4.2 name\nNAME in FProto || require('./_descriptors') && dP(FProto, NAME, {\n configurable: true,\n get: function () {\n try {\n return ('' + this).match(nameRE)[1];\n } catch (e) {\n return '';\n }\n }\n});\n","var core = module.exports = { version: '2.6.9' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n","var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nvar isObject = require('./_is-object');\nvar anObject = require('./_an-object');\nvar check = function (O, proto) {\n anObject(O);\n if (!isObject(proto) && proto !== null) throw TypeError(proto + \": can't set as prototype!\");\n};\nmodule.exports = {\n set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n function (test, buggy, set) {\n try {\n set = require('./_ctx')(Function.call, require('./_object-gopd').f(Object.prototype, '__proto__').set, 2);\n set(test, []);\n buggy = !(test instanceof Array);\n } catch (e) { buggy = true; }\n return function setPrototypeOf(O, proto) {\n check(O, proto);\n if (buggy) O.__proto__ = proto;\n else set(O, proto);\n return O;\n };\n }({}, false) : undefined),\n check: check\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * zwraca maksymalną wartość\n * @param values tablica wartości\n */\nfunction max(values) {\n var result = values[0];\n var i = values.length;\n while (--i > 0) {\n if (values[i] > result) {\n result = values[i];\n }\n }\n return result;\n}\nexports.default = max;\n//# sourceMappingURL=max.js.map","// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)\nvar $keys = require('./_object-keys-internal');\nvar hiddenKeys = require('./_enum-bug-keys').concat('length', 'prototype');\n\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return $keys(O, hiddenKeys);\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar CompareResult = /** @class */ (function () {\n function CompareResult() {\n this.equal = true;\n this.diff = [];\n }\n return CompareResult;\n}());\nexports.default = CompareResult;\n//# sourceMappingURL=CompareResult.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar check_1 = require(\"./methods/check\");\nvar dateAdd_1 = require(\"./methods/dateAdd\");\nvar dateDiff_1 = require(\"./methods/dateDiff\");\nvar datePart_1 = require(\"./methods/datePart\");\nvar dateParse_1 = require(\"./methods/dateParse\");\nvar generateGuid_1 = require(\"./methods/generateGuid\");\nvar trim_1 = require(\"./methods/trim\");\nvar fmoney_1 = require(\"./methods/fmoney\");\nvar fdatetime_1 = require(\"./methods/fdatetime\");\nvar fdate_1 = require(\"./methods/fdate\");\nvar ftime_1 = require(\"./methods/ftime\");\nvar listMonths_1 = require(\"./methods/listMonths\");\nvar listYears_1 = require(\"./methods/listYears\");\nvar min_1 = require(\"./methods/min\");\nvar max_1 = require(\"./methods/max\");\nvar mround_1 = require(\"./methods/mround\");\nvar now_1 = require(\"./methods/now\");\nvar nullDefault_1 = require(\"./methods/nullDefault\");\nvar padNumber_1 = require(\"./methods/padNumber\");\nvar today_1 = require(\"./methods/today\");\nexports.default = {\n check: check_1.default,\n dateAdd: dateAdd_1.default,\n dateDiff: dateDiff_1.default,\n datePart: datePart_1.default,\n dateParse: dateParse_1.default,\n generateGuid: generateGuid_1.default,\n fdate: fdate_1.default,\n fdatetime: fdatetime_1.default,\n fmoney: fmoney_1.default,\n ftime: ftime_1.default,\n listMonths: listMonths_1.default,\n listYears: listYears_1.default,\n min: min_1.default,\n max: max_1.default,\n mround: mround_1.default,\n now: now_1.default,\n nullDefault: nullDefault_1.default,\n padNumber: padNumber_1.default,\n today: today_1.default,\n trim: trim_1.default\n};\n/*\nexport default {\n mround,\n min,\n max,\n nullDefault,\n fmoney,\n fdate,\n ftime,\n fdatetime,\n padNumber,\n datePart,\n\n dateAdd,\n dateDiff: TimeSpan.diff,\n today: () => fdate(new Date()),\n now: () => fdatetime(new Date()),\n guid: generateGuid,\n check: (format: string, value: string): boolean => checkFormat(format, value),\n checkFormat,\n};\n*/\n//# sourceMappingURL=schemaMethods.js.map","// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * zwraca minimalną wartość\n * @param values tablica wartości\n */\nfunction min(values) {\n var result = values[0];\n var i = values.length;\n while (--i > 0) {\n if (values[i] < result) {\n result = values[i];\n }\n }\n return result;\n}\nexports.default = min;\n//# sourceMappingURL=min.js.map","// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar formatFunctions = {\n patterns: {\n DATE: /^(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)$/,\n // DATET: /^(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)((t|T|\\s)(\\d\\d:\\d\\d:\\d\\d))?$/,\n DATE0: /^(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)([t|T|\\s](00:00:00))?$/,\n DAYS: [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],\n TIME: /^(\\d\\d):(\\d\\d):(\\d\\d)(\\.\\d+)?(z|[+-]\\d\\d:\\d\\d)?$/i,\n HOSTNAME: /^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*$/i,\n // tslint:disable-next-line: max-line-length\n URI: /^(?:[a-z][a-z0-9+\\-.]*:)(?:\\/?\\/(?:(?:[a-z0-9\\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\\.[a-z0-9\\-._~!$&'()*+,;=:]+)\\]|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)|(?:[a-z0-9\\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\\d*)?(?:\\/(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\\/(?:(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\\?(?:[a-z0-9\\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,\n // tslint:disable-next-line: max-line-length\n URIREF: /^(?:[a-z][a-z0-9+\\-.]*:)?(?:\\/?\\/(?:(?:[a-z0-9\\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\\.[a-z0-9\\-._~!$&'()*+,;=:]+)\\]|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)|(?:[a-z0-9\\-._~!$&'\"()*+,;=]|%[0-9a-f]{2})*)(?::\\d*)?(?:\\/(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})*)*|\\/(?:(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\\?(?:[a-z0-9\\-._~!$&'\"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\\-._~!$&'\"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,\n // uri-template: https://tools.ietf.org/html/rfc6570\n // tslint:disable-next-line: max-line-length\n URITEMPLATE: /^(?:(?:[^\\x00-\\x20\"'<>%\\\\^`{|}]|%[0-9a-f]{2})|\\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\\*)?)*\\})*$/i,\n // For the source: https://gist.github.com/dperini/729294\n // For test cases: https://mathiasbynens.be/demo/url-regex\n // tslint:disable-next-line: max-line-length\n // @todo Delete current URL in favour of the commented out URL rule when this issue is fixed https://github.com/eslint/eslint/issues/7983.\n // tslint:disable-next-line: max-line-length\n // var URL = /^(?:(?:https?|ftp):\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?!10(?:\\.\\d{1,3}){3})(?!127(?:\\.\\d{1,3}){3})(?!169\\.254(?:\\.\\d{1,3}){2})(?!192\\.168(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u{00a1}-\\u{ffff}0-9]+-?)*[a-z\\u{00a1}-\\u{ffff}0-9]+)(?:\\.(?:[a-z\\u{00a1}-\\u{ffff}0-9]+-?)*[a-z\\u{00a1}-\\u{ffff}0-9]+)*(?:\\.(?:[a-z\\u{00a1}-\\u{ffff}]{2,})))(?::\\d{2,5})?(?:\\/[^\\s]*)?$/iu;\n // tslint:disable-next-line: max-line-length\n URL: /^(?:(?:http[s\\u017F]?|ftp):\\/\\/)(?:(?:[\\0-\\x08\\x0E-\\x1F!-\\x9F\\xA1-\\u167F\\u1681-\\u1FFF\\u200B-\\u2027\\u202A-\\u202E\\u2030-\\u205E\\u2060-\\u2FFF\\u3001-\\uD7FF\\uE000-\\uFEFE\\uFF00-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])+(?::(?:[\\0-\\x08\\x0E-\\x1F!-\\x9F\\xA1-\\u167F\\u1681-\\u1FFF\\u200B-\\u2027\\u202A-\\u202E\\u2030-\\u205E\\u2060-\\u2FFF\\u3001-\\uD7FF\\uE000-\\uFEFE\\uFF00-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])*)?@)?(?:(?!10(?:\\.[0-9]{1,3}){3})(?!127(?:\\.[0-9]{1,3}){3})(?!169\\.254(?:\\.[0-9]{1,3}){2})(?!192\\.168(?:\\.[0-9]{1,3}){2})(?!172\\.(?:1[6-9]|2[0-9]|3[01])(?:\\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9KSa-z\\xA1-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])+-?)*(?:[0-9KSa-z\\xA1-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])+)(?:\\.(?:(?:[0-9KSa-z\\xA1-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])+-?)*(?:[0-9KSa-z\\xA1-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])+)*(?:\\.(?:(?:[KSa-z\\xA1-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\\/(?:[\\0-\\x08\\x0E-\\x1F!-\\x9F\\xA1-\\u167F\\u1681-\\u1FFF\\u200B-\\u2027\\u202A-\\u202E\\u2030-\\u205E\\u2060-\\u2FFF\\u3001-\\uD7FF\\uE000-\\uFEFE\\uFF00-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])*)?$/i,\n UUID: /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,\n JSON_POINTER: /^(?:\\/(?:[^~/]|~0|~1)*)*$/,\n JSON_POINTER_URI_FRAGMENT: /^#(?:\\/(?:[a-z0-9_\\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,\n RELATIVE_JSON_POINTER: /^(?:0|[1-9][0-9]*)(?:#|(?:\\/(?:[^~/]|~0|~1)*)*)$/,\n // tslint:disable-next-line: max-line-length\n EMAIL_SIMPLE: /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,\n // tslint:disable-next-line: max-line-length\n EMAIL: /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,\n // tslint:disable-next-line: max-line-length\n // optimized https://www.safaribooksonline.com/library/view/regular-expressions-cookbook/9780596802837/ch07s16.html\n // tslint:disable-next-line: max-line-length\n IPv4: /^(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)$/,\n // optimized http://stackoverflow.com/questions/53497/regular-expression-that-matches-valid-ipv6-addresses\n // tslint:disable-next-line: max-line-length\n IPv6: /^\\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))(?:%.+)?\\s*$/i,\n KODPOCZTOWY: /^[0-9]{2}-[0-9]{3}$/,\n NUMERIC: /^\\d+$/,\n NOT_URI_FRAGMENT: /\\/|:/,\n DATE_TIME_SEPARATOR: /t|\\s/i,\n Z_ANCHOR: /[^\\\\]\\\\Z/,\n GUID: /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i\n },\n isLeapYear: function (year) { return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0); },\n date: function (str) {\n // full-date from http://tools.ietf.org/html/rfc3339#section-5.6\n /*\n const matches = str\n .replace('T00:00:00', '')\n .replace(' 00:00:00', '')\n .match(formatFunctions.patterns.DATE);\n */\n // dopuszcony jest zerowy czas\n var matches = str.match(formatFunctions.patterns.DATE0);\n if (!matches) {\n return false;\n }\n var year = +matches[1];\n var month = +matches[2];\n var day = +matches[3];\n return month >= 1\n && month <= 12\n && day >= 1\n && day <= (month === 2 && formatFunctions.isLeapYear(year) ? 29 : formatFunctions.patterns.DAYS[month]);\n },\n time: function (str, full) {\n var matches = str.match(formatFunctions.patterns.TIME);\n if (!matches) {\n return false;\n }\n var hour = Number(matches[1]);\n var minute = Number(matches[2]);\n var second = Number(matches[3]);\n var timeZone = matches[5];\n return ((hour <= 23 && minute <= 59 && second <= 59)\n || (hour === 23 && minute === 59 && second === 60))\n && (!full || timeZone !== '');\n },\n kod: function (str) { return formatFunctions.patterns.KODPOCZTOWY.test(str); },\n date_time: function (str) {\n // http://tools.ietf.org/html/rfc3339#section-5.6\n var dateTime = str.split(formatFunctions.patterns.DATE_TIME_SEPARATOR);\n return dateTime.length === 2 && formatFunctions.date(dateTime[0]) && formatFunctions.time(dateTime[1], true);\n },\n hostname: function (str) { return str.length <= 255 && formatFunctions.patterns.HOSTNAME.test(str); },\n uri: function (str) { return formatFunctions.patterns.NOT_URI_FRAGMENT.test(str) && formatFunctions.patterns.URI.test(str); },\n url: function (str) { return formatFunctions.patterns.URL.test(str); },\n uuid: function (str) { return formatFunctions.patterns.UUID.test(str); },\n ipv4: function (str) { return formatFunctions.patterns.IPv4.test(str); },\n ipv6: function (str) { return formatFunctions.patterns.IPv6.test(str); },\n regex: function (str) {\n if (formatFunctions.patterns.Z_ANCHOR.test(str)) {\n return false;\n }\n try {\n // new RegExp(str);\n return new RegExp(str) !== null;\n }\n catch (e) {\n return false;\n }\n },\n // NIPWEIGHTS: [6, 5, 7, 2, 3, 4, 5, 6, 7],\n nip: function (str) {\n var weights = [6, 5, 7, 2, 3, 4, 5, 6, 7];\n str = str.replace(/[\\s-]/g, '');\n if (str.length === 10) {\n var sum = 0;\n for (var i = 0; i < 9; i++) {\n var val = Number(str[i]);\n if (!isNaN(val)) {\n sum += val * weights[i];\n }\n }\n return sum % 11 === Number(str[9]);\n }\n return false;\n },\n pesel: function (str) {\n var weights = [9, 7, 3, 1, 9, 7, 3, 1, 9, 7];\n str = str.replace(/[\\s-]/g, '');\n if (str.length === 11) {\n var sum = 0;\n for (var i = 0; i < 10; i++) {\n var val = Number(str[i]);\n if (!isNaN(val)) {\n sum += val * weights[i];\n }\n }\n return sum % 10 === Number(str[10]);\n }\n return false;\n },\n regon: function (str) { return (str.length === 9 ? formatFunctions.regon9(str) : formatFunctions.regon14(str)); },\n regon9: function (str) {\n var weights = [8, 9, 2, 3, 4, 5, 6, 7];\n // if ((regon.length == 9) && (parseInt(regon, 9) > 0)) {\n if (str.length === 9) {\n var sum = 0;\n for (var i = 0; i < 8; i++) {\n var val = Number(str[i]);\n if (!isNaN(val)) {\n sum += val * weights[i];\n }\n }\n var mod = sum % 11;\n if (mod === 10) {\n mod = 0;\n }\n return mod === Number(str[8]);\n }\n return false;\n },\n regon14: function (str) {\n var weights = [2, 4, 8, 5, 0, 9, 7, 3, 6, 1, 2, 4, 8];\n // if ((regon.length == 14) && (parseInt(regon, 14) > 0)) {\n if (str.length === 14) {\n // czy regon konczy sie na 5 zer ? jesli tak to sprawdz go jako 9 elementowy\n if (str.endsWith('00000')) {\n return formatFunctions.regon9(str.substr(0, 9));\n }\n var sum = 0;\n for (var i = 0; i < 13; i++) {\n var val = Number(str[i]);\n if (!isNaN(val)) {\n sum += val * weights[i];\n }\n }\n var mod = sum % 11;\n if (mod === 10) {\n mod = 0;\n }\n return mod === Number(str[13]);\n }\n return false;\n },\n iban: function (str) {\n if (str === '00000000000000000000000000') {\n return true;\n }\n str = str.replace(/[^0-9]+/g, '');\n var weights = new Array(1, 10, 3, 30, 9, 90, 27, 76, 81, 34, 49, 5, 50, 15, 53, 45, 62, 38, 89, 17, 73, 51, 25, 56, 75, 71, 31, 19, 93, 57);\n if (str.length === 26) {\n str = str + '2521';\n str = str.substr(2) + str.substr(0, 2);\n var Z = 0;\n for (var i = 0; i < 30; i++) {\n Z += Number(str[29 - i]) * weights[i];\n }\n if (Z % 97 === 1) {\n return true;\n }\n else {\n return false;\n }\n }\n else {\n return false;\n }\n },\n dowod: function (str) {\n str = str.replace(/[\\s-]/g, '');\n // var numer = value.trim().replace(\" \", \"\").replace(\"-\", \"\");\n // Check length\n if (str == null || str.length !== 9) {\n return false;\n }\n str = str.toUpperCase();\n var letterValues = [\n '0',\n '1',\n '2',\n '3',\n '4',\n '5',\n '6',\n '7',\n '8',\n '9',\n 'A',\n 'B',\n 'C',\n 'D',\n 'E',\n 'F',\n 'G',\n 'H',\n 'I',\n 'J',\n 'K',\n 'L',\n 'M',\n 'N',\n 'O',\n 'P',\n 'Q',\n 'R',\n 'S',\n 'T',\n 'U',\n 'V',\n 'W',\n 'X',\n 'Y',\n 'Z'\n ];\n function getLetterValue(letter) {\n return letterValues.indexOf(letter);\n // for (let j = 0; j < letterValues.length; j++)\n // if (letter == letterValues[j])\n // return j;\n // return -1;\n }\n // Check seria\n for (var i = 0; i < 3; i++) {\n if (getLetterValue(str[i]) < 10) {\n return false;\n }\n }\n // Check number\n for (var i = 3; i < 9; i++) {\n var glv = getLetterValue(str[i]);\n if (glv < 0 || glv > 9) {\n return false;\n }\n }\n // sprawdz cyfre controlna\n var sum = 7 * getLetterValue(str[0]) +\n 3 * getLetterValue(str[1]) +\n 1 * getLetterValue(str[2]) +\n 7 * getLetterValue(str[4]) +\n 3 * getLetterValue(str[5]) +\n 1 * getLetterValue(str[6]) +\n 7 * getLetterValue(str[7]) +\n 3 * getLetterValue(str[8]);\n sum %= 10;\n if (sum !== getLetterValue(str[3])) {\n return false;\n }\n return true;\n },\n email: function (str) { return formatFunctions.patterns.EMAIL.test(str); },\n guid: function (str) { return formatFunctions.patterns.GUID.test(str); },\n numeric: function (str) { return formatFunctions.patterns.NUMERIC.test(str); }\n};\nfunction checkFormat(format, data) {\n return checkFormatFunction(format)(data);\n}\nexports.checkFormat = checkFormat;\nfunction checkFormatFunction(format) {\n switch (format) {\n case 'date-time':\n return formatFunctions.date_time;\n case 'nrb':\n return formatFunctions.iban;\n case 'kodpocztowy':\n return formatFunctions.kod;\n case 'email':\n case 'date':\n case 'time':\n case 'uri':\n case 'url':\n case 'uuid':\n case 'hostname':\n case 'ipv4':\n case 'ipv6':\n case 'nip':\n case 'regon':\n case 'pesel':\n case 'iban':\n case 'regon9':\n case 'regon14':\n case 'dowod':\n case 'kod':\n case 'numeric':\n return formatFunctions[format];\n default:\n return function (str) { return true; };\n }\n}\nexports.checkFormatFunction = checkFormatFunction;\nexports.default = formatFunctions;\n//# sourceMappingURL=formatFunctions.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar JSchema_1 = require(\"./JSchema\");\nvar schemaMethods_1 = require(\"./schemaMethods\");\nvar fmoney_1 = require(\"./methods/fmoney\");\nvar mround_1 = require(\"./methods/mround\");\n// import { string } from 'prop-types';\n// @ts-ignore\n// import AsyncComputed from 'vue-async-computed';\n// import { useImperativeMethods } from 'react';\nexports.validationMessages = {\n type: 'Nieprawidłowa wartość',\n integer: 'Pole musi być liczbą',\n required: 'Pole jest wymagane',\n minimum: 'Minimalnie {{minimum}}',\n maximum: 'Maksymalnie {{maximum}}',\n exclusiveMinimum: 'Musi być większe niz {{minimum}}',\n exclusiveMaximum: 'Musi być mniejsze niz {{maximum}}',\n multipleOf: 'Musi być wielokrotnością {{multipleOf}}',\n maxLength: 'Tekst jest zbyt długi, maksymalnie {{maxLength}} znaków',\n minLength: 'Tekst jest zbyt krótki, minimalnie {{minLength}} znaków',\n maxItems: 'Zbyt dużo elementów, maksymalnie {{maxItems}}',\n minItems: 'Za mało elementów, minimalnie {{minItems}}',\n enum: 'Nieprawidłowa wartość',\n pattern: 'Nieprawidłowy format'\n};\nvar msgRegex = {\n minimum: /\\{\\{minimum\\}\\}/g,\n maximum: /\\{\\{maximum\\}\\}/g,\n exclusiveMaximum: /\\{\\{exclusiveMaximum\\}\\}/g,\n exclusiveMinimum: /\\{\\{exclusiveMinimum\\}\\}/g,\n multipleOf: /\\{\\{multipleOf\\}\\}/g,\n maxLength: /\\{\\{maxLength\\}\\}/g,\n minLength: /\\{\\{minLength\\}\\}/g,\n maxItems: /\\{\\{maxItems\\}\\}/g,\n pattern: /\\{\\{pattern\\}\\}/g,\n format: /\\{\\{format\\}\\}/g,\n enum: /\\{\\{enum\\}\\}/g,\n title: /\\{\\{title\\}\\}/g,\n value: /\\{\\{value\\}\\}/g\n};\nfunction getRuleMessage(schema, rule, value, $schema) {\n // let result = rules[rule];\n // if (result) return result;\n if ($schema === void 0) { $schema = null; }\n $schema = $schema || schema;\n var msg = schema.validationMessages[rule];\n if (msg === undefined) {\n if (rule === 'type') {\n msg = exports.validationMessages[schema.type];\n }\n if (msg === undefined) {\n msg = exports.validationMessages[rule] || rule;\n }\n // jeśli na starcie było zdefiniowane jako numer to od razu podmień\n if (typeof schema[rule] === 'number') {\n // msg = msg.replace(new RegExp(`{{${rule}}}`, 'g'), schema[rule]);\n msg = msg.replace(msgRegex[rule] || 'rrr', function () { return (schema[rule] === undefined ? '' : schema[rule]); });\n }\n schema.validationMessages[rule] = msg;\n }\n // return msg || rule;\n // zamiana {{maxLength}} na prawdziwą wartość\n msg = msg.replace(msgRegex[rule] || 'rrr', function () { return ($schema[rule] === undefined ? '' : $schema[rule]); });\n /*\n \n msg = msg\n .replace(/\\{\\{title\\}\\}/g, $schema.title || '')\n .replace(/\\{\\{minimum\\}\\}/g, $schema.minimum === undefined ? '' : $schema.minimum)\n .replace(/\\{\\{maximum\\}\\}/g, $schema.maximum === undefined ? '' : $schema.maximum)\n .replace(/\\{\\{exclusiveMaximum\\}\\}/g, $schema.exclusiveMaximum === undefined ? '' : $schema.exclusiveMaximum)\n .replace(/\\{\\{exclusiveMinimum\\}\\}/g, $schema.exclusiveMinimum === undefined ? '' : $schema.exclusiveMinimum)\n .replace(/\\{\\{multipleOf\\}\\}/g, $schema.multipleOf === undefined ? '' : $schema.multipleOf)\n .replace(/\\{\\{maxLength\\}\\}/g, $schema.maxLength === undefined ? '' : $schema.maxLength)\n .replace(/\\{\\{minLength\\}\\}/g, $schema.minLength === undefined ? '' : $schema.minLength)\n .replace(/\\{\\{maxItems\\}\\}/g, $schema.maxItems === undefined ? '' : $schema.maxItems)\n .replace(/\\{\\{minItems\\}\\}/g, $schema.minItems === undefined ? '' : $schema.minItems)\n .replace(/\\{\\{pattern\\}\\}/g, $schema.pattern || '');\n \n return msg.replace(/\\{\\{value\\}\\}/g, value);\n \n */\n return msg.replace(msgRegex.value, value);\n /*\n return {\n rule: rule,\n message: msg.replace(/\\{\\{value\\}\\}/g, value)\n \n }\n return rules[rule] = result;\n */\n}\nfunction validate(obj, value) {\n // let stime = (new Date()).getTime();\n var funcs = JSchema_1.getValidations(obj.$schema, true);\n for (var _i = 0, funcs_1 = funcs; _i < funcs_1.length; _i++) {\n var func = funcs_1[_i];\n var result = func(value, obj);\n if (result) {\n return result;\n }\n }\n if (obj.$isFuncValid !== undefined) {\n return obj.$isFuncValid;\n }\n return null;\n}\nfunction anyCalc(schema) {\n if (schema.anyCalc !== undefined) {\n return schema.anyCalc;\n }\n if (schema.calc || schema.summary || schema.aggregate) {\n Object.defineProperty(schema, 'anyCalc', {\n value: true\n });\n return true;\n }\n else if (schema.properties) {\n for (var key in schema.properties) {\n if (schema.properties.hasOwnProperty(key)) {\n var isCalc = anyCalc(schema.properties[key]);\n if (isCalc) {\n Object.defineProperty(schema, 'anyCalc', {\n value: true\n });\n return true;\n }\n }\n }\n }\n else if (schema.items) {\n return anyCalc(schema.items);\n }\n Object.defineProperty(schema, 'anyCalc', {\n value: false\n });\n return false;\n}\nfunction path(obj) {\n var result = '';\n if (obj.$parent) {\n if (obj.$parent.$schema.type === 'array') {\n return obj.$parent.$path + '[' + obj.$key + ']';\n }\n var ppath = obj.$parent.$path;\n if (ppath) {\n return ppath + '.' + obj.$key;\n }\n }\n return obj.$key;\n}\nvar SchemaWrapper = /** @class */ (function () {\n function SchemaWrapper(VueConstructor, options) {\n this.Vue = VueConstructor;\n while (this.Vue.super) {\n this.Vue = this.Vue.super;\n }\n if (this.Vue.Renderless) {\n this.Vue = this.Vue.Renderless;\n }\n this.vueInstances = [];\n this.external = null;\n // dirty\n if (options) {\n this.options = Object.assign(SchemaWrapper.defaultOptions, options);\n }\n else {\n this.options = SchemaWrapper.defaultOptions;\n }\n this.form = null;\n this.asyncArrays = false;\n this.arrayAsObject = false;\n this.asyncComputed = false;\n // this.methods = mathmethods;\n }\n /**\n * czyszczenie z instancji Vue\n */\n SchemaWrapper.prototype.clear = function () {\n for (var _i = 0, _a = this.vueInstances; _i < _a.length; _i++) {\n var vm = _a[_i];\n vm.$destroy();\n }\n this.vueInstances = [];\n };\n SchemaWrapper.prototype.runAsync = function (func) {\n if (this.asyncArrays) {\n setTimeout(func, 0);\n }\n else {\n func();\n }\n };\n SchemaWrapper.prototype.isSimpleField = function (field) {\n return typeof field === 'string' && /[\\*\\-\\/\\+\\$\\.\\=\\!\\<\\>]/.test(field);\n return (typeof field === 'string' &&\n field.indexOf('.') === -1 &&\n field.indexOf('+') === -1 &&\n field.indexOf('<') === -1 &&\n field.indexOf('>') === -1 &&\n field.indexOf('!') === -1 &&\n field.indexOf('=') === -1 &&\n field.indexOf('-') === -1 &&\n field.indexOf('*') === -1 &&\n field.indexOf('/') === -1);\n };\n /*\n \n public validCalcFunction(vv: string | any[], wrapWith: boolean = true): string {\n let s: string = '';\n let needdata: boolean = false;\n if (typeof vv === 'string') {\n if (vv.indexOf('$root') > -1) {\n needdata = true;\n }\n if (vv.indexOf('$parent') > -1) {\n needdata = true;\n vv = vv.replace(/\\$parent\\.\\$parent\\.\\$parent\\./g, '$parent3.');\n vv = vv.replace(/\\$parent\\.\\$parent\\./g, '$parent2.');\n vv = vv.replace(/\\$parent\\./g, '$parent.');\n }\n if (!wrapWith) {\n return vv;\n }\n \n if (needdata) {\n s = `with(this.$options.$ext) {with($model) {return (${vv})}};`;\n } else {\n s = `with(this.$options.$ext.$model) {return (${vv})};`;\n }\n } else if (Array.isArray(vv)) {\n for (let i = 0; i < vv.length; i++) {\n const item: any = vv[i];\n let ss = item.when || item.if || '';\n if (ss.indexOf('$root') > -1) {\n needdata = true;\n }\n if (ss.indexOf('$parent') > -1) {\n needdata = true;\n ss = ss.replace(/\\$parent\\.\\$parent\\.\\$parent\\./g, '$parent3.');\n ss = ss.replace(/\\$parent\\.\\$parent\\./g, '$parent2.');\n ss = ss.replace(/\\$parent\\./g, '$parent.');\n }\n let ss2 = item.value;\n if (ss2 === undefined) {\n ss2 = ss;\n } else {\n if (typeof ss2 === 'string') {\n if (ss2.indexOf('$root') > -1) {\n needdata = true;\n }\n if (ss2.indexOf('$parent') > -1) {\n needdata = true;\n ss2 = ss2.replace(/\\$parent\\.\\$parent\\.\\$parent\\./g, '$parent3.');\n ss2 = ss2.replace(/\\$parent\\.\\$parent\\./g, '$parent2.');\n ss2 = ss2.replace(/\\$parent\\./g, '$parent.');\n }\n }\n }\n \n s += `if (${ss}) return (${ss2});`;\n }\n // s = `with(this._data.$parentmodel) {${s}};`;\n \n if (needdata) {\n s = `with(this.$options.$ext) {with($model) {${s}return false;}};`;\n } else {\n s = `with(this.$options.$ext.$model) {${s}return false;};`;\n }\n }\n // if (needdata) {\n // s = `with(this._data) {${s}};`;\n // }\n console.log('validCalcFunction', s);\n return s;\n }\n \n */\n SchemaWrapper.prototype.wrapProperty = function (dest, parent, propName, schema) {\n // let propFunction = () =>{\n var _this = this;\n // console.log('wrapProperty', propName);\n var Vue = this.Vue;\n var vm = null;\n var focused = false;\n var typeok = true;\n var reactivedata = new Object();\n var obj = new Object();\n var root = obj;\n var self = this;\n var computed = {};\n // const computedOnly: boolean = schema.computed;\n var computedOnly = false;\n var asyncComputed = null;\n // const extraData: any = {};\n var watch = {};\n var calcargs = [];\n var formSection = '';\n var dirty = self.options.startDirty || schema.computed;\n var useComputedModel = false;\n // let methods: any = {};\n // computed.$valid = function () {\n // console.log(\"read computed $valid\", this.validation.errors.length == 0);\n // return this.validation.errors.length == 0;\n // }\n if (dest) {\n root = dest.$root;\n Object.defineProperty(obj, '$parent', {\n enumerable: false,\n get: function () {\n return dest;\n }\n });\n }\n // przygotowanie danych pod wyliczenia zależne od innych pól\n if (!self.options.disableValidations) {\n reactivedata.error = null;\n }\n // fix schema\n if (schema.cache === undefined) {\n schema.cache = {};\n /*\n Object.defineProperty(schema, 'cache', {\n writable: true,\n value: {}\n });\n */\n }\n if (schema.validationMessages === undefined) {\n schema.validationMessages = {};\n /*\n Object.defineProperty(schema, 'validationMessages', {\n value: {}\n });\n */\n }\n // kopia\n var $schema = null;\n if (!self.options.disableValidations) {\n // kopia\n $schema = {\n type: schema.type,\n title: schema.title,\n description: schema.description,\n cache: schema.cache,\n validationMessages: schema.validationMessages\n };\n /*\n Object.defineProperty($schema, 'cache', {\n writable: true,\n value: schema.cache\n });\n */\n // schema.validationMessages = schema.validationMessages;\n /*\n Object.defineProperty($schema, 'validationMessages', {\n writable: true,\n value: schema.validationMessages\n });\n */\n if (schema.format) {\n /*\n Object.defineProperty($schema, 'format', {\n writable: true,\n enumerable: true,\n value: schema.format\n });\n */\n $schema.format = schema.format;\n }\n if (schema.readOnly) {\n $schema.readOnly = true;\n }\n }\n else {\n // bez kopii\n $schema = schema;\n }\n // extraData.methods = this.methods;\n // reactivedata.$schema = $schema;\n // reactivedata.focused = false;\n // reactivedata.$parentmodel = parent;\n // reactivedata.$key = propName;\n var userData = null;\n var vmUserData = null;\n Object.defineProperties(obj, {\n $root: {\n enumerable: false,\n get: function () {\n return root;\n }\n },\n $schema: {\n enumerable: true,\n get: function () {\n return $schema;\n }\n },\n $model: computedOnly\n ? {\n enumerable: false,\n get: function () {\n return vm.value;\n },\n set: function (newValue) {\n vm.value = newValue;\n }\n }\n : {\n enumerable: true,\n get: function () {\n return parent[propName];\n },\n set: function (newValue) {\n Vue.set(parent, propName, newValue);\n // vm.$set(parent, propName, newValue);\n // parent[propName] = newValue;\n }\n },\n $key: {\n enumerable: true,\n get: function () {\n return propName;\n // return vm.$options.$ext.$key\n },\n set: function (newValue) {\n // console.log(`$key(${newValue},${propName})`);\n propName = newValue;\n // vm.$options.$ext.$key = newValue;\n }\n },\n $data: {\n enumerable: false,\n get: function () {\n if (vmUserData === null) {\n /*\n if (process.env.NODE_ENV === 'development') {\n console.log('create $data');\n }\n */\n userData = {};\n vmUserData = Vue.observable({ userData: userData });\n }\n return vmUserData.userData;\n }\n }\n /*\n $validate: {\n value: function(value: any) {\n if (value === undefined) {\n value = parent[propName];\n }\n const err = validate(obj, value);\n if (err) {\n return (vm.error = getRuleMessage(schema, err, value, $schema));\n //return (vm.error = err);\n } else {\n return (vm.error = null);\n }\n }\n }\n */\n });\n /*\n \n //rozdzielone na każdy typ osobno\n \n obj.$validate = (value: any) => {\n if (value === undefined) {\n value = parent[propName];\n }\n const err = validate(obj, value);\n if (err) {\n return (vm.error = getRuleMessage(schema, err, value, $schema));\n //return (vm.error = err);\n } else {\n return (vm.error = null);\n }\n };\n \n */\n // reactivedata.data = {};\n /*\n obj.$set = (prop: string, value: any) => {\n vm.$set(vm.data, prop, value);\n };\n */\n var need$root = false;\n // if (schema.wrapped === undefined) {\n var wrapValidRule = function (field, func) {\n if (func === void 0) { func = null; }\n if (schema[field] !== undefined) {\n if (typeof schema[field] !== 'number') {\n need$root = true;\n var v_1 = schema[field];\n delete $schema[field];\n // if (self.isSimpleField(v)) {\n if (false) {\n // console.log(field + ' simplefield:', v);\n Object.defineProperty($schema, field, {\n enumerable: true,\n get: function () {\n return vm.$options.$ext.$model[v_1];\n }\n });\n }\n else {\n console.log(\"create valid function\", v_1, parent);\n useComputedModel = true;\n var ff_1 = schema.cache[\"schema_\" + field];\n if (ff_1 === undefined) {\n ff_1 = JSchema_1.validCalcFunction(v_1);\n // console.log('calc func', ff.toString());\n schema.cache[\"schema_\" + field] = ff_1;\n }\n computed[\"schema_\" + field] = {\n get: function () {\n // console.log('calc 2', field);\n return ff_1.apply(parent, calcargs);\n }\n };\n if (func) {\n func(ff_1.apply(parent, calcargs));\n watch[\"schema_\" + field] = func;\n }\n // delete $schema[field];\n Object.defineProperty($schema, field, {\n enumerable: true,\n get: function () {\n return vm[\"schema_\" + field];\n }\n });\n }\n }\n else {\n // @ts-ignore\n $schema[field] = schema[field];\n }\n }\n return false;\n };\n // let ruletime = (new Date()).getTime();\n if (!self.options.disableValidations) {\n wrapValidRule('maxLength');\n wrapValidRule('minLength');\n wrapValidRule('maxItems');\n wrapValidRule('minItems');\n wrapValidRule('minimum');\n wrapValidRule('maximum');\n wrapValidRule('exclusiveMaximum');\n wrapValidRule('exclusiveMinimum');\n // enum\n if (schema.enum !== undefined) {\n var v = schema.enum;\n if (Array.isArray(schema.enum)) {\n $schema.enum = v;\n }\n else {\n need$root = true;\n var ff_2 = schema.cache[\"schema_enum\"];\n if (ff_2 === undefined) {\n ff_2 = JSchema_1.validCalcFunction(v);\n // ff = new Function(self.validCalcFunction(v));\n }\n computed.schema_required = {\n get: function () {\n return ff_2.apply(parent, calcargs);\n }\n };\n Object.defineProperty($schema, 'enum', {\n configurable: true,\n enumerable: true,\n get: function () {\n return vm.schema_enum;\n }\n });\n }\n }\n if (schema.required && schema.type !== 'object' && typeof schema.required === 'string') {\n schema.fieldRequired = schema.required;\n }\n if (schema.fieldRequired !== undefined) {\n // need$root = true;\n var v_2 = schema.fieldRequired;\n if (typeof v_2 !== 'boolean') {\n need$root = true;\n // if (typeof v === 'string') {\n // const ff = new Function(`with(this._data) {with(this._data.$model) {return (${v})};};`);\n // delete schema.required;\n // if (schema.fieldRequired !== undefined) {\n // delete schema.fieldRequired;\n // }\n // if (self.isSimpleField(v)) {\n if (false) {\n // if (false) {\n console.log('required simplefield:', v_2);\n Object.defineProperty($schema, 'fieldRequired', {\n configurable: true,\n enumerable: true,\n get: function () {\n return vm.$options.$ext.$model[v_2];\n }\n });\n }\n else {\n // console.log('required field:', self.validCalcFunction(v));\n useComputedModel = true;\n var ff_3 = schema.cache[\"schema_required\"];\n if (ff_3 === undefined) {\n ff_3 = JSchema_1.validCalcFunction(v_2);\n // ff = new Function(self.validCalcFunction(v));\n }\n computed.schema_required = {\n get: function () {\n var res = ff_3.apply(parent, calcargs);\n if (res === undefined) {\n return false;\n }\n return res;\n }\n };\n Object.defineProperty($schema, 'fieldRequired', {\n configurable: true,\n enumerable: true,\n get: function () {\n return vm.schema_required;\n }\n });\n }\n // }\n }\n else {\n $schema.fieldRequired = schema.fieldRequired;\n }\n }\n }\n /*\n obj.$validate = function(value: any) {\n if (value === undefined) {\n value = parent[propName];\n }\n const err = validate(obj, value);\n if (err) {\n return (vm.error = getRuleMessage(schema, err, value, $schema));\n } else {\n return (vm.error = null);\n }\n };\n */\n // console.log('rule time', propName, (new Date()).getTime() - ruletime);\n obj.$reset = function () {\n dirty = false;\n vm.error = null;\n };\n if (!computedOnly) {\n if (schema.type === 'object') {\n var schemaprops_1 = schema.properties;\n if (schemaprops_1) {\n var mparent_1 = parent[propName];\n if (mparent_1 === undefined) {\n // console.log('recreate', propName);\n var defvalue = JSchema_1.defaultValue(schema, true);\n // console.log('recreate array',propName,defvalue);\n // Vue.set(parent, propName, defvalue);\n Vue.set(parent, propName, defvalue);\n mparent_1 = parent[propName];\n }\n var required = schema.required || [];\n var cacheProp_1 = {};\n var _loop_1 = function (key) {\n if (schemaprops_1.hasOwnProperty(key)) {\n var element_1 = schemaprops_1[key];\n if (element_1.fieldRequired === undefined) {\n element_1.fieldRequired = required.indexOf(key) > -1;\n }\n // setTimeout(function() {\n // self.wrapProperty(obj, mparent, key, element);\n // let proptime = (new Date()).getTime();\n if (this_1.options.wrapAll) {\n var prop = (obj[key] = self.wrapProperty(obj, mparent_1, key, element_1));\n if (dirty) {\n prop.$dirty = true;\n }\n }\n else {\n Object.defineProperty(obj, key, {\n enumerable: true,\n get: function () {\n var prop = cacheProp_1[key];\n if (prop === undefined) {\n prop = cacheProp_1[key] = self.wrapProperty(obj, mparent_1, key, element_1);\n if (dirty) {\n prop.$dirty = true;\n }\n }\n return prop;\n }\n });\n // console.log('prop time 1', key, (new Date()).getTime() - proptime);\n // trzeba utworzyć tabele jeśli są undefined w modelu\n if (element_1.type === 'array' || mparent_1[key] === undefined || anyCalc(element_1)) {\n // if (anyCalc(element)) {\n cacheProp_1[key] = self.wrapProperty(obj, mparent_1, key, element_1);\n }\n }\n // console.log('prop time', key, (new Date()).getTime() - proptime);\n }\n };\n var this_1 = this;\n for (var key in schemaprops_1) {\n _loop_1(key);\n }\n // Object.defineProperties(obj, {\n // $validateAll:\n // });\n /*\n \n Object.defineProperties(obj, {\n $validateAll: {\n value: (result: any[]) => {\n if (result === undefined) {\n result = [];\n }\n \n for (const key in schemaprops) {\n obj[key].$validateAll(result);\n }\n return result;\n }\n },\n $validateSection: {\n value: (section: string, result: any[]) => {\n if (result === undefined) {\n result = [];\n }\n \n for (const key in schemaprops) {\n obj[key].$validateSection(section, result);\n }\n return result;\n }\n }\n });\n \n */\n obj.$validateAll = function (result) {\n if (result === undefined) {\n result = [];\n }\n dirty = true;\n for (var key in schemaprops_1) {\n obj[key].$validateAll(result);\n }\n return result;\n };\n obj.$validateSection = function (section, result) {\n if (result === undefined) {\n result = [];\n }\n for (var key in schemaprops_1) {\n obj[key].$validateSection(section, result);\n }\n return result;\n };\n obj.$validate = function (value) {\n dirty = true;\n if (obj.$isRoot) {\n // self.startDirty = true;\n self.options.startDirty = true;\n }\n return null;\n if (value === undefined) {\n value = mparent_1;\n }\n };\n obj.$reset = function () {\n for (var key in cacheProp_1) {\n var prop = cacheProp_1[key];\n if (prop !== undefined) {\n prop.$reset();\n }\n }\n dirty = false;\n if (obj.$isRoot) {\n self.options.startDirty = false;\n }\n vm.error = null;\n };\n obj.$setData = function (value, path2, fixArraySize) {\n return JSchema_1.setData(schema, mparent_1, value, path2, 0, self.Vue, fixArraySize);\n };\n }\n }\n else if (schema.type === 'array') {\n var schitems_1 = schema.items;\n if (schitems_1 !== undefined) {\n if (self.arrayAsObject) {\n reactivedata.items = {};\n }\n else {\n // reactivedata.items = [];\n }\n // przeniesiono do get $items\n if (true) {\n /*\n const deep = schitems.type !== 'object';\n if (deep) {\n console.log('$watch deep', propName);\n }\n */\n useComputedModel = true;\n watch.items = {\n // deep,\n handler: function (newValue) {\n // console.log('watch $items ' + propName);\n /*\n if ($schema.fieldRequired) {\n if (newValue === null || newValue.length === 0) {\n this.error = getRuleMessage(schema, 'required', newValue, $schema);\n return;\n }\n }\n */\n if (schema.debug) {\n debugger;\n }\n dirty = true;\n // if (dirty) {\n obj.$validate(parent[propName]);\n // }\n /*\n const vvv = validate(obj, newValue);\n if (vvv) {\n this.error = getRuleMessage(schema, vvv, newValue, $schema);\n } else {\n this.error = null;\n }\n */\n // console.log(\"validate array \"+propName,vvv);\n }\n };\n }\n var usesubitem_1 = true;\n var subitemcache_1 = [];\n var mparent_2 = parent[propName];\n if (mparent_2 === undefined) {\n // Vue.set(parent, propName, []);\n // mparent = parent[propName];\n var defvalue = JSchema_1.defaultValue(schema, true);\n // console.log('recreate array',propName,defvalue);\n Vue.set(parent, propName, defvalue);\n mparent_2 = parent[propName];\n }\n // initial validate\n // obj.$validate(mparent);\n // wypelnianie tabeli mozna opoznic\n var mlength_1 = mparent_2.length;\n if (mlength_1 && !self.options.disableCalculations && !self.options.wrapAll) {\n var needCalc = anyCalc(schitems_1);\n var props = schitems_1.properties;\n if (needCalc && props) {\n // są jakieś pola wymagające kalkulacji\n // $root,$parent,$parent2,$parent3,$external,$methods,$obj\n var paramdata = [root.$model, mparent_2, {}, {}, self.external, schemaMethods_1.default, , null];\n if (dest) {\n calcargs[2] = dest.$parent;\n if (dest.$parent) {\n calcargs[3] = dest.$parent.$parent;\n }\n }\n // let props = schitems.properties;\n for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) {\n var schkey = _a[_i];\n var schitem = props[schkey];\n if (schitem.calc) {\n var stime = new Date().getTime();\n var calcFunc = JSchema_1.calcFunction(schitem, true);\n var $mparent = {\n $parent: obj,\n $key: 0\n };\n paramdata[6] = { $key: schkey, $parent: $mparent };\n try {\n // for (let i = 0; i < mlength; i++) {\n // paramdata[6].$parent.$key = i;\n for (; $mparent.$key < mlength_1; $mparent.$key++) {\n var res = calcFunc.apply(mparent_2[$mparent.$key], paramdata);\n if (res !== undefined) {\n Vue.set(mparent_2[$mparent.$key], schkey, res);\n }\n // mparent[$mparent.$key][schkey] = calcFunc.apply(mparent[$mparent.$key], paramdata);\n }\n }\n catch (err) {\n if (process.env.NODE_ENV === 'development') {\n console.error('ERR calc:model result', err);\n }\n // moze się wywalić wiec spokojnie\n continue;\n }\n // console.log(`calc ${schkey} in ${propName}[${mlength}]`, new Date().getTime() - stime);\n }\n else if (schitem.aggregate) {\n if (process.env.NODE_ENV === 'development') {\n console.time('agg:model ' + path(this) + '[].' + schkey);\n // console.info('agg:model', new Date().getTime() - stime);\n }\n var stime = new Date().getTime();\n var aggFunc = JSchema_1.aggregateFunction(schitem, true);\n var $mparent = {\n $parent: obj,\n $key: 0\n };\n paramdata[6] = { $key: schkey, $parent: $mparent };\n try {\n // for (let i = 0; i < mlength; i++) {\n // paramdata[6].$parent.$key = i;\n for (; $mparent.$key < mlength_1; $mparent.$key++) {\n var res = aggFunc.apply(mparent_2[$mparent.$key], paramdata);\n // mparent[$mparent.$key][schkey] = res;\n if (res !== undefined) {\n Vue.set(mparent_2[$mparent.$key], schkey, res);\n }\n // mparent[$mparent.$key][schkey] = calcFunc.apply(mparent[$mparent.$key], paramdata);\n }\n if (process.env.NODE_ENV === 'development') {\n console.timeEnd('agg:model ' + path(this) + '[].' + schkey);\n // console.info('agg:model', new Date().getTime() - stime);\n }\n }\n catch (err) {\n if (process.env.NODE_ENV === 'development') {\n console.error('ERR calc:model result', err);\n }\n // moze się wywalić wiec spokojnie\n continue;\n }\n }\n // if (schitems.calc) || (schitem.summary) || (schitem.agg)\n }\n }\n }\n var propcache_1 = {};\n var ntable_1 = [];\n var addRow_1 = function (rowIndex) {\n var ssubitem = new Object();\n // const ssubitem: any = { $key: rowIndex };\n // let subitem: any;\n Object.defineProperties(ssubitem, {\n $key: {\n writable: true,\n /*\n get() {\n return rowIndex;\n },\n set(newValue) {\n rowIndex = newValue;\n if (subitem) {\n subitem.$key = newValue;\n }\n }\n */\n value: rowIndex\n },\n $item: {\n // value: self.wrapProperty(obj, mparent, ff, schema.items as JSONSchema),\n get: function () {\n var _this = this;\n var subitem = subitemcache_1[this.$key];\n if (subitem === undefined) {\n // let stime = (new Date()).getTime();\n // console.log('get $item');\n subitemcache_1[this.$key] = subitem = self.wrapProperty(obj, mparent_2, this.$key, schitems_1);\n // subitem = self.wrapProperty(obj, mparent, this.$key, schitems);\n Object.defineProperties(subitem, {\n $removeRow: {\n value: function () { return obj.$removeRow(_this.$key); }\n },\n $moveUp: {\n value: function () { return obj.$moveUp(_this.$key); }\n },\n $moveDown: {\n value: function () { return obj.$moveDown(_this.$key); }\n },\n $clear: {\n value: function () { return obj.$clearRow(_this.$key); }\n }\n });\n /*\n \n subitem.$removeRow = function() {\n obj.$removeRow(this.$key);\n };\n subitem.$moveUp = function() {\n obj.$moveUp(this.$key);\n };\n subitem.$moveDown = function() {\n obj.$moveDown(this.$key);\n };\n subitem.$clear = function() {\n obj.$clearRow(this.$key);\n };\n */\n // console.log(\"wrap\",propName,this.$key,((new Date()).getTime()-stime)+\"ms\")\n // console.log(\"newsubitem\",i,subitem.$key);\n }\n else {\n // console.log(\"cachedsubitem\",this.$key,subitem.$key);\n }\n return subitem;\n }\n }\n });\n /*\n if (needCalc) {\n subitemcache[ff] = self.wrapProperty(obj, mparent, ff, schitems);\n }\n */\n ntable_1.push(ssubitem);\n if (self.options.wrapAll) {\n var a = ssubitem.$item;\n }\n };\n var clearCached_1 = function () {\n // destroy\n for (var i = 0; i < subitemcache_1.length; i++) {\n var item = subitemcache_1[i];\n if (item !== undefined) {\n item.$destroy();\n }\n }\n subitemcache_1 = [];\n };\n // tworzenie tablicy\n if (true) {\n this.runAsync(function () {\n var stime = new Date().getTime();\n for (var i = 0; i < mlength_1; i++) {\n /*\n \n if (self.arrayAsObject) {\n Object.defineProperty(reactivedata.items, i, {\n enumerable: true,\n configurable: true,\n get() {\n let subitem = propcache[i];\n if (subitem !== undefined) return subitem;\n console.log(\"get array item\", i);\n if (i < mparent.length) {\n subitem = self.wrapProperty(obj, mparent, i, schema.items);\n subitem.$removeRow = function () {\n obj.$removeRow(this.$key);\n }\n return propcache[i] = subitem;\n }\n }\n })\n \n \n } else {\n */\n if (usesubitem_1) {\n addRow_1(i);\n }\n else {\n var subitem = self.wrapProperty(obj, mparent_2, i, schitems_1);\n subitem.$removeRow = function () {\n obj.$removeRow(this.$key);\n };\n // reactivedata.items.push(subitem);\n ntable_1.push(subitem);\n }\n }\n // reactivedata.items = ntable;\n // console.log('reactivedata.items', ntable);\n // console.log('wraptable', obj.$path, (new Date()).getTime() - stime, ntable.length);\n });\n computed.items = function () {\n // tylko po to eby reagował na zmiany\n var smodel = parent[propName];\n // console.log('get computed ntable', ntable.length);\n /*\n console.log('watch $items');\n if (schema.required) {\n if (smodel === null || smodel.length === 0) {\n vm.error = getRuleMessage(schema, 'required', smodel);\n return;\n }\n }\n const vvv = validate(obj, smodel);\n if (vvv) {\n vm.error = getRuleMessage(schema, vvv, smodel);\n } else {\n vm.error = null;\n }\n */\n // automatyczne rozszerzanie\n var l = smodel.length;\n // console.log('mparent.length', mparent.length);\n if (l > ntable_1.length) {\n // console.log('autogrow', l, ntable.length);\n while (ntable_1.length < l) {\n // console.log('auto add ntable', ntable.length);\n JSchema_1.fixData(schitems_1, smodel[ntable_1.length], self.Vue);\n addRow_1(ntable_1.length);\n }\n }\n else if (l < ntable_1.length) {\n // console.log('autoremove', l, ntable.length);\n clearCached_1();\n ntable_1.length = l;\n // ntable = [];\n // for (let i = 0; i < mlength; i++) {\n // addRow(i);\n // }\n }\n return ntable_1;\n // return [];\n };\n }\n var cachedItems_1;\n var cachedKey_1 = '';\n /*\n \n Object.defineProperties(obj, {\n $validateAll: {\n value: (result: any[]) => {\n if (result === undefined) {\n result = [];\n }\n if (obj.$validate(mparent) !== null) {\n result.push(obj);\n }\n \n for (let i = 0; i < ntable.length; i++) {\n let propRes = ntable[i].$item.$validateAll(result);\n }\n return result;\n }\n },\n $validateSection: {\n value: (section: string, result: any[]) => {\n if (result === undefined) {\n result = [];\n }\n \n if (section === formSection && obj.$validate(mparent) !== null) {\n result.push(obj);\n }\n \n for (let i = 0; i < ntable.length; i++) {\n let propRes = ntable[i].$item.$validateSection(section, result);\n }\n return result;\n }\n }\n });\n */\n obj.$validateAll = function (result) {\n if (result === undefined) {\n result = [];\n }\n if (obj.$validate(mparent_2) !== null) {\n result.push(obj);\n }\n for (var i = 0; i < ntable_1.length; i++) {\n var propRes = ntable_1[i].$item.$validateAll(result);\n }\n return result;\n };\n obj.$validateSection = function (section, result) {\n if (result === undefined) {\n result = [];\n }\n if (section === formSection && obj.$validate(mparent_2) !== null) {\n result.push(obj);\n }\n for (var i = 0; i < ntable_1.length; i++) {\n var propRes = ntable_1[i].$item.$validateSection(section, result);\n }\n return result;\n };\n obj.$validate = function (value) {\n if (value === undefined) {\n value = mparent_2;\n }\n if (value === undefined || value === null) {\n if ($schema.fieldRequired) {\n return (vm.error = getRuleMessage(schema, 'required', value, $schema));\n }\n else {\n return (vm.error = null);\n }\n }\n var err = validate(obj, value);\n if (err) {\n return (vm.error = getRuleMessage(schema, err, value, $schema));\n // return (vm.error = err);\n }\n else {\n return (vm.error = null);\n }\n };\n obj.$reset = function () {\n for (var i = 0; i < mparent_2.length; i++) {\n var subitem = subitemcache_1[i];\n if (subitem !== undefined) {\n subitem.$reset();\n }\n }\n dirty = false;\n vm.error = null;\n };\n obj.$setData = function (value, path2, fixArraySize) {\n return JSchema_1.setData(schema, mparent_2, value, path2, 0, self.Vue, fixArraySize);\n };\n obj.$addRow = function (nvalue, count) {\n if (count === void 0) { count = 1; }\n // let mparent2: any = parent[propName];\n var mparent2 = mparent_2;\n cachedKey_1 = '';\n if (mparent2 === undefined) {\n // Vue.set(parent, propName, []);\n var defvalue = JSchema_1.defaultValue(schema, true);\n // console.log('recreate array',propName,defvalue);\n Vue.set(parent, propName, defvalue);\n mparent2 = parent[propName];\n }\n if ($schema.length !== undefined && mparent2.length === $schema.length) {\n return false;\n }\n var startindex = mparent2.length;\n for (var i = 0; i < count; i++) {\n // let nvalue2 = nvalue || {};\n var nvalue2 = null;\n if (schitems_1.type === 'object') {\n nvalue2 = JSchema_1.defaultValue(schitems_1, true);\n // console.log('addRow default', propName, nvalue2);\n if (nvalue) {\n nvalue2 = Object.assign(nvalue2, nvalue);\n }\n mparent2.push(nvalue2);\n }\n else {\n if (nvalue !== undefined) {\n nvalue2 = nvalue;\n }\n else {\n nvalue2 = JSchema_1.defaultValue(schitems_1, true);\n }\n Vue.set(mparent2, startindex, nvalue2);\n if (process.env.NODE_ENV === 'development') {\n console.log('vue set array item', startindex, nvalue2, mparent2.length);\n }\n // mparent2.push(nvalue2);\n }\n // const nvalue2 = nvalue !== undefined ? JSON.parse(JSON.stringify(nvalue)) : {};\n // let index = mparent.length - 1;\n // opóźnij\n }\n self.runAsync(function () {\n // let stime=(new Date()).getTime();\n var temparr = [];\n var _loop_2 = function (i) {\n if (self.arrayAsObject) {\n Object.defineProperty(reactivedata.items, startindex + i, {\n enumerable: true,\n configurable: true,\n get: function () {\n var subitem = propcache_1[i];\n if (subitem !== undefined) {\n return subitem;\n }\n if (process.env.NODE_ENV === 'development') {\n console.log('get array items', i);\n }\n if (startindex + i < mparent_2.length) {\n subitem = self.wrapProperty(obj, mparent2, startindex + i, schitems_1);\n subitem.$removeRow = function () {\n obj.$removeRow(this.$key);\n };\n subitem.$moveUp = function () {\n obj.$moveUp(this.$key);\n };\n subitem.$moveDown = function () {\n obj.$moveDown(this.$key);\n };\n subitem.$clear = function () {\n obj.$clearRow(this.$key);\n };\n return (propcache_1[i] = subitem);\n }\n }\n });\n }\n else {\n if (usesubitem_1) {\n addRow_1(startindex + i);\n }\n else {\n var subitem = self.wrapProperty(obj, mparent2, startindex + i, schitems_1);\n subitem.$removeRow = function () {\n obj.$removeRow(this.$key);\n };\n // reactivedata.items.push(subitem);\n temparr.push(subitem);\n }\n }\n };\n for (var i = 0; i < count; i++) {\n _loop_2(i);\n }\n });\n return true;\n };\n obj.$removeRow = function (index) {\n // usuwanie i reindex\n // let index = obj.$key;\n // const stime = new Date().getTime();\n if (process.env.NODE_ENV === 'development') {\n console.time('$removeRow');\n }\n var modeltable = mparent_2;\n var schematable = vm.items;\n cachedKey_1 = '';\n if (self.arrayAsObject) {\n modeltable.splice(index, 1);\n for (var i = index; i < modeltable.length; i++) {\n if (propcache_1[i] !== undefined) {\n var nvalue = propcache_1[i + 1];\n if (nvalue !== undefined) {\n if (process.env.NODE_ENV === 'development') {\n console.log('propcache', i, nvalue);\n }\n nvalue.$key = i;\n }\n propcache_1[i] = nvalue;\n }\n }\n delete propcache_1[modeltable.length];\n // Vue.delete(reactivedata.items,modeltable.length);\n delete reactivedata.items[modeltable.length];\n }\n else {\n // console.log(modeltable.length,schematable.length,subitemcache.length);\n // console.log(JSON.stringify(subitemcache.map(x=>x.$key)));\n if (usesubitem_1) {\n // schematable.splice(index, 1);\n if ($schema.length !== undefined && ntable_1.length === $schema.length) {\n return false;\n }\n ntable_1.splice(index, 1);\n // onsole.log(modeltable.length,schematable.length,subitemcache.length);\n // console.log(JSON.stringify(subitemcache.map(x=>x.$key)));\n subitemcache_1.splice(index, 1);\n // console.log(modeltable.length,schematable.length,subitemcache.length);\n // console.log(JSON.stringify(subitemcache.map(x=>x.$key)));\n var l = schematable.length;\n for (var i = index; i < l; i++) {\n ntable_1[i].$key = i;\n if (subitemcache_1[i] !== undefined) {\n subitemcache_1[i].$key = i;\n }\n // console.log(`schematable[${i}].$item`, ntable[i].$item);\n }\n // console.timeEnd('$removeRow');\n modeltable.splice(index, 1); // bo na tym jest event ?\n // console.log(JSON.stringify(subitemcache.map(x=>x.$key)));\n if (false) {\n if (modeltable.length === 0 && $schema.minItems !== undefined && $schema.minItems > 0) {\n obj.$addRow(undefined, 1 /* $schema.minLength - modeltable.length */);\n }\n }\n }\n else {\n modeltable.splice(index, 1);\n schematable.splice(index, 1);\n for (var i = index; i < schematable.length; i++) {\n schematable[i].$key = i;\n }\n }\n }\n if (process.env.NODE_ENV === 'development') {\n console.timeEnd('$removeRow');\n }\n };\n obj.$clearRow = function (index) {\n var nitem = JSchema_1.defaultValue(schema);\n if (subitemcache_1[index] !== undefined) {\n subitemcache_1[index].$destroy();\n subitemcache_1[index] = undefined;\n }\n Vue.set(mparent_2, index, nitem);\n };\n obj.$exchangeRow = function (index1, index2) {\n cachedKey_1 = '';\n if (process.env.NODE_ENV === 'development') {\n console.time(\"$exchangeRow(\" + index1 + \",\" + index2 + \")\");\n }\n var item1 = mparent_2[index1];\n var item2 = mparent_2[index2];\n if (subitemcache_1[index1] !== undefined) {\n subitemcache_1[index1].$destroy();\n subitemcache_1[index1] = undefined;\n }\n if (subitemcache_1[index2] !== undefined) {\n subitemcache_1[index2].$destroy();\n subitemcache_1[index2] = undefined;\n }\n Vue.set(mparent_2, index1, item2);\n Vue.set(mparent_2, index2, item1);\n // mparent[index1] = item2;\n // mparent[index2] = item1;\n if (process.env.NODE_ENV === 'development') {\n console.timeEnd(\"$exchangeRow(\" + index1 + \",\" + index2 + \")\");\n }\n // console.log('exchanged', index1, index2);\n };\n obj.$moveUp = function (index) {\n if (index > 0) {\n obj.$exchangeRow(index, index - 1);\n }\n };\n obj.$moveDown = function (index) {\n if (index < mparent_2.length - 1) {\n obj.$exchangeRow(index, index + 1);\n }\n };\n obj.$sort = function (field) {\n // let stime = new Date().getTime();\n if (process.env.NODE_ENV === 'development') {\n console.time(\"$sort(\" + propName + \",\" + field + \")\");\n }\n cachedKey_1 = '';\n mparent_2 = parent[propName].sort(function (a, b) { return (b[field] === a[field] ? 0 : b[field] > a[field] ? -1 : 1); });\n // mparent = parent[propName] = narray;\n // destroy\n clearCached_1();\n if (process.env.NODE_ENV === 'development') {\n console.timeEnd(\"$sort(\" + propName + \",\" + field + \")\");\n console.log(\" [0].\" + field + \"=\" + mparent_2[0][field] + (\", [\" + (mparent_2.length - 1) + \"].\" + field) + (\"=\" + mparent_2[mparent_2.length - 1][field]));\n }\n // tslint:disable-next-line: max-line-length\n // console.log('sorting', propName, field, new Date().getTime() - stime, mparent[0][field], mparent[mparent.length - 1][field]);\n };\n // vm.data.order = '';\n // reactivedata.data.order = '';\n Vue.set(obj.$data, 'order', '');\n // obj.$data.order = '';\n Object.defineProperties(obj, {\n pageNumber: {\n get: function () {\n // @ts-ignore\n // return vm.data['pageNumber'] || 0;\n // return vm.data.pageNumber || 0;\n return obj.$data.pageNumber || 0;\n },\n set: function (newValue) {\n if (newValue < 0) {\n Vue.set(obj.$data, 'pageNumber', 0);\n }\n else if (newValue >= this.pageCount) {\n if (process.env.NODE_ENV === 'development') {\n console.log('overflow pagenumber', newValue, this.pageCount - 1);\n }\n Vue.set(obj.$data, 'pageNumber', this.pageCount - 1);\n }\n else {\n Vue.set(obj.$data, 'pageNumber', newValue);\n }\n }\n },\n pageSize: {\n get: function () {\n return obj.$data.pageSize;\n // return vm.data['pageSize'] || 0;\n },\n set: function (newValue) {\n Vue.set(obj.$data, 'pageSize', newValue);\n if (this.pageNumber >= this.pageCount) {\n this.pageNumber = this.pageCount - 1;\n }\n }\n },\n pageCount: {\n get: function () {\n var smodel = parent[propName];\n return Math.ceil(smodel.length / this.pageSize);\n }\n },\n order: {\n get: function () {\n return obj.$data.order;\n },\n set: function (newValue) {\n Vue.set(obj.$data, 'order', newValue);\n }\n }\n });\n obj.$filter = function (func) {\n if (func) {\n return ntable_1.filter(func);\n }\n return ntable_1;\n };\n obj.$getItems = function (start, count) {\n // console.log('dssdfsdfs');\n var mparent2 = parent[propName];\n start = start || 0;\n if (count && obj.pageSize !== count) {\n // console.log('set pageSize', count);\n obj.pageSize = count;\n }\n var end = count;\n if (end === undefined) {\n end = mparent2.length;\n }\n else {\n end += start;\n if (end >= mparent2.length) {\n end = mparent2.length;\n }\n }\n var stime = new Date().getTime();\n var res = [];\n if (usesubitem_1) {\n var order_1 = obj.order;\n var nkey = start + \"|\" + end + \"|\" + order_1;\n if (nkey === cachedKey_1) {\n // console.log('return cached data', new Date().getTime() - stime);\n return cachedItems_1;\n }\n if (order_1) {\n if (process.env.NODE_ENV === 'development') {\n console.time(\"$getItems.order('\" + order_1 + \"',\" + start + \",\" + end + \")\");\n }\n // let stime = new Date().getTime();\n var otable = Array.from(ntable_1);\n otable.sort(function (a, b) { return (mparent2[b.$key][order_1] === mparent2[a.$key][order_1] ? 0 : mparent2[b.$key][order_1] > mparent2[a.$key][order_1] ? -1 : 1); });\n // console.log('order by', (new Date()).getTime() - stime, order, otable[0].$item, ntable[0].$item);\n // tslint:disable-next-line: max-line-length\n // let narray = parent[propName].sort((a: any, b: any) => (b[field] === a[field]) ? 0 : (b[field] > a[field]) ? -1 : 1);\n for (var i = start; i < end; i++) {\n res.push(otable[i].$item);\n }\n if (process.env.NODE_ENV === 'development') {\n console.time(\"$getItems.order('\" + order_1 + \"',\" + start + \",\" + end + \")\");\n }\n // console.log('return ordered data', new Date().getTime() - stime);\n }\n else {\n if (process.env.NODE_ENV === 'development') {\n console.time(\"$getItems(\" + start + \",\" + end + \")\");\n }\n // console.log('not ordered', ntable[0].$item);\n for (var i = start; i < end; i++) {\n res.push(ntable_1[i].$item);\n }\n if (process.env.NODE_ENV === 'development') {\n console.timeEnd(\"$getItems(\" + start + \",\" + end + \")\");\n }\n }\n cachedItems_1 = res;\n cachedKey_1 = nkey;\n // const aa: any[] = this.$items as WrappedProperty[];\n // console.log(\"$getItems\",start,end,res.length,aa.length);\n // console.log(\"$getItems\", propName, start, end, res.length, (new Date()).getTime() - stime);\n // return res;\n // res = reactivedata.items.slice(start, end).map((x: any) => x.$item);\n }\n else {\n res = reactivedata.items.slice(start, end);\n }\n // console.log('$getItems.slide', (new Date()).getTime() - stime, res);\n return res;\n // return\n };\n obj.$getPage = function (page, pageSize) {\n if (pageSize === void 0) { pageSize = 25; }\n // console.log('get page');\n return this.$getItems(page * pageSize, pageSize);\n };\n // length\n wrapValidRule('length', function (newValue) {\n console.log('length newValue', newValue);\n schema.length = newValue;\n var stable = parent[propName];\n if (stable.length !== newValue) {\n while (stable.length > newValue) {\n obj.$removeRow(stable.length - 1);\n }\n while (stable.length < newValue) {\n // obj.$addRow(undefined, 1);\n obj.$addRow(undefined, newValue - stable.length);\n }\n }\n return newValue;\n });\n }\n }\n else {\n var mvalue = parent[propName];\n // console.log('current value', propName, JSON.stringify(mvalue));\n if (mvalue === undefined) {\n Vue.set(parent, propName, JSchema_1.defaultValue(schema, true));\n // parent[propName] = defaultValue(schema, true);\n // console.log('current value fixed', propName, parent);\n }\n obj.$setData = function (value) {\n Vue.set(parent, propName, value);\n return true;\n // return setData(schema, mparent, value, path, 0, self.Vue);\n };\n }\n }\n // tworzenie funkcji walidującej\n if (!self.options.disableValidations && schema.validFunc) {\n need$root = true;\n var ff_4 = schema.validFuncCompiled;\n if (ff_4 === undefined) {\n var stext = schema.validFunc;\n if (stext.indexOf('$root') > -1) {\n need$root = true;\n }\n if (stext.indexOf('$parent') > -1) {\n need$root = true;\n stext = stext.replace(/\\$parent\\.\\$parent\\.\\$parent\\./g, '$parent3.');\n stext = stext.replace(/\\$parent\\.\\$parent\\./g, '$parent2.');\n stext = stext.replace(/\\$parent\\./g, '$parent.');\n }\n if (stext.indexOf('{') === -1) {\n stext = \"{$result=(\" + stext + \")}\";\n }\n var ffunc = \"var $value=this.\" + propName + \";var $result=null;\" + stext + \";\";\n // ffunc+=`${}`;\n // ffunc += 'with($data) {';\n // ffunc += `with(parent) ${stext};`;\n // ffunc += '};';\n // ffunc += `console.log('validFuncResult','${propName}',$result);`;\n ffunc += 'return $result;';\n // schema.validFuncCompiled = ff = new Function('$data', 'parent', 'propName', ffunc);\n schema.validFuncCompiled = ff_4 = new Function(JSchema_1.funcParams, ffunc);\n }\n computed.validFunc = {\n get: function () {\n // var $value=parent[propName];\n // const funcvalue = ff(this._data, parent, propName);\n var funcvalue = ff_4.apply(parent, calcargs);\n if (funcvalue === true || funcvalue === undefined) {\n return null;\n }\n if (funcvalue === false) {\n return 'validFunc';\n }\n return funcvalue;\n }\n };\n /*\n watch.validFunc = function (newValue) {\n console.log('validFuncResult', newValue);\n };\n */\n }\n if (!self.options.disableCalculations) {\n // tworzenie funkcji wyliczjącej wartośc na podstawie innych pól\n if (schema.calc) {\n dirty = true;\n need$root = true;\n var calcFunc_1 = JSchema_1.calcFunction(schema, true);\n computed.calc = {\n get: function () {\n // if (schema.calc ==='this.Dotacja + this.SrodkiWlasne + this.WkladOsobowy + this.WkladRzeczowy + 5')\n if (process.env.NODE_ENV === 'development') {\n if (schema.debug) {\n debugger;\n }\n var res = calcFunc_1.apply(parent, calcargs);\n // tslint:disable-next-line: max-line-length\n // if (res === undefined || (isNaN(res) && (schema.type == 'number' || schema.type === 'integer' || schema.type === 'money'))) {\n if ((res === undefined && schema.calc.when === undefined && schema.calc.indexOf('undefined') === -1) || res === NaN) {\n console.error('ERR calc result=', res, propName, schema.calc);\n }\n return res;\n }\n else {\n return calcFunc_1.apply(parent, calcargs);\n }\n }\n };\n // computed.calc = calcFunc;\n }\n // tworzenie funkcji sumującej wartość z tablicy\n if (schema.summary) {\n schema.aggregate = {\n func: 'sum',\n array: schema.summary.array,\n property: schema.summary.property,\n when: schema.summary.when,\n if: schema.summary.if,\n delay: schema.summary.delay\n };\n delete schema.summary;\n }\n // tworzenie funkcji sumującej wartość z tablicy\n if (schema.aggregate) {\n need$root = true;\n dirty = true;\n var aggregateFunc_1 = JSchema_1.aggregateFunction(schema, true);\n // if (schema.aggregate.async) {\n if (schema.aggregate.delay) {\n // if (false) {\n setTimeout(function () {\n // console.log('delayed create aggregate',obj.$path);\n var asyncVm = new Vue({\n computed: {\n aggregate: {\n get: function () {\n // console.log('delayed run aggregate', obj.$path);\n if (process.env.NODE_ENV === 'development') {\n if (schema.debug) {\n debugger;\n }\n var res = aggregateFunc_1.apply(parent, calcargs);\n if (res === undefined || res === NaN) {\n console.error('ERR aggregate:delay result=', res, propName, schema.calc);\n }\n return res;\n }\n else {\n return aggregateFunc_1.apply(parent, calcargs);\n }\n }\n }\n },\n watch: {\n aggregate: function (newValue) {\n Vue.set(parent, propName, newValue);\n }\n }\n });\n _this.vueInstances.push(asyncVm);\n }, schema.aggregate.delay);\n }\n else {\n computed.aggregate = {\n get: function () {\n if (process.env.NODE_ENV === 'development') {\n if (schema.debug) {\n debugger;\n }\n var res = aggregateFunc_1.apply(parent, calcargs);\n if (res === undefined || res === NaN) {\n console.error('ERR aggregate result', res, propName, schema.calc);\n }\n return res;\n }\n else {\n return aggregateFunc_1.apply(parent, calcargs);\n }\n // return aggregateFunc()\n }\n };\n }\n }\n }\n if (need$root) {\n if (self.external) {\n // extraData = Object.assign({}, this.external);\n // extraData.$external = self.external;\n calcargs[4] = self.external;\n // console.log('set external', self.external);\n }\n calcargs[5] = schemaMethods_1.default;\n calcargs[6] = obj;\n calcargs[0] = root.$model;\n /*\n Object.defineProperty(calcargs, 0, {\n get() {\n return root.$model;\n }\n });\n */\n /*\n Object.defineProperty(extraData, '$root', {\n get() {\n return root.$model;\n }\n });\n */\n if (dest && dest.$parent !== undefined) {\n /*\n Object.defineProperty(extraData, '$parent', {\n get() {\n return (dest.$parent as WrappedProperty).$model;\n }\n });\n */\n calcargs[1] = dest.$parent.$model;\n if (dest.$parent.$parent) {\n /*\n Object.defineProperty(extraData, '$parent2', {\n get() {\n return ((dest.$parent as WrappedProperty).$parent as WrappedProperty).$model;\n }\n });\n */\n calcargs[2] = dest.$parent.$parent.$model;\n if (dest.$parent.$parent.$parent) {\n calcargs[3] = dest.$parent.$parent.$parent.$model;\n }\n else {\n // extraData.$parent3 = {};\n calcargs[3] = {};\n }\n }\n else {\n // extraData.$parent2 = extraData.$parent3 = {};\n calcargs[2] = calcargs[3] = {};\n }\n }\n else {\n // extraData.$parent = extraData.$parent2 = extraData.$parent3 = {};\n calcargs[1] = calcargs[2] = calcargs[3] = {};\n }\n }\n var svalueGetFunc = null;\n var svalueSetFunc = null;\n switch (schema.type) {\n case 'number':\n case 'integer':\n case 'money':\n obj.$validateAll = function (result) {\n if (obj.$validate() !== null) {\n result.push(obj);\n }\n return result;\n };\n obj.$validateSection = function (section, result) {\n if (section === formSection && obj.$validate() !== null) {\n result.push(obj);\n }\n return result;\n };\n obj.$validate = function (value) {\n if (value === undefined) {\n value = parent[propName];\n }\n dirty = true;\n if (value === null) {\n if (!typeok) {\n return (vm.error = getRuleMessage(schema, 'type', value, $schema));\n }\n if ($schema.fieldRequired) {\n return (vm.error = getRuleMessage(schema, 'required', value, $schema));\n }\n else {\n return (vm.error = null);\n }\n }\n var ivalue = +value;\n var err = validate(obj, ivalue);\n if (err) {\n return (vm.error = getRuleMessage(schema, err, ivalue, $schema));\n // return (vm.error = err);\n }\n else {\n return (vm.error = null);\n }\n };\n reactivedata.stringValue = null;\n svalueGetFunc = function () {\n // if (propName =='cena') {\n // console.log('computed.model cena',parent);\n // }\n var ivalue = parent[propName];\n // let ivalue = obj.$model;\n if (dirty) {\n obj.$validate(ivalue);\n }\n if (ivalue === null) {\n if (vm.stringValue !== undefined && vm.stringValue !== null) {\n return vm.stringValue;\n }\n else {\n return '';\n }\n }\n if (isNaN(+ivalue)) {\n ivalue = 0;\n }\n // const err = validate(obj, ivalue);\n // if (obj.$path === 'LiczbaOdbiorcowZadania') {\n // console.log('validate ', JSON.stringify(ivalue), JSON.stringify(err));\n // }\n // vm.error = err ? getRuleMessage(schema, err, ivalue, $schema) : null;\n // let svalue = (\"\"+self.mround(ivalue)).replace(\".\",\",\");\n var svalue = '';\n switch ($schema.type) {\n case 'number':\n svalue = fmoney_1.default(ivalue, false, $schema.precision || 8);\n break;\n case 'money':\n svalue = fmoney_1.default(ivalue, false, $schema.precision || 2);\n break;\n case 'integer':\n svalue = fmoney_1.default(ivalue, false, 0);\n break;\n }\n // console.log($schema.type + 'Computed(get)', propName, JSON.stringify(svalue), err);\n return svalue;\n };\n svalueSetFunc = function (newValue) {\n typeok = true;\n var ivalue = null;\n if (self.options.dirtyOnInput) {\n dirty = true;\n }\n // console.log('set model', JSON.stringify(newValue));\n if (newValue === '' || newValue == null) {\n if (dirty && $schema.fieldRequired) {\n vm.error = getRuleMessage(schema, 'required', newValue, $schema);\n // ok = false;\n // typeok = false;\n }\n /*\n if (schema.default !== undefined) {\n ivalue = schema.default;\n //if (ivalue===0) {\n // typeok=true;\n //}\n }\n */\n ivalue = null;\n }\n else {\n ivalue = +newValue.replace(',', '.');\n if (isNaN(ivalue)) {\n if (dirty) {\n vm.error = getRuleMessage(schema, 'type', newValue, $schema);\n }\n typeok = false;\n // this.stringValue = newValue;\n // ivalue = schema.default || null;\n ivalue = null;\n }\n }\n savedValue = ivalue;\n // if (this.focused) {\n if (!typeok) {\n // tslint:disable-next-line: no-console\n // console.log('set $stringValue', newValue);\n vm.stringValue = newValue;\n }\n else {\n vm.stringValue = null;\n }\n var dvalue = 0;\n if (ivalue === null) {\n obj.$model = null;\n }\n else {\n switch (schema.type) {\n case 'integer':\n // console.log('set model', obj.$path, JSON.stringify(ivalue), JSON.stringify(mround(ivalue, 0)));\n dvalue = mround_1.default(ivalue, 0);\n break;\n case 'money':\n dvalue = mround_1.default(ivalue, schema.precision || 2);\n break;\n case 'number':\n dvalue = mround_1.default(ivalue, schema.precision || 8);\n break;\n }\n // console.log(schema.type + 'Computed(set)', propName, JSON.stringify(dvalue), JSON.stringify(typeok));\n // parent[propName] = dvalue;\n obj.$model = dvalue;\n }\n };\n break;\n case 'string':\n case 'text':\n obj.$validate = function (svalue) {\n if (svalue === undefined) {\n svalue = parent[propName];\n }\n dirty = true;\n var req = $schema.fieldRequired;\n // console.log('propName.get()', req, svalue);\n if (svalue === '' || svalue === null) {\n if (req) {\n return (vm.error = getRuleMessage(schema, 'required', svalue, $schema));\n }\n else {\n // pustego nie walidujemy\n return (vm.error = null);\n }\n }\n var err = validate(obj, svalue);\n if (err) {\n return (vm.error = getRuleMessage(schema, err, svalue, $schema));\n // return (vm.error = err);\n }\n else {\n return (vm.error = null);\n }\n };\n obj.$validateAll = function (result) {\n if (obj.$validate() !== null) {\n result.push(obj);\n }\n return result;\n };\n obj.$validateSection = function (section, result) {\n if (section === formSection && obj.$validate() !== null) {\n result.push(obj);\n }\n return result;\n };\n svalueGetFunc = function () {\n var svalue = parent[propName];\n // if ($schema.format === 'date-time' && typeof propName === 'number') {\n // console.log('gettinf date-time', svalue, parent, JSON.stringify(propName));\n // }\n // let svalue = obj.$model;\n if (dirty) {\n obj.$validate(svalue);\n }\n switch ($schema.format) {\n case 'date':\n if (svalue && svalue.length >= 10) {\n var nsvalue = svalue.substr(8, 2) + \".\" + svalue.substr(5, 2) + \".\" + svalue.substr(0, 4);\n svalue = nsvalue;\n }\n break;\n case 'date-time':\n if (svalue && svalue.length >= 10) {\n var nsvalue = svalue.substr(8, 2) + \".\" + svalue.substr(5, 2) + \".\" + svalue.substr(0, 4);\n var ntvalue = svalue.substr(11, 8);\n if (ntvalue !== '00:00:00') {\n nsvalue += ' ' + ntvalue;\n }\n // console.log('get date-time', svalue, nsvalue, ntvalue);\n svalue = nsvalue;\n }\n break;\n }\n return svalue || '';\n };\n svalueSetFunc = function (newValue) {\n typeok = true;\n if (!dirty && self.options.dirtyOnInput) {\n dirty = true;\n }\n /*\n if (newValue === '' || newValue === null) {\n if ($schema.fieldRequired) {\n vm.error = getRuleMessage(schema, 'required', newValue, $schema);\n // console.log('empty required ' + propName, vm.error);\n // ok = false;\n typeok = false;\n }\n // newValue = '';\n }\n */\n // check save type\n if ($schema.format) {\n switch ($schema.format) {\n case 'date':\n if (newValue && newValue.length >= 10) {\n newValue = newValue.substr(6, 4) + \"-\" + newValue.substr(3, 2) + \"-\" + newValue.substr(0, 2);\n // console.log('set date-time', newValue);\n }\n break;\n case 'date-time':\n if (newValue && newValue.length >= 10) {\n newValue = newValue.substr(6, 4) + \"-\" + newValue.substr(3, 2) + \"-\" + newValue.substr(0, 2);\n // console.log('set date-time', newValue);\n }\n break;\n }\n }\n /*\n if (!typeok) {\n this.stringValue = newValue;\n } else {\n this.stringValue = null;\n }\n */\n // parent[propName] = newValue;\n obj.$model = newValue;\n if ($schema.format === 'date-time') {\n // console.log('date parent', parent);\n }\n };\n break;\n case 'boolean':\n obj.$validateAll = function (result) {\n if (obj.$validate() !== null) {\n result.push(obj);\n }\n return result;\n };\n obj.$validateSection = function (section, result) {\n if (section === formSection && obj.$validate() !== null) {\n result.push(obj);\n }\n return result;\n };\n obj.$validate = function (value) {\n if (value === undefined) {\n value = parent[propName];\n }\n dirty = true;\n if (value === null) {\n if ($schema.fieldRequired) {\n return (vm.error = getRuleMessage(schema, 'required', value, $schema));\n }\n else {\n return (vm.error = null);\n }\n }\n var ivalue = !!value;\n if ($schema.fieldRequired && !ivalue) {\n return (vm.error = getRuleMessage(schema, 'required', value, $schema));\n }\n var err = validate(obj, ivalue);\n if (err) {\n return (vm.error = getRuleMessage(schema, err, ivalue, $schema));\n // return (vm.error = err);\n }\n else {\n return (vm.error = null);\n }\n };\n svalueGetFunc = function () {\n var svalue = parent[propName];\n if (dirty) {\n var err = validate(obj, svalue);\n vm.error = err ? getRuleMessage(schema, err, svalue, $schema) : null;\n }\n return svalue ? 'true' : 'false';\n };\n svalueSetFunc = function (newValue) {\n if (!dirty && self.options.dirtyOnInput) {\n dirty = true;\n }\n parent[propName] = newValue !== null && newValue !== 'null' && newValue !== 'false' && newValue !== 'off' && newValue !== '';\n };\n break;\n case 'array': {\n svalueGetFunc = function () { return obj.$model; };\n svalueSetFunc = function (newValue) {\n if (!dirty && self.options.dirtyOnInput) {\n dirty = true;\n }\n return (obj.$model = newValue);\n };\n break;\n }\n default:\n svalueGetFunc = function () { return obj.$model; };\n svalueSetFunc = function (newValue) {\n // parent[propName] = newValue;\n if (!dirty && self.options.dirtyOnInput) {\n dirty = true;\n }\n return (obj.$model = newValue);\n };\n break;\n }\n reactivedata.error = null;\n // extraData.$key = propName;\n // extraData.$model = parent;\n // extraData.$schema = $schema;\n // extraData.$obj = obj;\n // extraData.mround = mround;\n if (computedOnly) {\n reactivedata.value = JSchema_1.defaultValue(schema, true);\n if (true) {\n /*\n let propinfo = Object.getOwnPropertyDescriptor(parent, propName);\n if (propinfo === undefined) {\n Vue.set(parent, propName,)\n \n }\n */\n if (parent[propName] === undefined) {\n Object.defineProperty(parent, propName, {\n enumerable: false,\n configurable: false,\n get: function () {\n return reactivedata.value;\n }\n });\n }\n }\n }\n var mixins = [];\n if (asyncComputed !== null) {\n // mixins.push()\n }\n // console.log('before create vm ' + propName, extraData);\n var vvtime = new Date().getTime();\n // debugger;\n if (useComputedModel || need$root) {\n computed.model = {\n get: svalueGetFunc,\n set: svalueSetFunc\n };\n vm = new Vue({\n data: function () {\n return reactivedata;\n },\n computed: computed,\n watch: watch\n // methods: {\n // mround,\n // },\n // $ext: extraData\n });\n self.vueInstances.push(vm);\n obj.$destroy = function () {\n vm.$destroy();\n };\n }\n else {\n vm = Vue.observable(reactivedata);\n obj.$destroy = function () {\n return;\n };\n }\n /*\n \n obj.$validate = function(value: any) {\n if (value === undefined) {\n value = parent[propName];\n }\n const err = validate(obj, value);\n if (err) {\n return (vm.error = getRuleMessage(schema, err, value, $schema));\n } else {\n return (vm.error = null);\n }\n };\n */\n if (schema.type === 'array') {\n // console.log('after create vm ' + propName, (new Date().getTime()) - vvtime, vm.items);\n }\n // console.log('after create vm ' + propName, (new Date().getTime()) - vvtime, extraData);\n if (typeof propName === 'number') {\n var prevModelValue_1;\n var prevSValue_1;\n Object.defineProperty(obj, '$value', {\n enumerable: true,\n get: function () {\n var nvalue = obj.$model;\n if (prevModelValue_1 === nvalue) {\n // console.log('return cached:', prevSValue);\n return prevSValue_1;\n }\n else {\n prevModelValue_1 = nvalue;\n return (prevSValue_1 = svalueGetFunc());\n }\n },\n set: function (newValue) {\n // vm.model = newValue;\n svalueSetFunc(newValue);\n }\n });\n }\n else {\n if (useComputedModel) {\n Object.defineProperty(obj, '$value', {\n enumerable: true,\n get: function () {\n return vm.model;\n },\n set: function (newValue) {\n vm.model = newValue;\n }\n });\n }\n else {\n Object.defineProperty(obj, '$value', {\n enumerable: true,\n get: function () {\n /*\n if (typeof propName === 'number') {\n console.log('get $value', propName, vm, vm.model, obj.$model);\n return obj.$model;\n // console.log('get $value', propName, vm, vm.model);\n } else {\n return vm.model;\n }\n */\n return svalueGetFunc();\n },\n set: function (newValue) {\n svalueSetFunc(newValue);\n }\n });\n }\n }\n // vm.model = newValue;\n if (schema.validFunc) {\n Object.defineProperty(obj, '$isFuncValid', {\n enumerable: false,\n get: function () {\n return vm.validFunc;\n }\n });\n }\n // console.log(\"after create vm \"+propName);\n /*\n if (schema.summary) {\n // if (vm.summary !== parent[propName]) {\n vm.$options.$ext.$model[propName] = vm.summary;\n // }\n vm.$watch('summary', (newValue: any) => {\n // console.log('summary watch');\n \n vm.$options.$ext.$model[propName] = newValue;\n });\n }\n */\n if (!self.options.disableCalculations) {\n if (schema.calc) {\n // if (vm.calc !== vm.$options.$ext.$model[propName]) {\n // console.log('calc set watcher');\n if (computedOnly) {\n vm.value = vm.calc;\n vm.$watch('calc', function (newValue) {\n // console.log('zmiana wartości computed', propName, newValue);\n vm.value = newValue;\n });\n }\n else {\n if (vm.calc !== undefined) {\n Vue.set(parent, propName, vm.calc);\n }\n // vm.$set(parent, propName, vm.calc);\n // vm.$options.$ext.$model[propName] = vm.calc;\n // }\n vm.$watch('calc', function (newValue) {\n if (!dirty && (self.options.dirtyOnBlur || self.options.dirtyOnInput)) {\n dirty = true;\n }\n if (newValue !== undefined) {\n Vue.set(parent, propName, newValue);\n }\n });\n }\n }\n if (schema.aggregate && !schema.aggregate.delay) {\n if (Array.isArray(schema.aggregate.property)) {\n var mparent_3 = parent[propName];\n // const mparent = vm.$options.$ext.$model[propName];\n var res_1 = vm.aggregate;\n schema.aggregate.property.forEach(function (x) { return (mparent_3[x] = res_1[x]); });\n vm.$watch('aggregate', function (newValue) {\n var mparent2 = parent[propName];\n // const mparent2 = vm.$options.$ext.$model[propName];\n for (var key in newValue) {\n if (newValue.hasOwnProperty(key)) {\n mparent2[key] = newValue[key];\n }\n }\n });\n }\n else {\n if (computedOnly) {\n vm.value = vm.aggregate;\n vm.$watch('aggregate', function (newValue) {\n vm.value = newValue;\n });\n }\n else {\n Vue.set(parent, propName, vm.aggregate);\n // Vue.set(vm.$options.$ext.$model, propName, vm.aggregate);\n // vm.$options.$ext.$parentmodel[propName] = vm.aggregate;\n vm.$watch('aggregate', function (newValue) {\n if (!dirty && (self.options.dirtyOnBlur || self.options.dirtyOnInput)) {\n dirty = true;\n }\n Vue.set(parent, propName, newValue);\n // Vue.set(vm.$options.$ext.$model, propName, newValue);\n // vm.$options.$ext.$parentmodel[propName] = newValue;\n });\n }\n }\n }\n }\n // let vmsg =\n var rules = {};\n // obj.$parent = dest;\n // obj.$schema = schema;\n // obj.key = vm.model[\"key\"];\n // obj.key = propName;\n // let obj = reactivedata;\n // obj.validation = {\n // };\n var savedValue;\n var alreadyVelidate = false;\n if (schema.type === 'array') {\n Object.defineProperties(obj, {\n $items: {\n enumerable: true,\n get: function () {\n // console.log('get $items');\n return vm.items;\n }\n },\n $error: {\n enumerable: true,\n get: function () {\n if (dirty && !alreadyVelidate) {\n obj.$validate();\n alreadyVelidate = true;\n }\n // if (self.form.currentSection !== formSection) {\n // formSection = self.form.currentSection;\n // }\n return vm.error;\n }\n }\n });\n }\n else {\n Object.defineProperties(obj, {\n $error: {\n enumerable: true,\n get: function () {\n // formSection = self.form.currentSection;\n // console.log('section', obj.$path, formSection);\n return vm.error;\n }\n }\n });\n }\n Object.defineProperties(obj, {\n $path: {\n enumerable: true,\n configurable: true,\n get: function () {\n return this.$isRoot ? '' : path(this);\n }\n },\n /*\n $stringValue: {\n enumerable: false,\n get() {\n return vm.stringValue;\n },\n set(newValue) {\n vm.stringValue = newValue;\n }\n },\n $isEmpty: {\n enumerable: false,\n get() {\n // let nvalue = parent[propName];\n const nvalue = this.$stringValue;\n console.log('read isEmpty', nvalue, nvalue == null || nvalue === '');\n return nvalue === null || nvalue === '';\n // return vm.isEmpty\n }\n },\n */\n $hasFocus: {\n enumerable: false,\n get: function () {\n return vm.focused;\n },\n set: function (newValue) {\n // console.log('$hasFocus', this.$path, newValue, vm.focused);\n if (newValue) {\n vm.focused = true;\n if (self.options.resetOnFocus) {\n obj.$reset();\n }\n }\n else {\n // if (vm.focused) {\n if (true) {\n if (typeok) {\n vm.stringValue = null;\n }\n vm.focused = false;\n // console.log('$hasFocus', this.$path, newValue, dirty, self.dirtyOnBlur);\n if (!dirty && self.options.dirtyOnBlur) {\n // dirty = true;\n // console.log('validate on blur', obj.$validate());\n obj.$validate();\n }\n }\n }\n }\n },\n $formSection: {\n enumerable: false,\n get: function () {\n return formSection;\n },\n set: function (newValue) {\n if (newValue !== formSection) {\n formSection = newValue;\n // console.log('set section', this.$path, newValue);\n }\n }\n },\n $dirty: {\n enumerable: false,\n get: function () {\n return dirty;\n },\n set: function (newValue) {\n dirty = newValue;\n if (obj.$isRoot) {\n self.options.startDirty = newValue;\n }\n }\n }\n /*\n obj.$destroy = () => {\n vm.$destroy();\n };\n */\n });\n /*\n if (required) {\n Object.defineProperty(obj,\"$isRequired\",{\n enumerable: false,\n value: true\n \n })\n \n }\n */\n /*\n \n Object.defineProperty(obj.$validation, \"$errors\", {\n enumerable: false,\n get() {\n return vm.validation.errors;\n }\n \n \n });\n Object.defineProperty(obj.$validation, \"$valid\", {\n enumerable: false,\n get() {\n //return vm.validation.errors.length==0;\n return vm.$valid;\n }\n \n \n });\n */\n /*\n Object.defineProperty(obj, \"$parentmodel\", {\n enumerable: false,\n get() { return parent }\n });\n */\n /*\n const getterDefs = buildFromKeys(getterNames, (key) => ({\n enumerable: true,\n configurable: true,\n get: () => this[key]\n }))\n */\n /*\n Object.defineProperty(obj.validation, \"$isDirty\", {\n enumerable: false,\n configurable: true,\n get() { return vm.$isDirty }\n });\n */\n // let stringValue = null;\n if (self.form) {\n Object.defineProperty(obj, '$form', {\n enumerable: false,\n get: function () {\n return self.form;\n }\n });\n }\n return obj;\n };\n SchemaWrapper.prototype.wrap = function (parent, propName, schema) {\n // console.log('wrap');\n this.clear();\n // napraw schema, rozwią refs i dodaj $parent\n var stime = new Date().getTime();\n // console.log('fixSchema', new Date().getTime() - stime);\n // this.calcFunctions = [];\n // this.summaryFunctions = [];\n this.vueInstances = [];\n var mainprop = this.wrapProperty(null, parent, propName, schema);\n Object.defineProperty(mainprop, '$isRoot', {\n enumerable: false,\n get: function () {\n return true;\n }\n });\n var self = this;\n // this.runCalc();\n return mainprop;\n };\n SchemaWrapper.defaultOptions = {\n startDirty: false,\n dirtyOnBlur: true,\n dirtyOnInput: false,\n resetOnFocus: false,\n disableCalculations: false,\n disableValidations: false,\n wrapAll: false\n };\n return SchemaWrapper;\n}());\nexports.SchemaWrapper = SchemaWrapper;\nexports.default = SchemaWrapper;\n//# sourceMappingURL=SchemaWrapper.js.map","var $export = require('./_export');\nvar defined = require('./_defined');\nvar fails = require('./_fails');\nvar spaces = require('./_string-ws');\nvar space = '[' + spaces + ']';\nvar non = '\\u200b\\u0085';\nvar ltrim = RegExp('^' + space + space + '*');\nvar rtrim = RegExp(space + space + '*$');\n\nvar exporter = function (KEY, exec, ALIAS) {\n var exp = {};\n var FORCE = fails(function () {\n return !!spaces[KEY]() || non[KEY]() != non;\n });\n var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY];\n if (ALIAS) exp[ALIAS] = fn;\n $export($export.P + $export.F * FORCE, 'String', exp);\n};\n\n// 1 -> String#trimLeft\n// 2 -> String#trimRight\n// 3 -> String#trim\nvar trim = exporter.trim = function (string, TYPE) {\n string = String(defined(string));\n if (TYPE & 1) string = string.replace(ltrim, '');\n if (TYPE & 2) string = string.replace(rtrim, '');\n return string;\n};\n\nmodule.exports = exporter;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar TimeSpan_1 = require(\"../TimeSpan\");\nfunction dateDiff(_a) {\n var lateDate = _a.lateDate, earlyDate = _a.earlyDate;\n return TimeSpan_1.default.diff(lateDate, earlyDate);\n}\nexports.default = dateDiff;\n//# sourceMappingURL=dateDiff.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar fdatetime_1 = require(\"./fdatetime\");\nvar dateParse_1 = require(\"./dateParse\");\n/**\n * dodaje określoną liczbę jednostek do daty\n * @param date data wejściowa\n * @param part częśc daty do zmiany\n * @param value o lie zwiększyć\n */\nfunction dateAdd(date, part, value) {\n var inputDate = dateParse_1.default(date);\n var result = new Date(inputDate);\n switch (part) {\n case 'y':\n case 'yy':\n case 'yyyy':\n case 'year':\n result.setFullYear(inputDate.getFullYear() + value);\n break;\n // return padNumber(datePart('y', date) + value, 4) + date.substr(4);\n case 'M':\n case 'MM':\n case 'month':\n result.setMonth(inputDate.getMonth() + value);\n break;\n case 'd':\n case 'dd':\n case 'day':\n result.setDate(inputDate.getDate() + value);\n break;\n case 'h':\n case 'hh':\n case 'hour':\n result.setHours(inputDate.getHours() + value);\n break;\n case 'm':\n case 'mm':\n case 'minute':\n result.setMinutes(inputDate.getMinutes() + value);\n break;\n case 's':\n case 'ss':\n case 'second':\n result.setSeconds(inputDate.getSeconds() + value);\n break;\n }\n if (date.length === 10) {\n return fdatetime_1.default(result).replace(' 00:00:00', '');\n }\n else {\n return fdatetime_1.default(result);\n }\n}\nexports.default = dateAdd;\n//# sourceMappingURL=dateAdd.js.map","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n","'use strict';\nvar global = require('./_global');\nvar has = require('./_has');\nvar cof = require('./_cof');\nvar inheritIfRequired = require('./_inherit-if-required');\nvar toPrimitive = require('./_to-primitive');\nvar fails = require('./_fails');\nvar gOPN = require('./_object-gopn').f;\nvar gOPD = require('./_object-gopd').f;\nvar dP = require('./_object-dp').f;\nvar $trim = require('./_string-trim').trim;\nvar NUMBER = 'Number';\nvar $Number = global[NUMBER];\nvar Base = $Number;\nvar proto = $Number.prototype;\n// Opera ~12 has broken Object#toString\nvar BROKEN_COF = cof(require('./_object-create')(proto)) == NUMBER;\nvar TRIM = 'trim' in String.prototype;\n\n// 7.1.3 ToNumber(argument)\nvar toNumber = function (argument) {\n var it = toPrimitive(argument, false);\n if (typeof it == 'string' && it.length > 2) {\n it = TRIM ? it.trim() : $trim(it, 3);\n var first = it.charCodeAt(0);\n var third, radix, maxCode;\n if (first === 43 || first === 45) {\n third = it.charCodeAt(2);\n if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix\n } else if (first === 48) {\n switch (it.charCodeAt(1)) {\n case 66: case 98: radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i\n case 79: case 111: radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i\n default: return +it;\n }\n for (var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++) {\n code = digits.charCodeAt(i);\n // parseInt parses a string to a first unavailable symbol\n // but ToNumber should return NaN if a string contains unavailable symbols\n if (code < 48 || code > maxCode) return NaN;\n } return parseInt(digits, radix);\n }\n } return +it;\n};\n\nif (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) {\n $Number = function Number(value) {\n var it = arguments.length < 1 ? 0 : value;\n var that = this;\n return that instanceof $Number\n // check on 1..constructor(foo) case\n && (BROKEN_COF ? fails(function () { proto.valueOf.call(that); }) : cof(that) != NUMBER)\n ? inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it);\n };\n for (var keys = require('./_descriptors') ? gOPN(Base) : (\n // ES3:\n 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +\n // ES6 (in case, if modules with ES6 Number statics required before):\n 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' +\n 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger'\n ).split(','), j = 0, key; keys.length > j; j++) {\n if (has(Base, key = keys[j]) && !has($Number, key)) {\n dP($Number, key, gOPD(Base, key));\n }\n }\n $Number.prototype = proto;\n proto.constructor = $Number;\n require('./_redefine')(global, NUMBER, $Number);\n}\n","module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n","var id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n","var isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n","var has = require('./_has');\nvar toIObject = require('./_to-iobject');\nvar arrayIndexOf = require('./_array-includes')(false);\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar fdatetime_1 = require(\"./fdatetime\");\n/**\n * formatuje datę do formatu yyyy-MM-dd\n * @param dt data typu Date\n */\nfunction fdate(dt) {\n return fdatetime_1.formatDateFunction['yyyy-MM-dd'](dt);\n // return dt.getFullYear() + '-' + padNumber(dt.getMonth() + 1) + '-' + padNumber(dt.getDate());\n}\nexports.default = fdate;\n//# sourceMappingURL=fdate.js.map","module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// Array.includes\nif (!Array.prototype.includes) {\n Array.prototype.includes = function (searchElement /*, fromIndex*/) {\n 'use strict';\n var O = Object(this);\n var len = parseInt(O.length, 10) || 0;\n if (len === 0) {\n return false;\n }\n var n = parseInt(arguments[1], 10) || 0;\n var k;\n if (n >= 0) {\n k = n;\n }\n else {\n k = len + n;\n if (k < 0) {\n k = 0;\n }\n }\n var currentElement;\n while (k < len) {\n currentElement = O[k];\n if (searchElement === currentElement ||\n (searchElement !== searchElement && currentElement !== currentElement)) { // NaN !== NaN\n return true;\n }\n k++;\n }\n return false;\n };\n}\n// Object.keys\nif (!Object.keys) {\n // tslint:disable-next-line: only-arrow-functions\n Object.keys = (function () {\n 'use strict';\n var hasOwnProperty = Object.prototype.hasOwnProperty;\n var hasDontEnumBug = !({ toString: null }).propertyIsEnumerable('toString');\n var dontEnums = [\n 'toString',\n 'toLocaleString',\n 'valueOf',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'constructor'\n ];\n var dontEnumsLength = dontEnums.length;\n // tslint:disable-next-line: only-arrow-functions\n return function (obj) {\n if (typeof obj !== 'function' && (typeof obj !== 'object' || obj === null)) {\n throw new TypeError('Object.keys called on non-object');\n }\n var result = [];\n var prop;\n var i;\n for (prop in obj) {\n if (hasOwnProperty.call(obj, prop)) {\n result.push(prop);\n }\n }\n if (hasDontEnumBug) {\n for (i = 0; i < dontEnumsLength; i++) {\n if (hasOwnProperty.call(obj, dontEnums[i])) {\n result.push(dontEnums[i]);\n }\n }\n }\n return result;\n };\n }());\n}\n// test polyfill\n// @ts-ignore\nif (!Array.test) {\n // @ts-ignore\n // tslint:disable-next-line: only-arrow-functions\n Array.test = function () {\n return 'test';\n };\n}\nexports.includes = Array.prototype.includes;\nexports.keys = Object.keys;\n// @ts-ignore\nexports.test = Array.test;\n//# sourceMappingURL=polyfills.js.map","// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar SchemaWrapper_1 = require(\"./SchemaWrapper\");\nvar JSchema_1 = require(\"./JSchema\");\nvar schemaMixin = {\n // beforeCreate() { },\n created: function () {\n var vm = this;\n var options = vm.$options;\n var schema = options.schema;\n if (schema) {\n // const schOptions = options.schemaOptions || {};\n var wrapobj = new SchemaWrapper_1.SchemaWrapper(this.constructor, options.schemaOptions);\n // tslint:disable-next-line: no-console\n if (options.external) {\n // console.log('set external', options.external);\n wrapobj.external = vm.$external = options.external;\n }\n else {\n // wrapobj.basedata = vm.$external\n }\n vm.$options._schemawrapper = wrapobj;\n // if (options.form) {\n vm.$form = wrapobj.form = vm.form || options.form || {};\n // vm.$form = options.form;\n // }\n wrapobj.asyncArrays = false;\n // merge schema\n var schema2 = null;\n // let fixtime = new Date().getTime();\n if (process.env.NODE_ENV === 'development') {\n console.time('schema fixing time');\n }\n var fixOptions = Object.assign({}, JSchema_1.fixSchemaDefaultOptions);\n if ((options.schemaOptions) && (options.schemaOptions.arrayItemGuidField !== undefined)) {\n fixOptions.arrayItemGuidField = options.schemaOptions.arrayItemGuidField;\n }\n if (!Array.isArray(schema)) {\n schema = [schema];\n }\n else {\n schema = schema.slice(0);\n }\n if (options.beforeFixSchema) {\n options.beforeFixSchema(schema, fixOptions);\n }\n schema2 = JSchema_1.fixAndMergeSchema(schema, fixOptions);\n // let ooo = JSON.stringify(schema2);\n if (process.env.NODE_ENV === 'development') {\n console.timeEnd('schema fixing time');\n }\n // console.log('schema fixing time', new Date().getTime() - fixtime);\n // const stime = new Date().getTime();\n if (process.env.NODE_ENV === 'development') {\n console.time('wrapping schema');\n }\n // for (let i = 0; i < 100; i++) {\n // Object.defineProperty(this,\"$schema\",{\n // enumerable: true,\n // get: wrapobj.wrap(this, \"model\", schema)\n // })\n if (vm.model !== undefined) {\n if (vm.model === null) {\n // tworzenie domyslnego\n vm.model = JSchema_1.defaultValue(schema2, true);\n }\n else {\n if (process.env.NODE_ENV === 'development') {\n console.time('fixData');\n }\n var fixed = JSchema_1.fixData(schema2, vm.model, wrapobj.Vue);\n if (process.env.NODE_ENV === 'development') {\n console.timeEnd('fixData');\n if (fixed) {\n console.log('fixed fields: ' + fixed);\n }\n }\n }\n if (options.beforeSchema) {\n options.beforeSchema(vm.model, schema2, wrapobj.options);\n }\n if (process.env.NODE_ENV === 'development') {\n console.log('$schema.options', wrapobj.options);\n }\n // console.log('wrapping model', vm.model);\n vm.$schema = wrapobj.wrap(vm, 'model', schema2);\n }\n else {\n if (options.beforeSchema) {\n options.beforeSchema(vm._data, schema2, wrapobj.options);\n }\n if (process.env.NODE_ENV === 'development') {\n console.log('$schema.options', wrapobj.options);\n }\n vm.$schema = wrapobj.wrap(vm, '_data', schema2);\n }\n if (options.afterSchema) {\n options.afterSchema(vm.$schema);\n }\n if (process.env.NODE_ENV === 'development') {\n console.timeEnd('wrapping schema');\n }\n // console.log('wrapping schema', vm.$schema);\n // }\n // tslint:disable-next-line: no-console\n // console.log('wraptime', new Date().getTime() - stime, vm.$schema);\n }\n },\n beforeDestroy: function () {\n var vm = this;\n var wrapobj = vm.$options._schemawrapper;\n if (wrapobj) {\n wrapobj.clear();\n }\n },\n};\nexports.default = schemaMixin;\n//# sourceMappingURL=schemaMixin.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar fdatetime_1 = require(\"./fdatetime\");\nvar padNumber_1 = require(\"./padNumber\");\nvar datePart_1 = require(\"./datePart\");\n/**\n * Zwraca tablicę zawierającą listę miesięcy pomiędzy datami\n * @param startDate data początkowa\n * @param endDate data końcowa\n * @param format format, domyślnie MMMM yyyy, czyli \"styczeń 2019\"\n */\nfunction listMonths(startDate, endDate, format /* = 'MMMM yyyy'*/) {\n /*\n const dt1 = dateParse(startDate);\n const dt2 = dateParse(endDate);\n\n let m1 = dt1.getMonth();\n let y1 = dt1.getFullYear();\n const m2 = dt2.getMonth();\n const y2 = dt2.getFullYear();\n */\n var m1 = datePart_1.default(startDate, 'M') - 1;\n var y1 = datePart_1.default(startDate, 'y');\n var m2 = datePart_1.default(endDate, 'M') - 1;\n var y2 = datePart_1.default(endDate, 'y');\n var result = [];\n var func;\n switch (format) {\n case 'MMMM yyyy':\n func = function (m, y) { return fdatetime_1.monthNames[m] + ' ' + y; };\n break;\n case 'MMM yyyy':\n func = function (m, y) { return fdatetime_1.monthShort[m] + ' ' + y; };\n break;\n case 'MM yyyy':\n func = function (m, y) { return padNumber_1.default(m + 1) + ' ' + y; };\n break;\n case 'M yyyy':\n func = function (m, y) { return m + 1 + ' ' + y; };\n break;\n case 'MMMM':\n func = function (m, y) { return fdatetime_1.monthNames[m]; };\n break;\n case 'MMM':\n func = function (m, y) { return fdatetime_1.monthShort[m]; };\n break;\n case 'MM':\n func = function (m, y) { return padNumber_1.default(m + 1); };\n break;\n case 'M':\n func = function (m, y) { return (m + 1).toString(); };\n break;\n default:\n func = function (m, y) { return fdatetime_1.monthNames[m] + ' ' + y; };\n break;\n }\n while ((m1 <= m2 && y1 === y2) || y1 < y2) {\n result.push(func(m1, y1));\n m1++;\n if (m1 > 11) {\n m1 = 0;\n y1++;\n }\n }\n return result;\n}\nexports.default = listMonths;\n//# sourceMappingURL=listMonths.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar datePart_1 = require(\"./datePart\");\n/**\n * Zwraca tablicę zawierającą listę lat pomiędzy datami\n * @param startDate data początkowa\n * @param endDate data końcowa\n */\nfunction listYears(startDate, endDate) {\n var y1 = datePart_1.default(startDate, 'y');\n var y2 = datePart_1.default(endDate, 'y');\n var result = [];\n while (y1 <= y2) {\n result.push(y1);\n y1++;\n }\n return result;\n}\nexports.default = listYears;\n//# sourceMappingURL=listYears.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar mround_1 = require(\"./mround\");\nvar precisionsz = ['', '.0', '.00', '.000', '.0000', '.00000', '.000000', '.0000000', '.00000000'];\n/**\n * formatuje liczbę zmiennoprzecinkową do polskiego formatu\n * @param value liczba\n * @param forcezeros czy zachować zera ,00\n * @param precision do ilu miejsc po przecinku zaokrąglić, domyślnie 2\n */\nfunction fmoney(value, forcezeros, precision) {\n if (precision === void 0) { precision = 2; }\n if (value === null) {\n return '';\n }\n // const s = value.toFixed(2);\n // let s = mround(value, precision).toFixed(precision);\n if (value % 1 === 0) {\n if (forcezeros) {\n return value.toString() + precisionsz[precision];\n }\n else {\n return value.toString();\n }\n }\n var s = mround_1.default(value, precision).toFixed(precision);\n if (forcezeros) {\n return s.replace('.', ',');\n }\n else {\n return s.replace(precisionsz[precision], '').replace('.', ',');\n }\n}\nexports.default = fmoney;\n//# sourceMappingURL=fmoney.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nfunction nullDefault(value, valueIfNull) {\n return value === null ? valueIfNull : value;\n}\nexports.default = nullDefault;\n//# sourceMappingURL=nullDefault.js.map","// document.currentScript polyfill by Adam Miller\n\n// MIT license\n\n(function(document){\n var currentScript = \"currentScript\",\n scripts = document.getElementsByTagName('script'); // Live NodeList collection\n\n // If browser needs currentScript polyfill, add get currentScript() to the document object\n if (!(currentScript in document)) {\n Object.defineProperty(document, currentScript, {\n get: function(){\n\n // IE 6-10 supports script readyState\n // IE 10+ support stack trace\n try { throw new Error(); }\n catch (err) {\n\n // Find the second match for the \"at\" string to get file src url from stack.\n // Specifically works with the format of stack traces in IE.\n var i, res = ((/.*at [^\\(]*\\((.*):.+:.+\\)$/ig).exec(err.stack) || [false])[1];\n\n // For all scripts on the page, if src matches or if ready state is interactive, return the script tag\n for(i in scripts){\n if(scripts[i].src == res || scripts[i].readyState == \"interactive\"){\n return scripts[i];\n }\n }\n\n // If no match, return null\n return null;\n }\n }\n });\n }\n})(document);\n","module.exports = require('./_shared')('native-function-to-string', Function.toString);\n","var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n","// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n require('current-script-polyfill')\n }\n\n var i\n if ((i = window.document.currentScript) && (i = i.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/))) {\n __webpack_public_path__ = i[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.crossed == 1)?_c('span',[_vm._ssrNode(\"\"+_vm._ssrEscape(_vm._s(_vm.first)+_vm._s(_vm.Asterisk()))+\"\"+_vm._ssrEscape(\"\\n \"+_vm._s(_vm.Separator())+\"\\n \")+\"\"+_vm._ssrEscape(_vm._s(_vm.second)+_vm._s(_vm.Asterisk()))+\"\")],2):(_vm.crossed == 2)?_c('span',[_vm._ssrNode(\"\"+_vm._ssrEscape(_vm._s(_vm.first)+_vm._s(_vm.Asterisk()))+\"\"+_vm._ssrEscape(\"\\n \"+_vm._s(_vm.Separator())+\"\\n \")+\"\"+_vm._ssrEscape(_vm._s(_vm.second)+_vm._s(_vm.Asterisk()))+\"\")]):_c('span',[_vm._ssrNode(\"\"+_vm._ssrEscape(_vm._s(_vm.first)+_vm._s(_vm.Asterisk()))+\"\"+_vm._ssrEscape(\"\\n \"+_vm._s(_vm.Separator())+\"\\n \")+\"\"+_vm._ssrEscape(_vm._s(_vm.second)+_vm._s(_vm.Asterisk()))+\"\")])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./crossed-out.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./crossed-out.vue?vue&type=script&lang=js&\"","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","import { render, staticRenderFns } from \"./crossed-out.vue?vue&type=template&id=86c05f5a&\"\nimport script from \"./crossed-out.vue?vue&type=script&lang=js&\"\nexport * from \"./crossed-out.vue?vue&type=script&lang=js&\"\nfunction injectStyles (context) {\n \n \n}\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n injectStyles,\n null,\n \"3f341884\"\n \n)\n\nexport default component.exports","import WCrossedOut from './crossed-out.vue';\n\n\nexport const components = {\n WCrossedOut\n};\n\nexport function registerPreviewComponents(Vue) {\n for (var name in components) {\n // console.log('register:', name);\n Vue.component(name, components[name]);\n }\n}\n\n\nexport default components;\n","export const filters = {};\n\nexport function registerFilters(Vue) {\n for (var name in filters) {\n // console.log('register:', name);\n Vue.filter(name, filters[name]);\n \n }\n}\n\nexport default filters;","import { schemaMixin } from '@witkac/jschema';\nimport previewComponents from '../components/previewComponents';\nlet components = null;\n\nif ((typeof window !== \"undefined\") && (window.Vue)) {\n //są zarejestrowane globalnie\n components = null;\n\n} else {\n components = previewComponents;\n}\n\n\n\n// import { fixSchemaDefaultOptions } from '../utils/JsonSchema';\n// fixSchemaDefaultOptions.arrayItemGuidField = 'Guid';\n\nexport default {\n mixins: [schemaMixin],\n components: components,\n props: ['datamodel', 'external'],\n data() {\n let data = {};\n return {\n model: this.$props.datamodel,\n };\n },\n \n beforeCreate() {\n const props = this.$options.propsData;\n\n if (props.external) {\n this.$options.external = props.external;\n delete props.external;\n }\n },\n created() {\n console.log('previewMixin created');\n\n },\n mounted() {\n if(typeof window !== \"undefined\"){\n \n window.vm = this;\n }\n }\n};\n","import _previewcomponents from './components/previewComponents';\nimport _filters from './filters';\nimport {schemaMethods as _schemaMethods} from '@witkac/jschema';\n\nimport _previewMixin from './mixins/previewMixin';\n\nexport const previewMixin = _previewMixin;\nexport const previewComponents = _previewcomponents;\nexport const filters = _filters;\nexport const schemaMethods = _schemaMethods;\n\n\n\nexport default previewComponents;","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n","module.exports = '\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003' +\n '\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n"],"sourceRoot":""}